FHIR Chat · US Core - 404 error for query for invalid resource? · implementers

Stream: implementers

Topic: US Core - 404 error for query for invalid resource?


view this post on Zulip Matt Pfeffer (Mar 26 2021 at 00:00):

I'm looking for some help interpreting the US Core guidance for Missing Data. The IG states, if required coded data with a required terminology binding cannot be populated using the terminology, then 'a 404 http error code and an OperationOutcome SHALL be returned in response to a query for the resource.' (https://www.hl7.org/fhir/us/core/general-guidance.html#missing-data)

Does this mean that any search that would have returned the data in question should return a 404, even if other, valid resources meet the search criteria?

If so, how is that implemented? Is there a requirement that the system maintain a FHIR resource for the information in question that does not conform to US Core, and identify that resource as a hit for the search, in order to know it should return a 404? Or is there another way to know when to return a 404?

Alternately, is the intent of the guidance that the system should return a 404 in response to a Read request for the resource directly, should one exist, as opposed to a Search?

(A similar question has come up here before -- https://chat.fhir.org/#narrow/stream/179166-implementers/topic/Condition.2EclinicalStatus/near/211164347 -- but I didn't see an answer.)

view this post on Zulip Eric Haas (Mar 26 2021 at 00:34):

see updated guidance here: http://build.fhir.org/ig/HL7/US-Core/general-guidance.html#contained-resources

the expected server error behavior for read and search would be slightly different.

view this post on Zulip Matt Pfeffer (Mar 26 2021 at 14:28):

@Eric Haas Thank you. This is very helpful.


Last updated: Apr 12 2022 at 19:14 UTC