This is a primer to CQL, designed for beginners with FHIR and CQL.
The intent is to demonstrate the ability to:
- create mock patient data using Synthea
- explore patient data using the HAPI FHIR server
- execute logic on patient data using a CQL artifact with the cql-runner
For the purpose of this primer, I've selected the simplest example of calculating the BMI of a patient.
- install Docker
- install docker-compose
- build:
docker-compose build
- start:
docker-compse up -d
- you may want to follow synthea to see the progress:
docker-compose logs --follow synthea
- find the services running on:
- FHIR server: http://localhost:8080/
- cql-runner: http://localhost:8081/
- Find a patient ID within the FHIR server
- Copy a CQL artifact into the cql-runner (
/cql-runner/artifacts/bmi.cql
) - Configure the patient ID in the cql-runner
- Run the artifact