We are testing out the SMART on FHIR launch process using a locally-developed proof of concept application. We have registered the application at code-console.sandboxcerner.com, gotten its client ID, set its allowed scopes, etc. We are then using the “Test Sandbox” button to test the application launch, and selecting a patient from the list of test patients that is provided to me. Once that is done the authorization flow seems to work as expected.
After authorization is complete, this application attempts to retrieve the Patient resource for the patient ID it was passed in the launch context. In this case, one of the test patients was selected and the patient ID of ‘123’ was provided at launch. But the attempt to retrieve the full patient resource returns a 404 error, suggesting the patient resource does not exist.
The URL for the patient resource request is https://fhir-ehr.sandboxcerner.com/r4/dacc6494-e336-45ad-8729-b789ff8663c6/Patient/123. I have tested this out with several of the patients in the list of test patients, and all of them result in the same 404 error.
Our developer reports that registering apps at https://code-console.cerner.com/ instead of at https://code-console.sandboxcerner.com/ does allow an app to get a patient ID that can then be used to retrieve the full patient resource, but this is a proof of concept app that we don't intend to put into production in its current state, and we generally use https://code-console.sandboxcerner.com/ for proof of concept apps like this.
Is there a problem with test data here? Or is https://code-console.sandboxcerner.com/ not supposed to provide this kind of testing capability?