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

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

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Persuasive with Modification
    • Icon: Medium Medium
    • C-CDA Templates Clinical Notes (CDA)
    • 2.1.0.6 [deprecated]
    • Structured Documents
    • Templates [deprecated]
    • Hide

      In accordance with the disposition to CDA-1856:

      1. Wherever there is a binding to the case sensitive UCUM value set, which is SHALL this will be changed to SHOULD
      2. Provide text state that if not from the value set, the code SHALL be drawn from the UCUM code system
      3. Provide text guidance that the compositional grammar SHALL be case sensitive

       

      NOTE: A separate Jira issue may be opened to consider shifting this text guidance to be conformance statements when enforcement of such guidance is computably possible.

      Show
      In accordance with the disposition to CDA-1856 : Wherever there is a binding to the case sensitive UCUM value set, which is SHALL this will be changed to SHOULD Provide text state that if not from the value set, the code SHALL be drawn from the UCUM code system Provide text guidance that the compositional grammar SHALL be case sensitive   NOTE: A separate Jira issue may be opened to consider shifting this text guidance to be conformance statements when enforcement of such guidance is computably possible.
    • Brett Marquard / Gay Dolin: 15-0-0
    • Enhancement
    • Compatible, substantive
    • 2.1.0.7 [deprecated]

    Description

      Cloning CDA-20044:

       

      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

            GDolin Gay Dolin
            mszczepa Matt Szczepankiewicz
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: