🪞Who's like me GPT?
What we are making
(that is icd-10cm Z91.89)
Fork the code
Fork my repl at https://replit.com/@patientDev/GPT3-People-Like-Me
You need the url to register an app (your url will be different than mine)
Register with Epic
Go to fhir.epic.com and login “FHIR on Epic” not “Userweb”
- “+ Create”
- Give it a name
- Patient is already selected
- Select Condition.Read Condition.Search Patient.Read Patient.Search
- note, some of the epic apis are specific for conditions (genomic)
- Add redirect as your repl.it url + “/app.html”
- Save
You will get a new page with a nonprod client_id
- Select R4
- Give some description
- Hit “Save and Ready for Sandbox”
Finish up your forked code
Go back to repl’s launch.html and change
- the client_id to your own
- the redirect to your own
Try it out
Ready to go … click the box with an arrow coming out of it on the upper right to use
[sometimes wait 30 min or so for epic to pick up the new app or you might see this]
Login as fhirderrick epicepic1
(not a secret, is at https://fhir.epic.com/Documentation?docId=testpatients )
Click “send”
The “Send to AI” is really just a lambda like this (had to hide the api-key to openai somehow … ChatGPT3 now has API as of March 1, 2023)
https://patient.dev/simple-lambda-for-openai/
You can change to the “Risk for coronary artery disease” to something like “fibromyalgia” or “diabetes” or “marfans” to get more interesting results. Then click send again.
The accuracy of GPT in this is debatable.