Class MedicationAdministration
- java.lang.Object
-
- ca.uhn.fhir.model.api.BaseElement
-
- ca.uhn.fhir.model.dstu2.resource.BaseResource
-
- ca.uhn.fhir.model.dstu2.resource.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
public class MedicationAdministration extends BaseResource implements ca.uhn.fhir.model.api.IResource
HAPI/FHIR MedicationAdministration Resource (clinical.medication)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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMedicationAdministration.DosageBlock class for child element: MedicationAdministration.dosage ()
-
Field Summary
Fields Modifier and Type Field Description static ca.uhn.fhir.rest.gclient.TokenClientParamCODEFluent Client search parameter constant for codestatic ca.uhn.fhir.rest.gclient.ReferenceClientParamDEVICEFluent Client search parameter constant for devicestatic ca.uhn.fhir.rest.gclient.DateClientParamEFFECTIVETIMEFluent Client search parameter constant for effectivetimestatic ca.uhn.fhir.rest.gclient.ReferenceClientParamENCOUNTERFluent Client search parameter constant for encounterstatic ca.uhn.fhir.rest.gclient.TokenClientParamIDENTIFIERFluent Client search parameter constant for identifierstatic ca.uhn.fhir.model.api.IncludeINCLUDE_DEVICEConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_ENCOUNTERConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_MEDICATIONConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_PATIENTConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_PRACTITIONERConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_PRESCRIPTIONConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.rest.gclient.ReferenceClientParamMEDICATIONFluent Client search parameter constant for medicationstatic ca.uhn.fhir.rest.gclient.TokenClientParamNOTGIVENFluent Client search parameter constant for notgivenstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamPATIENTFluent Client search parameter constant for patientstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamPRACTITIONERFluent Client search parameter constant for practitionerstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamPRESCRIPTIONFluent Client search parameter constant for prescriptionstatic StringSP_CODESearch parameter constant for codestatic StringSP_DEVICESearch parameter constant for devicestatic StringSP_EFFECTIVETIMESearch parameter constant for effectivetimestatic StringSP_ENCOUNTERSearch parameter constant for encounterstatic StringSP_IDENTIFIERSearch parameter constant for identifierstatic StringSP_MEDICATIONSearch parameter constant for medicationstatic StringSP_NOTGIVENSearch parameter constant for notgivenstatic StringSP_PATIENTSearch parameter constant for patientstatic StringSP_PRACTITIONERSearch parameter constant for practitionerstatic StringSP_PRESCRIPTIONSearch parameter constant for prescriptionstatic StringSP_STATUSSearch parameter constant for statusstatic ca.uhn.fhir.rest.gclient.TokenClientParamSTATUSFluent Client search parameter constant for status-
Fields inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
RES_ID, SP_RES_ID, SP_RES_LANGUAGE
-
-
Constructor Summary
Constructors Constructor Description MedicationAdministration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceReferenceDtaddDevice()Adds and returns a new value for device ()IdentifierDtaddIdentifier()Adds and returns a new value for identifier (id)MedicationAdministrationaddIdentifier(IdentifierDt theValue)Adds a given new value for identifier (id)CodeableConceptDtaddReasonGiven()Adds and returns a new value for reasonGiven ()MedicationAdministrationaddReasonGiven(CodeableConceptDt theValue)Adds a given new value for reasonGiven ()CodeableConceptDtaddReasonNotGiven()Adds and returns a new value for reasonNotGiven ()MedicationAdministrationaddReasonNotGiven(CodeableConceptDt theValue)Adds a given new value for reasonNotGiven ()<T extends ca.uhn.fhir.model.api.IElement>
List<T>getAllPopulatedChildElementsOfType(Class<T> theType)List<ResourceReferenceDt>getDevice()Gets the value(s) for device ().MedicationAdministration.DosagegetDosage()Gets the value(s) for dosage ().ca.uhn.fhir.model.api.IDatatypegetEffectiveTime()Gets the value(s) for effectiveTime[x] (when.done).ResourceReferenceDtgetEncounter()Gets the value(s) for encounter (context).List<IdentifierDt>getIdentifier()Gets the value(s) for identifier (id).IdentifierDtgetIdentifierFirstRep()Gets the first repetition for identifier (id), creating it if it does not already exist.ca.uhn.fhir.model.api.IDatatypegetMedication()Gets the value(s) for medication[x] ().StringgetNote()Gets the value(s) for note ().ca.uhn.fhir.model.primitive.StringDtgetNoteElement()Gets the value(s) for note ().ResourceReferenceDtgetPatient()Gets the value(s) for patient (who.focus).ResourceReferenceDtgetPractitioner()Gets the value(s) for practitioner (who.actor).ResourceReferenceDtgetPrescription()Gets the value(s) for prescription ().List<CodeableConceptDt>getReasonGiven()Gets the value(s) for reasonGiven ().CodeableConceptDtgetReasonGivenFirstRep()Gets the first repetition for reasonGiven (), creating it if it does not already exist.List<CodeableConceptDt>getReasonNotGiven()Gets the value(s) for reasonNotGiven ().CodeableConceptDtgetReasonNotGivenFirstRep()Gets the first repetition for reasonNotGiven (), creating it if it does not already exist.StringgetResourceName()StringgetStatus()Gets the value(s) for status (status).ca.uhn.fhir.model.primitive.BoundCodeDt<MedicationAdministrationStatusEnum>getStatusElement()Gets the value(s) for status (status).ca.uhn.fhir.context.FhirVersionEnumgetStructureFhirVersionEnum()BooleangetWasNotGiven()Gets the value(s) for wasNotGiven ().ca.uhn.fhir.model.primitive.BooleanDtgetWasNotGivenElement()Gets the value(s) for wasNotGiven ().booleanisEmpty()MedicationAdministrationsetDevice(List<ResourceReferenceDt> theValue)Sets the value(s) for device ()MedicationAdministrationsetDosage(MedicationAdministration.Dosage theValue)Sets the value(s) for dosage ()MedicationAdministrationsetEffectiveTime(ca.uhn.fhir.model.api.IDatatype theValue)Sets the value(s) for effectiveTime[x] (when.done)MedicationAdministrationsetEncounter(ResourceReferenceDt theValue)Sets the value(s) for encounter (context)MedicationAdministrationsetIdentifier(List<IdentifierDt> theValue)Sets the value(s) for identifier (id)MedicationAdministrationsetMedication(ca.uhn.fhir.model.api.IDatatype theValue)Sets the value(s) for medication[x] ()MedicationAdministrationsetNote(ca.uhn.fhir.model.primitive.StringDt theValue)Sets the value(s) for note ()MedicationAdministrationsetNote(String theString)Sets the value for note ()MedicationAdministrationsetPatient(ResourceReferenceDt theValue)Sets the value(s) for patient (who.focus)MedicationAdministrationsetPractitioner(ResourceReferenceDt theValue)Sets the value(s) for practitioner (who.actor)MedicationAdministrationsetPrescription(ResourceReferenceDt theValue)Sets the value(s) for prescription ()MedicationAdministrationsetReasonGiven(List<CodeableConceptDt> theValue)Sets the value(s) for reasonGiven ()MedicationAdministrationsetReasonNotGiven(List<CodeableConceptDt> theValue)Sets the value(s) for reasonNotGiven ()MedicationAdministrationsetStatus(MedicationAdministrationStatusEnum theValue)Sets the value(s) for status (status)MedicationAdministrationsetStatus(ca.uhn.fhir.model.primitive.BoundCodeDt<MedicationAdministrationStatusEnum> theValue)Sets the value(s) for status (status)MedicationAdministrationsetWasNotGiven(boolean theBoolean)Sets the value for wasNotGiven ()MedicationAdministrationsetWasNotGiven(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
-
-
-
-
Field Detail
-
SP_DEVICE
public static final String SP_DEVICE
Search parameter constant for deviceDescription: Return administrations with this administration device identity
Type: reference
Path: MedicationAdministration.device
- See Also:
- Constant Field Values
-
DEVICE
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam DEVICE
Fluent Client search parameter constant for deviceDescription: Return administrations with this administration device identity
Type: reference
Path: MedicationAdministration.device
-
SP_ENCOUNTER
public static final String SP_ENCOUNTER
Search parameter constant for encounterDescription: Return administrations that share this encounter
Type: reference
Path: MedicationAdministration.encounter
- See Also:
- Constant Field Values
-
ENCOUNTER
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER
Fluent Client search parameter constant for encounterDescription: Return administrations that share this encounter
Type: reference
Path: MedicationAdministration.encounter
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
Search parameter constant for identifierDescription: Return administrations with this external identifier
Type: token
Path: MedicationAdministration.identifier
- See Also:
- Constant Field Values
-
IDENTIFIER
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
Fluent Client search parameter constant for identifierDescription: Return administrations with this external identifier
Type: token
Path: MedicationAdministration.identifier
-
SP_MEDICATION
public static final String SP_MEDICATION
Search parameter constant for medicationDescription: Return administrations of this medication resource
Type: reference
Path: MedicationAdministration.medicationReference
- See Also:
- Constant Field Values
-
MEDICATION
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam MEDICATION
Fluent Client search parameter constant for medicationDescription: Return administrations of this medication resource
Type: reference
Path: MedicationAdministration.medicationReference
-
SP_CODE
public static final String SP_CODE
Search parameter constant for codeDescription: Return administrations of this medication code
Type: token
Path: MedicationAdministration.medicationCodeableConcept
- See Also:
- Constant Field Values
-
CODE
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE
Fluent Client search parameter constant for codeDescription: Return administrations of this medication code
Type: token
Path: MedicationAdministration.medicationCodeableConcept
-
SP_NOTGIVEN
public static final String SP_NOTGIVEN
Search parameter constant for notgivenDescription: Administrations that were not made
Type: token
Path: MedicationAdministration.wasNotGiven
- See Also:
- Constant Field Values
-
NOTGIVEN
public static final ca.uhn.fhir.rest.gclient.TokenClientParam NOTGIVEN
Fluent Client search parameter constant for notgivenDescription: Administrations that were not made
Type: token
Path: MedicationAdministration.wasNotGiven
-
SP_PATIENT
public static final String SP_PATIENT
Search parameter constant for patientDescription: The identity of a patient to list administrations for
Type: reference
Path: MedicationAdministration.patient
- See Also:
- Constant Field Values
-
PATIENT
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT
Fluent Client search parameter constant for patientDescription: The identity of a patient to list administrations for
Type: reference
Path: MedicationAdministration.patient
-
SP_PRESCRIPTION
public static final String SP_PRESCRIPTION
Search parameter constant for prescriptionDescription: The identity of a prescription to list administrations from
Type: reference
Path: MedicationAdministration.prescription
- See Also:
- Constant Field Values
-
PRESCRIPTION
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PRESCRIPTION
Fluent Client search parameter constant for prescriptionDescription: The identity of a prescription to list administrations from
Type: reference
Path: MedicationAdministration.prescription
-
SP_STATUS
public static final String 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:
- Constant Field Values
-
STATUS
public static final ca.uhn.fhir.rest.gclient.TokenClientParam 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
public static final String SP_EFFECTIVETIME
Search parameter constant for effectivetimeDescription: Date administration happened (or did not happen)
Type: date
Path: MedicationAdministration.effectiveTime[x]
- See Also:
- Constant Field Values
-
EFFECTIVETIME
public static final ca.uhn.fhir.rest.gclient.DateClientParam EFFECTIVETIME
Fluent Client search parameter constant for effectivetimeDescription: Date administration happened (or did not happen)
Type: date
Path: MedicationAdministration.effectiveTime[x]
-
SP_PRACTITIONER
public static final String SP_PRACTITIONER
Search parameter constant for practitionerDescription:
Type: reference
Path: MedicationAdministration.practitioner
- See Also:
- Constant Field Values
-
PRACTITIONER
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PRACTITIONER
Fluent Client search parameter constant for practitionerDescription:
Type: reference
Path: MedicationAdministration.practitioner
-
INCLUDE_DEVICE
public static final ca.uhn.fhir.model.api.Include INCLUDE_DEVICE
Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationAdministration:device".
-
INCLUDE_ENCOUNTER
public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER
Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationAdministration:encounter".
-
INCLUDE_MEDICATION
public static final ca.uhn.fhir.model.api.Include INCLUDE_MEDICATION
Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationAdministration:medication".
-
INCLUDE_PATIENT
public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT
Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationAdministration:patient".
-
INCLUDE_PRACTITIONER
public static final ca.uhn.fhir.model.api.Include INCLUDE_PRACTITIONER
Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationAdministration:practitioner".
-
INCLUDE_PRESCRIPTION
public static final ca.uhn.fhir.model.api.Include INCLUDE_PRESCRIPTION
Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationAdministration:prescription".
-
-
Constructor Detail
-
MedicationAdministration
public MedicationAdministration()
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin 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:
getAllPopulatedChildElementsOfTypein interfaceca.uhn.fhir.model.api.ICompositeElement
-
getIdentifier
public List<IdentifierDt> 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
public MedicationAdministration setIdentifier(List<IdentifierDt> theValue)
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
public IdentifierDt 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
public MedicationAdministration addIdentifier(IdentifierDt theValue)
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
public IdentifierDt 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
public String 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
public MedicationAdministration setStatus(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.
-
getPatient
public ResourceReferenceDt 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
public MedicationAdministration setPatient(ResourceReferenceDt theValue)
Sets the value(s) for patient (who.focus)Definition: The person or animal receiving the medication.
-
getPractitioner
public ResourceReferenceDt 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
public MedicationAdministration setPractitioner(ResourceReferenceDt theValue)
Sets the value(s) for practitioner (who.actor)Definition: The individual who was responsible for giving the medication to the patient.
-
getEncounter
public ResourceReferenceDt 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
public MedicationAdministration setEncounter(ResourceReferenceDt theValue)
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
public ResourceReferenceDt 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
public MedicationAdministration setPrescription(ResourceReferenceDt theValue)
Sets the value(s) for prescription ()Definition: The original request, instruction or authority to perform the administration.
-
getWasNotGivenElement
public ca.uhn.fhir.model.primitive.BooleanDt 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
public Boolean 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
public MedicationAdministration setWasNotGiven(ca.uhn.fhir.model.primitive.BooleanDt theValue)
Sets the value(s) for wasNotGiven ()Definition: Set this to true if the record is saying that the medication was NOT administered.
-
setWasNotGiven
public MedicationAdministration setWasNotGiven(boolean theBoolean)
Sets the value for wasNotGiven ()Definition: Set this to true if the record is saying that the medication was NOT administered.
-
getReasonNotGiven
public List<CodeableConceptDt> 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
public MedicationAdministration setReasonNotGiven(List<CodeableConceptDt> theValue)
Sets the value(s) for reasonNotGiven ()Definition: A code indicating why the administration was not performed.
-
addReasonNotGiven
public CodeableConceptDt addReasonNotGiven()
Adds and returns a new value for reasonNotGiven ()Definition: A code indicating why the administration was not performed.
-
addReasonNotGiven
public MedicationAdministration addReasonNotGiven(CodeableConceptDt theValue)
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
public CodeableConceptDt 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
public List<CodeableConceptDt> 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
public MedicationAdministration setReasonGiven(List<CodeableConceptDt> theValue)
Sets the value(s) for reasonGiven ()Definition: A code indicating why the medication was given.
-
addReasonGiven
public CodeableConceptDt addReasonGiven()
Adds and returns a new value for reasonGiven ()Definition: A code indicating why the medication was given.
-
addReasonGiven
public MedicationAdministration addReasonGiven(CodeableConceptDt theValue)
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
public CodeableConceptDt 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
public ca.uhn.fhir.model.api.IDatatype 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
public MedicationAdministration setEffectiveTime(ca.uhn.fhir.model.api.IDatatype theValue)
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
public ca.uhn.fhir.model.api.IDatatype 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
public MedicationAdministration setMedication(ca.uhn.fhir.model.api.IDatatype theValue)
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
public List<ResourceReferenceDt> 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
public MedicationAdministration setDevice(List<ResourceReferenceDt> theValue)
Sets the value(s) for device ()Definition: The device used in administering the medication to the patient. For example, a particular infusion pump
-
addDevice
public ResourceReferenceDt 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
public ca.uhn.fhir.model.primitive.StringDt 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
public String 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
public MedicationAdministration setNote(ca.uhn.fhir.model.primitive.StringDt theValue)
Sets the value(s) for note ()Definition: Extra information about the medication administration that is not conveyed by the other attributes.
-
setNote
public MedicationAdministration setNote(String theString)
Sets the value for note ()Definition: Extra information about the medication administration that is not conveyed by the other attributes.
-
getDosage
public MedicationAdministration.Dosage 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
public MedicationAdministration setDosage(MedicationAdministration.Dosage theValue)
Sets the value(s) for dosage ()Definition: Describes the medication dosage information details e.g. dose, rate, site, route, etc.
-
getResourceName
public String getResourceName()
- Specified by:
getResourceNamein interfaceca.uhn.fhir.model.api.IResource
-
getStructureFhirVersionEnum
public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum()
- Specified by:
getStructureFhirVersionEnumin interfaceorg.hl7.fhir.instance.model.api.IBaseResource- Specified by:
getStructureFhirVersionEnumin interfaceca.uhn.fhir.model.api.IResource
-
-