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
  • Field Details

    • SP_KIND

      public static final String SP_KIND
      Search parameter constant for kind

      Description:
      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 kind

      Description:
      Type: token
      Path: SupplyRequest.kind

    • SP_IDENTIFIER

      public static final String SP_IDENTIFIER
      Search parameter constant for identifier

      Description:
      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 identifier

      Description:
      Type: token
      Path: SupplyRequest.identifier

    • SP_STATUS

      public static final String SP_STATUS
      Search parameter constant for status

      Description:
      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 status

      Description:
      Type: token
      Path: SupplyRequest.status

    • SP_PATIENT

      public static final String SP_PATIENT
      Search parameter constant for patient

      Description:
      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 patient

      Description:
      Type: reference
      Path: SupplyRequest.patient

    • SP_SOURCE

      public static final String SP_SOURCE
      Search parameter constant for source

      Description:
      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 source

      Description:
      Type: reference
      Path: SupplyRequest.source

    • SP_DATE

      public static final String SP_DATE
      Search parameter constant for date

      Description:
      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 date

      Description:
      Type: date
      Path: SupplyRequest.date

    • SP_SUPPLIER

      public static final String SP_SUPPLIER
      Search parameter constant for supplier

      Description:
      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 supplier

      Description:
      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 Details

  • Method Details

    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.hl7.fhir.instance.model.api.IBase
    • getAllPopulatedChildElementsOfType

      public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType​(Class<T> theType)
      Specified by:
      getAllPopulatedChildElementsOfType in interface ca.uhn.fhir.model.api.ICompositeElement
    • getPatient

      Gets the value(s) for patient (). creating it if it does not exist. Will not return null.

      Definition: A link to a resource representing the person whom the ordered item is for

    • setPatient

      Sets the value(s) for patient ()

      Definition: A link to a resource representing the person whom the ordered item is for

    • getSource

      Gets the value(s) for source (). creating it if it does not exist. Will not return null.

      Definition: The Practitioner , Organization or Patient who initiated this order for the supply

    • setSource

      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 return null.

      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 return null.

      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

      Sets the value for date ()

      Definition: When the request was made

    • getIdentifier

      Gets the value(s) for identifier (). creating it if it does not exist. Will not return null.

      Definition: Unique identifier for this supply request

    • setIdentifier

      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 return null.

      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 return null.

      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

      Sets the value(s) for status ()

      Definition: Status of the supply request

    • getKind

      Gets the value(s) for kind (). creating it if it does not exist. Will not return null.

      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

      Gets the value(s) for orderedItem (). creating it if it does not exist. Will not return null.

      Definition: The item that is requested to be supplied

    • setOrderedItem

      Sets the value(s) for orderedItem ()

      Definition: The item that is requested to be supplied

    • getSupplier

      Gets the value(s) for supplier (). creating it if it does not exist. Will not return null.

      Definition: Who is intended to fulfill the request

    • setSupplier

      Sets the value(s) for supplier ()

      Definition: Who is intended to fulfill the request

    • 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 return null.

      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

      Gets the value(s) for when (). creating it if it does not exist. Will not return null.

      Definition: When the request should be fulfilled

    • setWhen

      Sets the value(s) for when ()

      Definition: When the request should be fulfilled

    • getResourceName

      Specified by:
      getResourceName in interface ca.uhn.fhir.model.api.IResource
    • getStructureFhirVersionEnum

      public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum()
      Specified by:
      getStructureFhirVersionEnum in interface org.hl7.fhir.instance.model.api.IBaseResource
      Specified by:
      getStructureFhirVersionEnum in interface ca.uhn.fhir.model.api.IResource