import { fhirCode } from '../data-types/primitive/primitive-types'; /** * Base FHIR code system definition for a particular code defined in an implementation of IFhirCodeEnum. * * @category CodeSystems * @interface */ export interface IFhirCodeDefinition { /** * Enum name (all UPPERCASE) */ name: string; /** * A string pattern that identifies a concept as defined by the code system */ code: fhirCode; /** * A URI that identifies the system */ system?: string | undefined; /** * A description of the concept as defined by the code system */ display?: string | undefined; /** * Additional descriptive information about the code */ definition?: string | undefined; /** * @returns the 'code' for this FHIR code definition */ toJSON: () => string; } /** * Representation of a FHIR code system definition for a particular code. * * @category CodeSystems */ export declare class FhirCodeDefinition implements IFhirCodeDefinition { readonly name: string; readonly code: fhirCode; readonly system?: string | undefined; readonly display?: string | undefined; readonly definition?: string | undefined; /** * @param name - Enum name (all UPPERCASE) * @param code - A string pattern that identifies a concept as defined by the code system * @param system - A URI that identifies the system * @param display - A description of the concept as defined by the code system * @param definition - Additional descriptive information about the code * @throws {@link PrimitiveTypeError} when provided code is not valid */ constructor(name: string, code: fhirCode, system?: string, display?: string, definition?: string); /** * @returns the 'code' for this FHIR code definition */ toJSON(): string; } /** * FHIR code system for a "pseudo-enumeration" of code values. * * @category CodeSystems * @interface */ export interface IFhirCodeEnum { /** * @returns an IFhirCodeDefinition[] containing the enumeration of code system code definitions */ values: () => IFhirCodeDefinition[]; /** * @param code - fhirCode primitive value * @returns the IFhirCodeDefinition instance for the provided code value * @throws {@link InvalidCodeError} for undefined or invalid code value */ fromCode: (code: fhirCode | undefined) => IFhirCodeDefinition; } //# sourceMappingURL=core-fhir-codes.d.ts.map