fhir-snapshot-generator
Version:
Generate snapshots for FHIR Profiles
16 lines • 807 B
TypeScript
/**
* © Copyright Outburn Ltd. 2022-2025 All Rights Reserved
* Project name: fhir-snapshot-generator
*/
import { ElementDefinition } from '../../../types';
/**
* Merge an existing snapshot element with a diff element.
* Most diff keys just override the snapshot ones if they exist.
* The 'constraint', 'mapping' and 'condition' arrays are accumulated.
* @param base ElementDefinition - the base snapshot element to apply the merge to
* @param diff ElementDefinition - the diff element to merge with the base element
* @returns ElementDefinition - the merged element
* @throws Error if the diff element ID does not match the base element ID
*/
export declare const mergeElement: (base: ElementDefinition, diff: ElementDefinition) => ElementDefinition;
//# sourceMappingURL=mergeElement.d.ts.map