Class MedicationDispense

  • All Implemented Interfaces:
    ca.uhn.fhir.model.api.IElement, Serializable, org.hl7.fhir.instance.model.api.IAnyResource, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseHasExtensions, org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions, org.hl7.fhir.instance.model.api.IBaseResource, org.hl7.fhir.instance.model.api.IDomainResource

    public class MedicationDispense
    extends DomainResource
    Indicates that a medication product is to be or has been dispensed for a named person/patient. This includes a description of the medication product (supply) provided and the instructions for administering the medication. The medication dispense is the result of a pharmacy system responding to a medication order.
    See Also:
    Serialized Form
    • Field Detail

      • identifier

        protected Identifier identifier
        Identifier assigned by the dispensing facility - this is an identifier assigned outside FHIR.
      • medication

        protected Type medication
        Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications.
      • patient

        protected Reference patient
        A link to a resource representing the person to whom the medication will be given.
      • patientTarget

        protected Patient patientTarget
        The actual object that is the target of the reference (A link to a resource representing the person to whom the medication will be given.)
      • dispenser

        protected Reference dispenser
        The individual responsible for dispensing the medication.
      • dispenserTarget

        protected Practitioner dispenserTarget
        The actual object that is the target of the reference (The individual responsible for dispensing the medication.)
      • type

        protected CodeableConcept type
        Indicates the type of dispensing event that is performed. For example, Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc.
      • quantity

        protected SimpleQuantity quantity
        The amount of medication that has been dispensed. Includes unit of measure.
      • whenHandedOver

        protected DateTimeType whenHandedOver
        The time the dispensed product was provided to the patient or their representative.
      • destination

        protected Reference destination
        Identification of the facility/location where the medication was shipped to, as part of the dispense event.
      • destinationTarget

        protected Location destinationTarget
        The actual object that is the target of the reference (Identification of the facility/location where the medication was shipped to, as part of the dispense event.)
      • receiver

        protected List<Reference> receiver
        Identifies the person who picked up the medication. This will usually be a patient or their caregiver, but some cases exist where it can be a healthcare professional.
      • receiverTarget

        protected List<Resource> receiverTarget
        The actual objects that are the target of the reference (Identifies the person who picked up the medication. This will usually be a patient or their caregiver, but some cases exist where it can be a healthcare professional.)
      • note

        protected List<Annotation> note
        Extra information about the dispense that could not be conveyed in the other attributes.
      • substitution

        protected MedicationDispense.MedicationDispenseSubstitutionComponent substitution
        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.
      • SP_MEDICATION

        public static final String SP_MEDICATION
        Search parameter: medication

        Description: Return dispenses of this medicine resource
        Type: reference
        Path: MedicationDispense.medicationReference

        See Also:
        Constant Field Values
      • MEDICATION

        public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam MEDICATION
        Fluent Client search parameter constant for medication

        Description: Return dispenses of this medicine resource
        Type: reference
        Path: MedicationDispense.medicationReference

      • INCLUDE_MEDICATION

        public static final ca.uhn.fhir.model.api.Include INCLUDE_MEDICATION
        Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationDispense:medication".
      • SP_PATIENT

        public static final String SP_PATIENT
        Search parameter: patient

        Description: The identity of a patient to list dispenses for
        Type: reference
        Path: MedicationDispense.patient

        See Also:
        Constant Field Values
      • PATIENT

        public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT
        Fluent Client search parameter constant for patient

        Description: The identity of a patient to list dispenses for
        Type: reference
        Path: MedicationDispense.patient

      • INCLUDE_PATIENT

        public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT
        Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationDispense:patient".
      • SP_RECEIVER

        public static final String SP_RECEIVER
        Search parameter: receiver

        Description: Who collected the medication
        Type: reference
        Path: MedicationDispense.receiver

        See Also:
        Constant Field Values
      • RECEIVER

        public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam RECEIVER
        Fluent Client search parameter constant for receiver

        Description: Who collected the medication
        Type: reference
        Path: MedicationDispense.receiver

      • INCLUDE_RECEIVER

        public static final ca.uhn.fhir.model.api.Include INCLUDE_RECEIVER
        Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationDispense:receiver".
      • SP_STATUS

        public static final String SP_STATUS
        Search parameter: status

        Description: Status of the dispense
        Type: token
        Path: MedicationDispense.status

        See Also:
        Constant Field Values
      • STATUS

        public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS
        Fluent Client search parameter constant for status

        Description: Status of the dispense
        Type: token
        Path: MedicationDispense.status

      • SP_PRESCRIPTION

        public static final String SP_PRESCRIPTION
        Search parameter: prescription

        Description: The identity of a prescription to list dispenses from
        Type: reference
        Path: MedicationDispense.authorizingPrescription

        See Also:
        Constant Field Values
      • PRESCRIPTION

        public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PRESCRIPTION
        Fluent Client search parameter constant for prescription

        Description: The identity of a prescription to list dispenses from
        Type: reference
        Path: MedicationDispense.authorizingPrescription

      • INCLUDE_PRESCRIPTION

        public static final ca.uhn.fhir.model.api.Include INCLUDE_PRESCRIPTION
        Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationDispense:prescription".
      • SP_RESPONSIBLEPARTY

        public static final String SP_RESPONSIBLEPARTY
        Search parameter: responsibleparty

        Description: Return all dispenses with the specified responsible party
        Type: reference
        Path: MedicationDispense.substitution.responsibleParty

        See Also:
        Constant Field Values
      • RESPONSIBLEPARTY

        public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam RESPONSIBLEPARTY
        Fluent Client search parameter constant for responsibleparty

        Description: Return all dispenses with the specified responsible party
        Type: reference
        Path: MedicationDispense.substitution.responsibleParty

      • INCLUDE_RESPONSIBLEPARTY

        public static final ca.uhn.fhir.model.api.Include INCLUDE_RESPONSIBLEPARTY
        Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationDispense:responsibleparty".
      • SP_DISPENSER

        public static final String SP_DISPENSER
        Search parameter: dispenser

        Description: Return all dispenses performed by a specific individual
        Type: reference
        Path: MedicationDispense.dispenser

        See Also:
        Constant Field Values
      • DISPENSER

        public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam DISPENSER
        Fluent Client search parameter constant for dispenser

        Description: Return all dispenses performed by a specific individual
        Type: reference
        Path: MedicationDispense.dispenser

      • INCLUDE_DISPENSER

        public static final ca.uhn.fhir.model.api.Include INCLUDE_DISPENSER
        Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationDispense:dispenser".
      • SP_CODE

        public static final String SP_CODE
        Search parameter: code

        Description: Return dispenses of this medicine code
        Type: token
        Path: MedicationDispense.medicationCodeableConcept

        See Also:
        Constant Field Values
      • CODE

        public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE
        Fluent Client search parameter constant for code

        Description: Return dispenses of this medicine code
        Type: token
        Path: MedicationDispense.medicationCodeableConcept

      • SP_TYPE

        public static final String SP_TYPE
        Search parameter: type

        Description: Return all dispenses of a specific type
        Type: token
        Path: MedicationDispense.type

        See Also:
        Constant Field Values
      • TYPE

        public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE
        Fluent Client search parameter constant for type

        Description: Return all dispenses of a specific type
        Type: token
        Path: MedicationDispense.type

      • SP_IDENTIFIER

        public static final String SP_IDENTIFIER
        Search parameter: identifier

        Description: Return dispenses with this external identifier
        Type: token
        Path: MedicationDispense.identifier

        See Also:
        Constant Field Values
      • IDENTIFIER

        public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
        Fluent Client search parameter constant for identifier

        Description: Return dispenses with this external identifier
        Type: token
        Path: MedicationDispense.identifier

      • SP_WHENPREPARED

        public static final String SP_WHENPREPARED
        Search parameter: whenprepared

        Description: Date when medication prepared
        Type: date
        Path: MedicationDispense.whenPrepared

        See Also:
        Constant Field Values
      • WHENPREPARED

        public static final ca.uhn.fhir.rest.gclient.DateClientParam WHENPREPARED
        Fluent Client search parameter constant for whenprepared

        Description: Date when medication prepared
        Type: date
        Path: MedicationDispense.whenPrepared

      • SP_WHENHANDEDOVER

        public static final String SP_WHENHANDEDOVER
        Search parameter: whenhandedover

        Description: Date when medication handed over to patient (outpatient setting), or supplied to ward or clinic (inpatient setting)
        Type: date
        Path: MedicationDispense.whenHandedOver

        See Also:
        Constant Field Values
      • WHENHANDEDOVER

        public static final ca.uhn.fhir.rest.gclient.DateClientParam WHENHANDEDOVER
        Fluent Client search parameter constant for whenhandedover

        Description: Date when medication handed over to patient (outpatient setting), or supplied to ward or clinic (inpatient setting)
        Type: date
        Path: MedicationDispense.whenHandedOver

      • SP_DESTINATION

        public static final String SP_DESTINATION
        Search parameter: destination

        Description: Return dispenses that should be sent to a specific destination
        Type: reference
        Path: MedicationDispense.destination

        See Also:
        Constant Field Values
      • DESTINATION

        public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam DESTINATION
        Fluent Client search parameter constant for destination

        Description: Return dispenses that should be sent to a specific destination
        Type: reference
        Path: MedicationDispense.destination

      • INCLUDE_DESTINATION

        public static final ca.uhn.fhir.model.api.Include INCLUDE_DESTINATION
        Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationDispense:destination".