Class MedicationOrder
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class MedicationOrder extends DomainResource implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
Java class for MedicationOrder complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="MedicationOrder">
<complexContent>
<extension base="{http://hl7.org/fhir}DomainResource">
<sequence>
<element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/>
<element name="status" type="{http://hl7.org/fhir}MedicationOrderStatus" 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="encounter" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
<element name="dateWritten" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
<element name="prescriber" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
<element name="reasonCode" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
<element name="reasonReference" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
<element name="dateEnded" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
<element name="reasonEnded" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
<element name="note" type="{http://hl7.org/fhir}Annotation" maxOccurs="unbounded" minOccurs="0"/>
<element name="dosageInstruction" type="{http://hl7.org/fhir}MedicationOrder.DosageInstruction" maxOccurs="unbounded" minOccurs="0"/>
<element name="dispenseRequest" type="{http://hl7.org/fhir}MedicationOrder.DispenseRequest" minOccurs="0"/>
<element name="substitution" type="{http://hl7.org/fhir}MedicationOrder.Substitution" minOccurs="0"/>
<element name="priorPrescription" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
-
Field Summary
Fields Modifier and Type Field Description protected DateTimedateEndedprotected DateTimedateWrittenprotected MedicationOrderDispenseRequestdispenseRequestprotected java.util.List<MedicationOrderDosageInstruction>dosageInstructionprotected Referenceencounterprotected java.util.List<Identifier>identifierprotected CodeableConceptmedicationCodeableConceptprotected ReferencemedicationReferenceprotected java.util.List<Annotation>noteprotected Referencepatientprotected Referenceprescriberprotected ReferencepriorPrescriptionprotected java.util.List<CodeableConcept>reasonCodeprotected CodeableConceptreasonEndedprotected java.util.List<Reference>reasonReferenceprotected MedicationOrderStatusstatusprotected MedicationOrderSubstitutionsubstitutionFields inherited from class org.hl7.fhir.DomainResource
contained, extension, modifierExtension, text -
Constructor Summary
Constructors Constructor Description MedicationOrder() -
Method Summary
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)DateTimegetDateEnded()Gets the value of the dateEnded property.DateTimegetDateWritten()Gets the value of the dateWritten property.MedicationOrderDispenseRequestgetDispenseRequest()Gets the value of the dispenseRequest property.java.util.List<MedicationOrderDosageInstruction>getDosageInstruction()Gets the value of the dosageInstruction property.ReferencegetEncounter()Gets the value of the encounter property.java.util.List<Identifier>getIdentifier()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.ReferencegetPrescriber()Gets the value of the prescriber property.ReferencegetPriorPrescription()Gets the value of the priorPrescription property.java.util.List<CodeableConcept>getReasonCode()Gets the value of the reasonCode property.CodeableConceptgetReasonEnded()Gets the value of the reasonEnded property.java.util.List<Reference>getReasonReference()Gets the value of the reasonReference property.MedicationOrderStatusgetStatus()Gets the value of the status property.MedicationOrderSubstitutiongetSubstitution()Gets the value of the substitution property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetDateEnded(DateTime value)Sets the value of the dateEnded property.voidsetDateWritten(DateTime value)Sets the value of the dateWritten property.voidsetDispenseRequest(MedicationOrderDispenseRequest value)Sets the value of the dispenseRequest property.voidsetEncounter(Reference value)Sets the value of the encounter 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.voidsetPrescriber(Reference value)Sets the value of the prescriber property.voidsetPriorPrescription(Reference value)Sets the value of the priorPrescription property.voidsetReasonEnded(CodeableConcept value)Sets the value of the reasonEnded property.voidsetStatus(MedicationOrderStatus value)Sets the value of the status property.voidsetSubstitution(MedicationOrderSubstitution value)Sets the value of the substitution property.java.lang.StringtoString()MedicationOrderwithContained(java.util.Collection<ResourceContainer> values)MedicationOrderwithContained(ResourceContainer... values)MedicationOrderwithDateEnded(DateTime value)MedicationOrderwithDateWritten(DateTime value)MedicationOrderwithDispenseRequest(MedicationOrderDispenseRequest value)MedicationOrderwithDosageInstruction(java.util.Collection<MedicationOrderDosageInstruction> values)MedicationOrderwithDosageInstruction(MedicationOrderDosageInstruction... values)MedicationOrderwithEncounter(Reference value)MedicationOrderwithExtension(java.util.Collection<Extension> values)MedicationOrderwithExtension(Extension... values)MedicationOrderwithId(Id value)MedicationOrderwithIdentifier(java.util.Collection<Identifier> values)MedicationOrderwithIdentifier(Identifier... values)MedicationOrderwithImplicitRules(Uri value)MedicationOrderwithLanguage(Code value)MedicationOrderwithMedicationCodeableConcept(CodeableConcept value)MedicationOrderwithMedicationReference(Reference value)MedicationOrderwithMeta(Meta value)MedicationOrderwithModifierExtension(java.util.Collection<Extension> values)MedicationOrderwithModifierExtension(Extension... values)MedicationOrderwithNote(java.util.Collection<Annotation> values)MedicationOrderwithNote(Annotation... values)MedicationOrderwithPatient(Reference value)MedicationOrderwithPrescriber(Reference value)MedicationOrderwithPriorPrescription(Reference value)MedicationOrderwithReasonCode(java.util.Collection<CodeableConcept> values)MedicationOrderwithReasonCode(CodeableConcept... values)MedicationOrderwithReasonEnded(CodeableConcept value)MedicationOrderwithReasonReference(java.util.Collection<Reference> values)MedicationOrderwithReasonReference(Reference... values)MedicationOrderwithStatus(MedicationOrderStatus value)MedicationOrderwithSubstitution(MedicationOrderSubstitution value)MedicationOrderwithText(Narrative value)Methods inherited from class org.hl7.fhir.DomainResource
getContained, getExtension, getModifierExtension, getText, setTextMethods inherited from class org.hl7.fhir.Resource
getId, getImplicitRules, getLanguage, getMeta, setId, setImplicitRules, setLanguage, setMeta
-
Field Details
-
Constructor Details
-
MedicationOrder
public MedicationOrder()
-
-
Method Details
-
getIdentifier
Gets the value of the identifier 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 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 -
getStatus
Gets the value of the status property.- Returns:
- possible object is
MedicationOrderStatus
-
setStatus
Sets the value of the status property.- Parameters:
value- allowed object isMedicationOrderStatus
-
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
-
getEncounter
Gets the value of the encounter property.- Returns:
- possible object is
Reference
-
setEncounter
Sets the value of the encounter property.- Parameters:
value- allowed object isReference
-
getDateWritten
Gets the value of the dateWritten property.- Returns:
- possible object is
DateTime
-
setDateWritten
Sets the value of the dateWritten property.- Parameters:
value- allowed object isDateTime
-
getPrescriber
Gets the value of the prescriber property.- Returns:
- possible object is
Reference
-
setPrescriber
Sets the value of the prescriber property.- Parameters:
value- allowed object isReference
-
getReasonCode
Gets the value of the reasonCode 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 reasonCode property.For example, to add a new item, do as follows:
getReasonCode().add(newItem);Objects of the following type(s) are allowed in the list
CodeableConcept -
getReasonReference
Gets the value of the reasonReference 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 reasonReference property.For example, to add a new item, do as follows:
getReasonReference().add(newItem);Objects of the following type(s) are allowed in the list
Reference -
getDateEnded
Gets the value of the dateEnded property.- Returns:
- possible object is
DateTime
-
setDateEnded
Sets the value of the dateEnded property.- Parameters:
value- allowed object isDateTime
-
getReasonEnded
Gets the value of the reasonEnded property.- Returns:
- possible object is
CodeableConcept
-
setReasonEnded
Sets the value of the reasonEnded property.- Parameters:
value- allowed object isCodeableConcept
-
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
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
MedicationOrderDosageInstruction -
getDispenseRequest
Gets the value of the dispenseRequest property.- Returns:
- possible object is
MedicationOrderDispenseRequest
-
setDispenseRequest
Sets the value of the dispenseRequest property.- Parameters:
value- allowed object isMedicationOrderDispenseRequest
-
getSubstitution
Gets the value of the substitution property.- Returns:
- possible object is
MedicationOrderSubstitution
-
setSubstitution
Sets the value of the substitution property.- Parameters:
value- allowed object isMedicationOrderSubstitution
-
getPriorPrescription
Gets the value of the priorPrescription property.- Returns:
- possible object is
Reference
-
setPriorPrescription
Sets the value of the priorPrescription property.- Parameters:
value- allowed object isReference
-
withIdentifier
-
withIdentifier
-
withStatus
-
withMedicationCodeableConcept
-
withMedicationReference
-
withPatient
-
withEncounter
-
withDateWritten
-
withPrescriber
-
withReasonCode
-
withReasonCode
-
withReasonReference
-
withReasonReference
-
withDateEnded
-
withReasonEnded
-
withNote
-
withNote
-
withDosageInstruction
-
withDosageInstruction
public MedicationOrder withDosageInstruction(java.util.Collection<MedicationOrderDosageInstruction> values) -
withDispenseRequest
-
withSubstitution
-
withPriorPrescription
-
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, 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
-