Uploaded image for project: 'CDA Specification Feedback'
  1. CDA Specification Feedback
  2. CDA-20044

Schematron doesn't implement CONF:1198-31484 or CONF:1198-8555

    XMLWordPrintableJSON

Details

    • Icon: Technical Correction Technical Correction
    • Resolution: Retracted
    • Icon: Medium Medium
    • C-CDA Templates Clinical Notes (CDA)
    • 2.1.0.6 [deprecated]
    • Schematron Validation Files [deprecated]
    • Hide

      Retracted by submitter

      Show
      Retracted by submitter

    Description

      One of the negative test case documents provided by the ONC for certification contains this unitless value in a Result Observation:

          <value xsi:type="PQ" value="1.015"/>

      This is designed to deliberately trigger an error against CONF:1198-31484:

      • If Observation/value is a physical quantity (xsi:type="PQ"), the unit of measure SHALL be selected from ValueSet UnitsOfMeasureCaseSensitive  2.16.840.1.113883.1.11.12839 DYNAMIC (CONF:1198-31484).

      However, although the ONC's validator correctly tests this conformance statement and throws an error here, the C-CDA schematron has it not(tested). Not every unimplemented schematron conformance statement warrants a Jira ticket, of course, but this one seems like it ought to because the disparity between the schematron and the ONC's validator here may impact certification on the negative test docs for vendors using the HL7 schematron (like Epic!)

      Fortunately, this seems pretty easy to implement–the test should just be "not(cda:value[@xsi:type='PQ' and not(@unit)])". Admittedly, this doesn't actually implement the check against the UCUM value set (it would admit something like <value xsi:type="PQ" value="1" unit="BAD UNIT" />), but that part's outside the purview of schematron logic anyway, and when something SHALL be selected from a value set, the schematron typically does at least check for its existence, so it ought to do the same here.

      This fix should be applied to both CONF:1198-31484 and CONF:1198-8555.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mszczepa Matt Szczepankiewicz
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: