Class MedicationStatement
- java.lang.Object
-
- org.hl7.fhir.Resource
-
- org.hl7.fhir.DomainResource
-
- org.hl7.fhir.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
If the element is present, it must have either a @value, an @id, or extensionsJava 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 BooleanwasNotTaken-
Fields inherited from class org.hl7.fhir.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description MedicationStatement()
-
Method Summary
All Methods Instance Methods Concrete Methods 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, setText
-
Methods inherited from class org.hl7.fhir.Resource
getId, getImplicitRules, getLanguage, getMeta, setId, setImplicitRules, setLanguage, setMeta
-
-
-
-
Field Detail
-
identifier
protected java.util.List<Identifier> identifier
-
status
protected MedicationStatementStatus status
-
medicationCodeableConcept
protected CodeableConcept medicationCodeableConcept
-
medicationReference
protected Reference medicationReference
-
patient
protected Reference patient
-
effectiveDateTime
protected DateTime effectiveDateTime
-
effectivePeriod
protected Period effectivePeriod
-
informationSource
protected Reference informationSource
-
supportingInformation
protected java.util.List<Reference> supportingInformation
-
dateAsserted
protected DateTime dateAsserted
-
wasNotTaken
protected Boolean wasNotTaken
-
reasonNotTaken
protected java.util.List<CodeableConcept> reasonNotTaken
-
reasonForUseCodeableConcept
protected CodeableConcept reasonForUseCodeableConcept
-
reasonForUseReference
protected Reference reasonForUseReference
-
note
protected java.util.List<Annotation> note
-
dosage
protected java.util.List<MedicationStatementDosage> dosage
-
-
Method Detail
-
getIdentifier
public java.util.List<Identifier> 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
public MedicationStatementStatus getStatus()
Gets the value of the status property.- Returns:
- possible object is
MedicationStatementStatus
-
setStatus
public void setStatus(MedicationStatementStatus value)
Sets the value of the status property.- Parameters:
value- allowed object isMedicationStatementStatus
-
getMedicationCodeableConcept
public CodeableConcept getMedicationCodeableConcept()
Gets the value of the medicationCodeableConcept property.- Returns:
- possible object is
CodeableConcept
-
setMedicationCodeableConcept
public void setMedicationCodeableConcept(CodeableConcept value)
Sets the value of the medicationCodeableConcept property.- Parameters:
value- allowed object isCodeableConcept
-
getMedicationReference
public Reference getMedicationReference()
Gets the value of the medicationReference property.- Returns:
- possible object is
Reference
-
setMedicationReference
public void setMedicationReference(Reference value)
Sets the value of the medicationReference property.- Parameters:
value- allowed object isReference
-
getPatient
public Reference getPatient()
Gets the value of the patient property.- Returns:
- possible object is
Reference
-
setPatient
public void setPatient(Reference value)
Sets the value of the patient property.- Parameters:
value- allowed object isReference
-
getEffectiveDateTime
public DateTime getEffectiveDateTime()
Gets the value of the effectiveDateTime property.- Returns:
- possible object is
DateTime
-
setEffectiveDateTime
public void setEffectiveDateTime(DateTime value)
Sets the value of the effectiveDateTime property.- Parameters:
value- allowed object isDateTime
-
getEffectivePeriod
public Period getEffectivePeriod()
Gets the value of the effectivePeriod property.- Returns:
- possible object is
Period
-
setEffectivePeriod
public void setEffectivePeriod(Period value)
Sets the value of the effectivePeriod property.- Parameters:
value- allowed object isPeriod
-
getInformationSource
public Reference getInformationSource()
Gets the value of the informationSource property.- Returns:
- possible object is
Reference
-
setInformationSource
public void setInformationSource(Reference value)
Sets the value of the informationSource property.- Parameters:
value- allowed object isReference
-
getSupportingInformation
public java.util.List<Reference> 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
public DateTime getDateAsserted()
Gets the value of the dateAsserted property.- Returns:
- possible object is
DateTime
-
setDateAsserted
public void setDateAsserted(DateTime value)
Sets the value of the dateAsserted property.- Parameters:
value- allowed object isDateTime
-
getWasNotTaken
public Boolean getWasNotTaken()
Gets the value of the wasNotTaken property.- Returns:
- possible object is
Boolean
-
setWasNotTaken
public void setWasNotTaken(Boolean value)
Sets the value of the wasNotTaken property.- Parameters:
value- allowed object isBoolean
-
getReasonNotTaken
public java.util.List<CodeableConcept> 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
public CodeableConcept getReasonForUseCodeableConcept()
Gets the value of the reasonForUseCodeableConcept property.- Returns:
- possible object is
CodeableConcept
-
setReasonForUseCodeableConcept
public void setReasonForUseCodeableConcept(CodeableConcept value)
Sets the value of the reasonForUseCodeableConcept property.- Parameters:
value- allowed object isCodeableConcept
-
getReasonForUseReference
public Reference getReasonForUseReference()
Gets the value of the reasonForUseReference property.- Returns:
- possible object is
Reference
-
setReasonForUseReference
public void setReasonForUseReference(Reference value)
Sets the value of the reasonForUseReference property.- Parameters:
value- allowed object isReference
-
getNote
public java.util.List<Annotation> 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
public java.util.List<MedicationStatementDosage> 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
public MedicationStatement withIdentifier(Identifier... values)
-
withIdentifier
public MedicationStatement withIdentifier(java.util.Collection<Identifier> values)
-
withStatus
public MedicationStatement withStatus(MedicationStatementStatus value)
-
withMedicationCodeableConcept
public MedicationStatement withMedicationCodeableConcept(CodeableConcept value)
-
withMedicationReference
public MedicationStatement withMedicationReference(Reference value)
-
withPatient
public MedicationStatement withPatient(Reference value)
-
withEffectiveDateTime
public MedicationStatement withEffectiveDateTime(DateTime value)
-
withEffectivePeriod
public MedicationStatement withEffectivePeriod(Period value)
-
withInformationSource
public MedicationStatement withInformationSource(Reference value)
-
withSupportingInformation
public MedicationStatement withSupportingInformation(Reference... values)
-
withSupportingInformation
public MedicationStatement withSupportingInformation(java.util.Collection<Reference> values)
-
withDateAsserted
public MedicationStatement withDateAsserted(DateTime value)
-
withWasNotTaken
public MedicationStatement withWasNotTaken(Boolean value)
-
withReasonNotTaken
public MedicationStatement withReasonNotTaken(CodeableConcept... values)
-
withReasonNotTaken
public MedicationStatement withReasonNotTaken(java.util.Collection<CodeableConcept> values)
-
withReasonForUseCodeableConcept
public MedicationStatement withReasonForUseCodeableConcept(CodeableConcept value)
-
withReasonForUseReference
public MedicationStatement withReasonForUseReference(Reference value)
-
withNote
public MedicationStatement withNote(Annotation... values)
-
withNote
public MedicationStatement withNote(java.util.Collection<Annotation> values)
-
withDosage
public MedicationStatement withDosage(MedicationStatementDosage... values)
-
withDosage
public MedicationStatement withDosage(java.util.Collection<MedicationStatementDosage> values)
-
withText
public MedicationStatement withText(Narrative value)
- Overrides:
withTextin classDomainResource
-
withContained
public MedicationStatement withContained(ResourceContainer... values)
- Overrides:
withContainedin classDomainResource
-
withContained
public MedicationStatement withContained(java.util.Collection<ResourceContainer> values)
- Overrides:
withContainedin classDomainResource
-
withExtension
public MedicationStatement withExtension(Extension... values)
- Overrides:
withExtensionin classDomainResource
-
withExtension
public MedicationStatement withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classDomainResource
-
withModifierExtension
public MedicationStatement withModifierExtension(Extension... values)
- Overrides:
withModifierExtensionin classDomainResource
-
withModifierExtension
public MedicationStatement withModifierExtension(java.util.Collection<Extension> values)
- Overrides:
withModifierExtensionin classDomainResource
-
withId
public MedicationStatement withId(Id value)
- Overrides:
withIdin classDomainResource
-
withMeta
public MedicationStatement withMeta(Meta value)
- Overrides:
withMetain classDomainResource
-
withImplicitRules
public MedicationStatement withImplicitRules(Uri value)
- Overrides:
withImplicitRulesin classDomainResource
-
withLanguage
public MedicationStatement withLanguage(Code value)
- 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
-
-