@atomic-ehr/fhirpath 0.1.2 → 0.1.3-canary.20260323161230.d550073

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.
@@ -983,7 +983,6 @@ declare class FHIRModelProviderBase implements ModelProvider<FHIRModelContext> {
983
983
  private primitiveTypesCache?;
984
984
  private resourceTypesCache?;
985
985
  private readonly typeMapping;
986
- private readonly primitiveTypeMapping;
987
986
  constructor();
988
987
  prepare(): Promise<void>;
989
988
  initialize(): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomic-ehr/fhirpath",
3
- "version": "0.1.2",
3
+ "version": "0.1.3-canary.20260323161230.d550073",
4
4
  "description": "A TypeScript implementation of FHIRPath",
5
5
  "type": "module",
6
6
  "main": "./dist/index.node.js",
@@ -51,19 +51,19 @@
51
51
  "@types/bun": "latest",
52
52
  "@types/js-yaml": "^4.0.9",
53
53
  "@types/jsdom": "^21.1.7",
54
- "@types/lodash": "^4.17.20",
54
+ "@types/lodash": "^4.17.24",
55
55
  "@types/node": "22.13.14",
56
- "@types/turndown": "^5.0.5",
56
+ "@types/turndown": "^5.0.6",
57
57
  "@types/xml2js": "^0.4.14",
58
58
  "@xmldom/xmldom": "^0.8.11",
59
59
  "antlr4ts": "^0.5.0-alpha.4",
60
60
  "antlr4ts-cli": "^0.5.0-alpha.4",
61
- "js-yaml": "^4.1.0",
61
+ "js-yaml": "^4.1.1",
62
62
  "jsdom": "^26.1.0",
63
- "lodash": "^4.17.21",
63
+ "lodash": "^4.17.23",
64
64
  "tsup": "8.5.0",
65
- "turndown": "^7.2.0",
66
- "typescript": "^5.8.3",
65
+ "turndown": "^7.2.2",
66
+ "typescript": "^5.9.3",
67
67
  "typescript-mcp": "^0.0.14",
68
68
  "xml2js": "^0.6.2"
69
69
  },
@@ -74,6 +74,6 @@
74
74
  "@atomic-ehr/fhir-canonical-manager": "^0.0.11",
75
75
  "@atomic-ehr/fhirschema": "^0.0.2",
76
76
  "@atomic-ehr/ucum": "^0.2.5",
77
- "fast-xml-parser": "^5.2.5"
77
+ "fast-xml-parser": "~5.3.9"
78
78
  }
79
- }
79
+ }
@@ -81,30 +81,6 @@ export class FHIRModelProviderBase implements ModelProvider<FHIRModelContext> {
81
81
  'Count': 'Quantity'
82
82
  };
83
83
 
84
- // Map FHIR primitive names to FHIRPath type names
85
- private readonly primitiveTypeMapping: Record<string, string> = {
86
- 'boolean': 'Boolean',
87
- 'string': 'String',
88
- 'integer': 'Integer',
89
- 'decimal': 'Decimal',
90
- 'date': 'Date',
91
- 'dateTime': 'DateTime',
92
- 'time': 'Time',
93
- 'instant': 'Instant',
94
- 'base64Binary': 'Base64Binary',
95
- 'uri': 'Uri',
96
- 'url': 'Url',
97
- 'canonical': 'Canonical',
98
- 'code': 'Code',
99
- 'oid': 'Oid',
100
- 'id': 'Id',
101
- 'markdown': 'Markdown',
102
- 'unsignedInt': 'UnsignedInt',
103
- 'positiveInt': 'PositiveInt',
104
- 'uuid': 'Uuid',
105
- 'xhtml': 'Xhtml'
106
- };
107
-
108
84
  constructor() {
109
85
  if (this.constructor === FHIRModelProviderBase) {
110
86
  throw new Error("FHIRModelProviderBase can't be instantiated directly.");
@@ -664,9 +640,7 @@ export class FHIRModelProviderBase implements ModelProvider<FHIRModelContext> {
664
640
  .map(r => (r as unknown as StructureDefinition).name)
665
641
  .filter((name): name is string => !!name);
666
642
 
667
- this.primitiveTypesCache = fhirPrimitives
668
- .map(name => this.primitiveTypeMapping[name] || name)
669
- .sort();
643
+ this.primitiveTypesCache = fhirPrimitives.sort();
670
644
 
671
645
  return this.primitiveTypesCache || [];
672
646
  }