public class VisionPrescription extends DomainResource implements org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.ToString
Java class for VisionPrescription complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="VisionPrescription">
<complexContent>
<extension base="{http://hl7.org/fhir}DomainResource">
<sequence>
<element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/>
<element name="dateWritten" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
<element name="patient" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
<element name="prescriber" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
<element name="encounter" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
<choice minOccurs="0">
<element name="reasonCodeableConcept" type="{http://hl7.org/fhir}CodeableConcept"/>
<element name="reasonReference" type="{http://hl7.org/fhir}Reference"/>
</choice>
<element name="dispense" type="{http://hl7.org/fhir}VisionPrescription.Dispense" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected DateTime |
dateWritten |
protected java.util.List<VisionPrescriptionDispense> |
dispense |
protected Reference |
encounter |
protected java.util.List<Identifier> |
identifier |
protected Reference |
patient |
protected Reference |
prescriber |
protected CodeableConcept |
reasonCodeableConcept |
protected Reference |
reasonReference |
contained, extension, modifierExtension, textid, implicitRules, language, meta| Constructor and Description |
|---|
VisionPrescription() |
| 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 |
getDateWritten()
Gets the value of the dateWritten property.
|
java.util.List<VisionPrescriptionDispense> |
getDispense()
Gets the value of the dispense property.
|
Reference |
getEncounter()
Gets the value of the encounter property.
|
java.util.List<Identifier> |
getIdentifier()
Gets the value of the identifier property.
|
Reference |
getPatient()
Gets the value of the patient property.
|
Reference |
getPrescriber()
Gets the value of the prescriber property.
|
CodeableConcept |
getReasonCodeableConcept()
Gets the value of the reasonCodeableConcept property.
|
Reference |
getReasonReference()
Gets the value of the reasonReference property.
|
int |
hashCode() |
int |
hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy) |
void |
setDateWritten(DateTime value)
Sets the value of the dateWritten property.
|
void |
setEncounter(Reference value)
Sets the value of the encounter property.
|
void |
setPatient(Reference value)
Sets the value of the patient property.
|
void |
setPrescriber(Reference value)
Sets the value of the prescriber property.
|
void |
setReasonCodeableConcept(CodeableConcept value)
Sets the value of the reasonCodeableConcept property.
|
void |
setReasonReference(Reference value)
Sets the value of the reasonReference property.
|
java.lang.String |
toString() |
VisionPrescription |
withContained(java.util.Collection<ResourceContainer> values) |
VisionPrescription |
withContained(ResourceContainer... values) |
VisionPrescription |
withDateWritten(DateTime value) |
VisionPrescription |
withDispense(java.util.Collection<VisionPrescriptionDispense> values) |
VisionPrescription |
withDispense(VisionPrescriptionDispense... values) |
VisionPrescription |
withEncounter(Reference value) |
VisionPrescription |
withExtension(java.util.Collection<Extension> values) |
VisionPrescription |
withExtension(Extension... values) |
VisionPrescription |
withId(Id value) |
VisionPrescription |
withIdentifier(java.util.Collection<Identifier> values) |
VisionPrescription |
withIdentifier(Identifier... values) |
VisionPrescription |
withImplicitRules(Uri value) |
VisionPrescription |
withLanguage(Code value) |
VisionPrescription |
withMeta(Meta value) |
VisionPrescription |
withModifierExtension(java.util.Collection<Extension> values) |
VisionPrescription |
withModifierExtension(Extension... values) |
VisionPrescription |
withPatient(Reference value) |
VisionPrescription |
withPrescriber(Reference value) |
VisionPrescription |
withReasonCodeableConcept(CodeableConcept value) |
VisionPrescription |
withReasonReference(Reference value) |
VisionPrescription |
withText(Narrative value) |
getContained, getExtension, getModifierExtension, getText, setTextgetId, getImplicitRules, getLanguage, getMeta, setId, setImplicitRules, setLanguage, setMetaprotected java.util.List<Identifier> identifier
protected DateTime dateWritten
protected Reference patient
protected Reference prescriber
protected Reference encounter
protected CodeableConcept reasonCodeableConcept
protected Reference reasonReference
protected java.util.List<VisionPrescriptionDispense> dispense
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 DateTime getDateWritten()
DateTimepublic void setDateWritten(DateTime value)
value - allowed object is
DateTimepublic Reference getPatient()
Referencepublic void setPatient(Reference value)
value - allowed object is
Referencepublic Reference getPrescriber()
Referencepublic void setPrescriber(Reference value)
value - allowed object is
Referencepublic Reference getEncounter()
Referencepublic void setEncounter(Reference value)
value - allowed object is
Referencepublic CodeableConcept getReasonCodeableConcept()
CodeableConceptpublic void setReasonCodeableConcept(CodeableConcept value)
value - allowed object is
CodeableConceptpublic Reference getReasonReference()
Referencepublic void setReasonReference(Reference value)
value - allowed object is
Referencepublic java.util.List<VisionPrescriptionDispense> getDispense()
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 dispense property.
For example, to add a new item, do as follows:
getDispense().add(newItem);
Objects of the following type(s) are allowed in the list
VisionPrescriptionDispense
public VisionPrescription withIdentifier(Identifier... values)
public VisionPrescription withIdentifier(java.util.Collection<Identifier> values)
public VisionPrescription withDateWritten(DateTime value)
public VisionPrescription withPatient(Reference value)
public VisionPrescription withPrescriber(Reference value)
public VisionPrescription withEncounter(Reference value)
public VisionPrescription withReasonCodeableConcept(CodeableConcept value)
public VisionPrescription withReasonReference(Reference value)
public VisionPrescription withDispense(VisionPrescriptionDispense... values)
public VisionPrescription withDispense(java.util.Collection<VisionPrescriptionDispense> values)
public VisionPrescription withText(Narrative value)
withText in class DomainResourcepublic VisionPrescription withContained(ResourceContainer... values)
withContained in class DomainResourcepublic VisionPrescription withContained(java.util.Collection<ResourceContainer> values)
withContained in class DomainResourcepublic VisionPrescription withExtension(Extension... values)
withExtension in class DomainResourcepublic VisionPrescription withExtension(java.util.Collection<Extension> values)
withExtension in class DomainResourcepublic VisionPrescription withModifierExtension(Extension... values)
withModifierExtension in class DomainResourcepublic VisionPrescription withModifierExtension(java.util.Collection<Extension> values)
withModifierExtension in class DomainResourcepublic VisionPrescription withId(Id value)
withId in class DomainResourcepublic VisionPrescription withMeta(Meta value)
withMeta in class DomainResourcepublic VisionPrescription withImplicitRules(Uri value)
withImplicitRules in class DomainResourcepublic VisionPrescription 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