@atomic-ehr/fhirpath 0.1.3 → 0.1.4-canary.20260323162456.b56bd4a

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { F as FHIRModelProviderBase, R as Resource } from './model-provider.common-CLcGjAiO.js';
2
- export { q as ASTMetadata, i as ASTNode, h as AnalysisResult, A as Analyzer, N as AnyCursorNode, w as CompletionItem, C as CompletionKind, x as CompletionOptions, J as CursorArgumentNode, y as CursorContext, H as CursorIdentifierNode, K as CursorIndexNode, B as CursorNode, G as CursorOperatorNode, L as CursorTypeNode, f as Diagnostic, D as DiagnosticSeverity, u as ErrorCodes, t as Errors, E as EvaluateOptions, l as EvaluationResult, a as FHIRModelContext, s as FHIRPathError, k as FunctionDefinition, n as InspectOptions, o as InspectResult, I as Interpreter, M as ModelTypeProvider, O as OperatorDefinition, d as ParseResult, P as Parser, c as Registry, T as TypeInfo, j as TypeName, b as analyze, e as evaluate, g as getVersion, m as inspect, z as isCursorNode, p as parse, v as provideCompletions, r as registry } from './model-provider.common-CLcGjAiO.js';
1
+ import { F as FHIRModelProviderBase, R as Resource } from './model-provider.common-CN5LGOT5.js';
2
+ export { q as ASTMetadata, i as ASTNode, h as AnalysisResult, A as Analyzer, N as AnyCursorNode, w as CompletionItem, C as CompletionKind, x as CompletionOptions, J as CursorArgumentNode, y as CursorContext, H as CursorIdentifierNode, K as CursorIndexNode, B as CursorNode, G as CursorOperatorNode, L as CursorTypeNode, f as Diagnostic, D as DiagnosticSeverity, u as ErrorCodes, t as Errors, E as EvaluateOptions, l as EvaluationResult, a as FHIRModelContext, s as FHIRPathError, k as FunctionDefinition, n as InspectOptions, o as InspectResult, I as Interpreter, M as ModelTypeProvider, O as OperatorDefinition, d as ParseResult, P as Parser, c as Registry, T as TypeInfo, j as TypeName, b as analyze, e as evaluate, g as getVersion, m as inspect, z as isCursorNode, p as parse, v as provideCompletions, r as registry } from './model-provider.common-CN5LGOT5.js';
3
3
  import '@atomic-ehr/fhirschema';
4
4
 
5
5
  type Resolver = (typeName: string) => Promise<Resource | null>;
@@ -15465,7 +15465,7 @@ async function analyze(expression, options = {}) {
15465
15465
  return analysisResult;
15466
15466
  }
15467
15467
  function getVersion() {
15468
- return "0.1.3";
15468
+ return "0.1.4-canary.20260323162456.b56bd4a";
15469
15469
  }
15470
15470
  var FHIRModelProviderBase = class _FHIRModelProviderBase {
15471
15471
  constructor() {
@@ -15503,29 +15503,6 @@ var FHIRModelProviderBase = class _FHIRModelProviderBase {
15503
15503
  "Distance": "Quantity",
15504
15504
  "Count": "Quantity"
15505
15505
  };
15506
- // Map FHIR primitive names to FHIRPath type names
15507
- this.primitiveTypeMapping = {
15508
- "boolean": "Boolean",
15509
- "string": "String",
15510
- "integer": "Integer",
15511
- "decimal": "Decimal",
15512
- "date": "Date",
15513
- "dateTime": "DateTime",
15514
- "time": "Time",
15515
- "instant": "Instant",
15516
- "base64Binary": "Base64Binary",
15517
- "uri": "Uri",
15518
- "url": "Url",
15519
- "canonical": "Canonical",
15520
- "code": "Code",
15521
- "oid": "Oid",
15522
- "id": "Id",
15523
- "markdown": "Markdown",
15524
- "unsignedInt": "UnsignedInt",
15525
- "positiveInt": "PositiveInt",
15526
- "uuid": "Uuid",
15527
- "xhtml": "Xhtml"
15528
- };
15529
15506
  if (this.constructor === _FHIRModelProviderBase) {
15530
15507
  throw new Error("FHIRModelProviderBase can't be instantiated directly.");
15531
15508
  }
@@ -15902,7 +15879,7 @@ var FHIRModelProviderBase = class _FHIRModelProviderBase {
15902
15879
  const resources = await this.search({
15903
15880
  kind: "resource"
15904
15881
  });
15905
- this.resourceTypesCache = resources.filter((r) => r.resourceType === "StructureDefinition").map((r) => r.name).filter((name) => !!name).sort();
15882
+ this.resourceTypesCache = resources.filter((r) => r.resourceType === "StructureDefinition").map((r) => r).filter((sd) => sd.derivation !== "constraint").map((sd) => sd.name).filter((name) => !!name).sort();
15906
15883
  return this.resourceTypesCache || [];
15907
15884
  }
15908
15885
  async getComplexTypes() {
@@ -15926,7 +15903,7 @@ var FHIRModelProviderBase = class _FHIRModelProviderBase {
15926
15903
  kind: "primitive-type"
15927
15904
  });
15928
15905
  const fhirPrimitives = resources.filter((r) => r.resourceType === "StructureDefinition").map((r) => r.name).filter((name) => !!name);
15929
- this.primitiveTypesCache = fhirPrimitives.map((name) => this.primitiveTypeMapping[name] || name).sort();
15906
+ this.primitiveTypesCache = fhirPrimitives.sort();
15930
15907
  return this.primitiveTypesCache || [];
15931
15908
  }
15932
15909
  };