Skip to main content

fhir Adaptor developer README.md

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

Configuration

View all the required and optional properties for state.configuration in the official configuration-schema definition.

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