Class MedicationAdministration

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

Describes the event of a patient consuming or otherwise being administered a medication. This may be as simple as swallowing a tablet or it may be a long running infusion. Related resources tie this event to the authorizing prescription, and the specific encounter between patient and health care practitioner.
See Also:
  • Field Details

    • identifier

      External identifier - FHIR will generate its own internal identifiers (probably URLs) which do not need to be explicitly managed by the resource. The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event. Particularly important if these records have to be updated.
    • status

      Will generally be set to show that the administration has been completed. For some long running administrations such as infusions it is possible for an administration to be started but not completed or it may be paused while some other process is under way.
    • patient

      protected Reference patient
      The person or animal receiving the medication.
    • patientTarget

      The actual object that is the target of the reference (The person or animal receiving the medication.)
    • practitioner

      The individual who was responsible for giving the medication to the patient.
    • practitionerTarget

      The actual object that is the target of the reference (The individual who was responsible for giving the medication to the patient.)
    • encounter

      protected Reference encounter
      The visit, admission or other contact between patient and health care provider the medication administration was performed as part of.
    • encounterTarget

      The actual object that is the target of the reference (The visit, admission or other contact between patient and health care provider the medication administration was performed as part of.)
    • prescription

      The original request, instruction or authority to perform the administration.
    • prescriptionTarget

      The actual object that is the target of the reference (The original request, instruction or authority to perform the administration.)
    • wasNotGiven

      Set this to true if the record is saying that the medication was NOT administered.
    • reasonNotGiven

      A code indicating why the administration was not performed.
    • reasonGiven

      A code indicating why the medication was given.
    • effectiveTime

      protected Type effectiveTime
      A specific date/time or interval of time during which the administration took place (or did not take place, when the 'notGiven' attribute is true). For many administrations, such as swallowing a tablet the use of dateTime is more appropriate.
    • medication

      protected Type medication
      Identifies the medication that was 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.
    • device

      protected List<Reference> device
      The device used in administering the medication to the patient. For example, a particular infusion pump.
    • deviceTarget

      protected List<Device> deviceTarget
      The actual objects that are the target of the reference (The device used in administering the medication to the patient. For example, a particular infusion pump.)
    • note

      protected StringType note
      Extra information about the medication administration that is not conveyed by the other attributes.
    • dosage

      Describes the medication dosage information details e.g. dose, rate, site, route, etc.
    • SP_IDENTIFIER

      public static final String SP_IDENTIFIER
      See Also:
    • SP_CODE

      public static final String SP_CODE
      See Also:
    • SP_PRESCRIPTION

      public static final String SP_PRESCRIPTION
      See Also:
    • SP_EFFECTIVETIME

      public static final String SP_EFFECTIVETIME
      See Also:
    • SP_PRACTITIONER

      public static final String SP_PRACTITIONER
      See Also:
    • SP_PATIENT

      public static final String SP_PATIENT
      See Also:
    • SP_MEDICATION

      public static final String SP_MEDICATION
      See Also:
    • SP_ENCOUNTER

      public static final String SP_ENCOUNTER
      See Also:
    • SP_DEVICE

      public static final String SP_DEVICE
      See Also:
    • SP_NOTGIVEN

      public static final String SP_NOTGIVEN
      See Also:
    • SP_STATUS

      public static final String SP_STATUS
      See Also:
  • Constructor Details

  • Method Details

    • getIdentifier

      Returns:
      identifier (External identifier - FHIR will generate its own internal identifiers (probably URLs) which do not need to be explicitly managed by the resource. The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event. Particularly important if these records have to be updated.)
    • hasIdentifier

      public boolean hasIdentifier()
    • addIdentifier

      Returns:
      identifier (External identifier - FHIR will generate its own internal identifiers (probably URLs) which do not need to be explicitly managed by the resource. The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event. Particularly important if these records have to be updated.)
    • addIdentifier

    • getStatusElement

      Returns:
      status (Will generally be set to show that the administration has been completed. For some long running administrations such as infusions it is possible for an administration to be started but not completed or it may be paused while some other process is under way.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
    • hasStatusElement

      public boolean hasStatusElement()
    • hasStatus

      public boolean hasStatus()
    • setStatusElement

      Parameters:
      value - status (Will generally be set to show that the administration has been completed. For some long running administrations such as infusions it is possible for an administration to be started but not completed or it may be paused while some other process is under way.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
    • getStatus

      Returns:
      Will generally be set to show that the administration has been completed. For some long running administrations such as infusions it is possible for an administration to be started but not completed or it may be paused while some other process is under way.
    • setStatus

      Parameters:
      value - Will generally be set to show that the administration has been completed. For some long running administrations such as infusions it is possible for an administration to be started but not completed or it may be paused while some other process is under way.
    • getPatient

      Returns:
      patient (The person or animal receiving the medication.)
    • hasPatient

      public boolean hasPatient()
    • setPatient

      Parameters:
      value - patient (The person or animal receiving the medication.)
    • getPatientTarget

      Returns:
      patient The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The person or animal receiving the medication.)
    • setPatientTarget

      Parameters:
      value - patient The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The person or animal receiving the medication.)
    • getPractitioner

      Returns:
      practitioner (The individual who was responsible for giving the medication to the patient.)
    • hasPractitioner

      public boolean hasPractitioner()
    • setPractitioner

      Parameters:
      value - practitioner (The individual who was responsible for giving the medication to the patient.)
    • getPractitionerTarget

      Returns:
      practitioner The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The individual who was responsible for giving the medication to the patient.)
    • setPractitionerTarget

      Parameters:
      value - practitioner The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The individual who was responsible for giving the medication to the patient.)
    • getEncounter

      Returns:
      encounter (The visit, admission or other contact between patient and health care provider the medication administration was performed as part of.)
    • hasEncounter

      public boolean hasEncounter()
    • setEncounter

      Parameters:
      value - encounter (The visit, admission or other contact between patient and health care provider the medication administration was performed as part of.)
    • getEncounterTarget

      Returns:
      encounter The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The visit, admission or other contact between patient and health care provider the medication administration was performed as part of.)
    • setEncounterTarget

      Parameters:
      value - encounter The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The visit, admission or other contact between patient and health care provider the medication administration was performed as part of.)
    • getPrescription

      Returns:
      prescription (The original request, instruction or authority to perform the administration.)
    • hasPrescription

      public boolean hasPrescription()
    • setPrescription

      Parameters:
      value - prescription (The original request, instruction or authority to perform the administration.)
    • getPrescriptionTarget

      Returns:
      prescription The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The original request, instruction or authority to perform the administration.)
    • setPrescriptionTarget

      Parameters:
      value - prescription The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The original request, instruction or authority to perform the administration.)
    • getWasNotGivenElement

      Returns:
      wasNotGiven (Set this to true if the record is saying that the medication was NOT administered.). This is the underlying object with id, value and extensions. The accessor "getWasNotGiven" gives direct access to the value
    • hasWasNotGivenElement

      public boolean hasWasNotGivenElement()
    • hasWasNotGiven

      public boolean hasWasNotGiven()
    • setWasNotGivenElement

      Parameters:
      value - wasNotGiven (Set this to true if the record is saying that the medication was NOT administered.). This is the underlying object with id, value and extensions. The accessor "getWasNotGiven" gives direct access to the value
    • getWasNotGiven

      public boolean getWasNotGiven()
      Returns:
      Set this to true if the record is saying that the medication was NOT administered.
    • setWasNotGiven

      public MedicationAdministration setWasNotGiven(boolean value)
      Parameters:
      value - Set this to true if the record is saying that the medication was NOT administered.
    • getReasonNotGiven

      Returns:
      reasonNotGiven (A code indicating why the administration was not performed.)
    • hasReasonNotGiven

      public boolean hasReasonNotGiven()
    • addReasonNotGiven

      Returns:
      reasonNotGiven (A code indicating why the administration was not performed.)
    • addReasonNotGiven

    • getReasonGiven

      Returns:
      reasonGiven (A code indicating why the medication was given.)
    • hasReasonGiven

      public boolean hasReasonGiven()
    • addReasonGiven

      Returns:
      reasonGiven (A code indicating why the medication was given.)
    • addReasonGiven

    • getEffectiveTime

      Returns:
      effectiveTime (A specific date/time or interval of time during which the administration took place (or did not take place, when the 'notGiven' attribute is true). For many administrations, such as swallowing a tablet the use of dateTime is more appropriate.)
    • getEffectiveTimeDateTimeType

      public DateTimeType getEffectiveTimeDateTimeType() throws org.hl7.fhir.exceptions.FHIRException
      Returns:
      effectiveTime (A specific date/time or interval of time during which the administration took place (or did not take place, when the 'notGiven' attribute is true). For many administrations, such as swallowing a tablet the use of dateTime is more appropriate.)
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • hasEffectiveTimeDateTimeType

      public boolean hasEffectiveTimeDateTimeType()
    • getEffectiveTimePeriod

      public Period getEffectiveTimePeriod() throws org.hl7.fhir.exceptions.FHIRException
      Returns:
      effectiveTime (A specific date/time or interval of time during which the administration took place (or did not take place, when the 'notGiven' attribute is true). For many administrations, such as swallowing a tablet the use of dateTime is more appropriate.)
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • hasEffectiveTimePeriod

      public boolean hasEffectiveTimePeriod()
    • hasEffectiveTime

      public boolean hasEffectiveTime()
    • setEffectiveTime

      Parameters:
      value - effectiveTime (A specific date/time or interval of time during which the administration took place (or did not take place, when the 'notGiven' attribute is true). For many administrations, such as swallowing a tablet the use of dateTime is more appropriate.)
    • getMedication

      public Type getMedication()
      Returns:
      medication (Identifies the medication that was 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.)
    • getMedicationCodeableConcept

      public CodeableConcept getMedicationCodeableConcept() throws org.hl7.fhir.exceptions.FHIRException
      Returns:
      medication (Identifies the medication that was 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.)
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • hasMedicationCodeableConcept

      public boolean hasMedicationCodeableConcept()
    • getMedicationReference

      public Reference getMedicationReference() throws org.hl7.fhir.exceptions.FHIRException
      Returns:
      medication (Identifies the medication that was 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.)
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • hasMedicationReference

      public boolean hasMedicationReference()
    • hasMedication

      public boolean hasMedication()
    • setMedication

      Parameters:
      value - medication (Identifies the medication that was 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.)
    • getDevice

      Returns:
      device (The device used in administering the medication to the patient. For example, a particular infusion pump.)
    • hasDevice

      public boolean hasDevice()
    • addDevice

      public Reference addDevice()
      Returns:
      device (The device used in administering the medication to the patient. For example, a particular infusion pump.)
    • addDevice

    • getDeviceTarget

      Returns:
      device (The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. The device used in administering the medication to the patient. For example, a particular infusion pump.)
    • addDeviceTarget

      Returns:
      device (Add an actual object that is the target of the reference. The reference library doesn't use these, but you can use this to hold the resources if you resolvethemt. The device used in administering the medication to the patient. For example, a particular infusion pump.)
    • getNoteElement

      Returns:
      note (Extra information about the medication administration that is not conveyed by the other attributes.). This is the underlying object with id, value and extensions. The accessor "getNote" gives direct access to the value
    • hasNoteElement

      public boolean hasNoteElement()
    • hasNote

      public boolean hasNote()
    • setNoteElement

      Parameters:
      value - note (Extra information about the medication administration that is not conveyed by the other attributes.). This is the underlying object with id, value and extensions. The accessor "getNote" gives direct access to the value
    • getNote

      public String getNote()
      Returns:
      Extra information about the medication administration that is not conveyed by the other attributes.
    • setNote

      Parameters:
      value - Extra information about the medication administration that is not conveyed by the other attributes.
    • getDosage

      Returns:
      dosage (Describes the medication dosage information details e.g. dose, rate, site, route, etc.)
    • hasDosage

      public boolean hasDosage()
    • setDosage

      Parameters:
      value - dosage (Describes the medication dosage information details e.g. dose, rate, site, route, etc.)
    • listChildren

      protected void listChildren(List<Property> childrenList)
      Overrides:
      listChildren in class DomainResource
    • setProperty

      public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • addChild

      public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      addChild in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • fhirType

      public String fhirType()
      Specified by:
      fhirType in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      fhirType in class DomainResource
    • copy

      Specified by:
      copy in class DomainResource
    • typedCopy

    • equalsDeep

      public boolean equalsDeep(Base other)
      Overrides:
      equalsDeep in class DomainResource
    • equalsShallow

      public boolean equalsShallow(Base other)
      Overrides:
      equalsShallow in class DomainResource
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      isEmpty in class DomainResource
    • getResourceType

      Specified by:
      getResourceType in class Resource