Class MedicationDispense
- java.lang.Object
-
- org.hl7.fhir.Resource
-
- org.hl7.fhir.DomainResource
-
- org.hl7.fhir.MedicationDispense
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class MedicationDispense 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 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
Fields Modifier and Type Field Description protected java.util.List<Reference>authorizingPrescriptionprotected SimpleQuantitydaysSupplyprotected Referencedestinationprotected Referencedispenserprotected java.util.List<MedicationDispenseDosageInstruction>dosageInstructionprotected Identifieridentifierprotected CodeableConceptmedicationCodeableConceptprotected ReferencemedicationReferenceprotected java.util.List<Annotation>noteprotected Referencepatientprotected SimpleQuantityquantityprotected java.util.List<Reference>receiverprotected MedicationDispenseStatusstatusprotected MedicationDispenseSubstitutionsubstitutionprotected CodeableConcepttypeprotected DateTimewhenHandedOverprotected DateTimewhenPrepared-
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 MedicationDispense()
-
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)java.util.List<Reference>getAuthorizingPrescription()Gets the value of the authorizingPrescription property.SimpleQuantitygetDaysSupply()Gets the value of the daysSupply property.ReferencegetDestination()Gets the value of the destination property.ReferencegetDispenser()Gets the value of the dispenser property.java.util.List<MedicationDispenseDosageInstruction>getDosageInstruction()Gets the value of the dosageInstruction property.IdentifiergetIdentifier()Gets the value of the identifier 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.SimpleQuantitygetQuantity()Gets the value of the quantity property.java.util.List<Reference>getReceiver()Gets the value of the receiver property.MedicationDispenseStatusgetStatus()Gets the value of the status property.MedicationDispenseSubstitutiongetSubstitution()Gets the value of the substitution property.CodeableConceptgetType()Gets the value of the type property.DateTimegetWhenHandedOver()Gets the value of the whenHandedOver property.DateTimegetWhenPrepared()Gets the value of the whenPrepared property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)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.voidsetIdentifier(Identifier value)Sets the value of the identifier 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.voidsetQuantity(SimpleQuantity value)Sets the value of the quantity property.voidsetStatus(MedicationDispenseStatus value)Sets the value of the status property.voidsetSubstitution(MedicationDispenseSubstitution value)Sets 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.java.lang.StringtoString()MedicationDispensewithAuthorizingPrescription(java.util.Collection<Reference> values)MedicationDispensewithAuthorizingPrescription(Reference... values)MedicationDispensewithContained(java.util.Collection<ResourceContainer> values)MedicationDispensewithContained(ResourceContainer... values)MedicationDispensewithDaysSupply(SimpleQuantity value)MedicationDispensewithDestination(Reference value)MedicationDispensewithDispenser(Reference value)MedicationDispensewithDosageInstruction(java.util.Collection<MedicationDispenseDosageInstruction> values)MedicationDispensewithDosageInstruction(MedicationDispenseDosageInstruction... values)MedicationDispensewithExtension(java.util.Collection<Extension> values)MedicationDispensewithExtension(Extension... values)MedicationDispensewithId(Id value)MedicationDispensewithIdentifier(Identifier value)MedicationDispensewithImplicitRules(Uri value)MedicationDispensewithLanguage(Code value)MedicationDispensewithMedicationCodeableConcept(CodeableConcept value)MedicationDispensewithMedicationReference(Reference value)MedicationDispensewithMeta(Meta value)MedicationDispensewithModifierExtension(java.util.Collection<Extension> values)MedicationDispensewithModifierExtension(Extension... values)MedicationDispensewithNote(java.util.Collection<Annotation> values)MedicationDispensewithNote(Annotation... values)MedicationDispensewithPatient(Reference value)MedicationDispensewithQuantity(SimpleQuantity value)MedicationDispensewithReceiver(java.util.Collection<Reference> values)MedicationDispensewithReceiver(Reference... values)MedicationDispensewithStatus(MedicationDispenseStatus value)MedicationDispensewithSubstitution(MedicationDispenseSubstitution value)MedicationDispensewithText(Narrative value)MedicationDispensewithType(CodeableConcept value)MedicationDispensewithWhenHandedOver(DateTime value)MedicationDispensewithWhenPrepared(DateTime 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 Identifier identifier
-
status
protected MedicationDispenseStatus status
-
medicationCodeableConcept
protected CodeableConcept medicationCodeableConcept
-
medicationReference
protected Reference medicationReference
-
patient
protected Reference patient
-
dispenser
protected Reference dispenser
-
authorizingPrescription
protected java.util.List<Reference> authorizingPrescription
-
type
protected CodeableConcept type
-
quantity
protected SimpleQuantity quantity
-
daysSupply
protected SimpleQuantity daysSupply
-
whenPrepared
protected DateTime whenPrepared
-
whenHandedOver
protected DateTime whenHandedOver
-
destination
protected Reference destination
-
receiver
protected java.util.List<Reference> receiver
-
note
protected java.util.List<Annotation> note
-
dosageInstruction
protected java.util.List<MedicationDispenseDosageInstruction> dosageInstruction
-
substitution
protected MedicationDispenseSubstitution substitution
-
-
Method Detail
-
getIdentifier
public Identifier getIdentifier()
Gets the value of the identifier property.- Returns:
- possible object is
Identifier
-
setIdentifier
public void setIdentifier(Identifier value)
Sets the value of the identifier property.- Parameters:
value- allowed object isIdentifier
-
getStatus
public MedicationDispenseStatus getStatus()
Gets the value of the status property.- Returns:
- possible object is
MedicationDispenseStatus
-
setStatus
public void setStatus(MedicationDispenseStatus value)
Sets the value of the status property.- Parameters:
value- allowed object isMedicationDispenseStatus
-
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
-
getDispenser
public Reference getDispenser()
Gets the value of the dispenser property.- Returns:
- possible object is
Reference
-
setDispenser
public void setDispenser(Reference value)
Sets the value of the dispenser property.- Parameters:
value- allowed object isReference
-
getAuthorizingPrescription
public java.util.List<Reference> 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 JAXB 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
public CodeableConcept getType()
Gets the value of the type property.- Returns:
- possible object is
CodeableConcept
-
setType
public void setType(CodeableConcept value)
Sets the value of the type property.- Parameters:
value- allowed object isCodeableConcept
-
getQuantity
public SimpleQuantity getQuantity()
Gets the value of the quantity property.- Returns:
- possible object is
SimpleQuantity
-
setQuantity
public void setQuantity(SimpleQuantity value)
Sets the value of the quantity property.- Parameters:
value- allowed object isSimpleQuantity
-
getDaysSupply
public SimpleQuantity getDaysSupply()
Gets the value of the daysSupply property.- Returns:
- possible object is
SimpleQuantity
-
setDaysSupply
public void setDaysSupply(SimpleQuantity value)
Sets the value of the daysSupply property.- Parameters:
value- allowed object isSimpleQuantity
-
getWhenPrepared
public DateTime getWhenPrepared()
Gets the value of the whenPrepared property.- Returns:
- possible object is
DateTime
-
setWhenPrepared
public void setWhenPrepared(DateTime value)
Sets the value of the whenPrepared property.- Parameters:
value- allowed object isDateTime
-
getWhenHandedOver
public DateTime getWhenHandedOver()
Gets the value of the whenHandedOver property.- Returns:
- possible object is
DateTime
-
setWhenHandedOver
public void setWhenHandedOver(DateTime value)
Sets the value of the whenHandedOver property.- Parameters:
value- allowed object isDateTime
-
getDestination
public Reference getDestination()
Gets the value of the destination property.- Returns:
- possible object is
Reference
-
setDestination
public void setDestination(Reference value)
Sets the value of the destination property.- Parameters:
value- allowed object isReference
-
getReceiver
public java.util.List<Reference> 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 JAXB 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
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
-
getDosageInstruction
public java.util.List<MedicationDispenseDosageInstruction> 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 JAXB 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
public MedicationDispenseSubstitution getSubstitution()
Gets the value of the substitution property.- Returns:
- possible object is
MedicationDispenseSubstitution
-
setSubstitution
public void setSubstitution(MedicationDispenseSubstitution value)
Sets the value of the substitution property.- Parameters:
value- allowed object isMedicationDispenseSubstitution
-
withIdentifier
public MedicationDispense withIdentifier(Identifier value)
-
withStatus
public MedicationDispense withStatus(MedicationDispenseStatus value)
-
withMedicationCodeableConcept
public MedicationDispense withMedicationCodeableConcept(CodeableConcept value)
-
withMedicationReference
public MedicationDispense withMedicationReference(Reference value)
-
withPatient
public MedicationDispense withPatient(Reference value)
-
withDispenser
public MedicationDispense withDispenser(Reference value)
-
withAuthorizingPrescription
public MedicationDispense withAuthorizingPrescription(Reference... values)
-
withAuthorizingPrescription
public MedicationDispense withAuthorizingPrescription(java.util.Collection<Reference> values)
-
withType
public MedicationDispense withType(CodeableConcept value)
-
withQuantity
public MedicationDispense withQuantity(SimpleQuantity value)
-
withDaysSupply
public MedicationDispense withDaysSupply(SimpleQuantity value)
-
withWhenPrepared
public MedicationDispense withWhenPrepared(DateTime value)
-
withWhenHandedOver
public MedicationDispense withWhenHandedOver(DateTime value)
-
withDestination
public MedicationDispense withDestination(Reference value)
-
withReceiver
public MedicationDispense withReceiver(Reference... values)
-
withReceiver
public MedicationDispense withReceiver(java.util.Collection<Reference> values)
-
withNote
public MedicationDispense withNote(Annotation... values)
-
withNote
public MedicationDispense withNote(java.util.Collection<Annotation> values)
-
withDosageInstruction
public MedicationDispense withDosageInstruction(MedicationDispenseDosageInstruction... values)
-
withDosageInstruction
public MedicationDispense withDosageInstruction(java.util.Collection<MedicationDispenseDosageInstruction> values)
-
withSubstitution
public MedicationDispense withSubstitution(MedicationDispenseSubstitution value)
-
withText
public MedicationDispense withText(Narrative value)
- Overrides:
withTextin classDomainResource
-
withContained
public MedicationDispense withContained(ResourceContainer... values)
- Overrides:
withContainedin classDomainResource
-
withContained
public MedicationDispense withContained(java.util.Collection<ResourceContainer> values)
- Overrides:
withContainedin classDomainResource
-
withExtension
public MedicationDispense withExtension(Extension... values)
- Overrides:
withExtensionin classDomainResource
-
withExtension
public MedicationDispense withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classDomainResource
-
withModifierExtension
public MedicationDispense withModifierExtension(Extension... values)
- Overrides:
withModifierExtensionin classDomainResource
-
withModifierExtension
public MedicationDispense withModifierExtension(java.util.Collection<Extension> values)
- Overrides:
withModifierExtensionin classDomainResource
-
withId
public MedicationDispense withId(Id value)
- Overrides:
withIdin classDomainResource
-
withMeta
public MedicationDispense withMeta(Meta value)
- Overrides:
withMetain classDomainResource
-
withImplicitRules
public MedicationDispense withImplicitRules(Uri value)
- Overrides:
withImplicitRulesin classDomainResource
-
withLanguage
public MedicationDispense 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
-
-