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

    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
    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface org.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 interface ca.uhn.fhir.model.api.ICompositeElement
      • getType

        public CodeableConceptDt getType()
        Gets the value(s) for type (). creating it if it does not exist. Will not return null.

        Definition: A code signifying whether a different drug was dispensed from what was prescribed.

      • getReason

        public List<CodeableConceptDtgetReason()
        Gets the value(s) for reason (). creating it if it does not exist. Will not return null.

        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 be null)
      • 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<ResourceReferenceDtgetResponsibleParty()
        Gets the value(s) for responsibleParty (). creating it if it does not exist. Will not return null.

        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