public class MedicationStatement extends DomainResource
| Modifier and Type | Class and Description |
|---|---|
static class |
MedicationStatement.MedicationStatementDosageComponent |
static class |
MedicationStatement.MedicationStatementStatus |
static class |
MedicationStatement.MedicationStatementStatusEnumFactory |
| Modifier and Type | Field and Description |
|---|---|
static ca.uhn.fhir.rest.gclient.TokenClientParam |
CODE
Fluent Client search parameter constant for code
|
protected DateTimeType |
dateAsserted
The date when the medication statement was asserted by the information source.
|
protected List<MedicationStatement.MedicationStatementDosageComponent> |
dosage
Indicates how the medication is/was used by the patient.
|
protected Type |
effective
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).
|
static ca.uhn.fhir.rest.gclient.DateClientParam |
EFFECTIVE
Fluent Client search parameter constant for effective
|
protected List<Identifier> |
identifier
External identifier - FHIR will generate its own internal identifiers (probably URLs) which do not need to be explicitly managed by the resource.
|
static ca.uhn.fhir.rest.gclient.TokenClientParam |
IDENTIFIER
Fluent Client search parameter constant for identifier
|
static ca.uhn.fhir.model.api.Include |
INCLUDE_MEDICATION
Constant for fluent queries to be used to add include statements.
|
static ca.uhn.fhir.model.api.Include |
INCLUDE_PATIENT
Constant for fluent queries to be used to add include statements.
|
static ca.uhn.fhir.model.api.Include |
INCLUDE_SOURCE
Constant for fluent queries to be used to add include statements.
|
protected Reference |
informationSource
The person who provided the information about the taking of this medication.
|
protected Resource |
informationSourceTarget
The actual object that is the target of the reference (The person who provided the information about the taking of this medication.
|
protected Type |
medication
Identifies the medication being administered.
|
static ca.uhn.fhir.rest.gclient.ReferenceClientParam |
MEDICATION
Fluent Client search parameter constant for medication
|
protected List<Annotation> |
note
Provides extra information about the medication statement that is not conveyed by the other attributes.
|
protected Reference |
patient
The person or animal who is/was taking the medication.
|
static ca.uhn.fhir.rest.gclient.ReferenceClientParam |
PATIENT
Fluent Client search parameter constant for patient
|
protected Patient |
patientTarget
The actual object that is the target of the reference (The person or animal who is/was taking the medication.)
|
protected Type |
reasonForUse
A reason for why the medication is being/was taken.
|
protected List<CodeableConcept> |
reasonNotTaken
A code indicating why the medication was not taken.
|
static ca.uhn.fhir.rest.gclient.ReferenceClientParam |
SOURCE
Fluent Client search parameter constant for source
|
static String |
SP_CODE
Search parameter: code
|
static String |
SP_EFFECTIVE
Search parameter: effective
|
static String |
SP_IDENTIFIER
Search parameter: identifier
|
static String |
SP_MEDICATION
Search parameter: medication
|
static String |
SP_PATIENT
Search parameter: patient
|
static String |
SP_SOURCE
Search parameter: source
|
static String |
SP_STATUS
Search parameter: status
|
protected Enumeration<MedicationStatement.MedicationStatementStatus> |
status
A code representing the patient or other source's judgment about the state of the medication used that this statement is about.
|
static ca.uhn.fhir.rest.gclient.TokenClientParam |
STATUS
Fluent Client search parameter constant for status
|
protected List<Reference> |
supportingInformation
Allows linking the MedicationStatement to the underlying MedicationOrder, or to other information that supports or is used to derive the MedicationStatement.
|
protected List<Resource> |
supportingInformationTarget
The actual objects that are the target of the reference (Allows linking the MedicationStatement to the underlying MedicationOrder, or to other information that supports or is used to derive the MedicationStatement.)
|
protected BooleanType |
wasNotTaken
Set this to true if the record is saying that the medication was NOT taken.
|
contained, extension, modifierExtension, textid, implicitRules, language, meta| Constructor and Description |
|---|
MedicationStatement()
Constructor
|
MedicationStatement(Enumeration<MedicationStatement.MedicationStatementStatus> status,
Type medication,
Reference patient)
Constructor
|
addContained, addExtension, addExtension, addModifierExtension, addModifierExtension, copyValues, getContained, getExtension, getExtensionsByUrl, getModifierExtension, getModifierExtensionsByUrl, getText, hasContained, hasExtension, hasModifierExtension, hasText, setTextcopyValues, getId, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMetagetStructureFhirVersionEnum, setIdcastToActionDefinition, castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToModuleMetadata, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINNclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId, getIdElement, getLanguageElement, getUserData, setId, setUserDataprotected List<Identifier> identifier
protected Enumeration<MedicationStatement.MedicationStatementStatus> status
protected Type medication
protected Patient patientTarget
protected Type effective
protected Reference informationSource
protected Resource informationSourceTarget
protected List<Reference> supportingInformation
protected List<Resource> supportingInformationTarget
protected DateTimeType dateAsserted
protected BooleanType wasNotTaken
protected List<CodeableConcept> reasonNotTaken
protected Type reasonForUse
protected List<Annotation> note
protected List<MedicationStatement.MedicationStatementDosageComponent> dosage
public static final String SP_MEDICATION
Description: Return administrations of this medication reference
Type: reference
Path: MedicationStatement.medicationReference
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam MEDICATION
Description: Return administrations of this medication reference
Type: reference
Path: MedicationStatement.medicationReference
public static final ca.uhn.fhir.model.api.Include INCLUDE_MEDICATION
public static final String SP_PATIENT
Description: The identity of a patient to list statements for
Type: reference
Path: MedicationStatement.patient
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT
Description: The identity of a patient to list statements for
Type: reference
Path: MedicationStatement.patient
public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT
public static final String SP_SOURCE
Description: Who the information in the statement came from
Type: reference
Path: MedicationStatement.informationSource
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SOURCE
Description: Who the information in the statement came from
Type: reference
Path: MedicationStatement.informationSource
public static final ca.uhn.fhir.model.api.Include INCLUDE_SOURCE
public static final String SP_STATUS
Description: Return statements that match the given status
Type: token
Path: MedicationStatement.status
public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS
Description: Return statements that match the given status
Type: token
Path: MedicationStatement.status
public static final String SP_CODE
Description: Return administrations of this medication code
Type: token
Path: MedicationStatement.medicationCodeableConcept
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE
Description: Return administrations of this medication code
Type: token
Path: MedicationStatement.medicationCodeableConcept
public static final String SP_IDENTIFIER
Description: Return statements with this external identifier
Type: token
Path: MedicationStatement.identifier
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
Description: Return statements with this external identifier
Type: token
Path: MedicationStatement.identifier
public static final String SP_EFFECTIVE
Description: Date when patient was taking (or not taking) the medication
Type: date
Path: MedicationStatement.effective[x]
public static final ca.uhn.fhir.rest.gclient.DateClientParam EFFECTIVE
Description: Date when patient was taking (or not taking) the medication
Type: date
Path: MedicationStatement.effective[x]
public MedicationStatement()
public MedicationStatement(Enumeration<MedicationStatement.MedicationStatementStatus> status, Type medication, Reference patient)
public List<Identifier> getIdentifier()
identifier (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 boolean hasIdentifier()
public Identifier addIdentifier()
identifier (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(Identifier t)
public Enumeration<MedicationStatement.MedicationStatementStatus> getStatusElement()
status (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.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the valuepublic boolean hasStatusElement()
public boolean hasStatus()
public MedicationStatement setStatusElement(Enumeration<MedicationStatement.MedicationStatementStatus> value)
value - status (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.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the valuepublic MedicationStatement.MedicationStatementStatus getStatus()
public MedicationStatement setStatus(MedicationStatement.MedicationStatementStatus value)
value - 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 Type getMedication()
medication (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 CodeableConcept getMedicationCodeableConcept() throws org.hl7.fhir.exceptions.FHIRException
medication (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.)org.hl7.fhir.exceptions.FHIRExceptionpublic boolean hasMedicationCodeableConcept()
public Reference getMedicationReference() throws org.hl7.fhir.exceptions.FHIRException
medication (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.)org.hl7.fhir.exceptions.FHIRExceptionpublic boolean hasMedicationReference()
public boolean hasMedication()
public MedicationStatement setMedication(Type value)
value - medication (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 Reference getPatient()
patient (The person or animal who is/was taking the medication.)public boolean hasPatient()
public MedicationStatement setPatient(Reference value)
value - patient (The person or animal who is/was taking the medication.)public Patient getPatientTarget()
patient The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The person or animal who is/was taking the medication.)public MedicationStatement setPatientTarget(Patient value)
value - patient The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The person or animal who is/was taking the medication.)public Type getEffective()
effective (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 DateTimeType getEffectiveDateTimeType() throws org.hl7.fhir.exceptions.FHIRException
effective (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).)org.hl7.fhir.exceptions.FHIRExceptionpublic boolean hasEffectiveDateTimeType()
public Period getEffectivePeriod() throws org.hl7.fhir.exceptions.FHIRException
effective (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).)org.hl7.fhir.exceptions.FHIRExceptionpublic boolean hasEffectivePeriod()
public boolean hasEffective()
public MedicationStatement setEffective(Type value)
value - effective (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 Reference getInformationSource()
informationSource (The person who provided the information about the taking of this medication. Note: A MedicationStatement may be derived from supportingInformation e.g claims or medicationOrder.)public boolean hasInformationSource()
public MedicationStatement setInformationSource(Reference value)
value - informationSource (The person who provided the information about the taking of this medication. Note: A MedicationStatement may be derived from supportingInformation e.g claims or medicationOrder.)public Resource getInformationSourceTarget()
informationSource The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The person who provided the information about the taking of this medication. Note: A MedicationStatement may be derived from supportingInformation e.g claims or medicationOrder.)public MedicationStatement setInformationSourceTarget(Resource value)
value - informationSource The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The person who provided the information about the taking of this medication. Note: A MedicationStatement may be derived from supportingInformation e.g claims or medicationOrder.)public List<Reference> getSupportingInformation()
supportingInformation (Allows linking the MedicationStatement to the underlying MedicationOrder, or to other information that supports or is used to derive the MedicationStatement.)public boolean hasSupportingInformation()
public Reference addSupportingInformation()
supportingInformation (Allows linking the MedicationStatement to the underlying MedicationOrder, or to other information that supports or is used to derive the MedicationStatement.)public MedicationStatement addSupportingInformation(Reference t)
public List<Resource> getSupportingInformationTarget()
supportingInformation (The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. Allows linking the MedicationStatement to the underlying MedicationOrder, or to other information that supports or is used to derive the MedicationStatement.)public DateTimeType getDateAssertedElement()
dateAsserted (The date when the medication statement was asserted by the information source.). This is the underlying object with id, value and extensions. The accessor "getDateAsserted" gives direct access to the valuepublic boolean hasDateAssertedElement()
public boolean hasDateAsserted()
public MedicationStatement setDateAssertedElement(DateTimeType value)
value - dateAsserted (The date when the medication statement was asserted by the information source.). This is the underlying object with id, value and extensions. The accessor "getDateAsserted" gives direct access to the valuepublic Date getDateAsserted()
public MedicationStatement setDateAsserted(Date value)
value - The date when the medication statement was asserted by the information source.public BooleanType getWasNotTakenElement()
wasNotTaken (Set this to true if the record is saying that the medication was NOT taken.). This is the underlying object with id, value and extensions. The accessor "getWasNotTaken" gives direct access to the valuepublic boolean hasWasNotTakenElement()
public boolean hasWasNotTaken()
public MedicationStatement setWasNotTakenElement(BooleanType value)
value - wasNotTaken (Set this to true if the record is saying that the medication was NOT taken.). This is the underlying object with id, value and extensions. The accessor "getWasNotTaken" gives direct access to the valuepublic boolean getWasNotTaken()
public MedicationStatement setWasNotTaken(boolean value)
value - Set this to true if the record is saying that the medication was NOT taken.public List<CodeableConcept> getReasonNotTaken()
reasonNotTaken (A code indicating why the medication was not taken.)public boolean hasReasonNotTaken()
public CodeableConcept addReasonNotTaken()
reasonNotTaken (A code indicating why the medication was not taken.)public MedicationStatement addReasonNotTaken(CodeableConcept t)
public Type getReasonForUse()
reasonForUse (A reason for why the medication is being/was taken.)public CodeableConcept getReasonForUseCodeableConcept() throws org.hl7.fhir.exceptions.FHIRException
reasonForUse (A reason for why the medication is being/was taken.)org.hl7.fhir.exceptions.FHIRExceptionpublic boolean hasReasonForUseCodeableConcept()
public Reference getReasonForUseReference() throws org.hl7.fhir.exceptions.FHIRException
reasonForUse (A reason for why the medication is being/was taken.)org.hl7.fhir.exceptions.FHIRExceptionpublic boolean hasReasonForUseReference()
public boolean hasReasonForUse()
public MedicationStatement setReasonForUse(Type value)
value - reasonForUse (A reason for why the medication is being/was taken.)public List<Annotation> getNote()
note (Provides extra information about the medication statement that is not conveyed by the other attributes.)public boolean hasNote()
public Annotation addNote()
note (Provides extra information about the medication statement that is not conveyed by the other attributes.)public MedicationStatement addNote(Annotation t)
public List<MedicationStatement.MedicationStatementDosageComponent> getDosage()
dosage (Indicates how the medication is/was used by the patient.)public boolean hasDosage()
public MedicationStatement.MedicationStatementDosageComponent addDosage()
dosage (Indicates how the medication is/was used by the patient.)public MedicationStatement addDosage(MedicationStatement.MedicationStatementDosageComponent t)
protected void listChildren(List<Property> childrenList)
listChildren in class DomainResourcepublic Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
getProperty in class DomainResourceorg.hl7.fhir.exceptions.FHIRExceptionpublic void setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty in class DomainResourceorg.hl7.fhir.exceptions.FHIRExceptionpublic void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty in class DomainResourceorg.hl7.fhir.exceptions.FHIRExceptionpublic Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
makeProperty in class DomainResourceorg.hl7.fhir.exceptions.FHIRExceptionpublic Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
addChild in class DomainResourceorg.hl7.fhir.exceptions.FHIRExceptionpublic String fhirType()
fhirType in class DomainResourcepublic MedicationStatement copy()
copy in class DomainResourceprotected MedicationStatement typedCopy()
public boolean equalsDeep(Base other)
equalsDeep in class DomainResourcepublic boolean equalsShallow(Base other)
equalsShallow in class DomainResourcepublic boolean isEmpty()
isEmpty in interface org.hl7.fhir.instance.model.api.IBaseisEmpty in class DomainResourcepublic ResourceType getResourceType()
getResourceType in class ResourceCopyright © 2014–2018 University Health Network. All rights reserved.