Class MedicationOrder
- 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: An order for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called \"MedicationOrder\" rather than \"MedicationPrescription\" to generalize the use across inpatient and outpatient settings as well as for care plans, etc.
Requirements:
Profile Definition: http://hl7.org/fhir/profiles/MedicationOrder
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Block class for child element: MedicationOrder.dispenseRequest ()static class
Block class for child element: MedicationOrder.dosageInstruction ()static class
Block class for child element: MedicationOrder.substitution () -
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.DateClientParam
Fluent Client search parameter constant for datewrittenstatic 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.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for medicationstatic 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 prescriberstatic final String
Search parameter constant for codestatic final String
Search parameter constant for datewrittenstatic 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 patientstatic final String
Search parameter constant for prescriberstatic 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 dosageInstruction ()Adds a given new value for dosageInstruction ()Adds and returns a new value for identifier (id)addIdentifier
(IdentifierDt theValue) Adds a given new value for identifier (id)<T extends ca.uhn.fhir.model.api.IElement>
List<T> getAllPopulatedChildElementsOfType
(Class<T> theType) Gets the value(s) for dateEnded ().ca.uhn.fhir.model.primitive.DateTimeDt
Gets the value(s) for dateEnded ().Gets the value(s) for dateWritten (when.recorded).ca.uhn.fhir.model.primitive.DateTimeDt
Gets the value(s) for dateWritten (when.recorded).Gets the value(s) for dispenseRequest ().Gets the value(s) for dosageInstruction ().Gets the first repetition for dosageInstruction (), creating it if it does not already exist.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] (what).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 prescriber (who.actor).Gets the value(s) for priorPrescription ().ca.uhn.fhir.model.api.IDatatype
Gets the value(s) for reason[x] (why).Gets the value(s) for reasonEnded ().Gets the value(s) for status (status).ca.uhn.fhir.model.primitive.BoundCodeDt
<MedicationOrderStatusEnum> Gets the value(s) for status (status).ca.uhn.fhir.context.FhirVersionEnum
Gets the value(s) for substitution ().boolean
isEmpty()
setDateEnded
(ca.uhn.fhir.model.primitive.DateTimeDt theValue) Sets the value(s) for dateEnded ()setDateEnded
(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision) Sets the value for dateEnded ()setDateEndedWithSecondsPrecision
(Date theDate) Sets the value for dateEnded ()setDateWritten
(ca.uhn.fhir.model.primitive.DateTimeDt theValue) Sets the value(s) for dateWritten (when.recorded)setDateWritten
(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision) Sets the value for dateWritten (when.recorded)setDateWrittenWithSecondsPrecision
(Date theDate) Sets the value for dateWritten (when.recorded)Sets the value(s) for dispenseRequest ()Sets the value(s) for dosageInstruction ()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] (what)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)setPrescriber
(ResourceReferenceDt theValue) Sets the value(s) for prescriber (who.actor)setPriorPrescription
(ResourceReferenceDt theValue) Sets the value(s) for priorPrescription ()setReason
(ca.uhn.fhir.model.api.IDatatype theValue) Sets the value(s) for reason[x] (why)setReasonEnded
(CodeableConceptDt theValue) Sets the value(s) for reasonEnded ()setStatus
(MedicationOrderStatusEnum theValue) Sets the value(s) for status (status)setStatus
(ca.uhn.fhir.model.primitive.BoundCodeDt<MedicationOrderStatusEnum> theValue) Sets the value(s) for status (status)setSubstitution
(MedicationOrder.Substitution theValue) Sets the value(s) for substitution ()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_DATEWRITTEN
Search parameter constant for datewrittenDescription: Return prescriptions written on this date
Type: date
Path: MedicationOrder.dateWritten
- See Also:
-
DATEWRITTEN
Fluent Client search parameter constant for datewrittenDescription: Return prescriptions written on this date
Type: date
Path: MedicationOrder.dateWritten
-
SP_ENCOUNTER
Search parameter constant for encounterDescription: Return prescriptions with this encounter identifier
Type: reference
Path: MedicationOrder.encounter
- See Also:
-
ENCOUNTER
Fluent Client search parameter constant for encounterDescription: Return prescriptions with this encounter identifier
Type: reference
Path: MedicationOrder.encounter
-
SP_IDENTIFIER
Search parameter constant for identifierDescription: Return prescriptions with this external identifier
Type: token
Path: MedicationOrder.identifier
- See Also:
-
IDENTIFIER
Fluent Client search parameter constant for identifierDescription: Return prescriptions with this external identifier
Type: token
Path: MedicationOrder.identifier
-
SP_MEDICATION
Search parameter constant for medicationDescription: Return administrations of this medication reference
Type: reference
Path: MedicationOrder.medicationReference
- See Also:
-
MEDICATION
Fluent Client search parameter constant for medicationDescription: Return administrations of this medication reference
Type: reference
Path: MedicationOrder.medicationReference
-
SP_CODE
Search parameter constant for codeDescription: Return administrations of this medication code
Type: token
Path: MedicationOrder.medicationCodeableConcept
- See Also:
-
CODE
Fluent Client search parameter constant for codeDescription: Return administrations of this medication code
Type: token
Path: MedicationOrder.medicationCodeableConcept
-
SP_PATIENT
Search parameter constant for patientDescription: The identity of a patient to list orders for
Type: reference
Path: MedicationOrder.patient
- See Also:
-
PATIENT
Fluent Client search parameter constant for patientDescription: The identity of a patient to list orders for
Type: reference
Path: MedicationOrder.patient
-
SP_STATUS
Search parameter constant for statusDescription: Status of the prescription
Type: token
Path: MedicationOrder.status
- See Also:
-
STATUS
Fluent Client search parameter constant for statusDescription: Status of the prescription
Type: token
Path: MedicationOrder.status
-
SP_PRESCRIBER
Search parameter constant for prescriberDescription:
Type: reference
Path: MedicationOrder.prescriber
- See Also:
-
PRESCRIBER
Fluent Client search parameter constant for prescriberDescription:
Type: reference
Path: MedicationOrder.prescriber
-
INCLUDE_ENCOUNTER
Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationOrder:encounter". -
INCLUDE_MEDICATION
Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationOrder:medication". -
INCLUDE_PATIENT
Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationOrder:patient". -
INCLUDE_PRESCRIBER
Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationOrder:prescriber".
-
-
Constructor Details
-
MedicationOrder
public MedicationOrder()
-
-
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 - one that would be used by another non-FHIR system - for example a re-imbursement system might issue its own id for each prescription that is created. This is particularly important where FHIR only provides part of an entire workflow process where records have to be tracked through an entire system.
-
setIdentifier
Sets the value(s) for identifier (id)Definition: External identifier - one that would be used by another non-FHIR system - for example a re-imbursement system might issue its own id for each prescription that is created. This is particularly important where FHIR only provides part of an entire workflow process where records have to be tracked through an entire system.
-
addIdentifier
Adds and returns a new value for identifier (id)Definition: External identifier - one that would be used by another non-FHIR system - for example a re-imbursement system might issue its own id for each prescription that is created. This is particularly important where FHIR only provides part of an entire workflow process where records have to be tracked through an entire system.
-
addIdentifier
Adds a given new value for identifier (id)Definition: External identifier - one that would be used by another non-FHIR system - for example a re-imbursement system might issue its own id for each prescription that is created. This is particularly important where FHIR only provides part of an entire workflow process where records have to be tracked through an entire system.
- 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 - one that would be used by another non-FHIR system - for example a re-imbursement system might issue its own id for each prescription that is created. This is particularly important where FHIR only provides part of an entire workflow process where records have to be tracked through an entire system.
-
getDateWrittenElement
Gets the value(s) for dateWritten (when.recorded). creating it if it does not exist. Will not returnnull
.Definition: The date (and perhaps time) when the prescription was written
-
getDateWritten
Gets the value(s) for dateWritten (when.recorded). creating it if it does not exist. This method may returnnull
.Definition: The date (and perhaps time) when the prescription was written
-
setDateWritten
Sets the value(s) for dateWritten (when.recorded)Definition: The date (and perhaps time) when the prescription was written
-
setDateWrittenWithSecondsPrecision
Sets the value for dateWritten (when.recorded)Definition: The date (and perhaps time) when the prescription was written
-
setDateWritten
public MedicationOrder setDateWritten(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision) Sets the value for dateWritten (when.recorded)Definition: The date (and perhaps time) when the prescription was written
-
getStatusElement
Gets the value(s) for status (status). creating it if it does not exist. Will not returnnull
.Definition: A code specifying the state of the order. Generally this will be active or completed state
-
getStatus
Gets the value(s) for status (status). creating it if it does not exist. This method may returnnull
.Definition: A code specifying the state of the order. Generally this will be active or completed state
-
setStatus
public MedicationOrder setStatus(ca.uhn.fhir.model.primitive.BoundCodeDt<MedicationOrderStatusEnum> theValue) Sets the value(s) for status (status)Definition: A code specifying the state of the order. Generally this will be active or completed state
-
setStatus
Sets the value(s) for status (status)Definition: A code specifying the state of the order. Generally this will be active or completed state
-
getDateEndedElement
Gets the value(s) for dateEnded (). creating it if it does not exist. Will not returnnull
.Definition: The date (and perhaps time) when the prescription was stopped
-
getDateEnded
Gets the value(s) for dateEnded (). creating it if it does not exist. This method may returnnull
.Definition: The date (and perhaps time) when the prescription was stopped
-
setDateEnded
Sets the value(s) for dateEnded ()Definition: The date (and perhaps time) when the prescription was stopped
-
setDateEndedWithSecondsPrecision
Sets the value for dateEnded ()Definition: The date (and perhaps time) when the prescription was stopped
-
setDateEnded
public MedicationOrder setDateEnded(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision) Sets the value for dateEnded ()Definition: The date (and perhaps time) when the prescription was stopped
-
getReasonEnded
Gets the value(s) for reasonEnded (). creating it if it does not exist. Will not returnnull
.Definition: The reason why the prescription was stopped, if it was
-
setReasonEnded
Sets the value(s) for reasonEnded ()Definition: The reason why the prescription was stopped, if it was
-
getPatient
Gets the value(s) for patient (who.focus). creating it if it does not exist. Will not returnnull
.Definition: A link to a resource representing the person to whom the medication will be given.
-
setPatient
Sets the value(s) for patient (who.focus)Definition: A link to a resource representing the person to whom the medication will be given.
-
getPrescriber
Gets the value(s) for prescriber (who.actor). creating it if it does not exist. Will not returnnull
.Definition: The healthcare professional responsible for authorizing the prescription
-
setPrescriber
Sets the value(s) for prescriber (who.actor)Definition: The healthcare professional responsible for authorizing the prescription
-
getEncounter
Gets the value(s) for encounter (context). creating it if it does not exist. Will not returnnull
.Definition: A link to a resource that identifies the particular occurrence of contact between patient and health care provider.
-
setEncounter
Sets the value(s) for encounter (context)Definition: A link to a resource that identifies the particular occurrence of contact between patient and health care provider.
-
getReason
Gets the value(s) for reason[x] (why). creating it if it does not exist. Will not returnnull
.Definition: Can be the reason or the indication for writing the prescription.
-
setReason
Sets the value(s) for reason[x] (why)Definition: Can be the reason or the indication for writing the prescription.
-
getNoteElement
Gets the value(s) for note (). creating it if it does not exist. Will not returnnull
.Definition: Extra information about the prescription that could not be 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 prescription that could not be conveyed by the other attributes.
-
setNote
Sets the value(s) for note ()Definition: Extra information about the prescription that could not be conveyed by the other attributes.
-
setNote
Sets the value for note ()Definition: Extra information about the prescription that could not be conveyed by the other attributes.
-
getMedication
Gets the value(s) for medication[x] (what). creating it if it does not exist. Will not returnnull
.Definition: Identifies the medication being administered. This is a link to a resource that represents the medication which may be the details of the medication or simply an attribute carrying a code that identifies the medication from a known list of medications.
-
setMedication
Sets the value(s) for medication[x] (what)Definition: Identifies the medication being administered. This is a link to a resource that represents the medication which may be the details of the medication or simply an attribute carrying a code that identifies the medication from a known list of medications.
-
getDosageInstruction
Gets the value(s) for dosageInstruction (). creating it if it does not exist. Will not returnnull
.Definition: Indicates how the medication is to be used by the patient
-
setDosageInstruction
Sets the value(s) for dosageInstruction ()Definition: Indicates how the medication is to be used by the patient
-
addDosageInstruction
Adds and returns a new value for dosageInstruction ()Definition: Indicates how the medication is to be used by the patient
-
addDosageInstruction
Adds a given new value for dosageInstruction ()Definition: Indicates how the medication is to be used by the patient
- Parameters:
theValue
- The dosageInstruction to add (must not benull
)
-
getDosageInstructionFirstRep
Gets the first repetition for dosageInstruction (), creating it if it does not already exist.Definition: Indicates how the medication is to be used by the patient
-
getDispenseRequest
Gets the value(s) for dispenseRequest (). creating it if it does not exist. Will not returnnull
.Definition: Indicates the specific details for the dispense or medication supply part of a medication order (also known as a Medication Prescription). Note that this information is NOT always sent with the order. There may be in some settings (e.g. hospitals) institutional or system support for completing the dispense details in the pharmacy department.
-
setDispenseRequest
Sets the value(s) for dispenseRequest ()Definition: Indicates the specific details for the dispense or medication supply part of a medication order (also known as a Medication Prescription). Note that this information is NOT always sent with the order. There may be in some settings (e.g. hospitals) institutional or system support for completing the dispense details in the pharmacy department.
-
getSubstitution
Gets the value(s) for substitution (). creating it if it does not exist. Will not returnnull
.Definition: Indicates whether or not substitution can or should be part of the dispense. In some cases substitution must happen, in other cases substitution must not happen, and in others it does not matter. This block explains the prescriber's intent. If nothing is specified substitution may be done.
-
setSubstitution
Sets the value(s) for substitution ()Definition: Indicates whether or not substitution can or should be part of the dispense. In some cases substitution must happen, in other cases substitution must not happen, and in others it does not matter. This block explains the prescriber's intent. If nothing is specified substitution may be done.
-
getPriorPrescription
Gets the value(s) for priorPrescription (). creating it if it does not exist. Will not returnnull
.Definition: A link to a resource representing an earlier order or prescription that this order supersedes
-
setPriorPrescription
Sets the value(s) for priorPrescription ()Definition: A link to a resource representing an earlier order or prescription that this order supersedes
-
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
-