From 839bab8f7699fc4effdc86cdbf2a572da0dd30f3 Mon Sep 17 00:00:00 2001 From: Wlad <64201310+wlad@users.noreply.github.com> Date: Thu, 25 Feb 2021 22:23:17 +0100 Subject: [PATCH] [ADD] bug trace to https://github.com/ehrbase/fhir-bridge/issues/247 --- tests/robot/CONDITION/01_create.robot | 9 ++++++--- tests/robot/OBSERVATION/04_create_heart_rate.robot | 4 ++-- tests/robot/OBSERVATION/05_create_fi02.robot | 4 ++-- tests/robot/OBSERVATION/07_create_body_weight.robot | 3 ++- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/tests/robot/CONDITION/01_create.robot b/tests/robot/CONDITION/01_create.robot index 3fe92cb5c..d15b547dd 100644 --- a/tests/robot/CONDITION/01_create.robot +++ b/tests/robot/CONDITION/01_create.robot @@ -66,11 +66,12 @@ Force Tags condition_create create ... 3. *UPDATE* ``Subject - Identifier - value`` with the _UUID:_ ${subject_id} which was created in EHR record\n\n ... 4. *POST* example JSON to condition endpoint\n\n ... 5. *VALIDATE* the response status - [Tags] symptoms-covid-19 valid not-ready_parallel_fail not-ready + [Tags] symptoms-covid-19 valid not-ready_parallel_fail not-ready 247 ehr.create new ehr 000_ehr_status.json condition.create symptoms-covid-19 Symptoms-Covid-19 create-symptoms-covid-19-present.json condition.validate response - 201 + [Teardown] TRACE GITHUB ISSUE 247 bug 004 Create Condition Symptoms-Covid-19 (Absent) @@ -79,11 +80,12 @@ Force Tags condition_create create ... 3. *UPDATE* ``Subject - Identifier - value`` with the _UUID:_ ${subject_id} which was created in EHR record\n\n ... 4. *POST* example JSON to condition endpoint\n\n ... 5. *VALIDATE* the response status - [Tags] symptoms-covid-19 valid not-ready_parallel_fail not-ready + [Tags] symptoms-covid-19 valid not-ready_parallel_fail not-ready 247 ehr.create new ehr 000_ehr_status.json condition.create symptoms-covid-19 Symptoms-Covid-19 create-symptoms-covid-19-absent.json condition.validate response - 201 + [Teardown] TRACE GITHUB ISSUE 247 bug 005 Create Condition Symptoms-Covid-19 (Unknown) @@ -92,11 +94,12 @@ Force Tags condition_create create ... 3. *UPDATE* ``Subject - Identifier - value`` with the _UUID:_ ${subject_id} which was created in EHR record\n\n ... 4. *POST* example JSON to condition endpoint\n\n ... 5. *VALIDATE* the response status - [Tags] symptoms-covid-19 valid not-ready_parallel_fail not-ready + [Tags] symptoms-covid-19 valid not-ready_parallel_fail not-ready 247 ehr.create new ehr 000_ehr_status.json condition.create symptoms-covid-19 Symptoms-Covid-19 create-symptoms-covid-19-unknown.json condition.validate response - 201 + [Teardown] TRACE GITHUB ISSUE 247 bug 006 Create Condition Diabetes Mellitus diff --git a/tests/robot/OBSERVATION/04_create_heart_rate.robot b/tests/robot/OBSERVATION/04_create_heart_rate.robot index 3aa44da5e..f7ff6f5ba 100644 --- a/tests/robot/OBSERVATION/04_create_heart_rate.robot +++ b/tests/robot/OBSERVATION/04_create_heart_rate.robot @@ -283,7 +283,7 @@ Force Tags observation_create heart-rate create ... 4. *POST* example JSON to observation endpoint\n\n ... 5. *VALIDATE* the response status \n\n ... 6. *VALIDATE* outcome against diagnostic text - [Tags] valueQuantity invalid not-ready_parallel_fail not-ready + [Tags] valueQuantity invalid not-ready_parallel_fail not-ready 247 [Template] create Observation Heart Rate JSON #| resourceType | ID | meta | status | Identifier | category | code | subject | DateTime | valueQuantity | dataabsentreason | R.-Code | ArrayNumber | diagnostics | @@ -311,7 +311,7 @@ Force Tags observation_create heart-rate create Observation heart-rate true http://hl7.org/fhir/StructureDefinition/heartrate final true http://terminology.hl7.org/CodeSystem/v2-0203 Dave https://www.charite.de/fhir/CodeSystem/observation-identifiers 8867-4_HeartRate true Organization/Charité true true http://terminology.hl7.org/CodeSystem/observation-category vital-signs true true http://loinc.org 8867-4 Heart rate http://snomed.info/sct abcd Heart rate (observable entity) Heart rate true valid 2020-02-25 true ${88.8} pro Minute http://unitsofmeasure.org ${12345} false 422 0 Error parsing JSON: the primitive value must be a string Fehler beim Parsen von JSON: Der primitive Wert muss ein String sein. Observation heart-rate true http://hl7.org/fhir/StructureDefinition/heartrate final true http://terminology.hl7.org/CodeSystem/v2-0203 Dave https://www.charite.de/fhir/CodeSystem/observation-identifiers 8867-4_HeartRate true Organization/Charité true true http://terminology.hl7.org/CodeSystem/observation-category vital-signs true true http://loinc.org 8867-4 Heart rate http://snomed.info/sct abcd Heart rate (observable entity) Heart rate true valid 2020-02-25 true ${88.8} pro Minute http://unitsofmeasure.org ${EMPTY} false 422 1 @value cannot be empty @value kann nicht leer sein Observation heart-rate true http://hl7.org/fhir/StructureDefinition/heartrate final true http://terminology.hl7.org/CodeSystem/v2-0203 Dave https://www.charite.de/fhir/CodeSystem/observation-identifiers 8867-4_HeartRate true Organization/Charité true true http://terminology.hl7.org/CodeSystem/observation-category vital-signs true true http://loinc.org 8867-4 Heart rate http://snomed.info/sct abcd Heart rate (observable entity) Heart rate true valid 2020-02-25 true ${88.8} pro Minute http://unitsofmeasure.org missing false 422 1 minimum required = 1, but only found 0 http://hl7.org/fhir/StructureDefinition/heartrate: mindestens erforderlich = Observation.value - + [Teardown] TRACE GITHUB ISSUE 247 bug 012 Create Heart Rate (invalid DataAbsentReason) [Documentation] 1. *CREATE* new an EHR record\n\n diff --git a/tests/robot/OBSERVATION/05_create_fi02.robot b/tests/robot/OBSERVATION/05_create_fi02.robot index 35a2954ba..03e5c23d0 100644 --- a/tests/robot/OBSERVATION/05_create_fi02.robot +++ b/tests/robot/OBSERVATION/05_create_fi02.robot @@ -308,7 +308,7 @@ ${profile url} https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefi ... 7. *VALIDATE* outcome against diagnostic text & location [Template] Create FiO2 with ehr reference - [Tags] valueQuantity not-ready_parallel_fail not-ready + [Tags] valueQuantity not-ready_parallel_fail not-ready 247 # HTTP # FIELD/PATH VALUE CODE ERROR MESSAGE $.valueQuantity missing 422 Observation.value.x.: minimum required = 1, but only found 0 .from ${profile url} @@ -345,7 +345,7 @@ ${profile url} https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefi $.valueQuantity.code ${None} 422 Observation.value.x.:valueQuantity.code: minimum required = 1, but only found 0 .from ${profile url} $.valueQuantity.code ${123} 422 Error parsing JSON: the primitive value must be a string $.valueQuantity.code foobar 422 Value is 'foobar' but must be '%' - + [Teardown] TRACE GITHUB ISSUE 247 bug diff --git a/tests/robot/OBSERVATION/07_create_body_weight.robot b/tests/robot/OBSERVATION/07_create_body_weight.robot index 25de9f671..d05373c66 100644 --- a/tests/robot/OBSERVATION/07_create_body_weight.robot +++ b/tests/robot/OBSERVATION/07_create_body_weight.robot @@ -282,7 +282,7 @@ ${body_weight_url} https://www.netzwerk-universitaetsmedizin.de/fhir/Structure ... 7. *VALIDATE* outcome against diagnostic text & location [Template] Create Body Weight with ehr reference - [Tags] valueQuantity not-ready_parallel_fail not-ready + [Tags] valueQuantity not-ready_parallel_fail not-ready 247 # HTTP # FIELD/PATH VALUE CODE ERROR MESSAGE $.valueQuantity missing 422 .*If there is no component or hasMember element then either a value.x. or a data absent reason must be present @@ -317,6 +317,7 @@ ${body_weight_url} https://www.netzwerk-universitaetsmedizin.de/fhir/Structure $.valueQuantity.code ${None} 422 Observation.value.x.:valueQuantity.code: minimum required = 1, but only found 0 .from ${body_weight_url} $.valueQuantity.code ${123} 422 Error parsing JSON: the primitive value must be a string $.valueQuantity.code foobar 422 .*No matching units for:foobar, expected units:kg.*Bad Request.* + [Teardown] TRACE GITHUB ISSUE 247 bug #-------------------------------------------------------------------------------------------------------------------------------------------------------------------- # BUG TRACE