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
readonlyparentDocument:ParentDocument
typeCode?
readonlyoptionaltypeCode?:string