---
schema_version: "1"
id: d1daa91c50f48b5b5a7e43c1587005456c178d55247ad442f848c2abbf52a728
title: Clinical Workflow
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries-integrations/health/references/generated-api-specs/clinical_workflow.md
canonical_url: https://developer.salesforce.com/docs/industries/health/references/clinical_workflow
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3889486d5106d24c0d3e987b3252495a855659df8333ddf468ee9d7e1f980a9e
products:
  - Salesforce Healthcare API
  - Industries Integrations
---
Clinical Workflow

# Clinical Workflow

Use the FHIR R4 Clinical Workflow API to manage the MedicationRequest and ServiceRequest resources. The MedicationRequest resource returns the orders for all medications, administration instructions, and documented medications for a patient. The ServiceRequest resource returns the requests or orders for procedures, diagnostic tests, or other services for a patient.

**Version:** v1

Protocols: https.

## Operations

### GET Get medication requests

`GET /MedicationRequest`

Retrieves a set of resources by using filters.

#### Parameters

*   `patient` (query, string) Returns prescriptions for a specific patient
*   `X-CORRELATION-ID` (header, string)
*   `Accept` (header, string)  
    Allowed values: `application/fhir+json`.

#### Responses

*   **200**
    
    Media type: `application/fhir+json`. Schema: `MedicationRequestBundle (extended)`.
    
    Includes all fields of `MedicationRequestBundle`.
    
    *   `entry` (_array of any_)
        
        Entry in the bundle must have a resource or information.
        
        *   Rule: must be a resource unless there's a request or response.
        *   Rule: fullUrl property can't be a version-specific reference. For bundles of 'document' and 'message' type, the first resource is special and must be Composition or MessageHeader properties respectively. For all bundles, the meaning of the order of entries depends on the bundle type.
        
        Each item:
        
        Entry in the bundle must have a resource or information.
        
        *   Rule: must be a resource unless there's a request or response.
        *   Rule: fullUrl property can't be a version specific reference. For bundles of 'document' and 'message' type, the first resource is special and must be the Composition or MessageHeader properties respectively. For all bundles, the meaning of the order of entries depends on the bundle type.
        
    
    _Example_
    
    ```
    {
        "resourceType": "Bundle",
        "id": "05b25304-30cc-4200-883e-7bdb83b5c71f",
        "meta": {
            "lastUpdated": "2023-03-13T10:15:18.511487+05:30"
        },
        "type": "searchset",
        "total": 1,
        "link": [
            {
                "relation": "self",
                "url": "https://localhost:8092/clinical-workflow/fhir-r4/v1/MedicationRequest?patient=001B000001Pjme5IAB"
            }
        ],
        "entry": [
            {
                "fullUrl": "https://localhost:8092/clinical-workflow/fhir-r4/v1/MedicationRequest/0kmB000000007YbIAI",
                "search": {
                    "mode": "match"
                },
                "resource": {
                    "resourceType": "MedicationRequest",
                    "id": "0kmB000000007YbIAI",
                    "status": "active",
                    "intent": "proposal",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
                                    "code": "inpatient",
                                    "display": "Inpatient"
                                }
                            ],
                            "text": "MedicationRequest category Bundle"
                        }
                    ],
                    "priority": "routine",
                    "doNotPerform": true,
                    "reportedBoolean": true,
                    "medicationReference": {
                        "reference": "Medication/0itB00000004RQFIA2",
                        "type": "Medication"
                    },
                    "subject": {
                        "reference": "Patient/001B000001Pjme5IAB",
                        "type": "Patient"
                    },
                    "encounter": {
                        "reference": "Encounter/0kGB0000000CgPBMA0",
                        "type": "Encounter"
                    },
                    "authoredOn": "2015-01-15T00:00:00.000Z",
                    "requester": {
                        "reference": "Practitioner/0cmB0000000H5s3IAC",
                        "type": "Practitioner"
                    },
                    "performer": {
                        "reference": "Practitioner/0cmB0000000H5s3IAC",
                        "type": "Practitioner"
                    },
                    "performerType": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "26369006",
                                "display": "Public Health Nurse"
                            }
                        ],
                        "text": "MedicationRequest performerType Bundle"
                    },
                    "reasonCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "297217002",
                                    "display": "Rib Pain (finding)"
                                }
                            ],
                            "text": "MedicationRequest Reason Code Bundle"
                        }
                    ],
                    "reasonReference": [
                        {
                            "reference": "Observation/0hIB0000000CqJNMA0",
                            "type": "Observation"
                        }
                    ],
                    "basedOn": [
                        {
                            "reference": "MedicationRequest/0kmB000000007VXIAY",
                            "type": "MedicationRequest"
                        },
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0",
                            "type": "ServiceRequest"
                        }
                    ],
                    "groupIdentifier": {
                        "use": "usual",
                        "value": "20000105719990",
                        "system": "urn:oid:1.2.36.146.595.217.0.1"
                    },
                    "courseOfTherapyType": {
                        "coding": [
                            {
                                "code": "acute"
                            }
                        ]
                    },
                    "dosageInstruction": [
                        {
                            "sequence": 1,
                            "text": "one to two tablets every 4-6 hours as needed for rib pain",
                            "additionalInstruction": [
                                {
                                    "text": "test text"
                                }
                            ],
                            "patientInstruction": "Take one to two tablets every four to six hours as needed for rib pain",
                            "timing": {
                                "event": [
                                    "2023-01-01T00:00:00.000Z",
                                    "2023-01-03T00:00:00.000Z",
                                    "2023-01-03T00:00:00.000Z"
                                ],
                                "repeat": {
                                    "boundsRange": {
                                        "low": {
                                            "value": 1.0,
                                            "unit": "minutes",
                                            "code": "minutes"
                                        },
                                        "high": {
                                            "value": 4.0,
                                            "unit": "minutes",
                                            "code": "minutes"
                                        }
                                    },
                                    "count": 2,
                                    "countMax": 4,
                                    "duration": 5.0,
                                    "durationMax": 10.0,
                                    "durationUnit": "d",
                                    "frequency": 1.0,
                                    "frequencyMax": 2,
                                    "period": 2.0,
                                    "periodMax": 4.0,
                                    "periodUnit": "h",
                                    "when": [
                                        "C"
                                    ],
                                    "offset": 10
                                }
                            },
                            "asNeededBoolean": true,
                            "site": {
                                "coding": [
                                    {
                                        "system": "http://snomed.info/sct",
                                        "code": "26643007",
                                        "display": "Oral Route"
                                    }
                                ],
                                "text": "PatientMedication​Dosage​ site Bundle"
                            },
                            "route": {
                                "coding": [
                                    {
                                        "system": "http://snomed.info/sct",
                                        "code": "26643006",
                                        "display": "Oral Route"
                                    }
                                ],
                                "text": "PatientMedication​Dosage​ route Bundle"
                            },
                            "method": {
                                "coding": [
                                    {
                                        "system": "http://snomed.info/sct",
                                        "code": "421521009",
                                        "display": "Swallow - dosing instruction imperative (qualifier value)"
                                    }
                                ],
                                "text": "PatientMedication​Dosage​ method Bundle"
                            },
                            "doseAndRate": [
                                {
                                    "type": {
                                        "coding": [
                                            {
                                                "code": "ordered"
                                            }
                                        ]
                                    },
                                    "doseRange": {
                                        "low": {
                                            "value": 1.0,
                                            "unit": "TAB",
                                            "code": "TAB"
                                        },
                                        "high": {
                                            "value": 2.0,
                                            "unit": "TAB",
                                            "code": "TAB"
                                        }
                                    },
                                    "rateRange": {
                                        "low": {
                                            "value": 1.0,
                                            "unit": "TAB",
                                            "code": "TAB"
                                        },
                                        "high": {
                                            "value": 2.0,
                                            "unit": "TAB",
                                            "code": "TAB"
                                        }
                                    }
                                }
                            ]
                        }
                    ],
                    "dispenseRequest": {
                        "initialFill": {
                            "quantity": {
                                "value": 30.0,
                                "unit": "TAB",
                                "code": "TAB"
                            },
                            "duration": {
                                "value": 10.0,
                                "unit": "days",
                                "code": "d"
                            }
                        },
                        "dispenseInterval": {
                            "value": 10.0,
                            "unit": "days",
                            "code": "d"
                        },
                        "validityPeriod": {
                            "start": "2020-01-15T00:00:00.000Z",
                            "end": "2025-01-15T00:00:00.000Z"
                        },
                        "numberOfRepeatsAllowed": 0,
                        "quantity": {
                            "value": 30.0,
                            "unit": "TAB",
                            "code": "TAB"
                        },
                        "expectedSupplyDuration": {
                            "value": 10.0,
                            "unit": "days",
                            "code": "d"
                        },
                        "performer": {
                            "reference": "Organization/001B000001Pjme5IAB",
                            "type": "Organization"
                        }
                    },
                    "substitution": {
                        "allowedBoolean": true,
                        "reason": {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
                                    "code": "KP",
                                    "display": "formulary policy"
                                }
                            ],
                            "text": "MedicationRequest reason Bundle"
                        }
                    },
                    "priorPrescription": {
                        "reference": "MedicationRequest/0kmB000000007VXIAY",
                        "type": "MedicationRequest"
                    }
                }
            }
            
        ]
    }
    ```
    
*   **500** Something went wrong.
    
    Media type: `application/fhir+json`. Schema: `OperationOutcome`.
    
    _Example_
    
    ```
    {
        "resourceType": "OperationOutcome",
        "issue": [
            {
                "severity": "error",
                "code": "code-invalid",
                "details": {
                    "text": " Details not found."
                }
            }
        ]
    }
    ```
    
*   **503** Error connecting Salesforce.
    
    Media type: `application/fhir+json`. Schema: `OperationOutcome`.
    
    _Example: same as GET /MedicationRequest 500 response._
    

### POST Create a medication request

`POST /MedicationRequest`

Creates a resource using the create interaction from the FHIR resources.

#### Parameters

*   `X-CORRELATION-ID` (header, string)
*   `Accept` (header, string)  
    Allowed values: `application/fhir+json`.

#### Request body

Media type: `application/fhir+json`. Schema: `MedicationRequest`.

Specifies a resource with a narrative, the extensions, and the contained resources.

*   If the resource is contained in another resource, it must not contain nested resources.
*   If the resource is contained in another resource, it must not contain any narrative.
*   If a resource is contained in another resource, it must not have a meta.versionId or a meta.lastUpdated property.
*   If the resource is contained in another resource, it must be referred to from elsewhere in the resource.

_Example_

```
{
    "resourceType": "MedicationRequest",
    "identifier": [
        {
            "use": "usual",
            "system": "http://snomed.info/sct",
            "value": "313"
        },
        {
            "use": "usual",
            "system": "http://snomed.info/sct",
            "value": "314"
        }
    ],
    "status": "active",
    "statusReason": {
        "coding": [
            {
                "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-status-reason",
                "code": "a",
                "display": "a"
            },
            {
                "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-status-reason",
                "code": "b",
                "display": "b"
            }
        ]
    },
    "intent": "proposal",
    "category": [
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
                    "code": "c",
                    "display": "c"
                },
                {
                    "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
                    "code": "d",
                    "display": "d"
                }   
            ]
        },
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
                    "code": "e",
                    "display": "e"
                },
                {
                    "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
                    "code": "f",
                    "display": "f"
                }   
            ]
        }
    ],
    "priority": "routine",
    "doNotPerform": true,
    "reportedBoolean": true,
    
    
    "medicationReference": {
        "reference": "Medication/0itB00000004RQFIA2",
        "type": "Medication"
    },
    "subject": {
        "reference": "Patient/001B000001Pjme5IAB",
        "type": "Patient"
    },
    "encounter": {
        "reference": "Encounter/0kGB0000000CgPBMA0",
        "type": "Encounter"
    },
    "authoredOn": "2015-01-15",
    "requester": {
        "reference": "Practitioner/0cmB0000000H5s3IAC",
        "display": "Patrick Pump"
    },
    "performer": {
        "reference": "Practitioner/0cmB0000000H5s3IAC",
        "display": "Carla Espinosa"
    },
    "performerType": {
        "coding": [
            {
                "system": "http://snomed.info/sct",
                "code": "26369006",
                "display": "Public Health Nurse"
            }
        ]
    },
    "reasonCode": [
        {
            "coding": [
                {
                    "system": "http://snomed.info/sct",
                    "code": "g",
                    "display": "g"
                },
                {
                    "system": "http://snomed.info/sct",
                    "code": "h",
                    "display": "h"
                }
            ]
        },
        {
            "coding": [
                {
                    "system": "http://snomed.info/sct",
                    "code": "i",
                    "display": "i"
                },
                {
                    "system": "http://snomed.info/sct",
                    "code": "j",
                    "display": "j"
                }
            ]
        }
    ],
    "reasonReference": [
        {
            "reference": "Observation/0hIB0000000CqJNMA0",
            "display": "Observation"
        },
        {
            "reference": "Observation/0hIB0000000CqJNMA0",
            "display": "Observation"
        }
    ],
    "basedOn": [
        {
            "reference": "MedicationRequest/0kmB000000007VXIAY",
            "display": "MedicationRequest"
        },
        {
            "reference": "ServiceRequest/0jyB0000000CaRCIA0",
            "display": "ServiceRequest"
        }
    ],
    "groupIdentifier": {
        "use": "usual",
        "system": "urn:oid:1.2.36.146.595.217.0.1",
        "value": "20000105719990"
    },
    "courseOfTherapyType": {
        "coding": [
            {
                "system": "http://snomed.info/sct",
                "code": "acute",
                "display": "Short course (acute) therapy"
            },
            {
                "system": "http://snomed.info/sct",
                "code": "continuous",
                "display": "Continuous long term therapy"
            }
        ]
    },
    "dosageInstruction": [
        {
            "sequence": 1,
            "text": "one to two tablets every 4-6 hours as needed for rib pain",
            "additionalInstruction": [
                {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "417929005",
                            "display": "Times"
                        },
                        {
                            "system": "http://snomed.info/sct",
                            "code": "418914006",
                            "display": "Warning. May cause drowsiness. If affected, do not drive or operate machinery. Avoid alcoholic drink (qualifier value)."
                        }
                    ],
                    "text": "test text"
                },
                {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "311501008",
                            "display": "Half to one hour before food"
                        },
                        {
                            "system": "http://snomed.info/sct",
                            "code": "417980006",
                            "display": "Contains aspirin"
                        }
                    ],
                    "text": "test text"
                }
            ],
            "patientInstruction": "Take one to two tablets every four to six hours as needed for rib pain.",
            "timing": {
                "event": [
                    "2023-01-01T00:00:00.000Z"
                ],
                "repeat": {
                    "boundsRange": {
                        "low": {
                            "value": 1,
                            "unit": "minutes",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "minutes"
                        },
                        "high": {
                            "value": 4,
                            "unit": "hour",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "hour"
                        }
                    },
                    "count": 2,
                    "countMax": 4,
                    "duration": 5,
                    "durationMax": 10,
                    "durationUnit": "d",
                    "frequency": 1,
                    "frequencyMax": 2,
                    "period": 2,
                    "periodMax": 4,
                    "periodUnit": "h",
                    
                    "when": [
                        "C",
                        "CM"
                    ],
                    "offset": 10
                }
            },
            "asNeededBoolean": true,

            

            "site": {
                "coding": [
                    {
                        "system": "http://snomed.info/sct",
                        "code": "26643007",
                        "display": "Oral Route"
                    },
                    {
                        "system": "http://snomed.info/sct",
                        "code": "26643007",
                        "display": "Oral Route"
                    }
                ]
            },
            "route": {
                "coding": [
                    {
                        "system": "http://snomed.info/sct",
                        "code": "26643006",
                        "display": "Oral Route"
                    },
                    {
                        "system": "http://snomed.info/sct",
                        "code": "26643006",
                        "display": "Oral Route"
                    }
                ]
            },
            "method": {
                "coding": [
                    {
                        "system": "http://snomed.info/sct",
                        "code": "421521009",
                        "display": "Swallow - dosing instruction imperative (qualifier value)"
                    },
                    {
                        "system": "http://snomed.info/sct",
                        "code": "421521009",
                        "display": "Swallow - dosing instruction imperative (qualifier value)"
                    }
                ]
            },
            "doseAndRate": [
                {
                    "type": {
                        "coding": [
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                "code": "ordered",
                                "display": "Ordered"
                            },
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                "code": "ordered",
                                "display": "Ordered"
                            }
                        ]
                    },
                    "doseRange": {
                        "low": {
                            "value": 1,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        },
                        "high": {
                            "value": 2,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        }
                    },
                    "rateRange": {
                        "low": {
                            "value": 1,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        },
                        "high": {
                            "value": 2,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        }
                    }
                },
                {
                    "type": {
                        "coding": [
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                "code": "ordered",
                                "display": "Ordered"
                            },
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                "code": "ordered",
                                "display": "Ordered"
                            }
                        ]
                    },
                    "doseRange": {
                        "low": {
                            "value": 1,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        },
                        "high": {
                            "value": 2,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        }
                    },
                    "rateRange": {
                        "low": {
                            "value": 1,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        },
                        "high": {
                            "value": 2,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        }
                    }
                }
            ]
        },
        {
            "sequence": 1,
            "text": "one to two tablets every 4-6 hours as needed for rib pain",
            "additionalInstruction": [
                {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "417929005",
                            "display": "Times"
                        },
                        {
                            "system": "http://snomed.info/sct",
                            "code": "418914006",
                            "display": "Warning. May cause drowsiness. If affected, do not drive or operate machinery. Avoid alcoholic drink (qualifier value)."
                        }
                    ],
                    "text": "test text"
                },
                {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "311501008",
                            "display": "Half to one hour before food"
                        },
                        {
                            "system": "http://snomed.info/sct",
                            "code": "417980006",
                            "display": "Contains aspirin"
                        }
                    ],
                    "text": "test text"
                }
            ],
            "patientInstruction": "Take one to two tablets every four to six hours as needed for rib pain.",
            "timing": {
                "event": [
                    "2023-01-01T00:00:00.000Z"
                ],
                "repeat": {
                    "boundsRange": {
                        "low": {
                            "value": 1,
                            "unit": "minutes",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "minutes"
                        },
                        "high": {
                            "value": 4,
                            "unit": "hour",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "hour"
                        }
                    },
                    "count": 2,
                    "countMax": 4,
                    "duration": 5,
                    "durationMax": 10,
                    "durationUnit": "d",
                    "frequency": 1,
                    "frequencyMax": 2,
                    "period": 2,
                    "periodMax": 4,
                    "periodUnit": "h",
                    
                    "when": [
                        "C",
                        "CM"
                    ],
                    "offset": 10
                }
            },
            "asNeededBoolean": true,

            

            "site": {
                "coding": [
                    {
                        "system": "http://snomed.info/sct",
                        "code": "26643007",
                        "display": "Oral Route"
                    },
                    {
                        "system": "http://snomed.info/sct",
                        "code": "26643007",
                        "display": "Oral Route"
                    }
                ]
            },
            "route": {
                "coding": [
                    {
                        "system": "http://snomed.info/sct",
                        "code": "26643006",
                        "display": "Oral Route"
                    },
                    {
                        "system": "http://snomed.info/sct",
                        "code": "26643006",
                        "display": "Oral Route"
                    }
                ]
            },
            "method": {
                "coding": [
                    {
                        "system": "http://snomed.info/sct",
                        "code": "421521009",
                        "display": "Swallow - dosing instruction imperative (qualifier value)"
                    },
                    {
                        "system": "http://snomed.info/sct",
                        "code": "421521009",
                        "display": "Swallow - dosing instruction imperative (qualifier value)"
                    }
                ]
            },
            "doseAndRate": [
                {
                    "type": {
                        "coding": [
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                "code": "ordered",
                                "display": "Ordered"
                            },
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                "code": "ordered",
                                "display": "Ordered"
                            }
                        ]
                    },
                    "doseRange": {
                        "low": {
                            "value": 1,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        },
                        "high": {
                            "value": 2,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        }
                    },
                    "rateRange": {
                        "low": {
                            "value": 1,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        },
                        "high": {
                            "value": 2,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        }
                    }
                },
                {
                    "type": {
                        "coding": [
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                "code": "ordered",
                                "display": "Ordered"
                            },
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                "code": "ordered",
                                "display": "Ordered"
                            }
                        ]
                    },
                    "doseRange": {
                        "low": {
                            "value": 1,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        },
                        "high": {
                            "value": 2,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        }
                    },
                    "rateRange": {
                        "low": {
                            "value": 1,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        },
                        "high": {
                            "value": 2,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        }
                    }
                }
            ]
        }
        
    ],
    "dispenseRequest": {
        "initialFill": {
            "quantity": {
                "value": 30,
                "unit": "TAB",
                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                "code": "TAB"
            },
            "duration": {
                "value": 10,
                "unit": "days",
                "system": "http://unitsofmeasure.org",
                "code": "d"
            }
        },
        "dispenseInterval": {
            "value": 10,
            "unit": "days",
            "system": "http://unitsofmeasure.org",
            "code": "d"
        },
        "validityPeriod": {
            "start": "2020-01-15",
            "end": "2025-01-15"
        },
        "numberOfRepeatsAllowed": 0,
        "quantity": {
            "value": 30,
            "unit": "TAB",
            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
            "code": "TAB"
        },
        "expectedSupplyDuration": {
            "value": 10,
            "unit": "days",
            "system": "http://unitsofmeasure.org",
            "code": "d"
        },
        "performer": {
            "reference": "Organization/001B000001Pjme5IAB"
        }
    },
    "substitution": {
        "allowedBoolean": true,
        
        "reason": {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
                    "code": "KP",
                    "display": "formulary policy"
                }
            ]
        }
    },
    "priorPrescription": {
        "reference": "MedicationRequest/0kmB000000007VXIAY",
        "display": "MedicationRequest"
    }
}
```

#### Responses

*   **201** No match was found. Resource created.
    
    Headers:
    
    *   `Location` (string, required) Specifies the URL where the resource can be fetched in subsequent requests.  
        Example: `http://xxx/MedicationRequest/123`.
    
    Media type: `application/fhir+json`. Schema: `MedicationRequest (extended)`.
    
    Specifies a resource with a narrative, the extensions, and the contained resources.
    
    *   If the resource is contained in another resource, it must not contain nested resources.
    *   If the resource is contained in another resource, it must not contain any narrative.
    *   If a resource is contained in another resource, it must not have a meta.versionId or a meta.lastUpdated property.
    *   If the resource is contained in another resource, it must be referred to from elsewhere in the resource.
    
    Includes all fields of `MedicationRequest`.
    
    *   `id` (_string_, required) Specifies the Salesforce ID of the created object.  
        Pattern: ^\[A-Za-z0-9\\-\\.\]{1,64}$.
    
    _Example_
    
    ```
    {
        "resourceType": "MedicationRequest",
        "identifier": [
            {
                "use": "usual",
                "system": "http://snomed.info/sct",
                "value": "313"
            },
            {
                "use": "usual",
                "system": "http://snomed.info/sct",
                "value": "314"
            }
        ],
        "status": "active",
        "statusReason": {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-status-reason",
                    "code": "a",
                    "display": "a"
                },
                {
                    "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-status-reason",
                    "code": "b",
                    "display": "b"
                }
            ]
        },
        "intent": "proposal",
        "category": [
            {
                "coding": [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
                        "code": "c",
                        "display": "c"
                    },
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
                        "code": "d",
                        "display": "d"
                    }   
                ]
            },
            {
                "coding": [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
                        "code": "e",
                        "display": "e"
                    },
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
                        "code": "f",
                        "display": "f"
                    }   
                ]
            }
        ],
        "priority": "routine",
        "doNotPerform": true,
        "reportedBoolean": true,
        
        
        "medicationReference": {
            "reference": "Medication/0itB00000004RQFIA2",
            "type": "Medication"
        },
        "subject": {
            "reference": "Patient/001B000001Pjme5IAB",
            "type": "Patient"
        },
        "encounter": {
            "reference": "Encounter/0kGB0000000CgPBMA0",
            "type": "Encounter"
        },
        "authoredOn": "2015-01-15",
        "requester": {
            "reference": "Practitioner/0cmB0000000H5s3IAC",
            "display": "Patrick Pump"
        },
        "performer": {
            "reference": "Practitioner/0cmB0000000H5s3IAC",
            "display": "Carla Espinosa"
        },
        "performerType": {
            "coding": [
                {
                    "system": "http://snomed.info/sct",
                    "code": "26369006",
                    "display": "Public Health Nurse"
                }
            ]
        },
        "reasonCode": [
            {
                "coding": [
                    {
                        "system": "http://snomed.info/sct",
                        "code": "g",
                        "display": "g"
                    },
                    {
                        "system": "http://snomed.info/sct",
                        "code": "h",
                        "display": "h"
                    }
                ]
            },
            {
                "coding": [
                    {
                        "system": "http://snomed.info/sct",
                        "code": "i",
                        "display": "i"
                    },
                    {
                        "system": "http://snomed.info/sct",
                        "code": "j",
                        "display": "j"
                    }
                ]
            }
        ],
        "reasonReference": [
            {
                "reference": "Observation/0hIB0000000CqJNMA0",
                "display": "Observation"
            },
            {
                "reference": "Observation/0hIB0000000CqJNMA0",
                "display": "Observation"
            }
        ],
        "basedOn": [
            {
                "reference": "MedicationRequest/0kmB000000007VXIAY",
                "display": "MedicationRequest"
            },
            {
                "reference": "ServiceRequest/0jyB0000000CaRCIA0",
                "display": "ServiceRequest"
            }
        ],
        "groupIdentifier": {
            "use": "usual",
            "system": "urn:oid:1.2.36.146.595.217.0.1",
            "value": "20000105719990"
        },
        "courseOfTherapyType": {
            "coding": [
                {
                    "system": "http://snomed.info/sct",
                    "code": "acute",
                    "display": "Short course (acute) therapy"
                },
                {
                    "system": "http://snomed.info/sct",
                    "code": "continuous",
                    "display": "Continuous long term therapy"
                }
            ]
        },
        "dosageInstruction": [
            {
                "sequence": 1,
                "text": "one to two tablets every 4-6 hours as needed for rib pain",
                "additionalInstruction": [
                    {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "417929005",
                                "display": "Times"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "418914006",
                                "display": "Warning. May cause drowsiness. If affected do not drive or operate machinery. Avoid alcoholic drink (qualifier value)"
                            }
                        ],
                        "text": "test text"
                    },
                    {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "311501008",
                                "display": "Half to one hour before food"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "417980006",
                                "display": "Contains aspirin"
                            }
                        ],
                        "text": "test text"
                    }
                ],
                "patientInstruction": "Take one to two tablets every four to six hours as needed for rib pain",
                "timing": {
                    "event": [
                        "2023-01-01T00:00:00.000Z"
                    ],
                    "repeat": {
                        "boundsRange": {
                            "low": {
                                "value": 1,
                                "unit": "minutes",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "minutes"
                            },
                            "high": {
                                "value": 4,
                                "unit": "hour",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "hour"
                            }
                        },
                        "count": 2,
                        "countMax": 4,
                        "duration": 5,
                        "durationMax": 10,
                        "durationUnit": "d",
                        "frequency": 1,
                        "frequencyMax": 2,
                        "period": 2,
                        "periodMax": 4,
                        "periodUnit": "h",
                        
                        "when": [
                            "C",
                            "CM"
                        ],
                        "offset": 10
                    }
                },
                "asNeededBoolean": true,
    
                
    
                "site": {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "26643007",
                            "display": "Oral Route"
                        },
                        {
                            "system": "http://snomed.info/sct",
                            "code": "26643007",
                            "display": "Oral Route"
                        }
                    ]
                },
                "route": {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "26643006",
                            "display": "Oral Route"
                        },
                        {
                            "system": "http://snomed.info/sct",
                            "code": "26643006",
                            "display": "Oral Route"
                        }
                    ]
                },
                "method": {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "421521009",
                            "display": "Swallow - dosing instruction imperative (qualifier value)"
                        },
                        {
                            "system": "http://snomed.info/sct",
                            "code": "421521009",
                            "display": "Swallow - dosing instruction imperative (qualifier value)"
                        }
                    ]
                },
                "doseAndRate": [
                    {
                        "type": {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                    "code": "ordered",
                                    "display": "Ordered"
                                },
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                    "code": "ordered",
                                    "display": "Ordered"
                                }
                            ]
                        },
                        "doseRange": {
                            "low": {
                                "value": 1,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            },
                            "high": {
                                "value": 2,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            }
                        },
                        "rateRange": {
                            "low": {
                                "value": 1,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            },
                            "high": {
                                "value": 2,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            }
                        }
                    },
                    {
                        "type": {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                    "code": "ordered",
                                    "display": "Ordered"
                                },
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                    "code": "ordered",
                                    "display": "Ordered"
                                }
                            ]
                        },
                        "doseRange": {
                            "low": {
                                "value": 1,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            },
                            "high": {
                                "value": 2,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            }
                        },
                        "rateRange": {
                            "low": {
                                "value": 1,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            },
                            "high": {
                                "value": 2,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            }
                        }
                    }
                ]
            },
            {
                "sequence": 1,
                "text": "one to two tablets every 4-6 hours as needed for rib pain",
                "additionalInstruction": [
                    {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "417929005",
                                "display": "Times"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "418914006",
                                "display": "Warning. May cause drowsiness. If affected do not drive or operate machinery. Avoid alcoholic drink (qualifier value)"
                            }
                        ],
                        "text": "test text"
                    },
                    {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "311501008",
                                "display": "Half to one hour before food"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "417980006",
                                "display": "Contains aspirin"
                            }
                        ],
                        "text": "test text"
                    }
                ],
                "patientInstruction": "Take one to two tablets every four to six hours as needed for rib pain",
                "timing": {
                    "event": [
                        "2023-01-01T00:00:00.000Z"
                    ],
                    "repeat": {
                        "boundsRange": {
                            "low": {
                                "value": 1,
                                "unit": "minutes",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "minutes"
                            },
                            "high": {
                                "value": 4,
                                "unit": "hour",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "hour"
                            }
                        },
                        "count": 2,
                        "countMax": 4,
                        "duration": 5,
                        "durationMax": 10,
                        "durationUnit": "d",
                        "frequency": 1,
                        "frequencyMax": 2,
                        "period": 2,
                        "periodMax": 4,
                        "periodUnit": "h",
                        
                        "when": [
                            "C",
                            "CM"
                        ],
                        "offset": 10
                    }
                },
                "asNeededBoolean": true,
    
                
    
                "site": {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "26643007",
                            "display": "Oral Route"
                        },
                        {
                            "system": "http://snomed.info/sct",
                            "code": "26643007",
                            "display": "Oral Route"
                        }
                    ]
                },
                "route": {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "26643006",
                            "display": "Oral Route"
                        },
                        {
                            "system": "http://snomed.info/sct",
                            "code": "26643006",
                            "display": "Oral Route"
                        }
                    ]
                },
                "method": {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "421521009",
                            "display": "Swallow - dosing instruction imperative (qualifier value)"
                        },
                        {
                            "system": "http://snomed.info/sct",
                            "code": "421521009",
                            "display": "Swallow - dosing instruction imperative (qualifier value)"
                        }
                    ]
                },
                "doseAndRate": [
                    {
                        "type": {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                    "code": "ordered",
                                    "display": "Ordered"
                                },
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                    "code": "ordered",
                                    "display": "Ordered"
                                }
                            ]
                        },
                        "doseRange": {
                            "low": {
                                "value": 1,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            },
                            "high": {
                                "value": 2,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            }
                        },
                        "rateRange": {
                            "low": {
                                "value": 1,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            },
                            "high": {
                                "value": 2,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            }
                        }
                    },
                    {
                        "type": {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                    "code": "ordered",
                                    "display": "Ordered"
                                },
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                    "code": "ordered",
                                    "display": "Ordered"
                                }
                            ]
                        },
                        "doseRange": {
                            "low": {
                                "value": 1,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            },
                            "high": {
                                "value": 2,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            }
                        },
                        "rateRange": {
                            "low": {
                                "value": 1,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            },
                            "high": {
                                "value": 2,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            }
                        }
                    }
                ]
            }
            
        ],
        "dispenseRequest": {
            "initialFill": {
                "quantity": {
                    "value": 30,
                    "unit": "TAB",
                    "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                    "code": "TAB"
                },
                "duration": {
                    "value": 10,
                    "unit": "days",
                    "system": "http://unitsofmeasure.org",
                    "code": "d"
                }
            },
            "dispenseInterval": {
                "value": 10,
                "unit": "days",
                "system": "http://unitsofmeasure.org",
                "code": "d"
            },
            "validityPeriod": {
                "start": "2020-01-15",
                "end": "2025-01-15"
            },
            "numberOfRepeatsAllowed": 0,
            "quantity": {
                "value": 30,
                "unit": "TAB",
                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                "code": "TAB"
            },
            "expectedSupplyDuration": {
                "value": 10,
                "unit": "days",
                "system": "http://unitsofmeasure.org",
                "code": "d"
            },
            "performer": {
                "reference": "Organization/001B000001Pjme5IAB"
            }
        },
        "substitution": {
            "allowedBoolean": true,
            
            "reason": {
                "coding": [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
                        "code": "KP",
                        "display": "formulary policy"
                    }
                ]
            }
        },
        "priorPrescription": {
            "reference": "MedicationRequest/0kmB000000007VXIAY",
            "display": "MedicationRequest"
        },
        "id": "13535"
    }
    ```
    
*   **400** Resource either can’t be parsed or failed basic FHIR validation rules.
    
    Media type: `application/fhir+json`. Schema: `OperationOutcome`.
    
    _Example: same as GET /MedicationRequest 500 response._
    
*   **500** Something went wrong.
    
    Media type: `application/fhir+json`. Schema: `OperationOutcome`.
    
    _Example: same as GET /MedicationRequest 500 response._
    
*   **503** Error connecting Salesforce.
    
    Media type: `application/fhir+json`. Schema: `OperationOutcome`.
    
    _Example: same as GET /MedicationRequest 500 response._
    

### GET Get a medication request

`GET /MedicationRequest/{id}`

Retrieves the details for a particular object using the ID. This operation is performed using the read interaction from the FHIR resources.

#### Parameters

*   `id` (path, id, required)
*   `X-CORRELATION-ID` (header, string)

#### Responses

*   **200** The request was successful.
    
    Media type: `application/fhir+json`. Schema: `MedicationRequest`.
    
    Specifies a resource with a narrative, the extensions, and the contained resources.
    
    *   If the resource is contained in another resource, it must not contain nested resources.
    *   If the resource is contained in another resource, it must not contain any narrative.
    *   If a resource is contained in another resource, it must not have a meta.versionId or a meta.lastUpdated property.
    *   If the resource is contained in another resource, it must be referred to from elsewhere in the resource.
    
    _Example_
    
    ```
    {
        "resourceType": "MedicationRequest",
        "id": "0kmB000000007fNIAQ",
        "identifier": [
            {
                "use": "usual",
                "value": "499",
                "system": "http://snomed.info/sct"
            }
        ],
        "status": "active",
        "statusReason": {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-status-reason",
                    "code": "altchoice",
                    "display": "Try another treatment first"
                }
            ],
            "text": "MedicationRequest statusReason Bundle"
        },
        "intent": "proposal",
        "category": [
            {
                "coding": [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
                        "code": "inpatient",
                        "display": "Inpatient"
                    }
                ],
                "text": "MedicationRequest category Bundle"
            }
        ],
        "priority": "routine",
        "doNotPerform": true,
        "reportedBoolean": true,
        "medicationCodeableConcept": {
            "coding": [
                {
                    "system": "http://snomed.info/sct",
                    "code": "260385009",
                    "display": "Negative"
                },
                {
                    "system": "https://acme.lab/resultcodes",
                    "code": "NEG",
                    "display": "Negative"
                }
            ],
            "text": "Negative for Chlamydia Trachomatis rRNA"
        },
        "subject": {
            "reference": "Patient/001B000001Pjme5IAB",
            "type": "Patient"
        },
        "encounter": {
            "reference": "Encounter/0kGB0000000CgPBMA0",
            "type": "Encounter"
        },
        "authoredOn": "2015-01-15T00:00:00.000Z",
        "requester": {
            "reference": "Practitioner/0cmB0000000H5s3IAC",
            "type": "Practitioner"
        },
        "performer": {
            "reference": "Practitioner/0cmB0000000H5s3IAC",
            "type": "Practitioner"
        },
        "performerType": {
            "coding": [
                {
                    "system": "http://snomed.info/sct",
                    "code": "26369006",
                    "display": "Public Health Nurse"
                }
            ],
            "text": "MedicationRequest performerType Bundle"
        },
        "reasonCode": [
            {
                "coding": [
                    {
                        "system": "http://snomed.info/sct",
                        "code": "297217002",
                        "display": "Rib Pain (finding)"
                    }
                ],
                "text": "MedicationRequest Reason Code Bundle"
            }
        ],
        "reasonReference": [
            {
                "reference": "Observation/0hIB0000000CqJNMA0",
                "type": "Observation"
            }
        ],
        "basedOn": [
            {
                "reference": "MedicationRequest/0kmB000000007VXIAY",
                "type": "MedicationRequest"
            },
            {
                "reference": "ServiceRequest/0jyB0000000CaRCIA0",
                "type": "ServiceRequest"
            }
        ],
        "groupIdentifier": {
            "use": "usual",
            "value": "20000105719990",
            "system": "urn:oid:1.2.36.146.595.217.0.1"
        },
        "courseOfTherapyType": {
            "coding": [
                {
                    "code": "acute"
                }
            ]
        },
        "dosageInstruction": [
            {
                "sequence": 1,
                "text": "one to two tablets every 4-6 hours as needed for rib pain",
                "additionalInstruction": [
                    {
                        "text": "test text"
                    }
                ],
                "patientInstruction": "Take one to two tablets every four to six hours as needed for rib pain",
                "timing": {
                    "event": [
                        "2023-01-01T00:00:00.000Z"
                    ],
                    "repeat": {
                        "boundsRange": {
                            "low": {
                                "value": 1.0,
                                "unit": "minutes",
                                "code": "minutes"
                            },
                            "high": {
                                "value": 4.0,
                                "unit": "minutes",
                                "code": "minutes"
                            }
                        },
                        "count": 2,
                        "countMax": 4,
                        "duration": 5.0,
                        "durationMax": 10.0,
                        "durationUnit": "d",
                        "frequency": 1.0,
                        "frequencyMax": 2,
                        "period": 2.0,
                        "periodMax": 4.0,
                        "periodUnit": "h",
                        "when": [
                            "C"
                        ],
                        "offset": 10
                    }
                },
                "asNeededBoolean": true,
                "site": {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "26643007",
                            "display": "Oral Route"
                        }
                    ],
                    "text": "PatientMedication​Dosage​ site Bundle"
                },
                "route": {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "26643006",
                            "display": "Oral Route"
                        }
                    ],
                    "text": "PatientMedication​Dosage​ route Bundle"
                },
                "method": {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "421521009",
                            "display": "Swallow - dosing instruction imperative (qualifier value)"
                        }
                    ],
                    "text": "PatientMedication​Dosage​ method Bundle"
                },
                "doseAndRate": [
                    {
                        "type": {
                            "coding": [
                                {
                                    "code": "ordered"
                                }
                            ]
                        },
                        "doseRange": {
                            "low": {
                                "value": 1.0,
                                "unit": "TAB",
                                "code": "TAB"
                            },
                            "high": {
                                "value": 2.0,
                                "unit": "TAB",
                                "code": "TAB"
                            }
                        },
                        "rateRange": {
                            "low": {
                                "value": 1.0,
                                "unit": "TAB",
                                "code": "TAB"
                            },
                            "high": {
                                "value": 2.0,
                                "unit": "TAB",
                                "code": "TAB"
                            }
                        }
                    }
                ]
            }
        ],
        "dispenseRequest": {
            "initialFill": {
                "quantity": {
                    "value": 30.0,
                    "unit": "TAB",
                    "code": "TAB"
                },
                "duration": {
                    "value": 10.0,
                    "unit": "days",
                    "code": "d"
                }
            },
            "dispenseInterval": {
                "value": 10.0,
                "unit": "days",
                "code": "d"
            },
            "validityPeriod": {
                "start": "2020-01-15T00:00:00.000Z",
                "end": "2025-01-15T00:00:00.000Z"
            },
            "numberOfRepeatsAllowed": 0,
            "quantity": {
                "value": 30.0,
                "unit": "TAB",
                "code": "TAB"
            },
            "expectedSupplyDuration": {
                "value": 10.0,
                "unit": "days",
                "code": "d"
            },
            "performer": {
                "reference": "Organization/001B000001Pjme5IAB",
                "type": "Organization"
            }
        },
        "substitution": {
            "allowedCodeableConcept": {
                "coding": [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
                        "code": "FP",
                        "display": "formulary policy"
                    }
                ],
                "text": "MedicationRequest reason Bundle"
            },
            "reason": {
                "coding": [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
                        "code": "KP",
                        "display": "formulary policy"
                    }
                ],
                "text": "MedicationRequest reason Bundle"
            }
        },
        "priorPrescription": {
            "reference": "MedicationRequest/0kmB000000007VXIAY",
            "type": "MedicationRequest"
        }
    }
    ```
    
*   **404** Search ID not found.
    
    Media type: `application/fhir+json`. Schema: `OperationOutcome`.
    
    _Example: same as GET /MedicationRequest 500 response._
    
*   **500** Something went wrong.
    
    Media type: `application/fhir+json`. Schema: `OperationOutcome`.
    
    _Example: same as GET /MedicationRequest 500 response._
    
*   **503** Error connecting Salesforce.
    
    Media type: `application/fhir+json`. Schema: `OperationOutcome`.
    
    _Example: same as GET /MedicationRequest 500 response._
    

### PUT Update a medication request

`PUT /MedicationRequest/{id}`

Creates a new current version of an existing resource or creates an initial version if no resource already exists for the given ID. This operation is performed using the update interaction from the FHIR resources.

#### Parameters

*   `id` (path, id, required)
*   `X-CORRELATION-ID` (header, string)
*   `Accept` (header, string)  
    Allowed values: `application/fhir+json`.

#### Request body

Media type: `application/fhir+json`. Schema: `MedicationRequest`.

Specifies a resource with a narrative, the extensions, and the contained resources.

*   If the resource is contained in another resource, it must not contain nested resources.
*   If the resource is contained in another resource, it must not contain any narrative.
*   If a resource is contained in another resource, it must not have a meta.versionId or a meta.lastUpdated property.
*   If the resource is contained in another resource, it must be referred to from elsewhere in the resource.

_Example_

```
{
    "resourceType": "MedicationRequest",
		"id": "469203",
    "identifier": [
        {
            "use": "usual",
            "system": "http://snomed.info/sct",
            "value": "313"
        },
        {
            "use": "usual",
            "system": "http://snomed.info/sct",
            "value": "314"
        }
    ],
    "status": "active",
    "statusReason": {
        "coding": [
            {
                "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-status-reason",
                "code": "a",
                "display": "a"
            },
            {
                "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-status-reason",
                "code": "b",
                "display": "b"
            }
        ]
    },
    "intent": "proposal",
    "category": [
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
                    "code": "c",
                    "display": "c"
                },
                {
                    "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
                    "code": "d",
                    "display": "d"
                }   
            ]
        },
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
                    "code": "e",
                    "display": "e"
                },
                {
                    "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
                    "code": "f",
                    "display": "f"
                }   
            ]
        }
    ],
    "priority": "routine",
    "doNotPerform": true,
    "reportedBoolean": true,
    
    
    "medicationReference": {
        "reference": "Medication/0itB00000004RQFIA2",
        "type": "Medication"
    },
    "subject": {
        "reference": "Patient/001B000001Pjme5IAB",
        "type": "Patient"
    },
    "encounter": {
        "reference": "Encounter/0kGB0000000CgPBMA0",
        "type": "Encounter"
    },
    "authoredOn": "2015-01-15",
    "requester": {
        "reference": "Practitioner/0cmB0000000H5s3IAC",
        "display": "Patrick Pump"
    },
    "performer": {
        "reference": "Practitioner/0cmB0000000H5s3IAC",
        "display": "Carla Espinosa"
    },
    "performerType": {
        "coding": [
            {
                "system": "http://snomed.info/sct",
                "code": "26369006",
                "display": "Public Health Nurse"
            }
        ]
    },
    "reasonCode": [
        {
            "coding": [
                {
                    "system": "http://snomed.info/sct",
                    "code": "g",
                    "display": "g"
                },
                {
                    "system": "http://snomed.info/sct",
                    "code": "h",
                    "display": "h"
                }
            ]
        },
        {
            "coding": [
                {
                    "system": "http://snomed.info/sct",
                    "code": "i",
                    "display": "i"
                },
                {
                    "system": "http://snomed.info/sct",
                    "code": "j",
                    "display": "j"
                }
            ]
        }
    ],
    "reasonReference": [
        {
            "reference": "Observation/0hIB0000000CqJNMA0",
            "display": "Observation"
        },
        {
            "reference": "Observation/0hIB0000000CqJNMA0",
            "display": "Observation"
        }
    ],
    "basedOn": [
        {
            "reference": "MedicationRequest/0kmB000000007VXIAY",
            "display": "MedicationRequest"
        },
        {
            "reference": "ServiceRequest/0jyB0000000CaRCIA0",
            "display": "ServiceRequest"
        }
    ],
    "groupIdentifier": {
        "use": "usual",
        "system": "urn:oid:1.2.36.146.595.217.0.1",
        "value": "20000105719990"
    },
    "courseOfTherapyType": {
        "coding": [
            {
                "system": "http://snomed.info/sct",
                "code": "acute",
                "display": "Short course (acute) therapy"
            },
            {
                "system": "http://snomed.info/sct",
                "code": "continuous",
                "display": "Continuous long term therapy"
            }
        ]
    },
    "dosageInstruction": [
        {
            "sequence": 1,
            "text": "One to two tablets every 4-6 hours as needed for rib pain.",
            "additionalInstruction": [
                {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "417929005",
                            "display": "Times"
                        },
                        {
                            "system": "http://snomed.info/sct",
                            "code": "418914006",
                            "display": "Warning. May cause drowsiness. If affected do not drive or operate machinery. Avoid alcoholic drink (qualifier value)."
                        }
                    ],
                    "text": "test text"
                },
                {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "311501008",
                            "display": "Half to one hour before food"
                        },
                        {
                            "system": "http://snomed.info/sct",
                            "code": "417980006",
                            "display": "Contains aspirin"
                        }
                    ],
                    "text": "test text"
                }
            ],
            "patientInstruction": "Take one to two tablets every four to six hours as needed for rib pain.",
            "timing": {
                "event": [
                    "2023-01-01T00:00:00.000Z"
                ],
                "repeat": {
                    "boundsRange": {
                        "low": {
                            "value": 1,
                            "unit": "minutes",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "minutes"
                        },
                        "high": {
                            "value": 4,
                            "unit": "hour",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "hour"
                        }
                    },
                    "count": 2,
                    "countMax": 4,
                    "duration": 5,
                    "durationMax": 10,
                    "durationUnit": "d",
                    "frequency": 1,
                    "frequencyMax": 2,
                    "period": 2,
                    "periodMax": 4,
                    "periodUnit": "h",
                    
                    "when": [
                        "C",
                        "CM"
                    ],
                    "offset": 10
                }
            },
            "asNeededBoolean": true,

            

            "site": {
                "coding": [
                    {
                        "system": "http://snomed.info/sct",
                        "code": "26643007",
                        "display": "Oral Route"
                    },
                    {
                        "system": "http://snomed.info/sct",
                        "code": "26643007",
                        "display": "Oral Route"
                    }
                ]
            },
            "route": {
                "coding": [
                    {
                        "system": "http://snomed.info/sct",
                        "code": "26643006",
                        "display": "Oral Route"
                    },
                    {
                        "system": "http://snomed.info/sct",
                        "code": "26643006",
                        "display": "Oral Route"
                    }
                ]
            },
            "method": {
                "coding": [
                    {
                        "system": "http://snomed.info/sct",
                        "code": "421521009",
                        "display": "Swallow - dosing instruction imperative (qualifier value)"
                    },
                    {
                        "system": "http://snomed.info/sct",
                        "code": "421521009",
                        "display": "Swallow - dosing instruction imperative (qualifier value)"
                    }
                ]
            },
            "doseAndRate": [
                {
                    "type": {
                        "coding": [
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                "code": "ordered",
                                "display": "Ordered"
                            },
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                "code": "ordered",
                                "display": "Ordered"
                            }
                        ]
                    },
                    "doseRange": {
                        "low": {
                            "value": 1,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        },
                        "high": {
                            "value": 2,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        }
                    },
                    "rateRange": {
                        "low": {
                            "value": 1,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        },
                        "high": {
                            "value": 2,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        }
                    }
                },
                {
                    "type": {
                        "coding": [
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                "code": "ordered",
                                "display": "Ordered"
                            },
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                "code": "ordered",
                                "display": "Ordered"
                            }
                        ]
                    },
                    "doseRange": {
                        "low": {
                            "value": 1,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        },
                        "high": {
                            "value": 2,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        }
                    },
                    "rateRange": {
                        "low": {
                            "value": 1,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        },
                        "high": {
                            "value": 2,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        }
                    }
                }
            ]
        },
        {
            "sequence": 1,
            "text": "one to two tablets every 4-6 hours as needed for rib pain",
            "additionalInstruction": [
                {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "417929005",
                            "display": "Times"
                        },
                        {
                            "system": "http://snomed.info/sct",
                            "code": "418914006",
                            "display": "Warning. May cause drowsiness. If affected do not drive or operate machinery. Avoid alcoholic drink (qualifier value)."
                        }
                    ],
                    "text": "test text"
                },
                {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "311501008",
                            "display": "Half to one hour before food"
                        },
                        {
                            "system": "http://snomed.info/sct",
                            "code": "417980006",
                            "display": "Contains aspirin"
                        }
                    ],
                    "text": "test text"
                }
            ],
            "patientInstruction": "Take one to two tablets every four to six hours as needed for rib pain.",
            "timing": {
                "event": [
                    "2023-01-01T00:00:00.000Z"
                ],
                "repeat": {
                    "boundsRange": {
                        "low": {
                            "value": 1,
                            "unit": "minutes",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "minutes"
                        },
                        "high": {
                            "value": 4,
                            "unit": "hour",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "hour"
                        }
                    },
                    "count": 2,
                    "countMax": 4,
                    "duration": 5,
                    "durationMax": 10,
                    "durationUnit": "d",
                    "frequency": 1,
                    "frequencyMax": 2,
                    "period": 2,
                    "periodMax": 4,
                    "periodUnit": "h",
                    
                    "when": [
                        "C",
                        "CM"
                    ],
                    "offset": 10
                }
            },
            "asNeededBoolean": true,

            

            "site": {
                "coding": [
                    {
                        "system": "http://snomed.info/sct",
                        "code": "26643007",
                        "display": "Oral Route"
                    },
                    {
                        "system": "http://snomed.info/sct",
                        "code": "26643007",
                        "display": "Oral Route"
                    }
                ]
            },
            "route": {
                "coding": [
                    {
                        "system": "http://snomed.info/sct",
                        "code": "26643006",
                        "display": "Oral Route"
                    },
                    {
                        "system": "http://snomed.info/sct",
                        "code": "26643006",
                        "display": "Oral Route"
                    }
                ]
            },
            "method": {
                "coding": [
                    {
                        "system": "http://snomed.info/sct",
                        "code": "421521009",
                        "display": "Swallow - dosing instruction imperative (qualifier value)"
                    },
                    {
                        "system": "http://snomed.info/sct",
                        "code": "421521009",
                        "display": "Swallow - dosing instruction imperative (qualifier value)"
                    }
                ]
            },
            "doseAndRate": [
                {
                    "type": {
                        "coding": [
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                "code": "ordered",
                                "display": "Ordered"
                            },
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                "code": "ordered",
                                "display": "Ordered"
                            }
                        ]
                    },
                    "doseRange": {
                        "low": {
                            "value": 1,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        },
                        "high": {
                            "value": 2,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        }
                    },
                    "rateRange": {
                        "low": {
                            "value": 1,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        },
                        "high": {
                            "value": 2,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        }
                    }
                },
                {
                    "type": {
                        "coding": [
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                "code": "ordered",
                                "display": "Ordered"
                            },
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                "code": "ordered",
                                "display": "Ordered"
                            }
                        ]
                    },
                    "doseRange": {
                        "low": {
                            "value": 1,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        },
                        "high": {
                            "value": 2,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        }
                    },
                    "rateRange": {
                        "low": {
                            "value": 1,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        },
                        "high": {
                            "value": 2,
                            "unit": "TAB",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "TAB"
                        }
                    }
                }
            ]
        }
        
    ],
    "dispenseRequest": {
        "initialFill": {
            "quantity": {
                "value": 30,
                "unit": "TAB",
                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                "code": "TAB"
            },
            "duration": {
                "value": 10,
                "unit": "days",
                "system": "http://unitsofmeasure.org",
                "code": "d"
            }
        },
        "dispenseInterval": {
            "value": 10,
            "unit": "days",
            "system": "http://unitsofmeasure.org",
            "code": "d"
        },
        "validityPeriod": {
            "start": "2020-01-15",
            "end": "2025-01-15"
        },
        "numberOfRepeatsAllowed": 0,
        "quantity": {
            "value": 30,
            "unit": "TAB",
            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
            "code": "TAB"
        },
        "expectedSupplyDuration": {
            "value": 10,
            "unit": "days",
            "system": "http://unitsofmeasure.org",
            "code": "d"
        },
        "performer": {
            "reference": "Organization/001B000001Pjme5IAB"
        }
    },
    "substitution": {
        "allowedBoolean": true,
        
        "reason": {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
                    "code": "KP",
                    "display": "formulary policy"
                }
            ]
        }
    },
    "priorPrescription": {
        "reference": "MedicationRequest/0kmB000000007VXIAY",
        "display": "MedicationRequest"
    }
}
```

#### Responses

*   **200** Updated the resource.
    
    Headers:
    
    *   `Location` (string, required) Specifies the URL where the resource can be fetched in subsequent requests.  
        Example: `http://xxx/MedicationRequest/123`.
    
    Media type: `application/fhir+json`. Schema: `MedicationRequest (extended)`.
    
    Specifies a resource with a narrative, the extensions, and the contained resources.
    
    *   If the resource is contained in another resource, it must not contain nested resources.
    *   If the resource is contained in another resource, it must not contain any narrative.
    *   If a resource is contained in another resource, it must not have a meta.versionId or a meta.lastUpdated property.
    *   If the resource is contained in another resource, it must be referred to from elsewhere in the resource.
    
    Includes all fields of `MedicationRequest`.
    
    *   `id` (_string_, required) Specifies the Salesforce ID of the updated or created object.  
        Pattern: ^\[A-Za-z0-9\\-\\.\]{1,64}$.
    
    _Example_
    
    ```
    {
        "resourceType": "MedicationRequest",
    		"id": "469203",
        "identifier": [
            {
                "use": "usual",
                "system": "http://snomed.info/sct",
                "value": "313"
            },
            {
                "use": "usual",
                "system": "http://snomed.info/sct",
                "value": "314"
            }
        ],
        "status": "active",
        "statusReason": {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-status-reason",
                    "code": "a",
                    "display": "a"
                },
                {
                    "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-status-reason",
                    "code": "b",
                    "display": "b"
                }
            ]
        },
        "intent": "proposal",
        "category": [
            {
                "coding": [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
                        "code": "c",
                        "display": "c"
                    },
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
                        "code": "d",
                        "display": "d"
                    }   
                ]
            },
            {
                "coding": [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
                        "code": "e",
                        "display": "e"
                    },
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
                        "code": "f",
                        "display": "f"
                    }   
                ]
            }
        ],
        "priority": "routine",
        "doNotPerform": true,
        "reportedBoolean": true,
        
        
        "medicationReference": {
            "reference": "Medication/0itB00000004RQFIA2",
            "type": "Medication"
        },
        "subject": {
            "reference": "Patient/001B000001Pjme5IAB",
            "type": "Patient"
        },
        "encounter": {
            "reference": "Encounter/0kGB0000000CgPBMA0",
            "type": "Encounter"
        },
        "authoredOn": "2015-01-15",
        "requester": {
            "reference": "Practitioner/0cmB0000000H5s3IAC",
            "display": "Patrick Pump"
        },
        "performer": {
            "reference": "Practitioner/0cmB0000000H5s3IAC",
            "display": "Carla Espinosa"
        },
        "performerType": {
            "coding": [
                {
                    "system": "http://snomed.info/sct",
                    "code": "26369006",
                    "display": "Public Health Nurse"
                }
            ]
        },
        "reasonCode": [
            {
                "coding": [
                    {
                        "system": "http://snomed.info/sct",
                        "code": "g",
                        "display": "g"
                    },
                    {
                        "system": "http://snomed.info/sct",
                        "code": "h",
                        "display": "h"
                    }
                ]
            },
            {
                "coding": [
                    {
                        "system": "http://snomed.info/sct",
                        "code": "i",
                        "display": "i"
                    },
                    {
                        "system": "http://snomed.info/sct",
                        "code": "j",
                        "display": "j"
                    }
                ]
            }
        ],
        "reasonReference": [
            {
                "reference": "Observation/0hIB0000000CqJNMA0",
                "display": "Observation"
            },
            {
                "reference": "Observation/0hIB0000000CqJNMA0",
                "display": "Observation"
            }
        ],
        "basedOn": [
            {
                "reference": "MedicationRequest/0kmB000000007VXIAY",
                "display": "MedicationRequest"
            },
            {
                "reference": "ServiceRequest/0jyB0000000CaRCIA0",
                "display": "ServiceRequest"
            }
        ],
        "groupIdentifier": {
            "use": "usual",
            "system": "urn:oid:1.2.36.146.595.217.0.1",
            "value": "20000105719990"
        },
        "courseOfTherapyType": {
            "coding": [
                {
                    "system": "http://snomed.info/sct",
                    "code": "acute",
                    "display": "Short course (acute) therapy"
                },
                {
                    "system": "http://snomed.info/sct",
                    "code": "continuous",
                    "display": "Continuous long term therapy"
                }
            ]
        },
        "dosageInstruction": [
            {
                "sequence": 1,
                "text": "one to two tablets every 4-6 hours as needed for rib pain",
                "additionalInstruction": [
                    {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "417929005",
                                "display": "Times"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "418914006",
                                "display": "Warning. May cause drowsiness. If affected do not drive or operate machinery. Avoid alcoholic drink (qualifier value)"
                            }
                        ],
                        "text": "test text"
                    },
                    {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "311501008",
                                "display": "Half to one hour before food"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "417980006",
                                "display": "Contains aspirin"
                            }
                        ],
                        "text": "test text"
                    }
                ],
                "patientInstruction": "Take one to two tablets every four to six hours as needed for rib pain",
                "timing": {
                    "event": [
                        "2023-01-01T00:00:00.000Z"
                    ],
                    "repeat": {
                        "boundsRange": {
                            "low": {
                                "value": 1,
                                "unit": "minutes",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "minutes"
                            },
                            "high": {
                                "value": 4,
                                "unit": "hour",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "hour"
                            }
                        },
                        "count": 2,
                        "countMax": 4,
                        "duration": 5,
                        "durationMax": 10,
                        "durationUnit": "d",
                        "frequency": 1,
                        "frequencyMax": 2,
                        "period": 2,
                        "periodMax": 4,
                        "periodUnit": "h",
                        
                        "when": [
                            "C",
                            "CM"
                        ],
                        "offset": 10
                    }
                },
                "asNeededBoolean": true,
    
                
    
                "site": {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "26643007",
                            "display": "Oral Route"
                        },
                        {
                            "system": "http://snomed.info/sct",
                            "code": "26643007",
                            "display": "Oral Route"
                        }
                    ]
                },
                "route": {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "26643006",
                            "display": "Oral Route"
                        },
                        {
                            "system": "http://snomed.info/sct",
                            "code": "26643006",
                            "display": "Oral Route"
                        }
                    ]
                },
                "method": {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "421521009",
                            "display": "Swallow - dosing instruction imperative (qualifier value)"
                        },
                        {
                            "system": "http://snomed.info/sct",
                            "code": "421521009",
                            "display": "Swallow - dosing instruction imperative (qualifier value)"
                        }
                    ]
                },
                "doseAndRate": [
                    {
                        "type": {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                    "code": "ordered",
                                    "display": "Ordered"
                                },
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                    "code": "ordered",
                                    "display": "Ordered"
                                }
                            ]
                        },
                        "doseRange": {
                            "low": {
                                "value": 1,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            },
                            "high": {
                                "value": 2,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            }
                        },
                        "rateRange": {
                            "low": {
                                "value": 1,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            },
                            "high": {
                                "value": 2,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            }
                        }
                    },
                    {
                        "type": {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                    "code": "ordered",
                                    "display": "Ordered"
                                },
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                    "code": "ordered",
                                    "display": "Ordered"
                                }
                            ]
                        },
                        "doseRange": {
                            "low": {
                                "value": 1,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            },
                            "high": {
                                "value": 2,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            }
                        },
                        "rateRange": {
                            "low": {
                                "value": 1,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            },
                            "high": {
                                "value": 2,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            }
                        }
                    }
                ]
            },
            {
                "sequence": 1,
                "text": "one to two tablets every 4-6 hours as needed for rib pain",
                "additionalInstruction": [
                    {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "417929005",
                                "display": "Times"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "418914006",
                                "display": "Warning. May cause drowsiness. If affected do not drive or operate machinery. Avoid alcoholic drink (qualifier value)"
                            }
                        ],
                        "text": "test text"
                    },
                    {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "311501008",
                                "display": "Half to one hour before food"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "417980006",
                                "display": "Contains aspirin"
                            }
                        ],
                        "text": "test text"
                    }
                ],
                "patientInstruction": "Take one to two tablets every four to six hours as needed for rib pain",
                "timing": {
                    "event": [
                        "2023-01-01T00:00:00.000Z"
                    ],
                    "repeat": {
                        "boundsRange": {
                            "low": {
                                "value": 1,
                                "unit": "minutes",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "minutes"
                            },
                            "high": {
                                "value": 4,
                                "unit": "hour",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "hour"
                            }
                        },
                        "count": 2,
                        "countMax": 4,
                        "duration": 5,
                        "durationMax": 10,
                        "durationUnit": "d",
                        "frequency": 1,
                        "frequencyMax": 2,
                        "period": 2,
                        "periodMax": 4,
                        "periodUnit": "h",
                        
                        "when": [
                            "C",
                            "CM"
                        ],
                        "offset": 10
                    }
                },
                "asNeededBoolean": true,
    
                
    
                "site": {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "26643007",
                            "display": "Oral Route"
                        },
                        {
                            "system": "http://snomed.info/sct",
                            "code": "26643007",
                            "display": "Oral Route"
                        }
                    ]
                },
                "route": {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "26643006",
                            "display": "Oral Route"
                        },
                        {
                            "system": "http://snomed.info/sct",
                            "code": "26643006",
                            "display": "Oral Route"
                        }
                    ]
                },
                "method": {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "421521009",
                            "display": "Swallow - dosing instruction imperative (qualifier value)"
                        },
                        {
                            "system": "http://snomed.info/sct",
                            "code": "421521009",
                            "display": "Swallow - dosing instruction imperative (qualifier value)"
                        }
                    ]
                },
                "doseAndRate": [
                    {
                        "type": {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                    "code": "ordered",
                                    "display": "Ordered"
                                },
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                    "code": "ordered",
                                    "display": "Ordered"
                                }
                            ]
                        },
                        "doseRange": {
                            "low": {
                                "value": 1,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            },
                            "high": {
                                "value": 2,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            }
                        },
                        "rateRange": {
                            "low": {
                                "value": 1,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            },
                            "high": {
                                "value": 2,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            }
                        }
                    },
                    {
                        "type": {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                    "code": "ordered",
                                    "display": "Ordered"
                                },
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                    "code": "ordered",
                                    "display": "Ordered"
                                }
                            ]
                        },
                        "doseRange": {
                            "low": {
                                "value": 1,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            },
                            "high": {
                                "value": 2,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            }
                        },
                        "rateRange": {
                            "low": {
                                "value": 1,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            },
                            "high": {
                                "value": 2,
                                "unit": "TAB",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "TAB"
                            }
                        }
                    }
                ]
            }
            
        ],
        "dispenseRequest": {
            "initialFill": {
                "quantity": {
                    "value": 30,
                    "unit": "TAB",
                    "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                    "code": "TAB"
                },
                "duration": {
                    "value": 10,
                    "unit": "days",
                    "system": "http://unitsofmeasure.org",
                    "code": "d"
                }
            },
            "dispenseInterval": {
                "value": 10,
                "unit": "days",
                "system": "http://unitsofmeasure.org",
                "code": "d"
            },
            "validityPeriod": {
                "start": "2020-01-15",
                "end": "2025-01-15"
            },
            "numberOfRepeatsAllowed": 0,
            "quantity": {
                "value": 30,
                "unit": "TAB",
                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                "code": "TAB"
            },
            "expectedSupplyDuration": {
                "value": 10,
                "unit": "days",
                "system": "http://unitsofmeasure.org",
                "code": "d"
            },
            "performer": {
                "reference": "Organization/001B000001Pjme5IAB"
            }
        },
        "substitution": {
            "allowedBoolean": true,
            
            "reason": {
                "coding": [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
                        "code": "KP",
                        "display": "formulary policy"
                    }
                ]
            }
        },
        "priorPrescription": {
            "reference": "MedicationRequest/0kmB000000007VXIAY",
            "display": "MedicationRequest"
        }
    }
    ```
    
*   **201** Created.
    
    Headers:
    
    *   `Location` (string, required) Specifies the URL where the resource can be fetched in subsequent requests.  
        Example: `http://xxx/MedicationRequest/123`.
    
    Media type: `application/fhir+json`. Schema: `MedicationRequest (extended)`.
    
    Specifies a resource with a narrative, the extensions, and the contained resources.
    
    *   If the resource is contained in another resource, it must not contain nested resources.
    *   If the resource is contained in another resource, it must not contain any narrative.
    *   If a resource is contained in another resource, it must not have a meta.versionId or a meta.lastUpdated property.
    *   If the resource is contained in another resource, it must be referred to from elsewhere in the resource.
    
    Includes all fields of `MedicationRequest`.
    
    *   `id` (_string_, required) Specifies the Salesforce ID of the updated or created object.  
        Pattern: ^\[A-Za-z0-9\\-\\.\]{1,64}$.
    
    _Example: same as PUT /MedicationRequest/{id} 200 response._
    
*   **400** Resource either can’t be parsed or failed basic FHIR validation rules.
    
    Media type: `application/fhir+json`. Schema: `OperationOutcome`.
    
    _Example: same as GET /MedicationRequest 500 response._
    
*   **500** Something went wrong.
    
    Media type: `application/fhir+json`. Schema: `OperationOutcome`.
    
    _Example: same as GET /MedicationRequest 500 response._
    
*   **503** Error connecting Salesforce.
    
    Media type: `application/fhir+json`. Schema: `OperationOutcome`.
    
    _Example: same as GET /MedicationRequest 500 response._
    

### GET Get service requests

`GET /ServiceRequest`

Retrieves a set of resources by using filters.

#### Parameters

*   `code` (query, string) What is being requested/ordered. It must be used along with 'patient' query parameter. Eg:- GET \[base\]/ServiceRequest?patient=\[id\]&code={system|}\[code\]
*   `patient` (query, string, required) Search by subject - a patient
*   `X-CORRELATION-ID` (header, string)
*   `Accept` (header, string)  
    Allowed values: `application/fhir+json`.

#### Responses

*   **200**
    
    Media type: `application/fhir+json`. Schema: `ServiceRequestBundle (extended)`.
    
    Includes all fields of `ServiceRequestBundle`.
    
    *   `entry` (_array of any_)
        
        Entry in the bundle must have a resource or information.
        
        *   Rule: must be a resource unless there's a request or response.
        *   Rule: fullUrl property can't be a version-specific reference. For bundles of 'document' and 'message' type, the first resource is special and must be Composition or MessageHeader properties respectively. For all bundles, the meaning of the order of entries depends on the bundle type.
        
        Each item:
        
        Entry in the bundle must have a resource or information.
        
        *   Rule: must be a resource unless there's a request or response.
        *   Rule: fullUrl property can't be a version specific reference. For bundles of 'document' and 'message' type, the first resource is special and must be the Composition or MessageHeader properties respectively. For all bundles, the meaning of the order of entries depends on the bundle type.
        
    
    _Example_
    
    ```
    {
        "resourceType": "Bundle",
        "id": "e7c317df-cb68-49d5-b06b-528f80a8f8a3",
        "meta": {
            "lastUpdated": "2023-03-13T11:04:25.892+05:30"
        },
        "type": "searchset",
        "total": 15,
        "link": [
            {
                "relation": "self",
                "url": "https://localhost:8092/clinical-workflow/fhir-r4/v1/ServiceRequest?patient=001B000001PjmeHIAR&code=http://snomed.info/sct%7C36733600Abc"
            }
        ],
        "entry": [
            {
                "fullUrl": "https://localhost:8092/clinical-workflow/fhir-r4/v1/ServiceRequest/0jyB0000000000aIAA",
                "search": {
                    "mode": "match"
                },
                "resource": {
                    "resourceType": "ServiceRequest",
                    "id": "0jyB0000000000aIAA",
                    "identifier": [
                        {
                            "use": "official",
                            "system": "http://hl7.org/fhir/sid/us-npi",
                            "value": "01"
                        },
                        {
                            "use": "usual",
                            "system": "http://hl7.org/fhir/sid/us-npi",
                            "value": "02"
                        }
                    ],
                    "basedOn": [
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0"
                        },
                        {
                            "reference": "MedicationRequest/0kmB000000007WaIAI"
                        }
                    ],
                    "replaces": [
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0"
                        }
                    ],
                    "requisition": {
                        "use": "official",
                        "system": "http://hl7.org/fhir/sid/us-npi",
                        "value": "22190025825Abc"
                    },
                    "status": "active",
                    "intent": "plan",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "2837473heur",
                                    "display": "Category1"
                                },
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "37482374jehrfe",
                                    "display": "Category2"
                                }
                            ],
                            "text": "Service Request Category Bundle"
                        }
                    ],
                    "priority": "urgent",
                    "doNotPerform": false,
                    "code": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "36733600Abc",
                                "display": "Request1"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "439434nufg",
                                "display": "Request2"
                            }
                        ],
                        "text": "Service Request Code Bundle"
                    },
                    "subject": {
                        "reference": "Patient/001B000001PjmeHIAR"
                    },
                    "encounter": {
                        "reference": "Encounter/0kGB0000000CgPkMAK"
                    },
                    "occurrenceDateTime": "2017-01-01T00:00:00.000Z",
                    "asNeededBoolean": true,
                    "authoredOn": "2017-01-01T00:00:00.000Z",
                    "performerType": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "3673360huwd",
                                "display": "Surgeon"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "3673360028hd83hdb",
                                "display": "Cardiologist"
                            }
                        ],
                        "text": "Service Request Performer Type Bundle"
                    },
                    "performer": [
                        {
                            "reference": "Practitioner/0cmB0000000H5wGIAS"
                        }
                    ],
                    "locationCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                    "code": "building1",
                                    "display": "OR1"
                                },
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                    "code": "building2",
                                    "display": "OR2"
                                }
                            ],
                            "text": "Service Request Location Code Type Bundle"
                        }
                    ],
                    "locationReference": [
                        {
                            "reference": "Location/0klB00000004HEmIAM"
                        }
                    ],
                    "reasonCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "34068001ab23e",
                                    "display": "Glyco"
                                }
                            ],
                            "text": "Service Request Reason Code Type Bundle"
                        }
                    ],
                    "reasonReference": [
                        {
                            "reference": "DiagnosticReport/0lQB00000004C98MAE"
                        },
                        {
                            "reference": "Observation/0hIB0000000CqJNMA0"
                        }
                    ],
                    "bodySite": [
                        {
                            "coding": [
                                {
                                    "code": "34068yet53",
                                    "system": "http://snomed.info/sct",
                                    "display": "BodySiteExample"
                                }
                            ],
                            "text": "Service Request Body Site Type Bundle"
                        }
                    ],
                    "patientInstruction": "Instruction Example",
                    "quantityRange": {
                        "low": {
                            "value": 32.58,
                            "unit": "ml",
                            "code": "ml"
                        }
                    }
                }
            },
            {
                "fullUrl": "https://localhost:8092/clinical-workflow/fhir-r4/v1/ServiceRequest/0jyB0000000001TIAQ",
                "search": {
                    "mode": "match"
                },
                "resource": {
                    "resourceType": "ServiceRequest",
                    "id": "0jyB0000000001TIAQ",
                    "identifier": [
                        {
                            "use": "official",
                            "system": "http://hl7.org/fhir/sid/us-npi",
                            "value": "51"
                        },
                        {
                            "use": "usual",
                            "system": "http://hl7.org/fhir/sid/us-npi",
                            "value": "52"
                        }
                    ],
                    "basedOn": [
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0"
                        },
                        {
                            "reference": "MedicationRequest/0kmB000000007WaIAI"
                        }
                    ],
                    "replaces": [
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0"
                        }
                    ],
                    "requisition": {
                        "use": "official",
                        "system": "http://hl7.org/fhir/sid/us-npi",
                        "value": "22190025825Abc"
                    },
                    "status": "active",
                    "intent": "plan",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "2837473heur",
                                    "display": "Category1"
                                },
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "37482374jehrfe",
                                    "display": "Category2"
                                }
                            ],
                            "text": "Service Request Category Bundle"
                        }
                    ],
                    "priority": "urgent",
                    "doNotPerform": false,
                    "code": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "36733600Abc",
                                "display": "Request1"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "439434nufg",
                                "display": "Request2"
                            }
                        ],
                        "text": "Service Request Code Bundle"
                    },
                    "subject": {
                        "reference": "Patient/001B000001PjmeHIAR"
                    },
                    "encounter": {
                        "reference": "Encounter/0kGB0000000CgPkMAK"
                    },
                    "occurrenceDateTime": "2017-01-01T00:00:00.000Z",
                    "asNeededBoolean": true,
                    "authoredOn": "2017-01-01T00:00:00.000Z",
                    "performerType": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "3673360huwd",
                                "display": "Surgeon"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "3673360028hd83hdb",
                                "display": "Cardiologist"
                            }
                        ],
                        "text": "Service Request Performer Type Bundle"
                    },
                    "performer": [
                        {
                            "reference": "Practitioner/0cmB0000000H5wGIAS"
                        }
                    ],
                    "locationCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                    "code": "building1",
                                    "display": "OR1"
                                },
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                    "code": "building2",
                                    "display": "OR2"
                                }
                            ],
                            "text": "Service Request Location Code Type Bundle"
                        }
                    ],
                    "locationReference": [
                        {
                            "reference": "Location/0klB00000004HEmIAM"
                        }
                    ],
                    "reasonCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "34068001ab23e",
                                    "display": "Glyco"
                                }
                            ],
                            "text": "Service Request Reason Code Type Bundle"
                        }
                    ],
                    "reasonReference": [
                        {
                            "reference": "DiagnosticReport/0lQB00000004C98MAE"
                        },
                        {
                            "reference": "Observation/0hIB0000000CqJNMA0"
                        }
                    ],
                    "bodySite": [
                        {
                            "coding": [
                                {
                                    "code": "34068yet53",
                                    "system": "http://snomed.info/sct",
                                    "display": "BodySiteExample"
                                }
                            ],
                            "text": "Service Request Body Site Type Bundle"
                        }
                    ],
                    "patientInstruction": "Instruction Examplee",
                    "quantityRange": {
                        "low": {
                            "value": 32.58,
                            "unit": "ml",
                            "code": "ml"
                        }
                    }
                }
            },
            {
                "fullUrl": "https://localhost:8092/clinical-workflow/fhir-r4/v1/ServiceRequest/0jyB0000000000kIAA",
                "search": {
                    "mode": "match"
                },
                "resource": {
                    "resourceType": "ServiceRequest",
                    "id": "0jyB0000000000kIAA",
                    "identifier": [
                        {
                            "use": "official",
                            "system": "http://hl7.org/fhir/sid/us-npi",
                            "value": "05"
                        },
                        {
                            "use": "usual",
                            "system": "http://hl7.org/fhir/sid/us-npi",
                            "value": "06"
                        }
                    ],
                    "basedOn": [
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0"
                        },
                        {
                            "reference": "MedicationRequest/0kmB000000007WaIAI"
                        }
                    ],
                    "replaces": [
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0"
                        }
                    ],
                    "requisition": {
                        "use": "official",
                        "system": "http://hl7.org/fhir/sid/us-npi",
                        "value": "22190025825Abc"
                    },
                    "status": "active",
                    "intent": "plan",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "2837473heur",
                                    "display": "Category1"
                                },
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "37482374jehrfe",
                                    "display": "Category2"
                                }
                            ],
                            "text": "Service Request Category Bundle"
                        }
                    ],
                    "priority": "urgent",
                    "doNotPerform": false,
                    "code": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "36733600Abc",
                                "display": "Request1"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "439434nufg",
                                "display": "Request2"
                            }
                        ],
                        "text": "Service Request Code Bundle"
                    },
                    "subject": {
                        "reference": "Patient/001B000001PjmeHIAR"
                    },
                    "encounter": {
                        "reference": "Encounter/0kGB0000000CgPkMAK"
                    },
                    "occurrenceDateTime": "2017-01-01T00:00:00.000Z",
                    "asNeededBoolean": true,
                    "authoredOn": "2017-01-01T00:00:00.000Z",
                    "performerType": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "3673360huwd",
                                "display": "Surgeon"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "3673360028hd83hdb",
                                "display": "Cardiologist"
                            }
                        ],
                        "text": "Service Request Performer Type Bundle"
                    },
                    "performer": [
                        {
                            "reference": "Practitioner/0cmB0000000H5wGIAS"
                        }
                    ],
                    "locationCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                    "code": "building1",
                                    "display": "OR1"
                                },
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                    "code": "building2",
                                    "display": "OR2"
                                }
                            ],
                            "text": "Service Request Location Code Type Bundle"
                        }
                    ],
                    "locationReference": [
                        {
                            "reference": "Location/0klB00000004HEmIAM"
                        }
                    ],
                    "reasonCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "34068001ab23e",
                                    "display": "Glyco"
                                }
                            ],
                            "text": "Service Request Reason Code Type Bundle"
                        }
                    ],
                    "reasonReference": [
                        {
                            "reference": "DiagnosticReport/0lQB00000004C98MAE"
                        },
                        {
                            "reference": "Observation/0hIB0000000CqJNMA0"
                        }
                    ],
                    "bodySite": [
                        {
                            "coding": [
                                {
                                    "code": "34068yet53",
                                    "system": "http://snomed.info/sct",
                                    "display": "BodySiteExample"
                                }
                            ],
                            "text": "Service Request Body Site Type Bundle"
                        }
                    ],
                    "patientInstruction": "Instruction Example",
                    "quantityRange": {
                        "low": {
                            "value": 32.58,
                            "unit": "ml",
                            "code": "ml"
                        }
                    }
                }
            },
            {
                "fullUrl": "https://localhost:8092/clinical-workflow/fhir-r4/v1/ServiceRequest/0jyB0000000001OIAQ",
                "search": {
                    "mode": "match"
                },
                "resource": {
                    "resourceType": "ServiceRequest",
                    "id": "0jyB0000000001OIAQ",
                    "identifier": [
                        {
                            "use": "official",
                            "value": "306"
                        },
                        {
                            "use": "usual",
                            "value": "308"
                        }
                    ],
                    "basedOn": [
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0"
                        },
                        {
                            "reference": "MedicationRequest/0kmB000000007WaIAI"
                        }
                    ],
                    "replaces": [
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0"
                        }
                    ],
                    "requisition": {
                        "use": "official",
                        "system": "http://hl7.org/fhir/sid/us-npi",
                        "value": "22190025825Abc"
                    },
                    "status": "active",
                    "intent": "plan",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "2837473heur",
                                    "display": "Category1"
                                },
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "37482374jehrfe",
                                    "display": "Category2"
                                }
                            ],
                            "text": "Service Request Category Bundle"
                        }
                    ],
                    "priority": "urgent",
                    "doNotPerform": false,
                    "code": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "36733600Abc",
                                "display": "Request1"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "439434nufg",
                                "display": "Request2"
                            }
                        ],
                        "text": "Service Request Code Bundle"
                    },
                    "subject": {
                        "reference": "Patient/001B000001PjmeHIAR"
                    },
                    "encounter": {
                        "reference": "Encounter/0kGB0000000CgPkMAK"
                    },
                    "occurrenceDateTime": "2017-01-01T00:00:00.000Z",
                    "asNeededBoolean": true,
                    "authoredOn": "2017-01-01T00:00:00.000Z",
                    "performerType": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "3673360huwd",
                                "display": "Surgeon"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "3673360028hd83hdb",
                                "display": "Cardiologist"
                            }
                        ],
                        "text": "Service Request Performer Type Bundle"
                    },
                    "performer": [
                        {
                            "reference": "Practitioner/0cmB0000000H5wGIAS"
                        }
                    ],
                    "locationCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                    "code": "building1",
                                    "display": "OR1"
                                },
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                    "code": "building2",
                                    "display": "OR2"
                                }
                            ],
                            "text": "Service Request Location Code Type Bundle"
                        }
                    ],
                    "locationReference": [
                        {
                            "reference": "Location/0klB00000004HEmIAM"
                        }
                    ],
                    "reasonCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "34068001ab23e",
                                    "display": "Glyco"
                                }
                            ],
                            "text": "Service Request Reason Code Type Bundle"
                        }
                    ],
                    "reasonReference": [
                        {
                            "reference": "DiagnosticReport/0lQB00000004C98MAE"
                        },
                        {
                            "reference": "Observation/0hIB0000000CqJNMA0"
                        }
                    ],
                    "bodySite": [
                        {
                            "coding": [
                                {
                                    "code": "34068yet53",
                                    "system": "http://snomed.info/sct",
                                    "display": "BodySiteExample"
                                }
                            ],
                            "text": "Service Request Body Site Type Bundle"
                        }
                    ],
                    "patientInstruction": "Instruction Example"
                }
            },
            {
                "fullUrl": "https://localhost:8092/clinical-workflow/fhir-r4/v1/ServiceRequest/0jyB0000000000fIAA",
                "search": {
                    "mode": "match"
                },
                "resource": {
                    "resourceType": "ServiceRequest",
                    "id": "0jyB0000000000fIAA",
                    "identifier": [
                        {
                            "use": "official",
                            "system": "http://hl7.org/fhir/sid/us-npi",
                            "value": "03"
                        },
                        {
                            "use": "usual",
                            "system": "http://hl7.org/fhir/sid/us-npi",
                            "value": "04"
                        }
                    ],
                    "basedOn": [
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0"
                        },
                        {
                            "reference": "MedicationRequest/0kmB000000007WaIAI"
                        }
                    ],
                    "replaces": [
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0"
                        }
                    ],
                    "requisition": {
                        "use": "official",
                        "system": "http://hl7.org/fhir/sid/us-npi",
                        "value": "22190025825Abc"
                    },
                    "status": "active",
                    "intent": "plan",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "2837473heur",
                                    "display": "Category1"
                                },
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "37482374jehrfe",
                                    "display": "Category2"
                                }
                            ],
                            "text": "Service Request Category Bundle"
                        }
                    ],
                    "priority": "urgent",
                    "doNotPerform": false,
                    "code": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "36733600Abc",
                                "display": "Request1"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "439434nufg",
                                "display": "Request2"
                            }
                        ],
                        "text": "Service Request Code Bundle"
                    },
                    "subject": {
                        "reference": "Patient/001B000001PjmeHIAR"
                    },
                    "encounter": {
                        "reference": "Encounter/0kGB0000000CgPkMAK"
                    },
                    "occurrenceDateTime": "2017-01-01T00:00:00.000Z",
                    "asNeededBoolean": true,
                    "authoredOn": "2017-01-01T00:00:00.000Z",
                    "performerType": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "3673360huwd",
                                "display": "Surgeon"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "3673360028hd83hdb",
                                "display": "Cardiologist"
                            }
                        ],
                        "text": "Service Request Performer Type Bundle"
                    },
                    "performer": [
                        {
                            "reference": "Practitioner/0cmB0000000H5wGIAS"
                        }
                    ],
                    "locationCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                    "code": "building1",
                                    "display": "OR1"
                                },
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                    "code": "building2",
                                    "display": "OR2"
                                }
                            ],
                            "text": "Service Request Location Code Type Bundle"
                        }
                    ],
                    "locationReference": [
                        {
                            "reference": "Location/0klB00000004HEmIAM"
                        }
                    ],
                    "reasonCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "34068001ab23e",
                                    "display": "Glyco"
                                }
                            ],
                            "text": "Service Request Reason Code Type Bundle"
                        }
                    ],
                    "reasonReference": [
                        {
                            "reference": "DiagnosticReport/0lQB00000004C98MAE"
                        },
                        {
                            "reference": "Observation/0hIB0000000CqJNMA0"
                        }
                    ],
                    "bodySite": [
                        {
                            "coding": [
                                {
                                    "code": "34068yet53",
                                    "system": "http://snomed.info/sct",
                                    "display": "BodySiteExample"
                                }
                            ],
                            "text": "Service Request Body Site Type Bundle"
                        }
                    ],
                    "patientInstruction": "Instruction Example",
                    "quantityRange": {
                        "low": {
                            "value": 32.58,
                            "unit": "ml",
                            "code": "ml"
                        }
                    }
                }
            },
            {
                "fullUrl": "https://localhost:8092/clinical-workflow/fhir-r4/v1/ServiceRequest/0jyB0000000000pIAA",
                "search": {
                    "mode": "match"
                },
                "resource": {
                    "resourceType": "ServiceRequest",
                    "id": "0jyB0000000000pIAA",
                    "identifier": [
                        {
                            "use": "official",
                            "system": "http://hl7.org/fhir/sid/us-npi",
                            "value": "07"
                        },
                        {
                            "use": "usual",
                            "system": "http://hl7.org/fhir/sid/us-npi",
                            "value": "08"
                        }
                    ],
                    "basedOn": [
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0"
                        },
                        {
                            "reference": "MedicationRequest/0kmB000000007WaIAI"
                        }
                    ],
                    "replaces": [
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0"
                        }
                    ],
                    "requisition": {
                        "use": "official",
                        "system": "http://hl7.org/fhir/sid/us-npi",
                        "value": "22190025825Abc"
                    },
                    "status": "active",
                    "intent": "plan",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "18724571",
                                    "display": "c3"
                                },
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "187ww24571",
                                    "display": "c10"
                                }
                            ],
                            "text": "Service Request Category Bundle"
                        }
                    ],
                    "priority": "urgent",
                    "doNotPerform": false,
                    "code": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "36733600Abc",
                                "display": "Request1"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "439434nufg",
                                "display": "Request2"
                            }
                        ],
                        "text": "Service Request Code Bundle"
                    },
                    "subject": {
                        "reference": "Patient/001B000001PjmeHIAR"
                    },
                    "encounter": {
                        "reference": "Encounter/0kGB0000000CgPkMAK"
                    },
                    "occurrenceDateTime": "2017-01-01T00:00:00.000Z",
                    "asNeededBoolean": true,
                    "authoredOn": "2017-01-01T00:00:00.000Z",
                    "performerType": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "3673360huwd",
                                "display": "Surgeon"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "3673360028hd83hdb",
                                "display": "Cardiologist"
                            }
                        ],
                        "text": "Service Request Performer Type Bundle"
                    },
                    "performer": [
                        {
                            "reference": "Practitioner/0cmB0000000H5wGIAS"
                        }
                    ],
                    "locationCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                    "code": "building1",
                                    "display": "OR1"
                                },
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                    "code": "building2",
                                    "display": "OR2"
                                }
                            ],
                            "text": "Service Request Location Code Type Bundle"
                        }
                    ],
                    "locationReference": [
                        {
                            "reference": "Location/0klB00000004HEmIAM"
                        }
                    ],
                    "reasonCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "34068001ab23e",
                                    "display": "Glyco"
                                }
                            ],
                            "text": "Service Request Reason Code Type Bundle"
                        }
                    ],
                    "reasonReference": [
                        {
                            "reference": "DiagnosticReport/0lQB00000004C98MAE"
                        },
                        {
                            "reference": "Observation/0hIB0000000CqJNMA0"
                        }
                    ],
                    "bodySite": [
                        {
                            "coding": [
                                {
                                    "code": "34068yet53",
                                    "system": "http://snomed.info/sct",
                                    "display": "BodySiteExample"
                                }
                            ],
                            "text": "Service Request Body Site Type Bundle"
                        }
                    ],
                    "patientInstruction": "Instruction Example",
                    "quantityRange": {
                        "low": {
                            "value": 32.58,
                            "unit": "ml",
                            "code": "ml"
                        }
                    }
                }
            },
            {
                "fullUrl": "https://localhost:8092/clinical-workflow/fhir-r4/v1/ServiceRequest/0jyB0000000001JIAQ",
                "search": {
                    "mode": "match"
                },
                "resource": {
                    "resourceType": "ServiceRequest",
                    "id": "0jyB0000000001JIAQ",
                    "identifier": [
                        {
                            "use": "official",
                            "value": "307"
                        },
                        {
                            "use": "usual",
                            "value": "308"
                        }
                    ],
                    "basedOn": [
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0"
                        },
                        {
                            "reference": "MedicationRequest/0kmB000000007WaIAI"
                        }
                    ],
                    "replaces": [
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0"
                        }
                    ],
                    "requisition": {
                        "use": "official",
                        "system": "http://hl7.org/fhir/sid/us-npi",
                        "value": "22190025825Abc"
                    },
                    "status": "active",
                    "intent": "plan",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "2837473heur",
                                    "display": "Category1"
                                },
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "37482374jehrfe",
                                    "display": "Category2"
                                }
                            ],
                            "text": "Service Request Category Bundle"
                        }
                    ],
                    "priority": "urgent",
                    "doNotPerform": false,
                    "code": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "36733600Abc",
                                "display": "Request1"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "439434nufg",
                                "display": "Request2"
                            }
                        ],
                        "text": "Service Request Code Bundle"
                    },
                    "subject": {
                        "reference": "Patient/001B000001PjmeHIAR"
                    },
                    "encounter": {
                        "reference": "Encounter/0kGB0000000CgPkMAK"
                    },
                    "occurrenceDateTime": "2017-01-01T00:00:00.000Z",
                    "asNeededBoolean": true,
                    "authoredOn": "2017-01-01T00:00:00.000Z",
                    "performerType": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "3673360huwd",
                                "display": "Surgeon"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "3673360028hd83hdb",
                                "display": "Cardiologist"
                            }
                        ],
                        "text": "Service Request Performer Type Bundle"
                    },
                    "performer": [
                        {
                            "reference": "Practitioner/0cmB0000000H5wGIAS"
                        }
                    ],
                    "locationCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                    "code": "building1",
                                    "display": "OR1"
                                },
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                    "code": "building2",
                                    "display": "OR2"
                                }
                            ],
                            "text": "Service Request Location Code Type Bundle"
                        }
                    ],
                    "locationReference": [
                        {
                            "reference": "Location/0klB00000004HEmIAM"
                        }
                    ],
                    "reasonCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "34068001ab23e",
                                    "display": "Glyco"
                                }
                            ],
                            "text": "Service Request Reason Code Type Bundle"
                        }
                    ],
                    "reasonReference": [
                        {
                            "reference": "DiagnosticReport/0lQB00000004C98MAE"
                        },
                        {
                            "reference": "Observation/0hIB0000000CqJNMA0"
                        }
                    ],
                    "bodySite": [
                        {
                            "coding": [
                                {
                                    "code": "34068yet53",
                                    "system": "http://snomed.info/sct",
                                    "display": "BodySiteExample"
                                }
                            ],
                            "text": "Service Request Body Site Type Bundle"
                        }
                    ],
                    "patientInstruction": "Instruction Example"
                }
            },
            {
                "fullUrl": "https://localhost:8092/clinical-workflow/fhir-r4/v1/ServiceRequest/0jyB00000000019IAA",
                "search": {
                    "mode": "match"
                },
                "resource": {
                    "resourceType": "ServiceRequest",
                    "id": "0jyB00000000019IAA",
                    "identifier": [
                        {
                            "use": "official",
                            "system": "http://hl7.org/fhir/sid/us-npi",
                            "value": "305"
                        },
                        {
                            "use": "usual",
                            "system": "http://hl7.org/fhir/sid/us-npi",
                            "value": "306"
                        }
                    ],
                    "basedOn": [
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0"
                        },
                        {
                            "reference": "MedicationRequest/0kmB000000007WaIAI"
                        }
                    ],
                    "replaces": [
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0"
                        }
                    ],
                    "requisition": {
                        "use": "official",
                        "system": "http://hl7.org/fhir/sid/us-npi",
                        "value": "22190025825Abc"
                    },
                    "status": "active",
                    "intent": "plan",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "2837473heur",
                                    "display": "Category1"
                                },
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "37482374jehrfe",
                                    "display": "Category2"
                                }
                            ],
                            "text": "Service Request Category Bundle"
                        }
                    ],
                    "priority": "urgent",
                    "doNotPerform": false,
                    "code": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "36733600Abc",
                                "display": "Request1"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "439434nufg",
                                "display": "Request2"
                            }
                        ],
                        "text": "Service Request Code Bundle"
                    },
                    "subject": {
                        "reference": "Patient/001B000001PjmeHIAR"
                    },
                    "encounter": {
                        "reference": "Encounter/0kGB0000000CgPkMAK"
                    },
                    "occurrenceDateTime": "2017-01-01T00:00:00.000Z",
                    "asNeededBoolean": true,
                    "authoredOn": "2017-01-01T00:00:00.000Z",
                    "performerType": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "3673360huwd",
                                "display": "Surgeon"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "3673360028hd83hdb",
                                "display": "Cardiologist"
                            }
                        ],
                        "text": "Service Request Performer Type Bundle"
                    },
                    "performer": [
                        {
                            "reference": "Practitioner/0cmB0000000H5wGIAS"
                        }
                    ],
                    "locationCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                    "code": "building1",
                                    "display": "OR1"
                                },
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                    "code": "building2",
                                    "display": "OR2"
                                }
                            ],
                            "text": "Service Request Location Code Type Bundle"
                        }
                    ],
                    "locationReference": [
                        {
                            "reference": "Location/0klB00000004HEmIAM"
                        }
                    ],
                    "reasonCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "34068001ab23e",
                                    "display": "Glyco"
                                }
                            ],
                            "text": "Service Request Reason Code Type Bundle"
                        }
                    ],
                    "reasonReference": [
                        {
                            "reference": "DiagnosticReport/0lQB00000004C98MAE"
                        },
                        {
                            "reference": "Observation/0hIB0000000CqJNMA0"
                        }
                    ],
                    "bodySite": [
                        {
                            "coding": [
                                {
                                    "code": "34068yet53",
                                    "system": "http://snomed.info/sct",
                                    "display": "BodySiteExample"
                                }
                            ],
                            "text": "Service Request Body Site Type Bundle"
                        }
                    ],
                    "patientInstruction": "Instruction Example"
                }
            },
            {
                "fullUrl": "https://localhost:8092/clinical-workflow/fhir-r4/v1/ServiceRequest/0jyB0000000001EIAQ",
                "search": {
                    "mode": "match"
                },
                "resource": {
                    "resourceType": "ServiceRequest",
                    "id": "0jyB0000000001EIAQ",
                    "identifier": [
                        {
                            "use": "official",
                            "system": "http://hl7.org/fhir/sid/us-npi",
                            "value": "307"
                        },
                        {
                            "use": "usual",
                            "system": "http://hl7.org/fhir/sid/us-npi",
                            "value": "308"
                        }
                    ],
                    "basedOn": [
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0"
                        },
                        {
                            "reference": "MedicationRequest/0kmB000000007WaIAI"
                        }
                    ],
                    "replaces": [
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0"
                        }
                    ],
                    "requisition": {
                        "use": "official",
                        "system": "http://hl7.org/fhir/sid/us-npi",
                        "value": "22190025825Abc"
                    },
                    "status": "active",
                    "intent": "plan",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "2837473heur",
                                    "display": "Category1"
                                },
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "37482374jehrfe",
                                    "display": "Category2"
                                }
                            ],
                            "text": "Service Request Category Bundle"
                        }
                    ],
                    "priority": "urgent",
                    "doNotPerform": true,
                    "code": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "36733600Abc",
                                "display": "Request1"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "439434nufg",
                                "display": "Request2"
                            }
                        ],
                        "text": "Service Request Code Bundle"
                    },
                    "subject": {
                        "reference": "Patient/001B000001PjmeHIAR"
                    },
                    "encounter": {
                        "reference": "Encounter/0kGB0000000CgPkMAK"
                    },
                    "occurrenceDateTime": "2017-01-01T00:00:00.000Z",
                    "asNeededBoolean": false,
                    "authoredOn": "2017-01-01T00:00:00.000Z",
                    "performerType": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "3673360huwd",
                                "display": "Surgeon"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "3673360028hd83hdb",
                                "display": "Cardiologist"
                            }
                        ],
                        "text": "Service Request Performer Type Bundle"
                    },
                    "performer": [
                        {
                            "reference": "Practitioner/0cmB0000000H5wGIAS"
                        }
                    ],
                    "locationCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                    "code": "building1",
                                    "display": "OR1"
                                },
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                    "code": "building2",
                                    "display": "OR2"
                                }
                            ],
                            "text": "Service Request Location Code Type Bundle"
                        }
                    ],
                    "locationReference": [
                        {
                            "reference": "Location/0klB00000004HEmIAM"
                        }
                    ],
                    "reasonCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "34068001ab23e",
                                    "display": "Glyco"
                                }
                            ],
                            "text": "Service Request Reason Code Type Bundle"
                        }
                    ],
                    "reasonReference": [
                        {
                            "reference": "DiagnosticReport/0lQB00000004C98MAE"
                        },
                        {
                            "reference": "Observation/0hIB0000000CqJNMA0"
                        }
                    ],
                    "bodySite": [
                        {
                            "coding": [
                                {
                                    "code": "34068yet53",
                                    "system": "http://snomed.info/sct",
                                    "display": "BodySiteExample"
                                }
                            ],
                            "text": "Service Request Body Site Type Bundle"
                        }
                    ],
                    "patientInstruction": "Instruction Example"
                }
            },
            {
                "fullUrl": "https://localhost:8092/clinical-workflow/fhir-r4/v1/ServiceRequest/0jyB0000000000zIAA",
                "search": {
                    "mode": "match"
                },
                "resource": {
                    "resourceType": "ServiceRequest",
                    "id": "0jyB0000000000zIAA",
                    "identifier": [
                        {
                            "use": "official",
                            "system": "http://hl7.org/fhir/sid/us-npi",
                            "value": "09"
                        },
                        {
                            "use": "usual",
                            "system": "http://hl7.org/fhir/sid/us-npi",
                            "value": "10"
                        }
                    ],
                    "basedOn": [
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0"
                        },
                        {
                            "reference": "MedicationRequest/0kmB000000007WaIAI"
                        }
                    ],
                    "replaces": [
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0"
                        }
                    ],
                    "requisition": {
                        "use": "official",
                        "system": "http://hl7.org/fhir/sid/us-npi",
                        "value": "22190025825Abc"
                    },
                    "status": "active",
                    "intent": "plan",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "18724571",
                                    "display": "c3"
                                },
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "187ww24571",
                                    "display": "c10"
                                }
                            ],
                            "text": "Service Request Category Bundle"
                        }
                    ],
                    "priority": "urgent",
                    "doNotPerform": false,
                    "code": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "36733600Abc",
                                "display": "Request1"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "439434nufg",
                                "display": "Request2"
                            }
                        ],
                        "text": "Service Request Code Bundle"
                    },
                    "subject": {
                        "reference": "Patient/001B000001PjmeHIAR"
                    },
                    "encounter": {
                        "reference": "Encounter/0kGB0000000CgPkMAK"
                    },
                    "occurrenceDateTime": "2017-01-01T00:00:00.000Z",
                    "asNeededBoolean": true,
                    "authoredOn": "2017-01-01T00:00:00.000Z",
                    "performerType": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "3673360huwd",
                                "display": "Surgeon"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "3673360028hd83hdb",
                                "display": "Cardiologist"
                            }
                        ],
                        "text": "Service Request Performer Type Bundle"
                    },
                    "performer": [
                        {
                            "reference": "Practitioner/0cmB0000000H5wGIAS"
                        }
                    ],
                    "locationCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                    "code": "building1",
                                    "display": "OR1"
                                },
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                    "code": "building2",
                                    "display": "OR2"
                                }
                            ],
                            "text": "Service Request Location Code Type Bundle"
                        }
                    ],
                    "locationReference": [
                        {
                            "reference": "Location/0klB00000004HEmIAM"
                        }
                    ],
                    "reasonCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "34068001ab23e",
                                    "display": "Glyco"
                                }
                            ],
                            "text": "Service Request Reason Code Type Bundle"
                        }
                    ],
                    "reasonReference": [
                        {
                            "reference": "DiagnosticReport/0lQB00000004C98MAE"
                        },
                        {
                            "reference": "Observation/0hIB0000000CqJNMA0"
                        }
                    ],
                    "bodySite": [
                        {
                            "coding": [
                                {
                                    "code": "34068yet53",
                                    "system": "http://snomed.info/sct",
                                    "display": "BodySiteExample"
                                }
                            ],
                            "text": "Service Request Body Site Type Bundle"
                        }
                    ],
                    "patientInstruction": "Instruction Example",
                    "quantityRange": {
                        "low": {
                            "value": 32.58,
                            "unit": "ml",
                            "code": "ml"
                        }
                    }
                }
            },
            {
                "fullUrl": "https://localhost:8092/clinical-workflow/fhir-r4/v1/ServiceRequest/0jyB0000000001nIAA",
                "search": {
                    "mode": "match"
                },
                "resource": {
                    "resourceType": "ServiceRequest",
                    "id": "0jyB0000000001nIAA",
                    "identifier": [
                        {
                            "use": "official",
                            "system": "http://hl7.org/fhir/sid/us-npi",
                            "value": "505"
                        },
                        {
                            "use": "usual",
                            "system": "http://hl7.org/fhir/sid/us-npi",
                            "value": "506"
                        }
                    ],
                    "basedOn": [
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0"
                        },
                        {
                            "reference": "MedicationRequest/0kmB000000007WaIAI"
                        }
                    ],
                    "replaces": [
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0"
                        }
                    ],
                    "requisition": {
                        "use": "official",
                        "system": "http://hl7.org/fhir/sid/us-npi",
                        "value": "22190025825Abc"
                    },
                    "status": "active",
                    "intent": "plan",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "2837473heur",
                                    "display": "Category1"
                                },
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "37482374jehrfe",
                                    "display": "Category2"
                                }
                            ],
                            "text": "Service Request Category Bundle"
                        }
                    ],
                    "priority": "urgent",
                    "doNotPerform": false,
                    "code": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "36733600Abc",
                                "display": "Request1"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "439434nufg",
                                "display": "Request2"
                            }
                        ],
                        "text": "Service Request Code Bundle"
                    },
                    "subject": {
                        "reference": "Patient/001B000001PjmeHIAR"
                    },
                    "encounter": {
                        "reference": "Encounter/0kGB0000000CgPkMAK"
                    },
                    "occurrenceDateTime": "2017-01-01T00:00:00.000Z",
                    "asNeededBoolean": true,
                    "authoredOn": "2017-01-01T00:00:00.000Z",
                    "performerType": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "3673360huwd",
                                "display": "Surgeon"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "3673360028hd83hdb",
                                "display": "Cardiologist"
                            }
                        ],
                        "text": "Service Request Performer Type Bundle"
                    },
                    "performer": [
                        {
                            "reference": "Practitioner/0cmB0000000H5wGIAS"
                        }
                    ],
                    "locationCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                    "code": "building1",
                                    "display": "OR1"
                                },
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                    "code": "building2",
                                    "display": "OR2"
                                }
                            ],
                            "text": "Service Request Location Code Type Bundle"
                        }
                    ],
                    "locationReference": [
                        {
                            "reference": "Location/0klB00000004HEmIAM"
                        }
                    ],
                    "reasonCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "34068001ab23e",
                                    "display": "Glyco"
                                }
                            ],
                            "text": "Service Request Reason Code Type Bundle"
                        }
                    ],
                    "reasonReference": [
                        {
                            "reference": "Observation/0hIB0000000CqJNMA0"
                        },
                        {
                            "reference": "DiagnosticReport/0lQB00000004C98MAE"
                        }
                    ],
                    "bodySite": [
                        {
                            "coding": [
                                {
                                    "code": "34068yet53",
                                    "system": "http://snomed.info/sct",
                                    "display": "BodySiteExample"
                                }
                            ],
                            "text": "Service Request Body Site Type Bundle"
                        }
                    ],
                    "patientInstruction": "Instruction Examplee",
                    "quantityRange": {
                        "high": {
                            "value": 1.0,
                            "unit": "minutes",
                            "code": "minutes"
                        }
                    }
                }
            },
            {
                "fullUrl": "https://localhost:8092/clinical-workflow/fhir-r4/v1/ServiceRequest/0jyB0000000001iIAA",
                "search": {
                    "mode": "match"
                },
                "resource": {
                    "resourceType": "ServiceRequest",
                    "id": "0jyB0000000001iIAA",
                    "identifier": [
                        {
                            "use": "official",
                            "system": "http://hl7.org/fhir/sid/us-npi",
                            "value": "501"
                        },
                        {
                            "use": "usual",
                            "system": "http://hl7.org/fhir/sid/us-npi",
                            "value": "502"
                        }
                    ],
                    "basedOn": [
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0"
                        },
                        {
                            "reference": "MedicationRequest/0kmB000000007WaIAI"
                        }
                    ],
                    "replaces": [
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0"
                        }
                    ],
                    "requisition": {
                        "use": "official",
                        "system": "http://hl7.org/fhir/sid/us-npi",
                        "value": "22190025825Abc"
                    },
                    "status": "active",
                    "intent": "plan",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "2837473heur",
                                    "display": "Category1"
                                },
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "37482374jehrfe",
                                    "display": "Category2"
                                }
                            ],
                            "text": "Service Request Category Bundle"
                        }
                    ],
                    "priority": "urgent",
                    "doNotPerform": false,
                    "code": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "36733600Abc",
                                "display": "Request1"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "439434nufg",
                                "display": "Request2"
                            }
                        ],
                        "text": "Service Request Code Bundle"
                    },
                    "subject": {
                        "reference": "Patient/001B000001PjmeHIAR"
                    },
                    "encounter": {
                        "reference": "Encounter/0kGB0000000CgPkMAK"
                    },
                    "occurrenceDateTime": "2017-01-01T00:00:00.000Z",
                    "asNeededBoolean": true,
                    "authoredOn": "2017-01-01T00:00:00.000Z",
                    "performerType": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "3673360huwd",
                                "display": "Surgeon"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "3673360028hd83hdb",
                                "display": "Cardiologist"
                            }
                        ],
                        "text": "Service Request Performer Type Bundle"
                    },
                    "performer": [
                        {
                            "reference": "Practitioner/0cmB0000000H5wGIAS"
                        }
                    ],
                    "locationCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                    "code": "building1",
                                    "display": "OR1"
                                },
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                    "code": "building2",
                                    "display": "OR2"
                                }
                            ],
                            "text": "Service Request Location Code Type Bundle"
                        }
                    ],
                    "locationReference": [
                        {
                            "reference": "Location/0klB00000004HEmIAM"
                        }
                    ],
                    "reasonCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "34068001ab23e",
                                    "display": "Glyco"
                                }
                            ],
                            "text": "Service Request Reason Code Type Bundle"
                        }
                    ],
                    "reasonReference": [
                        {
                            "reference": "DiagnosticReport/0lQB00000004C98MAE"
                        },
                        {
                            "reference": "Observation/0hIB0000000CqJNMA0"
                        }
                    ],
                    "bodySite": [
                        {
                            "coding": [
                                {
                                    "code": "34068yet53",
                                    "system": "http://snomed.info/sct",
                                    "display": "BodySiteExample"
                                }
                            ],
                            "text": "Service Request Body Site Type Bundle"
                        }
                    ],
                    "patientInstruction": "Instruction Examplee",
                    "quantityRange": {
                        "low": {
                            "value": 32.58,
                            "unit": "ml",
                            "code": "ml"
                        }
                    }
                }
            },
            {
                "fullUrl": "https://localhost:8092/clinical-workflow/fhir-r4/v1/ServiceRequest/0jyB0000000001YIAQ",
                "search": {
                    "mode": "match"
                },
                "resource": {
                    "resourceType": "ServiceRequest",
                    "id": "0jyB0000000001YIAQ",
                    "identifier": [
                        {
                            "use": "official",
                            "system": "http://hl7.org/fhir/sid/us-npi",
                            "value": "221900258253044544hjcarewwewqwd"
                        },
                        {
                            "use": "usual",
                            "system": "http://hl7.org/fhir/sid/us-npi",
                            "value": "22113025438305908jsareeretfyy"
                        }
                    ],
                    "basedOn": [
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0"
                        },
                        {
                            "reference": "MedicationRequest/0kmB000000007WaIAI"
                        }
                    ],
                    "replaces": [
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0"
                        }
                    ],
                    "requisition": {
                        "use": "official",
                        "system": "http://hl7.org/fhir/sid/us-npi",
                        "value": "22190025825Abc"
                    },
                    "status": "active",
                    "intent": "plan",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "2837473heur",
                                    "display": "Category1"
                                },
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "37482374jehrfe",
                                    "display": "Category2"
                                }
                            ],
                            "text": "Service Request Category Bundle"
                        }
                    ],
                    "priority": "urgent",
                    "doNotPerform": false,
                    "code": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "36733600Abc",
                                "display": "Request1"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "439434nufg",
                                "display": "Request2"
                            }
                        ],
                        "text": "Service Request Code Bundle"
                    },
                    "subject": {
                        "reference": "Patient/001B000001PjmeHIAR"
                    },
                    "encounter": {
                        "reference": "Encounter/0kGB0000000CgPkMAK"
                    },
                    "occurrenceDateTime": "2017-01-01T00:00:00.000Z",
                    "asNeededBoolean": true,
                    "authoredOn": "2017-01-01T00:00:00.000Z",
                    "performerType": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "3673360huwd",
                                "display": "Surgeon"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "3673360028hd83hdb",
                                "display": "Cardiologist"
                            }
                        ],
                        "text": "Service Request Performer Type Bundle"
                    },
                    "performer": [
                        {
                            "reference": "Practitioner/0cmB0000000H5wGIAS"
                        }
                    ],
                    "locationCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                    "code": "building3",
                                    "display": "OR1"
                                }
                            ],
                            "text": "Service Request Location Code Type Bundle"
                        }
                    ],
                    "locationReference": [
                        {
                            "reference": "Location/0klB00000004HEmIAM"
                        }
                    ],
                    "reasonCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "34068001ab23e",
                                    "display": "Glyco"
                                }
                            ],
                            "text": "Service Request Reason Code Type Bundle"
                        }
                    ],
                    "reasonReference": [
                        {
                            "reference": "DiagnosticReport/0lQB00000004C98MAE"
                        },
                        {
                            "reference": "Observation/0hIB0000000CqJNMA0"
                        }
                    ],
                    "bodySite": [
                        {
                            "coding": [
                                {
                                    "code": "34068yet53",
                                    "system": "http://snomed.info/sct",
                                    "display": "BodySiteExample"
                                }
                            ],
                            "text": "Service Request Body Site Type Bundle"
                        }
                    ],
                    "patientInstruction": "Instruction Example",
                    "quantityRange": {
                        "low": {
                            "value": 32.58,
                            "unit": "ml",
                            "code": "ml"
                        }
                    }
                }
            },
            {
                "fullUrl": "https://localhost:8092/clinical-workflow/fhir-r4/v1/ServiceRequest/0jyB0000000001dIAA",
                "search": {
                    "mode": "match"
                },
                "resource": {
                    "resourceType": "ServiceRequest",
                    "id": "0jyB0000000001dIAA",
                    "identifier": [
                        {
                            "use": "usual",
                            "system": "http://hl7.org/fhir/sid/us-npi",
                            "value": "22113025438305908jswebjdwe3423"
                        },
                        {
                            "use": "official",
                            "system": "http://hl7.org/fhir/sid/us-npi",
                            "value": "22190025825304hbcush"
                        }
                    ],
                    "basedOn": [
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0"
                        },
                        {
                            "reference": "MedicationRequest/0kmB000000007WaIAI"
                        }
                    ],
                    "replaces": [
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0"
                        }
                    ],
                    "requisition": {
                        "use": "official",
                        "system": "http://hl7.org/fhir/sid/us-npi",
                        "value": "22190025825Abc"
                    },
                    "status": "active",
                    "intent": "plan",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "2837473heur",
                                    "display": "Category1"
                                },
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "37482374jehrfe",
                                    "display": "Category2"
                                }
                            ],
                            "text": "Service Request Category Bundle"
                        }
                    ],
                    "priority": "urgent",
                    "doNotPerform": false,
                    "code": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "36733600Abc",
                                "display": "Request1"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "439434nufg",
                                "display": "Request2"
                            }
                        ],
                        "text": "Service Request Code Bundle"
                    },
                    "subject": {
                        "reference": "Patient/001B000001PjmeHIAR"
                    },
                    "encounter": {
                        "reference": "Encounter/0kGB0000000CgPkMAK"
                    },
                    "occurrenceDateTime": "2017-01-01T00:00:00.000Z",
                    "asNeededBoolean": true,
                    "authoredOn": "2017-01-01T00:00:00.000Z",
                    "performerType": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "3673360huwd",
                                "display": "Surgeon"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "3673360028hd83hdb",
                                "display": "Cardiologist"
                            }
                        ],
                        "text": "Service Request Performer Type Bundle"
                    },
                    "performer": [
                        {
                            "reference": "Practitioner/0cmB0000000H5wGIAS"
                        }
                    ],
                    "locationCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                    "code": "building3",
                                    "display": "OR1"
                                }
                            ],
                            "text": "Service Request Location Code Type Bundle"
                        }
                    ],
                    "locationReference": [
                        {
                            "reference": "Location/0klB00000004HEmIAM"
                        }
                    ],
                    "reasonCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "34068001ab23e",
                                    "display": "Glyco"
                                }
                            ],
                            "text": "Service Request Reason Code Type Bundle"
                        }
                    ],
                    "reasonReference": [
                        {
                            "reference": "DiagnosticReport/0lQB00000004C98MAE"
                        },
                        {
                            "reference": "Observation/0hIB0000000CqJNMA0"
                        }
                    ],
                    "bodySite": [
                        {
                            "coding": [
                                {
                                    "code": "34068yet53",
                                    "system": "http://snomed.info/sct",
                                    "display": "BodySiteExample"
                                }
                            ],
                            "text": "Service Request Body Site Type Bundle"
                        }
                    ],
                    "patientInstruction": "Instruction Example"
                }
            },
            {
                "fullUrl": "https://localhost:8092/clinical-workflow/fhir-r4/v1/ServiceRequest/0jyB0000000001sIAA",
                "search": {
                    "mode": "match"
                },
                "resource": {
                    "resourceType": "ServiceRequest",
                    "id": "0jyB0000000001sIAA",
                    "identifier": [
                        {
                            "use": "official",
                            "system": "http://hl7.org/fhir/sid/us-npi",
                            "value": "510"
                        },
                        {
                            "use": "usual",
                            "system": "http://hl7.org/fhir/sid/us-npi",
                            "value": "511"
                        }
                    ],
                    "basedOn": [
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0"
                        },
                        {
                            "reference": "MedicationRequest/0kmB000000007WaIAI"
                        }
                    ],
                    "replaces": [
                        {
                            "reference": "ServiceRequest/0jyB0000000CaRCIA0"
                        }
                    ],
                    "requisition": {
                        "use": "official",
                        "system": "http://hl7.org/fhir/sid/us-npi",
                        "value": "22190025825Abc"
                    },
                    "status": "active",
                    "intent": "plan",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "2837473heur",
                                    "display": "Category1"
                                },
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "37482374jehrfe",
                                    "display": "Category2"
                                }
                            ],
                            "text": "Service Request Category Bundle"
                        }
                    ],
                    "priority": "urgent",
                    "doNotPerform": false,
                    "code": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "36733600Abc",
                                "display": "Request1"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "439434nufg",
                                "display": "Request2"
                            }
                        ],
                        "text": "Service Request Code Bundle"
                    },
                    "subject": {
                        "reference": "Patient/001B000001PjmeHIAR"
                    },
                    "encounter": {
                        "reference": "Encounter/0kGB0000000CgPkMAK"
                    },
                    "occurrenceDateTime": "2017-01-01T00:00:00.000Z",
                    "asNeededBoolean": true,
                    "authoredOn": "2017-01-01T00:00:00.000Z",
                    "performerType": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "3673360huwd",
                                "display": "Surgeon"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "3673360028hd83hdb",
                                "display": "Cardiologist"
                            }
                        ],
                        "text": "Service Request Performer Type Bundle"
                    },
                    "performer": [
                        {
                            "reference": "Practitioner/0cmB0000000H5wGIAS"
                        }
                    ],
                    "locationCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                    "code": "building1",
                                    "display": "OR1"
                                },
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                    "code": "building2",
                                    "display": "OR2"
                                }
                            ],
                            "text": "Service Request Location Code Type Bundle"
                        }
                    ],
                    "locationReference": [
                        {
                            "reference": "Location/0klB00000004HEmIAM"
                        }
                    ],
                    "reasonCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "34068001ab23e",
                                    "display": "Glyco"
                                }
                            ],
                            "text": "Service Request Reason Code Type Bundle"
                        }
                    ],
                    "reasonReference": [
                        {
                            "reference": "DiagnosticReport/0lQB00000004C98MAE"
                        },
                        {
                            "reference": "Observation/0hIB0000000CqJNMA0"
                        }
                    ],
                    "bodySite": [
                        {
                            "coding": [
                                {
                                    "code": "34068yet53",
                                    "system": "http://snomed.info/sct",
                                    "display": "BodySiteExample"
                                }
                            ],
                            "text": "Service Request Body Site Type Bundle"
                        }
                    ],
                    "patientInstruction": "Instruction Examplee",
                    "quantityRange": {
                        "low": {
                            "value": 1.0,
                            "unit": "minutes",
                            "code": "minutes"
                        },
                        "high": {
                            "value": 4.0,
                            "unit": "minutes",
                            "code": "minutes"
                        }
                    }
                }
            }
        ]
    }
    ```
    
*   **500** Something went wrong.
    
    Media type: `application/fhir+json`. Schema: `OperationOutcome`.
    
    _Example: same as GET /MedicationRequest 500 response._
    
*   **503** Error connecting Salesforce.
    
    Media type: `application/fhir+json`. Schema: `OperationOutcome`.
    
    _Example: same as GET /MedicationRequest 500 response._
    

### POST Create a service request

`POST /ServiceRequest`

Creates a resource using the create interaction from the FHIR resources.

#### Parameters

*   `X-CORRELATION-ID` (header, string)
*   `Accept` (header, string)  
    Allowed values: `application/fhir+json`.

#### Request body

Media type: `application/fhir+json`. Schema: `ServiceRequest`.

_Example_

```
{
  "resourceType": "ServiceRequest",
  "identifier": [
    {
      "value": "SVC-Req-908745thabc122xy",
      "use": "official",
      "system": "http://hl7.org/fhir/sid/us-npi"
    },
    {
      "value": "SVC-Req-90812389uith9976zy",
      "use": "usual",
      "system": "http://hl7.org/fhir/sid/us-npi"
    }
  ],
  "basedOn": [
    {
      "reference": "ServiceRequest/0jyB0000000CaRCIA0"
    },
    {
      "reference": "MedicationRequest/0kmB000000007WaIAI"
    }
  ],
  "replaces": [
    {
      "reference": "ServiceRequest/0jyB0000000CaRCIA0"
    }
  ],
  "requisition": {
    "value": "22190025825Abc",
    "use": "official",
    "system": "http://hl7.org/fhir/sid/us-npi"
  },
  "status": "active",
  "intent": "plan",
  "category": [
    {
      "coding": [
        {
          "system": "http://snomed.info/sct",
          "code": "2837473heur",
          "display": "Category1"
        },
        {
          "system": "http://snomed.info/sct",
          "code": "37482374jehrfe",
          "display": "Category2"
        }
      ]
    }
  ],
  "priority": "urgent",
  "doNotPerform": false,
  "code": {
    "coding": [
      {
        "system": "http://snomed.info/sct",
        "code": "36733600Abc",
        "display": "Request1"
      },
      {
        "system": "http://snomed.info/sct",
        "code": "439434nufg",
        "display": "Request2"
      }
    ]
  },
   "quantityRatio": {
       "numerator": {
                            "value": 4,
                            "unit": "hour",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "hour"
                        },
                        
                        "denominator": {
                            "value": 4,
                            "unit": "hour",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "hour"
                        }
                    },
  "subject": {
    "reference": "Patient/001B000001ScCOHIA3"
  },
  "encounter": {
    "reference": "Encounter/0kGB0000000CgPkMAK"
  },
  "occurrenceDateTime": "2017-01-01T00:00:00.000Z",
  "asNeededBoolean": true,
  "authoredOn": "2017-01-01T00:00:00.000Z",
  "requester": {
    "reference": "Patient/001B000001PjmeHIAR"
  },
  "performerType": {
    "coding": [
      {
        "system": "http://snomed.info/sct",
        "code": "3673360huwd",
        "display": "Surgeon"
      },
      {
        "system": "http://snomed.info/sct",
        "code": "3673360028hd83hdb",
        "display": "Cardiologist"
      }
    ]
  },
  "performer": [
    {
      "reference": "Practitioner/0cmB0000000H5wGIAS"
    }
  ],
  "locationCode": [{
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
        "code": "building3",
        "display": "OR1"
      }
    ]
  }],
  "locationReference": [
    {
      "reference": "Location/0klB00000004HEmIAM"
    }
  ],
  "reasonCode": [
    {
      "coding": [
        {
          "system": "http://snomed.info/sct",
          "code": "34068001ab23e",
          "display": "Glyco"
        }
      ]
    }
  ],
  "reasonReference": [
    {
      "reference": "DiagnosticReport/0lQB00000004C98MAE"
    },
    {
      "reference": "Observation/0hIB0000000CqJNMA0"
    }
  ],
  "bodySite": [
    {
      "coding": [
        {
          "system": "http://snomed.info/sct",
          "code": "34068yet53",
          "display": "BodySiteExample"
        }
      ]
    }
  ],
  "patientInstruction": "Instruction Example"
 
}
```

#### Responses

*   **201** No match was found. Resource created.
    
    Headers:
    
    *   `Location` (string, required) Specifies the URL where the resource can be fetched in subsequent requests.  
        Example: `http://xxx/Servicerequest/123`.
    
    Media type: `application/fhir+json`. Schema: `ServiceRequest (extended)`.
    
    Includes all fields of `ServiceRequest`.
    
    *   `id` (_string_, required) Specifies the Salesforce ID of the created object.  
        Pattern: ^\[A-Za-z0-9\\-\\.\]{1,64}$.
    
    _Example_
    
    ```
    {
      "resourceType": "ServiceRequest",
      "identifier": [
        {
          "value": "SVC-Req-908745thabc122xy",
          "use": "official",
          "system": "http://hl7.org/fhir/sid/us-npi"
        },
        {
          "value": "SVC-Req-90812389uith9976zy",
          "use": "usual",
          "system": "http://hl7.org/fhir/sid/us-npi"
        }
      ],
      "basedOn": [
        {
          "reference": "ServiceRequest/0jyB0000000CaRCIA0"
        },
        {
          "reference": "MedicationRequest/0kmB000000007WaIAI"
        }
      ],
      "replaces": [
        {
          "reference": "ServiceRequest/0jyB0000000CaRCIA0"
        }
      ],
      "requisition": {
        "value": "22190025825Abc",
        "use": "official",
        "system": "http://hl7.org/fhir/sid/us-npi"
      },
      "status": "active",
      "intent": "plan",
      "category": [
        {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "2837473heur",
              "display": "Category1"
            },
            {
              "system": "http://snomed.info/sct",
              "code": "37482374jehrfe",
              "display": "Category2"
            }
          ]
        }
      ],
      "priority": "urgent",
      "doNotPerform": false,
      "code": {
        "coding": [
          {
            "system": "http://snomed.info/sct",
            "code": "36733600Abc",
            "display": "Request1"
          },
          {
            "system": "http://snomed.info/sct",
            "code": "439434nufg",
            "display": "Request2"
          }
        ]
      },
       "quantityRatio": {
           "numerator": {
                                "value": 4,
                                "unit": "hour",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "hour"
                            },
                            
                            "denominator": {
                                "value": 4,
                                "unit": "hour",
                                "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                                "code": "hour"
                            }
                        },
      "subject": {
        "reference": "Patient/001B000001ScCOHIA3"
      },
      "encounter": {
        "reference": "Encounter/0kGB0000000CgPkMAK"
      },
      "occurrenceDateTime": "2017-01-01T00:00:00.000Z",
      "asNeededBoolean": true,
      "authoredOn": "2017-01-01T00:00:00.000Z",
      "requester": {
        "reference": "Patient/001B000001PjmeHIAR"
      },
      "performerType": {
        "coding": [
          {
            "system": "http://snomed.info/sct",
            "code": "3673360huwd",
            "display": "Surgeon"
          },
          {
            "system": "http://snomed.info/sct",
            "code": "3673360028hd83hdb",
            "display": "Cardiologist"
          }
        ]
      },
      "performer": [
        {
          "reference": "Practitioner/0cmB0000000H5wGIAS"
        }
      ],
      "locationCode": [{
        "coding": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
            "code": "building3",
            "display": "OR1"
          }
        ]
      }],
      "locationReference": [
        {
          "reference": "Location/0klB00000004HEmIAM"
        }
      ],
      "reasonCode": [
        {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "34068001ab23e",
              "display": "Glyco"
            }
          ]
        }
      ],
      "reasonReference": [
        {
          "reference": "DiagnosticReport/0lQB00000004C98MAE"
        },
        {
          "reference": "Observation/0hIB0000000CqJNMA0"
        }
      ],
      "bodySite": [
        {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "34068yet53",
              "display": "BodySiteExample"
            }
          ]
        }
      ],
      "patientInstruction": "Instruction Example",
      "id": "8487"
     
    }
    ```
    
*   **400** Resource either can’t be parsed or failed basic FHIR validation rules.
    
    Media type: `application/fhir+json`. Schema: `OperationOutcome`.
    
    _Example: same as GET /MedicationRequest 500 response._
    
*   **500** Something went wrong.
    
    Media type: `application/fhir+json`. Schema: `OperationOutcome`.
    
    _Example: same as GET /MedicationRequest 500 response._
    
*   **503** Error connecting Salesforce.
    
    Media type: `application/fhir+json`. Schema: `OperationOutcome`.
    
    _Example: same as GET /MedicationRequest 500 response._
    

### GET Get a service request

`GET /ServiceRequest/{id}`

Retrieves the details for a particular object using the ID. This operation is performed using the read interaction from the FHIR resources.

#### Parameters

*   `id` (path, id, required)
*   `X-CORRELATION-ID` (header, string)

#### Responses

*   **200** The request was successful.
    
    Media type: `application/fhir+json`. Schema: `ServiceRequest`.
    
    _Example_
    
    ```
    {
        "resourceType": "ServiceRequest",
        "id": "0jyB0000000002lIAA",
        "identifier": [
            {
                "use": "official",
                "system": "http://hl7.org/fhir/sid/us-npi",
                "value": "SVC-Req-908745thabc122xy"
            },
            {
                "use": "usual",
                "system": "http://hl7.org/fhir/sid/us-npi",
                "value": "SVC-Req-90812389uith9976zy"
            }
        ],
        "basedOn": [
            {
                "reference": "ServiceRequest/0jyB0000000CaRCIA0"
            },
            {
                "reference": "MedicationRequest/0kmB000000007WaIAI"
            }
        ],
        "replaces": [
            {
                "reference": "ServiceRequest/0jyB0000000CaRCIA0"
            }
        ],
        "requisition": {
            "use": "official",
            "system": "http://hl7.org/fhir/sid/us-npi",
            "value": "22190025825Abc"
        },
        "status": "active",
        "intent": "plan",
        "category": [
            {
                "coding": [
                    {
                        "system": "http://snomed.info/sct",
                        "code": "2837473heur",
                        "display": "Category1"
                    },
                    {
                        "system": "http://snomed.info/sct",
                        "code": "37482374jehrfe",
                        "display": "Category2"
                    }
                ],
                "text": "Service Request Category Bundle"
            }
        ],
        "priority": "urgent",
        "doNotPerform": false,
        "code": {
            "coding": [
                {
                    "system": "http://snomed.info/sct",
                    "code": "36733600Abc",
                    "display": "Request1"
                },
                {
                    "system": "http://snomed.info/sct",
                    "code": "439434nufg",
                    "display": "Request2"
                }
            ],
            "text": "Service Request Code Bundle"
        },
        "subject": {
            "reference": "Patient/001B000001ScCOHIA3"
        },
        "encounter": {
            "reference": "Encounter/0kGB0000000CgPkMAK"
        },
        "occurrenceDateTime": "2017-01-01T00:00:00.000Z",
        "asNeededBoolean": true,
        "authoredOn": "2017-01-01T00:00:00.000Z",
        "performerType": {
            "coding": [
                {
                    "system": "http://snomed.info/sct",
                    "code": "3673360huwd",
                    "display": "Surgeon"
                },
                {
                    "system": "http://snomed.info/sct",
                    "code": "3673360028hd83hdb",
                    "display": "Cardiologist"
                }
            ],
            "text": "Service Request Performer Type Bundle"
        },
        "performer": [
            {
                "reference": "Practitioner/0cmB0000000H5wGIAS"
            }
        ],
        "locationCode": [
            {
                "coding": [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                        "code": "building3",
                        "display": "OR1"
                    }
                ],
                "text": "Service Request Location Code Type Bundle"
            }
        ],
        "locationReference": [
            {
                "reference": "Location/0klB00000004HEmIAM"
            }
        ],
        "reasonCode": [
            {
                "coding": [
                    {
                        "system": "http://snomed.info/sct",
                        "code": "34068001ab23e",
                        "display": "Glyco"
                    }
                ],
                "text": "Service Request Reason Code Type Bundle"
            }
        ],
        "reasonReference": [
            {
                "reference": "Observation/0hIB0000000CqJNMA0"
            },
            {
                "reference": "DiagnosticReport/0lQB00000004C98MAE"
            }
        ],
        "bodySite": [
            {
                "coding": [
                    {
                        "code": "34068yet53",
                        "system": "http://snomed.info/sct",
                        "display": "BodySiteExample"
                    }
                ],
                "text": "Service Request Body Site Type Bundle"
            }
        ],
        "patientInstruction": "Instruction Example",
        "quantityRatio": {
            "numerator": {
                "value": 4.0,
                "unit": "hour",
                "code": "hour"
            },
            "denominator": {
                "value": 4.0,
                "unit": "hour",
                "code": "hour"
            }
        }
    }
    ```
    
*   **404** Search ID not found.
    
    Media type: `application/fhir+json`. Schema: `OperationOutcome`.
    
    _Example: same as GET /MedicationRequest 500 response._
    
*   **500** Something went wrong.
    
    Media type: `application/fhir+json`. Schema: `OperationOutcome`.
    
    _Example: same as GET /MedicationRequest 500 response._
    
*   **503** Error connecting Salesforce.
    
    Media type: `application/fhir+json`. Schema: `OperationOutcome`.
    
    _Example: same as GET /MedicationRequest 500 response._
    

### PUT Update a service request

`PUT /ServiceRequest/{id}`

Creates a new current version of an existing resource or creates an initial version if no resource already exists for the given ID. This operation is performed using the update interaction from the FHIR resources.

#### Parameters

*   `id` (path, id, required)
*   `X-CORRELATION-ID` (header, string)
*   `Accept` (header, string)  
    Allowed values: `application/fhir+json`.

#### Request body

Media type: `application/fhir+json`. Schema: `ServiceRequest`.

_Example_

```
{
  "resourceType": "ServiceRequest",
  "id": "747631",
  "identifier": [
    {
      "value": "SVC-Req-908745thabc122xy",
      "use": "official",
      "system": "http://hl7.org/fhir/sid/us-npi"
    },
    {
      "value": "SVC-Req-90812389uith9976zy",
      "use": "usual",
      "system": "http://hl7.org/fhir/sid/us-npi"
    }
  ],
  "basedOn": [
    {
      "reference": "ServiceRequest/0jyB0000000CaRCIA0"
    },
    {
      "reference": "MedicationRequest/0kmB000000007WaIAI"
    }
  ],
  "replaces": [
    {
      "reference": "ServiceRequest/0jyB0000000CaRCIA0"
    }
  ],
  "requisition": {
    "value": "22190025825Abc",
    "use": "official",
    "system": "http://hl7.org/fhir/sid/us-npi"
  },
  "status": "active",
  "intent": "plan",
  "category": [
    {
      "coding": [
        {
          "system": "http://snomed.info/sct",
          "code": "2837473heur",
          "display": "Category1"
        },
        {
          "system": "http://snomed.info/sct",
          "code": "37482374jehrfe",
          "display": "Category2"
        }
      ]
    }
  ],
  "priority": "urgent",
  "doNotPerform": false,
  "code": {
    "coding": [
      {
        "system": "http://snomed.info/sct",
        "code": "36733600Abc",
        "display": "Request1"
      },
      {
        "system": "http://snomed.info/sct",
        "code": "439434nufg",
        "display": "Request2"
      }
    ]
  },
   "quantityRatio": {
       "numerator": {
                            "value": 4,
                            "unit": "hour",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "hour"
                        },
                        
                        "denominator": {
                            "value": 4,
                            "unit": "hour",
                            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                            "code": "hour"
                        }
                    },
  "subject": {
    "reference": "Patient/001B000001ScCOHIA3"
  },
  "encounter": {
    "reference": "Encounter/0kGB0000000CgPkMAK"
  },
  "occurrenceDateTime": "2017-01-01T00:00:00.000Z",
  "asNeededBoolean": true,
  "authoredOn": "2017-01-01T00:00:00.000Z",
  "requester": {
    "reference": "Patient/001B000001PjmeHIAR"
  },
  "performerType": {
    "coding": [
      {
        "system": "http://snomed.info/sct",
        "code": "3673360huwd",
        "display": "Surgeon"
      },
      {
        "system": "http://snomed.info/sct",
        "code": "3673360028hd83hdb",
        "display": "Cardiologist"
      }
    ]
  },
  "performer": [
    {
      "reference": "Practitioner/0cmB0000000H5wGIAS"
    }
  ],
  "locationCode": [{
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
        "code": "building3",
        "display": "OR1"
      }
    ]
  }],
  "locationReference": [
    {
      "reference": "Location/0klB00000004HEmIAM"
    }
  ],
  "reasonCode": [
    {
      "coding": [
        {
          "system": "http://snomed.info/sct",
          "code": "34068001ab23e",
          "display": "Glyco"
        }
      ]
    }
  ],
  "reasonReference": [
    {
      "reference": "DiagnosticReport/0lQB00000004C98MAE"
    },
    {
      "reference": "Observation/0hIB0000000CqJNMA0"
    }
  ],
  "bodySite": [
    {
      "coding": [
        {
          "system": "http://snomed.info/sct",
          "code": "34068yet53",
          "display": "BodySiteExample"
        }
      ]
    }
  ],
  "patientInstruction": "Instruction Example"
 
}
```

#### Responses

*   **200** Updated the resource.
    
    Headers:
    
    *   `Location` (string, required) Specifies the URL where the resource can be fetched in subsequent requests.  
        Example: `http://xxx/ServiceRequest/123`.
    
    Media type: `application/fhir+json`. Schema: `ServiceRequest (extended)`.
    
    Includes all fields of `ServiceRequest`.
    
    *   `id` (_string_, required) Specifies the Salesforce ID of the updated or created object.  
        Pattern: ^\[A-Za-z0-9\\-\\.\]{1,64}$.
    
    _Example: same as PUT /ServiceRequest/{id} request._
    
*   **201** Created.
    
    Headers:
    
    *   `Location` (string, required) Specifies the URL where the resource can be fetched in subsequent requests.  
        Example: `http://xxx/ServiceRequest/123`.
    
    Media type: `application/fhir+json`. Schema: `ServiceRequest (extended)`.
    
    Includes all fields of `ServiceRequest`.
    
    *   `id` (_string_, required) Specifies the Salesforce ID of the updated or created object.  
        Pattern: ^\[A-Za-z0-9\\-\\.\]{1,64}$.
    
    _Example: same as PUT /ServiceRequest/{id} request._
    
*   **400** Resource either can’t be parsed or failed basic FHIR validation rules.
    
    Media type: `application/fhir+json`. Schema: `OperationOutcome`.
    
    _Example: same as GET /MedicationRequest 500 response._
    
*   **500** Something went wrong.
    
    Media type: `application/fhir+json`. Schema: `OperationOutcome`.
    
    _Example: same as GET /MedicationRequest 500 response._
    
*   **503** Error connecting Salesforce.
    
    Media type: `application/fhir+json`. Schema: `OperationOutcome`.
    
    _Example: same as GET /MedicationRequest 500 response._
    

## Schemas

### MedicationRequestBundle

Includes all fields of `Bundle`.

*   `entry` (_array of MedicationRequestEntry_)

### OperationOutcome

Information about the success or failure of an action. Elements defined in Ancestors id, meta, implicitRules, language, text, contained, extension, modifierExtension.

Includes all fields of `Resource`.

*   `issue` (_array of object_, required)
    *   `severity` (_code (string)_, required) fatal | error | warning | information  
        Allowed values: `fatal`, `error`, `warning`, `information`.
    *   `code` (_code (string)_, required) Error or warning code  
        Allowed values: `invalid`, `structure`, `required`, `value`, `invariant`, `security`, `login`, `unknown`, `expired`, `forbidden`, `suppressed`, `processing`, `not-supported`, `duplicate`, `multiple-matches`, `not-found`, `deleted`, `too-long`, `code-invalid`, `extension`, `too-costly`, `business-rule`, `conflict`, `transient`, `lock-error`, `no-store`, `exception`, `timeout`, `incomplete`, `throttled`, `informational`.
    *   `details` (_object_) Additional details about the error
        
        Includes all fields of `CodeableConcept`.
        

### MedicationRequest

Includes all fields of `DomainResource`.

*   `identifier` (_array of Identifier_) Specifies the external IDs for the request.
*   `basedOn` (_array of Reference_) Specifies what the medication request fulfills.
*   `groupIdentifier` (_object_) Specifies the composite request that this request is a part of
    
    Includes all fields of `Identifier`.
    
*   `status` (_code (string)_, required) Specifies the medical request status. Possible values are active, on-hold, cancelled, completed, entered-in-error, stopped, draft, and unknown.  
    Allowed values: `active`, `on-hold`, `cancelled`, `completed`, `entered-in-error`, `stopped`, `draft`, `unknown`.
*   `statusReason` (_object_) Specifies the reason for the current status.
    
    Includes all fields of `CodeableConcept`.
    
*   `intent` (_code (string)_, required) Specifies the intent of the medical request.  
    Allowed values: `proposal`, `plan`, `order`, `instance-order`.
*   `category` (_array of CodeableConcept_) Specifies the type of medication usage
*   `priority` (_code (string)_) Specifies the request priority.  
    Allowed values: `routine`, `urgent`, `stat`, `asap`.
*   `doNotPerform` (_boolean_) Indicates whether the request is a prohibiting action (true) or not (false).
*   `reported` (_object_) Specifies if the medication request is reported or is a primary record.
    
    Includes all fields of `medicationRequestreportedBoolean`.
    
*   `medication` (_medicationRequestmedicationCodeableConcept | medicationRequestmedicationReference_) Medication data type is mandatory for a MedicationRequest resource. A 'medication' choice data type can have the medicationCodeableConcept field or the medicationReference field in the request.
    
    One of: `medicationRequestmedicationCodeableConcept`, `medicationRequestmedicationReference`.
    
*   `subject` (_object_, required) Specifies the subject of the medication request. An update operation isn't supported for subject.
    
    Includes all fields of `Reference`.
    
*   `encounter` (_object_) Specifies the encounter, admission, or stay in which the request was created.
    
    Includes all fields of `Reference`.
    
*   `authoredOn` (_dateTime (string)_) Specifies when the request was initially authored.
*   `requester` (_object_, required)
    
    Provides details of the requester.
    
    *   onBehalfOf can only be specified if the agent is a practitioner or a device.
    
    Includes all fields of `Reference`.
    
*   `performer` (_object_) Specifies the intended performer of the administration.
    
    Includes all fields of `Reference`.
    
*   `performerType` (_object_) Specifies the desired kind of performer of the medication administration.
    
    Includes all fields of `CodeableConcept`.
    
*   `reasonCode` (_array of CodeableConcept_) Specifies the reason or indication for writing the prescription.
*   `reasonReference` (_array of Reference_) Specifies the condition or observation that supports why the prescription is written.
*   `courseOfTherapyType` (_object_) Specifies the overall pattern of the medication administration.
    
    Includes all fields of `CodeableConcept`.
    
*   `dosageInstruction` (_array of Dosage_) Specifies how the medication should be taken.
*   `dispenseRequest` (_object_) Provides details of the medication supply authorization.
    
    Includes all fields of `BackboneElement`.
    
    *   `initialFill` (_object_) Specifies the initially filled details.
        
        Includes all fields of `BackboneElement`.
        
        *   `quantity` (_any_) Specifies the initially filled quantity.
        *   `duration` (_any_) Specifies the initially filled duration.
    *   `dispenseInterval` (_any_) Specifies the minimum period of time between dispenses.
    *   `validityPeriod` (_object_) Specifies the period when the supply is authorized.
        
        Includes all fields of `Period`.
        
    *   `numberOfRepeatsAllowed` (_positiveInt (integer)_) Specifies the number of authorized refills.
    *   `quantity` (_any_) Specifies the amount of medication to supply per dispense.
    *   `expectedSupplyDuration` (_any_) Specifies the number of days to supply per dispense.
    *   `performer` (_object_) Specifies the intended dispenser.
        
        Includes all fields of `Reference`.
        
*   `substitution` (_object_) Specifies any restrictions on the medication substitution. The 'allowed' data type is mandatory if the substitution field is passed.
    
    Includes all fields of `BackboneElement`.
    
    *   `allowed` (_medicationRequestallowedBoolean | medicationRequestallowedCodeableConcept_) The allowed data type is mandatory if the substitution field is passed. The 'allowed' choice data type can have the allowedBoolean field or the allowedCodeableConcept field in the request.
        
        One of: `medicationRequestallowedBoolean`, `medicationRequestallowedCodeableConcept`.
        
    *   `reason` (_object_) Specifies the reason why a substitution must not be made.
        
        Includes all fields of `CodeableConcept`.
        
*   `priorPrescription` (_object_) Specifies the order or prescription that's being replaced.
    
    Includes all fields of `Reference`.
    

### id

Specifies any combination of upper or lower case ASCII letters ('A'..'Z', and 'a'..'z', numerals ('0'..'9'), '-', and '.', with a length limit of 64 characters. The ID can be an integer, an un-prefixed OID, UUID, or any other identifier pattern that meets the specified constraints.

Type: `string`.

Pattern: ^\[A-Za-z0-9\\-\\.\]{1,64}$.

### ServiceRequestBundle

Includes all fields of `Bundle`.

*   `entry` (_array of ServiceRequestEntry_)

### ServiceRequest

Specifies a request for a service to be performed.

*   Rule: orderDetail must only be present if the code is present. Elements defined in ancestors: id, meta, implicitRules, language, text, contained, extension, and modifierExtension.

Includes all fields of `DomainResource`.

*   `identifier` (_array of object_) Specifies the identifiers assigned to the order.
    
    Includes all fields of `Identifier`.
    
*   `basedOn` (_array of object_) Specifies what the service request fulfills.
    
    Includes all fields of `Reference`.
    
*   `replaces` (_array of object_) Specifies what the service request replaces.
    
    Includes all fields of `Reference`.
    
*   `requisition` (_object_) Specifies the composite request ID.
    
    Includes all fields of `Identifier`.
    
*   `status` (_code (string)_, required) Specifies the status of the service request. Possible values are draft, active, on-hold, revoked, completed, entered-in-error, and unknown.  
    Allowed values: `draft`, `active`, `on-hold`, `revoked`, `completed`, `entered-in-error`, `unknown`.
*   `intent` (_code (string)_, required) Specifies the intent of the service request. Possible values are proposal, plan, directive, order, original-order, reflex-order, filler-order, instance-order, and option.  
    Allowed values: `proposal`, `plan`, `directive`, `order`, `original-order`, `reflex-order`, `filler-order`, `instance-order`, `option`.
*   `category` (_array of object_) Specifies the classification of the service.
    
    Includes all fields of `CodeableConcept`.
    
*   `priority` (_code (string)_) Specifies the priority of the service request. Possible values are routine, urgent, asap, and stat.  
    Allowed values: `routine`, `urgent`, `asap`, `stat`.
*   `doNotPerform` (_boolean_) Indicates whether the service or the procedure is to be performed (true) or not (false).
*   `code` (_object_, required) Specifies the code that indicates what's requested or ordered.
    
    Includes all fields of `CodeableConcept`.
    
*   `quantity` (_serviceRequestquantityQuantity | serviceRequestquantityRatio | serviceRequestquantityRange_) The 'quantity' choice data type can have either the quantityQuantity, quantityRatio, or quantityRange field in the request.
    
    One of: `serviceRequestquantityQuantity`, `serviceRequestquantityRatio`, `serviceRequestquantityRange`.
    
*   `subject` (_object_, required) Specifies the individual or the entity that the service is ordered for.
    
    Includes all fields of `Reference`.
    
*   `encounter` (_object_) Specifies the encounter in which the request was created.
    
    Includes all fields of `Reference`.
    
*   `occurrence` (_serviceRequestoccurrenceDateTime | serviceRequestoccurrencePeriod_) The 'occurrence' choice data type can have the occurrenceDateTime field or the occurrencePeriod field in the request.
    
    One of: `serviceRequestoccurrenceDateTime`, `serviceRequestoccurrencePeriod`.
    
*   `asNeeded` (_serviceRequestasNeededBoolean | serviceRequestasNeededCodeableConcept_) The 'asNeeded' choice data type can have the asNeededBoolean field or the asNeededCodeableConcept field in the request.
    
    One of: `serviceRequestasNeededBoolean`, `serviceRequestasNeededCodeableConcept`.
    
*   `authoredOn` (_dateTime (string)_) Specifies the date when the request was signed.
*   `requester` (_object_) Specifies the details of the requester of the service.
    
    Includes all fields of `Reference`.
    
*   `performerType` (_object_) Specifies the role of the performer.
    
    Includes all fields of `CodeableConcept`.
    
*   `performer` (_array of object_) Specifies the details of the requested performer.
    
    Includes all fields of `Reference`.
    
*   `locationCode` (_array of object_) Specifies the code of the requested location.
    
    Includes all fields of `CodeableConcept`.
    
*   `locationReference` (_array of object_) Specifies the reference to the requested location.
    
    Includes all fields of `Reference`.
    
*   `reasonCode` (_array of object_) Specifies the code that explains the reason for the procedure or service.
    
    Includes all fields of `CodeableConcept`.
    
*   `reasonReference` (_array of object_) Specifies the reason reference for the procedure or service.
    
    Includes all fields of `Reference`.
    
*   `bodySite` (_array of object_) Specifies the location on the body.
    
    Includes all fields of `CodeableConcept`.
    
*   `patientInstruction` (_string_) Specifies the patient or consumer-oriented instructions.

### Bundle

Includes all fields of `Resource`.

*   `type` (_code (string)_, required) Specifies the type of bundle. Possible values are document, message, transaction, transaction-response, batch, batch-response, history, searchset, and collection.  
    Allowed values: `document`, `message`, `transaction`, `transaction-response`, `batch`, `batch-response`, `history`, `searchset`, `collection`.
*   `total` (_unsignedInt (integer)_) Specifies the number of matches with the search results.
*   `link` (_array of object_) Specifies the links related to the bundle.
    
    Includes all fields of `BackboneElement`.
    
    *   `relation` (_string_, required) Specifies how this bundle link relates at the parent level. See [link relations](http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1).
    *   `url` (_uri (string)_, required) Specifies the reference details for the link.
*   `entry` (_array of object_)
    
    Entry in the bundle must have a resource or information.
    
    *   Rule: must be a resource unless there's a request or response.
    *   Rule: fullUrl property can't be a version-specific reference. For bundles of 'document' and 'message' type, the first resource is special and must be Composition or MessageHeader properties respectively. For all bundles, the meaning of the order of entries depends on the bundle type.
    
    Includes all fields of `Entry`.
    

### MedicationRequestEntry

Includes all fields of `Entry`.

*   `resource` (_MedicationRequest_, required)

### Resource

Specifies the base resource.

*   `id` (_id (string)_) Specifies the logical ID of the artifact
*   `meta` (_object_) Specifies the metadata about the resource.
    
    Includes all fields of `Meta`.
    

### code

Indicates that the value is taken from a set of controlled strings defined elsewhere. See [Using codes](http://hl7.org/fhir/STU3/terminologies.html). Technically, a code is restricted to a string which has at least one character and no leading or trailing whitespace, and where there is no whitespace other than single spaces in the contents.

Type: `string`.

Pattern: ^\[^\\s\]+(\[\\s\]+\[^\\s\]+)\*$.

### CodeableConcept

Represents a value that's usually supplied by providing a reference to one or more terminologies or ontologies, but can also be defined by the provision of text. CodeableConcept element is a common pattern in healthcare data.

*   `coding` (_array of Coding_) Specifies the code defined by a terminology system.
*   `text` (_string_) Specifies the plain text representation of the concept.

### DomainResource

Specifies a resource with a narrative, the extensions, and the contained resources.

*   If the resource is contained in another resource, it must not contain nested resources.
*   If the resource is contained in another resource, it must not contain any narrative.
*   If a resource is contained in another resource, it must not have a meta.versionId or a meta.lastUpdated property.
*   If the resource is contained in another resource, it must be referred to from elsewhere in the resource.

Includes all fields of `Resource`.

### Identifier

Specifies a numeric or alphanumeric string that's associated with a single object or entity within a given system. Typically, identifiers are used to connect content in resources to external content available in other frameworks or protocols. Identifiers are associated with objects, and can be changed or retired due to human or system process and errors.

*   `use` (_code (string)_) Specifies the usage of the identifier. Possible values are usual, official, temp, and secondary, if known.  
    Allowed values: `usual`, `official`, `temp`, `secondary`, `old`.
*   `system` (_uri (string)_) Specifies the namespace for the identifier value.
*   `value` (_string_) Specifies the unique value of the identifier.

### Reference

description:Many of the defined elements in a resource are references to other resources. Using these references, the resources combine to build a web of information about healthcare.

*   `reference` (_string_) Specifies the literal reference, relative, internal, or absolute URL.
*   `identifier` (_object_) Specifies the logical reference when literal reference is not known.
    
    Includes all fields of `Identifier`.
    
*   `display` (_string_) Specifies the text alternative for the resource.
*   `type` (_uri (string)_) Specifies the type the reference refers to. For example, a patient.

### medicationRequestreportedBoolean

*   `reportedBoolean` (_boolean_, required) Indicates whether the medication request is reported (true) or is a primary record (false).

### medicationRequestmedicationCodeableConcept

*   `medicationCodeableConcept` (_object_, required) Specifies the medication to be taken.
    
    Includes all fields of `CodeableConcept`.
    

### medicationRequestmedicationReference

*   `medicationReference` (_object_, required) Specifies the medication to be taken.
    
    Includes all fields of `Reference`.
    

### dateTime

Specifies a date, dateTime, or partial date as used in human communication. If hours and minutes are specified, a time zone is populated. For example, just year or year along with month. Seconds must be provided due to schema type constraints but can be zero-filled and can be ignored. Dates must be valid dates. The time "24:00" is not allowed.

Type: `string`.

Pattern: ^\[0-9\]{4}(-(0\[1-9\]|1\[0-2\])(-(0\[0-9\]|\[1-2\]\[0-9\]|3\[0-1\])(T(\[01\]\[0-9\]|2\[0-3\]):\[0-5\]\[0-9\]:\[0-5\]\[0-9\](https://./[0-9/]+)?(Z|(\\+|-)((0\[0-9\]|1\[0-3\]):\[0-5\]\[0-9\]|14:00)))?)?)?$.

### Dosage

Specifies how the medication is taken or must be taken.

Includes all fields of `BackboneElement`.

*   `sequence` (_integer_) Specifies the order of the dosage instructions.
*   `text` (_string_) Specifies the free text dosage instructions, such as SIG.
*   `additionalInstruction` (_array of CodeableConcept_) Specifies supplemental instructions. For example, "with meals" instruction.
*   `patientInstruction` (_string_) Specifies the patient or consumer-oriented instructions.
*   `timing` (_object_) Specifies when the medication must be administered.
    
    Includes all fields of `Timing`.
    
*   `asNeeded` (_object_) Indicates whether the medication is only taken when required within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the medication (CodeableConcept).
    
    Includes all fields of `dosageAsNeededBoolean`.
    
*   `site` (_object_) Specifies the body site to administer to.
    
    Includes all fields of `CodeableConcept`.
    
*   `route` (_object_) Specifies how drug should enter the body.
    
    Includes all fields of `CodeableConcept`.
    
*   `method` (_object_) Specifies the technique for administering the medication.
    
    Includes all fields of `CodeableConcept`.
    
*   `doseAndRate` (_array of object_)
    *   `type` (_object_, required) Specifies the kind of dose or rate specified.
        
        Includes all fields of `CodeableConcept`.
        
    *   `dose` (_object_) Specifies the amount of medication per dose.
        
        Includes all fields of `dosageDoseRange`.
        
    *   `rate` (_dosageRateRatio | dosageRateRange | dosageRateQuantity_) Specifies the amount of medication per unit of time. The 'rate' choice data type can have either the RateRatio, RateRange, or RateQuantity field in the request.
        
        One of: `dosageRateRatio`, `dosageRateRange`, `dosageRateQuantity`.
        

### BackboneElement

Includes all fields of `Element`.

*   `modifierExtension` (_array of Extension_) Modifier Extensions

### Period

Specifies the period defined by a start and end date or time.

Includes all fields of `Element`.

*   `start` (_dateTime (string)_) Specifies the starting time with inclusive boundary.
*   `end` (_dateTime (string)_) Specifies the end time with inclusive boundary, if not ongoing.

### positiveInt

Specifies any non-negative integer, which is >= 1. Regex - +?\[1-9\]\[0-9\]\*

Type: `integer`.

Minimum: 0.

### medicationRequestallowedBoolean

*   `allowedBoolean` (_boolean_, required) Indicates whether a substitution is allowed (true) or not (false).

### medicationRequestallowedCodeableConcept

*   `allowedCodeableConcept` (_object_, required) Specifies whether a substitution is allowed.
    
    Includes all fields of `CodeableConcept`.
    

### ServiceRequestEntry

Includes all fields of `Entry`.

*   `resource` (_ServiceRequest_, required)

### serviceRequestquantityQuantity

*   `quantityQuantity` (_object_, required) Specifies a measured or measurable amount. If a code for the unit is present, the system must also be present.
    
    Includes all fields of `Quantity`.
    

### serviceRequestquantityRatio

*   `quantityRatio` (_object_, required) Specifies a ratio of two quantity values, which is a numerator and a denominator. Numerator and denominator must both be present, or both must be absent. If both are absent, an extension is required.
    
    Includes all fields of `Ratio`.
    

### serviceRequestquantityRange

*   `quantityRange` (_object_, required) Specifies a set of values that are bounded by a lower and higher limit.
    
    Includes all fields of `Range`.
    

### serviceRequestoccurrenceDateTime

*   `occurrenceDateTime` (_dateTime (string)_, required) Specifies when the service must occur.

### serviceRequestoccurrencePeriod

*   `occurrencePeriod` (_object_, required) Specifies when the service must occur.
    
    Includes all fields of `Period`.
    

### serviceRequestasNeededBoolean

*   `asNeededBoolean` (_boolean_, required) Specifies the preconditions for the service.

### serviceRequestasNeededCodeableConcept

*   `asNeededCodeableConcept` (_object_, required) Specifies the preconditions for the service.
    
    Includes all fields of `CodeableConcept`.
    

### unsignedInt

Specifies any non-negative integer, which is >= 0. Regex - \[0\]|(\[1-9\]\[0-9\]\*)

Type: `integer`.

Minimum: 0.

### uri

Specifies a Uniform Resource Identifier Reference. See [Uniform Resource Identifier](https://tools.ietf.org/html/rfc3986). Note: URIs are case-sensitive. For UUID (urn:uuid:53fefa32-fcbb-4ff8-8a92-55ee120877b7), use all lowercase. URIs can be absolute or relative, and can have an optional fragment identifier. Regex: \\S\*

Type: `string`.

### Entry

Entry in the bundle must have a resource or information.

*   Rule: must be a resource unless there's a request or response.
*   Rule: fullUrl property can't be a version specific reference. For bundles of 'document' and 'message' type, the first resource is special and must be the Composition or MessageHeader properties respectively. For all bundles, the meaning of the order of entries depends on the bundle type.

Includes all fields of `BackboneElement`.

*   `resource` (_object_) Specifies a resource in the bundle.
    
    Includes all fields of `Resource`.
    
*   `fullUrl` (_uri (string)_) Specifies the URI for the resource, which is the absolute URL server address, or URI for UUID or OID.
*   `search` (_object_) Specifies the search-related information.
    
    Includes all fields of `BackboneElement`.
    
    *   `mode` (_code (string)_) Specifies why the entry is in the result set. Possible values are match, include, and outcome.  
        Allowed values: `match`, `include`, `outcome`.

### Meta

Each resource contains an element 'meta' of type 'Meta', which is a set of metadata that provides technical and workflow context to the resource. The metadata items are optional, though some or all of them may be required in particular implementations or contexts of use.

Includes all fields of `Element`.

*   `versionId` (_id (string)_) Specifies the version specific identifier.
*   `lastUpdated` (_instant (string)_) Specifies when the resource version last changed.
*   `source` (_uri (string)_) Specifies the source of the resource.
*   `profile` (_array of canonical_) Specifies the profiles the resource claims to conform to.
*   `security` (_array of Coding_) Specifies the security labels applied to the resource.
*   `tag` (_array of Coding_) Specifies the tags applied to the resource.

### Coding

Represents a defined concept using a symbol from a defined code system. SSee [Using codes](http://hl7.org/fhir/STU3/terminologies.html).

Includes all fields of `Element`.

*   `system` (_uri (string)_) Specifies the identity of the terminology system.
*   `version` (_string_) Specifies the version of the system, if relevant.
*   `code` (_code (string)_) Specifies the symbol in a syntax defined by the system.
*   `display` (_string_) Specifies the representation defined by the system.
*   `userSelected` (_boolean_)

### Timing

Specifies an event that can occur multiple times. Timing schedules are used for specifying when events are expected or requested to occur and can also be used to represent a schedule that was followed for past events. A timing schedule can be a list of events and criteria for when the event happens, which can be expressed in a structured form and as a code. When both event and a repeating specification are provided, the list of events must be understood as an interpretation of the information in the repeat structure.

*   `event` (_array of dateTime_) Specifies when the event occurs.
*   `repeat` (_object_) Specifies when the event is to occur.
    
    Includes all fields of `Element`.
    
    *   `bounds` (_timingboundsDuration | timingboundsRange | timingboundsPeriod_) Specifies the range of lengths or start and end limits.
        
        One of: `timingboundsDuration`, `timingboundsRange`, `timingboundsPeriod`.
        
    *   `count` (_positiveInt (integer)_) Specifies the number of times to repeat.
    *   `countMax` (_positiveInt (integer)_) Specifies the maximum number of times to repeat.
    *   `duration` (_decimal (number)_) Specifies the duration of the event.
    *   `durationMax` (_decimal (number)_) Specifies the maximum duration of the event.
    *   `durationUnit` (_UnitOfTime (string)_) Specifies a unit of time (UCUM) in seconds, minutes, hours, days, weeks, months, or years. Possible values are s, min, h, d, wk, mo, or a.
    *   `frequency` (_positiveInt (integer)_) Specifies the frequency wherein the event occurs frequency times per period.
    *   `frequencyMax` (_positiveInt (integer)_) Specifies the maximum frequency wherein the event occurs up to frequencyMax times per period.
    *   `period` (_decimal (number)_) Specifies the period wherein the event occurs frequency times per period.
    *   `periodMax` (_decimal (number)_) Specifies the upper limit of period (3-4 hours).
    *   `periodUnit` (_UnitOfTime (string)_) Specifies a unit of time (UCUM) in seconds, minutes, hours, days, weeks, months, or years. Possible values are s, min, h, d, wk, mo, or a.  
        Allowed values: `s`, `min`, `h`, `d`, `wk`, `mo`, `a`.
    *   `when` (_array of code (string)_) Specifies the regular life events the event is tied to.  
        Items: Allowed values: `HS`, `WAKE`, `C`, `CM`, `CD`, `CV`, `AC`, `ACM`, `ACD`, `ACV`, `PC`, `PCM`, `PCD`, `PCV`.
    *   `offset` (_unsignedInt (integer)_) Specifies the minutes from event (before or after).

### dosageAsNeededBoolean

*   `asNeededBoolean` (_boolean_, required) Indicates whether the Medication is only taken when needed within a specific dosing schedule (true) or not (false).

### dosageDoseRange

*   `doseRange` (_object_) Specifies the amount of medication per dose.
    
    Includes all fields of `Range`.
    

### dosageRateRatio

*   `rateRatio` (_object_) Specifies the amount of medication per unit of time.
    
    Includes all fields of `Ratio`.
    

### dosageRateRange

*   `rateRange` (_object_) Specifies the amount of medication per unit of time.
    
    Includes all fields of `Range`.
    

### dosageRateQuantity

*   `rateQuantity` (_any_) Specifies the amount of medication per unit of time.

### Element

*   `id` (_id (string)_) Specifies the internal ID of the element.
*   `extension` (_array of Extension_) Specifies the additional content defined by implementations from the element: extension (recursive).

### Extension

Optional. Extensions Element + Rule must have extensions or value\[x\], but not both elements defined in ancestors id or extension.

Includes all fields of `Element`.

*   `url` (_uri (string)_, required) Identifies the meaning of the extension.
*   `value` (_enumvalueInteger | enumvalueDecimal | enumvalueDateTime | enumvalueDate | enumvalueInstant | enumvalueString | enumvalueUri | enumvalueBoolean | enumvalueCode | enumvalueCoding | enumvalueCodeableConcept | enumvalueIdentifier | enumvalueQuantity | enumvalueRange | enumvaluePeriod | enumvalueRatio | enumvalueHumanName | enumvalueReference | enumvalueCanonical | enumvalueId | enumvaluePositiveInt | enumvalueTime | enumvalueUnsignedInt | enumvalueAge | enumvalueCount | enumvalueDistance | enumvalueDuration | enumvalueTiming | enumvalueDosage | enumvalueMeta_) Value of extension
    
    One of: `enumvalueInteger`, `enumvalueDecimal`, `enumvalueDateTime`, `enumvalueDate`, `enumvalueInstant`, `enumvalueString`, `enumvalueUri`, `enumvalueBoolean`, `enumvalueCode`, `enumvalueCoding`, `enumvalueCodeableConcept`, `enumvalueIdentifier`, `enumvalueQuantity`, `enumvalueRange`, `enumvaluePeriod`, `enumvalueRatio`, `enumvalueHumanName`, `enumvalueReference`, `enumvalueCanonical`, `enumvalueId`, `enumvaluePositiveInt`, `enumvalueTime`, `enumvalueUnsignedInt`, `enumvalueAge`, `enumvalueCount`, `enumvalueDistance`, `enumvalueDuration`, `enumvalueTiming`, `enumvalueDosage`, `enumvalueMeta`.
    

### Quantity

Specifies a measured amount or an amount that can potentially be measured.

*   `value` (_decimal (number)_) Specifies the numerical value with implicit precision.
*   `comparator` (_code (string)_) Specifies how to understand the numerical value.  
    Allowed values: `<`, `<=`, `>=`, `>`.
*   `unit` (_string_) Specifies the unit representation.
*   `system` (_uri (string)_) Specifies the system that defines a coded unit form.
*   `code` (_code (string)_) Specifies the coded form of the unit.

### Ratio

Specifies the relationship between two quantity values expressed as a numerator and a denominator.

*   `numerator` (_object_) Specifies the numerator value.
    
    Includes all fields of `Quantity`.
    
*   `denominator` (_object_) Specifies the denominator value.
    
    Includes all fields of `Quantity`.
    

### Range

Specifies a set of ordered quantity values defined by a low and high limit.

*   `low` (_object_) Specifies the lower limit.
    
    Includes all fields of `Quantity`.
    
*   `high` (_object_) Specifies the higher limit.
    
    Includes all fields of `Quantity`.
    

### instant

Specifies an instant in time that's known at least to the second and always includes a time zone. Note: This is intended for precisely observed times, such as system logs, and not human-reported time. For human-reported time, use date and dateTime. Instant is a more constrained dateTime type. Note: Instant type is for system times, not human times (see date and dateTime).

Type: `string`.

Pattern: ^\[0-9\]{4}(-(0\[1-9\]|1\[0-2\])(-(0\[0-9\]|\[1-2\]\[0-9\]|3\[0-1\])(T(\[01\]\[0-9\]|2\[0-3\]):\[0-5\]\[0-9\]:\[0-5\]\[0-9\](https://./[0-9/]+)?(Z|(\\+|-)((0\[0-9\]|1\[0-3\]):\[0-5\]\[0-9\]|14:00)))))$.

### canonical

Specifies a URI that refers to a resource by its canonical URL (resources with a url property). The canonical type differs from a URI wherein it has a special meaning in the specification. The URI can have a version appended, separated by a vertical bar (|). Note that the type canonical is not used for the actual canonical URLs that are the target of these references, but for the URIs that refer to them, and can have the version suffix in them. Like other URIs, elements of type canonical can also have #fragment references.

Type: `uri (string)`.

### timingboundsDuration

*   `boundsDuration` (_any_, required) Length/Range of lengths, or (Start and/or end) limits

### timingboundsRange

*   `boundsRange` (_object_, required) Length/Range of lengths, or (Start and/or end) limits
    
    Includes all fields of `Range`.
    

### timingboundsPeriod

*   `boundsPeriod` (_object_, required) Length/Range of lengths, or (Start and/or end) limits
    
    Includes all fields of `Period`.
    

### decimal

Specifies rational numbers that have a decimal representation. Check the precision of the number by using the regex: -?(0|\[1-9\]\[0-9\]\*)(.\[0-9\]+)?(\[eE\]\[+-\]?\[0-9\]+)?

Type: `number`.

### UnitOfTime

Specifies a unit of time (UCUM).

Type: `code (string)`.

Allowed values: `s`, `min`, `h`, `d`, `wk`, `mo`, `a`.

### enumvalueInteger

*   `valueInteger` (_integer_, required) Specifies the integer value of the extension.

### enumvalueDecimal

*   `valueDecimal` (_decimal (number)_, required) Specifies the decimal value of the extension.

### enumvalueDateTime

*   `valueDateTime` (_dateTime (string)_, required) Specifies the DateTime value of the extension.

### enumvalueDate

*   `valueDate` (_date (string)_, required) Specifies the Date value of the extension.

### enumvalueInstant

*   `valueInstant` (_instant (string)_, required) Specifies the instant value of the extension.

### enumvalueString

*   `valueString` (_string_, required) Specifies the string value of the extension.

### enumvalueUri

*   `valueUri` (_uri (string)_, required) Specifies the URI value of the extension.

### enumvalueBoolean

*   `valueBoolean` (_boolean_, required) Specifies the boolean value of the extension.

### enumvalueCode

*   `valueCode` (_code (string)_, required) Specifies the code value of the extension.

### enumvalueCoding

*   `valueCoding` (_object_, required) Specifies the coding value of the extension.
    
    Includes all fields of `Coding`.
    

### enumvalueCodeableConcept

*   `valueCodeableConcept` (_object_, required) Specifies the CodeableConcept value of the extension.
    
    Includes all fields of `CodeableConcept`.
    

### enumvalueIdentifier

*   `valueIdentifier` (_object_, required) Specifies the identifier value of the extension.
    
    Includes all fields of `Identifier`.
    

### enumvalueQuantity

*   `valueQuantity` (_object_, required) Specifies the quantity value of the extension.
    
    Includes all fields of `Quantity`.
    

### enumvalueRange

*   `valueRange` (_object_, required) Specifies the range value of the extension.
    
    Includes all fields of `Range`.
    

### enumvaluePeriod

*   `valuePeriod` (_object_, required) Specifies the period of the extension.
    
    Includes all fields of `Period`.
    

### enumvalueRatio

*   `valueRatio` (_object_, required) Specifies the ratio of the extension.
    
    Includes all fields of `Range`.
    

### enumvalueHumanName

*   `valueHumanName` (_object_, required) Specifies the HumanName value of the extension.
    
    Includes all fields of `HumanName`.
    

### enumvalueReference

*   `valueReference` (_object_, required) Specifies the reference value of the extension.
    
    Includes all fields of `Reference`.
    

### enumvalueCanonical

*   `valueCanonical` (_canonical (string)_, required) Specifies the canonical value of the extension.

### enumvalueId

*   `valueId` (_id (string)_, required) Specifies the value ID of the extension.

### enumvaluePositiveInt

*   `valuePositiveInt` (_positiveInt (integer)_, required) Specifies the positive integer value of the extension.

### enumvalueTime

*   `valueTime` (_time (string)_, required) Specifies the time value of the extension.

### enumvalueUnsignedInt

*   `valueUnsignedInt` (_unsignedInt (integer)_, required) Specifies the unsigned integer value of the extension.

### enumvalueAge

*   `valueAge` (_any_, required) Specifies the age value of the extension.

### enumvalueCount

*   `valueCount` (_any_, required) Specifies the count value of the extension.

### enumvalueDistance

*   `valueDistance` (_any_, required) Specifies the distance value of the extension.

### enumvalueDuration

*   `valueDuration` (_any_, required) Specifies the duration value of the extension.

### enumvalueTiming

*   `valueTiming` (_object_, required) Specifies the timing value of the extension.
    
    Includes all fields of `Timing`.
    

### enumvalueDosage

*   `valueDosage` (_object_, required) Specifies the dosage value of the extension.
    
    Includes all fields of `Dosage`.
    

### enumvalueMeta

*   `valueMeta` (_object_, required) Specifies the meta value of the extension.
    
    Includes all fields of `Meta`.
    

### date

Specifies a date or partial date as used in human communication wherein there's no time zone. Dates must be valid dates. For example, just year or year along with month.

Type: `string`.

Pattern: ^\[0-9\]{4}(-(0\[1-9\]|1\[0-2\])(-(0\[0-9\]|\[1-2\]\[0-9\]|3\[0-1\]))?)?$. Example: `1970-08-07`.

### HumanName

Specifies the name of the human with text, parts, and usage information.

Includes all fields of `Element`.

*   `use` (_code (string)_)  
    Allowed values: `usual`, `official`, `temp`, `nickname`, `anonymous`, `old`, `maiden`.
*   `text` (_string_) Specifies the text representation of the full name.
*   `family` (_string_) Specifies the family name, which is also often called 'Surname'.
*   `given` (_array of string_) Specifies the given names, which is not always first name and includes middle names.
*   `prefix` (_array of string_) Specifies the parts that appear before the name.
*   `suffix` (_array of string_) Specifies the parts that appear after the name.
*   `period` (_object_) Specifies the period when name was or is in use.
    
    Includes all fields of `Period`.
    

### time

Specifies a time during the day with no date specified and can be converted to a duration since midnight. Seconds must be provided due to schema type constraints but can be zero-filled and can be ignored. The time "24:00" is not allowed, and neither is a time zone.

Type: `string`.

Pattern: ^(\[01\]\[0-9\]|2\[0-3\]):\[0-5\]\[0-9\]:\[0-5\]\[0-9\](https://./[0-9/]+)?$.