@atomic-ehr/fhirpath 0.1.3 → 0.1.4
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.
- package/dist/index.browser.d.ts +2 -2
- package/dist/index.browser.js +3 -26
- package/dist/index.browser.js.map +1 -1
- package/dist/index.node.d.ts +2 -2
- package/dist/index.node.js +3 -26
- package/dist/index.node.js.map +1 -1
- package/dist/{model-provider.common-CLcGjAiO.d.ts → model-provider.common-CN5LGOT5.d.ts} +0 -1
- package/package.json +1 -1
- package/src/model-provider.common.ts +4 -28
package/dist/index.node.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FHIRModelProviderBase, R as Resource } from './model-provider.common-
|
|
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-
|
|
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
|
interface FHIRModelProviderConfig {
|
package/dist/index.node.js
CHANGED
|
@@ -15466,7 +15466,7 @@ async function analyze(expression, options = {}) {
|
|
|
15466
15466
|
return analysisResult;
|
|
15467
15467
|
}
|
|
15468
15468
|
function getVersion() {
|
|
15469
|
-
return "0.1.
|
|
15469
|
+
return "0.1.4";
|
|
15470
15470
|
}
|
|
15471
15471
|
var FHIRModelProviderBase = class _FHIRModelProviderBase {
|
|
15472
15472
|
constructor() {
|
|
@@ -15504,29 +15504,6 @@ var FHIRModelProviderBase = class _FHIRModelProviderBase {
|
|
|
15504
15504
|
"Distance": "Quantity",
|
|
15505
15505
|
"Count": "Quantity"
|
|
15506
15506
|
};
|
|
15507
|
-
// Map FHIR primitive names to FHIRPath type names
|
|
15508
|
-
this.primitiveTypeMapping = {
|
|
15509
|
-
"boolean": "Boolean",
|
|
15510
|
-
"string": "String",
|
|
15511
|
-
"integer": "Integer",
|
|
15512
|
-
"decimal": "Decimal",
|
|
15513
|
-
"date": "Date",
|
|
15514
|
-
"dateTime": "DateTime",
|
|
15515
|
-
"time": "Time",
|
|
15516
|
-
"instant": "Instant",
|
|
15517
|
-
"base64Binary": "Base64Binary",
|
|
15518
|
-
"uri": "Uri",
|
|
15519
|
-
"url": "Url",
|
|
15520
|
-
"canonical": "Canonical",
|
|
15521
|
-
"code": "Code",
|
|
15522
|
-
"oid": "Oid",
|
|
15523
|
-
"id": "Id",
|
|
15524
|
-
"markdown": "Markdown",
|
|
15525
|
-
"unsignedInt": "UnsignedInt",
|
|
15526
|
-
"positiveInt": "PositiveInt",
|
|
15527
|
-
"uuid": "Uuid",
|
|
15528
|
-
"xhtml": "Xhtml"
|
|
15529
|
-
};
|
|
15530
15507
|
if (this.constructor === _FHIRModelProviderBase) {
|
|
15531
15508
|
throw new Error("FHIRModelProviderBase can't be instantiated directly.");
|
|
15532
15509
|
}
|
|
@@ -15903,7 +15880,7 @@ var FHIRModelProviderBase = class _FHIRModelProviderBase {
|
|
|
15903
15880
|
const resources = await this.search({
|
|
15904
15881
|
kind: "resource"
|
|
15905
15882
|
});
|
|
15906
|
-
this.resourceTypesCache = resources.filter((r) => r.resourceType === "StructureDefinition").map((r) => r.name).filter((name) => !!name).sort();
|
|
15883
|
+
this.resourceTypesCache = resources.filter((r) => r.resourceType === "StructureDefinition").map((r) => r).filter((sd) => sd.derivation !== "constraint").map((sd) => sd.name).filter((name) => !!name).sort();
|
|
15907
15884
|
return this.resourceTypesCache || [];
|
|
15908
15885
|
}
|
|
15909
15886
|
async getComplexTypes() {
|
|
@@ -15927,7 +15904,7 @@ var FHIRModelProviderBase = class _FHIRModelProviderBase {
|
|
|
15927
15904
|
kind: "primitive-type"
|
|
15928
15905
|
});
|
|
15929
15906
|
const fhirPrimitives = resources.filter((r) => r.resourceType === "StructureDefinition").map((r) => r.name).filter((name) => !!name);
|
|
15930
|
-
this.primitiveTypesCache = fhirPrimitives.
|
|
15907
|
+
this.primitiveTypesCache = fhirPrimitives.sort();
|
|
15931
15908
|
return this.primitiveTypesCache || [];
|
|
15932
15909
|
}
|
|
15933
15910
|
};
|