Stream: implementers
Topic: OperationOutcome with no issues
Simone Heckmann (Oct 27 2017 at 10:20):
Um. Did it ever occur to anyone that
<?xml version="1.0" encoding="UTF-8"?> <OperationOutcome xmlns="http://hl7.org/fhir"> <text> <status value="generated"/> <div xmlns="http://www.w3.org/1999/xhtml"> <p> <b>Operation Outcome for :Validate resource </b> </p> <p>All OK</p> </div> </text> </OperationOutcome>
is not a valid Resource....?
... @Grahame Grieve ...?
Simone Heckmann (Oct 27 2017 at 10:23):
If I call /OperationOutcome/$validate for that on the very same server that gave me that very same response, I get
<OperationOutcome> <issue> <severity value="error"/> <code value="structure"/> <details> <text value="Profile http://hl7.org/fhir/StructureDefinition/OperationOutcome, Element "OperationOutcome.issue" (OperationOutcome.issue): minimum required = 1, but only found 0"/> </details> <location value="OperationOutcome"/> <expression value="OperationOutcome // line 1 col 5)"/> </issue> </OperationOutcome>
which is expected, since issue has a cadinality of 1..*
Ben Spencer (Oct 27 2017 at 10:26):
you can have non-error issues
Simone Heckmann (Oct 27 2017 at 10:26):
HAPI returns this, upon successful validation:
<OperationOutcome> <issue> <severity value="information"/> <code value="informational"/> <diagnostics value="No issues detected during validation"/> </issue> </OperationOutcome>
the above mentioned OperationOutcome that violates the spec came from test.fhir.org
Simone Heckmann (Oct 27 2017 at 10:26):
you can have non-error issues
not according to the spec: http://build.fhir.org/operationoutcome.html
Simone Heckmann (Oct 27 2017 at 10:27):
issue is 1..*
Simone Heckmann (Oct 27 2017 at 10:28):
IMO HAPI handles this correctly by returning an "informational" issue
Ben Spencer (Oct 27 2017 at 10:28):
I meant you can have informational issues, like the hapi example
Ben Spencer (Oct 27 2017 at 10:28):
yes
Grahame Grieve (Oct 27 2017 at 20:40):
thanks Simone. will be fixed next time I upgrade the server
Last updated: Apr 12 2022 at 19:14 UTC