Package org.hl7.fhir.dstu2.model
Class SupplyRequest
- java.lang.Object
-
- org.hl7.fhir.dstu2.model.Base
-
- org.hl7.fhir.dstu2.model.BaseResource
-
- org.hl7.fhir.dstu2.model.Resource
-
- org.hl7.fhir.dstu2.model.DomainResource
-
- org.hl7.fhir.dstu2.model.SupplyRequest
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IAnyResource,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseHasExtensions,org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions,org.hl7.fhir.instance.model.api.IBaseResource,org.hl7.fhir.instance.model.api.IDomainResource
public class SupplyRequest extends DomainResource
A record of a request for a medication, substance or device used in the healthcare setting.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSupplyRequest.SupplyRequestStatusstatic classSupplyRequest.SupplyRequestStatusEnumFactorystatic classSupplyRequest.SupplyRequestWhenComponent
-
Field Summary
Fields Modifier and Type Field Description protected DateTimeTypedateWhen the request was made.protected IdentifieridentifierUnique identifier for this supply request.protected CodeableConceptkindCategory of supply, e.g.protected ReferenceorderedItemThe item that is requested to be supplied.protected ResourceorderedItemTargetThe actual object that is the target of the reference (The item that is requested to be supplied.)protected ReferencepatientA link to a resource representing the person whom the ordered item is for.protected PatientpatientTargetThe actual object that is the target of the reference (A link to a resource representing the person whom the ordered item is for.)protected TypereasonWhy the supply item was requested.protected ReferencesourceThe Practitioner , Organization or Patient who initiated this order for the supply.protected ResourcesourceTargetThe actual object that is the target of the reference (The Practitioner , Organization or Patient who initiated this order for the supply.)static StringSP_DATEstatic StringSP_IDENTIFIERstatic StringSP_KINDstatic StringSP_PATIENTstatic StringSP_SOURCEstatic StringSP_STATUSstatic StringSP_SUPPLIERprotected Enumeration<SupplyRequest.SupplyRequestStatus>statusStatus of the supply request.protected List<Reference>supplierWho is intended to fulfill the request.protected List<Organization>supplierTargetThe actual objects that are the target of the reference (Who is intended to fulfill the request.)protected SupplyRequest.SupplyRequestWhenComponentwhenWhen the request should be fulfilled.-
Fields inherited from class org.hl7.fhir.dstu2.model.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.dstu2.model.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description SupplyRequest()
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu2.model.DomainResource
addContained, addExtension, addExtension, addModifierExtension, addModifierExtension, copyValues, getContained, getExtension, getModifierExtension, getText, hasContained, hasExtension, hasModifierExtension, hasText, setText
-
Methods inherited from class org.hl7.fhir.dstu2.model.Resource
copyValues, getId, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
-
Methods inherited from class org.hl7.fhir.dstu2.model.BaseResource
getStructureFhirVersionEnum, setId
-
Methods inherited from class org.hl7.fhir.dstu2.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getId, getIdElement, getLanguageElement, getUserData, setId, setUserData
-
-
-
-
Field Detail
-
patient
protected Reference patient
A link to a resource representing the person whom the ordered item is for.
-
patientTarget
protected Patient patientTarget
The actual object that is the target of the reference (A link to a resource representing the person whom the ordered item is for.)
-
source
protected Reference source
The Practitioner , Organization or Patient who initiated this order for the supply.
-
sourceTarget
protected Resource sourceTarget
The actual object that is the target of the reference (The Practitioner , Organization or Patient who initiated this order for the supply.)
-
date
protected DateTimeType date
When the request was made.
-
identifier
protected Identifier identifier
Unique identifier for this supply request.
-
status
protected Enumeration<SupplyRequest.SupplyRequestStatus> status
Status of the supply request.
-
kind
protected CodeableConcept kind
Category of supply, e.g. central, non-stock, etc. This is used to support work flows associated with the supply process.
-
orderedItem
protected Reference orderedItem
The item that is requested to be supplied.
-
orderedItemTarget
protected Resource orderedItemTarget
The actual object that is the target of the reference (The item that is requested to be supplied.)
-
supplierTarget
protected List<Organization> supplierTarget
The actual objects that are the target of the reference (Who is intended to fulfill the request.)
-
when
protected SupplyRequest.SupplyRequestWhenComponent when
When the request should be fulfilled.
-
SP_DATE
public static final String SP_DATE
- See Also:
- Constant Field Values
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
- See Also:
- Constant Field Values
-
SP_KIND
public static final String SP_KIND
- See Also:
- Constant Field Values
-
SP_PATIENT
public static final String SP_PATIENT
- See Also:
- Constant Field Values
-
SP_SUPPLIER
public static final String SP_SUPPLIER
- See Also:
- Constant Field Values
-
SP_SOURCE
public static final String SP_SOURCE
- See Also:
- Constant Field Values
-
SP_STATUS
public static final String SP_STATUS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SupplyRequest
public SupplyRequest()
-
-
Method Detail
-
getPatient
public Reference getPatient()
- Returns:
patient(A link to a resource representing the person whom the ordered item is for.)
-
hasPatient
public boolean hasPatient()
-
setPatient
public SupplyRequest setPatient(Reference value)
- Parameters:
value-patient(A link to a resource representing the person whom the ordered item is for.)
-
getPatientTarget
public Patient getPatientTarget()
- Returns:
patientThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (A link to a resource representing the person whom the ordered item is for.)
-
setPatientTarget
public SupplyRequest setPatientTarget(Patient value)
- Parameters:
value-patientThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (A link to a resource representing the person whom the ordered item is for.)
-
getSource
public Reference getSource()
- Returns:
source(The Practitioner , Organization or Patient who initiated this order for the supply.)
-
hasSource
public boolean hasSource()
-
setSource
public SupplyRequest setSource(Reference value)
- Parameters:
value-source(The Practitioner , Organization or Patient who initiated this order for the supply.)
-
getSourceTarget
public Resource getSourceTarget()
- Returns:
sourceThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The Practitioner , Organization or Patient who initiated this order for the supply.)
-
setSourceTarget
public SupplyRequest setSourceTarget(Resource value)
- Parameters:
value-sourceThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The Practitioner , Organization or Patient who initiated this order for the supply.)
-
getDateElement
public DateTimeType getDateElement()
- Returns:
date(When the request was made.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
-
hasDateElement
public boolean hasDateElement()
-
hasDate
public boolean hasDate()
-
setDateElement
public SupplyRequest setDateElement(DateTimeType value)
- Parameters:
value-date(When the request was made.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
-
setDate
public SupplyRequest setDate(Date value)
- Parameters:
value- When the request was made.
-
getIdentifier
public Identifier getIdentifier()
- Returns:
identifier(Unique identifier for this supply request.)
-
hasIdentifier
public boolean hasIdentifier()
-
setIdentifier
public SupplyRequest setIdentifier(Identifier value)
- Parameters:
value-identifier(Unique identifier for this supply request.)
-
getStatusElement
public Enumeration<SupplyRequest.SupplyRequestStatus> getStatusElement()
- Returns:
status(Status of the supply request.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
hasStatusElement
public boolean hasStatusElement()
-
hasStatus
public boolean hasStatus()
-
setStatusElement
public SupplyRequest setStatusElement(Enumeration<SupplyRequest.SupplyRequestStatus> value)
- Parameters:
value-status(Status of the supply request.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
getStatus
public SupplyRequest.SupplyRequestStatus getStatus()
- Returns:
- Status of the supply request.
-
setStatus
public SupplyRequest setStatus(SupplyRequest.SupplyRequestStatus value)
- Parameters:
value- Status of the supply request.
-
getKind
public CodeableConcept getKind()
- Returns:
kind(Category of supply, e.g. central, non-stock, etc. This is used to support work flows associated with the supply process.)
-
hasKind
public boolean hasKind()
-
setKind
public SupplyRequest setKind(CodeableConcept value)
- Parameters:
value-kind(Category of supply, e.g. central, non-stock, etc. This is used to support work flows associated with the supply process.)
-
getOrderedItem
public Reference getOrderedItem()
- Returns:
orderedItem(The item that is requested to be supplied.)
-
hasOrderedItem
public boolean hasOrderedItem()
-
setOrderedItem
public SupplyRequest setOrderedItem(Reference value)
- Parameters:
value-orderedItem(The item that is requested to be supplied.)
-
getOrderedItemTarget
public Resource getOrderedItemTarget()
- Returns:
orderedItemThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The item that is requested to be supplied.)
-
setOrderedItemTarget
public SupplyRequest setOrderedItemTarget(Resource value)
- Parameters:
value-orderedItemThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The item that is requested to be supplied.)
-
getSupplier
public List<Reference> getSupplier()
- Returns:
supplier(Who is intended to fulfill the request.)
-
hasSupplier
public boolean hasSupplier()
-
addSupplier
public Reference addSupplier()
- Returns:
supplier(Who is intended to fulfill the request.)
-
addSupplier
public SupplyRequest addSupplier(Reference t)
-
getSupplierTarget
public List<Organization> getSupplierTarget()
- Returns:
supplier(The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. Who is intended to fulfill the request.)
-
addSupplierTarget
public Organization addSupplierTarget()
- Returns:
supplier(Add an actual object that is the target of the reference. The reference library doesn't use these, but you can use this to hold the resources if you resolvethemt. Who is intended to fulfill the request.)
-
getReasonCodeableConcept
public CodeableConcept getReasonCodeableConcept() throws org.hl7.fhir.exceptions.FHIRException
- Returns:
reason(Why the supply item was requested.)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasReasonCodeableConcept
public boolean hasReasonCodeableConcept()
-
getReasonReference
public Reference getReasonReference() throws org.hl7.fhir.exceptions.FHIRException
- Returns:
reason(Why the supply item was requested.)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasReasonReference
public boolean hasReasonReference()
-
hasReason
public boolean hasReason()
-
setReason
public SupplyRequest setReason(Type value)
- Parameters:
value-reason(Why the supply item was requested.)
-
getWhen
public SupplyRequest.SupplyRequestWhenComponent getWhen()
- Returns:
when(When the request should be fulfilled.)
-
hasWhen
public boolean hasWhen()
-
setWhen
public SupplyRequest setWhen(SupplyRequest.SupplyRequestWhenComponent value)
- Parameters:
value-when(When the request should be fulfilled.)
-
listChildren
protected void listChildren(List<Property> childrenList)
- Overrides:
listChildrenin classDomainResource
-
setProperty
public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
addChildin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
public String fhirType()
- Specified by:
fhirTypein interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
fhirTypein classDomainResource
-
copy
public SupplyRequest copy()
- Specified by:
copyin classDomainResource
-
typedCopy
protected SupplyRequest typedCopy()
-
equalsDeep
public boolean equalsDeep(Base other)
- Overrides:
equalsDeepin classDomainResource
-
equalsShallow
public boolean equalsShallow(Base other)
- Overrides:
equalsShallowin classDomainResource
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
isEmptyin classDomainResource
-
getResourceType
public ResourceType getResourceType()
- Specified by:
getResourceTypein classResource
-
-