Class MedicationDispense.Substitution
- java.lang.Object
-
- ca.uhn.fhir.model.api.BaseElement
-
- ca.uhn.fhir.model.api.BaseIdentifiableElement
-
- ca.uhn.fhir.model.dstu2.resource.MedicationDispense.Substitution
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeElement,ca.uhn.fhir.model.api.IElement,ca.uhn.fhir.model.api.IIdentifiableElement,ca.uhn.fhir.model.api.IResourceBlock,ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions,Serializable,org.hl7.fhir.instance.model.api.IBase
- Enclosing class:
- MedicationDispense
public static class MedicationDispense.Substitution extends ca.uhn.fhir.model.api.BaseIdentifiableElement implements ca.uhn.fhir.model.api.IResourceBlock
Block class for child element: MedicationDispense.substitution ()Definition: Indicates whether or not substitution was made as part of the dispense. In some cases substitution will be expected but does not happen, in other cases substitution is not expected but does happen. This block explains what substitution did or did not happen and why.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Substitution()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CodeableConceptDtaddReason()Adds and returns a new value for reason ()MedicationDispense.SubstitutionaddReason(CodeableConceptDt theValue)Adds a given new value for reason ()ResourceReferenceDtaddResponsibleParty()Adds and returns a new value for responsibleParty ()<T extends ca.uhn.fhir.model.api.IElement>
List<T>getAllPopulatedChildElementsOfType(Class<T> theType)List<CodeableConceptDt>getReason()Gets the value(s) for reason ().CodeableConceptDtgetReasonFirstRep()Gets the first repetition for reason (), creating it if it does not already exist.List<ResourceReferenceDt>getResponsibleParty()Gets the value(s) for responsibleParty ().CodeableConceptDtgetType()Gets the value(s) for type ().booleanisEmpty()MedicationDispense.SubstitutionsetReason(List<CodeableConceptDt> theValue)Sets the value(s) for reason ()MedicationDispense.SubstitutionsetResponsibleParty(List<ResourceReferenceDt> theValue)Sets the value(s) for responsibleParty ()MedicationDispense.SubstitutionsetType(CodeableConceptDt theValue)Sets the value(s) for type ()-
Methods inherited from class ca.uhn.fhir.model.api.BaseIdentifiableElement
getElementSpecificId, getId, setElementSpecificId, setId, setId
-
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, isBaseEmpty, setUserData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
Substitution
public Substitution()
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase
-
getAllPopulatedChildElementsOfType
public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
- Specified by:
getAllPopulatedChildElementsOfTypein interfaceca.uhn.fhir.model.api.ICompositeElement
-
getType
public CodeableConceptDt getType()
Gets the value(s) for type (). creating it if it does not exist. Will not returnnull.Definition: A code signifying whether a different drug was dispensed from what was prescribed.
-
setType
public MedicationDispense.Substitution setType(CodeableConceptDt theValue)
Sets the value(s) for type ()Definition: A code signifying whether a different drug was dispensed from what was prescribed.
-
getReason
public List<CodeableConceptDt> getReason()
Gets the value(s) for reason (). creating it if it does not exist. Will not returnnull.Definition: Indicates the reason for the substitution of (or lack of substitution) from what was prescribed.
-
setReason
public MedicationDispense.Substitution setReason(List<CodeableConceptDt> theValue)
Sets the value(s) for reason ()Definition: Indicates the reason for the substitution of (or lack of substitution) from what was prescribed.
-
addReason
public CodeableConceptDt addReason()
Adds and returns a new value for reason ()Definition: Indicates the reason for the substitution of (or lack of substitution) from what was prescribed.
-
addReason
public MedicationDispense.Substitution addReason(CodeableConceptDt theValue)
Adds a given new value for reason ()Definition: Indicates the reason for the substitution of (or lack of substitution) from what was prescribed.
- Parameters:
theValue- The reason to add (must not benull)
-
getReasonFirstRep
public CodeableConceptDt getReasonFirstRep()
Gets the first repetition for reason (), creating it if it does not already exist.Definition: Indicates the reason for the substitution of (or lack of substitution) from what was prescribed.
-
getResponsibleParty
public List<ResourceReferenceDt> getResponsibleParty()
Gets the value(s) for responsibleParty (). creating it if it does not exist. Will not returnnull.Definition: The person or organization that has primary responsibility for the substitution
-
setResponsibleParty
public MedicationDispense.Substitution setResponsibleParty(List<ResourceReferenceDt> theValue)
Sets the value(s) for responsibleParty ()Definition: The person or organization that has primary responsibility for the substitution
-
addResponsibleParty
public ResourceReferenceDt addResponsibleParty()
Adds and returns a new value for responsibleParty ()Definition: The person or organization that has primary responsibility for the substitution
-
-