Simple to spin-up FHIR development kit.
- Clone the repo
git clone https://github.com/consensusnetworks/fhir-kit
- Start the server in a container
make start
To stop the server either press Ctrl+C
or run make stop
in a separate terminal.
- Make sure the FHIR server is running
curl http://localhost:9090/ping
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
Resource | Endpoint |
---|---|
CapabilityStatement | /metadata |
Patient | /Patient |
Procedure | /Procedure |
Observation | /Observation |
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