Class MedicationDispense
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
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>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SimpleQuantityprotected Referenceprotected Referenceprotected List<MedicationDispenseDosageInstruction> protected Identifierprotected CodeableConceptprotected Referenceprotected List<Annotation> protected Referenceprotected SimpleQuantityprotected MedicationDispenseStatusprotected MedicationDispenseSubstitutionprotected CodeableConceptprotected DateTimeprotected DateTimeFields inherited from class org.hl7.fhir.DomainResource
contained, extension, modifierExtension, textFields inherited from class org.hl7.fhir.Resource
id, implicitRules, language, meta -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) booleanbooleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy) Gets the value of the authorizingPrescription property.Gets the value of the daysSupply property.Gets the value of the destination property.Gets the value of the dispenser property.Gets the value of the dosageInstruction property.Gets the value of the identifier property.Gets the value of the medicationCodeableConcept property.Gets the value of the medicationReference property.getNote()Gets the value of the note property.Gets the value of the patient property.Gets the value of the quantity property.Gets the value of the receiver property.Gets the value of the status property.Gets the value of the substitution property.getType()Gets the value of the type property.Gets the value of the whenHandedOver property.Gets the value of the whenPrepared property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy) voidsetAuthorizingPrescription(List<Reference> value) voidsetDaysSupply(SimpleQuantity value) Sets the value of the daysSupply property.voidsetDestination(Reference value) Sets the value of the destination property.voidsetDispenser(Reference value) Sets the value of the dispenser property.voidvoidsetIdentifier(Identifier value) Sets the value of the identifier property.voidSets the value of the medicationCodeableConcept property.voidsetMedicationReference(Reference value) Sets the value of the medicationReference property.voidsetNote(List<Annotation> value) voidsetPatient(Reference value) Sets the value of the patient property.voidsetQuantity(SimpleQuantity value) Sets the value of the quantity property.voidsetReceiver(List<Reference> value) voidSets the value of the status property.voidSets the value of the substitution property.voidsetType(CodeableConcept value) Sets the value of the type property.voidsetWhenHandedOver(DateTime value) Sets the value of the whenHandedOver property.voidsetWhenPrepared(DateTime value) Sets the value of the whenPrepared property.toString()withAuthorizingPrescription(Reference... values) withContained(Collection<ResourceContainer> values) withContained(ResourceContainer... values) withDaysSupply(SimpleQuantity value) withDestination(Reference value) withDispenser(Reference value) withExtension(Collection<Extension> values) withExtension(Extension... values) withIdentifier(Identifier value) withImplicitRules(Uri value) withLanguage(Code value) withMedicationReference(Reference value) withModifierExtension(Collection<Extension> values) withModifierExtension(Extension... values) withNote(Collection<Annotation> values) withNote(Annotation... values) withPatient(Reference value) withQuantity(SimpleQuantity value) withReceiver(Collection<Reference> values) withReceiver(Reference... values) withType(CodeableConcept value) withWhenHandedOver(DateTime value) withWhenPrepared(DateTime value) Methods inherited from class org.hl7.fhir.DomainResource
getContained, getExtension, getModifierExtension, getText, setContained, setExtension, setModifierExtension, setTextMethods inherited from class org.hl7.fhir.Resource
getId, getImplicitRules, getLanguage, getMeta, setId, setImplicitRules, setLanguage, setMeta
-
Field Details
-
identifier
-
status
-
medicationCodeableConcept
-
medicationReference
-
patient
-
dispenser
-
authorizingPrescription
-
type
-
quantity
-
daysSupply
-
whenPrepared
-
whenHandedOver
-
destination
-
receiver
-
note
-
dosageInstruction
-
substitution
-
-
Constructor Details
-
MedicationDispense
public MedicationDispense()
-
-
Method Details
-
getIdentifier
Gets the value of the identifier property.- Returns:
- possible object is
Identifier
-
setIdentifier
Sets the value of the identifier property.- Parameters:
value- allowed object isIdentifier
-
getStatus
Gets the value of the status property.- Returns:
- possible object is
MedicationDispenseStatus
-
setStatus
Sets the value of the status property.- Parameters:
value- allowed object isMedicationDispenseStatus
-
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
-
getDispenser
Gets the value of the dispenser property.- Returns:
- possible object is
Reference
-
setDispenser
Sets the value of the dispenser property.- Parameters:
value- allowed object isReference
-
getAuthorizingPrescription
Gets the value of the authorizingPrescription 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 Jakarta XML Binding object. This is why there is not a
setmethod 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 -
getType
Gets the value of the type property.- Returns:
- possible object is
CodeableConcept
-
setType
Sets the value of the type property.- Parameters:
value- allowed object isCodeableConcept
-
getQuantity
Gets the value of the quantity property.- Returns:
- possible object is
SimpleQuantity
-
setQuantity
Sets the value of the quantity property.- Parameters:
value- allowed object isSimpleQuantity
-
getDaysSupply
Gets the value of the daysSupply property.- Returns:
- possible object is
SimpleQuantity
-
setDaysSupply
Sets the value of the daysSupply property.- Parameters:
value- allowed object isSimpleQuantity
-
getWhenPrepared
Gets the value of the whenPrepared property.- Returns:
- possible object is
DateTime
-
setWhenPrepared
Sets the value of the whenPrepared property.- Parameters:
value- allowed object isDateTime
-
getWhenHandedOver
Gets the value of the whenHandedOver property.- Returns:
- possible object is
DateTime
-
setWhenHandedOver
Sets the value of the whenHandedOver property.- Parameters:
value- allowed object isDateTime
-
getDestination
Gets the value of the destination property.- Returns:
- possible object is
Reference
-
setDestination
Sets the value of the destination property.- Parameters:
value- allowed object isReference
-
getReceiver
Gets the value of the receiver 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 Jakarta XML Binding object. This is why there is not a
setmethod 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 -
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 Jakarta XML Binding 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 -
getDosageInstruction
Gets the value of the dosageInstruction 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 Jakarta XML Binding object. This is why there is not a
setmethod 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 -
getSubstitution
Gets the value of the substitution property.- Returns:
- possible object is
MedicationDispenseSubstitution
-
setSubstitution
Sets the value of the substitution property.- Parameters:
value- allowed object isMedicationDispenseSubstitution
-
withIdentifier
-
withStatus
-
withMedicationCodeableConcept
-
withMedicationReference
-
withPatient
-
withDispenser
-
withAuthorizingPrescription
-
withAuthorizingPrescription
-
withType
-
withQuantity
-
withDaysSupply
-
withWhenPrepared
-
withWhenHandedOver
-
withDestination
-
withReceiver
-
withReceiver
-
withNote
-
withNote
-
withDosageInstruction
-
withDosageInstruction
public MedicationDispense withDosageInstruction(Collection<MedicationDispenseDosageInstruction> values) -
withSubstitution
-
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, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy) - Specified by:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals2- Overrides:
equalsin classDomainResource
-
equals
- 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
- Overrides:
toStringin classDomainResource
-
append
public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) - Specified by:
appendin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendin classDomainResource
-
appendFields
public StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) - Specified by:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendFieldsin classDomainResource
-
setAuthorizingPrescription
-
setReceiver
-
setNote
-
setDosageInstruction
-