coralsnake is a minimalistic FHIR server that serve yaml and json files as FHIR resources
The server reads all yaml
and json
files from resources
directory.
Rsources directory should have subdirectories with names equal resource types:
resources/
├── Patient/
│ ├── example.yaml
│ ├── john-doe.json
│ └── patient3.yaml
├── Questionnaire/
│ ├── questionnaire1.yaml
│ ├── questionnaire2.yaml
│ └── questionnaire3.yaml
GET /Patient
GET /Patient/example
POST /Patient
PUT /Patient/new
GET /$index # get a map of all resources in format <resource_type>:<id>
- Organize resources in a directory
- Adjust source destination in
Dockerfile.resources
if required - Build an image using the base coralsnake image
docker build -t coralsnake-resources:latest -f Dockerfile.resources .
- Run a container
docker run -p 8000:8000 coralsnake-resources
Plaease, use Issues