Show additional info in $validate response
Opened this issue · 1 comments
atuonufure commented
Problem I need to solve
As a response to operation /FHIR/<resourceType>/$validate
we can get information about the invalid resource structure, e.g.:
resourceType: OperationOutcome
text:
status: generated
div: Invalid resource
issue:
- severity: fatal
code: invalid
expression:
- Questionnaire.launchContext
diagnostics: Expected type of 'vector, got 'persistentarraymap
- severity: fatal
code: invalid
expression:
- Questionnaire.item.1.itemHidden
diagnostics: unknown key :itemHidden
Unfortunately, we can't detect what exactly the zen profile caused this error.
Solution I see
Example response:
- severity: fatal
code: invalid
expression:
- Questionnaire.item.1.itemHidden
diagnostics: unknown key :itemHidden
profiles:
- hl7-fhir-uv-sdc.sdc-questionnaire
- hl7-fhir-uv-sdc.sdc-questionnaire-extr-defn
Nesmeshnoy commented
- size