Class SupplyRequest
- java.lang.Object
-
- org.hl7.fhir.dstu2016may.model.Base
-
- org.hl7.fhir.dstu2016may.model.BaseResource
-
- org.hl7.fhir.dstu2016may.model.Resource
-
- org.hl7.fhir.dstu2016may.model.DomainResource
-
- org.hl7.fhir.dstu2016may.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.static ca.uhn.fhir.rest.gclient.DateClientParamDATEFluent Client search parameter constant for dateprotected IdentifieridentifierUnique identifier for this supply request.static ca.uhn.fhir.rest.gclient.TokenClientParamIDENTIFIERFluent Client search parameter constant for identifierstatic ca.uhn.fhir.model.api.IncludeINCLUDE_PATIENTConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_SOURCEConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_SUPPLIERConstant for fluent queries to be used to add include statements.protected CodeableConceptkindCategory of supply, e.g.static ca.uhn.fhir.rest.gclient.TokenClientParamKINDFluent Client search parameter constant for kindprotected 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.static ca.uhn.fhir.rest.gclient.ReferenceClientParamPATIENTFluent Client search parameter constant for patientprotected 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.static ca.uhn.fhir.rest.gclient.ReferenceClientParamSOURCEFluent Client search parameter constant for sourceprotected ResourcesourceTargetThe actual object that is the target of the reference (The Practitioner , Organization or Patient who initiated this order for the supply.)static StringSP_DATESearch parameter: datestatic StringSP_IDENTIFIERSearch parameter: identifierstatic StringSP_KINDSearch parameter: kindstatic StringSP_PATIENTSearch parameter: patientstatic StringSP_SOURCESearch parameter: sourcestatic StringSP_STATUSSearch parameter: statusstatic StringSP_SUPPLIERSearch parameter: supplierprotected Enumeration<SupplyRequest.SupplyRequestStatus>statusStatus of the supply request.static ca.uhn.fhir.rest.gclient.TokenClientParamSTATUSFluent Client search parameter constant for statusprotected List<Reference>supplierWho is intended to fulfill the request.static ca.uhn.fhir.rest.gclient.ReferenceClientParamSUPPLIERFluent Client search parameter constant for supplierprotected 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.dstu2016may.model.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.dstu2016may.model.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description SupplyRequest()Constructor
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu2016may.model.DomainResource
addContained, addExtension, addExtension, addModifierExtension, addModifierExtension, copyValues, getContained, getExtension, getExtensionsByUrl, getModifierExtension, getModifierExtensionsByUrl, getText, hasContained, hasExtension, hasModifierExtension, hasText, setText
-
Methods inherited from class org.hl7.fhir.dstu2016may.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.dstu2016may.model.BaseResource
getStructureFhirVersionEnum, setId
-
Methods inherited from class org.hl7.fhir.dstu2016may.model.Base
castToActionDefinition, castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToModuleMetadata, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, 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_PATIENT
public static final String SP_PATIENT
Search parameter: patientDescription: Patient for whom the item is supplied
Type: reference
Path: SupplyRequest.patient
- See Also:
- Constant Field Values
-
PATIENT
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT
Fluent Client search parameter constant for patientDescription: Patient for whom the item is supplied
Type: reference
Path: SupplyRequest.patient
-
INCLUDE_PATIENT
public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT
Constant for fluent queries to be used to add include statements. Specifies the path value of "SupplyRequest:patient".
-
SP_SOURCE
public static final String SP_SOURCE
Search parameter: sourceDescription: Who initiated this order
Type: reference
Path: SupplyRequest.source
- See Also:
- Constant Field Values
-
SOURCE
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SOURCE
Fluent Client search parameter constant for sourceDescription: Who initiated this order
Type: reference
Path: SupplyRequest.source
-
INCLUDE_SOURCE
public static final ca.uhn.fhir.model.api.Include INCLUDE_SOURCE
Constant for fluent queries to be used to add include statements. Specifies the path value of "SupplyRequest:source".
-
SP_STATUS
public static final String SP_STATUS
Search parameter: statusDescription: requested | completed | failed | cancelled
Type: token
Path: SupplyRequest.status
- See Also:
- Constant Field Values
-
STATUS
public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS
Fluent Client search parameter constant for statusDescription: requested | completed | failed | cancelled
Type: token
Path: SupplyRequest.status
-
SP_DATE
public static final String SP_DATE
Search parameter: dateDescription: When the request was made
Type: date
Path: SupplyRequest.date
- See Also:
- Constant Field Values
-
DATE
public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE
Fluent Client search parameter constant for dateDescription: When the request was made
Type: date
Path: SupplyRequest.date
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
Search parameter: identifierDescription: Unique identifier
Type: token
Path: SupplyRequest.identifier
- See Also:
- Constant Field Values
-
IDENTIFIER
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
Fluent Client search parameter constant for identifierDescription: Unique identifier
Type: token
Path: SupplyRequest.identifier
-
SP_SUPPLIER
public static final String SP_SUPPLIER
Search parameter: supplierDescription: Who is intended to fulfill the request
Type: reference
Path: SupplyRequest.supplier
- See Also:
- Constant Field Values
-
SUPPLIER
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUPPLIER
Fluent Client search parameter constant for supplierDescription: Who is intended to fulfill the request
Type: reference
Path: SupplyRequest.supplier
-
INCLUDE_SUPPLIER
public static final ca.uhn.fhir.model.api.Include INCLUDE_SUPPLIER
Constant for fluent queries to be used to add include statements. Specifies the path value of "SupplyRequest:supplier".
-
SP_KIND
public static final String SP_KIND
Search parameter: kindDescription: The kind of supply (central, non-stock, etc.)
Type: token
Path: SupplyRequest.kind
- See Also:
- Constant Field Values
-
KIND
public static final ca.uhn.fhir.rest.gclient.TokenClientParam KIND
Fluent Client search parameter constant for kindDescription: The kind of supply (central, non-stock, etc.)
Type: token
Path: SupplyRequest.kind
-
-
Constructor Detail
-
SupplyRequest
public SupplyRequest()
Constructor
-
-
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
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public void setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
Description copied from class:Basemake an instance of a property. If the property is a repeating property, make a new instance. if the property is not repeating, return the property- Overrides:
makePropertyin classDomainResource- Returns:
- 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
-
-