Skip to content

A showcase of statically-rendered FHIR questionnaire web form

Notifications You must be signed in to change notification settings

konsulin-care/form-showcase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Background

This repository is a showcase of statically-rendered FHIR questionnaire using LForms, a JavaScript function to render FHIR Questionnaire into a web form.

Getting started

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

About

A showcase of statically-rendered FHIR questionnaire web form

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published