Class MedicationStatement
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement
,Serializable
,org.hl7.fhir.instance.model.api.IAnyResource
,org.hl7.fhir.instance.model.api.IBase
,org.hl7.fhir.instance.model.api.IBaseHasExtensions
,org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions
,org.hl7.fhir.instance.model.api.IBaseResource
,org.hl7.fhir.instance.model.api.IDomainResource
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static class
static enum
static class
-
Field Summary
Modifier and TypeFieldDescriptionA plan, proposal or order that is fulfilled in whole or in part by this event.The actual objects that are the target of the reference (A plan, proposal or order that is fulfilled in whole or in part by this event.)protected CodeableConcept
Indicates where type of medication statement and where the medication is expected to be consumed or administered.static final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for categorystatic final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for codeprotected Reference
The encounter or episode of care that establishes the context for this MedicationStatement.static final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for contextprotected Resource
The actual object that is the target of the reference (The encounter or episode of care that establishes the context for this MedicationStatement.)protected DateTimeType
The date when the medication statement was asserted by the information source.Allows linking the MedicationStatement to the underlying MedicationRequest, or to other information that supports or is used to derive the MedicationStatement.The actual objects that are the target of the reference (Allows linking the MedicationStatement to the underlying MedicationRequest, or to other information that supports or is used to derive the MedicationStatement.)Indicates how the medication is/was or should be taken by the patient.protected Type
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 final ca.uhn.fhir.rest.gclient.DateClientParam
Fluent Client search parameter constant for effectiveprotected List
<Identifier> External identifier - FHIR will generate its own internal identifiers (probably URLs) which do not need to be explicitly managed by the resource.static final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for identifierstatic final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.protected Reference
The person or organization that provided the information about the taking of this medication.protected Resource
The actual object that is the target of the reference (The person or organization that provided the information about the taking of this medication.protected Type
Identifies the medication being administered.static final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for medicationprotected List
<Annotation> Provides extra information about the medication statement that is not conveyed by the other attributes.static final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for part-ofA larger event of which this particular event is a component or step.The actual objects that are the target of the reference (A larger event of which this particular event is a component or step.)static final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for patientprotected List
<CodeableConcept> A reason for why the medication is being/was taken.protected List
<CodeableConcept> A code indicating why the medication was not taken.Condition or observation that supports why the medication is being/was taken.The actual objects that are the target of the reference (Condition or observation that supports why the medication is being/was taken.)static final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for sourcestatic final String
Search parameter: categorystatic final String
Search parameter: codestatic final String
Search parameter: contextstatic final String
Search parameter: effectivestatic final String
Search parameter: identifierstatic final String
Search parameter: medicationstatic final String
Search parameter: part-ofstatic final String
Search parameter: patientstatic final String
Search parameter: sourcestatic final String
Search parameter: statusstatic final String
Search parameter: subjectA code representing the patient or other source's judgment about the state of the medication used that this statement is about.static final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for statusprotected Reference
The person, animal or group who is/was taking the medication.static final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for subjectprotected Resource
The actual object that is the target of the reference (The person, animal or group who is/was taking the medication.)Indicator of the certainty of whether the medication was taken by the patient.Fields inherited from class org.hl7.fhir.dstu3.model.DomainResource
contained, extension, modifierExtension, text
Fields inherited from class org.hl7.fhir.dstu3.model.Resource
id, implicitRules, language, meta
Fields inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
RES_ID, RES_LAST_UPDATED, RES_PROFILE, RES_SECURITY, RES_TAG, SP_RES_ID, SP_RES_LAST_UPDATED, SP_RES_PROFILE, SP_RES_SECURITY, SP_RES_TAG
Fields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET
-
Constructor Summary
ConstructorDescriptionConstructorMedicationStatement
(Enumeration<MedicationStatement.MedicationStatementStatus> status, Type medication, Reference subject, Enumeration<MedicationStatement.MedicationStatementTaken> taken) Constructor -
Method Summary
Modifier and TypeMethodDescriptionaddNote()
copy()
boolean
equalsDeep
(Base other_) boolean
equalsShallow
(Base other_) fhirType()
Deprecated.Use Reference#setResource(IBaseResource) insteadDeprecated.Use Reference#setResource(IBaseResource) insteadgetNamedProperty
(int _hash, String _name, boolean _checkValid) getNote()
Deprecated.Use Reference#setResource(IBaseResource) insteadBase[]
getProperty
(int hash, String name, boolean checkValid) Deprecated.Use Reference#setResource(IBaseResource) insteadgetTaken()
String[]
getTypesForProperty
(int hash, String name) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
hasNote()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
hasTaken()
boolean
boolean
isEmpty()
protected void
listChildren
(List<Property> children) makeProperty
(int hash, String name) setBasedOn
(List<Reference> theBasedOn) setCategory
(CodeableConcept value) setContext
(Reference value) setContextTarget
(Resource value) setDateAsserted
(Date value) setDerivedFrom
(List<Reference> theDerivedFrom) setEffective
(Type value) setIdentifier
(List<Identifier> theIdentifier) setInformationSource
(Reference value) setMedication
(Type value) setNote
(List<Annotation> theNote) setProperty
(int hash, String name, Base value) setProperty
(String name, Base value) setReasonCode
(List<CodeableConcept> theReasonCode) setReasonNotTaken
(List<CodeableConcept> theReasonNotTaken) setReasonReference
(List<Reference> theReasonReference) setSubject
(Reference value) setSubjectTarget
(Resource value) protected MedicationStatement
Methods inherited from class org.hl7.fhir.dstu3.model.DomainResource
addContained, addExtension, addExtension, addExtension, addModifierExtension, addModifierExtension, copyValues, getContained, getExtension, getExtensionByUrl, getExtensionsByUrl, getModifierExtension, getModifierExtensionsByUrl, getText, hasContained, hasExtension, hasExtension, hasModifierExtension, hasText, setContained, setExtension, setModifierExtension, setText
Methods inherited from class org.hl7.fhir.dstu3.model.Resource
copyValues, getId, getIdBase, getIdElement, getIdPart, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdBase, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
Methods inherited from class org.hl7.fhir.dstu3.model.BaseResource
getStructureFhirVersionEnum, isResource, setId
Methods inherited from class org.hl7.fhir.dstu3.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isMetadataBased, isPrimitive, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINN
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getId, getIdElement, getLanguageElement, getUserData, setId, setUserData
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, hasFormatComment
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
getMeta, getStructureFhirVersionEnum, isDeleted, setId
-
Field Details
-
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. -
basedOn
A plan, proposal or order that is fulfilled in whole or in part by this event. -
basedOnTarget
The actual objects that are the target of the reference (A plan, proposal or order that is fulfilled in whole or in part by this event.) -
partOf
A larger event of which this particular event is a component or step. -
partOfTarget
The actual objects that are the target of the reference (A larger event of which this particular event is a component or step.) -
context
The encounter or episode of care that establishes the context for this MedicationStatement. -
contextTarget
The actual object that is the target of the reference (The encounter or episode of care that establishes the context for this MedicationStatement.) -
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. -
category
Indicates where type of medication statement and where the medication is expected to be consumed or administered. -
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. -
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). -
dateAsserted
The date when the medication statement was asserted by the information source. -
informationSource
The person or organization that provided the information about the taking of this medication. Note: Use derivedFrom when a MedicationStatement is derived from other resources, e.g Claim or MedicationRequest. -
informationSourceTarget
The actual object that is the target of the reference (The person or organization that provided the information about the taking of this medication. Note: Use derivedFrom when a MedicationStatement is derived from other resources, e.g Claim or MedicationRequest.) -
subject
The person, animal or group who is/was taking the medication. -
subjectTarget
The actual object that is the target of the reference (The person, animal or group who is/was taking the medication.) -
derivedFrom
Allows linking the MedicationStatement to the underlying MedicationRequest, or to other information that supports or is used to derive the MedicationStatement. -
derivedFromTarget
The actual objects that are the target of the reference (Allows linking the MedicationStatement to the underlying MedicationRequest, or to other information that supports or is used to derive the MedicationStatement.) -
taken
Indicator of the certainty of whether the medication was taken by the patient. -
reasonNotTaken
A code indicating why the medication was not taken. -
reasonCode
A reason for why the medication is being/was taken. -
reasonReference
Condition or observation that supports why the medication is being/was taken. -
reasonReferenceTarget
The actual objects that are the target of the reference (Condition or observation that supports why the medication is being/was taken.) -
note
Provides extra information about the medication statement that is not conveyed by the other attributes. -
dosage
Indicates how the medication is/was or should be taken by the patient. -
SP_IDENTIFIER
Search parameter: identifierDescription: Return statements with this external identifier
Type: token
Path: MedicationStatement.identifier
- See Also:
-
IDENTIFIER
Fluent Client search parameter constant for identifierDescription: Return statements with this external identifier
Type: token
Path: MedicationStatement.identifier
-
SP_EFFECTIVE
Search parameter: effectiveDescription: Date when patient was taking (or not taking) the medication
Type: date
Path: MedicationStatement.effective[x]
- See Also:
-
EFFECTIVE
Fluent Client search parameter constant for effectiveDescription: Date when patient was taking (or not taking) the medication
Type: date
Path: MedicationStatement.effective[x]
-
SP_CODE
Search parameter: codeDescription: Return statements of this medication code
Type: token
Path: MedicationStatement.medicationCodeableConcept
- See Also:
-
CODE
Fluent Client search parameter constant for codeDescription: Return statements of this medication code
Type: token
Path: MedicationStatement.medicationCodeableConcept
-
SP_SUBJECT
Search parameter: subjectDescription: The identity of a patient, animal or group to list statements for
Type: reference
Path: MedicationStatement.subject
- See Also:
-
SUBJECT
Fluent Client search parameter constant for subjectDescription: The identity of a patient, animal or group to list statements for
Type: reference
Path: MedicationStatement.subject
-
INCLUDE_SUBJECT
Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationStatement:subject". -
SP_PATIENT
Search parameter: patientDescription: Returns statements for a specific patient.
Type: reference
Path: MedicationStatement.subject
- See Also:
-
PATIENT
Fluent Client search parameter constant for patientDescription: Returns statements for a specific patient.
Type: reference
Path: MedicationStatement.subject
-
INCLUDE_PATIENT
Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationStatement:patient". -
SP_CONTEXT
Search parameter: contextDescription: Returns statements for a specific context (episode or episode of Care).
Type: reference
Path: MedicationStatement.context
- See Also:
-
CONTEXT
Fluent Client search parameter constant for contextDescription: Returns statements for a specific context (episode or episode of Care).
Type: reference
Path: MedicationStatement.context
-
INCLUDE_CONTEXT
Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationStatement:context". -
SP_MEDICATION
Search parameter: medicationDescription: Return statements of this medication reference
Type: reference
Path: MedicationStatement.medicationReference
- See Also:
-
MEDICATION
Fluent Client search parameter constant for medicationDescription: Return statements of this medication reference
Type: reference
Path: MedicationStatement.medicationReference
-
INCLUDE_MEDICATION
Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationStatement:medication". -
SP_PART_OF
Search parameter: part-ofDescription: Returns statements that are part of another event.
Type: reference
Path: MedicationStatement.partOf
- See Also:
-
PART_OF
Fluent Client search parameter constant for part-ofDescription: Returns statements that are part of another event.
Type: reference
Path: MedicationStatement.partOf
-
INCLUDE_PART_OF
Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationStatement:part-of". -
SP_SOURCE
Search parameter: sourceDescription: Who or where the information in the statement came from
Type: reference
Path: MedicationStatement.informationSource
- See Also:
-
SOURCE
Fluent Client search parameter constant for sourceDescription: Who or where the information in the statement came from
Type: reference
Path: MedicationStatement.informationSource
-
INCLUDE_SOURCE
Constant for fluent queries to be used to add include statements. Specifies the path value of "MedicationStatement:source". -
SP_CATEGORY
Search parameter: categoryDescription: Returns statements of this category of medicationstatement
Type: token
Path: MedicationStatement.category
- See Also:
-
CATEGORY
Fluent Client search parameter constant for categoryDescription: Returns statements of this category of medicationstatement
Type: token
Path: MedicationStatement.category
-
SP_STATUS
Search parameter: statusDescription: Return statements that match the given status
Type: token
Path: MedicationStatement.status
- See Also:
-
STATUS
Fluent Client search parameter constant for statusDescription: Return statements that match the given status
Type: token
Path: MedicationStatement.status
-
-
Constructor Details
-
MedicationStatement
public MedicationStatement()Constructor -
MedicationStatement
public MedicationStatement(Enumeration<MedicationStatement.MedicationStatementStatus> status, Type medication, Reference subject, Enumeration<MedicationStatement.MedicationStatementTaken> taken) Constructor
-
-
Method Details
-
getIdentifier
- Returns:
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.)
-
setIdentifier
- Returns:
- Returns a reference to
this
for easy method chaining
-
hasIdentifier
-
addIdentifier
-
addIdentifier
-
getIdentifierFirstRep
- Returns:
- The first repetition of repeating field
identifier
, creating it if it does not already exist
-
getBasedOn
- Returns:
basedOn
(A plan, proposal or order that is fulfilled in whole or in part by this event.)
-
setBasedOn
- Returns:
- Returns a reference to
this
for easy method chaining
-
hasBasedOn
-
addBasedOn
-
addBasedOn
-
getBasedOnFirstRep
- Returns:
- The first repetition of repeating field
basedOn
, creating it if it does not already exist
-
getBasedOnTarget
Deprecated.Use Reference#setResource(IBaseResource) instead -
getPartOf
- Returns:
partOf
(A larger event of which this particular event is a component or step.)
-
setPartOf
- Returns:
- Returns a reference to
this
for easy method chaining
-
hasPartOf
-
addPartOf
-
addPartOf
-
getPartOfFirstRep
- Returns:
- The first repetition of repeating field
partOf
, creating it if it does not already exist
-
getPartOfTarget
Deprecated.Use Reference#setResource(IBaseResource) instead -
getContext
- Returns:
context
(The encounter or episode of care that establishes the context for this MedicationStatement.)
-
hasContext
-
setContext
- Parameters:
value
-context
(The encounter or episode of care that establishes the context for this MedicationStatement.)
-
getContextTarget
- Returns:
context
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 encounter or episode of care that establishes the context for this MedicationStatement.)
-
setContextTarget
- Parameters:
value
-context
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 encounter or episode of care that establishes the context for this MedicationStatement.)
-
getStatusElement
- Returns:
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 value
-
hasStatusElement
-
hasStatus
-
setStatusElement
public MedicationStatement setStatusElement(Enumeration<MedicationStatement.MedicationStatementStatus> value) - Parameters:
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 value
-
getStatus
- Returns:
- 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.
-
setStatus
- Parameters:
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.
-
getCategory
- Returns:
category
(Indicates where type of medication statement and where the medication is expected to be consumed or administered.)
-
hasCategory
-
setCategory
- Parameters:
value
-category
(Indicates where type of medication statement and where the medication is expected to be consumed or administered.)
-
getMedication
- Returns:
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.)
-
getMedicationCodeableConcept
- Returns:
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.)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasMedicationCodeableConcept
-
getMedicationReference
- Returns:
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.)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasMedicationReference
-
hasMedication
-
setMedication
- Parameters:
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.)- Throws:
org.hl7.fhir.exceptions.FHIRFormatError
-
getEffective
- Returns:
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).)
-
getEffectiveDateTimeType
- Returns:
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).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasEffectiveDateTimeType
-
getEffectivePeriod
- Returns:
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).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasEffectivePeriod
-
hasEffective
-
setEffective
- Parameters:
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).)- Throws:
org.hl7.fhir.exceptions.FHIRFormatError
-
getDateAssertedElement
- Returns:
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 value
-
hasDateAssertedElement
-
hasDateAsserted
-
setDateAssertedElement
- Parameters:
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 value
-
getDateAsserted
- Returns:
- The date when the medication statement was asserted by the information source.
-
setDateAsserted
- Parameters:
value
- The date when the medication statement was asserted by the information source.
-
getInformationSource
- Returns:
informationSource
(The person or organization that provided the information about the taking of this medication. Note: Use derivedFrom when a MedicationStatement is derived from other resources, e.g Claim or MedicationRequest.)
-
hasInformationSource
-
setInformationSource
- Parameters:
value
-informationSource
(The person or organization that provided the information about the taking of this medication. Note: Use derivedFrom when a MedicationStatement is derived from other resources, e.g Claim or MedicationRequest.)
-
getInformationSourceTarget
- Returns:
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 or organization that provided the information about the taking of this medication. Note: Use derivedFrom when a MedicationStatement is derived from other resources, e.g Claim or MedicationRequest.)
-
setInformationSourceTarget
- Parameters:
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 or organization that provided the information about the taking of this medication. Note: Use derivedFrom when a MedicationStatement is derived from other resources, e.g Claim or MedicationRequest.)
-
getSubject
- Returns:
subject
(The person, animal or group who is/was taking the medication.)
-
hasSubject
-
setSubject
- Parameters:
value
-subject
(The person, animal or group who is/was taking the medication.)
-
getSubjectTarget
- Returns:
subject
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, animal or group who is/was taking the medication.)
-
setSubjectTarget
- Parameters:
value
-subject
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, animal or group who is/was taking the medication.)
-
getDerivedFrom
- Returns:
derivedFrom
(Allows linking the MedicationStatement to the underlying MedicationRequest, or to other information that supports or is used to derive the MedicationStatement.)
-
setDerivedFrom
- Returns:
- Returns a reference to
this
for easy method chaining
-
hasDerivedFrom
-
addDerivedFrom
-
addDerivedFrom
-
getDerivedFromFirstRep
- Returns:
- The first repetition of repeating field
derivedFrom
, creating it if it does not already exist
-
getDerivedFromTarget
Deprecated.Use Reference#setResource(IBaseResource) instead -
getTakenElement
- Returns:
taken
(Indicator of the certainty of whether the medication was taken by the patient.). This is the underlying object with id, value and extensions. The accessor "getTaken" gives direct access to the value
-
hasTakenElement
-
hasTaken
-
setTakenElement
public MedicationStatement setTakenElement(Enumeration<MedicationStatement.MedicationStatementTaken> value) - Parameters:
value
-taken
(Indicator of the certainty of whether the medication was taken by the patient.). This is the underlying object with id, value and extensions. The accessor "getTaken" gives direct access to the value
-
getTaken
- Returns:
- Indicator of the certainty of whether the medication was taken by the patient.
-
setTaken
- Parameters:
value
- Indicator of the certainty of whether the medication was taken by the patient.
-
getReasonNotTaken
- Returns:
reasonNotTaken
(A code indicating why the medication was not taken.)
-
setReasonNotTaken
- Returns:
- Returns a reference to
this
for easy method chaining
-
hasReasonNotTaken
-
addReasonNotTaken
-
addReasonNotTaken
-
getReasonNotTakenFirstRep
- Returns:
- The first repetition of repeating field
reasonNotTaken
, creating it if it does not already exist
-
getReasonCode
- Returns:
reasonCode
(A reason for why the medication is being/was taken.)
-
setReasonCode
- Returns:
- Returns a reference to
this
for easy method chaining
-
hasReasonCode
-
addReasonCode
-
addReasonCode
-
getReasonCodeFirstRep
- Returns:
- The first repetition of repeating field
reasonCode
, creating it if it does not already exist
-
getReasonReference
- Returns:
reasonReference
(Condition or observation that supports why the medication is being/was taken.)
-
setReasonReference
- Returns:
- Returns a reference to
this
for easy method chaining
-
hasReasonReference
-
addReasonReference
-
addReasonReference
-
getReasonReferenceFirstRep
- Returns:
- The first repetition of repeating field
reasonReference
, creating it if it does not already exist
-
getReasonReferenceTarget
Deprecated.Use Reference#setResource(IBaseResource) instead -
getNote
- Returns:
note
(Provides extra information about the medication statement that is not conveyed by the other attributes.)
-
setNote
- Returns:
- Returns a reference to
this
for easy method chaining
-
hasNote
-
addNote
-
addNote
-
getNoteFirstRep
- Returns:
- The first repetition of repeating field
note
, creating it if it does not already exist
-
getDosage
- Returns:
dosage
(Indicates how the medication is/was or should be taken by the patient.)
-
setDosage
- Returns:
- Returns a reference to
this
for easy method chaining
-
hasDosage
-
addDosage
-
addDosage
-
getDosageFirstRep
- Returns:
- The first repetition of repeating field
dosage
, creating it if it does not already exist
-
listChildren
- Overrides:
listChildren
in classDomainResource
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getNamedProperty
in classDomainResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getProperty
in classDomainResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
setProperty
in classDomainResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
- Overrides:
setProperty
in classDomainResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
- Overrides:
makeProperty
in classDomainResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getTypesForProperty
in classDomainResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
- Overrides:
addChild
in classDomainResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
- Specified by:
fhirType
in interfaceorg.hl7.fhir.instance.model.api.IBase
- Overrides:
fhirType
in classDomainResource
-
copy
- Specified by:
copy
in classDomainResource
-
typedCopy
-
equalsDeep
- Overrides:
equalsDeep
in classDomainResource
-
equalsShallow
- Overrides:
equalsShallow
in classDomainResource
-
isEmpty
- Specified by:
isEmpty
in interfaceorg.hl7.fhir.instance.model.api.IBase
- Overrides:
isEmpty
in classDomainResource
-
getResourceType
- Specified by:
getResourceType
in classResource
-