Northern Region Eclair Orders and Results FHIR API icon

Northern Region Eclair Orders and Results FHIR API

(0 reviews)
This API supports access to diagnostic data within the Northern Region Γ‰clair database. The supported FHIR resources are: *Patient *Diagnostic Report *Observation *Service Request (Order) *Practitioner (Provider)

home

Overview

Orders and Results API provides easy and secured real-time search and retrieve patients, diagnostic reports and observations that are centrally stored in the Northern Region Eclair Clinical Data Repository (CDR).

This API, implemented on the serviceRequest endpoint, also provides the ability to update an Γ‰clair system with details of a service request that has occurred or has a confirmed occurrence date and time.

The API is based on the following FHIR standards:

This API is based on the following version of the Sysmex Eclair Orders and Results FHIR API:

Use-Cases

  • Retrieve the latest lab test results (i.e., Observations) for a specific lab test
  • Retrieve the last [x] number of results for a specified lab test(s)
  • Retrieve a result for a particular date or date range
  • Retrieve reference range for lab test(s)
  • Retrieve and filter lab test results using lab result codes, medication level
  • Retrieve the name and details of a clinician
  • Post Orders (i.e., Service Requests)

Retrieval Query Parameters

  • Retrieve one or more Patient resources:
    • search by NHI or internal patient ID
    • search by partial patient name
  • Retrieve one or more DiagnosticReport or Observations resources using:
    • search by report ID, facility ID and optionally test code
    • search by NHI or internal patient ID
    • filter by code
    • filter by date range
  • Retrieve a Practitioner using CPN

The following parameters are supported for performing queries on the available FHIR resources.

See http://hl7.org/fhir/R4/searchparameter-registry.html for further information.

DataParameterDiagnosticReportObservationPatientPractitionerReturned Result
Search parametersInternal patient IDβœ…βœ…βœ…βœ…Single resource
NHIβœ…βœ…βœ…βœ…Single resource
Report IDβœ…Single resource
Test or Procedure code in LOINC or NZPOCsβœ…βœ…βœ…Can be multiple resource
Partial patient nameβœ…Can be multiple resource
Filter CriteriaDate rangeβœ…βœ…Can be multiple resource
1 or more External Observation codes (Standard test or procedure code e.g. NZPOCS)βœ…βœ…Can be multiple resource
1 or more Local Observation code (Local test or procedure code in LOINC)βœ…βœ…Can be multiple resource
Limit by countnumber of resources to be returnedβœ…βœ…Can be multiple resource
Included dataβœ…βœ…
Sort by order ofdate, ascending or descendingβœ…βœ…

Important Notes

Capabilities and Limitations

  1. Patient, DiagnosticReport, Observation and Practitioner resources could be retrieved from Eclair utilising NHIs and test codes as search parameters
  2. Results which meet Patient OPTED-OFF rule criteria are not presented in returned resource bundles.
  3. ServiceRequest (order) resources can be POSTed successfully to Eclair as long as a matching Eclair v.2 StyleSheet is installed. If there is no style-sheet the Eclair FHIR API will return a 422 (Unprocessable Entity) response.
  4. Search by test codes linked in Eclair to external codes will return results recorded against all linked local codes.
  5. Search by local codes having no linkage to external codes in Eclair can be used as a query parameter to retrieve results from that lab only.
  6. The data could be returned sorted, counted and limited by query parameters.
  7. The resources returned by requests to the API had audit records written in Eclair, with caveat that the audit record only references MULEECLAIRFHIRAPI rather than the resource requester (consuming system or logged in user). The audit record can be linked to the requester by searching the Eclair proxy log using the request DateTime and the client from the audit record i.e. client 0cf2f2dc-414f-4c2b-8983-cf33a3cf98fb
  8. Query response returned were comparable with same/similar search issued to Web Eclair.
  9. Default rate limit applied to this API is 1 request per second; Consumer of the API must request on the API onboarding form if a different rate limit must be applied for the consumer system

Known API Issues

No recorded known issues for this API.

Known Eclair Data Issues

  1. Eclair Get Patient request returns a patient address element "State" having incorrect data, i.e., bore no relevance to the patient's actual address. Consumers are highly discouraged from requesting Eclair Patient Demographics data. Instead, Consumers are advised to use the Northern Region Patient FHIR API.

Explanation of Test Code Use

Key to ensuring that data could be processed via GET and POST statements was understanding how to retrieve data from the Eclair dataset. Diagnostic Reports and Observations are retrieved from Eclair by using a code as a search parameter. There are three options for codesets which can be referenced:

LOINC Codeset

LOINC is the global test code standard. Source: https://loinc.org/

NZPOCS Codeset

NZPOCS is the New Zealand-specific LOINC-approved codeset. It consists of the full LOINC codeset plus an additional 54 NZ specific codes. Source: https://www.tewhatuora.govt.nz/publications/hiso-100042022-new-zealand-pathology-observation-code-sets/ (8-Aug 2022 publication)

Local Codeset

Systems which send test orders and results to Eclair may create their own local test codes.

Eclair External Codeset

The Eclair External Codeset consists of codes from LOINC, NZPOCS and Eclair proprietary External codes as setup within Eclair. A result for any (LOINC, NZPOCS, Local) test code that is mapped to the Eclair External Codeset can be retrieved by issuing a GET request referencing the external code as a parameter.

Local Codes Linked to External Codeset

In Eclair the local code can be linked to an external code. Requesting DiagnosticReports by

  1. Local Code - will return only DiagnosticReports created against the local code
  2. External Code - will turn all DiagnosticReports created against any of

    • the Local Code
    • other Local Codes linked to the same External Code

Local Codes NOT Linked to External Codeset

In Eclair, if the local code is not linked to an external code, then DiagnosticReport Request by

  • Local Code - will return only DiagnosticReports created against the local code

Reviews