public class MedicationPrescription extends BaseResource implements IResource
Definition: An order for both supply of the medication and the instructions for administration of the medicine to a patient.
Requirements:
Profile Definition: http://hl7.org/fhir/profiles/MedicationPrescription
| Modifier and Type | Class and Description |
|---|---|
static class |
MedicationPrescription.Dispense
Block class for child element: MedicationPrescription.dispense (Medication supply authorization)
|
static class |
MedicationPrescription.DosageInstruction
Block class for child element: MedicationPrescription.dosageInstruction (How medication should be taken)
|
static class |
MedicationPrescription.Substitution
Block class for child element: MedicationPrescription.substitution (Any restrictions on medication substitution?)
|
| Modifier and Type | Field and Description |
|---|---|
static DateClientParam |
DATEWRITTEN
Fluent Client search parameter constant for datewritten
|
static ReferenceClientParam |
ENCOUNTER
Fluent Client search parameter constant for encounter
|
static TokenClientParam |
IDENTIFIER
Fluent Client search parameter constant for identifier
|
static Include |
INCLUDE_ENCOUNTER
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_DATEWRITTEN
Search parameter constant for datewritten
|
static String |
SP_ENCOUNTER
Search parameter constant for encounter
|
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_STATUS
Search parameter constant for status
|
static TokenClientParam |
STATUS
Fluent Client search parameter constant for status
|
SP_RES_ID, SP_RES_LANGUAGE| Constructor and Description |
|---|
MedicationPrescription() |
| Modifier and Type | Method and Description |
|---|---|
MedicationPrescription.DosageInstruction |
addDosageInstruction()
Adds and returns a new value for dosageInstruction (How medication should be taken)
|
IdentifierDt |
addIdentifier()
Adds and returns a new value for identifier (External identifier)
|
MedicationPrescription |
addIdentifier(IdentifierUseEnum theUse,
String theSystem,
String theValue,
String theLabel)
Adds a new value for identifier (External identifier)
|
MedicationPrescription |
addIdentifier(String theSystem,
String theValue)
Adds a new value for identifier (External identifier)
|
<T extends IElement> |
getAllPopulatedChildElementsOfType(Class<T> theType)
Returns a list containing all child elements matching a given type
|
DateTimeDt |
getDateWritten()
Gets the value(s) for dateWritten (When prescription was authorized).
|
MedicationPrescription.Dispense |
getDispense()
Gets the value(s) for dispense (Medication supply authorization).
|
List<MedicationPrescription.DosageInstruction> |
getDosageInstruction()
Gets the value(s) for dosageInstruction (How medication should be taken).
|
MedicationPrescription.DosageInstruction |
getDosageInstructionFirstRep()
Gets the first repetition for dosageInstruction (How medication should be taken),
creating it if it does not already exist.
|
ResourceReferenceDt |
getEncounter()
Gets the value(s) for encounter (Created during encounter / admission / stay).
|
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 (Medication to be taken).
|
ResourceReferenceDt |
getPatient()
Gets the value(s) for patient (Who prescription is for).
|
ResourceReferenceDt |
getPrescriber()
Gets the value(s) for prescriber (Who ordered the medication(s)).
|
IDatatype |
getReason()
Gets the value(s) for reason[x] (Reason or indication for writing the prescription).
|
BoundCodeDt<MedicationPrescriptionStatusEnum> |
getStatus()
Gets the value(s) for status (active | on hold | completed | entered in error | stopped | superceded).
|
MedicationPrescription.Substitution |
getSubstitution()
Gets the value(s) for substitution (Any restrictions on medication substitution?).
|
boolean |
isEmpty() |
MedicationPrescription |
setDateWritten(Date theDate,
TemporalPrecisionEnum thePrecision)
Sets the value for dateWritten (When prescription was authorized)
|
MedicationPrescription |
setDateWritten(DateTimeDt theValue)
Sets the value(s) for dateWritten (When prescription was authorized)
|
MedicationPrescription |
setDateWrittenWithSecondsPrecision(Date theDate)
Sets the value for dateWritten (When prescription was authorized)
|
MedicationPrescription |
setDispense(MedicationPrescription.Dispense theValue)
Sets the value(s) for dispense (Medication supply authorization)
|
MedicationPrescription |
setDosageInstruction(List<MedicationPrescription.DosageInstruction> theValue)
Sets the value(s) for dosageInstruction (How medication should be taken)
|
MedicationPrescription |
setEncounter(ResourceReferenceDt theValue)
Sets the value(s) for encounter (Created during encounter / admission / stay)
|
MedicationPrescription |
setIdentifier(List<IdentifierDt> theValue)
Sets the value(s) for identifier (External identifier)
|
MedicationPrescription |
setMedication(ResourceReferenceDt theValue)
Sets the value(s) for medication (Medication to be taken)
|
MedicationPrescription |
setPatient(ResourceReferenceDt theValue)
Sets the value(s) for patient (Who prescription is for)
|
MedicationPrescription |
setPrescriber(ResourceReferenceDt theValue)
Sets the value(s) for prescriber (Who ordered the medication(s))
|
MedicationPrescription |
setReason(IDatatype theValue)
Sets the value(s) for reason[x] (Reason or indication for writing the prescription)
|
MedicationPrescription |
setStatus(BoundCodeDt<MedicationPrescriptionStatusEnum> theValue)
Sets the value(s) for status (active | on hold | completed | entered in error | stopped | superceded)
|
MedicationPrescription |
setStatus(MedicationPrescriptionStatusEnum theValue)
Sets the value(s) for status (active | on hold | completed | entered in error | stopped | superceded)
|
MedicationPrescription |
setSubstitution(MedicationPrescription.Substitution theValue)
Sets the value(s) for substitution (Any restrictions on medication substitution?)
|
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_DATEWRITTEN
Description: Return prescriptions written on this date
Type: date
Path: MedicationPrescription.dateWritten
public static final DateClientParam DATEWRITTEN
Description: Return prescriptions written on this date
Type: date
Path: MedicationPrescription.dateWritten
public static final String SP_ENCOUNTER
Description: Return prescriptions with this encounter identity
Type: reference
Path: MedicationPrescription.encounter
public static final ReferenceClientParam ENCOUNTER
Description: Return prescriptions with this encounter identity
Type: reference
Path: MedicationPrescription.encounter
public static final Include INCLUDE_ENCOUNTER
public static final String SP_IDENTIFIER
Description: Return prescriptions with this external identity
Type: token
Path: MedicationPrescription.identifier
public static final TokenClientParam IDENTIFIER
Description: Return prescriptions with this external identity
Type: token
Path: MedicationPrescription.identifier
public static final String SP_MEDICATION
Description: Code for medicine or text in medicine name
Type: reference
Path: MedicationPrescription.medication
public static final ReferenceClientParam MEDICATION
Description: Code for medicine or text in medicine name
Type: reference
Path: MedicationPrescription.medication
public static final Include INCLUDE_MEDICATION
public static final String SP_PATIENT
Description: The identity of a patient to list dispenses for
Type: reference
Path: MedicationPrescription.patient
public static final ReferenceClientParam PATIENT
Description: The identity of a patient to list dispenses for
Type: reference
Path: MedicationPrescription.patient
public static final Include INCLUDE_PATIENT
public static final String SP_STATUS
Description: Status of the prescription
Type: token
Path: MedicationPrescription.status
public static final TokenClientParam STATUS
Description: Status of the prescription
Type: token
Path: MedicationPrescription.status
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 - 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 erntire workflow process where records have to be tracked through an entire system.
public MedicationPrescription setIdentifier(List<IdentifierDt> theValue)
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 erntire workflow process where records have to be tracked through an entire system.
public IdentifierDt addIdentifier()
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 erntire workflow process where records have to be tracked through an entire system.
public IdentifierDt getIdentifierFirstRep()
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 erntire workflow process where records have to be tracked through an entire system.
public MedicationPrescription addIdentifier(IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel)
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 erntire workflow process where records have to be tracked through an entire system.
public MedicationPrescription addIdentifier(String theSystem, String theValue)
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 erntire workflow process where records have to be tracked through an entire system.
public DateTimeDt getDateWritten()
null.
Definition: The date (and perhaps time) when the prescription was written
public MedicationPrescription setDateWritten(DateTimeDt theValue)
Definition: The date (and perhaps time) when the prescription was written
public MedicationPrescription setDateWrittenWithSecondsPrecision(Date theDate)
Definition: The date (and perhaps time) when the prescription was written
public MedicationPrescription setDateWritten(Date theDate, TemporalPrecisionEnum thePrecision)
Definition: The date (and perhaps time) when the prescription was written
public BoundCodeDt<MedicationPrescriptionStatusEnum> getStatus()
null.
Definition: A code specifying the state of the order. Generally this will be active or completed state
public MedicationPrescription setStatus(BoundCodeDt<MedicationPrescriptionStatusEnum> theValue)
Definition: A code specifying the state of the order. Generally this will be active or completed state
public MedicationPrescription setStatus(MedicationPrescriptionStatusEnum theValue)
Definition: A code specifying the state of the order. Generally this will be active or completed state
public ResourceReferenceDt getPatient()
null.
Definition: A link to a resource representing the person to whom the medication will be given.
public MedicationPrescription setPatient(ResourceReferenceDt theValue)
Definition: A link to a resource representing the person to whom the medication will be given.
public ResourceReferenceDt getPrescriber()
null.
Definition: The healthcare professional responsible for authorizing the prescription
public MedicationPrescription setPrescriber(ResourceReferenceDt theValue)
Definition: The healthcare professional responsible for authorizing the prescription
public ResourceReferenceDt getEncounter()
null.
Definition: A link to a resource that identifies the particular occurrence of contact between patient and health care provider.
public MedicationPrescription setEncounter(ResourceReferenceDt theValue)
Definition: A link to a resource that identifies the particular occurrence of contact between patient and health care provider.
public IDatatype getReason()
null.
Definition: Can be the reason or the indication for writing the prescription.
public MedicationPrescription setReason(IDatatype theValue)
Definition: Can be the reason or the indication for writing the prescription.
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 MedicationPrescription 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<MedicationPrescription.DosageInstruction> getDosageInstruction()
null.
Definition: Indicates how the medication is to be used by the patient
public MedicationPrescription setDosageInstruction(List<MedicationPrescription.DosageInstruction> theValue)
Definition: Indicates how the medication is to be used by the patient
public MedicationPrescription.DosageInstruction addDosageInstruction()
Definition: Indicates how the medication is to be used by the patient
public MedicationPrescription.DosageInstruction getDosageInstructionFirstRep()
Definition: Indicates how the medication is to be used by the patient
public MedicationPrescription.Dispense getDispense()
null.
Definition: Deals with details of the dispense part of the order
public MedicationPrescription setDispense(MedicationPrescription.Dispense theValue)
Definition: Deals with details of the dispense part of the order
public MedicationPrescription.Substitution getSubstitution()
null.
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.
public MedicationPrescription setSubstitution(MedicationPrescription.Substitution theValue)
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.
Copyright © 2014 University Health Network. All rights reserved.