Details
-
Change Request
-
Resolution: Persuasive with Modification
-
Medium
-
C-CDA Templates Clinical Notes (CDA)
-
2.1.0.6 [deprecated]
-
Structured Documents
-
Templates [deprecated]
-
-
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
Issue Links
- relates to
-
CDA-1856 STU-1856 - Table 313
- Applied