Class MedicationStatement
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class MedicationStatement extends DomainResource implements 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
Fields Modifier and Type Field Description protected DateTimedateAssertedprotected java.util.List<MedicationStatementDosage>dosageprotected DateTimeeffectiveDateTimeprotected PeriodeffectivePeriodprotected java.util.List<Identifier>identifierprotected ReferenceinformationSourceprotected CodeableConceptmedicationCodeableConceptprotected ReferencemedicationReferenceprotected java.util.List<Annotation>noteprotected Referencepatientprotected CodeableConceptreasonForUseCodeableConceptprotected ReferencereasonForUseReferenceprotected java.util.List<CodeableConcept>reasonNotTakenprotected MedicationStatementStatusstatusprotected java.util.List<Reference>supportingInformationprotected BooleanwasNotTakenFields inherited from class org.hl7.fhir.DomainResource
contained, extension, modifierExtension, text -
Constructor Summary
Constructors Constructor Description MedicationStatement() -
Method Summary
Modifier and Type Method Description java.lang.StringBuilderappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)java.lang.StringBuilderappendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)booleanequals(java.lang.Object object)booleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)DateTimegetDateAsserted()Gets the value of the dateAsserted property.java.util.List<MedicationStatementDosage>getDosage()Gets the value of the dosage property.DateTimegetEffectiveDateTime()Gets the value of the effectiveDateTime property.PeriodgetEffectivePeriod()Gets the value of the effectivePeriod property.java.util.List<Identifier>getIdentifier()Gets the value of the identifier property.ReferencegetInformationSource()Gets the value of the informationSource property.CodeableConceptgetMedicationCodeableConcept()Gets the value of the medicationCodeableConcept property.ReferencegetMedicationReference()Gets the value of the medicationReference property.java.util.List<Annotation>getNote()Gets the value of the note property.ReferencegetPatient()Gets the value of the patient property.CodeableConceptgetReasonForUseCodeableConcept()Gets the value of the reasonForUseCodeableConcept property.ReferencegetReasonForUseReference()Gets the value of the reasonForUseReference property.java.util.List<CodeableConcept>getReasonNotTaken()Gets the value of the reasonNotTaken property.MedicationStatementStatusgetStatus()Gets the value of the status property.java.util.List<Reference>getSupportingInformation()Gets the value of the supportingInformation property.BooleangetWasNotTaken()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.voidsetEffectiveDateTime(DateTime value)Sets the value of the effectiveDateTime property.voidsetEffectivePeriod(Period value)Sets the value of the effectivePeriod property.voidsetInformationSource(Reference value)Sets the value of the informationSource property.voidsetMedicationCodeableConcept(CodeableConcept value)Sets the value of the medicationCodeableConcept property.voidsetMedicationReference(Reference value)Sets the value of the medicationReference property.voidsetPatient(Reference value)Sets the value of the patient property.voidsetReasonForUseCodeableConcept(CodeableConcept value)Sets the value of the reasonForUseCodeableConcept property.voidsetReasonForUseReference(Reference value)Sets the value of the reasonForUseReference property.voidsetStatus(MedicationStatementStatus value)Sets the value of the status property.voidsetWasNotTaken(Boolean value)Sets the value of the wasNotTaken property.java.lang.StringtoString()MedicationStatementwithContained(java.util.Collection<ResourceContainer> values)MedicationStatementwithContained(ResourceContainer... values)MedicationStatementwithDateAsserted(DateTime value)MedicationStatementwithDosage(java.util.Collection<MedicationStatementDosage> values)MedicationStatementwithDosage(MedicationStatementDosage... values)MedicationStatementwithEffectiveDateTime(DateTime value)MedicationStatementwithEffectivePeriod(Period value)MedicationStatementwithExtension(java.util.Collection<Extension> values)MedicationStatementwithExtension(Extension... values)MedicationStatementwithId(Id value)MedicationStatementwithIdentifier(java.util.Collection<Identifier> values)MedicationStatementwithIdentifier(Identifier... values)MedicationStatementwithImplicitRules(Uri value)MedicationStatementwithInformationSource(Reference value)MedicationStatementwithLanguage(Code value)MedicationStatementwithMedicationCodeableConcept(CodeableConcept value)MedicationStatementwithMedicationReference(Reference value)MedicationStatementwithMeta(Meta value)MedicationStatementwithModifierExtension(java.util.Collection<Extension> values)MedicationStatementwithModifierExtension(Extension... values)MedicationStatementwithNote(java.util.Collection<Annotation> values)MedicationStatementwithNote(Annotation... values)MedicationStatementwithPatient(Reference value)MedicationStatementwithReasonForUseCodeableConcept(CodeableConcept value)MedicationStatementwithReasonForUseReference(Reference value)MedicationStatementwithReasonNotTaken(java.util.Collection<CodeableConcept> values)MedicationStatementwithReasonNotTaken(CodeableConcept... values)MedicationStatementwithStatus(MedicationStatementStatus value)MedicationStatementwithSupportingInformation(java.util.Collection<Reference> values)MedicationStatementwithSupportingInformation(Reference... values)MedicationStatementwithText(Narrative value)MedicationStatementwithWasNotTaken(Boolean value)Methods inherited from class org.hl7.fhir.DomainResource
getContained, getExtension, getModifierExtension, getText, setTextMethods inherited from class org.hl7.fhir.Resource
getId, getImplicitRules, getLanguage, getMeta, setId, setImplicitRules, setLanguage, setMeta
-
Field Details
-
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 JAXB 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 JAXB 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 JAXB 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 JAXB 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 JAXB 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, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)- Specified by:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals2- Overrides:
equalsin classDomainResource
-
equals
public boolean equals(java.lang.Object object)- 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
public java.lang.String toString()- Overrides:
toStringin classDomainResource
-
append
public java.lang.StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendin classDomainResource
-
appendFields
public java.lang.StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendFieldsin classDomainResource
-