0.0.1 • Published 1 year ago

encounter-playground v0.0.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

encounter-playground

SSH command for proxy

ssh -p 22 websvcs@162.209.32.138 -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

  1. Have you mongodb installed (preferably under 27017 port)

  2. Setup and start encounter-mongo-services (checkout repo read for instructions)

  3. 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
  4. 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