Error Handling

In case of error occurence, except explicitly stated, ePrescription and eResult services will returned a FHIR OperationOutcome structure.

OperationOutcome returned will comform the following structure:

Attribute Value Comment
resourceType OperationOutcome
issue[ ].severity error Fixed value
issue[ ].code https://www.hl7.org/fhir/r4/valueset-issue-type.html
issue[ ].details.coding[ ].system System associated to the code below
issue[ ].details.coding[ ].code Business Error Code Code describing the error. This code identifies uniquely the error that occurs
issue[ ].details.coding[ ].display Display message associated to the error code above. It's fixed. It doesn't contain contextual information
issue[ ].details.text Error description It contains textual description of the error and contextual information
issue[ ].diagnostic Error description It contains textual description of the error and contextual information. Use this description if there's no "issue[ ].details.text" node

The structure may also contain additional information (like line and column of the incorrect data). It can use to help diagnostic but the format and the presence are not guaranted in future version.

Note that depending of the error, this OperationOutcome may contain One or more "issue"

See full examples with One issue, Several issues