How to determine if search response had either zero or too many matches #3506
|
I am implementing a patient search using the Is there a way to handle this differently in my implementation so I can determine whether the response had zero matches or too many matches? The intention is to feedback to the user why no search results are being returned. |
Replies: 1 comment
|
The sandbox is not responding 100% correctly according to the FHIR specs, since that says:
I've tried and can only do the mock calls on the sandbox, and their responses are completely fixed. On their actual servers they may respond as expected but I cannot test that. Might be worth it to reach out to them before you do a lot of extra work that is only relevant for the sandbox. I could only reproduce one of your issues, where an OperationOutcome is returned with a 200 OK status, leading to a null from the SearchAsync. The call that results in a Bundle with 0 results does work correctly, since you get your Bundle from the call then. You can check your |
The sandbox is not responding 100% correctly according to the FHIR specs, since that says:
I've tried and can only do the mock calls on the sandbox, and their responses are completely fixed. On their actual servers they may respond as expected but I cannot test that. Might be worth it to reach out to them before you do a lot of extra work that is only relevant for the sandbox.
I could only reproduce one of your issues, where an OperationOutcome is returned with a 200 OK status, leading to a null from the SearchAsync. The call …