This repository is a showcase of statically-rendered FHIR questionnaire using LForms, a JavaScript function to render FHIR Questionnaire
into a web form.
- Install
http-server
usingnpm
npm install http-server -g # Requires root since it is a global installation
- Serve the page using
http-server
, disable cache, and set port to8081
(or any other port numbers)http-server -c-1 -p 8081
- Set up a standalone FHIR server using Blaze on port
8082
docker run --name blaze -p 8082:8080 samply/blaze
- Check that the FHIR server is running properly
It should return the following response:
curl localhost:8082/fhir/metadata | jq ".software"
{ "name": "Blaze", "version": "0.24.1", "releaseDate": "2024-02-07" }
- Visit served web at
http://localhost:8081
and submit a form - Now, it should populate the
QuestionnaireResponse
in the FHIR servercurl localhost:8082/fhir/QuestionnaireResponse | jq ".total"