Class MedicationStatement
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
Java class for MedicationStatement complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="MedicationStatement">
<complexContent>
<extension base="{http://hl7.org/fhir}DomainResource">
<sequence>
<element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/>
<element name="status" type="{http://hl7.org/fhir}MedicationStatementStatus"/>
<choice>
<element name="medicationCodeableConcept" type="{http://hl7.org/fhir}CodeableConcept"/>
<element name="medicationReference" type="{http://hl7.org/fhir}Reference"/>
</choice>
<element name="patient" type="{http://hl7.org/fhir}Reference"/>
<choice minOccurs="0">
<element name="effectiveDateTime" type="{http://hl7.org/fhir}dateTime"/>
<element name="effectivePeriod" type="{http://hl7.org/fhir}Period"/>
</choice>
<element name="informationSource" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
<element name="supportingInformation" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
<element name="dateAsserted" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
<element name="wasNotTaken" type="{http://hl7.org/fhir}boolean" minOccurs="0"/>
<element name="reasonNotTaken" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
<choice minOccurs="0">
<element name="reasonForUseCodeableConcept" type="{http://hl7.org/fhir}CodeableConcept"/>
<element name="reasonForUseReference" type="{http://hl7.org/fhir}Reference"/>
</choice>
<element name="note" type="{http://hl7.org/fhir}Annotation" maxOccurs="unbounded" minOccurs="0"/>
<element name="dosage" type="{http://hl7.org/fhir}MedicationStatement.Dosage" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DateTimeprotected List<MedicationStatementDosage> protected DateTimeprotected Periodprotected List<Identifier> protected Referenceprotected CodeableConceptprotected Referenceprotected List<Annotation> protected Referenceprotected CodeableConceptprotected Referenceprotected List<CodeableConcept> protected MedicationStatementStatusprotected BooleanFields inherited from class org.hl7.fhir.DomainResource
contained, extension, modifierExtension, textFields inherited from class org.hl7.fhir.Resource
id, implicitRules, language, meta -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) booleanbooleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy) Gets the value of the dateAsserted property.Gets the value of the dosage property.Gets the value of the effectiveDateTime property.Gets the value of the effectivePeriod property.Gets the value of the identifier property.Gets the value of the informationSource property.Gets the value of the medicationCodeableConcept property.Gets the value of the medicationReference property.getNote()Gets the value of the note property.Gets the value of the patient property.Gets the value of the reasonForUseCodeableConcept property.Gets the value of the reasonForUseReference property.Gets the value of the reasonNotTaken property.Gets the value of the status property.Gets the value of the supportingInformation property.Gets the value of the wasNotTaken property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy) voidsetDateAsserted(DateTime value) Sets the value of the dateAsserted property.voidsetDosage(List<MedicationStatementDosage> value) voidsetEffectiveDateTime(DateTime value) Sets the value of the effectiveDateTime property.voidsetEffectivePeriod(Period value) Sets the value of the effectivePeriod property.voidsetIdentifier(List<Identifier> value) voidsetInformationSource(Reference value) Sets the value of the informationSource property.voidSets the value of the medicationCodeableConcept property.voidsetMedicationReference(Reference value) Sets the value of the medicationReference property.voidsetNote(List<Annotation> value) voidsetPatient(Reference value) Sets the value of the patient property.voidSets the value of the reasonForUseCodeableConcept property.voidSets the value of the reasonForUseReference property.voidsetReasonNotTaken(List<CodeableConcept> value) voidSets the value of the status property.voidsetSupportingInformation(List<Reference> value) voidsetWasNotTaken(Boolean value) Sets the value of the wasNotTaken property.toString()withContained(Collection<ResourceContainer> values) withContained(ResourceContainer... values) withDateAsserted(DateTime value) withDosage(MedicationStatementDosage... values) withEffectiveDateTime(DateTime value) withEffectivePeriod(Period value) withExtension(Collection<Extension> values) withExtension(Extension... values) withIdentifier(Collection<Identifier> values) withIdentifier(Identifier... values) withImplicitRules(Uri value) withInformationSource(Reference value) withLanguage(Code value) withMedicationReference(Reference value) withModifierExtension(Collection<Extension> values) withModifierExtension(Extension... values) withNote(Collection<Annotation> values) withNote(Annotation... values) withPatient(Reference value) withReasonNotTaken(Collection<CodeableConcept> values) withReasonNotTaken(CodeableConcept... values) withSupportingInformation(Collection<Reference> values) withSupportingInformation(Reference... values) withWasNotTaken(Boolean value) Methods inherited from class org.hl7.fhir.DomainResource
getContained, getExtension, getModifierExtension, getText, setContained, setExtension, setModifierExtension, setTextMethods inherited from class org.hl7.fhir.Resource
getId, getImplicitRules, getLanguage, getMeta, setId, setImplicitRules, setLanguage, setMeta
-
Field Details
-
identifier
-
status
-
medicationCodeableConcept
-
medicationReference
-
patient
-
effectiveDateTime
-
effectivePeriod
-
informationSource
-
supportingInformation
-
dateAsserted
-
wasNotTaken
-
reasonNotTaken
-
reasonForUseCodeableConcept
-
reasonForUseReference
-
note
-
dosage
-
-
Constructor Details
-
MedicationStatement
public MedicationStatement()
-
-
Method Details
-
getIdentifier
Gets the value of the identifier property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
setmethod for the identifier property.For example, to add a new item, do as follows:
getIdentifier().add(newItem);Objects of the following type(s) are allowed in the list
Identifier -
getStatus
Gets the value of the status property.- Returns:
- possible object is
MedicationStatementStatus
-
setStatus
Sets the value of the status property.- Parameters:
value- allowed object isMedicationStatementStatus
-
getMedicationCodeableConcept
Gets the value of the medicationCodeableConcept property.- Returns:
- possible object is
CodeableConcept
-
setMedicationCodeableConcept
Sets the value of the medicationCodeableConcept property.- Parameters:
value- allowed object isCodeableConcept
-
getMedicationReference
Gets the value of the medicationReference property.- Returns:
- possible object is
Reference
-
setMedicationReference
Sets the value of the medicationReference property.- Parameters:
value- allowed object isReference
-
getPatient
Gets the value of the patient property.- Returns:
- possible object is
Reference
-
setPatient
Sets the value of the patient property.- Parameters:
value- allowed object isReference
-
getEffectiveDateTime
Gets the value of the effectiveDateTime property.- Returns:
- possible object is
DateTime
-
setEffectiveDateTime
Sets the value of the effectiveDateTime property.- Parameters:
value- allowed object isDateTime
-
getEffectivePeriod
Gets the value of the effectivePeriod property.- Returns:
- possible object is
Period
-
setEffectivePeriod
Sets the value of the effectivePeriod property.- Parameters:
value- allowed object isPeriod
-
getInformationSource
Gets the value of the informationSource property.- Returns:
- possible object is
Reference
-
setInformationSource
Sets the value of the informationSource property.- Parameters:
value- allowed object isReference
-
getSupportingInformation
Gets the value of the supportingInformation property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
setmethod for the supportingInformation property.For example, to add a new item, do as follows:
getSupportingInformation().add(newItem);Objects of the following type(s) are allowed in the list
Reference -
getDateAsserted
Gets the value of the dateAsserted property.- Returns:
- possible object is
DateTime
-
setDateAsserted
Sets the value of the dateAsserted property.- Parameters:
value- allowed object isDateTime
-
getWasNotTaken
Gets the value of the wasNotTaken property.- Returns:
- possible object is
Boolean
-
setWasNotTaken
Sets the value of the wasNotTaken property.- Parameters:
value- allowed object isBoolean
-
getReasonNotTaken
Gets the value of the reasonNotTaken property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
setmethod for the reasonNotTaken property.For example, to add a new item, do as follows:
getReasonNotTaken().add(newItem);Objects of the following type(s) are allowed in the list
CodeableConcept -
getReasonForUseCodeableConcept
Gets the value of the reasonForUseCodeableConcept property.- Returns:
- possible object is
CodeableConcept
-
setReasonForUseCodeableConcept
Sets the value of the reasonForUseCodeableConcept property.- Parameters:
value- allowed object isCodeableConcept
-
getReasonForUseReference
Gets the value of the reasonForUseReference property.- Returns:
- possible object is
Reference
-
setReasonForUseReference
Sets the value of the reasonForUseReference property.- Parameters:
value- allowed object isReference
-
getNote
Gets the value of the note property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
setmethod for the note property.For example, to add a new item, do as follows:
getNote().add(newItem);Objects of the following type(s) are allowed in the list
Annotation -
getDosage
Gets the value of the dosage property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
setmethod for the dosage property.For example, to add a new item, do as follows:
getDosage().add(newItem);Objects of the following type(s) are allowed in the list
MedicationStatementDosage -
withIdentifier
-
withIdentifier
-
withStatus
-
withMedicationCodeableConcept
-
withMedicationReference
-
withPatient
-
withEffectiveDateTime
-
withEffectivePeriod
-
withInformationSource
-
withSupportingInformation
-
withSupportingInformation
-
withDateAsserted
-
withWasNotTaken
-
withReasonNotTaken
-
withReasonNotTaken
-
withReasonForUseCodeableConcept
-
withReasonForUseReference
-
withNote
-
withNote
-
withDosage
-
withDosage
-
withText
- Overrides:
withTextin classDomainResource
-
withContained
- Overrides:
withContainedin classDomainResource
-
withContained
- Overrides:
withContainedin classDomainResource
-
withExtension
- Overrides:
withExtensionin classDomainResource
-
withExtension
- Overrides:
withExtensionin classDomainResource
-
withModifierExtension
- Overrides:
withModifierExtensionin classDomainResource
-
withModifierExtension
- Overrides:
withModifierExtensionin classDomainResource
-
withId
- Overrides:
withIdin classDomainResource
-
withMeta
- Overrides:
withMetain classDomainResource
-
withImplicitRules
- Overrides:
withImplicitRulesin classDomainResource
-
withLanguage
- Overrides:
withLanguagein classDomainResource
-
equals
public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy) - Specified by:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals2- Overrides:
equalsin classDomainResource
-
equals
- Overrides:
equalsin classDomainResource
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy) - Specified by:
hashCodein interfaceorg.jvnet.jaxb2_commons.lang.HashCode2- Overrides:
hashCodein classDomainResource
-
hashCode
public int hashCode()- Overrides:
hashCodein classDomainResource
-
toString
- Overrides:
toStringin classDomainResource
-
append
public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) - Specified by:
appendin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendin classDomainResource
-
appendFields
public StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) - Specified by:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendFieldsin classDomainResource
-
setIdentifier
-
setSupportingInformation
-
setReasonNotTaken
-
setNote
-
setDosage
-