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

Commit

Permalink
[ADD] bug trace to #247
Browse files Browse the repository at this point in the history
  • Loading branch information
wlad committed Feb 25, 2021
1 parent 182c218 commit 839bab8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
9 changes: 6 additions & 3 deletions tests/robot/CONDITION/01_create.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/robot/OBSERVATION/04_create_heart_rate.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/robot/OBSERVATION/05_create_fi02.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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



Expand Down
3 changes: 2 additions & 1 deletion tests/robot/OBSERVATION/07_create_body_weight.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 839bab8

Please sign in to comment.