Class MedicationOrder
- java.lang.Object
-
- org.hl7.fhir.Resource
-
- org.hl7.fhir.DomainResource
-
- org.hl7.fhir.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
If the element is present, it must have either a @value, an @id, or extensionsJava 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 MedicationOrderSubstitutionsubstitution-
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 MedicationOrder()
-
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)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, setText
-
Methods inherited from class org.hl7.fhir.Resource
getId, getImplicitRules, getLanguage, getMeta, setId, setImplicitRules, setLanguage, setMeta
-
-
-
-
Field Detail
-
identifier
protected java.util.List<Identifier> identifier
-
status
protected MedicationOrderStatus status
-
medicationCodeableConcept
protected CodeableConcept medicationCodeableConcept
-
medicationReference
protected Reference medicationReference
-
patient
protected Reference patient
-
encounter
protected Reference encounter
-
dateWritten
protected DateTime dateWritten
-
prescriber
protected Reference prescriber
-
reasonCode
protected java.util.List<CodeableConcept> reasonCode
-
reasonReference
protected java.util.List<Reference> reasonReference
-
dateEnded
protected DateTime dateEnded
-
reasonEnded
protected CodeableConcept reasonEnded
-
note
protected java.util.List<Annotation> note
-
dosageInstruction
protected java.util.List<MedicationOrderDosageInstruction> dosageInstruction
-
dispenseRequest
protected MedicationOrderDispenseRequest dispenseRequest
-
substitution
protected MedicationOrderSubstitution substitution
-
priorPrescription
protected Reference priorPrescription
-
-
Method Detail
-
getIdentifier
public java.util.List<Identifier> 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
public MedicationOrderStatus getStatus()
Gets the value of the status property.- Returns:
- possible object is
MedicationOrderStatus
-
setStatus
public void setStatus(MedicationOrderStatus value)
Sets the value of the status property.- Parameters:
value- allowed object isMedicationOrderStatus
-
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
-
getEncounter
public Reference getEncounter()
Gets the value of the encounter property.- Returns:
- possible object is
Reference
-
setEncounter
public void setEncounter(Reference value)
Sets the value of the encounter property.- Parameters:
value- allowed object isReference
-
getDateWritten
public DateTime getDateWritten()
Gets the value of the dateWritten property.- Returns:
- possible object is
DateTime
-
setDateWritten
public void setDateWritten(DateTime value)
Sets the value of the dateWritten property.- Parameters:
value- allowed object isDateTime
-
getPrescriber
public Reference getPrescriber()
Gets the value of the prescriber property.- Returns:
- possible object is
Reference
-
setPrescriber
public void setPrescriber(Reference value)
Sets the value of the prescriber property.- Parameters:
value- allowed object isReference
-
getReasonCode
public java.util.List<CodeableConcept> 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
public java.util.List<Reference> 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
public DateTime getDateEnded()
Gets the value of the dateEnded property.- Returns:
- possible object is
DateTime
-
setDateEnded
public void setDateEnded(DateTime value)
Sets the value of the dateEnded property.- Parameters:
value- allowed object isDateTime
-
getReasonEnded
public CodeableConcept getReasonEnded()
Gets the value of the reasonEnded property.- Returns:
- possible object is
CodeableConcept
-
setReasonEnded
public void setReasonEnded(CodeableConcept value)
Sets the value of the reasonEnded property.- Parameters:
value- allowed object isCodeableConcept
-
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<MedicationOrderDosageInstruction> 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
public MedicationOrderDispenseRequest getDispenseRequest()
Gets the value of the dispenseRequest property.- Returns:
- possible object is
MedicationOrderDispenseRequest
-
setDispenseRequest
public void setDispenseRequest(MedicationOrderDispenseRequest value)
Sets the value of the dispenseRequest property.- Parameters:
value- allowed object isMedicationOrderDispenseRequest
-
getSubstitution
public MedicationOrderSubstitution getSubstitution()
Gets the value of the substitution property.- Returns:
- possible object is
MedicationOrderSubstitution
-
setSubstitution
public void setSubstitution(MedicationOrderSubstitution value)
Sets the value of the substitution property.- Parameters:
value- allowed object isMedicationOrderSubstitution
-
getPriorPrescription
public Reference getPriorPrescription()
Gets the value of the priorPrescription property.- Returns:
- possible object is
Reference
-
setPriorPrescription
public void setPriorPrescription(Reference value)
Sets the value of the priorPrescription property.- Parameters:
value- allowed object isReference
-
withIdentifier
public MedicationOrder withIdentifier(Identifier... values)
-
withIdentifier
public MedicationOrder withIdentifier(java.util.Collection<Identifier> values)
-
withStatus
public MedicationOrder withStatus(MedicationOrderStatus value)
-
withMedicationCodeableConcept
public MedicationOrder withMedicationCodeableConcept(CodeableConcept value)
-
withMedicationReference
public MedicationOrder withMedicationReference(Reference value)
-
withPatient
public MedicationOrder withPatient(Reference value)
-
withEncounter
public MedicationOrder withEncounter(Reference value)
-
withDateWritten
public MedicationOrder withDateWritten(DateTime value)
-
withPrescriber
public MedicationOrder withPrescriber(Reference value)
-
withReasonCode
public MedicationOrder withReasonCode(CodeableConcept... values)
-
withReasonCode
public MedicationOrder withReasonCode(java.util.Collection<CodeableConcept> values)
-
withReasonReference
public MedicationOrder withReasonReference(Reference... values)
-
withReasonReference
public MedicationOrder withReasonReference(java.util.Collection<Reference> values)
-
withDateEnded
public MedicationOrder withDateEnded(DateTime value)
-
withReasonEnded
public MedicationOrder withReasonEnded(CodeableConcept value)
-
withNote
public MedicationOrder withNote(Annotation... values)
-
withNote
public MedicationOrder withNote(java.util.Collection<Annotation> values)
-
withDosageInstruction
public MedicationOrder withDosageInstruction(MedicationOrderDosageInstruction... values)
-
withDosageInstruction
public MedicationOrder withDosageInstruction(java.util.Collection<MedicationOrderDosageInstruction> values)
-
withDispenseRequest
public MedicationOrder withDispenseRequest(MedicationOrderDispenseRequest value)
-
withSubstitution
public MedicationOrder withSubstitution(MedicationOrderSubstitution value)
-
withPriorPrescription
public MedicationOrder withPriorPrescription(Reference value)
-
withText
public MedicationOrder withText(Narrative value)
- Overrides:
withTextin classDomainResource
-
withContained
public MedicationOrder withContained(ResourceContainer... values)
- Overrides:
withContainedin classDomainResource
-
withContained
public MedicationOrder withContained(java.util.Collection<ResourceContainer> values)
- Overrides:
withContainedin classDomainResource
-
withExtension
public MedicationOrder withExtension(Extension... values)
- Overrides:
withExtensionin classDomainResource
-
withExtension
public MedicationOrder withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classDomainResource
-
withModifierExtension
public MedicationOrder withModifierExtension(Extension... values)
- Overrides:
withModifierExtensionin classDomainResource
-
withModifierExtension
public MedicationOrder withModifierExtension(java.util.Collection<Extension> values)
- Overrides:
withModifierExtensionin classDomainResource
-
withId
public MedicationOrder withId(Id value)
- Overrides:
withIdin classDomainResource
-
withMeta
public MedicationOrder withMeta(Meta value)
- Overrides:
withMetain classDomainResource
-
withImplicitRules
public MedicationOrder withImplicitRules(Uri value)
- Overrides:
withImplicitRulesin classDomainResource
-
withLanguage
public MedicationOrder 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
-
-