Class SupplyRequest
- java.lang.Object
-
- ca.uhn.fhir.model.api.BaseElement
-
- ca.uhn.fhir.model.dstu2.resource.BaseResource
-
- ca.uhn.fhir.model.dstu2.resource.SupplyRequest
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeElement,ca.uhn.fhir.model.api.IElement,ca.uhn.fhir.model.api.IResource,ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions,Serializable,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseResource
public class SupplyRequest extends BaseResource implements ca.uhn.fhir.model.api.IResource
HAPI/FHIR SupplyRequest Resource ()Definition: A record of a request for a medication, substance or device used in the healthcare setting.
Requirements:
Profile Definition: http://hl7.org/fhir/profiles/SupplyRequest
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSupplyRequest.WhenBlock class for child element: SupplyRequest.when ()
-
Field Summary
Fields Modifier and Type Field Description static ca.uhn.fhir.rest.gclient.DateClientParamDATEFluent Client search parameter constant for datestatic 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.static ca.uhn.fhir.rest.gclient.TokenClientParamKINDFluent Client search parameter constant for kindstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamPATIENTFluent Client search parameter constant for patientstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamSOURCEFluent Client search parameter constant for sourcestatic StringSP_DATESearch parameter constant for datestatic StringSP_IDENTIFIERSearch parameter constant for identifierstatic StringSP_KINDSearch parameter constant for kindstatic StringSP_PATIENTSearch parameter constant for patientstatic StringSP_SOURCESearch parameter constant for sourcestatic StringSP_STATUSSearch parameter constant for statusstatic StringSP_SUPPLIERSearch parameter constant for supplierstatic ca.uhn.fhir.rest.gclient.TokenClientParamSTATUSFluent Client search parameter constant for statusstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamSUPPLIERFluent Client search parameter constant for supplier-
Fields inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
RES_ID, SP_RES_ID, SP_RES_LANGUAGE
-
-
Constructor Summary
Constructors Constructor Description SupplyRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceReferenceDtaddSupplier()Adds and returns a new value for supplier ()<T extends ca.uhn.fhir.model.api.IElement>
List<T>getAllPopulatedChildElementsOfType(Class<T> theType)DategetDate()Gets the value(s) for date ().ca.uhn.fhir.model.primitive.DateTimeDtgetDateElement()Gets the value(s) for date ().IdentifierDtgetIdentifier()Gets the value(s) for identifier ().CodeableConceptDtgetKind()Gets the value(s) for kind ().ResourceReferenceDtgetOrderedItem()Gets the value(s) for orderedItem ().ResourceReferenceDtgetPatient()Gets the value(s) for patient ().ca.uhn.fhir.model.api.IDatatypegetReason()Gets the value(s) for reason[x] ().StringgetResourceName()ResourceReferenceDtgetSource()Gets the value(s) for source ().StringgetStatus()Gets the value(s) for status ().ca.uhn.fhir.model.primitive.BoundCodeDt<SupplyRequestStatusEnum>getStatusElement()Gets the value(s) for status ().ca.uhn.fhir.context.FhirVersionEnumgetStructureFhirVersionEnum()List<ResourceReferenceDt>getSupplier()Gets the value(s) for supplier ().SupplyRequest.WhengetWhen()Gets the value(s) for when ().booleanisEmpty()SupplyRequestsetDate(ca.uhn.fhir.model.primitive.DateTimeDt theValue)Sets the value(s) for date ()SupplyRequestsetDate(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)Sets the value for date ()SupplyRequestsetDateWithSecondsPrecision(Date theDate)Sets the value for date ()SupplyRequestsetIdentifier(IdentifierDt theValue)Sets the value(s) for identifier ()SupplyRequestsetKind(CodeableConceptDt theValue)Sets the value(s) for kind ()SupplyRequestsetOrderedItem(ResourceReferenceDt theValue)Sets the value(s) for orderedItem ()SupplyRequestsetPatient(ResourceReferenceDt theValue)Sets the value(s) for patient ()SupplyRequestsetReason(ca.uhn.fhir.model.api.IDatatype theValue)Sets the value(s) for reason[x] ()SupplyRequestsetSource(ResourceReferenceDt theValue)Sets the value(s) for source ()SupplyRequestsetStatus(SupplyRequestStatusEnum theValue)Sets the value(s) for status ()SupplyRequestsetStatus(ca.uhn.fhir.model.primitive.BoundCodeDt<SupplyRequestStatusEnum> theValue)Sets the value(s) for status ()SupplyRequestsetSupplier(List<ResourceReferenceDt> theValue)Sets the value(s) for supplier ()SupplyRequestsetWhen(SupplyRequest.When theValue)Sets the value(s) for when ()-
Methods inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
getContained, getId, getIdElement, getLanguage, getMeta, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setId, setLanguage, setResourceMetadata, setText, toString
-
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, setUserData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
-
-
-
-
Field Detail
-
SP_KIND
public static final String SP_KIND
Search parameter constant for kindDescription:
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:
Type: token
Path: SupplyRequest.kind
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
Search parameter constant for identifierDescription:
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:
Type: token
Path: SupplyRequest.identifier
-
SP_STATUS
public static final String SP_STATUS
Search parameter constant for statusDescription:
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:
Type: token
Path: SupplyRequest.status
-
SP_PATIENT
public static final String SP_PATIENT
Search parameter constant for patientDescription:
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:
Type: reference
Path: SupplyRequest.patient
-
SP_SOURCE
public static final String SP_SOURCE
Search parameter constant for sourceDescription:
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:
Type: reference
Path: SupplyRequest.source
-
SP_DATE
public static final String SP_DATE
Search parameter constant for dateDescription:
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:
Type: date
Path: SupplyRequest.date
-
SP_SUPPLIER
public static final String SP_SUPPLIER
Search parameter constant for supplierDescription:
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:
Type: reference
Path: SupplyRequest.supplier
-
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".
-
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".
-
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".
-
-
Constructor Detail
-
SupplyRequest
public SupplyRequest()
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase
-
getAllPopulatedChildElementsOfType
public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
- Specified by:
getAllPopulatedChildElementsOfTypein interfaceca.uhn.fhir.model.api.ICompositeElement
-
getPatient
public ResourceReferenceDt getPatient()
Gets the value(s) for patient (). creating it if it does not exist. Will not returnnull.Definition: A link to a resource representing the person whom the ordered item is for
-
setPatient
public SupplyRequest setPatient(ResourceReferenceDt theValue)
Sets the value(s) for patient ()Definition: A link to a resource representing the person whom the ordered item is for
-
getSource
public ResourceReferenceDt getSource()
Gets the value(s) for source (). creating it if it does not exist. Will not returnnull.Definition: The Practitioner , Organization or Patient who initiated this order for the supply
-
setSource
public SupplyRequest setSource(ResourceReferenceDt theValue)
Sets the value(s) for source ()Definition: The Practitioner , Organization or Patient who initiated this order for the supply
-
getDateElement
public ca.uhn.fhir.model.primitive.DateTimeDt getDateElement()
Gets the value(s) for date (). creating it if it does not exist. Will not returnnull.Definition: When the request was made
-
getDate
public Date getDate()
Gets the value(s) for date (). creating it if it does not exist. This method may returnnull.Definition: When the request was made
-
setDate
public SupplyRequest setDate(ca.uhn.fhir.model.primitive.DateTimeDt theValue)
Sets the value(s) for date ()Definition: When the request was made
-
setDate
public SupplyRequest setDate(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)
Sets the value for date ()Definition: When the request was made
-
setDateWithSecondsPrecision
public SupplyRequest setDateWithSecondsPrecision(Date theDate)
Sets the value for date ()Definition: When the request was made
-
getIdentifier
public IdentifierDt getIdentifier()
Gets the value(s) for identifier (). creating it if it does not exist. Will not returnnull.Definition: Unique identifier for this supply request
-
setIdentifier
public SupplyRequest setIdentifier(IdentifierDt theValue)
Sets the value(s) for identifier ()Definition: Unique identifier for this supply request
-
getStatusElement
public ca.uhn.fhir.model.primitive.BoundCodeDt<SupplyRequestStatusEnum> getStatusElement()
Gets the value(s) for status (). creating it if it does not exist. Will not returnnull.Definition: Status of the supply request
-
getStatus
public String getStatus()
Gets the value(s) for status (). creating it if it does not exist. This method may returnnull.Definition: Status of the supply request
-
setStatus
public SupplyRequest setStatus(ca.uhn.fhir.model.primitive.BoundCodeDt<SupplyRequestStatusEnum> theValue)
Sets the value(s) for status ()Definition: Status of the supply request
-
setStatus
public SupplyRequest setStatus(SupplyRequestStatusEnum theValue)
Sets the value(s) for status ()Definition: Status of the supply request
-
getKind
public CodeableConceptDt getKind()
Gets the value(s) for kind (). creating it if it does not exist. Will not returnnull.Definition: Category of supply, e.g. central, non-stock, etc. This is used to support work flows associated with the supply process
-
setKind
public SupplyRequest setKind(CodeableConceptDt theValue)
Sets the value(s) for kind ()Definition: Category of supply, e.g. central, non-stock, etc. This is used to support work flows associated with the supply process
-
getOrderedItem
public ResourceReferenceDt getOrderedItem()
Gets the value(s) for orderedItem (). creating it if it does not exist. Will not returnnull.Definition: The item that is requested to be supplied
-
setOrderedItem
public SupplyRequest setOrderedItem(ResourceReferenceDt theValue)
Sets the value(s) for orderedItem ()Definition: The item that is requested to be supplied
-
getSupplier
public List<ResourceReferenceDt> getSupplier()
Gets the value(s) for supplier (). creating it if it does not exist. Will not returnnull.Definition: Who is intended to fulfill the request
-
setSupplier
public SupplyRequest setSupplier(List<ResourceReferenceDt> theValue)
Sets the value(s) for supplier ()Definition: Who is intended to fulfill the request
-
addSupplier
public ResourceReferenceDt addSupplier()
Adds and returns a new value for supplier ()Definition: Who is intended to fulfill the request
-
getReason
public ca.uhn.fhir.model.api.IDatatype getReason()
Gets the value(s) for reason[x] (). creating it if it does not exist. Will not returnnull.Definition: Why the supply item was requested
-
setReason
public SupplyRequest setReason(ca.uhn.fhir.model.api.IDatatype theValue)
Sets the value(s) for reason[x] ()Definition: Why the supply item was requested
-
getWhen
public SupplyRequest.When getWhen()
Gets the value(s) for when (). creating it if it does not exist. Will not returnnull.Definition: When the request should be fulfilled
-
setWhen
public SupplyRequest setWhen(SupplyRequest.When theValue)
Sets the value(s) for when ()Definition: When the request should be fulfilled
-
getResourceName
public String getResourceName()
- Specified by:
getResourceNamein interfaceca.uhn.fhir.model.api.IResource
-
getStructureFhirVersionEnum
public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum()
- Specified by:
getStructureFhirVersionEnumin interfaceorg.hl7.fhir.instance.model.api.IBaseResource- Specified by:
getStructureFhirVersionEnumin interfaceca.uhn.fhir.model.api.IResource
-
-