<!-- For information only (see 'Document Id' template for more information): /ClinicalDocument/id/@root="807563C2-5146-11D5-A672-00B0D022E945"
(equal to setId) --> <setIdroot="807563C2-5146-11D5-A672-00B0D022E945"/><versionNumbervalue="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)--> <setIdroot="807563C2-5146-11D5-A672-00B0D022E945"/><versionNumbervalue="2"/>
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
@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.
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.