Skip to content

Document Bundle

As per ISiK implementation guide the server accepts bundle type document when POSTed to the [base] URL (FHIR docs).

Endpoint

{{fhir_base}}/fhir

Processing Steps

  1. If the patient resource and/or encounter resource contained in the document bundle cannot be found in the receiving system using the business identifier or other matching criteria (i.e., the patient or encounter does not yet exist in the receiving system), the HTTP status code "422 - Unprocessable Entity" is returned as a response. An OperationOutcome is returned in the response body, which contains an issue with a reference to the unresolvable resources.

  2. Narrative is extracted from the document. DocumentReference with reference to Binary with the Narrative is created. The subject is set to Patient's identifier. Narrative in the Binary is saved as:

    {{composition.text}}
    <div>{{sections[0].narrative}}</div>
    <div>{{sections[1].narrative}}</div>
    

  3. Bundle type document is saved to DB, DocumentRefence is saved to DB.

  4. If all validation pass 20X response is returned with the DocumentReference in response.

Setup

This feature is enabled by the feature flag ISIK_BULK_DOCUMENT_PROCESSING_ENABLED.