Data Viz - Observable and Patient Facing FHIR
![Data Viz - Observable and Patient Facing FHIR](/content/images/size/w960/2023/08/Artboardfdas.png)
To get Observable to work with FHIR you need ..
- An observable and a fork of the app
- The app registered - we will use Cerner’s sandbox
1st - Fork the Observable
https://observablehq.com/@maloykr1212/fhir-and-observable
![](https://www.patient.dev/content/images/2023/08/Screen-Shot-2022-04-13-at-1.47.00-PM.png)
This will give you a url you can register as your redirect url for the app
![](https://www.patient.dev/content/images/2023/08/Screen-Shot-2022-04-13-at-1.48.21-PM.png)
2nd - Register the url at Cerner
Log into code-console.cerner.com
Click Log in
![](https://www.patient.dev/content/images/2023/08/Screen-Shot-2022-04-13-at-1.39.26-PM.png)
Create a new App
![](https://www.patient.dev/content/images/2023/08/Screen-Shot-2022-04-13-at-1.40.45-PM.png)
Give it a name, make it a patient access app, online, public, and give it the url of your Observable notebook.
![](https://www.patient.dev/content/images/2023/08/screencapture-code-console-cerner-console-register-2022-04-13-13_51_02.png)
Use R4 APIs (they will be around longer than DSTU2)
![](https://www.patient.dev/content/images/2023/08/screencapture-code-console-cerner-console-register-2022-04-13-13_52_04.png)
Choose “Patient Product APIs” > AllergyIntolerance, Condition, DocRef, Encounter, MedRequest, Observation, Patient, ServiceRequest
![](https://www.patient.dev/content/images/2023/08/screencapture-code-console-cerner-console-register-2022-04-13-13_53_48.png)
Accept the Terms 🙂
You will be redirected to the App page. Find your app and get the client_id
![](https://www.patient.dev/content/images/2023/08/Screen-Shot-2022-04-13-at-1.57.26-PM.png)
Replace the “redirect_uri” and “client_id” mutables in your Observable Notebook and click the little play buttons
![](https://www.patient.dev/content/images/2023/08/Screen-Shot-2022-04-13-at-3.00.25-PM.png)
Now, find the “Sign In” button and click it.
![](https://www.patient.dev/content/images/2023/08/Screen-Shot-2022-04-13-at-3.08.25-PM.png)
Use nancysmart/Cerner01
Use Nancy Smart (not her proxies)
Click Allow Access
![](https://www.patient.dev/content/images/2023/08/Screen-Shot-2022-04-13-at-2.01.34-PM.png)
If you see some error, it is likely because it takes about 5-10 min for an app to percolate through and actually get registered. Try again in 5-10 min
Now enjoy the results!
![](https://www.patient.dev/content/images/2023/08/Screen-Shot-2022-04-13-at-3.11.57-PM.png)