smart-on-fhir / smart-dev-sandbox

Docker based sandbox for smart apps
Other
130 stars 73 forks source link

Docker Image lacks R2 (DSTU2) Providers #15

Open rjduff-lil opened 4 years ago

rjduff-lil commented 4 years ago

It seems the current docker image is lacking a set of Providers/Practitioners for its DSTU2 dataset, which is making it impossible for our app to launch in the DSTU2 configuration.

Steps to reproduce:

  1. Download and install the SMART sandbox docker image by following the instructions here: https://github.com/smart-on-fhir/smart-dev-sandbox#start-the-dev-sandbox
  2. Opening page with browser at http://localhost:4000, click 'Launch a SMART App' under 'FHIR DSTU2 Server'.
  3. Observe that in the 'Provider(s)' pulldown there are no values, only the message 'No Providers Found'.
  4. You can choose to launch via 'Continue without a user', but this doesn't work for our app.

Contrast:

  1. Go to https://launch.smarthealthit.org/
  2. Choose 'FHIR Version' as 'R2 (DSTU2)'
  3. Observe up to three values in the Provider(s) control with values: COREPRACTITIONER1,SMART-1234,COREPRACTITIONER4

I've tried switching the dataset as described here: https://github.com/smart-on-fhir/smart-dev-sandbox#choosing-a-dataset, but the volumes were already set with R2_IMAGE=smartonfhir/hapi-5:r2-full.

Other configurations work (R3/R4), only R2 seems broken for me.

Any help would be appreciated, as we wish to have a full suite of FHIR versions to test against.

rjduff-lil commented 4 years ago

Workaround: submit a POST request to insert a new Practitioner.

E.G.

curl -H "Content-Type: application/json+fhir; charset=UTF-8" -d "{
\"resourceType\": \"Practitioner\",
\"identifier\": [ {
\"system\": \"http://hl7.org/fhir/sid/us-npi\",
\"value\": \"160\"
} ],
\"active\": true,
\"name\": [ {
\"family\": \"Armitage\",
\"given\": [ \"Henry\" ],
\"prefix\": [ \"Dr.\" ]
} ],
\"address\": [ {
\"line\": [ \"13 MISKATONIC AVENUE\" ],
\"city\": \"ARKHAM\",
\"state\": \"MA\",
\"postalCode\": \"01970\",
\"country\": \"US\"
} ],
\"gender\": \"male\"
}" -X POST http://localhost:4002/hapi-fhir-jpaserver/fhir/Practitioner?_format=json&_pretty=true