public class MedicationStatement extends DomainResource implements org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.ToString
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>
| Modifier and Type | Field and Description |
|---|---|
protected DateTime |
dateAsserted |
protected java.util.List<MedicationStatementDosage> |
dosage |
protected DateTime |
effectiveDateTime |
protected Period |
effectivePeriod |
protected java.util.List<Identifier> |
identifier |
protected Reference |
informationSource |
protected CodeableConcept |
medicationCodeableConcept |
protected Reference |
medicationReference |
protected java.util.List<Annotation> |
note |
protected Reference |
patient |
protected CodeableConcept |
reasonForUseCodeableConcept |
protected Reference |
reasonForUseReference |
protected java.util.List<CodeableConcept> |
reasonNotTaken |
protected MedicationStatementStatus |
status |
protected java.util.List<Reference> |
supportingInformation |
protected Boolean |
wasNotTaken |
contained, extension, modifierExtension, textid, implicitRules, language, meta| Constructor and Description |
|---|
MedicationStatement() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.StringBuilder |
append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
java.lang.StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy) |
java.lang.StringBuilder |
appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
java.lang.StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy) |
boolean |
equals(java.lang.Object object) |
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.EqualsStrategy strategy) |
DateTime |
getDateAsserted()
Gets the value of the dateAsserted property.
|
java.util.List<MedicationStatementDosage> |
getDosage()
Gets the value of the dosage property.
|
DateTime |
getEffectiveDateTime()
Gets the value of the effectiveDateTime property.
|
Period |
getEffectivePeriod()
Gets the value of the effectivePeriod property.
|
java.util.List<Identifier> |
getIdentifier()
Gets the value of the identifier property.
|
Reference |
getInformationSource()
Gets the value of the informationSource property.
|
CodeableConcept |
getMedicationCodeableConcept()
Gets the value of the medicationCodeableConcept property.
|
Reference |
getMedicationReference()
Gets the value of the medicationReference property.
|
java.util.List<Annotation> |
getNote()
Gets the value of the note property.
|
Reference |
getPatient()
Gets the value of the patient property.
|
CodeableConcept |
getReasonForUseCodeableConcept()
Gets the value of the reasonForUseCodeableConcept property.
|
Reference |
getReasonForUseReference()
Gets the value of the reasonForUseReference property.
|
java.util.List<CodeableConcept> |
getReasonNotTaken()
Gets the value of the reasonNotTaken property.
|
MedicationStatementStatus |
getStatus()
Gets the value of the status property.
|
java.util.List<Reference> |
getSupportingInformation()
Gets the value of the supportingInformation property.
|
Boolean |
getWasNotTaken()
Gets the value of the wasNotTaken property.
|
int |
hashCode() |
int |
hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy) |
void |
setDateAsserted(DateTime value)
Sets the value of the dateAsserted property.
|
void |
setEffectiveDateTime(DateTime value)
Sets the value of the effectiveDateTime property.
|
void |
setEffectivePeriod(Period value)
Sets the value of the effectivePeriod property.
|
void |
setInformationSource(Reference value)
Sets the value of the informationSource property.
|
void |
setMedicationCodeableConcept(CodeableConcept value)
Sets the value of the medicationCodeableConcept property.
|
void |
setMedicationReference(Reference value)
Sets the value of the medicationReference property.
|
void |
setPatient(Reference value)
Sets the value of the patient property.
|
void |
setReasonForUseCodeableConcept(CodeableConcept value)
Sets the value of the reasonForUseCodeableConcept property.
|
void |
setReasonForUseReference(Reference value)
Sets the value of the reasonForUseReference property.
|
void |
setStatus(MedicationStatementStatus value)
Sets the value of the status property.
|
void |
setWasNotTaken(Boolean value)
Sets the value of the wasNotTaken property.
|
java.lang.String |
toString() |
MedicationStatement |
withContained(java.util.Collection<ResourceContainer> values) |
MedicationStatement |
withContained(ResourceContainer... values) |
MedicationStatement |
withDateAsserted(DateTime value) |
MedicationStatement |
withDosage(java.util.Collection<MedicationStatementDosage> values) |
MedicationStatement |
withDosage(MedicationStatementDosage... values) |
MedicationStatement |
withEffectiveDateTime(DateTime value) |
MedicationStatement |
withEffectivePeriod(Period value) |
MedicationStatement |
withExtension(java.util.Collection<Extension> values) |
MedicationStatement |
withExtension(Extension... values) |
MedicationStatement |
withId(Id value) |
MedicationStatement |
withIdentifier(java.util.Collection<Identifier> values) |
MedicationStatement |
withIdentifier(Identifier... values) |
MedicationStatement |
withImplicitRules(Uri value) |
MedicationStatement |
withInformationSource(Reference value) |
MedicationStatement |
withLanguage(Code value) |
MedicationStatement |
withMedicationCodeableConcept(CodeableConcept value) |
MedicationStatement |
withMedicationReference(Reference value) |
MedicationStatement |
withMeta(Meta value) |
MedicationStatement |
withModifierExtension(java.util.Collection<Extension> values) |
MedicationStatement |
withModifierExtension(Extension... values) |
MedicationStatement |
withNote(Annotation... values) |
MedicationStatement |
withNote(java.util.Collection<Annotation> values) |
MedicationStatement |
withPatient(Reference value) |
MedicationStatement |
withReasonForUseCodeableConcept(CodeableConcept value) |
MedicationStatement |
withReasonForUseReference(Reference value) |
MedicationStatement |
withReasonNotTaken(CodeableConcept... values) |
MedicationStatement |
withReasonNotTaken(java.util.Collection<CodeableConcept> values) |
MedicationStatement |
withStatus(MedicationStatementStatus value) |
MedicationStatement |
withSupportingInformation(java.util.Collection<Reference> values) |
MedicationStatement |
withSupportingInformation(Reference... values) |
MedicationStatement |
withText(Narrative value) |
MedicationStatement |
withWasNotTaken(Boolean value) |
getContained, getExtension, getModifierExtension, getText, setTextgetId, getImplicitRules, getLanguage, getMeta, setId, setImplicitRules, setLanguage, setMetaprotected java.util.List<Identifier> identifier
protected MedicationStatementStatus status
protected CodeableConcept medicationCodeableConcept
protected Reference medicationReference
protected Reference patient
protected DateTime effectiveDateTime
protected Period effectivePeriod
protected Reference informationSource
protected java.util.List<Reference> supportingInformation
protected DateTime dateAsserted
protected Boolean wasNotTaken
protected java.util.List<CodeableConcept> reasonNotTaken
protected CodeableConcept reasonForUseCodeableConcept
protected Reference reasonForUseReference
protected java.util.List<Annotation> note
protected java.util.List<MedicationStatementDosage> dosage
public java.util.List<Identifier> getIdentifier()
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 set method 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
public MedicationStatementStatus getStatus()
MedicationStatementStatuspublic void setStatus(MedicationStatementStatus value)
value - allowed object is
MedicationStatementStatuspublic CodeableConcept getMedicationCodeableConcept()
CodeableConceptpublic void setMedicationCodeableConcept(CodeableConcept value)
value - allowed object is
CodeableConceptpublic Reference getMedicationReference()
Referencepublic void setMedicationReference(Reference value)
value - allowed object is
Referencepublic Reference getPatient()
Referencepublic void setPatient(Reference value)
value - allowed object is
Referencepublic DateTime getEffectiveDateTime()
DateTimepublic void setEffectiveDateTime(DateTime value)
value - allowed object is
DateTimepublic Period getEffectivePeriod()
Periodpublic void setEffectivePeriod(Period value)
value - allowed object is
Periodpublic Reference getInformationSource()
Referencepublic void setInformationSource(Reference value)
value - allowed object is
Referencepublic java.util.List<Reference> getSupportingInformation()
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 set method 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
public DateTime getDateAsserted()
DateTimepublic void setDateAsserted(DateTime value)
value - allowed object is
DateTimepublic Boolean getWasNotTaken()
Booleanpublic void setWasNotTaken(Boolean value)
value - allowed object is
Booleanpublic java.util.List<CodeableConcept> getReasonNotTaken()
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 set method 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
public CodeableConcept getReasonForUseCodeableConcept()
CodeableConceptpublic void setReasonForUseCodeableConcept(CodeableConcept value)
value - allowed object is
CodeableConceptpublic Reference getReasonForUseReference()
Referencepublic void setReasonForUseReference(Reference value)
value - allowed object is
Referencepublic java.util.List<Annotation> getNote()
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 set method 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
public java.util.List<MedicationStatementDosage> getDosage()
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 set method 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
public MedicationStatement withIdentifier(Identifier... values)
public MedicationStatement withIdentifier(java.util.Collection<Identifier> values)
public MedicationStatement withStatus(MedicationStatementStatus value)
public MedicationStatement withMedicationCodeableConcept(CodeableConcept value)
public MedicationStatement withMedicationReference(Reference value)
public MedicationStatement withPatient(Reference value)
public MedicationStatement withEffectiveDateTime(DateTime value)
public MedicationStatement withEffectivePeriod(Period value)
public MedicationStatement withInformationSource(Reference value)
public MedicationStatement withSupportingInformation(Reference... values)
public MedicationStatement withSupportingInformation(java.util.Collection<Reference> values)
public MedicationStatement withDateAsserted(DateTime value)
public MedicationStatement withWasNotTaken(Boolean value)
public MedicationStatement withReasonNotTaken(CodeableConcept... values)
public MedicationStatement withReasonNotTaken(java.util.Collection<CodeableConcept> values)
public MedicationStatement withReasonForUseCodeableConcept(CodeableConcept value)
public MedicationStatement withReasonForUseReference(Reference value)
public MedicationStatement withNote(Annotation... values)
public MedicationStatement withNote(java.util.Collection<Annotation> values)
public MedicationStatement withDosage(MedicationStatementDosage... values)
public MedicationStatement withDosage(java.util.Collection<MedicationStatementDosage> values)
public MedicationStatement withText(Narrative value)
withText in class DomainResourcepublic MedicationStatement withContained(ResourceContainer... values)
withContained in class DomainResourcepublic MedicationStatement withContained(java.util.Collection<ResourceContainer> values)
withContained in class DomainResourcepublic MedicationStatement withExtension(Extension... values)
withExtension in class DomainResourcepublic MedicationStatement withExtension(java.util.Collection<Extension> values)
withExtension in class DomainResourcepublic MedicationStatement withModifierExtension(Extension... values)
withModifierExtension in class DomainResourcepublic MedicationStatement withModifierExtension(java.util.Collection<Extension> values)
withModifierExtension in class DomainResourcepublic MedicationStatement withId(Id value)
withId in class DomainResourcepublic MedicationStatement withMeta(Meta value)
withMeta in class DomainResourcepublic MedicationStatement withImplicitRules(Uri value)
withImplicitRules in class DomainResourcepublic MedicationStatement withLanguage(Code value)
withLanguage in class DomainResourcepublic 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.EqualsStrategy strategy)
equals in interface org.jvnet.jaxb2_commons.lang.Equalsequals in class DomainResourcepublic boolean equals(java.lang.Object object)
equals in class DomainResourcepublic int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
hashCode in interface org.jvnet.jaxb2_commons.lang.HashCodehashCode in class DomainResourcepublic int hashCode()
hashCode in class DomainResourcepublic java.lang.String toString()
toString in class DomainResourcepublic java.lang.StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
java.lang.StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
append in interface org.jvnet.jaxb2_commons.lang.ToStringappend in class DomainResourcepublic java.lang.StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
java.lang.StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
appendFields in interface org.jvnet.jaxb2_commons.lang.ToStringappendFields in class DomainResource