Package com.ibm.fhir.model.resource
Class MedicinalProductInteraction
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.resource.Resource
-
- com.ibm.fhir.model.resource.DomainResource
-
- com.ibm.fhir.model.resource.MedicinalProductInteraction
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") public class MedicinalProductInteraction extends DomainResourceThe interactions of the medicinal product with other medicinal products, or other forms of interactions.Maturity level: FMM0 (Trial Use)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMedicinalProductInteraction.Builderstatic classMedicinalProductInteraction.InteractantThe specific medication, food or laboratory test that interacts.
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.resource.DomainResource
contained, extension, modifierExtension, text
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(java.lang.String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static MedicinalProductInteraction.Builderbuilder()booleanequals(java.lang.Object obj)StringgetDescription()The interaction described.CodeableConceptgetEffect()The effect of the interaction, for example "reduced gastric absorption of primary medication".CodeableConceptgetIncidence()The incidence of the interaction, e.g.java.util.List<MedicinalProductInteraction.Interactant>getInteractant()The specific medication, food or laboratory test that interacts.CodeableConceptgetManagement()Actions for managing the interaction.java.util.List<Reference>getSubject()The medication for which this is a described interaction.CodeableConceptgetType()The type of the interaction e.g.booleanhasChildren()inthashCode()MedicinalProductInteraction.BuildertoBuilder()Create a new Builder from the contents of this Resource-
Methods inherited from class com.ibm.fhir.model.resource.DomainResource
getContained, getExtension, getModifierExtension, getText
-
Methods inherited from class com.ibm.fhir.model.resource.Resource
as, getId, getImplicitRules, getLanguage, getMeta, is
-
-
-
-
Method Detail
-
getSubject
public java.util.List<Reference> getSubject()
The medication for which this is a described interaction.- Returns:
- An unmodifiable list containing immutable objects of type
Referencethat may be empty.
-
getDescription
public String getDescription()
The interaction described.- Returns:
- An immutable object of type
Stringthat may be null.
-
getInteractant
public java.util.List<MedicinalProductInteraction.Interactant> getInteractant()
The specific medication, food or laboratory test that interacts.- Returns:
- An unmodifiable list containing immutable objects of type
MedicinalProductInteraction.Interactantthat may be empty.
-
getType
public CodeableConcept getType()
The type of the interaction e.g. drug-drug interaction, drug-food interaction, drug-lab test interaction.- Returns:
- An immutable object of type
CodeableConceptthat may be null.
-
getEffect
public CodeableConcept getEffect()
The effect of the interaction, for example "reduced gastric absorption of primary medication".- Returns:
- An immutable object of type
CodeableConceptthat may be null.
-
getIncidence
public CodeableConcept getIncidence()
The incidence of the interaction, e.g. theoretical, observed.- Returns:
- An immutable object of type
CodeableConceptthat may be null.
-
getManagement
public CodeableConcept getManagement()
Actions for managing the interaction.- Returns:
- An immutable object of type
CodeableConceptthat may be null.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classDomainResource
-
accept
public void accept(java.lang.String elementName, int elementIndex, Visitor visitor)Description copied from interface:VisitableAccept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }- Specified by:
acceptin interfaceVisitable- Specified by:
acceptin classAbstractVisitable- Parameters:
elementName- the name of the element in the context of this visitelementIndex- the index of the element in a list or -1 if it is not contained within a Listvisitor- the visitor to use
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toBuilder
public MedicinalProductInteraction.Builder toBuilder()
Description copied from class:ResourceCreate a new Builder from the contents of this Resource- Specified by:
toBuilderin classDomainResource
-
builder
public static MedicinalProductInteraction.Builder builder()
-
-