RippleOSI / Ripple-Showcase-Stack-Project

repo for Showcase Stack (PulseTile+ QEWDjs + EtherCIS) - Project issues
Apache License 2.0
0 stars 0 forks source link

setup Script- Load test data (as JSON) to openEHR #17

Open tony-shannon opened 5 years ago

tony-shannon commented 5 years ago

lets craft a script that uploads test data for these headings from JSON file to YottaDB + openEHR server for an nhs# + an ehrID

for use on showcase etc

Problems Meds Vaccs Allergies Contacts About Me -T3T Personal Notes Clinical Notes Orders Results MDT Referals Procedures

+/- Vitals Drawings (qewdDB) Clinical Statements (qewdDB) Transfer of Care

image.png

tony-shannon commented 5 years ago

Ideas for implementation;

see here for example JSON https://gist.github.com/tony-shannon/c084ccdf826fda35bd32698cc246c775

{
  "Data2Load": {
    "DB Details": {
      "type": "EtherCIS CDR",
      "domain": "test1.ripple.foundation",
      "IP": "21.21.55.143",
      "userN": "Tester",
      "passW": "Password!23"
    },
    "ID Type": "NHS#",
    "IDs": [
      9999990000,
      9999990001,
      9999990002,
      9999990003
    ],
    "Data": [
      {
        "heading": "Allergy",
        "file": "AllergiesB.json",
        "transform": "AllergyFHIR2openEHR.js",
        "APIendpoint": "/path/allergy"
      },
      {
        "heading": "Medication",
        "file": "MedsB.json",
        "transform": "MedsFHIR2openEHR.js",
        "APIendpoint": "/path/medication"
      },
      {
        "heading": "Problem",
        "file": "ProblemsA.json",
        "transform": "Probs_FHIR2openEHR.js",
        "APIendpoint": "/path/problem"
      }
    ]
  }
}
tony-shannon commented 5 years ago

the routine should set up a CDR with test data

step 1 set up the CDR/DB connection step 2 set up EHR IDs from NHS# step 3 add test data to the EHRs ->by taking a raw json file, applying a transform to it (eg FHIR to openEHR) and POST the output to the relevant heading API eg POST /ehrID/headings/allergies/1, example data

DmitrySolyannik commented 5 years ago

@tony-shannon Here is PR with changes for adding test data to ethercis for different patients. https://github.com/QEWD-Courier/QEWD-Courier/pull/75 Need to talk about creating separate MS for testing data

kuvakina commented 5 years ago

UPD @PhilBarrett @tony-shannon

Changes in PR #75 were merged. But the q re creating separate MS for testing data is open for now

tony-shannon commented 5 years ago

Dima to please update & outline Docker command to make this available for others to use

DmitrySolyannik commented 5 years ago

@tony-shannon, you mean how we can start container with this functionality? It implemented in openEHR module, if it started, we can use seed data functionality

tony-shannon commented 5 years ago

thanks @DmitrySolyannik do you recommend further work or should we move to use the postman script?

DmitrySolyannik commented 5 years ago

@tony-shannon They both have almost the same the functionality, but postman scripts can also update templates. For now my script works only with 4 headings: Allergies, Medications, Problems and Procedures. Postman script works with almost all headings that we have on the project. Just one thing that my json for headings contains more test data than postman scripts.

tony-shannon commented 5 years ago

ok, as discussed this needs a good writeup + /- screencast somewhere so it can easily be done again/by others. Can you suggest who can help with that please @DmitrySolyannik