encounter-playground
v0.0.1
Published
Playground for react-jsonschema-form
Downloads
1
Readme
encounter-playground
SSH command for proxy
ssh -p 22 [email protected] -L 7171:devqa.rxnt.com:443
Pre-requisites
For an overview on how smart forms works, check this guid: Break-in Guide to SmartForms
Setup rxntforms
Before executing this you should have your MongoDB rxntforms
collection loaded. This load happens via smart-form-repo
project.
1. Loading the data
Have you mongodb installed (preferably under 27017 port)
Setup and start
encounter-mongo-services
(checkout repo read for instructions)When
encounter-mongo-services
is up and running, go to the<dir>/smart-form-repo/
Pay attention for the total number of forms to be processed, in the end you should verify that all forms were uploaded.
Execute the following:
npm i npm run uploadAmendment:dev npm run start:dev
Verify all forms were loaded into
rxntforms
.
2. Fix the formId
After loading the data into mongo, you should get the _id
from the master form.
db.getCollection('masterforms').find({formId:"RX4056"})
// form name: "RXNT Standard Encounter"
With the _id
in hands, time to update the ./integration-playground/auth.js
. We should change the encounterTemplateV2EncounterInfo.formId
property for the new ID. (search for window.encounterTemplateV2EncounterInfo
)
avoid pushing this change to the repo
How to run
npm start