onc-healthit / onc-certification-g10-test-kit

ONC Certification (g)(10) Standardized API Tests
Apache License 2.0
32 stars 10 forks source link

"MustSupport references within DocumentReference resources" provides different results #427

Closed bcastillomartel-va closed 1 year ago

bcastillomartel-va commented 1 year ago

We're currently facing difficulties in comprehending why section 11.12 yields inconsistent results across multiple testing sessions. In the previous session, the test passed with a single Practitioner request. However, in the latest session, the section was skipped despite having 41 Practitioner requests, all of which returned a status code of 200. This inconsistency is causing confusion and we're seeking clarification on why the test is now being skipped.

bcastillomartel-va commented 1 year ago
Screenshot 2023-05-03 at 12 55 02 PM
bcastillomartel-va commented 1 year ago
Screenshot 2023-05-03 at 12 55 45 PM
yunwwang commented 1 year ago

This is a terminology validation issue. The validation error is on the Practitioner resource. The test result of 39.05 shows error.

Running validation on tx.fhir.org manually returns the same error: http://tx.fhir.org/r4/CodeSystem/$validate-code?code=MR&system=http://hl7.org/fhir/v2/0203

{
      "name" : "message",
      "valueString" : "The CodeSystem http://hl7.org/fhir/v2/0203 is unknown; The provided code http://hl7.org/fhir/v2/0203#MR is not in the value set 'http://hl7.org/fhir/ValueSet/@all'"
    },

Further investigation shows that the Practitioner resource has a wrong code system url. The correct url is http://terminology.hl7.org/CodeSystem/v2-0203 (see https://terminology.hl7.org/CodeSystem-v2-0203.html)

There are some updates on HL7 V2/V3 code systems with the latest terminology.hl7.org. You may double check your resources to comply with these updates.

bcastillomartel-va commented 1 year ago

Thank you so much @yunwwang! We'll double check our other resources.