Package org.hl7.fhir
Class SupplyRequest
- java.lang.Object
-
- org.hl7.fhir.Resource
-
- org.hl7.fhir.DomainResource
-
- org.hl7.fhir.SupplyRequest
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class SupplyRequest 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 SupplyRequest complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="SupplyRequest"> <complexContent> <extension base="{http://hl7.org/fhir}DomainResource"> <sequence> <element name="patient" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="source" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="date" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/> <element name="identifier" type="{http://hl7.org/fhir}Identifier" minOccurs="0"/> <element name="status" type="{http://hl7.org/fhir}SupplyRequestStatus" minOccurs="0"/> <element name="kind" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/> <element name="orderedItem" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="supplier" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/> <choice minOccurs="0"> <element name="reasonCodeableConcept" type="{http://hl7.org/fhir}CodeableConcept"/> <element name="reasonReference" type="{http://hl7.org/fhir}Reference"/> </choice> <element name="when" type="{http://hl7.org/fhir}SupplyRequest.When" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected DateTimedateprotected Identifieridentifierprotected CodeableConceptkindprotected ReferenceorderedItemprotected Referencepatientprotected CodeableConceptreasonCodeableConceptprotected ReferencereasonReferenceprotected Referencesourceprotected SupplyRequestStatusstatusprotected java.util.List<Reference>supplierprotected SupplyRequestWhenwhen-
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 SupplyRequest()
-
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)DateTimegetDate()Gets the value of the date property.IdentifiergetIdentifier()Gets the value of the identifier property.CodeableConceptgetKind()Gets the value of the kind property.ReferencegetOrderedItem()Gets the value of the orderedItem property.ReferencegetPatient()Gets the value of the patient property.CodeableConceptgetReasonCodeableConcept()Gets the value of the reasonCodeableConcept property.ReferencegetReasonReference()Gets the value of the reasonReference property.ReferencegetSource()Gets the value of the source property.SupplyRequestStatusgetStatus()Gets the value of the status property.java.util.List<Reference>getSupplier()Gets the value of the supplier property.SupplyRequestWhengetWhen()Gets the value of the when property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetDate(DateTime value)Sets the value of the date property.voidsetIdentifier(Identifier value)Sets the value of the identifier property.voidsetKind(CodeableConcept value)Sets the value of the kind property.voidsetOrderedItem(Reference value)Sets the value of the orderedItem property.voidsetPatient(Reference value)Sets the value of the patient property.voidsetReasonCodeableConcept(CodeableConcept value)Sets the value of the reasonCodeableConcept property.voidsetReasonReference(Reference value)Sets the value of the reasonReference property.voidsetSource(Reference value)Sets the value of the source property.voidsetStatus(SupplyRequestStatus value)Sets the value of the status property.voidsetWhen(SupplyRequestWhen value)Sets the value of the when property.java.lang.StringtoString()SupplyRequestwithContained(java.util.Collection<ResourceContainer> values)SupplyRequestwithContained(ResourceContainer... values)SupplyRequestwithDate(DateTime value)SupplyRequestwithExtension(java.util.Collection<Extension> values)SupplyRequestwithExtension(Extension... values)SupplyRequestwithId(Id value)SupplyRequestwithIdentifier(Identifier value)SupplyRequestwithImplicitRules(Uri value)SupplyRequestwithKind(CodeableConcept value)SupplyRequestwithLanguage(Code value)SupplyRequestwithMeta(Meta value)SupplyRequestwithModifierExtension(java.util.Collection<Extension> values)SupplyRequestwithModifierExtension(Extension... values)SupplyRequestwithOrderedItem(Reference value)SupplyRequestwithPatient(Reference value)SupplyRequestwithReasonCodeableConcept(CodeableConcept value)SupplyRequestwithReasonReference(Reference value)SupplyRequestwithSource(Reference value)SupplyRequestwithStatus(SupplyRequestStatus value)SupplyRequestwithSupplier(java.util.Collection<Reference> values)SupplyRequestwithSupplier(Reference... values)SupplyRequestwithText(Narrative value)SupplyRequestwithWhen(SupplyRequestWhen 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
-
patient
protected Reference patient
-
source
protected Reference source
-
date
protected DateTime date
-
identifier
protected Identifier identifier
-
status
protected SupplyRequestStatus status
-
kind
protected CodeableConcept kind
-
orderedItem
protected Reference orderedItem
-
supplier
protected java.util.List<Reference> supplier
-
reasonCodeableConcept
protected CodeableConcept reasonCodeableConcept
-
reasonReference
protected Reference reasonReference
-
when
protected SupplyRequestWhen when
-
-
Method Detail
-
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
-
getSource
public Reference getSource()
Gets the value of the source property.- Returns:
- possible object is
Reference
-
setSource
public void setSource(Reference value)
Sets the value of the source property.- Parameters:
value- allowed object isReference
-
getDate
public DateTime getDate()
Gets the value of the date property.- Returns:
- possible object is
DateTime
-
setDate
public void setDate(DateTime value)
Sets the value of the date property.- Parameters:
value- allowed object isDateTime
-
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 SupplyRequestStatus getStatus()
Gets the value of the status property.- Returns:
- possible object is
SupplyRequestStatus
-
setStatus
public void setStatus(SupplyRequestStatus value)
Sets the value of the status property.- Parameters:
value- allowed object isSupplyRequestStatus
-
getKind
public CodeableConcept getKind()
Gets the value of the kind property.- Returns:
- possible object is
CodeableConcept
-
setKind
public void setKind(CodeableConcept value)
Sets the value of the kind property.- Parameters:
value- allowed object isCodeableConcept
-
getOrderedItem
public Reference getOrderedItem()
Gets the value of the orderedItem property.- Returns:
- possible object is
Reference
-
setOrderedItem
public void setOrderedItem(Reference value)
Sets the value of the orderedItem property.- Parameters:
value- allowed object isReference
-
getSupplier
public java.util.List<Reference> getSupplier()
Gets the value of the supplier 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 supplier property.For example, to add a new item, do as follows:
getSupplier().add(newItem);Objects of the following type(s) are allowed in the list
Reference
-
getReasonCodeableConcept
public CodeableConcept getReasonCodeableConcept()
Gets the value of the reasonCodeableConcept property.- Returns:
- possible object is
CodeableConcept
-
setReasonCodeableConcept
public void setReasonCodeableConcept(CodeableConcept value)
Sets the value of the reasonCodeableConcept property.- Parameters:
value- allowed object isCodeableConcept
-
getReasonReference
public Reference getReasonReference()
Gets the value of the reasonReference property.- Returns:
- possible object is
Reference
-
setReasonReference
public void setReasonReference(Reference value)
Sets the value of the reasonReference property.- Parameters:
value- allowed object isReference
-
getWhen
public SupplyRequestWhen getWhen()
Gets the value of the when property.- Returns:
- possible object is
SupplyRequestWhen
-
setWhen
public void setWhen(SupplyRequestWhen value)
Sets the value of the when property.- Parameters:
value- allowed object isSupplyRequestWhen
-
withPatient
public SupplyRequest withPatient(Reference value)
-
withSource
public SupplyRequest withSource(Reference value)
-
withDate
public SupplyRequest withDate(DateTime value)
-
withIdentifier
public SupplyRequest withIdentifier(Identifier value)
-
withStatus
public SupplyRequest withStatus(SupplyRequestStatus value)
-
withKind
public SupplyRequest withKind(CodeableConcept value)
-
withOrderedItem
public SupplyRequest withOrderedItem(Reference value)
-
withSupplier
public SupplyRequest withSupplier(Reference... values)
-
withSupplier
public SupplyRequest withSupplier(java.util.Collection<Reference> values)
-
withReasonCodeableConcept
public SupplyRequest withReasonCodeableConcept(CodeableConcept value)
-
withReasonReference
public SupplyRequest withReasonReference(Reference value)
-
withWhen
public SupplyRequest withWhen(SupplyRequestWhen value)
-
withText
public SupplyRequest withText(Narrative value)
- Overrides:
withTextin classDomainResource
-
withContained
public SupplyRequest withContained(ResourceContainer... values)
- Overrides:
withContainedin classDomainResource
-
withContained
public SupplyRequest withContained(java.util.Collection<ResourceContainer> values)
- Overrides:
withContainedin classDomainResource
-
withExtension
public SupplyRequest withExtension(Extension... values)
- Overrides:
withExtensionin classDomainResource
-
withExtension
public SupplyRequest withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classDomainResource
-
withModifierExtension
public SupplyRequest withModifierExtension(Extension... values)
- Overrides:
withModifierExtensionin classDomainResource
-
withModifierExtension
public SupplyRequest withModifierExtension(java.util.Collection<Extension> values)
- Overrides:
withModifierExtensionin classDomainResource
-
withId
public SupplyRequest withId(Id value)
- Overrides:
withIdin classDomainResource
-
withMeta
public SupplyRequest withMeta(Meta value)
- Overrides:
withMetain classDomainResource
-
withImplicitRules
public SupplyRequest withImplicitRules(Uri value)
- Overrides:
withImplicitRulesin classDomainResource
-
withLanguage
public SupplyRequest 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
-
-