Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

500 Internal Server Error if a Diagnostic Report does not contain at least one Observation #574

Open
af-pwo opened this issue Jun 22, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@af-pwo
Copy link
Contributor

af-pwo commented Jun 22, 2022

path to test case

fhir-bridge/tests/robot/DIAGNOSTIC/01_create.robot

Using test data from:

fhir-bridge/src/test/resources/DiagnosticReport/create-diagnosticReport-without-observation.json

Description

It is mandatory to have at least one reference to another Observation in a diagnostic report, hence an error 422 needs to be thrown if a Diagnostic Report does not contain at least one Observation. See screenshot from the simplifier profile.

by test case name (wildcards possible)

002 Create Diagnostic Report w/o Observation

robot command to execute related test case(s) in your terminal/console

robot -L TRACE -d results -i diagnostic-reportANDinvalid robot

Actual Result

500

Expected Result

422

B7E64935-FC09-4E05-ADC4-BD4EAF264447

@af-pwo af-pwo added the bug Something isn't working label Jun 22, 2022
@af-pwo af-pwo changed the title Unexpected 201 if a Diagnostic Report does not contain at least one Observation 500 Internal Server Error if a Diagnostic Report does not contain at least one Observation Jun 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant