Skip to content

Commit 656d351

Browse files
committed
2 parents 71b6f7a + 88ffe6d commit 656d351

101 files changed

Lines changed: 5225 additions & 1517 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

OTHER-rccmh.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<specification defaultWorkgroup="mh" defaultVersion="1.0-ballot" url="http://www.hl7.org/documentcenter/public/ballots/2025MAY/downloads/HL7_RCC-MH_E1_S1_2025MAY.pdf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../schemas/specification.xsd">
3+
<version code="1.0-ballot" deprecated="false"/>
4+
<page name="Foreward" key="foreword"/>
5+
<page name="Introduction" key="introduction"/>
6+
<page name="Scope" key="scope"/>
7+
<page name="Normative references" key="normref"/>
8+
<page name="Terms and definitions" key="termsdef"/>
9+
<page name="Abbreviations" key="abbrev"/>
10+
<page name="RCC-MH care locations and evolution" key="careloc"/>
11+
<page name="RCC-MH relevant care delivery modes and use cases" key="caredelivery"/>
12+
<page name="RCC-MH challenges and gaps" key="gaps"/>
13+
<page name="RCC-MH recommendations" key="recommendations"/>
14+
<page name="Conclusions and path forward" key="conclusions"/>
15+
<page name="Annex A" key="annexa"/>
16+
<page name="Annex B" key="annexb"/>
17+
<page name="Annex C" key="annexc"/>
18+
<page name="Annex D" key="annexd"/>
19+
<page name="Annex E" key="annexe"/>
20+
<page name="Annex F" key="annexf"/>
21+
<page name="Annex G" key="annexg"/>
22+
<page name="Annex H" key="annexh"/>
23+
<page name="Annex I" key="annexi"/>
24+
<page name="Annex J" key="annexj"/>
25+
<page name="Annex K" key="annexk"/>
26+
<page name="Annex L" key="annexl"/>
27+
<page name="Bibliography" key="bibliography"/>
28+
</specification>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Source content is found in the `xml` folder:
1818
* For some specifications, alignment will be checked as part of the specification publication process.
1919
* Specification files are maintained independently (rather than as part of the SPECS files) to allow independent maintenance.
2020

21-
Each type of XML file has a corresponding schema in the [`schemas`](shemas) folder. The [`xml/_workgroups.xml`](xml/_workgroups.xml) file is also converted to a schema to aid validation.
21+
Each type of XML file has a corresponding schema in the [`schemas`](schemas) folder. The [`xml/_workgroups.xml`](xml/_workgroups.xml) file is also converted to a schema to aid validation.
2222

2323
The json files used by the [Jira Elements Connect (formerly nFeed) plugin](https://marketplace.atlassian.com/apps/23337/elements-connect-formerly-nfeed) to manage dropdowns are auto-generated into the json folder.
2424
There is one file for each product family plus a single "combined" file that covers all specifications and is used by the ballot projects

build.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
<xslt in="xml/_families.xml" out="json/SPECS.json" style="tools/buildSpecJSON.xslt" classpathref="saxon.path">
5959
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
6060
</xslt>
61+
<copy file="json/SPECS.json" tofile="json/SPECS-copy.json"/>
6162
<echo file="tools/temp/actualcount.txt" message="CDA-${count.cda}&#x0a;"/>
6263
<echo file="tools/temp/actualcount.txt" message="FHIR-${count.fhir}&#x0a;" append="true"/>
6364
<echo file="tools/temp/actualcount.txt" message="OTHER-${count.other}&#x0a;" append="true"/>

schemas/workgroups.xsd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?xml version="1.0" encoding="UTF-8"?><!--WARNING: This is a generated file. It must be kept in sync with _workgroups.xml--><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:simpleType name="WorkGroup"><xs:restriction base="xs:NMTOKEN"><xs:enumeration value="gas"/><xs:enumeration value="arb"/><xs:enumeration value="as"/><xs:enumeration value="att"/><xs:enumeration value="brr"/><xs:enumeration value="cbcc"/><xs:enumeration value="cdamg"/><xs:enumeration value="cgit"/><xs:enumeration value="cimi"/><xs:enumeration value="cds"/><xs:enumeration value="cic"/><xs:enumeration value="cg"/><xs:enumeration value="cgp"/><xs:enumeration value="cqi"/><xs:enumeration value="dev"/><xs:enumeration value="ec"/><xs:enumeration value="ehr"/><xs:enumeration value="director"/><xs:enumeration value="fgb"/><xs:enumeration value="fhir-i"/><xs:enumeration value="fmg"/><xs:enumeration value="fm"/><xs:enumeration value="hcd"/><xs:enumeration value="hsi"/><xs:enumeration value="hss"/><xs:enumeration value="hta"/><xs:enumeration value="ic"/><xs:enumeration value="project"/><xs:enumeration value="ii"/><xs:enumeration value="its"/><xs:enumeration value="inm"/><xs:enumeration value="lhs"/><xs:enumeration value="mh"/><xs:enumeration value="mnm"/><xs:enumeration value="oo"/><xs:enumeration value="pa"/><xs:enumeration value="pc"/><xs:enumeration value="pe"/><xs:enumeration value="pie"/><xs:enumeration value="pharm"/><xs:enumeration value="pic"/><xs:enumeration value="ps"/><xs:enumeration value="pher"/><xs:enumeration value="pubs"/><xs:enumeration value="security"/><xs:enumeration value="soa"/><xs:enumeration value="sd"/><xs:enumeration value="sgb"/><xs:enumeration value="templates"/><xs:enumeration value="tsc"/><xs:enumeration value="tsmg"/><xs:enumeration value="us-realm"/><xs:enumeration value="vocab"/><xs:enumeration value="v2mg"/><xs:enumeration value="eu"/><xs:enumeration value="au-v2"/><xs:enumeration value="au-fhir"/></xs:restriction></xs:simpleType></xs:schema>
1+
<?xml version="1.0" encoding="UTF-8"?><!--WARNING: This is a generated file. It must be kept in sync with _workgroups.xml--><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:simpleType name="WorkGroup"><xs:restriction base="xs:NMTOKEN"><xs:enumeration value="gas"/><xs:enumeration value="arb"/><xs:enumeration value="as"/><xs:enumeration value="att"/><xs:enumeration value="brr"/><xs:enumeration value="cbcc"/><xs:enumeration value="cdamg"/><xs:enumeration value="cgit"/><xs:enumeration value="cimi"/><xs:enumeration value="cds"/><xs:enumeration value="cic"/><xs:enumeration value="cg"/><xs:enumeration value="cgp"/><xs:enumeration value="cqi"/><xs:enumeration value="dev"/><xs:enumeration value="ec"/><xs:enumeration value="ehr"/><xs:enumeration value="ex"/><xs:enumeration value="director"/><xs:enumeration value="fgb"/><xs:enumeration value="fhir-i"/><xs:enumeration value="fmg"/><xs:enumeration value="fm"/><xs:enumeration value="hcd"/><xs:enumeration value="hsi"/><xs:enumeration value="hss"/><xs:enumeration value="hta"/><xs:enumeration value="ic"/><xs:enumeration value="project"/><xs:enumeration value="ii"/><xs:enumeration value="its"/><xs:enumeration value="inm"/><xs:enumeration value="lhs"/><xs:enumeration value="mh"/><xs:enumeration value="mnm"/><xs:enumeration value="oo"/><xs:enumeration value="pa"/><xs:enumeration value="pc"/><xs:enumeration value="pe"/><xs:enumeration value="pie"/><xs:enumeration value="pharm"/><xs:enumeration value="pic"/><xs:enumeration value="ps"/><xs:enumeration value="pher"/><xs:enumeration value="pubs"/><xs:enumeration value="security"/><xs:enumeration value="soa"/><xs:enumeration value="sd"/><xs:enumeration value="sgb"/><xs:enumeration value="templates"/><xs:enumeration value="tsc"/><xs:enumeration value="tsmg"/><xs:enumeration value="us-realm"/><xs:enumeration value="vocab"/><xs:enumeration value="v2mg"/><xs:enumeration value="eu"/><xs:enumeration value="au-v2"/><xs:enumeration value="au-fhir"/></xs:restriction></xs:simpleType></xs:schema>

tools/buildSpecJSON.xslt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@
131131
<!-- Check cross-specification validation rules -->
132132
<xsl:for-each select="$ballotSpecs/specification[not(@deprecated='true') and starts-with(@key, 'FHIR-')]">
133133
<xsl:choose>
134+
<xsl:when test="@defaultWorkgroup='uk' and not(starts-with(@gitUrl, 'https://github.com/NHSDigital/'))">
135+
<xsl:message terminate="yes" select="concat('ERROR: FHIR HL7 UK specifications that are not deprecated must have a gitUrl attribute that starts with ''https://github.com/NHSDigital/'' ', @key)"/>
136+
</xsl:when>
134137
<xsl:when test="@defaultWorkgroup='eu' and not(starts-with(@gitUrl, 'https://github.com/HL7-eu/'))">
135138
<xsl:message terminate="yes" select="concat('ERROR: FHIR HL7 EU specifications that are not deprecated must have a gitUrl attribute that starts with ''https://github.com/HL7-eu/'' ', @key)"/>
136139
</xsl:when>

tools/xmlToJson.xslt

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<xsl:template match="workgroups">
55
<xsl:call-template name="doArray">
66
<xsl:with-param name="name" select="'workgroup'"/>
7+
<xsl:with-param name="markDeprecated" select="true()"/>
78
</xsl:call-template>
89
</xsl:template>
910
<xsl:template match="accelerators">
@@ -83,11 +84,15 @@
8384
<xsl:value-of select="concat('&quot;', @value, '&quot;')"/>
8485
</xsl:template>
8586
<xsl:template match="*">
87+
<xsl:param name="markDeprecated"/>
8688
<xsl:text>{</xsl:text>
87-
<xsl:call-template name="doAttributes"/>
89+
<xsl:call-template name="doAttributes">
90+
<xsl:with-param name="markDeprecated" select="$markDeprecated"/>
91+
</xsl:call-template>
8892
<xsl:text>}</xsl:text>
8993
</xsl:template>
9094
<xsl:template name="doAttributes">
95+
<xsl:param name="markDeprecated"/>
9196
<xsl:for-each select="@*[not(contains(name(.), ':'))]">
9297
<xsl:choose>
9398
<xsl:when test="local-name(.)=('deprecated')">
@@ -101,6 +106,9 @@
101106
<xsl:call-template name="escapeText">
102107
<xsl:with-param name="text" select="."/>
103108
</xsl:call-template>
109+
<xsl:if test="local-name(.)='name' and $markDeprecated and parent::*/@deprecated='true'">
110+
<xsl:text> [deprecated]</xsl:text>
111+
</xsl:if>
104112
<xsl:text>"</xsl:text>
105113
</xsl:otherwise>
106114
</xsl:choose>
@@ -131,9 +139,12 @@
131139
</xsl:template>
132140
<xsl:template name="doArray">
133141
<xsl:param name="name"/>
142+
<xsl:param name="markDeprecated"/>
134143
<xsl:text>[</xsl:text>
135144
<xsl:for-each select="*[local-name(.)=$name]">
136-
<xsl:apply-templates select="."/>
145+
<xsl:apply-templates select=".">
146+
<xsl:with-param name="markDeprecated" select="$markDeprecated"/>
147+
</xsl:apply-templates>
137148
<xsl:if test="position()!=last()">,</xsl:if>
138149
</xsl:for-each>
139150
<xsl:text>]</xsl:text>

xml/CDA-ccda-two-one-companion.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
xsi:noNamespaceSchemaLocation="schemas/specification.xsd" defaultVersion="INF1"
77
defaultWorkgroup="sd">-->
88
<version code="4.1.1" deprecated="false"/>
9-
<version code="4.1.0" deprecated="false"/>
9+
<version code="4.1.0" deprecated="true"/>
1010
<version code="4.1.0-ballot" deprecated="true"/>
1111
<version code="3.1.0" deprecated="true"/>
1212
<version code="3.1.0-ballot" deprecated="true"/>

0 commit comments

Comments
 (0)