Class MedicationAdministration
- All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeElement
,ca.uhn.fhir.model.api.IElement
,ca.uhn.fhir.model.api.IResource
,ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions
,Serializable
,org.hl7.fhir.instance.model.api.IBase
,org.hl7.fhir.instance.model.api.IBaseResource
Definition: 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
Requirements:
Profile Definition: http://hl7.org/fhir/profiles/MedicationAdministration
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Block class for child element: MedicationAdministration.dosage () -
Field Summary
Modifier and TypeFieldDescriptionstatic final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for codestatic final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for devicestatic final ca.uhn.fhir.rest.gclient.DateClientParam
Fluent Client search parameter constant for effectivetimestatic final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for encounterstatic final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for identifierstatic final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for medicationstatic final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for notgivenstatic final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for patientstatic final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for practitionerstatic final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for prescriptionstatic final String
Search parameter constant for codestatic final String
Search parameter constant for devicestatic final String
Search parameter constant for effectivetimestatic final String
Search parameter constant for encounterstatic final String
Search parameter constant for identifierstatic final String
Search parameter constant for medicationstatic final String
Search parameter constant for notgivenstatic final String
Search parameter constant for patientstatic final String
Search parameter constant for practitionerstatic final String
Search parameter constant for prescriptionstatic final String
Search parameter constant for statusstatic final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for statusFields inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
RES_ID, SP_RES_ID
Fields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds and returns a new value for device ()Adds and returns a new value for identifier (id)addIdentifier
(IdentifierDt theValue) Adds a given new value for identifier (id)Adds and returns a new value for reasonGiven ()addReasonGiven
(CodeableConceptDt theValue) Adds a given new value for reasonGiven ()Adds and returns a new value for reasonNotGiven ()addReasonNotGiven
(CodeableConceptDt theValue) Adds a given new value for reasonNotGiven ()<T extends ca.uhn.fhir.model.api.IElement>
List<T> getAllPopulatedChildElementsOfType
(Class<T> theType) Gets the value(s) for device ().Gets the value(s) for dosage ().ca.uhn.fhir.model.api.IDatatype
Gets the value(s) for effectiveTime[x] (when.done).Gets the value(s) for encounter (context).Gets the value(s) for identifier (id).Gets the first repetition for identifier (id), creating it if it does not already exist.ca.uhn.fhir.model.api.IDatatype
Gets the value(s) for medication[x] ().getNote()
Gets the value(s) for note ().ca.uhn.fhir.model.primitive.StringDt
Gets the value(s) for note ().Gets the value(s) for patient (who.focus).Gets the value(s) for practitioner (who.actor).Gets the value(s) for prescription ().Gets the value(s) for reasonGiven ().Gets the first repetition for reasonGiven (), creating it if it does not already exist.Gets the value(s) for reasonNotGiven ().Gets the first repetition for reasonNotGiven (), creating it if it does not already exist.Gets the value(s) for status (status).ca.uhn.fhir.model.primitive.BoundCodeDt
<MedicationAdministrationStatusEnum> Gets the value(s) for status (status).ca.uhn.fhir.context.FhirVersionEnum
Gets the value(s) for wasNotGiven ().ca.uhn.fhir.model.primitive.BooleanDt
Gets the value(s) for wasNotGiven ().boolean
isEmpty()
setDevice
(List<ResourceReferenceDt> theValue) Sets the value(s) for device ()setDosage
(MedicationAdministration.Dosage theValue) Sets the value(s) for dosage ()setEffectiveTime
(ca.uhn.fhir.model.api.IDatatype theValue) Sets the value(s) for effectiveTime[x] (when.done)setEncounter
(ResourceReferenceDt theValue) Sets the value(s) for encounter (context)setIdentifier
(List<IdentifierDt> theValue) Sets the value(s) for identifier (id)setMedication
(ca.uhn.fhir.model.api.IDatatype theValue) Sets the value(s) for medication[x] ()setNote
(ca.uhn.fhir.model.primitive.StringDt theValue) Sets the value(s) for note ()Sets the value for note ()setPatient
(ResourceReferenceDt theValue) Sets the value(s) for patient (who.focus)setPractitioner
(ResourceReferenceDt theValue) Sets the value(s) for practitioner (who.actor)setPrescription
(ResourceReferenceDt theValue) Sets the value(s) for prescription ()setReasonGiven
(List<CodeableConceptDt> theValue) Sets the value(s) for reasonGiven ()setReasonNotGiven
(List<CodeableConceptDt> theValue) Sets the value(s) for reasonNotGiven ()setStatus
(MedicationAdministrationStatusEnum theValue) Sets the value(s) for status (status)setStatus
(ca.uhn.fhir.model.primitive.BoundCodeDt<MedicationAdministrationStatusEnum> theValue) Sets the value(s) for status (status)setWasNotGiven
(boolean theBoolean) Sets the value for wasNotGiven ()setWasNotGiven
(ca.uhn.fhir.model.primitive.BooleanDt theValue) Sets the value(s) for wasNotGiven ()Methods inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
getContained, getId, getIdElement, getLanguage, getMeta, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setId, setLanguage, setResourceMetadata, setText, toString
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, setUserData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
getIdElement, isDeleted, setId, setId
Methods inherited from interface ca.uhn.fhir.model.api.IResource
getContained, getId, getLanguage, getMeta, getResourceMetadata, getText, setId, setLanguage, setResourceMetadata
-
Field Details
-
SP_DEVICE
Search parameter constant for deviceDescription: Return administrations with this administration device identity
Type: reference
Path: MedicationAdministration.device
- See Also:
-
DEVICE
Fluent Client search parameter constant for deviceDescription: Return administrations with this administration device identity
Type: reference
Path: MedicationAdministration.device
-
SP_ENCOUNTER
Search parameter constant for encounterDescription: Return administrations that share this encounter
Type: reference
Path: MedicationAdministration.encounter
- See Also:
-
ENCOUNTER
Fluent Client search parameter constant for encounterDescription: Return administrations that share this encounter
Type: reference
Path: MedicationAdministration.encounter
-
SP_IDENTIFIER
Search parameter constant for identifierDescription: Return administrations with this external identifier
Type: token
Path: MedicationAdministration.identifier
- See Also:
-
IDENTIFIER
Fluent Client search parameter constant for identifierDescription: Return administrations with this external identifier
Type: token
Path: MedicationAdministration.identifier
-
SP_MEDICATION
Search parameter constant for medicationDescription: Return administrations of this medication resource
Type: reference
Path: MedicationAdministration.medicationReference
- See Also:
-
MEDICATION
Fluent Client search parameter constant for medicationDescription: Return administrations of this medication resource
Type: reference
Path: MedicationAdministration.medicationReference
-
SP_CODE
Search parameter constant for codeDescription: Return administrations of this medication code
Type: token
Path: MedicationAdministration.medicationCodeableConcept
- See Also:
-
CODE
Fluent Client search parameter constant for codeDescription: Return administrations of this medication code
Type: token
Path: MedicationAdministration.medicationCodeableConcept
-
SP_NOTGIVEN
Search parameter constant for notgivenDescription: Administrations that were not made
Type: token
Path: MedicationAdministration.wasNotGiven
- See Also:
-
NOTGIVEN
Fluent Client search parameter constant for notgivenDescription: Administrations that were not made
Type: token
Path: MedicationAdministration.wasNotGiven
-
SP_PATIENT
Search parameter constant for patientDescription: The identity of a patient to list administrations for
Type: reference
Path: MedicationAdministration.patient
- See Also:
-
PATIENT
Fluent Client search parameter constant for patientDescription: The identity of a patient to list administrations for
Type: reference
Path: MedicationAdministration.patient
-
SP_PRESCRIPTION
Search parameter constant for prescriptionDescription: The identity of a prescription to list administrations from
Type: reference
Path: MedicationAdministration.prescription
- See Also:
-
PRESCRIPTION
Fluent Client search parameter constant for prescriptionDescription: The identity of a prescription to list administrations from
Type: reference
Path: MedicationAdministration.prescription
-
SP_STATUS
Search parameter constant for statusDescription: MedicationAdministration event status (for example one of active/paused/completed/nullified)
Type: token
Path: MedicationAdministration.status
- See Also:
-
STATUS
Fluent Client search parameter constant for statusDescription: MedicationAdministration event status (for example one of active/paused/completed/nullified)
Type: token
Path: MedicationAdministration.status
-
SP_EFFECTIVETIME
Search parameter constant for effectivetimeDescription: Date administration happened (or did not happen)
Type: date
Path: MedicationAdministration.effectiveTime[x]
- See Also:
-
EFFECTIVETIME
Fluent Client search parameter constant for effectivetimeDescription: Date administration happened (or did not happen)
Type: date
Path: MedicationAdministration.effectiveTime[x]
-
SP_PRACTITIONER
Search parameter constant for practitionerDescription:
Type: reference
Path: MedicationAdministration.practitioner
- See Also:
-
PRACTITIONER
Fluent Client search parameter constant for practitionerDescription:
Type: reference
Path: MedicationAdministration.practitioner
-
INCLUDE_DEVICE
Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationAdministration:device". -
INCLUDE_ENCOUNTER
Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationAdministration:encounter". -
INCLUDE_MEDICATION
Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationAdministration:medication". -
INCLUDE_PATIENT
Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationAdministration:patient". -
INCLUDE_PRACTITIONER
Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationAdministration:practitioner". -
INCLUDE_PRESCRIPTION
Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationAdministration:prescription".
-
-
Constructor Details
-
MedicationAdministration
public MedicationAdministration()
-
-
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
-
getIdentifier
Gets the value(s) for identifier (id). creating it if it does not exist. Will not returnnull
.Definition: 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.
-
setIdentifier
Sets the value(s) for identifier (id)Definition: 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
Adds and returns a new value for identifier (id)Definition: 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
Adds a given new value for identifier (id)Definition: 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.
- Parameters:
theValue
- The identifier to add (must not benull
)
-
getIdentifierFirstRep
Gets the first repetition for identifier (id), creating it if it does not already exist.Definition: 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.
-
getStatusElement
public ca.uhn.fhir.model.primitive.BoundCodeDt<MedicationAdministrationStatusEnum> getStatusElement()Gets the value(s) for status (status). creating it if it does not exist. Will not returnnull
.Definition: 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.
-
getStatus
Gets the value(s) for status (status). creating it if it does not exist. This method may returnnull
.Definition: 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
public MedicationAdministration setStatus(ca.uhn.fhir.model.primitive.BoundCodeDt<MedicationAdministrationStatusEnum> theValue) Sets the value(s) for status (status)Definition: 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
Sets the value(s) for status (status)Definition: 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
Gets the value(s) for patient (who.focus). creating it if it does not exist. Will not returnnull
.Definition: The person or animal receiving the medication.
-
setPatient
Sets the value(s) for patient (who.focus)Definition: The person or animal receiving the medication.
-
getPractitioner
Gets the value(s) for practitioner (who.actor). creating it if it does not exist. Will not returnnull
.Definition: The individual who was responsible for giving the medication to the patient.
-
setPractitioner
Sets the value(s) for practitioner (who.actor)Definition: The individual who was responsible for giving the medication to the patient.
-
getEncounter
Gets the value(s) for encounter (context). creating it if it does not exist. Will not returnnull
.Definition: The visit, admission or other contact between patient and health care provider the medication administration was performed as part of.
-
setEncounter
Sets the value(s) for encounter (context)Definition: The visit, admission or other contact between patient and health care provider the medication administration was performed as part of.
-
getPrescription
Gets the value(s) for prescription (). creating it if it does not exist. Will not returnnull
.Definition: The original request, instruction or authority to perform the administration.
-
setPrescription
Sets the value(s) for prescription ()Definition: The original request, instruction or authority to perform the administration.
-
getWasNotGivenElement
Gets the value(s) for wasNotGiven (). creating it if it does not exist. Will not returnnull
.Definition: Set this to true if the record is saying that the medication was NOT administered.
-
getWasNotGiven
Gets the value(s) for wasNotGiven (). creating it if it does not exist. This method may returnnull
.Definition: Set this to true if the record is saying that the medication was NOT administered.
-
setWasNotGiven
Sets the value(s) for wasNotGiven ()Definition: Set this to true if the record is saying that the medication was NOT administered.
-
setWasNotGiven
Sets the value for wasNotGiven ()Definition: Set this to true if the record is saying that the medication was NOT administered.
-
getReasonNotGiven
Gets the value(s) for reasonNotGiven (). creating it if it does not exist. Will not returnnull
.Definition: A code indicating why the administration was not performed.
-
setReasonNotGiven
Sets the value(s) for reasonNotGiven ()Definition: A code indicating why the administration was not performed.
-
addReasonNotGiven
Adds and returns a new value for reasonNotGiven ()Definition: A code indicating why the administration was not performed.
-
addReasonNotGiven
Adds a given new value for reasonNotGiven ()Definition: A code indicating why the administration was not performed.
- Parameters:
theValue
- The reasonNotGiven to add (must not benull
)
-
getReasonNotGivenFirstRep
Gets the first repetition for reasonNotGiven (), creating it if it does not already exist.Definition: A code indicating why the administration was not performed.
-
getReasonGiven
Gets the value(s) for reasonGiven (). creating it if it does not exist. Will not returnnull
.Definition: A code indicating why the medication was given.
-
setReasonGiven
Sets the value(s) for reasonGiven ()Definition: A code indicating why the medication was given.
-
addReasonGiven
Adds and returns a new value for reasonGiven ()Definition: A code indicating why the medication was given.
-
addReasonGiven
Adds a given new value for reasonGiven ()Definition: A code indicating why the medication was given.
- Parameters:
theValue
- The reasonGiven to add (must not benull
)
-
getReasonGivenFirstRep
Gets the first repetition for reasonGiven (), creating it if it does not already exist.Definition: A code indicating why the medication was given.
-
getEffectiveTime
Gets the value(s) for effectiveTime[x] (when.done). creating it if it does not exist. Will not returnnull
.Definition: 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.
-
setEffectiveTime
Sets the value(s) for effectiveTime[x] (when.done)Definition: 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
Gets the value(s) for medication[x] (). creating it if it does not exist. Will not returnnull
.Definition: 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.
-
setMedication
Sets the value(s) for medication[x] ()Definition: 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
Gets the value(s) for device (). creating it if it does not exist. Will not returnnull
.Definition: The device used in administering the medication to the patient. For example, a particular infusion pump
-
setDevice
Sets the value(s) for device ()Definition: The device used in administering the medication to the patient. For example, a particular infusion pump
-
addDevice
Adds and returns a new value for device ()Definition: The device used in administering the medication to the patient. For example, a particular infusion pump
-
getNoteElement
Gets the value(s) for note (). creating it if it does not exist. Will not returnnull
.Definition: Extra information about the medication administration that is not conveyed by the other attributes.
-
getNote
Gets the value(s) for note (). creating it if it does not exist. This method may returnnull
.Definition: Extra information about the medication administration that is not conveyed by the other attributes.
-
setNote
Sets the value(s) for note ()Definition: Extra information about the medication administration that is not conveyed by the other attributes.
-
setNote
Sets the value for note ()Definition: Extra information about the medication administration that is not conveyed by the other attributes.
-
getDosage
Gets the value(s) for dosage (). creating it if it does not exist. Will not returnnull
.Definition: Describes the medication dosage information details e.g. dose, rate, site, route, etc.
-
setDosage
Sets the value(s) for dosage ()Definition: Describes the medication dosage information details e.g. dose, rate, site, route, etc.
-
getResourceName
- Specified by:
getResourceName
in interfaceca.uhn.fhir.model.api.IResource
-
getStructureFhirVersionEnum
- Specified by:
getStructureFhirVersionEnum
in interfaceorg.hl7.fhir.instance.model.api.IBaseResource
- Specified by:
getStructureFhirVersionEnum
in interfaceca.uhn.fhir.model.api.IResource
-