Skip to main content

Developer README for the fhir adaptor

Source: https://github.com/OpenFn/adaptors/tree/main/packages/fhir

language-fhir

An OpenFn adaptor for building integration jobs for use with the HAPI FHIR API.

FHIR Documentation

The Restfull API can be seen here: https://www.hl7.org/fhir/http.html

Documentation

Technical Documentation

Sample configuration

See credential schema

{
"resource": "resource_url",
"authType": "Basic",
"token": "supersecrettoken"
}

Creates a resource in a destination system using a POST request

create('/endpoint', { foo: 'bar' });

Creates a transactionBundle for HAPI FHIR

createTransactionBundle({
entry: [transactionBundle],
});

Development

Clone the adaptors monorepo. Follow the Getting Started guide inside to get set up.

Run tests using pnpm run test or pnpm run test:watch

Build the project using pnpm build.

To just build the docs run pnpm build docs