diff --git a/tx/validation/simple-code-bad-valueSet-request-parameters.json b/tx/validation/simple-code-bad-valueSet-request-parameters.json new file mode 100644 index 00000000..6e929cac --- /dev/null +++ b/tx/validation/simple-code-bad-valueSet-request-parameters.json @@ -0,0 +1,13 @@ +{ + "resourceType" : "Parameters", + "parameter" : [{ + "name" : "url", + "valueUri" : "http://hl7.org/fhir/test/ValueSet/simple-allX" + },{ + "name" : "code", + "valueCode" : "code1" + },{ + "name" : "system", + "valueUri" : "http://hl7.org/fhir/test/CodeSystem/simple" + }] +} \ No newline at end of file diff --git a/tx/validation/simple-code-bad-valueSet-response-parameters.json b/tx/validation/simple-code-bad-valueSet-response-parameters.json new file mode 100644 index 00000000..bc51f227 --- /dev/null +++ b/tx/validation/simple-code-bad-valueSet-response-parameters.json @@ -0,0 +1,28 @@ +{ + "resourceType" : "Parameters", + "parameter" : [{ + "name" : "issues", + "resource" : { + "resourceType" : "OperationOutcome", + "issue" : [{ + "severity" : "error", + "code" : "not-found", + "details" : { + "coding" : [{ + "system" : "http://hl7.org/fhir/tools/CodeSystem/tx-issue-type", + "code" : "not-found" + }], + "text" : "A definition for the value Set 'http://hl7.org/fhir/test/ValueSet/simple-allX' could not be found" + } + }] + } + }, + { + "name" : "message", + "valueString" : "A definition for the value Set 'http://hl7.org/fhir/test/ValueSet/simple-allX' could not be found" + }, + { + "name" : "result", + "valueBoolean" : false + }] +} \ No newline at end of file diff --git a/tx/validation/simple-codeableconcept-bad-valueSet-request-parameters.json b/tx/validation/simple-codeableconcept-bad-valueSet-request-parameters.json new file mode 100644 index 00000000..72c6e77c --- /dev/null +++ b/tx/validation/simple-codeableconcept-bad-valueSet-request-parameters.json @@ -0,0 +1,15 @@ +{ + "resourceType" : "Parameters", + "parameter" : [{ + "name" : "url", + "valueUri" : "http://hl7.org/fhir/test/ValueSet/simple-allX" + },{ + "name" : "codeableConcept", + "valueCodeableConcept" : { + "coding" : [{ + "system" : "http://hl7.org/fhir/test/CodeSystem/simple", + "code" : "code1" + }] + } + }] +} \ No newline at end of file diff --git a/tx/validation/simple-codeableconcept-bad-valueSet-response-parameters.json b/tx/validation/simple-codeableconcept-bad-valueSet-response-parameters.json new file mode 100644 index 00000000..bc51f227 --- /dev/null +++ b/tx/validation/simple-codeableconcept-bad-valueSet-response-parameters.json @@ -0,0 +1,28 @@ +{ + "resourceType" : "Parameters", + "parameter" : [{ + "name" : "issues", + "resource" : { + "resourceType" : "OperationOutcome", + "issue" : [{ + "severity" : "error", + "code" : "not-found", + "details" : { + "coding" : [{ + "system" : "http://hl7.org/fhir/tools/CodeSystem/tx-issue-type", + "code" : "not-found" + }], + "text" : "A definition for the value Set 'http://hl7.org/fhir/test/ValueSet/simple-allX' could not be found" + } + }] + } + }, + { + "name" : "message", + "valueString" : "A definition for the value Set 'http://hl7.org/fhir/test/ValueSet/simple-allX' could not be found" + }, + { + "name" : "result", + "valueBoolean" : false + }] +} \ No newline at end of file diff --git a/tx/validation/simple-codeableconcept-bad-version2-request-parameters.json b/tx/validation/simple-codeableconcept-bad-version2-request-parameters.json new file mode 100644 index 00000000..8237499f --- /dev/null +++ b/tx/validation/simple-codeableconcept-bad-version2-request-parameters.json @@ -0,0 +1,16 @@ +{ + "resourceType" : "Parameters", + "parameter" : [{ + "name" : "url", + "valueUri" : "http://hl7.org/fhir/test/ValueSet/simple-all" + },{ + "name" : "codeableConcept", + "valueCodeableConcept" : { + "coding" : [{ + "system" : "http://hl7.org/fhir/test/CodeSystem/simpleXX", + "version" : "1.0.4234", + "code" : "code1" + }] + } + }] +} \ No newline at end of file diff --git a/tx/validation/simple-codeableconcept-bad-version2-response-parameters.json b/tx/validation/simple-codeableconcept-bad-version2-response-parameters.json new file mode 100644 index 00000000..704b19e3 --- /dev/null +++ b/tx/validation/simple-codeableconcept-bad-version2-response-parameters.json @@ -0,0 +1,69 @@ +{ + "resourceType" : "Parameters", + "parameter" : [{ + "name" : "codeableConcept", + "valueCodeableConcept" : { + "coding" : [{ + "system" : "http://hl7.org/fhir/test/CodeSystem/simpleXX", + "version" : "1.0.4234", + "code" : "code1" + }] + } + }, + { + "name" : "issues", + "resource" : { + "resourceType" : "OperationOutcome", + "issue" : [{ + "severity" : "error", + "code" : "code-invalid", + "details" : { + "coding" : [{ + "system" : "http://hl7.org/fhir/tools/CodeSystem/tx-issue-type", + "code" : "not-in-vs" + }], + "text" : "No valid coding was found for the value set 'http://hl7.org/fhir/test/ValueSet/simple-all|5.0.0'" + } + }, + { + "severity" : "error", + "code" : "not-found", + "details" : { + + "coding" : [{ + "system" : "http://hl7.org/fhir/tools/CodeSystem/tx-issue-type", + "code" : "not-found" + }], + "text" : "A definition for CodeSystem 'http://hl7.org/fhir/test/CodeSystem/simpleXX' version '1.0.4234' could not be found, so the code cannot be validated. Valid versions: []" + }, + "location" : ["CodeableConcept.coding[0].system"], + "expression" : ["CodeableConcept.coding[0].system"] + }, + { + "severity" : "information", + "code" : "code-invalid", + "details" : { + "coding" : [{ + "system" : "http://hl7.org/fhir/tools/CodeSystem/tx-issue-type", + "code" : "this-code-not-in-vs" + }], + "text" : "The provided code 'http://hl7.org/fhir/test/CodeSystem/simpleXX|1.0.4234#code1' was not found in the value set 'http://hl7.org/fhir/test/ValueSet/simple-all|5.0.0'" + }, + "location" : ["CodeableConcept.coding[0].code"], + "expression" : ["CodeableConcept.coding[0].code"] + }] + } + }, + { + "name" : "message", + "valueString" : "A definition for CodeSystem 'http://hl7.org/fhir/test/CodeSystem/simpleXX' version '1.0.4234' could not be found, so the code cannot be validated. Valid versions: []; No valid coding was found for the value set 'http://hl7.org/fhir/test/ValueSet/simple-all|5.0.0'; The provided code 'http://hl7.org/fhir/test/CodeSystem/simpleXX|1.0.4234#code1' was not found in the value set 'http://hl7.org/fhir/test/ValueSet/simple-all|5.0.0'" + }, + { + "name" : "result", + "valueBoolean" : false + }, + { + "name" : "x-caused-by-unknown-system", + "valueCanonical" : "http://hl7.org/fhir/test/CodeSystem/simpleXX|1.0.4234" + }] +} \ No newline at end of file diff --git a/tx/validation/simple-coding-bad-valueSet-request-parameters.json b/tx/validation/simple-coding-bad-valueSet-request-parameters.json new file mode 100644 index 00000000..bd59c436 --- /dev/null +++ b/tx/validation/simple-coding-bad-valueSet-request-parameters.json @@ -0,0 +1,13 @@ +{ + "resourceType" : "Parameters", + "parameter" : [{ + "name" : "url", + "valueUri" : "http://hl7.org/fhir/test/ValueSet/simple-allX" + },{ + "name" : "coding", + "valueCoding" : { + "system" : "http://hl7.org/fhir/test/CodeSystem/simple", + "code" : "code1" + } + }] +} \ No newline at end of file diff --git a/tx/validation/simple-coding-bad-valueSet-response-parameters.json b/tx/validation/simple-coding-bad-valueSet-response-parameters.json new file mode 100644 index 00000000..bc51f227 --- /dev/null +++ b/tx/validation/simple-coding-bad-valueSet-response-parameters.json @@ -0,0 +1,28 @@ +{ + "resourceType" : "Parameters", + "parameter" : [{ + "name" : "issues", + "resource" : { + "resourceType" : "OperationOutcome", + "issue" : [{ + "severity" : "error", + "code" : "not-found", + "details" : { + "coding" : [{ + "system" : "http://hl7.org/fhir/tools/CodeSystem/tx-issue-type", + "code" : "not-found" + }], + "text" : "A definition for the value Set 'http://hl7.org/fhir/test/ValueSet/simple-allX' could not be found" + } + }] + } + }, + { + "name" : "message", + "valueString" : "A definition for the value Set 'http://hl7.org/fhir/test/ValueSet/simple-allX' could not be found" + }, + { + "name" : "result", + "valueBoolean" : false + }] +} \ No newline at end of file