Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Consolidated CDA Templates for Clinical Notes (US Realm) DSTU … #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ Schematron generated from Trifolia on 9/2/2022
<sch:active pattern="p-urn-hl7ii-2.16.840.1.113883.10.20.22.4.28-2019-06-20-warnings" />
</sch:phase>
<sch:pattern id="hasCompatibleR1.1TemplateId">
<sch:rule context="//cda:templateId[contains(' 1.3.6.1.4.1.19376.1.5.3.1.3.1:2014-06-09 1.3.6.1.4.1.19376.1.5.3.1.3.33:2014-06-09 2.16.840.1.113883.10.20.2.10:2015-08-01 2.16.840.1.113883.10.20.21.2.3:2015-08-01 2.16.840.1.113883.10.20.22.1.1:2015-08-01 2.16.840.1.113883.10.20.22.1.10:2015-08-01 2.16.840.1.113883.10.20.22.1.2:2015-08-01 2.16.840.1.113883.10.20.22.1.3:2015-08-01 2.16.840.1.113883.10.20.22.1.4:2015-08-01 2.16.840.1.113883.10.20.22.1.5:2015-08-01 2.16.840.1.113883.10.20.22.1.6:2015-08-01 2.16.840.1.113883.10.20.22.1.7:2015-08-01 2.16.840.1.113883.10.20.22.1.8:2015-08-01 2.16.840.1.113883.10.20.22.1.9:2015-08-01 2.16.840.1.113883.10.20.22.2.1:2014-06-09 2.16.840.1.113883.10.20.22.2.1.1:2014-06-09 2.16.840.1.113883.10.20.22.2.10:2014-06-09 2.16.840.1.113883.10.20.22.2.11:2015-08-01 2.16.840.1.113883.10.20.22.2.11.1:2015-08-01 2.16.840.1.113883.10.20.22.2.14:2014-06-09 2.16.840.1.113883.10.20.22.2.15:2015-08-01 2.16.840.1.113883.10.20.22.2.17:2015-08-01 2.16.840.1.113883.10.20.22.2.18:2015-08-01 2.16.840.1.113883.10.20.22.2.2:2015-08-01 2.16.840.1.113883.10.20.22.2.2.1:2015-08-01 2.16.840.1.113883.10.20.22.2.20:2015-08-01 2.16.840.1.113883.10.20.22.2.21:2015-08-01 2.16.840.1.113883.10.20.22.2.21.1:2015-08-01 2.16.840.1.113883.10.20.22.2.22:2015-08-01 2.16.840.1.113883.10.20.22.2.22.1:2015-08-01 2.16.840.1.113883.10.20.22.2.23:2014-06-09 2.16.840.1.113883.10.20.22.2.24:2015-08-01 2.16.840.1.113883.10.20.22.2.25:2014-06-09 2.16.840.1.113883.10.20.22.2.26:2014-06-09 2.16.840.1.113883.10.20.22.2.28:2015-08-01 2.16.840.1.113883.10.20.22.2.29:2014-06-09 2.16.840.1.113883.10.20.22.2.3:2015-08-01 2.16.840.1.113883.10.20.22.2.3.1:2015-08-01 2.16.840.1.113883.10.20.22.2.30:2014-06-09 2.16.840.1.113883.10.20.22.2.33:2014-06-09 2.16.840.1.113883.10.20.22.2.34:2015-08-01 2.16.840.1.113883.10.20.22.2.36:2015-08-01 2.16.840.1.113883.10.20.22.2.37:2015-08-01 2.16.840.1.113883.10.20.22.2.38:2014-06-09 2.16.840.1.113883.10.20.22.2.4:2015-08-01 2.16.840.1.113883.10.20.22.2.4.1:2015-08-01 2.16.840.1.113883.10.20.22.2.43:2015-08-01 2.16.840.1.113883.10.20.22.2.44:2015-08-01 2.16.840.1.113883.10.20.22.2.45:2014-06-09 2.16.840.1.113883.10.20.22.2.5:2015-08-01 2.16.840.1.113883.10.20.22.2.5.1:2015-08-01 2.16.840.1.113883.10.20.22.2.6:2015-08-01 2.16.840.1.113883.10.20.22.2.6.1:2015-08-01 2.16.840.1.113883.10.20.22.2.7:2014-06-09 2.16.840.1.113883.10.20.22.2.7.1:2014-06-09 2.16.840.1.113883.10.20.22.2.9:2014-06-09 2.16.840.1.113883.10.20.22.4.1:2015-08-01 2.16.840.1.113883.10.20.22.4.12:2014-06-09 2.16.840.1.113883.10.20.22.4.13:2014-06-09 2.16.840.1.113883.10.20.22.4.14:2014-06-09 2.16.840.1.113883.10.20.22.4.16:2014-06-09 2.16.840.1.113883.10.20.22.4.17:2014-06-09 2.16.840.1.113883.10.20.22.4.18:2014-06-09 2.16.840.1.113883.10.20.22.4.19:2014-06-09 2.16.840.1.113883.10.20.22.4.2:2015-08-01 2.16.840.1.113883.10.20.22.4.20:2014-06-09 2.16.840.1.113883.10.20.22.4.23:2014-06-09 2.16.840.1.113883.10.20.22.4.25:2014-06-09 2.16.840.1.113883.10.20.22.4.26:2015-08-01 2.16.840.1.113883.10.20.22.4.27:2014-06-09 2.16.840.1.113883.10.20.22.4.28:2019-06-20 2.16.840.1.113883.10.20.22.4.3:2015-08-01 2.16.840.1.113883.10.20.22.4.30:2015-08-01 2.16.840.1.113883.10.20.22.4.33:2015-08-01 2.16.840.1.113883.10.20.22.4.34:2015-08-01 2.16.840.1.113883.10.20.22.4.35:2016-03-01 2.16.840.1.113883.10.20.22.4.36:2014-06-09 2.16.840.1.113883.10.20.22.4.38:2015-08-01 2.16.840.1.113883.10.20.22.4.39:2014-06-09 2.16.840.1.113883.10.20.22.4.4:2015-08-01 2.16.840.1.113883.10.20.22.4.40:2014-06-09 2.16.840.1.113883.10.20.22.4.41:2014-06-09 2.16.840.1.113883.10.20.22.4.42:2014-06-09 2.16.840.1.113883.10.20.22.4.43:2014-06-09 2.16.840.1.113883.10.20.22.4.44:2014-06-09 2.16.840.1.113883.10.20.22.4.45:2015-08-01 2.16.840.1.113883.10.20.22.4.46:2015-08-01 2.16.840.1.113883.10.20.22.4.48:2015-08-01 2.16.840.1.113883.10.20.22.4.49:2015-08-01 2.16.840.1.113883.10.20.22.4.5:2014-06-09 2.16.840.1.113883.10.20.22.4.50:2014-06-09 2.16.840.1.113883.10.20.22.4.51:2015-08-01 2.16.840.1.113883.10.20.22.4.52:2015-08-01 2.16.840.1.113883.10.20.22.4.54:2014-06-09 2.16.840.1.113883.10.20.22.4.6:2019-06-20 2.16.840.1.113883.10.20.22.4.60:2015-08-01 2.16.840.1.113883.10.20.22.4.61:2015-08-01 2.16.840.1.113883.10.20.22.4.65:2015-08-01 2.16.840.1.113883.10.20.22.4.66:2014-06-09 2.16.840.1.113883.10.20.22.4.67:2014-06-09 2.16.840.1.113883.10.20.22.4.68:2014-06-09 2.16.840.1.113883.10.20.22.4.7:2014-06-09 2.16.840.1.113883.10.20.22.4.70:2014-06-09 2.16.840.1.113883.10.20.22.4.73:2014-06-09 2.16.840.1.113883.10.20.22.4.74:2015-08-01 2.16.840.1.113883.10.20.22.4.75:2015-08-01 2.16.840.1.113883.10.20.22.4.76:2015-08-01 2.16.840.1.113883.10.20.22.4.78:2014-06-09 2.16.840.1.113883.10.20.22.4.79:2015-08-01 2.16.840.1.113883.10.20.22.4.8:2014-06-09 2.16.840.1.113883.10.20.22.4.80:2015-08-01 2.16.840.1.113883.10.20.22.4.85:2014-06-09 2.16.840.1.113883.10.20.22.4.9:2014-06-09 2.16.840.1.113883.10.20.24.3.90:2014-06-09 2.16.840.1.113883.10.20.6.2.1:2014-06-09 2.16.840.1.113883.10.20.6.2.2:2014-06-09 ', concat(' ', @root, ':', @extension, ' '))]">
<sch:rule context="//cda:templateId[contains(' 1.3.6.1.4.1.19376.1.5.3.1.3.1 1.3.6.1.4.1.19376.1.5.3.1.3.33 2.16.840.1.113883.10.20.2.10 2.16.840.1.113883.10.20.21.2.3 2.16.840.1.113883.10.20.22.1.1 2.16.840.1.113883.10.20.22.1.10 2.16.840.1.113883.10.20.22.1.2 2.16.840.1.113883.10.20.22.1.3 2.16.840.1.113883.10.20.22.1.4 2.16.840.1.113883.10.20.22.1.5 2.16.840.1.113883.10.20.22.1.6 2.16.840.1.113883.10.20.22.1.7 2.16.840.1.113883.10.20.22.1.8 2.16.840.1.113883.10.20.22.1.9 2.16.840.1.113883.10.20.22.2.1 2.16.840.1.113883.10.20.22.2.1.1 2.16.840.1.113883.10.20.22.2.10 2.16.840.1.113883.10.20.22.2.11 2.16.840.1.113883.10.20.22.2.11.1 2.16.840.1.113883.10.20.22.2.14 2.16.840.1.113883.10.20.22.2.15 2.16.840.1.113883.10.20.22.2.17 2.16.840.1.113883.10.20.22.2.18 2.16.840.1.113883.10.20.22.2.2 2.16.840.1.113883.10.20.22.2.2.1 2.16.840.1.113883.10.20.22.2.20 2.16.840.1.113883.10.20.22.2.21 2.16.840.1.113883.10.20.22.2.21.1 2.16.840.1.113883.10.20.22.2.22 2.16.840.1.113883.10.20.22.2.22.1 2.16.840.1.113883.10.20.22.2.23 2.16.840.1.113883.10.20.22.2.24 2.16.840.1.113883.10.20.22.2.25 2.16.840.1.113883.10.20.22.2.26 2.16.840.1.113883.10.20.22.2.28 2.16.840.1.113883.10.20.22.2.29 2.16.840.1.113883.10.20.22.2.3 2.16.840.1.113883.10.20.22.2.3.1 2.16.840.1.113883.10.20.22.2.30 2.16.840.1.113883.10.20.22.2.33 2.16.840.1.113883.10.20.22.2.34 2.16.840.1.113883.10.20.22.2.36 2.16.840.1.113883.10.20.22.2.37 2.16.840.1.113883.10.20.22.2.38 2.16.840.1.113883.10.20.22.2.4 2.16.840.1.113883.10.20.22.2.4.1 2.16.840.1.113883.10.20.22.2.43 2.16.840.1.113883.10.20.22.2.44 2.16.840.1.113883.10.20.22.2.45 2.16.840.1.113883.10.20.22.2.5 2.16.840.1.113883.10.20.22.2.5.1 2.16.840.1.113883.10.20.22.2.6 2.16.840.1.113883.10.20.22.2.6.1 2.16.840.1.113883.10.20.22.2.7 2.16.840.1.113883.10.20.22.2.7.1 2.16.840.1.113883.10.20.22.2.9 2.16.840.1.113883.10.20.22.4.1 2.16.840.1.113883.10.20.22.4.12 2.16.840.1.113883.10.20.22.4.13 2.16.840.1.113883.10.20.22.4.14 2.16.840.1.113883.10.20.22.4.16 2.16.840.1.113883.10.20.22.4.17 2.16.840.1.113883.10.20.22.4.18 2.16.840.1.113883.10.20.22.4.19 2.16.840.1.113883.10.20.22.4.2 2.16.840.1.113883.10.20.22.4.20 2.16.840.1.113883.10.20.22.4.23 2.16.840.1.113883.10.20.22.4.25 2.16.840.1.113883.10.20.22.4.26 2.16.840.1.113883.10.20.22.4.27 2.16.840.1.113883.10.20.22.4.28 2.16.840.1.113883.10.20.22.4.3 2.16.840.1.113883.10.20.22.4.30 2.16.840.1.113883.10.20.22.4.33 2.16.840.1.113883.10.20.22.4.34 2.16.840.1.113883.10.20.22.4.35 2.16.840.1.113883.10.20.22.4.36 2.16.840.1.113883.10.20.22.4.38 2.16.840.1.113883.10.20.22.4.39 2.16.840.1.113883.10.20.22.4.4 2.16.840.1.113883.10.20.22.4.40 2.16.840.1.113883.10.20.22.4.41 2.16.840.1.113883.10.20.22.4.42 2.16.840.1.113883.10.20.22.4.43 2.16.840.1.113883.10.20.22.4.44 2.16.840.1.113883.10.20.22.4.45 2.16.840.1.113883.10.20.22.4.46 2.16.840.1.113883.10.20.22.4.48 2.16.840.1.113883.10.20.22.4.49 2.16.840.1.113883.10.20.22.4.5 2.16.840.1.113883.10.20.22.4.50 2.16.840.1.113883.10.20.22.4.51 2.16.840.1.113883.10.20.22.4.52 2.16.840.1.113883.10.20.22.4.54 2.16.840.1.113883.10.20.22.4.6 2.16.840.1.113883.10.20.22.4.60 2.16.840.1.113883.10.20.22.4.61 2.16.840.1.113883.10.20.22.4.65 2.16.840.1.113883.10.20.22.4.66 2.16.840.1.113883.10.20.22.4.67 2.16.840.1.113883.10.20.22.4.68 2.16.840.1.113883.10.20.22.4.7 2.16.840.1.113883.10.20.22.4.70 2.16.840.1.113883.10.20.22.4.73 2.16.840.1.113883.10.20.22.4.74 2.16.840.1.113883.10.20.22.4.75 2.16.840.1.113883.10.20.22.4.76 2.16.840.1.113883.10.20.22.4.78 2.16.840.1.113883.10.20.22.4.79 2.16.840.1.113883.10.20.22.4.8 2.16.840.1.113883.10.20.22.4.80 2.16.840.1.113883.10.20.22.4.85 2.16.840.1.113883.10.20.22.4.9 2.16.840.1.113883.10.20.24.3.90 2.16.840.1.113883.10.20.6.2.1 2.16.840.1.113883.10.20.6.2.2 ', concat(' ', @root, ' '))]">
<sch:let name="root" value="@root" />
<sch:assert test="../cda:templateId[(@root=$root) and not(@extension)] or not(/cda:ClinicalDocument/cda:templateId[contains(' 2.16.840.1.113883.10.20.22.1.2:2015-08-01 2.16.840.1.113883.10.20.22.1.3:2015-08-01 2.16.840.1.113883.10.20.22.1.4:2015-08-01 2.16.840.1.113883.10.20.22.1.5:2015-08-01 2.16.840.1.113883.10.20.22.1.6:2015-08-01 2.16.840.1.113883.10.20.22.1.7:2015-08-01 2.16.840.1.113883.10.20.22.1.8:2015-08-01 2.16.840.1.113883.10.20.22.1.9:2015-08-01 2.16.840.1.113883.10.20.22.1.10:2015-08-01 2.16.840.1.113883.10.20.22.1.13:2015-08-01 2.16.840.1.113883.10.20.22.1.14:2015-08-01 2.16.840.1.113883.10.20.22.1.15:2015-08-01 2.16.840.1.113883.10.20.29.1:2015-08-01', concat(' ', @root, ':', @extension))])">
A compatible R1.1 templateId without an extension must be included with an R2.1 templateId (templateId: <sch:value-of select="@root" />:<sch:value-of select="@extension" />).
Expand Down