SupplyRequest _search

post/SupplyRequest/_search
Page View

This resource contains a request for any kind of medical supplies to be used for a patient’s care, including a medication, device, or substance. 

You can review or retrieve supply requests.

_search

Query for details about a supply request order.

This is a flexible option with query parameters to refine your search. The response returns a bundle of resources, known as a searchset bundle type. Learn about bundles and bundle types in our FHIR® glossary.

Request parameters and payload

cURL request example

bash
1
curl 'https://api.redoxengine.com/fhir/R4/{destinationSlug}/{environmentFlag}/SupplyRequest/_search' \
2
--request POST \
3
--header 'Authorization: Bearer $API_TOKEN' \
4
--header 'Content-Type: application/x-www-form-urlencoded' \
5
--data-urlencode 'patient=string' \
6
--data-urlencode 'patient.identifier=string' \
7
--data-urlencode 'occurrenceDateTime=string' \
8
--data-urlencode 'status=string'

Request Body Schema

  • patient
    Array of string

    The patient for whom the supply was requested

  • patient.identifier
    Array of string

    One or more external identifiers for the patient

  • occurrenceDateTime
    Array of string

    When the request should be fulfilled

  • status
    Array of string

    The status of the supply request: draft | active | suspended

Response fields and example

Example payload generated from schema
1
{
2
"resourceType": "Bundle",
3
"type": "searchset",
4
"total": 1,
5
"entry": [
6
{
7
"resource": {
8
"resourceType": "SupplyRequest",
9
"id": "RedoxSupplyRequestExample",
10
"identifier": [
11
{
12
"system": "urn:oid:1.2.840.114350.1.13.12345.1.7.2.798268",
13
"value": "6189423417"
14
}
15
],
16
"deliverTo": {
17
"reference": "Patient/RedoxPatientExampleTimothy"
18
},
19
"status": "active",
20
"itemCodeableConcept": {
21
"coding": [
22
{
23
"code": "363753007",
24
"system": "http://snomed.info/sct"
25
}
26
],
27
"text": "Crutches"
28
},
29
"quantity": {
30
"value": 1
31
},
32
"occurrenceDateTime": "2022-02-14T19:35:57.806Z"
33
},
34
"search": {
35
"mode": "match"
36
}
37
}
38
]
39
}

    Response to a Supply Request search operation

  • resourceType
    required, string

    Identifies the type of the resource

    Value: Bundle
  • type
    required, string

    Identifies this bundle as a response to a search

    Value: searchset
  • total
    required, number

    The total number of matches

  • entry
    Array of SupplyRequest or Other

    A resource matching the search criteria or related to a matching resource

    • resource
      required, object

      A record of a request for a medication, substance, or device used in the healthcare setting.

      • resourceType
        required, string

        Identifies the type of the resource

        Value: SupplyRequest
      • quantity
        required, object

        The amount that is being ordered of the indicated item.

        • value
          number

          The value of the measured amount. The value includes an implicit precision in the presentation of the value.

      • itemCodeableConcept
        required, object

        The item that is requested to be supplied. This is either a link to a resource representing the details of the item or a code that identifies the item from a known list.

        • extension
          Array of OriginalText or Other

          May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

            A human language representation of the concept (resource/element) as seen/selected/uttered by the user who entered the data and/or which represents the full intended meaning of the user.

            See http://hl7.org/fhir/StructureDefinition/originalText for more information

          • url
            required, string

            Source of the definition for the extension code - a logical name or a URL.

            Value: http://hl7.org/fhir/StructureDefinition/originalText
          • valueString
            required, string

            The original text

        • coding
          Array of object

          A reference to a code defined by a terminology system.

          • system
            string

            The identification of the code system that defines the meaning of the symbol in the code.

          • code
            string

            A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).

        • text
          string

          A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.

      • id
        string

        The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.

      • identifier
        Array of object

        Business identifiers assigned to this SupplyRequest by the author and/or other systems. These identifiers remain constant as the resource is updated and propagates from server to server.

        • extension
          Array of Boolean, String, CodeableConcept, Coding, HumanName or Reference

          May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

          • url
            required, string

            Source of the definition for the extension code - a logical name or a URL.

          • valueBoolean
            boolean

            A single value for the extension.

        • use
          string

          The purpose of this identifier.

          Possible Values: usual, official, temp, secondary, old (If known)
        • system
          string

          Establishes the namespace for the value - that is, a URL that describes a set values that are unique.

        • value
          string

          The portion of the identifier typically relevant to the user and which is unique within the context of the system.

      • status
        string

        Status of the supply request.

        Possible Values: draft, active, suspended, cancelled, completed, entered-in-error, unknown
      • _status
        object

        This element contains extensions for status. Depending on the extensions present it could be used in place of status or contain additional information about status. See the extension element for more details on the possible extensions being sent.

        • extension
          Array of OriginalText or Other

          May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

            A human language representation of the concept (resource/element) as seen/selected/uttered by the user who entered the data and/or which represents the full intended meaning of the user.

            See http://hl7.org/fhir/StructureDefinition/originalText for more information

          • url
            required, string

            Source of the definition for the extension code - a logical name or a URL.

            Value: http://hl7.org/fhir/StructureDefinition/originalText
          • valueString
            required, string

            The original text

      • deliverTo
        object

        Where the supply is destined to go.

        Must be a resource of type Patient.

        • reference
          string

          A reference to another resource. This is typically either a relative reference which includes the resource type and ID, or an internal reference which starts with # and refers to a contained resource.

      • occurrenceDateTime
        string

        When the request should be fulfilled.

    • search
      required, object

      Information about the search process that lead to the creation of this entry.

      • mode
        required, string

        Identifies the SupplyRequest as matching the search parameters

        Value: match