Stream: implementers
Topic: validation-resources
faoc (May 15 2018 at 10:43):
Hi, i'm using new version of validtor (hapi-fhir-validation-resources-dstu3-3.3) and when i have a resource that is not referenced it should give an error, but it not happen. However, when i use the online validator, it work as expected.
For example, at the message below i have a "response.code":"ok", but under it i have an OperationOutcome.
{
"resourceType": "Bundle",
"type": "message",
"entry": [
{
"fullUrl": "",
"resource": {
...
"response": {
"identifier": "e7642ba4-7cd2-43cc-b211-d313bfba1022",
"code": "ok"
}
}
},
{
"fullUrl": "http://spms.min-saude.pt/fhir/OperationOutcome/03f9aa7d-b395-47b9-84e0-053678b6e4e3",
"resource": {
"resourceType" : "OperationOutcome",
"id" : "03f9aa7d-b395-47b9-84e0-053678b6e4e3",
....
}
}
...
]
}
Does anyone know how to solve this issue?
Grahame Grieve (May 15 2018 at 10:47):
why should there be an error?
faoc (May 15 2018 at 10:48):
because the OperationOutcome should't be there. And when you validate it online, you get an error
faoc (May 15 2018 at 11:05):
A resource that isn't referenced, shouldn't be an error? If not is like a "trash" on the message...
Lloyd McKenzie (May 15 2018 at 13:55):
Servers are not obligated to report errors - they get to choose what data they'll tolerate.
Grahame Grieve (May 15 2018 at 21:26):
I think our expectations for the validator might be a little higher than that
Last updated: Apr 12 2022 at 19:14 UTC