---
schema_version: "1"
id: 5b2235f3b7ef5495684827bd3f33f1eb761d58a7f2ad6fafae99196a0dfa37a6
title: Bundle
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries-integrations/health/references/generated-api-specs/bundle.md
canonical_url: https://developer.salesforce.com/docs/industries/health/references/bundle
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6805ab51cb45ecbbcbdf5cd022c99f2ef7b8962d3cdf53733ba13f8b5b5809e2
products:
  - Salesforce Healthcare API
  - Industries Integrations
---
Bundle

# Bundle

Use the FHIR R4 Bundle REST API to create and store a collection of healthcare resources. The API validates the input data according to the FHIR resource structures and then stores the bundle in a database or storage system.

**Version:** v1

Protocols: https.

## Operations

### POST Create a bundle

`POST /`

Creates a bundle record.

#### Parameters

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

#### Request body

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

_Example_

```
{
    "resourceType": "Bundle",
    "type": "batch",
    "entry": [
        {
            "fullUrl": "urn:uuid:e16eac01-a5ee-4904-b1c8-f4bd56e338d5",
            "resource": {
                "resourceType": "DiagnosticReport",
                "identifier": [
                    {
                        "use": "official",
                        "type": {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                                    "code": "PLAC",
                                    "display": "Placer Identifier"
                                }
                            ],
                            "text": "Placer Identifier"
                        },
                        "system": "urn:oid:1.2.840.114350.1.13.0.1.7.2.798268",
                        "value": "Diag001"
                    }
                ],
                "status": "final",
                "category": [
                    {
                        "coding": [
                            {
                                "system": "urn:oid:1.2.840.114350.1.13.0.1.7.10.798268.30",
                                "code": "Lab"
                            }
                        ],
                        "text": "Lab"
                    }
                ],
                "code": {
                    "coding": [
                        {
                            "system": "urn:oid:1.2.840.114350.1.13.0.1.7.2.696580",
                            "code": "1696",
                            "display": "CBC AND DIFFERENTIAL"
                        },
                        {
                            "system": "urn:oid:2.16.840.1.113883.6.96",
                            "code": "9564003",
                            "display": "CBC AND DIFFERENTIAL"
                        },
                        {
                            "system": "http://loinc.org",
                            "code": "57837-98",
                            "display": "Body weight"
                        },
                        {
                            "system": "http://loinc.org",
                            "code": "57567-99",
                            "display": "Body weight"
                        }
                    ],
                    "text": "CBC and differential"
                },
                "subject": {
                    "reference": "Patient/001RO000004lrTr",
                    "display": "Lopez, Camila Maria"
                },
                "effectiveDateTime": "2019-05-28T14:21:00Z",
                "effectivePeriod": {
                    "start": "2008-06-18T09:23:00+10:00",
                    "end": "2009-06-18T09:23:00+10:00"
                },
                "issued": "2019-05-28T14:21:00Z"
            },
            "request": {
                "method": "POST",
                "url": "DiagnosticReport"
            }
        },
        {
            "fullUrl": "urn:uuid:e16eac01-a5ee-4904-b1c8-f4bd56e338d6",
            "resource": {
                "resourceType": "Observation",
                "name": "Observation Data Sample",
                "identifier": [
                    {
                        "use": "official",
                        "type": {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/v2-0204",
                                    "code": "TDA1",
                                    "display": "Observation"
                                }
                            ]
                        },
                        "value": "Obs01"
                    }
                ],
                "status": "final",
                "category": [
                    {
                        "coding": [
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                                "code": "vital-sign",
                                "display": "vital-sign"
                            }
                        ]
                    }
                ],
                "code": {
                    "coding": [
                        {
                            "system": "http://loinc.org",
                            "code": "57837-99",
                            "display": "Body weight"
                        },
                        {
                            "system": "http://loinc.org",
                            "code": "57067-96",
                            "display": "Body weight"
                        },
                        {
                            "system": "http://loinc.org",
                            "code": "56877-97",
                            "display": "Body weight"
                        }
                    ],
                    "text": "Body weight"
                },
                "subject": {
                    "reference": "Patient/001RO000004lrTr"
                },
                "effectiveDateTime": "2004-05-13T10:49:49-05:00",
                "effectivePeriod": {
                    "start": "2008-07-18T09:23:00+10:00",
                    "end": "2009-07-18T09:23:00+10:00"
                },
                "issued": "2004-05-13T10:49:49.073-05:00",
                "valueQuantity": {
                    "value": 99.97,
                    "system": "http://unitsofmeasure.org",
                    "code": "ratio"
                },
                "valueCodeableConcept": {
                    "coding": [
                        {
                            "system": "http://loinc.org",
                            "code": "65454-18",
                            "display": "Body weight"
                        }
                    ],
                    "text": "Body weight"
                },
                "valueString": "Observation Test Value",
                "valueBoolean": false,
                "valuePeriod": {
                    "start": "2008-07-18T09:23:00+10:00",
                    "end": "2009-07-18T09:23:00+10:00"
                },
                "interpretation": [
                    {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "468359832",
                                "display": "Negative"
                            },
                            {
                                "system": "https://acme.lab/resultcodes",
                                "code": "GTN",
                                "display": "Negative"
                            }
                        ],
                        "text": "Negative for Chlamydia Trachomatis rRNA"
                    }
                ],
                "bodySite": {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "65904435",
                            "display": "Left external ear structure"
                        }
                    ],
                    "text": "Left Ear"
                },
                "method": {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "867859167",
                            "display": "Negative"
                        },
                        {
                            "system": "https://acme.lab/resultcodes",
                            "code": "KAG1",
                            "display": "Negative"
                        }
                    ],
                    "text": "Negative for Chlamydia Trachomatis rRNA"
                },
                "referenceRange": [
                    {
                        "low": {
                            "value": 7.9,
                            "unit": "mm[Hg]"
                        },
                        "high": {
                            "value": 72.95,
                            "unit": "mm[Hg]"
                        },
                        "text": "Negative for Chlamydia Trachomatis rRNA"
                    }
                ],
                "component": [
                    {
                        "name": "Observatioon Component Data",
                        "code": {
                            "coding": [
                                {
                                    "system": "http://loinc.org",
                                    "code": "745968-97",
                                    "display": "Body weight"
                                }
                            ],
                            "text": "Body weight"
                        },
                        "valueQuantity": {
                            "value": 99.94,
                            "system": "http://unitsofmeasure.org",
                            "code": "ratio"
                        },
                        "valueCodeableConcept": [
                            {
                                "coding": [
                                    {
                                        "system": "http://loinc.org",
                                        "code": "34555-84",
                                        "display": "Body weight"
                                    }
                                ],
                                "text": "Body weight"
                            }
                        ],
                        "valueString": "Observation Component Test Value",
                        "valueBoolean": false,
                        "valuePeriod": {
                            "start": "2008-08-18T09:23:00+10:00",
                            "end": "2009-08-18T09:23:00+10:00"
                        },
                        "dataAbsentReason": {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "157183",
                                    "display": "Negative"
                                },
                                {
                                    "system": "https://acme.lab/resultcodes",
                                    "code": "FYA",
                                    "display": "Negative"
                                }
                            ],
                            "text": "Negative for Chlamydia Trachomatis rRNA"
                        },
                        "interpretation": [
                            {
                                "coding": [
                                    {
                                        "system": "http://snomed.info/sct",
                                        "code": "768976-09",
                                        "display": "Negative"
                                    },
                                    {
                                        "system": "https://acme.lab/resultcodes",
                                        "code": "DFG1",
                                        "display": "Negative"
                                    }
                                ],
                                "text": "Negative for Chlamydia Trachomatis rRNA"
                            }
                        ],
                        "referenceRange": [
                            {
                                "low": {
                                    "value": 7.81,
                                    "unit": "mm[Hg]"
                                },
                                "high": {
                                    "value": 72.96,
                                    "unit": "mm[Hg]"
                                },
                                "text": "Negative for Chlamydia Trachomatis rRNA"
                            }
                        ]
                    }
                ]
            },
            "request": {
                "method": "POST",
                "url": "Observation"
            }
        },
        {
            "fullUrl": "urn:uuid:e16eac01-a5ee-4904-b1c8-f4bd56e338d7",
            "resource": {
                "resourceType": "Procedure",
                "identifier": [
                    {
                        "use": "official",
                        "value": "18-443073811",
                        "type": {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/v2-0204",
                                    "code": "MR10a",
                                    "display": "MisterKWOK9"
                                },
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/v2-0204",
                                    "code": "MR010b",
                                    "display": "MisterKWOK9"
                                }
                            ],
                            "text": "Identifier Bundle"
                        }
                    },
                    {
                        "use": "official",
                        "value": "18-443073821",
                        "type": {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/v2-0204",
                                    "code": "MR10",
                                    "display": "MisterKWO10"
                                }
                            ],
                            "text": "Identifier Bundle"
                        }
                    },
                    {
                        "use": "usual",
                        "value": "17-443073831",
                        "type": {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                                    "code": "MRS11",
                                    "display": "MissesKWOK9"
                                }
                            ],
                            "text": "Identifier Bundle"
                        }
                    },
                    {
                        "use": "usual",
                        "system": "urn:custom:sourcesystem:fhirid",
                        "value": "HONPROCEDURE003"
                    }
                ],
                "status": "preparation",
                "statusReason": {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "SR12342",
                            "display": "Status Reason (Status Reason)"
                        }
                    ],
                    "text": "Status Reason"
                },
                "category": {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "CAT12342",
                            "display": "Diagnostic procedure (procedure)"
                        }
                    ],
                    "text": "Diagnostic procedure"
                },
                "code": {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "CODE12342",
                            "display": "Appendectomy (Procedure)"
                        }
                    ],
                    "text": "Appendectomy"
                },
                "subject": {
                    "reference": "Patient/001RO000004lrTr"
                },
                "performedDateTime": "2020-02-24T03:38:15-06:00",
                "performer": [
                    {
                        "function": {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "PFC12342",
                                    "display": "Appendectomy (Procedure)"
                                }
                            ],
                            "text": "Appendectomy"
                        },
                        "actor": {
                            "reference": "Organization/001RO000004RC9LYAW"
                        }
                    }
                ],
                "reasonCode": [
                    {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "RC12342",
                                "display": "Testing"
                            }
                        ],
                        "text": "Testing"
                    }
                ],
                "bodySite": [
                    {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "BSC12342",
                                "display": "Cough (finding)"
                            }
                        ],
                        "text": "Cough (finding)"
                    }
                ],
                "outcome": {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "OCC12342",
                            "display": "Cough (finding)"
                        }
                    ],
                    "text": "Cough (finding)"
                },
                "complication": [
                    {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "COMPC12341",
                                "display": "Cough (finding)"
                            }
                        ],
                        "text": "Cough (finding)"
                    }
                ],
                "followUp": [
                    {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "FLPC12342",
                                "display": "Cough (finding)"
                            }
                        ],
                        "text": "ROS 5 days  - 2013-04-10"
                    }
                ]
            },
            "request": {
                "method": "POST",
                "url": "Procedure"
            }
        },
        {
            "fullUrl": "urn:uuid:e16eac01-a5ee-4904-b1c8-f4bd56e338d8",
            "resource": {
                "resourceType": "AllergyIntolerance",
                "clinicalStatus": {
                    "coding": [
                        {
                            "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",
                            "code": "active07"
                        }
                    ]
                },
                "verificationStatus": {
                    "coding": [
                        {
                            "system": "http://terminology.hl7.org/CodeSystem/condition-ver-status",
                            "code": "confirmed07"
                        }
                    ]
                },
                "type": "allergy",
                "category": [
                    "food"
                ],
                "criticality": "high",
                "code": {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "256307007",
                            "display": "Banana"
                        }
                    ],
                    "text": "Banana1"
                },
                "patient": {
                    "reference": "Patient/001RO000004lrTr"
                },
                "onsetDateTime": "2020-02-24T09:38:16.000Z",
                "recordedDate": "2020-02-24T09:38:16.000Z",
                "lastOccurrence": "2020-02-24T09:38:15.000Z",
                "reaction": [
                    {
                        "substance": {
                            "coding": [
                                {
                                    "system": "http://www.nlm.nih.gov/research/umls/rxnorm",
                                    "code": "116059306",
                                    "display": "cashew nut allergenic extract Injectable Product"
                                }
                            ]
                        },
                        "manifestation": [
                            {
                                "coding": [
                                    {
                                        "system": "http://snomed.info/sct",
                                        "code": "3957900106",
                                        "display": "Anaphylactic reaction"
                                    }
                                ]
                            }
                        ],
                        "description": "Challenge Protocol. Severe reaction to subcutaneous cashew extract. Epinephrine administered",
                        "onset": "2020-02-24T09:38:15.000Z",
                        "severity": "severe",
                        "exposureRoute": {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "3420600506",
                                    "display": "Subcutaneous route"
                                }
                            ]
                        }
                    },
                    {
                        "substance": {
                            "coding": [
                                {
                                    "system": "http://www.nlm.nih.gov/research/umls/rxnorm",
                                    "code": "116059306",
                                    "display": "cashew nut allergenic extract Injectable Product"
                                }
                            ]
                        },
                        "manifestation": [
                            {
                                "coding": [
                                    {
                                        "system": "http://snomed.info/sct",
                                        "code": "3957900106",
                                        "display": "Anaphylactic reaction"
                                    }
                                ]
                            }
                        ],
                        "onset": "2020-02-24T09:38:15.000Z",
                        "severity": "moderate",
                        "exposureRoute": {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "3420600q506",
                                    "display": "Subcutaneous routeq"
                                }
                            ]
                        }
                    }
                ]
            },
            "request": {
                "method": "POST",
                "url": "AllergyIntolerance"
            }
        },
        {
            "request": {
                "method": "GET",
                "url": "Encounter?patient=001RO000004xc4sYAA"
            }
        },
        {
            "request": {
                "method": "GET",
                "url": "Encounter/0kGRO00000009Td2AI"
            }
        },
        {
            "fullUrl": "urn:uuid:e16eac01-a5ee-4904-b1c8-f4bd56e338d9",
            "resource": {
                "resourceType": "Condition",
                "clinicalStatus": {
                    "coding": [
                        {
                            "system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
                            "code": "resolved"
                        }
                    ]
                },
                "verificationStatus": {
                    "coding": [
                        {
                            "system": "http://terminology.hl7.org/CodeSystem/condition-ver-status",
                            "code": "confirmed"
                        }
                    ]
                },
                "category": [
                    {
                        "coding": [
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/condition-category",
                                "code": "encounter-diagnosis-06",
                                "display": "Encounter Diagnosis-06"
                            }
                        ]
                    }
                ],
                "severity": {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "49727004-06",
                            "display": "Fever (finding)"
                        }
                    ],
                    "text": "Fever (finding)"
                },
                "code": {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "49727003-07",
                            "display": "Fever (finding)"
                        }
                    ],
                    "text": "Fever (finding)"
                },
                "bodySite": [
                    {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "49727002-06",
                                "display": "Cough (finding)"
                            },
                            {
                                "system": "http://snomed.info/sct",
                                "code": "49521004",
                                "display": "Left external ear structure"
                            }
                        ],
                        "text": "Cough (finding)"
                    }
                ],
                "subject": {
                    "reference": "Patient/001RO000004lrTr"
                },
                "onsetDateTime": "2020-02-24T03:38:15-06:00",
                "abatementDateTime": "2020-03-09T06:01:15-05:00",
                "recordedDate": "2020-02-24T03:38:15-06:00",
                "stage": [
                    {
                        "summary": {
                            "coding": [
                                {
                                    "system": "http://snomed.info/system",
                                    "version": "1.1",
                                    "code": "123-06",
                                    "display": "stage-Display Number"
                                }
                            ],
                            "text": "stage-text-06"
                        }
                    }
                ]
            },
            "request": {
                "method": "POST",
                "url": "Condition"
            }
        },

        {
            "fullUrl": "urn:uuid:e16eac01-a5ee-4904-b1c8-f4bd56e338e0",
        "resource": {
  "resourceType": "Encounter",
  "id": "0kGRO00000008KQ2AY",
   "identifier": [
    {
      "use": "temp",
      "system": "http://healthcare.example.org/identifiers/enocunter",
      "value": "007"
    }
  ],
  "status": "in-progress",
  "class": {
    "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
    "code": "INP",
    "display": "inpatient encounter"
  },
  "type":[
    {
      "coding": [
        {
          "system": "http://snomed.info/sct",
          "code": "3673360083445253211",
          "display": "Chemo"
        },
        {
          "system": "http://snomed.info/sct",
          "code": "3673360028845945934322",
          "display": "CPA1145"
        }
      ]
    }],
     "subject": {
    "reference": "Patient/001RO000004lrTr"
  },
  "period": {
        "start": "2020-01-10T12:00:00.000Z",
        "end": "2022-03-10T17:20:34.000Z"
    },
  "partOf": {
    "reference": "Encounter/0kGRO00000008K12AI"
  }
},
        "request": {
        "method": "PUT",
        "url": "Encounter/0kGRO00000008KQ2AY"
        }}
    ]
}
```

#### Responses

*   **201** Resource created.
    
    Media type: `application/fhir+json`. Schema: `Bundle`.
    
    _Example_
    
    ```
    {
        "resourceType": "Bundle",
        "type": "batch-response",
        "timestamp": "2023-06-22T10:15:36.449Z",
        "entry": [
            {
                "resource": {
                    "resourceType": "DiagnosticReport",
                    "identifier": [
                        {
                            "use": "official",
                            "type": {
                                "coding": [
                                    {
                                        "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                                        "code": "PLAC",
                                        "display": "Placer Identifier"
                                    }
                                ],
                                "text": "Placer Identifier"
                            },
                            "system": "urn:oid:1.2.840.114350.1.13.0.1.7.2.798268",
                            "value": "Diag001"
                        }
                    ],
                    "status": "final",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "urn:oid:1.2.840.114350.1.13.0.1.7.10.798268.30",
                                    "code": "Lab"
                                }
                            ],
                            "text": "Lab"
                        }
                    ],
                    "code": {
                        "coding": [
                            {
                                "system": "urn:oid:1.2.840.114350.1.13.0.1.7.2.696580",
                                "code": "1696",
                                "display": "CBC AND DIFFERENTIAL"
                            },
                            {
                                "system": "urn:oid:2.16.840.1.113883.6.96",
                                "code": "9564003",
                                "display": "CBC AND DIFFERENTIAL"
                            },
                            {
                                "system": "http://loinc.org",
                                "code": "57837-98",
                                "display": "Body weight"
                            },
                            {
                                "system": "http://loinc.org",
                                "code": "57567-99",
                                "display": "Body weight"
                            }
                        ],
                        "text": "CBC and differential"
                    },
                    "subject": {
                        "reference": "Patient/001RO000004lrTr",
                        "display": "Lopez, Camila Maria"
                    },
                    "effectiveDateTime": "2019-05-28T14:21:00Z",
                    "effectivePeriod": {
                        "start": "2008-06-18T09:23:00+10:00",
                        "end": "2009-06-18T09:23:00+10:00"
                    },
                    "issued": "2019-05-28T14:21:00Z",
                    "id": "0lQRO00000006lr2AA"
                },
                "response": {
                    "status": "201 Created",
                    "location": "https://mule-worker-internal-fhir-r4-clinical-diagnostics-api.us-e2.cloudhub.io:8092/clinical-diagnostics/fhir-r4/v1/DiagnosticReport/0lQRO00000006lr2AA"
                }
            },
            {
                "resource": {
                    "resourceType": "Observation",
                    "name": "Observation Data Sample",
                    "identifier": [
                        {
                            "use": "official",
                            "type": {
                                "coding": [
                                    {
                                        "system": "http://terminology.hl7.org/CodeSystem/v2-0204",
                                        "code": "TDA1",
                                        "display": "Observation"
                                    }
                                ]
                            },
                            "value": "Obs01"
                        }
                    ],
                    "status": "final",
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                                    "code": "vital-sign",
                                    "display": "vital-sign"
                                }
                            ]
                        }
                    ],
                    "code": {
                        "coding": [
                            {
                                "system": "http://loinc.org",
                                "code": "57837-99",
                                "display": "Body weight"
                            },
                            {
                                "system": "http://loinc.org",
                                "code": "57067-96",
                                "display": "Body weight"
                            },
                            {
                                "system": "http://loinc.org",
                                "code": "56877-97",
                                "display": "Body weight"
                            }
                        ],
                        "text": "Body weight"
                    },
                    "subject": {
                        "reference": "Patient/001RO000004lrTr"
                    },
                    "effectiveDateTime": "2004-05-13T10:49:49-05:00",
                    "effectivePeriod": {
                        "start": "2008-07-18T09:23:00+10:00",
                        "end": "2009-07-18T09:23:00+10:00"
                    },
                    "issued": "2004-05-13T10:49:49.073-05:00",
                    "valueQuantity": {
                        "value": 99.97,
                        "system": "http://unitsofmeasure.org",
                        "code": "ratio"
                    },
                    "valueCodeableConcept": {
                        "coding": [
                            {
                                "system": "http://loinc.org",
                                "code": "65454-18",
                                "display": "Body weight"
                            }
                        ],
                        "text": "Body weight"
                    },
                    "valueString": "Observation Test Value",
                    "valueBoolean": false,
                    "valuePeriod": {
                        "start": "2008-07-18T09:23:00+10:00",
                        "end": "2009-07-18T09:23:00+10:00"
                    },
                    "interpretation": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "468359832",
                                    "display": "Negative"
                                },
                                {
                                    "system": "https://acme.lab/resultcodes",
                                    "code": "GTN",
                                    "display": "Negative"
                                }
                            ],
                            "text": "Negative for Chlamydia Trachomatis rRNA"
                        }
                    ],
                    "bodySite": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "65904435",
                                "display": "Left external ear structure"
                            }
                        ],
                        "text": "Left Ear"
                    },
                    "method": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "867859167",
                                "display": "Negative"
                            },
                            {
                                "system": "https://acme.lab/resultcodes",
                                "code": "KAG1",
                                "display": "Negative"
                            }
                        ],
                        "text": "Negative for Chlamydia Trachomatis rRNA"
                    },
                    "referenceRange": [
                        {
                            "low": {
                                "value": 7.9,
                                "unit": "mm[Hg]"
                            },
                            "high": {
                                "value": 72.95,
                                "unit": "mm[Hg]"
                            },
                            "text": "Negative for Chlamydia Trachomatis rRNA"
                        }
                    ],
                    "component": [
                        {
                            "name": "Observatioon Component Data",
                            "code": {
                                "coding": [
                                    {
                                        "system": "http://loinc.org",
                                        "code": "745968-97",
                                        "display": "Body weight"
                                    }
                                ],
                                "text": "Body weight"
                            },
                            "valueQuantity": {
                                "value": 99.94,
                                "system": "http://unitsofmeasure.org",
                                "code": "ratio"
                            },
                            "valueCodeableConcept": [
                                {
                                    "coding": [
                                        {
                                            "system": "http://loinc.org",
                                            "code": "34555-84",
                                            "display": "Body weight"
                                        }
                                    ],
                                    "text": "Body weight"
                                }
                            ],
                            "valueString": "Observation Component Test Value",
                            "valueBoolean": false,
                            "valuePeriod": {
                                "start": "2008-08-18T09:23:00+10:00",
                                "end": "2009-08-18T09:23:00+10:00"
                            },
                            "dataAbsentReason": {
                                "coding": [
                                    {
                                        "system": "http://snomed.info/sct",
                                        "code": "157183",
                                        "display": "Negative"
                                    },
                                    {
                                        "system": "https://acme.lab/resultcodes",
                                        "code": "FYA",
                                        "display": "Negative"
                                    }
                                ],
                                "text": "Negative for Chlamydia Trachomatis rRNA"
                            },
                            "interpretation": [
                                {
                                    "coding": [
                                        {
                                            "system": "http://snomed.info/sct",
                                            "code": "768976-09",
                                            "display": "Negative"
                                        },
                                        {
                                            "system": "https://acme.lab/resultcodes",
                                            "code": "DFG1",
                                            "display": "Negative"
                                        }
                                    ],
                                    "text": "Negative for Chlamydia Trachomatis rRNA"
                                }
                            ],
                            "referenceRange": [
                                {
                                    "low": {
                                        "value": 7.81,
                                        "unit": "mm[Hg]"
                                    },
                                    "high": {
                                        "value": 72.96,
                                        "unit": "mm[Hg]"
                                    },
                                    "text": "Negative for Chlamydia Trachomatis rRNA"
                                }
                            ]
                        }
                    ],
                    "id": "0hIRO00000005yP2AQ"
                },
                "response": {
                    "status": "201 Created",
                    "location": "https://mule-worker-internal-fhir-r4-clinical-diagnostics-api.us-e2.cloudhub.io:8092/clinical-diagnostics/fhir-r4/v1/Observation/0hIRO00000005yP2AQ"
                }
            },
            {
                "resource": {
                    "resourceType": "Procedure",
                    "identifier": [
                        {
                            "use": "official",
                            "value": "18-443073811",
                            "type": {
                                "coding": [
                                    {
                                        "system": "http://terminology.hl7.org/CodeSystem/v2-0204",
                                        "code": "MR10a",
                                        "display": "MisterKWOK9"
                                    },
                                    {
                                        "system": "http://terminology.hl7.org/CodeSystem/v2-0204",
                                        "code": "MR010b",
                                        "display": "MisterKWOK9"
                                    }
                                ],
                                "text": "Identifier Bundle"
                            }
                        },
                        {
                            "use": "official",
                            "value": "18-443073821",
                            "type": {
                                "coding": [
                                    {
                                        "system": "http://terminology.hl7.org/CodeSystem/v2-0204",
                                        "code": "MR10",
                                        "display": "MisterKWO10"
                                    }
                                ],
                                "text": "Identifier Bundle"
                            }
                        },
                        {
                            "use": "usual",
                            "value": "17-443073831",
                            "type": {
                                "coding": [
                                    {
                                        "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                                        "code": "MRS11",
                                        "display": "MissesKWOK9"
                                    }
                                ],
                                "text": "Identifier Bundle"
                            }
                        },
                        {
                            "use": "usual",
                            "system": "urn:custom:sourcesystem:fhirid",
                            "value": "HONPROCEDURE003"
                        }
                    ],
                    "status": "preparation",
                    "statusReason": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "SR12342",
                                "display": "Status Reason (Status Reason)"
                            }
                        ],
                        "text": "Status Reason"
                    },
                    "category": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "CAT12342",
                                "display": "Diagnostic procedure (procedure)"
                            }
                        ],
                        "text": "Diagnostic procedure"
                    },
                    "code": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "CODE12342",
                                "display": "Appendectomy (Procedure)"
                            }
                        ],
                        "text": "Appendectomy"
                    },
                    "subject": {
                        "reference": "Patient/001RO000004lrTr"
                    },
                    "performedDateTime": "2020-02-24T03:38:15-06:00",
                    "performer": [
                        {
                            "function": {
                                "coding": [
                                    {
                                        "system": "http://snomed.info/sct",
                                        "code": "PFC12342",
                                        "display": "Appendectomy (Procedure)"
                                    }
                                ],
                                "text": "Appendectomy"
                            },
                            "actor": {
                                "reference": "Organization/001RO000004RC9LYAW"
                            }
                        }
                    ],
                    "reasonCode": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "RC12342",
                                    "display": "Testing"
                                }
                            ],
                            "text": "Testing"
                        }
                    ],
                    "bodySite": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "BSC12342",
                                    "display": "Cough (finding)"
                                }
                            ],
                            "text": "Cough (finding)"
                        }
                    ],
                    "outcome": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "OCC12342",
                                "display": "Cough (finding)"
                            }
                        ],
                        "text": "Cough (finding)"
                    },
                    "complication": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "COMPC12341",
                                    "display": "Cough (finding)"
                                }
                            ],
                            "text": "Cough (finding)"
                        }
                    ],
                    "followUp": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "FLPC12342",
                                    "display": "Cough (finding)"
                                }
                            ],
                            "text": "ROS 5 days  - 2013-04-10"
                        }
                    ],
                    "id": "0jQRO00000007AF2AY"
                },
                "response": {
                    "status": "200 OK",
                    "location": "https://mule-worker-internal-fhir-r4-clinical-summary-api.us-e2.cloudhub.io:8092/clinical-summary/fhir-r4/v1/Procedure/0jQRO00000007AF2AY"
                }
            },
            {
                "resource": {
                    "resourceType": "AllergyIntolerance",
                    "clinicalStatus": {
                        "coding": [
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",
                                "code": "active07"
                            }
                        ]
                    },
                    "verificationStatus": {
                        "coding": [
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/condition-ver-status",
                                "code": "confirmed07"
                            }
                        ]
                    },
                    "type": "allergy",
                    "category": [
                        "food"
                    ],
                    "criticality": "high",
                    "code": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "256307007",
                                "display": "Banana"
                            }
                        ],
                        "text": "Banana1"
                    },
                    "patient": {
                        "reference": "Patient/001RO000004lrTr"
                    },
                    "onsetDateTime": "2020-02-24T09:38:16.000Z",
                    "recordedDate": "2020-02-24T09:38:16.000Z",
                    "lastOccurrence": "2020-02-24T09:38:15.000Z",
                    "reaction": [
                        {
                            "substance": {
                                "coding": [
                                    {
                                        "system": "http://www.nlm.nih.gov/research/umls/rxnorm",
                                        "code": "116059306",
                                        "display": "cashew nut allergenic extract Injectable Product"
                                    }
                                ]
                            },
                            "manifestation": [
                                {
                                    "coding": [
                                        {
                                            "system": "http://snomed.info/sct",
                                            "code": "3957900106",
                                            "display": "Anaphylactic reaction"
                                        }
                                    ]
                                }
                            ],
                            "description": "Challenge Protocol. Severe reaction to subcutaneous cashew extract. Epinephrine administered",
                            "onset": "2020-02-24T09:38:15.000Z",
                            "severity": "severe",
                            "exposureRoute": {
                                "coding": [
                                    {
                                        "system": "http://snomed.info/sct",
                                        "code": "3420600506",
                                        "display": "Subcutaneous route"
                                    }
                                ]
                            }
                        },
                        {
                            "substance": {
                                "coding": [
                                    {
                                        "system": "http://www.nlm.nih.gov/research/umls/rxnorm",
                                        "code": "116059306",
                                        "display": "cashew nut allergenic extract Injectable Product"
                                    }
                                ]
                            },
                            "manifestation": [
                                {
                                    "coding": [
                                        {
                                            "system": "http://snomed.info/sct",
                                            "code": "3957900106",
                                            "display": "Anaphylactic reaction"
                                        }
                                    ]
                                }
                            ],
                            "onset": "2020-02-24T09:38:15.000Z",
                            "severity": "moderate",
                            "exposureRoute": {
                                "coding": [
                                    {
                                        "system": "http://snomed.info/sct",
                                        "code": "3420600q506",
                                        "display": "Subcutaneous routeq"
                                    }
                                ]
                            }
                        }
                    ],
                    "id": "0ibRO000000084pYAA"
                },
                "response": {
                    "status": "201 Created",
                    "location": "https://mule-worker-internal-fhir-r4-clinical-summary-api.us-e2.cloudhub.io:8092/clinical-summary/fhir-r4/v1/AllergyIntolerance/0ibRO000000084pYAA"
                }
            },
            {
                "resource": {
                    "resourceType": "Bundle",
                    "id": "2eeafc48-fcb9-4b5c-8301-5865944b2bac",
                    "meta": {
                        "lastUpdated": "2023-06-22T10:15:30.662Z"
                    },
                    "type": "searchset",
                    "total": 1,
                    "link": [
                        {
                            "relation": "self",
                            "url": "https://mule-worker-internal-fhir-r4-administration-api2.us-e2.cloudhub.io:8092/admin/fhir-r4/v1/Encounter?patient=001RO000004xc4sYAA"
                        }
                    ],
                    "entry": [
                        {
                            "fullUrl": "https://mule-worker-internal-fhir-r4-administration-api2.us-e2.cloudhub.io:8092/admin/fhir-r4/v1/Encounter/0kGRO00000009Qt2AI",
                            "search": {
                                "mode": "match"
                            },
                            "resource": {
                                "resourceType": "Encounter",
                                "id": "0kGRO00000009Qt2AI",
                                "identifier": [
                                    {
                                        "use": "temp",
                                        "value": "enc00001",
                                        "system": "http://healthcare.example.org/identifiers/enocunter"
                                    }
                                ],
                                "status": "in-progress",
                                "serviceType": {
                                    "coding": [
                                        {
                                            "code": "274"
                                        }
                                    ]
                                },
                                "class": {
                                    "code": "INP"
                                },
                                "type": [
                                    {
                                        "coding": [
                                            {
                                                "system": "http://snomed.info/sct",
                                                "code": "3673360083445253211",
                                                "display": "Chemo"
                                            },
                                            {
                                                "system": "http://snomed.info/sct",
                                                "code": "3673360028845945934322",
                                                "display": "CPA1145"
                                            }
                                        ],
                                        "text": "Encounter Type Bundle"
                                    }
                                ],
                                "priority": {
                                    "coding": [
                                        {
                                            "system": "http://snomed.info/sct",
                                            "code": "394849002",
                                            "display": "High priority"
                                        }
                                    ],
                                    "text": "Encounter Priority Bundle"
                                },
                                "subject": {
                                    "reference": "Patient/001RO000004xc4sYAA"
                                },
                                "basedOn": [
                                    {
                                        "reference": "ServiceRequest/0jyRO000000018tYAA"
                                    }
                                ],
                                "participant": [
                                    {
                                        "type": [
                                            {
                                                "coding": [
                                                    {
                                                        "code": "PART",
                                                        "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
                                                        "display": "PART"
                                                    }
                                                ],
                                                "text": "Encounter Participant Type Bundle"
                                            }
                                        ],
                                        "period": {
                                            "start": "2022-01-10T12:00:00.000Z",
                                            "end": "2022-01-10T12:30:00.000Z"
                                        },
                                        "individual": {
                                            "reference": "Practitioner/0cmRO00000002i1YAA"
                                        }
                                    },
                                    {
                                        "type": [
                                            {
                                                "coding": [
                                                    {
                                                        "code": "PARTS",
                                                        "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
                                                        "display": "PARTS"
                                                    }
                                                ],
                                                "text": "Encounter Participant Type Bundle"
                                            }
                                        ],
                                        "period": {
                                            "start": "2022-01-10T12:00:00.000Z",
                                            "end": "2022-01-10T12:30:00.000Z"
                                        },
                                        "individual": {
                                            "reference": "Practitioner/0cmRO00000002i1YAA"
                                        }
                                    }
                                ],
                                "period": {
                                    "start": "2022-01-10T12:00:00.000Z",
                                    "end": "2022-03-10T17:20:34.000Z"
                                },
                                "length": {
                                    "value": 200.0,
                                    "unit": "min"
                                },
                                "reasonCode": [
                                    {
                                        "coding": [
                                            {
                                                "code": "34068001",
                                                "system": "http://snomed.info/sct",
                                                "display": "Chemotherapy"
                                            }
                                        ],
                                        "text": "Encounter Reason Code Bundle0"
                                    }
                                ],
                                "reasonReference": [
                                    {
                                        "reference": "Condition/0j4RO000000005QYAQ"
                                    }
                                ],
                                "diagnosis": [
                                    {
                                        "use": [
                                            {
                                                "coding": [
                                                    {
                                                        "code": "billing",
                                                        "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role",
                                                        "display": "Billing"
                                                    }
                                                ],
                                                "text": "Encounter Diagnosis Use Bundle"
                                            }
                                        ],
                                        "condition": {
                                            "reference": "Condition/0j4RO000000005QYAQ"
                                        },
                                        "rank": 1.0
                                    },
                                    {
                                        "use": [
                                            {
                                                "coding": [
                                                    {
                                                        "code": "bill",
                                                        "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role",
                                                        "display": "Bill"
                                                    }
                                                ],
                                                "text": "Encounter Diagnosis Use Bundle"
                                            }
                                        ],
                                        "condition": {
                                            "reference": "Condition/0j4RO000000005QYAQ"
                                        },
                                        "rank": 2.0
                                    }
                                ],
                                "hospitalization": {
                                    "preAdmissionIdentifier": {
                                        "value": "98682",
                                        "system": "http://www.bmc.nl/zorgportal/identifiers/pre-admissions"
                                    },
                                    "origin": {
                                        "reference": "Organization/001RO000004RC9LYAW"
                                    },
                                    "admitSource": {
                                        "coding": [
                                            {
                                                "code": "305997006",
                                                "display": "305997006"
                                            }
                                        ]
                                    },
                                    "reAdmission": {
                                        "coding": [
                                            {
                                                "code": "R",
                                                "system": "http://terminology.hl7.org/CodeSystem/v2-0092",
                                                "display": "Re-admission"
                                            }
                                        ],
                                        "text": "Encounter Readmission Bundle"
                                    },
                                    "dietPreference": [
                                        {
                                            "coding": [
                                                {
                                                    "code": "vegetarian",
                                                    "display": "Vegetarian"
                                                }
                                            ]
                                        },
                                        {
                                            "coding": [
                                                {
                                                    "code": "veg",
                                                    "display": "veg"
                                                }
                                            ]
                                        }
                                    ],
                                    "specialCourtesy": [
                                        {
                                            "coding": [
                                                {
                                                    "code": "ext",
                                                    "display": "EXT"
                                                }
                                            ]
                                        }
                                    ],
                                    "destination": {
                                        "reference": "Location/0klRO00000000A1YAI"
                                    },
                                    "dischargeDisposition": {
                                        "coding": [
                                            {
                                                "code": "01",
                                                "system": "http://www.nubc.org/patient-discharge",
                                                "display": "Discharged to Home"
                                            }
                                        ],
                                        "text": "Encounter Readmission Bundle"
                                    }
                                },
                                "location": [
                                    {
                                        "location": {
                                            "reference": "Location/0klRO00000000A1YAI"
                                        },
                                        "status": "Planned",
                                        "period": {
                                            "start": "2022-01-10T11:45:00.000Z",
                                            "end": "2022-01-10T13:30:00.000Z"
                                        },
                                        "physicalType": [
                                            {
                                                "coding": [
                                                    {
                                                        "code": "bu",
                                                        "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                                        "display": "Building"
                                                    }
                                                ],
                                                "text": "Encounter Location Physical Type Bundle"
                                            }
                                        ]
                                    }
                                ],
                                "serviceProvider": {
                                    "reference": "Location/0klRO00000000A1YAI"
                                },
                                "partOf": {
                                    "reference": "Encounter/0kGRO00000001FT2AY"
                                }
                            }
                        }
                    ]
                },
                "response": {
                    "status": "200 OK"
                }
            },
            {
                "resourceType": "Bundle",
                "type": "collection",
                "entry": [
                    {
                        "resource": {
                            "resourceType": "Encounter",
                            "id": "0kGRO00000009Td2AI",
                            "status": "in-progress",
                            "class": {
                                "code": "INP"
                            },
                            "type": [
                                {
                                    "coding": [
                                        {
                                            "system": "http://snomed.info/sct",
                                            "code": "3673360083445253211",
                                            "display": "Chemo"
                                        },
                                        {
                                            "system": "http://snomed.info/sct",
                                            "code": "3673360028845945934322",
                                            "display": "CPA1145"
                                        }
                                    ],
                                    "text": "Encounter Type Bundle"
                                }
                            ],
                            "subject": {
                                "reference": "Patient/001RO000004lrTrYAI"
                            },
                            "period": {
                                "start": "2020-01-10T12:00:00.000Z",
                                "end": "2022-03-10T17:20:34.000Z"
                            },
                            "partOf": {
                                "reference": "Encounter/0kGRO00000008KQ2AY"
                            }
                        },
                        "response": {
                            "status": "200 OK"
                        }
                    },
                    {
                        "resource": {
                            "resourceType": "Patient",
                            "id": "001RO000004lrTrYAI",
                            "identifier": [
                                {
                                    "use": "Usual",
                                    "system": "urn:oid:1.2.36.146.595.217.0.1",
                                    "value": "20000105719990",
                                    "period": {
                                        "start": "2001-05-06",
                                        "end": "2010-05-16"
                                    }
                                }
                            ],
                            "active": false,
                            "name": [
                                {
                                    "use": "Official",
                                    "family": "silva",
                                    "given": [
                                        "Peter"
                                    ],
                                    "text": "Peter silva",
                                    "prefix": [
                                        "Dr"
                                    ],
                                    "suffix": [
                                        "Jr"
                                    ],
                                    "period": {
                                        "start": "2001-05-06",
                                        "end": "2010-05-16"
                                    }
                                }
                            ],
                            "telecom": [],
                            "gender": "Male",
                            "deceased": {},
                            "address": [],
                            "maritalStatus": {
                                "coding": [
                                    {}
                                ]
                            },
                            "multipleBirth": {},
                            "contact": [],
                            "generalPractitioner": []
                        },
                        "response": {
                            "status": "200 OK"
                        }
                    },
                    {
                        "resource": {
                            "resourceType": "Encounter",
                            "id": "0kGRO00000008KQ2AY",
                            "identifier": [
                                {
                                    "use": "temp",
                                    "value": "007",
                                    "system": "http://healthcare.example.org/identifiers/enocunter"
                                }
                            ],
                            "status": "in-progress",
                            "class": {
                                "code": "INP"
                            },
                            "type": [
                                {
                                    "coding": [
                                        {
                                            "system": "http://snomed.info/sct",
                                            "code": "3673360083445253211",
                                            "display": "Chemo"
                                        },
                                        {
                                            "system": "http://snomed.info/sct",
                                            "code": "3673360028845945934322",
                                            "display": "CPA1145"
                                        }
                                    ],
                                    "text": "Encounter Type Bundle"
                                }
                            ],
                            "subject": {
                                "reference": "Patient/001RO000004lrTrYAI"
                            },
                            "period": {
                                "start": "2020-01-10T12:00:00.000Z",
                                "end": "2022-03-10T17:20:34.000Z"
                            },
                            "partOf": {
                                "reference": "Encounter/0kGRO00000008K12AI"
                            }
                        },
                        "response": {
                            "status": "200 OK"
                        }
                    },
                    {
                        "resource": {
                            "resourceType": "Encounter",
                            "id": "0kGRO00000008K12AI",
                            "identifier": [
                                {
                                    "use": "temp",
                                    "value": "002",
                                    "system": "http://healthcare.example.org/identifiers/enocunter"
                                }
                            ],
                            "status": "in-progress",
                            "class": {
                                "code": "INP"
                            },
                            "type": [
                                {
                                    "coding": [
                                        {
                                            "system": "http://snomed.info/sct",
                                            "code": "3673360083445253211",
                                            "display": "Chemo"
                                        },
                                        {
                                            "system": "http://snomed.info/sct",
                                            "code": "3673360028845945934322",
                                            "display": "CPA1145"
                                        }
                                    ],
                                    "text": "Encounter Type Bundle"
                                }
                            ],
                            "subject": {
                                "reference": "Patient/001RO000004lrTrYAI"
                            },
                            "period": {
                                "start": "2022-01-10T12:00:00.000Z",
                                "end": "2022-03-10T17:20:34.000Z"
                            },
                            "partOf": {
                                "reference": "Encounter/0kGRO00000008MR2AY"
                            }
                        },
                        "response": {
                            "status": "200 OK"
                        }
                    },
                    {
                        "resource": {
                            "resourceType": "Encounter",
                            "id": "0kGRO00000008MR2AY",
                            "status": "in-progress",
                            "class": {
                                "code": "INP"
                            },
                            "type": [
                                {
                                    "coding": [
                                        {
                                            "system": "http://snomed.info/sct",
                                            "code": "3673360083445253211",
                                            "display": "Chemo"
                                        },
                                        {
                                            "system": "http://snomed.info/sct",
                                            "code": "3673360028845945934322",
                                            "display": "CPA1145"
                                        }
                                    ],
                                    "text": "Encounter Type Bundle"
                                }
                            ],
                            "subject": {
                                "reference": "Patient/001RO000004lrTrYAI"
                            },
                            "period": {
                                "start": "2022-01-10T12:00:00.000Z",
                                "end": "2022-03-10T17:20:34.000Z"
                            },
                            "partOf": {
                                "reference": "Encounter/0kGRO00000008Mb2AI"
                            }
                        },
                        "response": {
                            "status": "200 OK"
                        }
                    },
                    {
                        "resource": {
                            "resourceType": "Encounter",
                            "id": "0kGRO00000008Mb2AI",
                            "status": "in-progress",
                            "class": {
                                "code": "INP"
                            },
                            "type": [
                                {
                                    "coding": [
                                        {
                                            "system": "http://snomed.info/sct",
                                            "code": "3673360083445253211",
                                            "display": "Chemo"
                                        },
                                        {
                                            "system": "http://snomed.info/sct",
                                            "code": "3673360028845945934322",
                                            "display": "CPA1145"
                                        }
                                    ],
                                    "text": "Encounter Type Bundle"
                                }
                            ],
                            "subject": {
                                "reference": "Patient/001RO000004lrTrYAI"
                            },
                            "basedOn": [
                                {
                                    "reference": "ServiceRequest/0jyRO0000000GyJYAU"
                                }
                            ],
                            "period": {
                                "start": "2022-01-10T12:00:00.000Z",
                                "end": "2022-03-10T17:20:34.000Z"
                            }
                        },
                        "response": {
                            "status": "200 OK"
                        }
                    },
                    {
                        "resource": {
                            "resourceType": "ServiceRequest",
                            "id": "0jyRO0000000GyJYAU",
                            "basedOn": [
                                {
                                    "reference": "ServiceRequest/0jyRO0000000GyOYAU",
                                    "type": "ServiceRequest"
                                }
                            ],
                            "replaces": [
                                {
                                    "reference": "ServiceRequest/0jyRO0000000GyOYAU",
                                    "type": "ServiceRequest"
                                }
                            ],
                            "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/001RO000004oRvQYAU",
                                "type": "Patient"
                            },
                            "encounter": {
                                "reference": "Encounter/0kGRO00000008K12AI",
                                "type": "Encounter"
                            },
                            "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/0cmRO0000000261YAA",
                                    "type": "Practitioner"
                                }
                            ],
                            "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/0klRO00000000DPYAY",
                                    "type": "Location"
                                }
                            ],
                            "reasonCode": [
                                {
                                    "coding": [
                                        {
                                            "system": "http://snomed.info/sct",
                                            "code": "34068001ab23e",
                                            "display": "Glyco"
                                        }
                                    ],
                                    "text": "Service Request Reason Code Type Bundle"
                                }
                            ],
                            "reasonReference": [
                                {
                                    "reference": "DiagnosticReport/0lQRO00000006PH2AY",
                                    "type": "DiagnosticReport"
                                }
                            ],
                            "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"
                                }
                            }
                        },
                        "response": {
                            "status": "200 OK"
                        }
                    }
                ]
            },
            {
                "resource": {
                    "resourceType": "Condition",
                    "clinicalStatus": {
                        "coding": [
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
                                "code": "resolved"
                            }
                        ]
                    },
                    "verificationStatus": {
                        "coding": [
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/condition-ver-status",
                                "code": "confirmed"
                            }
                        ]
                    },
                    "category": [
                        {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/condition-category",
                                    "code": "encounter-diagnosis-06",
                                    "display": "Encounter Diagnosis-06"
                                }
                            ]
                        }
                    ],
                    "severity": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "49727004-06",
                                "display": "Fever (finding)"
                            }
                        ],
                        "text": "Fever (finding)"
                    },
                    "code": {
                        "coding": [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "49727003-07",
                                "display": "Fever (finding)"
                            }
                        ],
                        "text": "Fever (finding)"
                    },
                    "bodySite": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "49727002-06",
                                    "display": "Cough (finding)"
                                },
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "49521004",
                                    "display": "Left external ear structure"
                                }
                            ],
                            "text": "Cough (finding)"
                        }
                    ],
                    "subject": {
                        "reference": "Patient/001RO000004lrTr"
                    },
                    "onsetDateTime": "2020-02-24T03:38:15-06:00",
                    "abatementDateTime": "2020-03-09T06:01:15-05:00",
                    "recordedDate": "2020-02-24T03:38:15-06:00",
                    "stage": [
                        {
                            "summary": {
                                "coding": [
                                    {
                                        "system": "http://snomed.info/system",
                                        "version": "1.1",
                                        "code": "123-06",
                                        "display": "stage-Display Number"
                                    }
                                ],
                                "text": "stage-text-06"
                            }
                        }
                    ],
                    "id": "0j4RO00000007BvYAI"
                },
                "response": {
                    "status": "201 Created",
                    "location": "https://mule-worker-internal-fhir-r4-clinical-summary-api.us-e2.cloudhub.io:8092/clinical-summary/fhir-r4/v1/Condition/0j4RO00000007BvYAI"
                }
            },
            {
                "resource": {
                    "resourceType": "Encounter",
                    "identifier": [
                        {
                            "use": "temp",
                            "system": "http://healthcare.example.org/identifiers/enocunter",
                            "value": "007"
                        }
                    ],
                    "status": "in-progress",
                    "class": {
                        "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
                        "code": "INP",
                        "display": "inpatient encounter"
                    },
                    "type": [
                        {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "3673360083445253211",
                                    "display": "Chemo"
                                },
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "3673360028845945934322",
                                    "display": "CPA1145"
                                }
                            ]
                        }
                    ],
                    "subject": {
                        "reference": "Patient/001RO000004lrTr"
                    },
                    "period": {
                        "start": "2020-01-10T12:00:00.000Z",
                        "end": "2022-03-10T17:20:34.000Z"
                    },
                    "partOf": {
                        "reference": "Encounter/0kGRO00000008K12AI"
                    },
                    "id": "0kGRO00000008KQ2AY"
                },
                "response": {
                    "status": "200 OK",
                    "location": "https://mule-worker-internal-fhir-r4-administration-api2.us-e2.cloudhub.io:8092/admin/fhir-r4/v1/Encounter/0kGRO00000008KQ2AY"
                }
            }
        ]
    }
    ```
    
*   **400** Resource can’t be parsed or it failed basic FHIR validation rules.
    
    Media type: `application/fhir+json`. Schema: `OperationOutcome`.
    
    _Example_
    
    ```
    {
        "resourceType": "OperationOutcome",
        "issue": [
            {
                "severity": "error",
                "code": "required",
                "details": {
                    "text": "'POST' action is not supported on url 'Observation/1234'"
                }
            }
        ]
    }
    ```
    
*   **500** Server encountered an error while processing the request.
    
    Media type: `application/fhir+json`. Schema: `OperationOutcome`.
    
    _Example: same as POST / 400 response._
    
*   **503** Error connecting Salesforce.
    
    Media type: `application/fhir+json`. Schema: `OperationOutcome`.
    
    _Example: same as POST / 400 response._
    
*   **504** Gateway Error.
    
    Media type: `application/fhir+json`. Schema: `OperationOutcome`.
    
    _Example: same as POST / 400 response._
    

## Schemas

### Bundle

Contains a collection of resources.

*   Rule: total property only for a search request.
*   Rule: entry.search property only for a search request.
*   Rule: FullUrl property must be unique in a bundle.
*   Rule: Bundle resources where the type isn't batch or batch-response or when the request is POST must have the Bundle.entry.fullUrl property populated.
*   Rule: Issue.severity property for all issues within the OperationOutcome property must be either 'information' or 'warning'.
*   Rule: Self link is required for the searchsets.
*   Rule: For collections of type searchset or collection, all entries must contain the resources, and not have the request or response elements.
*   Rule: For collections of type batch, all entries must contain the request elements, and the resources if the method is POST, PUT, or PATCH.

**Note**: You can have up to 30 entries in a single call. Up to 10 of the entries can be read or search requests.

Includes all fields of `Resource`.

*   `resourceType` (_code (string)_, required) Specifies the type of resource.  
    Allowed values: `Bundle`.
*   `type` (_code (string)_, required) Specifies the type of bundle.  
    Allowed values: `batch`, `batch-response`, `searchset`, `collection`.
*   `timestamp` (_instant (string)_) Specifies the timestamp when the bundle was assembled.
*   `total` (_unsignedInt (integer)_) Specifies the number of matches with the search results.
*   `link` (_array of object_) Specifies the links related to the resource bundle.
    
    Includes all fields of `BackboneElement`.
    
    *   `relation` (_code (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: It must be a resource unless there's a request or response.
    *   Rule: fullUrl property can't be a version-specific reference.
    
    Includes all fields of `Entry`.
    

### 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) Specifies the severity of the operation outcome. Possible values are fatal, error, warning, and information.  
        Allowed values: `fatal`, `error`, `warning`, `information`.
    *   `code` (_code (string)_, required) Specifies the error or the 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_) Provides additional details about the error.
        
        Includes all fields of `CodeableConcept`.
        

### Resource

Specifies the base resource.

*   `id` (_id (string)_) Specifies the ID of the bundle record.
*   `meta` (_object_) Specifies the metadata of 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](https://build.fhir.org/codesystem.html). A code is restricted to a string which has at least one character and no leading or trailing whitespace, and without any whitespace other than single spaces in the content.

Type: `string`.

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

### instant

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

Type: `string`.

### unsignedInt

Any non-negative integer (>= 0) with regex - \[0\]|(\[1-9\]\[0-9\]\*)

Type: `integer`.

Minimum: 0.

### BackboneElement

Includes all fields of `Element`.

*   `modifierExtension` (_array of Extension_) Specifies the modifier extensions.

### uri

A <a href="https://developer.salesforce.com/docs/industries/health/references/[https://tools.ietf.org/html/rfc3986](https://tools.ietf.org/html/rfc3986)%20target="\_blank">Uniform Resource Identifier Reference. 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.

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 UUID (urn:uuid).
*   `search` (_object_) Provides 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`.
    *   `score` (_decimal (number)_) Provides a score for the search ranking, which is between 0 and 1.
*   `request` (_object_) Provides additional batch execution details.
    
    Includes all fields of `BackboneElement`.
    
    *   `method` (_code (string)_, required) GET | POST | PUT  
        Allowed values: `GET`, `PUT`, `POST`.
    *   `url` (_uri (string)_, required) Specifies the URL for the HTTP equivalent of the entry. Only relative URI is supported, and it should match one of these REGEX patterns. REGEX - "POST" \["^(\[A-Za-z\]+)$"\] , "PUT" \["^(\[A-Za-z\]+)/(\[a-zA-Z0-9\]{15}|\[a-zA-Z0-9\]{18})$"\], "GET" \["^(\[A-Za-z\]+)/(\[a-zA-Z0-9\]{15}|\[a-zA-Z0-9\]{18})$","^(\[a-zA-Z\]+)(?(\[^=\]+)=(\[^&\]+)|&(\[^=\]+)=(\[^&\]+))+"\]
*   `response` (_object_) Provides the results of the batch execution.
    
    Includes all fields of `BackboneElement`.
    
    *   `status` (_string_, required) Specifies the status response code. Text is optional.
    *   `location` (_uri (string)_) Specifies the location if the operation returns a location.
    *   `outcome` (_object_) Outcome of the operation with hints and warnings for batch or transaction response.
        
        Includes all fields of `Resource`.
        

### 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.

Includes all fields of `Element`.

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

### id

Any combination of upper or lower case ASCII letters, such as 'A'..'Z', 'a'..'z', numerals ('0'..'9'), '-', and '.', with a length limit of 64 characters. The ID can be an integer, an unprefixed Object Identifier (OID), UUID, or any other identifier pattern that meets these constraints.

Type: `string`.

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

### 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.

*   `profile` (_array of canonical_) Specifies the profiles the resource claims to conform to.

### Element

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

### Extension

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

*   `url` (_uri (string)_, required) Specifies the meaning of the extension.
*   `value` (_enumvalueInteger | enumvalueDecimal | enumvalueDateTime_) Specifies the value of the extension.
    
    One of: `enumvalueInteger`, `enumvalueDecimal`, `enumvalueDateTime`.
    

### decimal

Rational numbers that have a decimal representation. See this regex for the precision of the number. Regex: -?(0|\[1-9\]\[0-9\]\*)(.\[0-9\]+)?(\[eE\]\[+-\]?\[0-9\]+)?

Type: `number`.

### Coding

A <a href=[http://hl7.org/fhir/STU3/terminologies.html](http://hl7.org/fhir/STU3/terminologies.html)" target="\_blank">Coding is a representation of a defined concept using a symbol from a defined "code system".

Includes all fields of `Element`.

*   `system` (_uri (string)_) Specifies the identity of the terminology system.
*   `code` (_code (string)_) Specifies the symbol using the syntax defined by the system.
*   `display` (_string_) Specifies the representation defined by the system.

### canonical

A URI that refers to a resource by its canonical URL or resources with a URL property. The canonical type differs from a URI and can have a version appended, separated by a vertical bar (|). Note that the type canonical isn't used for the actual canonical URLs that are the target of these references, but for the URIs that refer to them. A URI can include the version suffix. Like other URIs, the elements of canonical type can also have #fragment references.

Type: `uri (string)`.

### enumvalueInteger

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

### enumvalueDecimal

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

### enumvalueDateTime

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

### dateTime

A date, date-time, or partial date, such as year only or year with month, as used in communication. If hours and minutes are specified, a time zone must be populated. 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" isn't 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)))?)?)?$.