Guide
10 minutes
Bring in a record from a hospital.
Patient portals that follow US law hand a person's record out over SMART on FHIR. Your app can sign in the same way, with the person's permission, and file what arrives into their pod with its source.
Step 1
About two minutes
Sign in at a demo hospital
Cascade North and Cascade South are pretend hospitals with made-up patients. npm start serves them on a port of their own, with no account and no network.
In the app, choose + New pod and pick one of their patients, or open any pod and choose Find a hospital. Press Sign in.
Step 2
About a minute
Allow, and come back
The browser goes to the hospital’s own sign-in page. It asks whom to sign in as, lists what the app may read (which patient you are, and your whole record), and offers Allow and Cancel. A folded section on it, “For app developers: simulate a failure”, lets you pick a failure from a list, so you can test how your app handles one. The hospital then sends you back to the app, which fetches the record and shows what the hospital has, and whether the pod already holds records from there, such as “6 lab results, 2 medications”. Anything the hospital didn’t let the app read is named.
Step 3
About a minute
Bring it into the pod
Press Bring it into … pod. Each part of the import is shown as it happens, and the pod’s page then says what was brought in. If the record names a different person from the pod’s, the app says so and the button names both people before anything is filed.
Every record keeps the hospital and the date it came from. Nothing already in the pod is overwritten.
Step 4
About five minutes
Try a real test server
The SMART Health IT Sandbox is a public test server. It works the same way, but needs the network.
Step 5
Optional
Add a hospital of your own
Make a folder under hospitals/, named for its fhirBase host’s first label, with a hospital.json like Cascade North’s (its fhirBase on a .demo.invalid host). Then add a made-up patient:
npm run patient:add -- <hospital id> <file>
The patient file’s format is in the app’s guide.