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 |
|---|---|
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).
|
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.
|
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.
|
protected StringType |
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.
|
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 String |
SP_CODE |
static String |
SP_EFFECTIVEDATE |
static String |
SP_IDENTIFIER |
static String |
SP_MEDICATION |
static String |
SP_PATIENT |
static String |
SP_SOURCE |
static String |
SP_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.
|
protected List<Reference> |
supportingInformation
Allows linking the MedicationStatement to the underlying MedicationOrder, or to other information that supports 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 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() |
MedicationStatement(Reference patient,
Enumeration<MedicationStatement.MedicationStatementStatus> status,
Type medication) |
addContained, addExtension, addExtension, addModifierExtension, addModifierExtension, copyValues, getContained, getExtension, getModifierExtension, getText, hasContained, hasExtension, hasModifierExtension, hasText, setTextcopyValues, getId, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, getStructureFhirVersionEnum, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMetasetIdcastToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, primitiveValue, setUserData, setUserDataINNclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId, getIdElement, getLanguageElement, getUserData, setId, setUserDataprotected List<Identifier> identifier
protected Patient patientTarget
protected Reference informationSource
protected Resource informationSourceTarget
protected DateTimeType dateAsserted
protected Enumeration<MedicationStatement.MedicationStatementStatus> status
protected BooleanType wasNotTaken
protected List<CodeableConcept> reasonNotTaken
protected Type reasonForUse
protected Type effective
protected StringType note
protected List<Reference> supportingInformation
protected List<Resource> supportingInformationTarget
protected Type medication
protected List<MedicationStatement.MedicationStatementDosageComponent> dosage
public static final String SP_IDENTIFIER
public static final String SP_CODE
public static final String SP_PATIENT
public static final String SP_MEDICATION
public static final String SP_SOURCE
public static final String SP_EFFECTIVEDATE
public static final String SP_STATUS
public MedicationStatement()
public MedicationStatement(Reference patient, Enumeration<MedicationStatement.MedicationStatementStatus> status, Type medication)
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 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 Reference getInformationSource()
informationSource (The person who provided the information about the taking of this medication.)public boolean hasInformationSource()
public MedicationStatement setInformationSource(Reference value)
value - informationSource (The person who provided the information about the taking of this medication.)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.)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.)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 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 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 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 StringType getNoteElement()
note (Provides extra information about the medication statement that is not conveyed by the other attributes.). This is the underlying object with id, value and extensions. The accessor "getNote" gives direct access to the valuepublic boolean hasNoteElement()
public boolean hasNote()
public MedicationStatement setNoteElement(StringType value)
value - note (Provides extra information about the medication statement that is not conveyed by the other attributes.). This is the underlying object with id, value and extensions. The accessor "getNote" gives direct access to the valuepublic String getNote()
public MedicationStatement setNote(String value)
value - Provides extra information about the medication statement that is not conveyed by the other attributes.public List<Reference> getSupportingInformation()
supportingInformation (Allows linking the MedicationStatement to the underlying MedicationOrder, or to other information that supports the MedicationStatement.)public boolean hasSupportingInformation()
public Reference addSupportingInformation()
supportingInformation (Allows linking the MedicationStatement to the underlying MedicationOrder, or to other information that supports 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 the MedicationStatement.)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 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 void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty 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.