hl7:relatedDocument
|
|
0 … * |
|
Relationship to another CDA-CH V2 based document that is replaced by the current one.
Notes: For correction of wrong information, a new document that replaces the earlier document
MUST be created. The new document corrects previously incorrect information. This
also applies to the case where information in the CDA header has been corrected (e.g.,
if the original document has been issued to the wrong patient). While processing the
new document at the recipient, all values from the previous document MUST be interpreted
as deprecated (deleted/marked as deleted/deprecated) and all values in the new document
MUST be marked as valid:
- Values that were only contained in the previous document have to be treated as deleted.
- Values that are present in both documents are overwritten with the contents of the
new document.
- Values that are only contained in the new document are to be added.
|
CDA‑CH V2 |
@typeCode
|
cs |
1 … 1 |
F |
RPLC |
|
Indicates that it is a relationship to another document that needs to be replaced. |
hl7:templateId
|
II |
1 … 1 |
M |
|
CDA‑CH V2 |
@root
|
uid |
1 … 1 |
F |
2.16.756.5.30.1.1.10.2.13 |
hl7:parentDocument
|
|
1 … 1 |
R |
Relationship to the document that needs to be replaced. |
CDA‑CH V2 |
hl7:id
|
II |
1 … 1 |
M |
The id of the document to be replaced MUST be declared. |
CDA‑CH V2 |
@root
|
uid |
1 … 1 |
R |
The id (GUID) of the document to be replaced. |
@extension
|
st |
0 |
NP |
NP/not present |
hl7:setId
|
II |
1 … 1 |
M |
The setId of the document to be replaced MUST be declared. |
CDA‑CH V2 |
@extension
|
st |
0 |
NP |
NP/not present |
@root
|
uid |
1 … 1 |
R |
The setId (GUID) of the document to be replaced and MUST be identical with the content
of the setId of the current document.
|
|
Schematron assert |
role |
error
|
|
|
test |
(@root=/hl7:ClinicalDocument/hl7:id/@root) and not(@extension) and not(/hl7:ClinicalDocument/hl7:id/@extension) |
|
|
Message |
ClinicalDocument/setId: MUST be identical to the one of the replaced document |
|
hl7:versionNumber
|
INT |
1 … 1 |
M |
The version number of the document to be replaced. |
CDA‑CH V2 |
|
Schematron assert |
role |
error
|
|
|
test |
@value > /hl7:ClinicalDocument/hl7:versionNumber/@value |
|
|
Message |
ClinicalDocument/versionNumber: MUST be higher than the one of the replaced document |
|