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:
  • Constructor Details

  • Method Details

    • 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

      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.

    • 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 return null.

      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 be null)
    • 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 return null.

      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