Package org.hl7.fhir
Class MedicationOrderDispenseRequest
- java.lang.Object
-
- org.hl7.fhir.Element
-
- org.hl7.fhir.BackboneElement
-
- org.hl7.fhir.MedicationOrderDispenseRequest
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class MedicationOrderDispenseRequest extends BackboneElement implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
An order for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called "MedicationOrder" rather than "MedicationPrescription" to generalize the use across inpatient and outpatient settings as well as for care plans, etc.Java class for MedicationOrder.DispenseRequest complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="MedicationOrder.DispenseRequest"> <complexContent> <extension base="{http://hl7.org/fhir}BackboneElement"> <sequence> <choice minOccurs="0"> <element name="medicationCodeableConcept" type="{http://hl7.org/fhir}CodeableConcept"/> <element name="medicationReference" type="{http://hl7.org/fhir}Reference"/> </choice> <element name="validityPeriod" type="{http://hl7.org/fhir}Period" minOccurs="0"/> <element name="numberOfRepeatsAllowed" type="{http://hl7.org/fhir}positiveInt" minOccurs="0"/> <element name="quantity" type="{http://hl7.org/fhir}SimpleQuantity" minOccurs="0"/> <element name="expectedSupplyDuration" type="{http://hl7.org/fhir}Duration" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected DurationexpectedSupplyDurationprotected CodeableConceptmedicationCodeableConceptprotected ReferencemedicationReferenceprotected PositiveIntnumberOfRepeatsAllowedprotected SimpleQuantityquantityprotected PeriodvalidityPeriod-
Fields inherited from class org.hl7.fhir.BackboneElement
modifierExtension
-
-
Constructor Summary
Constructors Constructor Description MedicationOrderDispenseRequest()
-
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)DurationgetExpectedSupplyDuration()Gets the value of the expectedSupplyDuration property.CodeableConceptgetMedicationCodeableConcept()Gets the value of the medicationCodeableConcept property.ReferencegetMedicationReference()Gets the value of the medicationReference property.PositiveIntgetNumberOfRepeatsAllowed()Gets the value of the numberOfRepeatsAllowed property.SimpleQuantitygetQuantity()Gets the value of the quantity property.PeriodgetValidityPeriod()Gets the value of the validityPeriod property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetExpectedSupplyDuration(Duration value)Sets the value of the expectedSupplyDuration property.voidsetMedicationCodeableConcept(CodeableConcept value)Sets the value of the medicationCodeableConcept property.voidsetMedicationReference(Reference value)Sets the value of the medicationReference property.voidsetNumberOfRepeatsAllowed(PositiveInt value)Sets the value of the numberOfRepeatsAllowed property.voidsetQuantity(SimpleQuantity value)Sets the value of the quantity property.voidsetValidityPeriod(Period value)Sets the value of the validityPeriod property.java.lang.StringtoString()MedicationOrderDispenseRequestwithExpectedSupplyDuration(Duration value)MedicationOrderDispenseRequestwithExtension(java.util.Collection<Extension> values)MedicationOrderDispenseRequestwithExtension(Extension... values)MedicationOrderDispenseRequestwithId(java.lang.String value)MedicationOrderDispenseRequestwithMedicationCodeableConcept(CodeableConcept value)MedicationOrderDispenseRequestwithMedicationReference(Reference value)MedicationOrderDispenseRequestwithModifierExtension(java.util.Collection<Extension> values)MedicationOrderDispenseRequestwithModifierExtension(Extension... values)MedicationOrderDispenseRequestwithNumberOfRepeatsAllowed(PositiveInt value)MedicationOrderDispenseRequestwithQuantity(SimpleQuantity value)MedicationOrderDispenseRequestwithValidityPeriod(Period value)-
Methods inherited from class org.hl7.fhir.BackboneElement
getModifierExtension
-
Methods inherited from class org.hl7.fhir.Element
getExtension, getId, setId
-
-
-
-
Field Detail
-
medicationCodeableConcept
protected CodeableConcept medicationCodeableConcept
-
medicationReference
protected Reference medicationReference
-
validityPeriod
protected Period validityPeriod
-
numberOfRepeatsAllowed
protected PositiveInt numberOfRepeatsAllowed
-
quantity
protected SimpleQuantity quantity
-
expectedSupplyDuration
protected Duration expectedSupplyDuration
-
-
Method Detail
-
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
-
getValidityPeriod
public Period getValidityPeriod()
Gets the value of the validityPeriod property.- Returns:
- possible object is
Period
-
setValidityPeriod
public void setValidityPeriod(Period value)
Sets the value of the validityPeriod property.- Parameters:
value- allowed object isPeriod
-
getNumberOfRepeatsAllowed
public PositiveInt getNumberOfRepeatsAllowed()
Gets the value of the numberOfRepeatsAllowed property.- Returns:
- possible object is
PositiveInt
-
setNumberOfRepeatsAllowed
public void setNumberOfRepeatsAllowed(PositiveInt value)
Sets the value of the numberOfRepeatsAllowed property.- Parameters:
value- allowed object isPositiveInt
-
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
-
getExpectedSupplyDuration
public Duration getExpectedSupplyDuration()
Gets the value of the expectedSupplyDuration property.- Returns:
- possible object is
Duration
-
setExpectedSupplyDuration
public void setExpectedSupplyDuration(Duration value)
Sets the value of the expectedSupplyDuration property.- Parameters:
value- allowed object isDuration
-
withMedicationCodeableConcept
public MedicationOrderDispenseRequest withMedicationCodeableConcept(CodeableConcept value)
-
withMedicationReference
public MedicationOrderDispenseRequest withMedicationReference(Reference value)
-
withValidityPeriod
public MedicationOrderDispenseRequest withValidityPeriod(Period value)
-
withNumberOfRepeatsAllowed
public MedicationOrderDispenseRequest withNumberOfRepeatsAllowed(PositiveInt value)
-
withQuantity
public MedicationOrderDispenseRequest withQuantity(SimpleQuantity value)
-
withExpectedSupplyDuration
public MedicationOrderDispenseRequest withExpectedSupplyDuration(Duration value)
-
withModifierExtension
public MedicationOrderDispenseRequest withModifierExtension(Extension... values)
- Overrides:
withModifierExtensionin classBackboneElement
-
withModifierExtension
public MedicationOrderDispenseRequest withModifierExtension(java.util.Collection<Extension> values)
- Overrides:
withModifierExtensionin classBackboneElement
-
withExtension
public MedicationOrderDispenseRequest withExtension(Extension... values)
- Overrides:
withExtensionin classBackboneElement
-
withExtension
public MedicationOrderDispenseRequest withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classBackboneElement
-
withId
public MedicationOrderDispenseRequest withId(java.lang.String value)
- Overrides:
withIdin classBackboneElement
-
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 classBackboneElement
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classBackboneElement
-
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 classBackboneElement
-
hashCode
public int hashCode()
- Overrides:
hashCodein classBackboneElement
-
toString
public java.lang.String toString()
- Overrides:
toStringin classBackboneElement
-
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 classBackboneElement
-
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 classBackboneElement
-
-