Class 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
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:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds and returns a new value for reason ()addReason
(CodeableConceptDt theValue) Adds a given new value for reason ()Adds and returns a new value for responsibleParty ()<T extends ca.uhn.fhir.model.api.IElement>
List<T> getAllPopulatedChildElementsOfType
(Class<T> theType) Gets the value(s) for reason ().Gets the first repetition for reason (), creating it if it does not already exist.Gets the value(s) for responsibleParty ().getType()
Gets the value(s) for type ().boolean
isEmpty()
setReason
(List<CodeableConceptDt> theValue) Sets the value(s) for reason ()setResponsibleParty
(List<ResourceReferenceDt> theValue) Sets the value(s) for responsibleParty ()setType
(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
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
Methods inherited from interface ca.uhn.fhir.model.api.IIdentifiableElement
getElementSpecificId, getId, setElementSpecificId, setId, setId
-
Constructor Details
-
Substitution
public Substitution()
-
-
Method Details
-
isEmpty
- Specified by:
isEmpty
in 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:
getAllPopulatedChildElementsOfType
in interfaceca.uhn.fhir.model.api.ICompositeElement
-
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
Sets the value(s) for type ()Definition: A code signifying whether a different drug was dispensed from what was prescribed.
-
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
Sets the value(s) for reason ()Definition: Indicates the reason for the substitution of (or lack of substitution) from what was prescribed.
-
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
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
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
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
Sets the value(s) for responsibleParty ()Definition: The person or organization that has primary responsibility for the substitution
-
addResponsibleParty
Adds and returns a new value for responsibleParty ()Definition: The person or organization that has primary responsibility for the substitution
-