public class MedicationStatement extends BaseResource implements IResource
Definition: A record of a medication that is being consumed by a patient. A MedicationStatement may indicate that the patient may be taking the medication now, or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay. The medication information may come from e.g. the patient's memory, from a prescription bottle, or from a list of medications the patient, clinician or other party maintains The primary difference between a medication statement and a medication administration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication. A medication statement is often, if not always, less specific. There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise. As stated earlier, the medication statement information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains. Medication administration is more formal and is not missing detailed information.
Requirements:
Profile Definition: http://hl7.org/fhir/profiles/MedicationStatement
| Modifier and Type | Class and Description |
|---|---|
static class |
MedicationStatement.Dosage
Block class for child element: MedicationStatement.dosage ()
|
| Modifier and Type | Field and Description |
|---|---|
static TokenClientParam |
CODE
Fluent Client search parameter constant for code
|
static DateClientParam |
EFFECTIVEDATE
Fluent Client search parameter constant for effectivedate
|
static TokenClientParam |
IDENTIFIER
Fluent Client search parameter constant for identifier
|
static Include |
INCLUDE_MEDICATION
Constant for fluent queries to be used to add include statements.
|
static Include |
INCLUDE_PATIENT
Constant for fluent queries to be used to add include statements.
|
static Include |
INCLUDE_SOURCE
Constant for fluent queries to be used to add include statements.
|
static ReferenceClientParam |
MEDICATION
Fluent Client search parameter constant for medication
|
static ReferenceClientParam |
PATIENT
Fluent Client search parameter constant for patient
|
static ReferenceClientParam |
SOURCE
Fluent Client search parameter constant for source
|
static String |
SP_CODE
Search parameter constant for code
|
static String |
SP_EFFECTIVEDATE
Search parameter constant for effectivedate
|
static String |
SP_IDENTIFIER
Search parameter constant for identifier
|
static String |
SP_MEDICATION
Search parameter constant for medication
|
static String |
SP_PATIENT
Search parameter constant for patient
|
static String |
SP_SOURCE
Search parameter constant for source
|
static String |
SP_STATUS
Search parameter constant for status
|
static TokenClientParam |
STATUS
Fluent Client search parameter constant for status
|
RES_ID, SP_RES_ID, SP_RES_LANGUAGEINCLUDE_ALL, WILDCARD_ALL_SET| Constructor and Description |
|---|
MedicationStatement() |
| Modifier and Type | Method and Description |
|---|---|
MedicationStatement.Dosage |
addDosage()
Adds and returns a new value for dosage ()
|
MedicationStatement |
addDosage(MedicationStatement.Dosage theValue)
Adds a given new value for dosage ()
|
IdentifierDt |
addIdentifier()
Adds and returns a new value for identifier (id)
|
MedicationStatement |
addIdentifier(IdentifierDt theValue)
Adds a given new value for identifier (id)
|
CodeableConceptDt |
addReasonNotTaken()
Adds and returns a new value for reasonNotTaken ()
|
MedicationStatement |
addReasonNotTaken(CodeableConceptDt theValue)
Adds a given new value for reasonNotTaken ()
|
ResourceReferenceDt |
addSupportingInformation()
Adds and returns a new value for supportingInformation ()
|
<T extends IElement> |
getAllPopulatedChildElementsOfType(Class<T> theType) |
Date |
getDateAsserted()
Gets the value(s) for dateAsserted ().
|
DateTimeDt |
getDateAssertedElement()
Gets the value(s) for dateAsserted ().
|
List<MedicationStatement.Dosage> |
getDosage()
Gets the value(s) for dosage ().
|
MedicationStatement.Dosage |
getDosageFirstRep()
Gets the first repetition for dosage (),
creating it if it does not already exist.
|
IDatatype |
getEffective()
Gets the value(s) for effective[x] (when.done).
|
List<IdentifierDt> |
getIdentifier()
Gets the value(s) for identifier (id).
|
IdentifierDt |
getIdentifierFirstRep()
Gets the first repetition for identifier (id),
creating it if it does not already exist.
|
ResourceReferenceDt |
getInformationSource()
Gets the value(s) for informationSource (who.source).
|
IDatatype |
getMedication()
Gets the value(s) for medication[x] (what).
|
String |
getNote()
Gets the value(s) for note ().
|
StringDt |
getNoteElement()
Gets the value(s) for note ().
|
ResourceReferenceDt |
getPatient()
Gets the value(s) for patient (who.focus).
|
IDatatype |
getReasonForUse()
Gets the value(s) for reasonForUse[x] ().
|
List<CodeableConceptDt> |
getReasonNotTaken()
Gets the value(s) for reasonNotTaken ().
|
CodeableConceptDt |
getReasonNotTakenFirstRep()
Gets the first repetition for reasonNotTaken (),
creating it if it does not already exist.
|
String |
getResourceName() |
String |
getStatus()
Gets the value(s) for status ().
|
BoundCodeDt<MedicationStatementStatusEnum> |
getStatusElement()
Gets the value(s) for status ().
|
FhirVersionEnum |
getStructureFhirVersionEnum() |
List<ResourceReferenceDt> |
getSupportingInformation()
Gets the value(s) for supportingInformation ().
|
Boolean |
getWasNotTaken()
Gets the value(s) for wasNotTaken (status).
|
BooleanDt |
getWasNotTakenElement()
Gets the value(s) for wasNotTaken (status).
|
boolean |
isEmpty() |
MedicationStatement |
setDateAsserted(Date theDate,
TemporalPrecisionEnum thePrecision)
Sets the value for dateAsserted ()
|
MedicationStatement |
setDateAsserted(DateTimeDt theValue)
Sets the value(s) for dateAsserted ()
|
MedicationStatement |
setDateAssertedWithSecondsPrecision(Date theDate)
Sets the value for dateAsserted ()
|
MedicationStatement |
setDosage(List<MedicationStatement.Dosage> theValue)
Sets the value(s) for dosage ()
|
MedicationStatement |
setEffective(IDatatype theValue)
Sets the value(s) for effective[x] (when.done)
|
MedicationStatement |
setIdentifier(List<IdentifierDt> theValue)
Sets the value(s) for identifier (id)
|
MedicationStatement |
setInformationSource(ResourceReferenceDt theValue)
Sets the value(s) for informationSource (who.source)
|
MedicationStatement |
setMedication(IDatatype theValue)
Sets the value(s) for medication[x] (what)
|
MedicationStatement |
setNote(String theString)
Sets the value for note ()
|
MedicationStatement |
setNote(StringDt theValue)
Sets the value(s) for note ()
|
MedicationStatement |
setPatient(ResourceReferenceDt theValue)
Sets the value(s) for patient (who.focus)
|
MedicationStatement |
setReasonForUse(IDatatype theValue)
Sets the value(s) for reasonForUse[x] ()
|
MedicationStatement |
setReasonNotTaken(List<CodeableConceptDt> theValue)
Sets the value(s) for reasonNotTaken ()
|
MedicationStatement |
setStatus(BoundCodeDt<MedicationStatementStatusEnum> theValue)
Sets the value(s) for status ()
|
MedicationStatement |
setStatus(MedicationStatementStatusEnum theValue)
Sets the value(s) for status ()
|
MedicationStatement |
setSupportingInformation(List<ResourceReferenceDt> theValue)
Sets the value(s) for supportingInformation ()
|
MedicationStatement |
setWasNotTaken(boolean theBoolean)
Sets the value for wasNotTaken (status)
|
MedicationStatement |
setWasNotTaken(BooleanDt theValue)
Sets the value(s) for wasNotTaken (status)
|
getContained, getId, getIdElement, getLanguage, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setId, setLanguage, setResourceMetadata, setText, toStringaddUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetContained, getId, getLanguage, getResourceMetadata, getText, setId, setLanguage, setResourceMetadatagetIdElement, setId, setIdpublic static final String SP_IDENTIFIER
Description: Return statements with this external identifier
Type: token
Path: MedicationStatement.identifier
public static final TokenClientParam IDENTIFIER
Description: Return statements with this external identifier
Type: token
Path: MedicationStatement.identifier
public static final String SP_MEDICATION
Description: Return administrations of this medication reference
Type: reference
Path: MedicationStatement.medicationReference
public static final ReferenceClientParam MEDICATION
Description: Return administrations of this medication reference
Type: reference
Path: MedicationStatement.medicationReference
public static final String SP_CODE
Description: Return administrations of this medication code
Type: token
Path: MedicationStatement.medicationCodeableConcept
public static final TokenClientParam CODE
Description: Return administrations of this medication code
Type: token
Path: MedicationStatement.medicationCodeableConcept
public static final String SP_PATIENT
Description: The identity of a patient to list statements for
Type: reference
Path: MedicationStatement.patient
public static final ReferenceClientParam PATIENT
Description: The identity of a patient to list statements for
Type: reference
Path: MedicationStatement.patient
public static final String SP_EFFECTIVEDATE
Description: Date when patient was taking (or not taking) the medication
Type: date
Path: MedicationStatement.effective[x]
public static final DateClientParam EFFECTIVEDATE
Description: Date when patient was taking (or not taking) the medication
Type: date
Path: MedicationStatement.effective[x]
public static final String SP_STATUS
Description: Return statements that match the given status
Type: token
Path: MedicationStatement.status
public static final TokenClientParam STATUS
Description: Return statements that match the given status
Type: token
Path: MedicationStatement.status
public static final String SP_SOURCE
Description: Who the information in the statement came from
Type: reference
Path: MedicationStatement.informationSource
public static final ReferenceClientParam SOURCE
Description: Who the information in the statement came from
Type: reference
Path: MedicationStatement.informationSource
public static final Include INCLUDE_MEDICATION
public static final Include INCLUDE_PATIENT
public static final Include INCLUDE_SOURCE
public MedicationStatement()
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
getAllPopulatedChildElementsOfType in interface ICompositeElementpublic List<IdentifierDt> getIdentifier()
null.
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.
public MedicationStatement setIdentifier(List<IdentifierDt> theValue)
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.
public IdentifierDt addIdentifier()
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.
public MedicationStatement addIdentifier(IdentifierDt theValue)
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.
theValue - The identifier to add (must not be null)public IdentifierDt getIdentifierFirstRep()
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.
public ResourceReferenceDt getPatient()
null.
Definition: The person or animal who is/was taking the medication.
public MedicationStatement setPatient(ResourceReferenceDt theValue)
Definition: The person or animal who is/was taking the medication.
public ResourceReferenceDt getInformationSource()
null.
Definition: The person who provided the information about the taking of this medication.
public MedicationStatement setInformationSource(ResourceReferenceDt theValue)
Definition: The person who provided the information about the taking of this medication.
public DateTimeDt getDateAssertedElement()
null.
Definition: The date when the medication statement was asserted by the information source.
public Date getDateAsserted()
null.
Definition: The date when the medication statement was asserted by the information source.
public MedicationStatement setDateAsserted(DateTimeDt theValue)
Definition: The date when the medication statement was asserted by the information source.
public MedicationStatement setDateAsserted(Date theDate, TemporalPrecisionEnum thePrecision)
Definition: The date when the medication statement was asserted by the information source.
public MedicationStatement setDateAssertedWithSecondsPrecision(Date theDate)
Definition: The date when the medication statement was asserted by the information source.
public BoundCodeDt<MedicationStatementStatusEnum> getStatusElement()
null.
Definition: A code representing the patient or other source's judgment about the state of the medication used that this statement is about. Generally this will be active or completed.
public String getStatus()
null.
Definition: A code representing the patient or other source's judgment about the state of the medication used that this statement is about. Generally this will be active or completed.
public MedicationStatement setStatus(BoundCodeDt<MedicationStatementStatusEnum> theValue)
Definition: A code representing the patient or other source's judgment about the state of the medication used that this statement is about. Generally this will be active or completed.
public MedicationStatement setStatus(MedicationStatementStatusEnum theValue)
Definition: A code representing the patient or other source's judgment about the state of the medication used that this statement is about. Generally this will be active or completed.
public BooleanDt getWasNotTakenElement()
null.
Definition: Set this to true if the record is saying that the medication was NOT taken.
public Boolean getWasNotTaken()
null.
Definition: Set this to true if the record is saying that the medication was NOT taken.
public MedicationStatement setWasNotTaken(BooleanDt theValue)
Definition: Set this to true if the record is saying that the medication was NOT taken.
public MedicationStatement setWasNotTaken(boolean theBoolean)
Definition: Set this to true if the record is saying that the medication was NOT taken.
public List<CodeableConceptDt> getReasonNotTaken()
null.
Definition: A code indicating why the medication was not taken.
public MedicationStatement setReasonNotTaken(List<CodeableConceptDt> theValue)
Definition: A code indicating why the medication was not taken.
public CodeableConceptDt addReasonNotTaken()
Definition: A code indicating why the medication was not taken.
public MedicationStatement addReasonNotTaken(CodeableConceptDt theValue)
Definition: A code indicating why the medication was not taken.
theValue - The reasonNotTaken to add (must not be null)public CodeableConceptDt getReasonNotTakenFirstRep()
Definition: A code indicating why the medication was not taken.
public IDatatype getReasonForUse()
null.
Definition: A reason for why the medication is being/was taken.
public MedicationStatement setReasonForUse(IDatatype theValue)
Definition: A reason for why the medication is being/was taken.
public IDatatype getEffective()
null.
Definition: The interval of time during which it is being asserted that the patient was taking the medication (or was not taking, when the wasNotGiven element is true).
public MedicationStatement setEffective(IDatatype theValue)
Definition: The interval of time during which it is being asserted that the patient was taking the medication (or was not taking, when the wasNotGiven element is true).
public StringDt getNoteElement()
null.
Definition: Provides extra information about the medication statement that is not conveyed by the other attributes.
public String getNote()
null.
Definition: Provides extra information about the medication statement that is not conveyed by the other attributes.
public MedicationStatement setNote(StringDt theValue)
Definition: Provides extra information about the medication statement that is not conveyed by the other attributes.
public MedicationStatement setNote(String theString)
Definition: Provides extra information about the medication statement that is not conveyed by the other attributes.
public List<ResourceReferenceDt> getSupportingInformation()
null.
Definition: Allows linking the MedicationStatement to the underlying MedicationOrder, or to other information that supports the MedicationStatement.
public MedicationStatement setSupportingInformation(List<ResourceReferenceDt> theValue)
Definition: Allows linking the MedicationStatement to the underlying MedicationOrder, or to other information that supports the MedicationStatement.
public ResourceReferenceDt addSupportingInformation()
Definition: Allows linking the MedicationStatement to the underlying MedicationOrder, or to other information that supports the MedicationStatement.
public IDatatype getMedication()
null.
Definition: Identifies the medication being 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.
public MedicationStatement setMedication(IDatatype theValue)
Definition: Identifies the medication being 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.
public List<MedicationStatement.Dosage> getDosage()
null.
Definition: Indicates how the medication is/was used by the patient
public MedicationStatement setDosage(List<MedicationStatement.Dosage> theValue)
Definition: Indicates how the medication is/was used by the patient
public MedicationStatement.Dosage addDosage()
Definition: Indicates how the medication is/was used by the patient
public MedicationStatement addDosage(MedicationStatement.Dosage theValue)
Definition: Indicates how the medication is/was used by the patient
theValue - The dosage to add (must not be null)public MedicationStatement.Dosage getDosageFirstRep()
Definition: Indicates how the medication is/was used by the patient
public String getResourceName()
getResourceName in interface IResourcepublic FhirVersionEnum getStructureFhirVersionEnum()
getStructureFhirVersionEnum in interface IResourcegetStructureFhirVersionEnum in interface IBaseResourceCopyright © 2014–2016 University Health Network. All rights reserved.