Skip to content

❤️‍🔥 Simple-to-spin-up FHIR development kit

Notifications You must be signed in to change notification settings

consensusnetworks/fhir-kit

Repository files navigation

FHIR Kit

Simple to spin-up FHIR development kit.

Setup

  1. Clone the repo
git clone https://github.com/consensusnetworks/fhir-kit
  1. Start the server in a container
make start

To stop the server either press Ctrl+C or run make stop in a separate terminal.

  1. Make sure the FHIR server is running
curl http://localhost:9090/ping

FHIR Server

The FHIR Server is a RESTful API that uses the FHIR R4 specification and supports US Core profiles.

Base URL: http://localhost:9090

To access the supported resources just append the resource name (PascalCase) to the base URL.

Example: http://localhost:9090/Patient

Supported Resources

Resource Endpoint
CapabilityStatement /metadata
Patient /Patient
Procedure /Procedure
Observation /Observation

Examples

Get the FHIR server's capability statement. The capability statement describes the server's supported resources and operations so a client may use it as an interface definition when interacting with the server.

curl -X GET http://localhost:9090/metadata

Create patient

curl -X POST -H "Content-Type: application/json" -d '{"resourceType": "Patient", "name": [{"given": ["John"], "family": "Doe"}]}' http://localhost:9090/Patient

Create procedure

curl -X POST -H "Content-Type: application/json" -d '{"subject":{"reference":"25oYHe8zCfx52wp9S8RKEVjEyTw"}}' http://localhost:9090/Procedure

About

❤️‍🔥 Simple-to-spin-up FHIR development kit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published