Skip to main content
Version: v0.0.3

Interface: RelatedDocument

A CDA R2 relatedDocument, the header link that makes one document a revision of another. typeCode is the ActRelationshipType (RPLC replaces, APND appends, XFRM transforms); parentDocument names the prior version. A replacement (revision) carries typeCode="RPLC", the same setId as its parent, and an incremented versionNumber.

Example

import type { RelatedDocument } from "@cosyte/ccda";
function replaces(r: RelatedDocument): boolean {
return r.typeCode === "RPLC";
}

Properties

parentDocument

readonly parentDocument: ParentDocument


typeCode?

readonly optional typeCode?: string