@atomic-ehr/fhirpath 0.1.0 → 0.1.1-canary.20260211120931.291c5e6
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.js
CHANGED
|
@@ -15165,13 +15165,12 @@ async function getIdentifierCompletions(typeBeforeCursor, modelProvider) {
|
|
|
15165
15165
|
if (funcDef) {
|
|
15166
15166
|
const isApplicable = !typeBeforeCursor || await isFunctionApplicable(funcDef, typeBeforeCursor, modelProvider);
|
|
15167
15167
|
if (isApplicable) {
|
|
15168
|
-
const hasParams = funcDef.signatures?.some((sig) => (sig.parameters?.length ?? 0) > 0) ?? false;
|
|
15169
15168
|
const funcDescription = funcDef.description || `FHIRPath ${name} function`;
|
|
15170
15169
|
completions.push({
|
|
15171
15170
|
label: name,
|
|
15172
15171
|
kind: "function" /* Function */,
|
|
15173
15172
|
detail: funcDescription,
|
|
15174
|
-
insertText: name +
|
|
15173
|
+
insertText: name + "()"
|
|
15175
15174
|
});
|
|
15176
15175
|
}
|
|
15177
15176
|
}
|
|
@@ -15181,12 +15180,11 @@ async function getIdentifierCompletions(typeBeforeCursor, modelProvider) {
|
|
|
15181
15180
|
const typeFunctions = registry.getFunctionsForType(typeForRegistry);
|
|
15182
15181
|
for (const func of typeFunctions) {
|
|
15183
15182
|
if (!completions.some((c) => c.label === func.name) && await isFunctionApplicable(func, typeBeforeCursor, modelProvider)) {
|
|
15184
|
-
const hasParams = func.signatures?.some((sig) => (sig.parameters?.length ?? 0) > 0) ?? false;
|
|
15185
15183
|
completions.push({
|
|
15186
15184
|
label: func.name,
|
|
15187
15185
|
kind: "function" /* Function */,
|
|
15188
15186
|
detail: func.description || `FHIRPath ${func.name} function`,
|
|
15189
|
-
insertText: func.name +
|
|
15187
|
+
insertText: func.name + "()"
|
|
15190
15188
|
});
|
|
15191
15189
|
}
|
|
15192
15190
|
}
|
|
@@ -15443,7 +15441,7 @@ async function analyze(expression, options = {}) {
|
|
|
15443
15441
|
return analysisResult;
|
|
15444
15442
|
}
|
|
15445
15443
|
function getVersion() {
|
|
15446
|
-
return "0.1.
|
|
15444
|
+
return "0.1.1-canary.20260211120931.291c5e6";
|
|
15447
15445
|
}
|
|
15448
15446
|
var FHIRModelProviderBase = class _FHIRModelProviderBase {
|
|
15449
15447
|
constructor() {
|