Who’s Like Me, GPT3?
🪞

Who’s Like Me, GPT3?

What we are making

image

(that is icd-10cm Z91.89)

To make:

image

You need the url to register an app (your url will be different than mine)

image

Go to fhir.epic.com and login “FHIR on Epic” not “Userweb”

  1. “+ Create”
  2. Give it a name
  3. Patient is already selected
  4. Select Condition.Read Condition.Search Patient.Read Patient.Search
    1. note, some of the epic apis are specific for conditions (genomic)
  5. Add redirect as your repl.it url + “/app.html”
  6. Save

image

You will get a new page with a nonprod client_id

  1. Select R4
  2. Give some description
  3. Hit “Save and Ready for Sandbox”

image

Go back to repl’s launch.html and change

  1. the client_id to your own
  2. the redirect to your own
image

Ready to go … click the box with an arrow coming out of it on the upper right to use

image

[sometimes wait 30 min or so for epic to pick up the new app or you might see this]

image

Login as fhirderrick epicepic1

image

Click “send”

image

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)

lambda

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 GPT3 in this is debatable.