Package org.hl7.fhir.dstu2.model
Class MedicationAdministration
java.lang.Object
org.hl7.fhir.dstu2.model.Base
org.hl7.fhir.dstu2.model.BaseResource
org.hl7.fhir.dstu2.model.Resource
org.hl7.fhir.dstu2.model.DomainResource
org.hl7.fhir.dstu2.model.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:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static enum
static class
-
Field Summary
Modifier and TypeFieldDescriptionThe device used in administering the medication to the patient.The actual objects that are the target of the reference (The device used in administering the medication to the patient.Describes the medication dosage information details e.g.protected Type
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).protected Reference
The visit, admission or other contact between patient and health care provider the medication administration was performed as part of.protected Encounter
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.)protected List
<Identifier> External identifier - FHIR will generate its own internal identifiers (probably URLs) which do not need to be explicitly managed by the resource.protected Type
Identifies the medication that was administered.protected StringType
Extra information about the medication administration that is not conveyed by the other attributes.protected Reference
The person or animal receiving the medication.protected Patient
The actual object that is the target of the reference (The person or animal receiving the medication.)protected Reference
The individual who was responsible for giving the medication to the patient.protected Resource
The actual object that is the target of the reference (The individual who was responsible for giving the medication to the patient.)protected Reference
The original request, instruction or authority to perform the administration.protected MedicationOrder
The actual object that is the target of the reference (The original request, instruction or authority to perform the administration.)protected List
<CodeableConcept> A code indicating why the medication was given.protected List
<CodeableConcept> A code indicating why the administration was not performed.static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Will generally be set to show that the administration has been completed.protected BooleanType
Set this to true if the record is saying that the medication was NOT administered.Fields inherited from class org.hl7.fhir.dstu2.model.DomainResource
contained, extension, modifierExtension, text
Fields inherited from class org.hl7.fhir.dstu2.model.Resource
id, implicitRules, language, meta
Fields inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
RES_ID, RES_LAST_UPDATED, RES_PROFILE, RES_SECURITY, RES_TAG, SP_RES_ID, SP_RES_LAST_UPDATED, SP_RES_PROFILE, SP_RES_SECURITY, SP_RES_TAG
Fields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET
-
Constructor Summary
ConstructorDescriptionMedicationAdministration
(Enumeration<MedicationAdministration.MedicationAdministrationStatus> status, Reference patient, Type effectiveTime, Type medication) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
boolean
equalsDeep
(Base other) boolean
equalsShallow
(Base other) fhirType()
getNote()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
hasNote()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isEmpty()
protected void
listChildren
(List<Property> childrenList) setEffectiveTime
(Type value) setEncounter
(Reference value) setEncounterTarget
(Encounter value) setMedication
(Type value) setNoteElement
(StringType value) setPatient
(Reference value) setPatientTarget
(Patient value) setPractitioner
(Reference value) setPractitionerTarget
(Resource value) setPrescription
(Reference value) void
setProperty
(String name, Base value) setWasNotGiven
(boolean value) setWasNotGivenElement
(BooleanType value) protected MedicationAdministration
Methods inherited from class org.hl7.fhir.dstu2.model.DomainResource
addContained, addExtension, addExtension, addModifierExtension, addModifierExtension, copyValues, getContained, getExtension, getExtensionByUrl, getModifierExtension, getText, hasContained, hasExtension, hasExtension, hasModifierExtension, hasText, setText
Methods inherited from class org.hl7.fhir.dstu2.model.Resource
copyValues, getId, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
Methods inherited from class org.hl7.fhir.dstu2.model.BaseResource
getStructureFhirVersionEnum, setId
Methods inherited from class org.hl7.fhir.dstu2.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, primitiveValue, setUserData, setUserDataINN
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getId, getIdElement, getLanguageElement, getUserData, setId, setUserData
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, hasFormatComment
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
getMeta, getStructureFhirVersionEnum, isDeleted, setId
-
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
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
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
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
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
The device used in administering the medication to the patient. For example, a particular infusion pump. -
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
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
- See Also:
-
SP_CODE
- See Also:
-
SP_PRESCRIPTION
- See Also:
-
SP_EFFECTIVETIME
- See Also:
-
SP_PRACTITIONER
- See Also:
-
SP_PATIENT
- See Also:
-
SP_MEDICATION
- See Also:
-
SP_ENCOUNTER
- See Also:
-
SP_DEVICE
- See Also:
-
SP_NOTGIVEN
- See Also:
-
SP_STATUS
- See Also:
-
-
Constructor Details
-
MedicationAdministration
public MedicationAdministration() -
MedicationAdministration
public MedicationAdministration(Enumeration<MedicationAdministration.MedicationAdministrationStatus> status, Reference patient, Type effectiveTime, Type medication)
-
-
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
-
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
-
hasStatus
-
setStatusElement
public MedicationAdministration setStatusElement(Enumeration<MedicationAdministration.MedicationAdministrationStatus> value) - 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
public MedicationAdministration setStatus(MedicationAdministration.MedicationAdministrationStatus value) - 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
-
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
-
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
-
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
-
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
-
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
- Returns:
- Set this to true if the record is saying that the medication was NOT administered.
-
setWasNotGiven
- 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
-
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
-
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
- 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
-
getEffectiveTimePeriod
- 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
-
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
- 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
- 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
-
getMedicationReference
- 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
-
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
-
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
-
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
- 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
-
setDosage
public MedicationAdministration setDosage(MedicationAdministration.MedicationAdministrationDosageComponent value) - Parameters:
value
-dosage
(Describes the medication dosage information details e.g. dose, rate, site, route, etc.)
-
listChildren
- Overrides:
listChildren
in classDomainResource
-
setProperty
- Overrides:
setProperty
in classDomainResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
- Overrides:
addChild
in classDomainResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
- Specified by:
fhirType
in interfaceorg.hl7.fhir.instance.model.api.IBase
- Overrides:
fhirType
in classDomainResource
-
copy
- Specified by:
copy
in classDomainResource
-
typedCopy
-
equalsDeep
- Overrides:
equalsDeep
in classDomainResource
-
equalsShallow
- Overrides:
equalsShallow
in classDomainResource
-
isEmpty
- Specified by:
isEmpty
in interfaceorg.hl7.fhir.instance.model.api.IBase
- Overrides:
isEmpty
in classDomainResource
-
getResourceType
- Specified by:
getResourceType
in classResource
-