export interface FHIRPathContext { /** Root resource being validated */ rootResource: any; /** All resources in bundle/contained for reference resolution */ bundleResources?: Map; /** ValueSet validator for memberOf */ valueSetValidator?: any; } type BundleResourceInput = Map | any[] | { entry?: any[]; }; /** * Resolves a Reference to the actual resource * Used in constraints like: reference.resolve().exists() */ export declare function resolveFunction(input: any[], context: FHIRPathContext): any[]; /** * Checks if a code is a member of a ValueSet * Used in constraints like: code.memberOf('http://hl7.org/fhir/ValueSet/observation-status') */ export declare function memberOfFunction(input: any[], valueSetUrl: string | string[], _context: FHIRPathContext): any[]; /** * Checks if a resource conforms to a profile * Used in constraints like: conformsTo('http://hl7.org/fhir/StructureDefinition/Patient') */ export declare function conformsToFunction(input: any[], profileUrl: string): boolean[]; /** * Gets extension by URL * Used in constraints like: extension('http://hl7.org/fhir/StructureDefinition/patient-birthPlace') */ export declare function extensionFunction(input: any[], extensionUrl: string): any[]; /** * Custom function definitions for fhirpath.js * These can be passed to fhirpath.evaluate() as userInvocationTable */ export declare const fhirPathCustomFunctions: { resolve: { fn: typeof resolveFunction; arity: { 0: never[]; }; }; memberOf: { fn: typeof memberOfFunction; arity: { 1: string[]; }; }; conformsTo: { fn: typeof conformsToFunction; arity: { 1: string[]; }; }; extension: { fn: typeof extensionFunction; arity: { 1: string[]; }; }; }; /** * Create a context object with bundle resources for reference resolution */ export declare function createFHIRPathContext(rootResource: any, bundleResources?: BundleResourceInput): FHIRPathContext; export {}; //# sourceMappingURL=fhirpath-functions.d.ts.map