FHIR APIs

February 5, 2023 ยท View on GitHub

The fhir/ endpoint implements the specifications defined in section 3.1.0 RESTful API defined by HL7 (Health Level 7 International) to enable triggering new workflows. The FHIR service supports multiple versions of the Fast Healthcare Interoperability Resources (FHIR) specifications published by Health Level 7 International (HL7).

[!Note] The service does not support CapabilityStatement at this moment and does not group the incoming FHIR resources. Therefore, each incoming FHIR resource will trigger a new workflow request.

The FHIR service provides the following endpoint.

POST /fhir/[resource]

Triggers a new workflow request with the posted FHIR resource.

Important

Refer to section 1.2 Resource Index for a list of HL7 resources. The endpoint is designed to accept any resource and provides only syntax validation either in XML or JSON.

Parameters

Query Parameters:

NameTypeDescription
resourcestring(Optional) resouce type of the FHIR document. The services reject the request if the Resource value in the URL differs from the Resource value described in the posted document.

Request Body:

Supported Content-Types:

  • application/fhir+json
  • application/fhir+xml

Responses

Depending on the Accept header or the original document, the response supports the following content types:

  • application/fhir+json
  • application/fhir+xml

If the Accept header is missing or a none supported value exists, the service will return the same type as the posted document.

CodeData TypeDescription
201Original JSON or XML document.Resource created & stored successfully.
400OperationOutcomeUnable to parse the resource or mismatching resource type specified..
415noneUnsupported media type
500OperationOutcomeServer error.
507Problem detailsInsufficient storage.