This is an example plugin for Meteor on FHIR (and Symptomatic) that illustrates how to create a REST endpoint, database collection, server side publication, client side subscription, and a reactive user interface. When implemented, you can ping the REST endpoint, and it will automatically update the user interface.
cd webapp/packages
git clone https://github.com/symptomatic/accreditation-utility
# Step 1 - Rename package folder
packages/accreditation-utility
# Step 2 - Update package name, description
packages/accreditation-utility/package.js
# Step 3 - Customize the HelloWorld Page
packages/accreditation-utility/client/HelloWorldPage.jsx
# Step 4 - Update your routes if you wish
packages/accreditation-utility/index.jsx
# Step 5 - Edit the settings file; add custom route, etc.
packages/accreditation-utility/configs/settings.example.jsx
# add your package
meteor add symptomatic:healthgraph
meteor npm install
# run with a custom settings file
meteor --settings packages/accreditation-utility/configs/settings.example.json
The BodyMassIndex calculator relies on SMART on FHIR to fetch FHIR Patient and FHIR Observation resources. We then create a FHIR RiskAssessment for obesity. When fetching from an upstream FHIR Server, the overall data architecture and sequence diagram looks like the following.
open -n -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --user-data-dir="/tmp/chrome_dev_test" --disable-web-security