Back To Index << Back To Templates

# Template Document Set Id and Version Number

Id | 2.16.756.5.30.1.1.10.2.20 ref hl7chcda- | Effective Date | 2018‑04‑18
Status | Active | Version Label | 2017
Name | cdach_header_DocumentSetIdAndVersionNumber | Display Name | Document Set Id and Version Number
Description | Unity of document versions. All CDA-CH V2 derivatives, i.e. Swiss exchange formats MUST reference this template.
Label | CDA‑CH V2
Classification | CDA Header Level Template
Open/Closed | Open (other than defined elements are allowed)
Associated with |
Associated with 12 concepts
Id | Name | Dataset
--- | --- | ---
cdachemed-dataelement-118 | Set ID 2022 | Dataset 1
cdachemed-dataelement-119 | Set ID 2022 | Dataset 1
cdachemed-dataelement-120 | Set ID 2022 | Dataset 1
cdachemed-dataelement-121 | Version 2022 | Dataset 1
cdachemed-dataelement-122 | Version 2022 | Dataset 1
cdachemed-dataelement-123 | Version 2022 | Dataset 1
cdachemed-dataelement-30 | Version 2022 | Dataset 1
cdachemed-dataelement-41 | Set ID 2022 | Dataset 1
cdachemed-dataelement-69 | Version 2022 | Dataset 1
cdachemed-dataelement-70 | Set ID 2022 | Dataset 1
cdachemed-dataelement-82 | Version 2022 | Dataset 1
cdachemed-dataelement-83 | Set ID 2022 | Dataset 1
Used by / Uses |
Used by 6 transactions and 15 templates, Uses 0 templates
Used by | as | Name | Version
--- | --- | --- | ---
cdachemed-transaction-4 | Transaction | Medication Prescription document | 2018‑04‑04 15:33:29
cdachemed-transaction-9 | Transaction | Medication Treatment Plan document | 2019‑12‑12 14:11:31
cdachemed-transaction-5 | Transaction | Medication Dispense document | 2018‑04‑04 15:35:51
cdachemed-transaction-6 | Transaction | Pharmaceutical Advice document | 2018‑04‑04 15:36:35
cdachemed-transaction-7 | Transaction | Medication List document | 2018‑04‑04 15:37:19
cdachemed-transaction-8 | Transaction | Medication Card document (2022) | 2018‑04‑04 15:42:50
2.16.756.5.30.1.1.10.9.36 | Include | CDA-CH v2.0 Header Template Compilation (2017) | 2018‑04‑18
2.16.756.5.30.1.1.10.1.9 |  | CDA-CH v2.1 - structuredBody (2020) | 2019‑10‑17 15:22:41
2.16.756.5.30.1.1.10.9.41 | Include | Header Template Compilation Medication Dispense document (2019) | 2018‑01‑08 15:56:47
2.16.756.5.30.1.1.10.1.5 |  | Medication Dispense document (2020) | 2016‑05‑21
2.16.756.5.30.1.1.10.9.42 | Include | Header Template Compilation Medication Card document (2022) | 2019‑10‑17 13:58:45
2.16.756.5.30.1.1.10.1.3 |  | Medication Card document (2022) | 2016‑05‑13
2.16.756.5.30.1.1.10.9.42 | Include | Header Template Compilation Medication Card document (2017) | 2018‑01‑08 16:20:12
2.16.756.5.30.1.1.10.9.43 | Include | Header Template Compilation Pharmaceutical Advice document (2019) | 2018‑01‑08 16:23:16
2.16.756.5.30.1.1.10.1.6 |  | Pharmaceutical Advice document (2020) | 2016‑05‑21
2.16.756.5.30.1.1.10.9.44 | Include | Header Template Compilation MedicationTreatmentPlan (2019) | 2018‑01‑08 16:26:11
2.16.756.5.30.1.1.10.1.7 |  | Medication Treatment Plan document (2020) | 2017‑04‑12 13:57:31
2.16.756.5.30.1.1.10.9.45 | Include | Header Template Compilation Medication Prescription document (2021) | 2018‑01‑08 16:28:39
2.16.756.5.30.1.1.10.1.4 |  | Medication Prescription document (2020) | 2016‑05‑21
2.16.756.5.30.1.1.10.9.46 | Include | Header Template Compilation Medication List document (2019) | 2018‑01‑22 15:29:29
2.16.756.5.30.1.1.10.1.13 |  | Medication List document (2020) | 2018‑01‑22 15:17:26
Example |
Version 1
<!-- For information only (see 'Document Id' template for more information): /ClinicalDocument/id/@root="807563C2-5146-11D5-A672-00B0D022E945" (equal to setId) --> <setId root="807563C2-5146-11D5-A672-00B0D022E945"/><versionNumber value="1"/>
Example |
Version 2
<!-- For information only (see 'Document Id' template for more information): /ClinicalDocument/id/@root="FD05DCA1-14A9-4AAE-B57E-6B28E621D853" (not equal to setId)--> <setId root="807563C2-5146-11D5-A672-00B0D022E945"/><versionNumber value="2"/>
Item | DT | Card | Conf | Description | Label
--- | --- | --- | --- | --- | ---
hl7:setId | II | 1 … 1 | R | The setId element MUST match the document id of the very first version of that document. It MUST remain the same for all document versions. | CDA‑CH V2
cdachemed-dataelement-118 | Set ID 2022 | Dataset 1
cdachemed-dataelement-119 | Set ID 2022 | Dataset 1
cdachemed-dataelement-120 | Set ID 2022 | Dataset 1
cdachemed-dataelement-41 | Set ID 2022 | Dataset 1
cdachemed-dataelement-70 | Set ID 2022 | Dataset 1
cdachemed-dataelement-83 | Set ID 2022 | Dataset 1
@root | uid | 1 … 1 | R | The root attribute MUST contain the setId as Globally Unique Identifier (GUID).
@extension | st | 0 | NP | NP/not present
| Schematron assert | role | error |
| test | (parent::*/hl7:versionNumber[@value='1'] and @root=parent::*/hl7:id/@root and (@extension=parent::*/hl7:id/@extension or (not(@extension) and not(parent::*/hl7:id/@extension)))) or (parent::*/hl7:versionNumber[not(@value ='1')] and ((@root=parent::*/hl7:id/@root and @extension and not(@extension=parent::*/hl7:id/@extension)) or(not(@root=parent::*/hl7:id/@root)))) |
| Message | The setId MUST be equal with the document id for version 1 and it MUST differ for all other versions. |
hl7:versionNumber | INT.NONNEG | 1 … 1 | R | The versionNumber element MUST contain the value 1 for the very first version of that document. For later versions, the version number MUST be increased by 1 each. | CDA‑CH V2
cdachemed-dataelement-121 | Version 2022 | Dataset 1
cdachemed-dataelement-122 | Version 2022 | Dataset 1
cdachemed-dataelement-123 | Version 2022 | Dataset 1
cdachemed-dataelement-30 | Version 2022 | Dataset 1
cdachemed-dataelement-69 | Version 2022 | Dataset 1
cdachemed-dataelement-82 | Version 2022 | Dataset 1