public class MedicationDispense extends DomainResource implements org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.ToString
Java class for MedicationDispense complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="MedicationDispense">
<complexContent>
<extension base="{http://hl7.org/fhir}DomainResource">
<sequence>
<element name="identifier" type="{http://hl7.org/fhir}Identifier" minOccurs="0"/>
<element name="status" type="{http://hl7.org/fhir}MedicationDispenseStatus" minOccurs="0"/>
<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" minOccurs="0"/>
<element name="dispenser" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
<element name="authorizingPrescription" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
<element name="type" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
<element name="quantity" type="{http://hl7.org/fhir}SimpleQuantity" minOccurs="0"/>
<element name="daysSupply" type="{http://hl7.org/fhir}SimpleQuantity" minOccurs="0"/>
<element name="whenPrepared" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
<element name="whenHandedOver" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
<element name="destination" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
<element name="receiver" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
<element name="note" type="{http://hl7.org/fhir}Annotation" maxOccurs="unbounded" minOccurs="0"/>
<element name="dosageInstruction" type="{http://hl7.org/fhir}MedicationDispense.DosageInstruction" maxOccurs="unbounded" minOccurs="0"/>
<element name="substitution" type="{http://hl7.org/fhir}MedicationDispense.Substitution" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<Reference> |
authorizingPrescription |
protected SimpleQuantity |
daysSupply |
protected Reference |
destination |
protected Reference |
dispenser |
protected java.util.List<MedicationDispenseDosageInstruction> |
dosageInstruction |
protected Identifier |
identifier |
protected CodeableConcept |
medicationCodeableConcept |
protected Reference |
medicationReference |
protected java.util.List<Annotation> |
note |
protected Reference |
patient |
protected SimpleQuantity |
quantity |
protected java.util.List<Reference> |
receiver |
protected MedicationDispenseStatus |
status |
protected MedicationDispenseSubstitution |
substitution |
protected CodeableConcept |
type |
protected DateTime |
whenHandedOver |
protected DateTime |
whenPrepared |
contained, extension, modifierExtension, textid, implicitRules, language, meta| Constructor and Description |
|---|
MedicationDispense() |
| 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) |
java.util.List<Reference> |
getAuthorizingPrescription()
Gets the value of the authorizingPrescription property.
|
SimpleQuantity |
getDaysSupply()
Gets the value of the daysSupply property.
|
Reference |
getDestination()
Gets the value of the destination property.
|
Reference |
getDispenser()
Gets the value of the dispenser property.
|
java.util.List<MedicationDispenseDosageInstruction> |
getDosageInstruction()
Gets the value of the dosageInstruction property.
|
Identifier |
getIdentifier()
Gets the value of the identifier 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.
|
SimpleQuantity |
getQuantity()
Gets the value of the quantity property.
|
java.util.List<Reference> |
getReceiver()
Gets the value of the receiver property.
|
MedicationDispenseStatus |
getStatus()
Gets the value of the status property.
|
MedicationDispenseSubstitution |
getSubstitution()
Gets the value of the substitution property.
|
CodeableConcept |
getType()
Gets the value of the type property.
|
DateTime |
getWhenHandedOver()
Gets the value of the whenHandedOver property.
|
DateTime |
getWhenPrepared()
Gets the value of the whenPrepared property.
|
int |
hashCode() |
int |
hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy) |
void |
setDaysSupply(SimpleQuantity value)
Sets the value of the daysSupply property.
|
void |
setDestination(Reference value)
Sets the value of the destination property.
|
void |
setDispenser(Reference value)
Sets the value of the dispenser property.
|
void |
setIdentifier(Identifier value)
Sets the value of the identifier 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 |
setQuantity(SimpleQuantity value)
Sets the value of the quantity property.
|
void |
setStatus(MedicationDispenseStatus value)
Sets the value of the status property.
|
void |
setSubstitution(MedicationDispenseSubstitution value)
Sets the value of the substitution property.
|
void |
setType(CodeableConcept value)
Sets the value of the type property.
|
void |
setWhenHandedOver(DateTime value)
Sets the value of the whenHandedOver property.
|
void |
setWhenPrepared(DateTime value)
Sets the value of the whenPrepared property.
|
java.lang.String |
toString() |
MedicationDispense |
withAuthorizingPrescription(java.util.Collection<Reference> values) |
MedicationDispense |
withAuthorizingPrescription(Reference... values) |
MedicationDispense |
withContained(java.util.Collection<ResourceContainer> values) |
MedicationDispense |
withContained(ResourceContainer... values) |
MedicationDispense |
withDaysSupply(SimpleQuantity value) |
MedicationDispense |
withDestination(Reference value) |
MedicationDispense |
withDispenser(Reference value) |
MedicationDispense |
withDosageInstruction(java.util.Collection<MedicationDispenseDosageInstruction> values) |
MedicationDispense |
withDosageInstruction(MedicationDispenseDosageInstruction... values) |
MedicationDispense |
withExtension(java.util.Collection<Extension> values) |
MedicationDispense |
withExtension(Extension... values) |
MedicationDispense |
withId(Id value) |
MedicationDispense |
withIdentifier(Identifier value) |
MedicationDispense |
withImplicitRules(Uri value) |
MedicationDispense |
withLanguage(Code value) |
MedicationDispense |
withMedicationCodeableConcept(CodeableConcept value) |
MedicationDispense |
withMedicationReference(Reference value) |
MedicationDispense |
withMeta(Meta value) |
MedicationDispense |
withModifierExtension(java.util.Collection<Extension> values) |
MedicationDispense |
withModifierExtension(Extension... values) |
MedicationDispense |
withNote(Annotation... values) |
MedicationDispense |
withNote(java.util.Collection<Annotation> values) |
MedicationDispense |
withPatient(Reference value) |
MedicationDispense |
withQuantity(SimpleQuantity value) |
MedicationDispense |
withReceiver(java.util.Collection<Reference> values) |
MedicationDispense |
withReceiver(Reference... values) |
MedicationDispense |
withStatus(MedicationDispenseStatus value) |
MedicationDispense |
withSubstitution(MedicationDispenseSubstitution value) |
MedicationDispense |
withText(Narrative value) |
MedicationDispense |
withType(CodeableConcept value) |
MedicationDispense |
withWhenHandedOver(DateTime value) |
MedicationDispense |
withWhenPrepared(DateTime value) |
getContained, getExtension, getModifierExtension, getText, setTextgetId, getImplicitRules, getLanguage, getMeta, setId, setImplicitRules, setLanguage, setMetaprotected Identifier identifier
protected MedicationDispenseStatus status
protected CodeableConcept medicationCodeableConcept
protected Reference medicationReference
protected Reference patient
protected Reference dispenser
protected java.util.List<Reference> authorizingPrescription
protected CodeableConcept type
protected SimpleQuantity quantity
protected SimpleQuantity daysSupply
protected DateTime whenPrepared
protected DateTime whenHandedOver
protected Reference destination
protected java.util.List<Reference> receiver
protected java.util.List<Annotation> note
protected java.util.List<MedicationDispenseDosageInstruction> dosageInstruction
protected MedicationDispenseSubstitution substitution
public Identifier getIdentifier()
Identifierpublic void setIdentifier(Identifier value)
value - allowed object is
Identifierpublic MedicationDispenseStatus getStatus()
MedicationDispenseStatuspublic void setStatus(MedicationDispenseStatus value)
value - allowed object is
MedicationDispenseStatuspublic 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 Reference getDispenser()
Referencepublic void setDispenser(Reference value)
value - allowed object is
Referencepublic java.util.List<Reference> getAuthorizingPrescription()
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 authorizingPrescription property.
For example, to add a new item, do as follows:
getAuthorizingPrescription().add(newItem);
Objects of the following type(s) are allowed in the list
Reference
public CodeableConcept getType()
CodeableConceptpublic void setType(CodeableConcept value)
value - allowed object is
CodeableConceptpublic SimpleQuantity getQuantity()
SimpleQuantitypublic void setQuantity(SimpleQuantity value)
value - allowed object is
SimpleQuantitypublic SimpleQuantity getDaysSupply()
SimpleQuantitypublic void setDaysSupply(SimpleQuantity value)
value - allowed object is
SimpleQuantitypublic DateTime getWhenPrepared()
DateTimepublic void setWhenPrepared(DateTime value)
value - allowed object is
DateTimepublic DateTime getWhenHandedOver()
DateTimepublic void setWhenHandedOver(DateTime value)
value - allowed object is
DateTimepublic Reference getDestination()
Referencepublic void setDestination(Reference value)
value - allowed object is
Referencepublic java.util.List<Reference> getReceiver()
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 receiver property.
For example, to add a new item, do as follows:
getReceiver().add(newItem);
Objects of the following type(s) are allowed in the list
Reference
public 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<MedicationDispenseDosageInstruction> getDosageInstruction()
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 dosageInstruction property.
For example, to add a new item, do as follows:
getDosageInstruction().add(newItem);
Objects of the following type(s) are allowed in the list
MedicationDispenseDosageInstruction
public MedicationDispenseSubstitution getSubstitution()
MedicationDispenseSubstitutionpublic void setSubstitution(MedicationDispenseSubstitution value)
value - allowed object is
MedicationDispenseSubstitutionpublic MedicationDispense withIdentifier(Identifier value)
public MedicationDispense withStatus(MedicationDispenseStatus value)
public MedicationDispense withMedicationCodeableConcept(CodeableConcept value)
public MedicationDispense withMedicationReference(Reference value)
public MedicationDispense withPatient(Reference value)
public MedicationDispense withDispenser(Reference value)
public MedicationDispense withAuthorizingPrescription(Reference... values)
public MedicationDispense withAuthorizingPrescription(java.util.Collection<Reference> values)
public MedicationDispense withType(CodeableConcept value)
public MedicationDispense withQuantity(SimpleQuantity value)
public MedicationDispense withDaysSupply(SimpleQuantity value)
public MedicationDispense withWhenPrepared(DateTime value)
public MedicationDispense withWhenHandedOver(DateTime value)
public MedicationDispense withDestination(Reference value)
public MedicationDispense withReceiver(Reference... values)
public MedicationDispense withReceiver(java.util.Collection<Reference> values)
public MedicationDispense withNote(Annotation... values)
public MedicationDispense withNote(java.util.Collection<Annotation> values)
public MedicationDispense withDosageInstruction(MedicationDispenseDosageInstruction... values)
public MedicationDispense withDosageInstruction(java.util.Collection<MedicationDispenseDosageInstruction> values)
public MedicationDispense withSubstitution(MedicationDispenseSubstitution value)
public MedicationDispense withText(Narrative value)
withText in class DomainResourcepublic MedicationDispense withContained(ResourceContainer... values)
withContained in class DomainResourcepublic MedicationDispense withContained(java.util.Collection<ResourceContainer> values)
withContained in class DomainResourcepublic MedicationDispense withExtension(Extension... values)
withExtension in class DomainResourcepublic MedicationDispense withExtension(java.util.Collection<Extension> values)
withExtension in class DomainResourcepublic MedicationDispense withModifierExtension(Extension... values)
withModifierExtension in class DomainResourcepublic MedicationDispense withModifierExtension(java.util.Collection<Extension> values)
withModifierExtension in class DomainResourcepublic MedicationDispense withId(Id value)
withId in class DomainResourcepublic MedicationDispense withMeta(Meta value)
withMeta in class DomainResourcepublic MedicationDispense withImplicitRules(Uri value)
withImplicitRules in class DomainResourcepublic MedicationDispense 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