public class MedicationStatement extends BaseResource implements IResource
Definition: A record of medication being taken by a patient, or that the medication has been given to a patient where the record is the result of a report from the patient or another clinician
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 (Details of how medication was taken)
|
| Modifier and Type | Field and Description |
|---|---|
static ReferenceClientParam |
DEVICE
Fluent Client search parameter constant for device
|
static TokenClientParam |
IDENTIFIER
Fluent Client search parameter constant for identifier
|
static Include |
INCLUDE_DEVICE
Constant for fluent queries to be used to add include statements.
|
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 ReferenceClientParam |
MEDICATION
Fluent Client search parameter constant for medication
|
static ReferenceClientParam |
PATIENT
Fluent Client search parameter constant for patient
|
static String |
SP_DEVICE
Search parameter constant for device
|
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_WHEN_GIVEN
Search parameter constant for when-given
|
static DateClientParam |
WHEN_GIVEN
Fluent Client search parameter constant for when-given
|
SP_RES_ID, SP_RES_LANGUAGE| Constructor and Description |
|---|
MedicationStatement() |
| Modifier and Type | Method and Description |
|---|---|
ResourceReferenceDt |
addDevice()
Adds and returns a new value for device (E.g.
|
MedicationStatement.Dosage |
addDosage()
Adds and returns a new value for dosage (Details of how medication was taken)
|
IdentifierDt |
addIdentifier()
Adds and returns a new value for identifier (External Identifier)
|
MedicationStatement |
addIdentifier(IdentifierUseEnum theUse,
String theSystem,
String theValue,
String theLabel)
Adds a new value for identifier (External Identifier)
|
MedicationStatement |
addIdentifier(String theSystem,
String theValue)
Adds a new value for identifier (External Identifier)
|
CodeableConceptDt |
addReasonNotGiven()
Adds and returns a new value for reasonNotGiven (True if asserting medication was not given)
|
<T extends IElement> |
getAllPopulatedChildElementsOfType(Class<T> theType)
Returns a list containing all child elements matching a given type
|
List<ResourceReferenceDt> |
getDevice()
Gets the value(s) for device (E.g.
|
List<MedicationStatement.Dosage> |
getDosage()
Gets the value(s) for dosage (Details of how medication was taken).
|
MedicationStatement.Dosage |
getDosageFirstRep()
Gets the first repetition for dosage (Details of how medication was taken),
creating it if it does not already exist.
|
List<IdentifierDt> |
getIdentifier()
Gets the value(s) for identifier (External Identifier).
|
IdentifierDt |
getIdentifierFirstRep()
Gets the first repetition for identifier (External Identifier),
creating it if it does not already exist.
|
ResourceReferenceDt |
getMedication()
Gets the value(s) for medication (What medication was taken?).
|
ResourceReferenceDt |
getPatient()
Gets the value(s) for patient (Who was/is taking medication).
|
List<CodeableConceptDt> |
getReasonNotGiven()
Gets the value(s) for reasonNotGiven (True if asserting medication was not given).
|
CodeableConceptDt |
getReasonNotGivenFirstRep()
Gets the first repetition for reasonNotGiven (True if asserting medication was not given),
creating it if it does not already exist.
|
BooleanDt |
getWasNotGiven()
Gets the value(s) for wasNotGiven (True if medication is/was not being taken).
|
PeriodDt |
getWhenGiven()
Gets the value(s) for whenGiven (Over what period was medication consumed?).
|
boolean |
isEmpty() |
MedicationStatement |
setDevice(List<ResourceReferenceDt> theValue)
Sets the value(s) for device (E.g.
|
MedicationStatement |
setDosage(List<MedicationStatement.Dosage> theValue)
Sets the value(s) for dosage (Details of how medication was taken)
|
MedicationStatement |
setIdentifier(List<IdentifierDt> theValue)
Sets the value(s) for identifier (External Identifier)
|
MedicationStatement |
setMedication(ResourceReferenceDt theValue)
Sets the value(s) for medication (What medication was taken?)
|
MedicationStatement |
setPatient(ResourceReferenceDt theValue)
Sets the value(s) for patient (Who was/is taking medication)
|
MedicationStatement |
setReasonNotGiven(List<CodeableConceptDt> theValue)
Sets the value(s) for reasonNotGiven (True if asserting medication was not given)
|
MedicationStatement |
setWasNotGiven(boolean theBoolean)
Sets the value for wasNotGiven (True if medication is/was not being taken)
|
MedicationStatement |
setWasNotGiven(BooleanDt theValue)
Sets the value(s) for wasNotGiven (True if medication is/was not being taken)
|
MedicationStatement |
setWhenGiven(PeriodDt theValue)
Sets the value(s) for whenGiven (Over what period was medication consumed?)
|
getContained, getId, getLanguage, getResourceMetadata, getText, isBaseEmpty, setContained, 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, setResourceMetadatapublic static final String SP_DEVICE
Description: Return administrations with this administration device identity
Type: reference
Path: MedicationStatement.device
public static final ReferenceClientParam DEVICE
Description: Return administrations with this administration device identity
Type: reference
Path: MedicationStatement.device
public static final Include INCLUDE_DEVICE
public static final String SP_IDENTIFIER
Description: Return administrations with this external identity
Type: token
Path: MedicationStatement.identifier
public static final TokenClientParam IDENTIFIER
Description: Return administrations with this external identity
Type: token
Path: MedicationStatement.identifier
public static final String SP_MEDICATION
Description: Code for medicine or text in medicine name
Type: reference
Path: MedicationStatement.medication
public static final ReferenceClientParam MEDICATION
Description: Code for medicine or text in medicine name
Type: reference
Path: MedicationStatement.medication
public static final Include INCLUDE_MEDICATION
public static final String SP_PATIENT
Description: The identity of a patient to list administrations for
Type: reference
Path: MedicationStatement.patient
public static final ReferenceClientParam PATIENT
Description: The identity of a patient to list administrations for
Type: reference
Path: MedicationStatement.patient
public static final Include INCLUDE_PATIENT
public static final String SP_WHEN_GIVEN
Description: Date of administration
Type: date
Path: MedicationStatement.whenGiven
public static final DateClientParam WHEN_GIVEN
Description: Date of administration
Type: date
Path: MedicationStatement.whenGiven
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
ICompositeElementgetAllPopulatedChildElementsOfType in interface ICompositeElementtheType - The type to match. If set to null, all child elements will be returnedpublic List<IdentifierDt> getIdentifier()
null.
Definition: External identifier - FHIR will generate its own internal IDs (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 IDs (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 IDs (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 getIdentifierFirstRep()
Definition: External identifier - FHIR will generate its own internal IDs (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(IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel)
Definition: External identifier - FHIR will generate its own internal IDs (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(String theSystem, String theValue)
Definition: External identifier - FHIR will generate its own internal IDs (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 BooleanDt getWasNotGiven()
null.
Definition: Set this to true if the record is saying that the medication was NOT taken.
public MedicationStatement setWasNotGiven(BooleanDt theValue)
Definition: Set this to true if the record is saying that the medication was NOT taken.
public MedicationStatement setWasNotGiven(boolean theBoolean)
Definition: Set this to true if the record is saying that the medication was NOT taken.
public List<CodeableConceptDt> getReasonNotGiven()
null.
Definition: A code indicating why the medication was not taken.
public MedicationStatement setReasonNotGiven(List<CodeableConceptDt> theValue)
Definition: A code indicating why the medication was not taken.
public CodeableConceptDt addReasonNotGiven()
Definition: A code indicating why the medication was not taken.
public CodeableConceptDt getReasonNotGivenFirstRep()
Definition: A code indicating why the medication was not taken.
public PeriodDt getWhenGiven()
null.
Definition: The interval of time during which it is being asserted that the patient was taking the medication.
public MedicationStatement setWhenGiven(PeriodDt theValue)
Definition: The interval of time during which it is being asserted that the patient was taking the medication.
public ResourceReferenceDt 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(ResourceReferenceDt 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<ResourceReferenceDt> getDevice()
null.
Definition: An identifier or a link to a resource that identifies a device used in administering the medication to the patient.
public MedicationStatement setDevice(List<ResourceReferenceDt> theValue)
Definition: An identifier or a link to a resource that identifies a device used in administering the medication to the patient.
public ResourceReferenceDt addDevice()
Definition: An identifier or a link to a resource that identifies a device used in administering the medication to the patient.
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.Dosage getDosageFirstRep()
Definition: Indicates how the medication is/was used by the patient
Copyright © 2014 University Health Network. All rights reserved.