https://i.stack.imgur.com/Tew1u.jpg
I am new to using API's. The only thing I can currently do is search for a diagnostic report via ID by using the code:
DiagnosticReport dR = client.read().resource(DiagnosticReport.class).withId("3281").execute();
But how can I search to see if a subject with reference: "Patient/3250" exists, and if it exists, how can I return the string "Encounter/3267" from:
"context": { "reference": "Encounter/3267"