Unexpected 201 if component[x].code.coding[0].system in History of Travel is missing - CIRCLECI #568
Description
path to test case
fhir-bridge/tests/robot/OBSERVATION/17_create_history_of_travel.robot
Using test data from:
fhir-bridge/src/test/resources/Observation/create-history-of-travel.json
Description
The fhir-bridge throws a 201 success status if the attribute component[x].code.coding[0].system is missing in the History of Travel resource. According to the simplifier profile, this attribute is mandatory (1..1). See screenshot. Therefore an error should be thrown when this attribute is missing.
by test case name (wildcards possible)
008 Create History of Travel (invalid/missing 'component[0] start date')
009 Create History of Travel (invalid/missing 'component[1] country')
010 Create History of Travel (invalid/missing 'component[2] state')
011 Create History of Travel (invalid/missing 'component[3] city')
012 Create History of Travel (invalid/missing 'component[4] end date')
06 Bug Trace component[x].code.coding[0].system unexpected 201
# robot command to execute related test case(s) in your terminal/console
https://app.circleci.com/pipelines/github/ehrbase/fhir-bridge/2247/workflows/f1e1ab93-4eb9-481c-ac5f-2eb93681ed19/jobs/10770/steps
https://output.circle-artifacts.com/output/job/eb49f9f3-e6ca-4c95-b435-9d115f0779ad/artifacts/0/00_robot_results/OBSERVATION/log.html
robot -v OUTPUT_LEVEL:verbose -L TRACE \
--include observation \
--outputdir results/0/OBSERVATION \
--name OBSERVATION \
--skip TODO --skip future \
--skiponfailure not-ready \
robot/OBSERVATION
## Actual Result
201
## Expected Result
422
The value for system in component[x].code.coding[0] is mandatory. See here:
https://simplifier.net/forschungsnetzcovid-19/historyoftravel
This test case should throw a 422, as it tries to create a History of Travel ressource, without a system value.