Skip to main content
Version: v0.0.3

Interface: RevisionInit

Overrides for the CDA R2 revision an edit stamps. All fields are optional: omit documentId to mint a fresh id, omit setId to keep the source's version-series id (or mint one when the source has none), and omit versionNumber to increment the prior version by one. Pass revision: false on EditCcdaOptions instead of a RevisionInit to skip revision stamping entirely.

Example

import type { RevisionInit } from "@cosyte/ccda";
const rev: RevisionInit = { versionNumber: 5 };

Properties

documentId?

readonly optional documentId?: DocumentIdInit


setId?

readonly optional setId?: DocumentIdInit


versionNumber?

readonly optional versionNumber?: number