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 DomainResource
The interactions of the medicinal product with other medicinal products, or other forms of interactions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MedicinalProductInteraction.Builder
static class
MedicinalProductInteraction.Interactant
The specific medication, food or laboratory test that interacts.
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.resource.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class com.ibm.fhir.model.resource.Resource
id, implicitRules, language, meta
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(String elementName, int elementIndex, Visitor visitor)
Accept a Visitor and invoke the appropriate visit methods.static MedicinalProductInteraction.Builder
builder()
boolean
equals(Object obj)
String
getDescription()
The interaction described.CodeableConcept
getEffect()
The effect of the interaction, for example "reduced gastric absorption of primary medication".CodeableConcept
getIncidence()
The incidence of the interaction, e.g.List<MedicinalProductInteraction.Interactant>
getInteractant()
The specific medication, food or laboratory test that interacts.CodeableConcept
getManagement()
Actions for managing the interaction.List<Reference>
getSubject()
The medication for which this is a described interaction.CodeableConcept
getType()
The type of the interaction e.g.boolean
hasChildren()
int
hashCode()
MedicinalProductInteraction.Builder
toBuilder()
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 List<Reference> getSubject()
The medication for which this is a described interaction.- Returns:
- An unmodifiable list containing immutable objects of type
Reference
that may be empty.
-
getDescription
public String getDescription()
The interaction described.- Returns:
- An immutable object of type
String
that may be null.
-
getInteractant
public List<MedicinalProductInteraction.Interactant> getInteractant()
The specific medication, food or laboratory test that interacts.- Returns:
- An unmodifiable list containing immutable objects of type
MedicinalProductInteraction.Interactant
that 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
CodeableConcept
that 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
CodeableConcept
that may be null.
-
getIncidence
public CodeableConcept getIncidence()
The incidence of the interaction, e.g. theoretical, observed.- Returns:
- An immutable object of type
CodeableConcept
that may be null.
-
getManagement
public CodeableConcept getManagement()
Actions for managing the interaction.- Returns:
- An immutable object of type
CodeableConcept
that may be null.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildren
in classDomainResource
-
accept
public void accept(String elementName, int elementIndex, Visitor visitor)
Description copied from interface:Visitable
Accept 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:
accept
in interfaceVisitable
- Specified by:
accept
in 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
-
toBuilder
public MedicinalProductInteraction.Builder toBuilder()
Description copied from class:Resource
Create a new Builder from the contents of this Resource- Specified by:
toBuilder
in classDomainResource
-
builder
public static MedicinalProductInteraction.Builder builder()
-
-