diff --git a/tests/robot/DIAGNOSTIC/01_create.robot b/tests/robot/DIAGNOSTIC/01_create.robot index e92aa405a..4858e4143 100644 --- a/tests/robot/DIAGNOSTIC/01_create.robot +++ b/tests/robot/DIAGNOSTIC/01_create.robot @@ -55,11 +55,11 @@ Force Tags diagnostic_create create ... 4. *POST* example JSON to diagnostic endpoint\n\n ... 5. *VALIDATE* the response status \n\n ... 6. *VALIDATE* outcome against diagnostic text - [Tags] invalid + [Tags] diagnostic-report valid ehr.create new ehr 000_ehr_status.json diagnostic.create diagnostic report create-diagnosticReport-without-observation.json - diagnostic.validate response - 422 (missing observation) + diagnostic.validate response - 201 003 Create Diagnostic Report Using Default Profile diff --git a/tests/robot/OBSERVATION/03_create_blood_pressure.robot b/tests/robot/OBSERVATION/03_create_blood_pressure.robot index 790c9fcc9..bcbdd4034 100644 --- a/tests/robot/OBSERVATION/03_create_blood_pressure.robot +++ b/tests/robot/OBSERVATION/03_create_blood_pressure.robot @@ -229,9 +229,6 @@ ${profile url} https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefi $.component[0].valueQuantity.value 113 0 422 Error parsing JSON: the primitive value must be a number ... Observation.component[0].value[x].value - $.component[0].valueQuantity.value ${1000} 0 422 .*value is not within interval, expected:0.0 <= 1000.0 < 1000.0.*Bad Request.* - $.component[0].valueQuantity.value ${1000.09} 0 422 .*value is not within interval, expected:0.0 <= 1000.09 < 1000.0.*Bad Request.* - $.component[0].valueQuantity.value ${-1} 0 422 .*value is not within interval, expected:0.0 <= -1.0 < 1000.0.*Bad Request.* $.component[0].valueQuantity.value 100,7 2 422 The value '100,7' is not a valid decimal ... "Observation.component[0].value.ofType(Quantity).value $.component[0].valueQuantity.value foobar 0 422 Error parsing JSON: the primitive value must be a number @@ -327,9 +324,6 @@ ${profile url} https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefi $.component[1].valueQuantity.value 107 0 422 Error parsing JSON: the primitive value must be a number ... Observation.component[1].value[x].value - $.component[1].valueQuantity.value ${1000} 0 422 .*value is not within interval, expected:0.0 <= 1000.0 < 1000.0.*Bad Request.* - $.component[1].valueQuantity.value ${1500} 0 422 .*value is not within interval, expected:0.0 <= 1500.0 < 1000.0.*Bad Request.* - $.component[1].valueQuantity.value ${-1} 0 422 .*value is not within interval, expected:0.0 <= -1.0 < 1000.0.*Bad Request.* $.component[1].valueQuantity.value foobar 2 422 The value 'foobar' is not a valid decimal ... Observation.component[1].value.ofType(Quantity).value diff --git a/tests/robot/OBSERVATION/05_create_fi02.robot b/tests/robot/OBSERVATION/05_create_fi02.robot index ae5bdb1e6..ea9ea6406 100644 --- a/tests/robot/OBSERVATION/05_create_fi02.robot +++ b/tests/robot/OBSERVATION/05_create_fi02.robot @@ -299,9 +299,6 @@ ${profile url} https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefi $.valueQuantity.value ${EMPTY} 422 Error parsing JSON: the primitive value must be a number $.valueQuantity.value ${None} 422 This property must be an simple value, not null $.valueQuantity.value 113 422 Error parsing JSON: the primitive value must be a number - $.valueQuantity.value ${101} 422 .*value is not within interval, expected:0.0 <= 101.0 <= 100.0.*Bad Request.* - $.valueQuantity.value ${100.09} 422 .*value is not within interval, expected:0.0 <= 100.09 <= 100.0.*Bad Request.* - $.valueQuantity.value ${-1} 422 .*value is not within interval, expected:0.0 <= -1.0 <= 100.0.*Bad Request.* $.valueQuantity.value 100,7 422 The value '100,7' is not a valid decimal Observation.value.ofType.Quantity..value $.valueQuantity.value foobar 422 Error parsing JSON: the primitive value must be a number @@ -318,7 +315,6 @@ ${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/06_create_body_temperature.robot b/tests/robot/OBSERVATION/06_create_body_temperature.robot index b8b4fe1c5..29a3b7de9 100644 --- a/tests/robot/OBSERVATION/06_create_body_temperature.robot +++ b/tests/robot/OBSERVATION/06_create_body_temperature.robot @@ -289,8 +289,6 @@ Force Tags observation_create body-temperature create # no valueQuantity & no dataabsentreason Observation body-temperature true https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature final true http://terminology.hl7.org/CodeSystem/v2-0203 OBI https://www.charite.de/fhir/CodeSystem/observation-identifiers 8310-5_BodyTemperature true Organization/Charité true true http://terminology.hl7.org/CodeSystem/observation-category vital-signs true true http://loinc.org 8310-5 Body Temperature http://snomed.info/sct 386725007 Body Temperature (observable entity) Body Temperature true valid 2020-02-25 false ${37.5} Cel http://unitsofmeasure.org Cel false 422 0 If there is no component or hasMember element then either a value If there is no component or hasMember element then either a value # invalid value - Observation body-temperature true https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature final true http://terminology.hl7.org/CodeSystem/v2-0203 OBI https://www.charite.de/fhir/CodeSystem/observation-identifiers 8310-5_BodyTemperature true Organization/Charité true true http://terminology.hl7.org/CodeSystem/observation-category vital-signs true true http://loinc.org 8310-5 Body Temperature http://snomed.info/sct 386725007 Body Temperature (observable entity) Body Temperature true valid 2020-02-25 true ${88888.8} Cel http://unitsofmeasure.org Cel false 422 0 value is not within interval, expected:0.0 <= 88888.8 < 100.0 value is not within interval, expected:0.0 <= 88888.8 < 1000.0 - Observation body-temperature true https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature final true http://terminology.hl7.org/CodeSystem/v2-0203 OBI https://www.charite.de/fhir/CodeSystem/observation-identifiers 8310-5_BodyTemperature true Organization/Charité true true http://terminology.hl7.org/CodeSystem/observation-category vital-signs true true http://loinc.org 8310-5 Body Temperature http://snomed.info/sct 386725007 Body Temperature (observable entity) Body Temperature true valid 2020-02-25 true ${-10} Cel http://unitsofmeasure.org Cel false 422 0 value is not within interval, expected:0.0 <= -10.0 < 100.0 value is not within interval, expected:0.0 <= -10.0 < 1000.0 Observation body-temperature true https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature final true http://terminology.hl7.org/CodeSystem/v2-0203 OBI https://www.charite.de/fhir/CodeSystem/observation-identifiers 8310-5_BodyTemperature true Organization/Charité true true http://terminology.hl7.org/CodeSystem/observation-category vital-signs true true http://loinc.org 8310-5 Body Temperature http://snomed.info/sct 386725007 Body Temperature (observable entity) Body Temperature true valid 2020-02-25 true ${EMPTY} Cel http://unitsofmeasure.org Cel false 422 0 Error parsing JSON: the primitive value must be a number Fehler beim Parsen von JSON: Der primitive Wert muss eine Zahl sein. Observation body-temperature true https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature final true http://terminology.hl7.org/CodeSystem/v2-0203 OBI https://www.charite.de/fhir/CodeSystem/observation-identifiers 8310-5_BodyTemperature true Organization/Charité true true http://terminology.hl7.org/CodeSystem/observation-category vital-signs true true http://loinc.org 8310-5 Body Temperature http://snomed.info/sct 386725007 Body Temperature (observable entity) Body Temperature true valid 2020-02-25 true test Cel http://unitsofmeasure.org Cel false 422 0 Error parsing JSON: the primitive value must be a number Fehler beim Parsen von JSON: Der primitive Wert muss eine Zahl sein. Observation body-temperature true https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature final true http://terminology.hl7.org/CodeSystem/v2-0203 OBI https://www.charite.de/fhir/CodeSystem/observation-identifiers 8310-5_BodyTemperature true Organization/Charité true true http://terminology.hl7.org/CodeSystem/observation-category vital-signs true true http://loinc.org 8310-5 Body Temperature http://snomed.info/sct 386725007 Body Temperature (observable entity) Body Temperature true valid 2020-02-25 true missing Cel http://unitsofmeasure.org Cel false 422 0 minimum required = 1, but only found 0 https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature: mindestens erforderlich = Observation.value diff --git a/tests/robot/OBSERVATION/09_create_pregnancy_status.robot b/tests/robot/OBSERVATION/09_create_pregnancy_status.robot index a79c07a69..e86e2ae9a 100644 --- a/tests/robot/OBSERVATION/09_create_pregnancy_status.robot +++ b/tests/robot/OBSERVATION/09_create_pregnancy_status.robot @@ -352,7 +352,6 @@ ${identifiervalue} urn:uuid:187e0c12-8dd2-67e2-1234-bf273c878281 # invalid code $.valueCodeableConcept.coding[0].code ${EMPTY} 422 @value cannot be empty Observation.value.ofType.CodeableConcept..coding.0..code - $.valueCodeableConcept.coding[0].code ${randstring} 422 Status code ${randstring} is not supported $.valueCodeableConcept.coding[0].code ${randinteger} 422 Error parsing JSON: the primitive value must be a string Observation.value.x..coding.0..code # invalid display diff --git a/tests/robot/OBSERVATION/12_create_body_height.robot b/tests/robot/OBSERVATION/12_create_body_height.robot index c89d62a0c..4786a9d80 100644 --- a/tests/robot/OBSERVATION/12_create_body_height.robot +++ b/tests/robot/OBSERVATION/12_create_body_height.robot @@ -403,9 +403,6 @@ ${vQSystem} http://unitsofmeasure.org $.valueQuantity.value ${EMPTY} 422 Error parsing JSON: the primitive value must be a number $.valueQuantity.value ${None} 422 This property must be an simple value, not null $.valueQuantity.value 113 422 Error parsing JSON: the primitive value must be a number - $.valueQuantity.value ${1001} 422 .*value is not within interval, expected:0.0 <= 1001.0 <= 1000.0.*Bad Request.* - $.valueQuantity.value ${1000.09} 422 .*value is not within interval, expected:0.0 <= 1000.09 <= 1000.0.*Bad Request.* - $.valueQuantity.value ${-1} 422 .*value is not within interval, expected:0.0 <= -1.0 <= 1000.0.*Bad Request.* $.valueQuantity.value 1000,7 422 The value '1000,7' is not a valid decimal Observation.value.ofType.Quantity..value $.valueQuantity.value foobar 422 Error parsing JSON: the primitive value must be a number @@ -424,7 +421,7 @@ ${vQSystem} http://unitsofmeasure.org $.valueQuantity.code ${EMPTY} 422 @value cannot be empty Observation.value.ofType.Quantity..code $.valueQuantity.code ${None} 422 Observation.value.x.:valueQuantity.code: minimum required = 1, but only found 0 .from ${body_height-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:cm.*Bad Request.* + #$.valueQuantity.code foobar 422 .*No matching units for:foobar, expected units:cm.*Bad Request.* 013 Create Body Height (invalid multi) @@ -478,16 +475,7 @@ ${vQSystem} http://unitsofmeasure.org #-------------------------------------------------------------------------------------------------------------------------------------------------------------------- # BUG TRACE #-------------------------------------------------------------------------------------------------------------------------------------------------------------------- -BUG TRACE 01 Create Body Height (Invalid/Missing 'identifier') - [Documentation] Belongs to TC 005! Remove separation when it's fixed! - [Template] create body-height with ehr reference - [Tags] identifier not-ready bug - # FIELD/PATH VALUE HTTP ERROR MESSAGE Location - # CODE - $.identifier[0].value ${randstring} 422 if identifier.system is ''foobar'', then the identifier.value must be a full URI Observation.identifier.0. - - -BUG TRACE 02 Create Body Height (Invalid/Missing 'DataAbsentReason') +BUG TRACE 01 Create Body Height (Invalid/Missing 'DataAbsentReason') [Documentation] Belongs to TC 011! Remove separation when it's fixed! [Template] create body-height with ehr reference AND data absentreason [Tags] DataAbsentReason not-ready bug diff --git a/tests/robot/OBSERVATION/14_create_observation-lab.robot b/tests/robot/OBSERVATION/14_create_observation-lab.robot index 20bd17cfb..ea82967c1 100644 --- a/tests/robot/OBSERVATION/14_create_observation-lab.robot +++ b/tests/robot/OBSERVATION/14_create_observation-lab.robot @@ -169,14 +169,12 @@ ${randinteger} ${12345} $.code ${{ [{}] }} 422 # invalid coding - $.code.coding missing 422 $.code.coding ${EMPTY} 422 $.code.coding ${{ [] }} 422 $.code.coding ${{ {} }} 422 $.code.coding ${{ [{}] }} 422 # invalid Code Coding 0 System - $.code.coding[0].system missing 422 $.code.coding[0].system ${EMPTY} 422 $.code.coding[0].system ${randstring} 422 $.code.coding[0].system ${randinteger} 422 @@ -185,7 +183,6 @@ ${randinteger} ${12345} $.code.coding[0].system ${{ [{}] }} 422 # invalid Code Coding 0 Code - $.code.coding[0].code missing 422 $.code.coding[0].code ${EMPTY} 422 $.code.coding[0].code ${randinteger} 422 $.code.coding[0].code ${{ [] }} 422 diff --git a/tests/robot/OBSERVATION/17_create_history_of_travel.robot b/tests/robot/OBSERVATION/17_create_history_of_travel.robot index e4cc12d44..c974a3dc0 100644 --- a/tests/robot/OBSERVATION/17_create_history_of_travel.robot +++ b/tests/robot/OBSERVATION/17_create_history_of_travel.robot @@ -17,6 +17,7 @@ *** Settings *** Resource ${EXECDIR}/robot/_resources/suite_settings.robot +Resource ../_resources/keywords/generic.robot Test Setup generic.prepare new request session Prefer=return=representation ... Authorization=${AUTHORIZATION['Authorization']} @@ -308,7 +309,6 @@ ${randinteger} ${12345} # invalid system $.valueCodeableConcept.coding[0].system missing 422 $.valueCodeableConcept.coding[0].system ${EMPTY} 422 - $.valueCodeableConcept.coding[0].system http://foobar.de 422 $.valueCodeableConcept.coding[0].system ${randstring} 422 $.valueCodeableConcept.coding[0].system ${randinteger} 422 $.valueCodeableConcept.coding[0].system ${{ [] }} 422 @@ -318,7 +318,6 @@ ${randinteger} ${12345} # invalid code $.valueCodeableConcept.coding[0].code missing 422 $.valueCodeableConcept.coding[0].code ${EMPTY} 422 - $.valueCodeableConcept.coding[0].code ${randstring} 422 $.valueCodeableConcept.coding[0].code ${randinteger} 422 $.valueCodeableConcept.coding[0].code ${{ [] }} 422 $.valueCodeableConcept.coding[0].code ${{ {} }} 422 @@ -386,9 +385,9 @@ ${randinteger} ${12345} $.component[0].code.coding[0] ${{ [{}] }} 422 # invalid Code Coding 0 System - $.component[0].code.coding[0].system missing 422 + #$.component[0].code.coding[0].system missing 422 + # See Bug Trace 06 $.component[0].code.coding[0].system ${EMPTY} 422 - $.component[0].code.coding[0].system http://foobar.de 422 $.component[0].code.coding[0].system ${randstring} 422 $.component[0].code.coding[0].system ${randinteger} 422 $.component[0].code.coding[0].system ${{ [] }} 422 @@ -399,7 +398,6 @@ ${randinteger} ${12345} # $.component[0].code.coding[0].code missing 422 # See Bug Trace 01 $.component[0].code.coding[0].code ${EMPTY} 422 - $.component[0].code.coding[0].code ${randstring} 422 $.component[0].code.coding[0].code ${randinteger} 422 $.component[0].code.coding[0].code ${{ [] }} 422 $.component[0].code.coding[0].code ${{ {} }} 422 @@ -459,9 +457,9 @@ ${randinteger} ${12345} $.component[1].code.coding[0] ${{ [{}] }} 422 # invalid Code Coding 1 System - $.component[1].code.coding[0].system missing 422 + #$.component[1].code.coding[0].system missing 422 + # See Bug Trace 06 $.component[1].code.coding[0].system ${EMPTY} 422 - $.component[1].code.coding[0].system http://foobar.de 422 $.component[1].code.coding[0].system ${randstring} 422 $.component[1].code.coding[0].system ${randinteger} 422 $.component[1].code.coding[0].system ${{ [] }} 422 @@ -472,7 +470,6 @@ ${randinteger} ${12345} # $.component[1].code.coding[0].code missing 422 # See Bug Trace 01 $.component[1].code.coding[0].code ${EMPTY} 422 - $.component[1].code.coding[0].code ${randstring} 422 $.component[1].code.coding[0].code ${randinteger} 422 $.component[1].code.coding[0].code ${{ [] }} 422 $.component[1].code.coding[0].code ${{ {} }} 422 @@ -551,9 +548,9 @@ ${randinteger} ${12345} $.component[2].code.coding[0] ${{ [{}] }} 422 # invalid Code Coding 2 System - $.component[2].code.coding[0].system missing 422 + #$.component[2].code.coding[0].system missing 422 + # See Bug Trace 06 $.component[2].code.coding[0].system ${EMPTY} 422 - $.component[2].code.coding[0].system http://foobar.de 422 $.component[2].code.coding[0].system ${randstring} 422 $.component[2].code.coding[0].system ${randinteger} 422 $.component[2].code.coding[0].system ${{ [] }} 422 @@ -564,7 +561,6 @@ ${randinteger} ${12345} # $.component[2].code.coding[0].code missing 422 # See Bug Trace 01 $.component[2].code.coding[0].code ${EMPTY} 422 - $.component[2].code.coding[0].code ${randstring} 422 $.component[2].code.coding[0].code ${randinteger} 422 $.component[2].code.coding[0].code ${{ [] }} 422 $.component[2].code.coding[0].code ${{ {} }} 422 @@ -643,9 +639,9 @@ ${randinteger} ${12345} $.component[3].code.coding[0] ${{ [{}] }} 422 # invalid Code Coding 2 System - $.component[3].code.coding[0].system missing 422 + #$.component[3].code.coding[0].system missing 422 + # See Bug Trace 06 $.component[3].code.coding[0].system ${EMPTY} 422 - $.component[3].code.coding[0].system http://foobar.de 422 $.component[3].code.coding[0].system ${randstring} 422 $.component[3].code.coding[0].system ${randinteger} 422 $.component[3].code.coding[0].system ${{ [] }} 422 @@ -656,7 +652,6 @@ ${randinteger} ${12345} # $.component[3].code.coding[0].code missing 422 # See Bug Trace 01 $.component[3].code.coding[0].code ${EMPTY} 422 - $.component[3].code.coding[0].code ${randstring} 422 $.component[3].code.coding[0].code ${randinteger} 422 $.component[3].code.coding[0].code ${{ [] }} 422 $.component[3].code.coding[0].code ${{ {} }} 422 @@ -696,9 +691,9 @@ ${randinteger} ${12345} $.component[4].code.coding[0] ${{ [{}] }} 422 # invalid Code Coding 2 System - $.component[4].code.coding[0].system missing 422 + #$.component[4].code.coding[0].system missing 422 + # See Bug Trace 06 $.component[4].code.coding[0].system ${EMPTY} 422 - $.component[4].code.coding[0].system http://foobar.de 422 $.component[4].code.coding[0].system ${randstring} 422 $.component[4].code.coding[0].system ${randinteger} 422 $.component[4].code.coding[0].system ${{ [] }} 422 @@ -709,7 +704,6 @@ ${randinteger} ${12345} # $.component[4].code.coding[0].code missing 422 # See Bug Trace 01 $.component[4].code.coding[0].code ${EMPTY} 422 - $.component[4].code.coding[0].code ${randstring} 422 $.component[4].code.coding[0].code ${randinteger} 422 $.component[4].code.coding[0].code ${{ [] }} 422 $.component[4].code.coding[0].code ${{ {} }} 422 @@ -802,8 +796,20 @@ ${randinteger} ${12345} $.component[2].valueCodeableConcept.coding[0].code ${randstring} 422 +06 Bug Trace component[x].code.coding[0].system unexpected 201 + [Documentation] Bug Trace tests for component[x].code.coding[0].system unexpected 201 validations + [Template] create History of Travel with ehr reference + [Tags] not-ready not-ready_bug valueCodeableConcept 201 - + # FIELD/PATH VALUE HTTP + # CODE + $.component[0].code.coding[0].system missing 422 + $.component[1].code.coding[0].system missing 422 + $.component[2].code.coding[0].system missing 422 + $.component[3].code.coding[0].system missing 422 + $.component[4].code.coding[0].system missing 422 + + [Teardown] TRACE GITHUB ISSUE 568 bug #-------------------------------------------------------------------------------------------------------------------------------------------------------------------- *** Keywords ***