UNPKG

fhir-snapshot-generator

Version:
22 lines 1.02 kB
/** * © Copyright Outburn Ltd. 2022-2025 All Rights Reserved * Project name: fhir-snapshot-generator */ import { PackageIdentifier } from 'fhir-package-explorer'; import { BaseFhirVersion } from '../../../types'; export declare const fhirCorePackages: { STU3: string; R4: string; R4B: string; R5: string; }; /** * Resolves any of the allowed FHIR version identifiers to a canonical version string. * If toPackage is true, it will return the base FHIR package name instead of the version identifier. * @param version Any valid FHIR version identifier (e.g., "R4", "4.0.1", "4.3", etc.). * @param toPackage If true, return the base FHIR package name & version instead of the version identifier (e.g. R5). * @throws Error if the version is not supported. * @returns The resolved FHIR version or base package name. */ export declare const resolveFhirVersion: (version: BaseFhirVersion, toPackage?: boolean) => BaseFhirVersion | PackageIdentifier; //# sourceMappingURL=resolveFhirVersion.d.ts.map