@aehrc/ecl-core 1.0.1 → 1.0.3
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.cjs +57088 -0
- package/dist/index.d.ts +900 -38
- package/dist/index.mjs +57088 -0
- package/package.json +17 -6
- package/dist/completion/context-detector.d.ts +0 -51
- package/dist/completion/context-detector.d.ts.map +0 -1
- package/dist/completion/context-detector.js +0 -286
- package/dist/completion/context-detector.js.map +0 -1
- package/dist/completion/context-items.d.ts +0 -50
- package/dist/completion/context-items.d.ts.map +0 -1
- package/dist/completion/context-items.js +0 -526
- package/dist/completion/context-items.js.map +0 -1
- package/dist/completion/filter-cache.d.ts +0 -14
- package/dist/completion/filter-cache.d.ts.map +0 -1
- package/dist/completion/filter-cache.js +0 -55
- package/dist/completion/filter-cache.js.map +0 -1
- package/dist/completion/provider.d.ts +0 -38
- package/dist/completion/provider.d.ts.map +0 -1
- package/dist/completion/provider.js +0 -273
- package/dist/completion/provider.js.map +0 -1
- package/dist/completion/snippets.d.ts +0 -11
- package/dist/completion/snippets.d.ts.map +0 -1
- package/dist/completion/snippets.js +0 -80
- package/dist/completion/snippets.js.map +0 -1
- package/dist/formatter/ast-printer.d.ts +0 -12
- package/dist/formatter/ast-printer.d.ts.map +0 -1
- package/dist/formatter/ast-printer.js +0 -251
- package/dist/formatter/ast-printer.js.map +0 -1
- package/dist/formatter/comments.d.ts +0 -14
- package/dist/formatter/comments.d.ts.map +0 -1
- package/dist/formatter/comments.js +0 -232
- package/dist/formatter/comments.js.map +0 -1
- package/dist/formatter/config.d.ts +0 -5
- package/dist/formatter/config.d.ts.map +0 -1
- package/dist/formatter/config.js +0 -45
- package/dist/formatter/config.js.map +0 -1
- package/dist/formatter/formatter.d.ts +0 -3
- package/dist/formatter/formatter.d.ts.map +0 -1
- package/dist/formatter/formatter.js +0 -368
- package/dist/formatter/formatter.js.map +0 -1
- package/dist/formatter/index.d.ts +0 -6
- package/dist/formatter/index.d.ts.map +0 -1
- package/dist/formatter/index.js +0 -19
- package/dist/formatter/index.js.map +0 -1
- package/dist/formatter/options.d.ts +0 -31
- package/dist/formatter/options.d.ts.map +0 -1
- package/dist/formatter/options.js +0 -17
- package/dist/formatter/options.js.map +0 -1
- package/dist/formatter/range.d.ts +0 -16
- package/dist/formatter/range.d.ts.map +0 -1
- package/dist/formatter/range.js +0 -129
- package/dist/formatter/range.js.map +0 -1
- package/dist/formatter/rules.d.ts +0 -8
- package/dist/formatter/rules.d.ts.map +0 -1
- package/dist/formatter/rules.js +0 -42
- package/dist/formatter/rules.js.map +0 -1
- package/dist/grammar/ECLLexer.d.ts +0 -122
- package/dist/grammar/ECLLexer.d.ts.map +0 -1
- package/dist/grammar/ECLLexer.js +0 -399
- package/dist/grammar/ECLLexer.js.map +0 -1
- package/dist/grammar/ECLParser.d.ts +0 -2905
- package/dist/grammar/ECLParser.d.ts.map +0 -1
- package/dist/grammar/ECLParser.js +0 -24911
- package/dist/grammar/ECLParser.js.map +0 -1
- package/dist/grammar/ECLVisitor.d.ts +0 -1208
- package/dist/grammar/ECLVisitor.d.ts.map +0 -1
- package/dist/grammar/ECLVisitor.js +0 -4
- package/dist/grammar/ECLVisitor.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -107
- package/dist/index.js.map +0 -1
- package/dist/knowledge/filters.d.ts +0 -6
- package/dist/knowledge/filters.d.ts.map +0 -1
- package/dist/knowledge/filters.js +0 -99
- package/dist/knowledge/filters.js.map +0 -1
- package/dist/knowledge/grammar.d.ts +0 -7
- package/dist/knowledge/grammar.d.ts.map +0 -1
- package/dist/knowledge/grammar.js +0 -217
- package/dist/knowledge/grammar.js.map +0 -1
- package/dist/knowledge/index.d.ts +0 -24
- package/dist/knowledge/index.d.ts.map +0 -1
- package/dist/knowledge/index.js +0 -101
- package/dist/knowledge/index.js.map +0 -1
- package/dist/knowledge/operators.d.ts +0 -10
- package/dist/knowledge/operators.d.ts.map +0 -1
- package/dist/knowledge/operators.js +0 -324
- package/dist/knowledge/operators.js.map +0 -1
- package/dist/knowledge/patterns.d.ts +0 -6
- package/dist/knowledge/patterns.d.ts.map +0 -1
- package/dist/knowledge/patterns.js +0 -172
- package/dist/knowledge/patterns.js.map +0 -1
- package/dist/knowledge/refinements.d.ts +0 -6
- package/dist/knowledge/refinements.d.ts.map +0 -1
- package/dist/knowledge/refinements.js +0 -134
- package/dist/knowledge/refinements.js.map +0 -1
- package/dist/knowledge/types.d.ts +0 -41
- package/dist/knowledge/types.d.ts.map +0 -1
- package/dist/knowledge/types.js +0 -5
- package/dist/knowledge/types.js.map +0 -1
- package/dist/parser/ast.d.ts +0 -111
- package/dist/parser/ast.d.ts.map +0 -1
- package/dist/parser/ast.js +0 -25
- package/dist/parser/ast.js.map +0 -1
- package/dist/parser/concept-extractor.d.ts +0 -21
- package/dist/parser/concept-extractor.d.ts.map +0 -1
- package/dist/parser/concept-extractor.js +0 -126
- package/dist/parser/concept-extractor.js.map +0 -1
- package/dist/parser/error-analysis.d.ts +0 -54
- package/dist/parser/error-analysis.d.ts.map +0 -1
- package/dist/parser/error-analysis.js +0 -260
- package/dist/parser/error-analysis.js.map +0 -1
- package/dist/parser/error-listener.d.ts +0 -14
- package/dist/parser/error-listener.d.ts.map +0 -1
- package/dist/parser/error-listener.js +0 -24
- package/dist/parser/error-listener.js.map +0 -1
- package/dist/parser/expression-grouper.d.ts +0 -20
- package/dist/parser/expression-grouper.d.ts.map +0 -1
- package/dist/parser/expression-grouper.js +0 -99
- package/dist/parser/expression-grouper.js.map +0 -1
- package/dist/parser/generated/grammar/ECLLexer.d.ts +0 -122
- package/dist/parser/generated/grammar/ECLLexer.d.ts.map +0 -1
- package/dist/parser/generated/grammar/ECLLexer.js +0 -399
- package/dist/parser/generated/grammar/ECLLexer.js.map +0 -1
- package/dist/parser/generated/grammar/ECLParser.d.ts +0 -2905
- package/dist/parser/generated/grammar/ECLParser.d.ts.map +0 -1
- package/dist/parser/generated/grammar/ECLParser.js +0 -24911
- package/dist/parser/generated/grammar/ECLParser.js.map +0 -1
- package/dist/parser/generated/grammar/ECLVisitor.d.ts +0 -1208
- package/dist/parser/generated/grammar/ECLVisitor.d.ts.map +0 -1
- package/dist/parser/generated/grammar/ECLVisitor.js +0 -4
- package/dist/parser/generated/grammar/ECLVisitor.js.map +0 -1
- package/dist/parser/index.d.ts +0 -26
- package/dist/parser/index.d.ts.map +0 -1
- package/dist/parser/index.js +0 -202
- package/dist/parser/index.js.map +0 -1
- package/dist/parser/position-detector.d.ts +0 -45
- package/dist/parser/position-detector.d.ts.map +0 -1
- package/dist/parser/position-detector.js +0 -149
- package/dist/parser/position-detector.js.map +0 -1
- package/dist/parser/refinement-check.d.ts +0 -22
- package/dist/parser/refinement-check.d.ts.map +0 -1
- package/dist/parser/refinement-check.js +0 -194
- package/dist/parser/refinement-check.js.map +0 -1
- package/dist/parser/visitor.d.ts +0 -40
- package/dist/parser/visitor.d.ts.map +0 -1
- package/dist/parser/visitor.js +0 -587
- package/dist/parser/visitor.js.map +0 -1
- package/dist/refactoring/add-description-filter.d.ts +0 -8
- package/dist/refactoring/add-description-filter.d.ts.map +0 -1
- package/dist/refactoring/add-description-filter.js +0 -73
- package/dist/refactoring/add-description-filter.js.map +0 -1
- package/dist/refactoring/add-display-terms.d.ts +0 -20
- package/dist/refactoring/add-display-terms.d.ts.map +0 -1
- package/dist/refactoring/add-display-terms.js +0 -104
- package/dist/refactoring/add-display-terms.js.map +0 -1
- package/dist/refactoring/add-history-supplement.d.ts +0 -13
- package/dist/refactoring/add-history-supplement.d.ts.map +0 -1
- package/dist/refactoring/add-history-supplement.js +0 -80
- package/dist/refactoring/add-history-supplement.js.map +0 -1
- package/dist/refactoring/add-parentheses.d.ts +0 -14
- package/dist/refactoring/add-parentheses.d.ts.map +0 -1
- package/dist/refactoring/add-parentheses.js +0 -341
- package/dist/refactoring/add-parentheses.js.map +0 -1
- package/dist/refactoring/index.d.ts +0 -27
- package/dist/refactoring/index.d.ts.map +0 -1
- package/dist/refactoring/index.js +0 -237
- package/dist/refactoring/index.js.map +0 -1
- package/dist/refactoring/remove-parentheses.d.ts +0 -8
- package/dist/refactoring/remove-parentheses.d.ts.map +0 -1
- package/dist/refactoring/remove-parentheses.js +0 -162
- package/dist/refactoring/remove-parentheses.js.map +0 -1
- package/dist/refactoring/simplify-expression.d.ts +0 -15
- package/dist/refactoring/simplify-expression.d.ts.map +0 -1
- package/dist/refactoring/simplify-expression.js +0 -435
- package/dist/refactoring/simplify-expression.js.map +0 -1
- package/dist/refactoring/strip-display-terms.d.ts +0 -8
- package/dist/refactoring/strip-display-terms.d.ts.map +0 -1
- package/dist/refactoring/strip-display-terms.js +0 -27
- package/dist/refactoring/strip-display-terms.js.map +0 -1
- package/dist/semantic/ecl-text.d.ts +0 -35
- package/dist/semantic/ecl-text.d.ts.map +0 -1
- package/dist/semantic/ecl-text.js +0 -54
- package/dist/semantic/ecl-text.js.map +0 -1
- package/dist/semantic/validator.d.ts +0 -14
- package/dist/semantic/validator.d.ts.map +0 -1
- package/dist/semantic/validator.js +0 -183
- package/dist/semantic/validator.js.map +0 -1
- package/dist/semantic-tokens.d.ts +0 -12
- package/dist/semantic-tokens.d.ts.map +0 -1
- package/dist/semantic-tokens.js +0 -362
- package/dist/semantic-tokens.js.map +0 -1
- package/dist/terminology/fetch-compat-browser.d.ts +0 -3
- package/dist/terminology/fetch-compat-browser.d.ts.map +0 -1
- package/dist/terminology/fetch-compat-browser.js +0 -7
- package/dist/terminology/fetch-compat-browser.js.map +0 -1
- package/dist/terminology/fetch-compat.d.ts +0 -4
- package/dist/terminology/fetch-compat.d.ts.map +0 -1
- package/dist/terminology/fetch-compat.js +0 -18
- package/dist/terminology/fetch-compat.js.map +0 -1
- package/dist/terminology/fhir-service.d.ts +0 -65
- package/dist/terminology/fhir-service.d.ts.map +0 -1
- package/dist/terminology/fhir-service.js +0 -456
- package/dist/terminology/fhir-service.js.map +0 -1
- package/dist/terminology/index.d.ts +0 -4
- package/dist/terminology/index.d.ts.map +0 -1
- package/dist/terminology/index.js +0 -22
- package/dist/terminology/index.js.map +0 -1
- package/dist/terminology/mock-service.d.ts +0 -11
- package/dist/terminology/mock-service.d.ts.map +0 -1
- package/dist/terminology/mock-service.js +0 -108
- package/dist/terminology/mock-service.js.map +0 -1
- package/dist/terminology/types.d.ts +0 -31
- package/dist/terminology/types.d.ts.map +0 -1
- package/dist/terminology/types.js +0 -5
- package/dist/terminology/types.js.map +0 -1
- package/dist/terminology/verhoeff.d.ts +0 -38
- package/dist/terminology/verhoeff.d.ts.map +0 -1
- package/dist/terminology/verhoeff.js +0 -118
- package/dist/terminology/verhoeff.js.map +0 -1
- package/dist/text-utils.d.ts +0 -17
- package/dist/text-utils.d.ts.map +0 -1
- package/dist/text-utils.js +0 -49
- package/dist/text-utils.js.map +0 -1
- package/dist/types.d.ts +0 -64
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -15
- package/dist/types.js.map +0 -1
- package/dist/validation/error-refinement.d.ts +0 -31
- package/dist/validation/error-refinement.d.ts.map +0 -1
- package/dist/validation/error-refinement.js +0 -173
- package/dist/validation/error-refinement.js.map +0 -1
|
@@ -1,526 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2026 Commonwealth Scientific and Industrial Research Organisation (CSIRO)
|
|
3
|
-
// ABN 41 687 119 230. SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.conceptSearch = exports.effectiveTimeHint = exports.languageCodeValues = exports.definitionStatusIdValues = exports.moduleIdValues = exports.dialectIdValues = exports.typeIdValues = exports.booleanValues = exports.definitionStatusValues = exports.descriptionTypeValues = exports.historyCompletions = exports.memberFilterKeywords = exports.conceptFilterKeywords = exports.descriptionFilterKeywords = exports.filterOpeners = exports.historySupplement = exports.filterMember = exports.filterConcept = exports.filterDescription = exports.cardinalitySnippets = exports.cardinality_1_many = exports.cardinality_1_1 = exports.cardinality_0_many = exports.cardinality_0_1 = exports.cardinality_0_0 = exports.attributeGroup = exports.wildcardValue = exports.reverseFlag = exports.notEqualsOperator = exports.equalsOperator = exports.dotNotation = exports.refinementColon = exports.minusOperator = exports.orOperator = exports.andOperator = exports.constraintOperators = exports.bottom = exports.top = exports.memberOf = exports.parentOrSelfOf = exports.parentOf = exports.childOrSelfOf = exports.childOf = exports.ancestorOrSelfOf = exports.ancestorOf = exports.descendantOrSelfOf = exports.descendantOf = void 0;
|
|
6
|
-
// ── Constraint operators ─────────────────────────────────────────────────
|
|
7
|
-
exports.descendantOf = {
|
|
8
|
-
label: '<',
|
|
9
|
-
kind: 'operator',
|
|
10
|
-
detail: 'Descendant of',
|
|
11
|
-
documentation: 'Matches all descendants (children, grandchildren, etc.) excluding the concept itself',
|
|
12
|
-
sortText: 'a-01',
|
|
13
|
-
};
|
|
14
|
-
exports.descendantOrSelfOf = {
|
|
15
|
-
label: '<<',
|
|
16
|
-
kind: 'operator',
|
|
17
|
-
detail: 'Descendant or self of',
|
|
18
|
-
documentation: 'Matches all descendants including the concept itself',
|
|
19
|
-
sortText: 'a-02',
|
|
20
|
-
};
|
|
21
|
-
exports.ancestorOf = {
|
|
22
|
-
label: '>',
|
|
23
|
-
kind: 'operator',
|
|
24
|
-
detail: 'Ancestor of',
|
|
25
|
-
documentation: 'Matches all ancestors (parents, grandparents, etc.) excluding the concept itself',
|
|
26
|
-
sortText: 'a-03',
|
|
27
|
-
};
|
|
28
|
-
exports.ancestorOrSelfOf = {
|
|
29
|
-
label: '>>',
|
|
30
|
-
kind: 'operator',
|
|
31
|
-
detail: 'Ancestor or self of',
|
|
32
|
-
documentation: 'Matches all ancestors including the concept itself',
|
|
33
|
-
sortText: 'a-04',
|
|
34
|
-
};
|
|
35
|
-
exports.childOf = {
|
|
36
|
-
label: '<!',
|
|
37
|
-
kind: 'operator',
|
|
38
|
-
detail: 'Child of',
|
|
39
|
-
documentation: 'Matches only direct children (one level below)',
|
|
40
|
-
sortText: 'a-05',
|
|
41
|
-
};
|
|
42
|
-
exports.childOrSelfOf = {
|
|
43
|
-
label: '<<!',
|
|
44
|
-
kind: 'operator',
|
|
45
|
-
detail: 'Child or self of',
|
|
46
|
-
documentation: 'Matches direct children including the concept itself',
|
|
47
|
-
sortText: 'a-06',
|
|
48
|
-
};
|
|
49
|
-
exports.parentOf = {
|
|
50
|
-
label: '>!',
|
|
51
|
-
kind: 'operator',
|
|
52
|
-
detail: 'Parent of',
|
|
53
|
-
documentation: 'Matches only direct parents (one level above)',
|
|
54
|
-
sortText: 'a-07',
|
|
55
|
-
};
|
|
56
|
-
exports.parentOrSelfOf = {
|
|
57
|
-
label: '>>!',
|
|
58
|
-
kind: 'operator',
|
|
59
|
-
detail: 'Parent or self of',
|
|
60
|
-
documentation: 'Matches direct parents including the concept itself',
|
|
61
|
-
sortText: 'a-08',
|
|
62
|
-
};
|
|
63
|
-
exports.memberOf = {
|
|
64
|
-
label: '^',
|
|
65
|
-
kind: 'operator',
|
|
66
|
-
detail: 'Member of (reference set)',
|
|
67
|
-
documentation: 'Matches concepts that are members of the specified reference set',
|
|
68
|
-
sortText: 'a-09',
|
|
69
|
-
};
|
|
70
|
-
exports.top = {
|
|
71
|
-
label: '!!>',
|
|
72
|
-
kind: 'operator',
|
|
73
|
-
detail: 'Top (root concept)',
|
|
74
|
-
documentation: 'Matches the root concept (SNOMED CT Concept)',
|
|
75
|
-
sortText: 'a-10',
|
|
76
|
-
};
|
|
77
|
-
exports.bottom = {
|
|
78
|
-
label: '!!<',
|
|
79
|
-
kind: 'operator',
|
|
80
|
-
detail: 'Bottom (leaf concepts)',
|
|
81
|
-
documentation: 'Matches leaf concepts with no children',
|
|
82
|
-
sortText: 'a-11',
|
|
83
|
-
};
|
|
84
|
-
/** All constraint operators — offered at expression start and after logical operators. */
|
|
85
|
-
exports.constraintOperators = [
|
|
86
|
-
exports.descendantOf,
|
|
87
|
-
exports.descendantOrSelfOf,
|
|
88
|
-
exports.ancestorOf,
|
|
89
|
-
exports.ancestorOrSelfOf,
|
|
90
|
-
exports.childOf,
|
|
91
|
-
exports.childOrSelfOf,
|
|
92
|
-
exports.parentOf,
|
|
93
|
-
exports.parentOrSelfOf,
|
|
94
|
-
exports.memberOf,
|
|
95
|
-
exports.top,
|
|
96
|
-
exports.bottom,
|
|
97
|
-
];
|
|
98
|
-
// ── Logical operators / keywords ─────────────────────────────────────────
|
|
99
|
-
exports.andOperator = {
|
|
100
|
-
label: 'AND',
|
|
101
|
-
kind: 'keyword',
|
|
102
|
-
detail: 'Logical AND operator',
|
|
103
|
-
documentation: 'Combines two constraints — both must be satisfied',
|
|
104
|
-
sortText: 'b-01',
|
|
105
|
-
};
|
|
106
|
-
exports.orOperator = {
|
|
107
|
-
label: 'OR',
|
|
108
|
-
kind: 'keyword',
|
|
109
|
-
detail: 'Logical OR operator',
|
|
110
|
-
documentation: 'Combines two constraints — at least one must be satisfied',
|
|
111
|
-
sortText: 'b-02',
|
|
112
|
-
};
|
|
113
|
-
exports.minusOperator = {
|
|
114
|
-
label: 'MINUS',
|
|
115
|
-
kind: 'keyword',
|
|
116
|
-
detail: 'Exclusion operator',
|
|
117
|
-
documentation: 'Excludes concepts matching the right operand',
|
|
118
|
-
sortText: 'b-03',
|
|
119
|
-
};
|
|
120
|
-
exports.refinementColon = {
|
|
121
|
-
label: ':',
|
|
122
|
-
kind: 'keyword',
|
|
123
|
-
detail: 'Refinement separator',
|
|
124
|
-
documentation: 'Start a refinement — constrain by attribute values',
|
|
125
|
-
sortText: 'b-04',
|
|
126
|
-
};
|
|
127
|
-
exports.dotNotation = {
|
|
128
|
-
label: '.',
|
|
129
|
-
kind: 'keyword',
|
|
130
|
-
detail: 'Dot notation (attribute traversal)',
|
|
131
|
-
documentation: 'Traverse to attribute values of the matched concepts',
|
|
132
|
-
sortText: 'b-05',
|
|
133
|
-
};
|
|
134
|
-
// ── Comparison operators ─────────────────────────────────────────────────
|
|
135
|
-
exports.equalsOperator = {
|
|
136
|
-
label: '=',
|
|
137
|
-
kind: 'operator',
|
|
138
|
-
detail: 'Equals',
|
|
139
|
-
documentation: 'Attribute value must match the specified constraint',
|
|
140
|
-
sortText: 'a-20',
|
|
141
|
-
};
|
|
142
|
-
exports.notEqualsOperator = {
|
|
143
|
-
label: '!=',
|
|
144
|
-
kind: 'operator',
|
|
145
|
-
detail: 'Not equals',
|
|
146
|
-
documentation: 'Attribute value must NOT match the specified constraint',
|
|
147
|
-
sortText: 'a-21',
|
|
148
|
-
};
|
|
149
|
-
// ── Refinement items ─────────────────────────────────────────────────────
|
|
150
|
-
exports.reverseFlag = {
|
|
151
|
-
label: 'R',
|
|
152
|
-
kind: 'keyword',
|
|
153
|
-
detail: 'Reverse flag',
|
|
154
|
-
documentation: 'Reverse the direction of the attribute relationship (find source concepts)',
|
|
155
|
-
sortText: 'b-10',
|
|
156
|
-
};
|
|
157
|
-
exports.wildcardValue = {
|
|
158
|
-
label: '*',
|
|
159
|
-
kind: 'keyword',
|
|
160
|
-
detail: 'Any value (wildcard)',
|
|
161
|
-
documentation: 'Matches any attribute value',
|
|
162
|
-
sortText: 'b-11',
|
|
163
|
-
};
|
|
164
|
-
exports.attributeGroup = {
|
|
165
|
-
label: '{ }',
|
|
166
|
-
kind: 'snippet',
|
|
167
|
-
detail: 'Attribute group',
|
|
168
|
-
documentation: 'Group attributes together — co-occurring in the same relationship group',
|
|
169
|
-
insertText: '{ ${1} }',
|
|
170
|
-
insertTextFormat: 'snippet',
|
|
171
|
-
sortText: 'b-12',
|
|
172
|
-
};
|
|
173
|
-
// ── Cardinality snippets ─────────────────────────────────────────────────
|
|
174
|
-
exports.cardinality_0_0 = {
|
|
175
|
-
label: '[0..0]',
|
|
176
|
-
kind: 'snippet',
|
|
177
|
-
detail: 'Cardinality: exactly 0 (absence)',
|
|
178
|
-
documentation: 'Attribute must NOT be present',
|
|
179
|
-
insertText: '[${1:0}..${2:0}]',
|
|
180
|
-
insertTextFormat: 'snippet',
|
|
181
|
-
sortText: 'b-20',
|
|
182
|
-
};
|
|
183
|
-
exports.cardinality_0_1 = {
|
|
184
|
-
label: '[0..1]',
|
|
185
|
-
kind: 'snippet',
|
|
186
|
-
detail: 'Cardinality: 0 or 1 (optional)',
|
|
187
|
-
documentation: 'Attribute may appear at most once',
|
|
188
|
-
insertText: '[${1:0}..${2:1}]',
|
|
189
|
-
insertTextFormat: 'snippet',
|
|
190
|
-
sortText: 'b-21',
|
|
191
|
-
};
|
|
192
|
-
exports.cardinality_0_many = {
|
|
193
|
-
label: '[0..*]',
|
|
194
|
-
kind: 'snippet',
|
|
195
|
-
detail: 'Cardinality: 0 or more',
|
|
196
|
-
documentation: 'Attribute may appear any number of times',
|
|
197
|
-
insertText: '[${1:0}..${2:*}]',
|
|
198
|
-
insertTextFormat: 'snippet',
|
|
199
|
-
sortText: 'b-22',
|
|
200
|
-
};
|
|
201
|
-
exports.cardinality_1_1 = {
|
|
202
|
-
label: '[1..1]',
|
|
203
|
-
kind: 'snippet',
|
|
204
|
-
detail: 'Cardinality: exactly 1',
|
|
205
|
-
documentation: 'Attribute must appear exactly once',
|
|
206
|
-
insertText: '[${1:1}..${2:1}]',
|
|
207
|
-
insertTextFormat: 'snippet',
|
|
208
|
-
sortText: 'b-23',
|
|
209
|
-
};
|
|
210
|
-
exports.cardinality_1_many = {
|
|
211
|
-
label: '[1..*]',
|
|
212
|
-
kind: 'snippet',
|
|
213
|
-
detail: 'Cardinality: 1 or more (default)',
|
|
214
|
-
documentation: 'Attribute must appear at least once (default)',
|
|
215
|
-
insertText: '[${1:1}..${2:*}]',
|
|
216
|
-
insertTextFormat: 'snippet',
|
|
217
|
-
sortText: 'b-19',
|
|
218
|
-
};
|
|
219
|
-
exports.cardinalitySnippets = [
|
|
220
|
-
exports.cardinality_1_many,
|
|
221
|
-
exports.cardinality_0_0,
|
|
222
|
-
exports.cardinality_0_1,
|
|
223
|
-
exports.cardinality_0_many,
|
|
224
|
-
exports.cardinality_1_1,
|
|
225
|
-
];
|
|
226
|
-
// ── Filter openers ───────────────────────────────────────────────────────
|
|
227
|
-
exports.filterDescription = {
|
|
228
|
-
label: '{{ D',
|
|
229
|
-
kind: 'keyword',
|
|
230
|
-
detail: 'Description filter',
|
|
231
|
-
documentation: 'Filter by description properties (term, type, language, etc.)',
|
|
232
|
-
insertText: '{{ D ${1} }}',
|
|
233
|
-
insertTextFormat: 'snippet',
|
|
234
|
-
sortText: 'c-01',
|
|
235
|
-
};
|
|
236
|
-
exports.filterConcept = {
|
|
237
|
-
label: '{{ C',
|
|
238
|
-
kind: 'keyword',
|
|
239
|
-
detail: 'Concept filter',
|
|
240
|
-
documentation: 'Filter by concept properties (definitionStatus, moduleId, etc.)',
|
|
241
|
-
insertText: '{{ C ${1} }}',
|
|
242
|
-
insertTextFormat: 'snippet',
|
|
243
|
-
sortText: 'c-02',
|
|
244
|
-
};
|
|
245
|
-
exports.filterMember = {
|
|
246
|
-
label: '{{ M',
|
|
247
|
-
kind: 'keyword',
|
|
248
|
-
detail: 'Member filter',
|
|
249
|
-
documentation: 'Filter by reference set member properties (moduleId, active, etc.)',
|
|
250
|
-
insertText: '{{ M ${1} }}',
|
|
251
|
-
insertTextFormat: 'snippet',
|
|
252
|
-
sortText: 'c-03',
|
|
253
|
-
};
|
|
254
|
-
exports.historySupplement = {
|
|
255
|
-
label: '{{ +',
|
|
256
|
-
kind: 'keyword',
|
|
257
|
-
detail: 'History supplement',
|
|
258
|
-
documentation: 'Include historical associations for inactive concepts',
|
|
259
|
-
insertText: '{{ + ${1|HISTORY,HISTORY-MIN,HISTORY-MOD,HISTORY-MAX|} }}',
|
|
260
|
-
insertTextFormat: 'snippet',
|
|
261
|
-
sortText: 'c-04',
|
|
262
|
-
};
|
|
263
|
-
exports.filterOpeners = [exports.filterDescription, exports.filterConcept, exports.filterMember, exports.historySupplement];
|
|
264
|
-
// ── Description filter keywords ──────────────────────────────────────────
|
|
265
|
-
exports.descriptionFilterKeywords = [
|
|
266
|
-
{ label: 'term', kind: 'property', detail: 'Description term text', sortText: 'd-01' },
|
|
267
|
-
{
|
|
268
|
-
label: 'type',
|
|
269
|
-
kind: 'property',
|
|
270
|
-
detail: 'Description type (syn/fsn/def)',
|
|
271
|
-
sortText: 'd-02',
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
label: 'typeId',
|
|
275
|
-
kind: 'property',
|
|
276
|
-
detail: 'Description type concept ID',
|
|
277
|
-
sortText: 'd-03',
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
label: 'language',
|
|
281
|
-
kind: 'property',
|
|
282
|
-
detail: 'Description language code',
|
|
283
|
-
sortText: 'd-04',
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
label: 'dialect',
|
|
287
|
-
kind: 'property',
|
|
288
|
-
detail: 'Dialect alias (e.g., en-gb)',
|
|
289
|
-
sortText: 'd-05',
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
label: 'dialectId',
|
|
293
|
-
kind: 'property',
|
|
294
|
-
detail: 'Dialect reference set concept ID',
|
|
295
|
-
sortText: 'd-06',
|
|
296
|
-
},
|
|
297
|
-
{ label: 'moduleId', kind: 'property', detail: 'Module concept ID', sortText: 'd-07' },
|
|
298
|
-
{
|
|
299
|
-
label: 'effectiveTime',
|
|
300
|
-
kind: 'property',
|
|
301
|
-
detail: 'Effective time (YYYYMMDD)',
|
|
302
|
-
sortText: 'd-08',
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
label: 'active',
|
|
306
|
-
kind: 'property',
|
|
307
|
-
detail: 'Active status (true/false/1/0)',
|
|
308
|
-
sortText: 'd-09',
|
|
309
|
-
},
|
|
310
|
-
{ label: 'id', kind: 'property', detail: 'Description SCTID', sortText: 'd-10' },
|
|
311
|
-
];
|
|
312
|
-
// ── Concept filter keywords ──────────────────────────────────────────────
|
|
313
|
-
exports.conceptFilterKeywords = [
|
|
314
|
-
{
|
|
315
|
-
label: 'definitionStatus',
|
|
316
|
-
kind: 'property',
|
|
317
|
-
detail: 'Definition status (primitive/defined)',
|
|
318
|
-
sortText: 'd-01',
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
label: 'definitionStatusId',
|
|
322
|
-
kind: 'property',
|
|
323
|
-
detail: 'Definition status concept ID',
|
|
324
|
-
sortText: 'd-02',
|
|
325
|
-
},
|
|
326
|
-
{ label: 'moduleId', kind: 'property', detail: 'Module concept ID', sortText: 'd-03' },
|
|
327
|
-
{
|
|
328
|
-
label: 'effectiveTime',
|
|
329
|
-
kind: 'property',
|
|
330
|
-
detail: 'Effective time (YYYYMMDD)',
|
|
331
|
-
sortText: 'd-04',
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
label: 'active',
|
|
335
|
-
kind: 'property',
|
|
336
|
-
detail: 'Active status (true/false/1/0)',
|
|
337
|
-
sortText: 'd-05',
|
|
338
|
-
},
|
|
339
|
-
];
|
|
340
|
-
// ── Member filter keywords ───────────────────────────────────────────────
|
|
341
|
-
exports.memberFilterKeywords = [
|
|
342
|
-
{ label: 'moduleId', kind: 'property', detail: 'Module concept ID', sortText: 'd-01' },
|
|
343
|
-
{
|
|
344
|
-
label: 'effectiveTime',
|
|
345
|
-
kind: 'property',
|
|
346
|
-
detail: 'Effective time (YYYYMMDD)',
|
|
347
|
-
sortText: 'd-02',
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
label: 'active',
|
|
351
|
-
kind: 'property',
|
|
352
|
-
detail: 'Active status (true/false/1/0)',
|
|
353
|
-
sortText: 'd-03',
|
|
354
|
-
},
|
|
355
|
-
];
|
|
356
|
-
// ── History supplement completions ───────────────────────────────────────
|
|
357
|
-
exports.historyCompletions = [
|
|
358
|
-
{
|
|
359
|
-
label: 'HISTORY }}',
|
|
360
|
-
kind: 'keyword',
|
|
361
|
-
detail: 'All historical associations',
|
|
362
|
-
sortText: 'd-01',
|
|
363
|
-
},
|
|
364
|
-
{
|
|
365
|
-
label: 'HISTORY-MIN }}',
|
|
366
|
-
kind: 'keyword',
|
|
367
|
-
detail: 'Minimal history (SAME-AS, REPLACED-BY, MOVED-TO)',
|
|
368
|
-
sortText: 'd-02',
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
label: 'HISTORY-MOD }}',
|
|
372
|
-
kind: 'keyword',
|
|
373
|
-
detail: 'Moderate history (min + POSSIBLY-EQUIVALENT-TO)',
|
|
374
|
-
sortText: 'd-03',
|
|
375
|
-
},
|
|
376
|
-
{
|
|
377
|
-
label: 'HISTORY-MAX }}',
|
|
378
|
-
kind: 'keyword',
|
|
379
|
-
detail: 'Maximum history (all association types)',
|
|
380
|
-
sortText: 'd-04',
|
|
381
|
-
},
|
|
382
|
-
];
|
|
383
|
-
// ── Value tokens ─────────────────────────────────────────────────────────
|
|
384
|
-
exports.descriptionTypeValues = [
|
|
385
|
-
{ label: 'syn', kind: 'value', detail: 'Synonym', sortText: 'e-01' },
|
|
386
|
-
{ label: 'fsn', kind: 'value', detail: 'Fully specified name', sortText: 'e-02' },
|
|
387
|
-
{ label: 'def', kind: 'value', detail: 'Definition', sortText: 'e-03' },
|
|
388
|
-
];
|
|
389
|
-
exports.definitionStatusValues = [
|
|
390
|
-
{ label: 'primitive', kind: 'value', detail: 'Primitive concept', sortText: 'e-01' },
|
|
391
|
-
{ label: 'defined', kind: 'value', detail: 'Fully defined concept', sortText: 'e-02' },
|
|
392
|
-
];
|
|
393
|
-
exports.booleanValues = [
|
|
394
|
-
{ label: 'true', kind: 'value', detail: 'Boolean true', sortText: 'e-01' },
|
|
395
|
-
{ label: 'false', kind: 'value', detail: 'Boolean false', sortText: 'e-02' },
|
|
396
|
-
{ label: '1', kind: 'value', detail: 'Boolean true (numeric)', sortText: 'e-03' },
|
|
397
|
-
{ label: '0', kind: 'value', detail: 'Boolean false (numeric)', sortText: 'e-04' },
|
|
398
|
-
];
|
|
399
|
-
// ── Filter keyword-specific concept ID values ───────────────────────────
|
|
400
|
-
exports.typeIdValues = [
|
|
401
|
-
{
|
|
402
|
-
label: '900000000000003001 |Fully specified name|',
|
|
403
|
-
kind: 'value',
|
|
404
|
-
detail: 'FSN description type',
|
|
405
|
-
sortText: 'e-10',
|
|
406
|
-
},
|
|
407
|
-
{
|
|
408
|
-
label: '900000000000013009 |Synonym|',
|
|
409
|
-
kind: 'value',
|
|
410
|
-
detail: 'Synonym description type',
|
|
411
|
-
sortText: 'e-11',
|
|
412
|
-
},
|
|
413
|
-
{
|
|
414
|
-
label: '900000000000550004 |Definition|',
|
|
415
|
-
kind: 'value',
|
|
416
|
-
detail: 'Definition description type',
|
|
417
|
-
sortText: 'e-12',
|
|
418
|
-
},
|
|
419
|
-
];
|
|
420
|
-
exports.dialectIdValues = [
|
|
421
|
-
{
|
|
422
|
-
label: '900000000000509007 |US English|',
|
|
423
|
-
kind: 'value',
|
|
424
|
-
detail: 'US English dialect',
|
|
425
|
-
sortText: 'e-10',
|
|
426
|
-
},
|
|
427
|
-
{
|
|
428
|
-
label: '900000000000508004 |GB English|',
|
|
429
|
-
kind: 'value',
|
|
430
|
-
detail: 'GB English dialect',
|
|
431
|
-
sortText: 'e-11',
|
|
432
|
-
},
|
|
433
|
-
{
|
|
434
|
-
label: '32570271000036106 |AU English|',
|
|
435
|
-
kind: 'value',
|
|
436
|
-
detail: 'Australian English dialect',
|
|
437
|
-
sortText: 'e-12',
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
label: '21000220103 |NZ English|',
|
|
441
|
-
kind: 'value',
|
|
442
|
-
detail: 'New Zealand English dialect',
|
|
443
|
-
sortText: 'e-13',
|
|
444
|
-
},
|
|
445
|
-
];
|
|
446
|
-
exports.moduleIdValues = [
|
|
447
|
-
{
|
|
448
|
-
label: '900000000000207008 |SNOMED CT core|',
|
|
449
|
-
kind: 'value',
|
|
450
|
-
detail: 'SNOMED CT core module',
|
|
451
|
-
sortText: 'e-10',
|
|
452
|
-
},
|
|
453
|
-
{
|
|
454
|
-
label: '900000000000012004 |SNOMED CT model component|',
|
|
455
|
-
kind: 'value',
|
|
456
|
-
detail: 'Model component module',
|
|
457
|
-
sortText: 'e-11',
|
|
458
|
-
},
|
|
459
|
-
{
|
|
460
|
-
label: '32506021000036107 |AU module|',
|
|
461
|
-
kind: 'value',
|
|
462
|
-
detail: 'Australian module',
|
|
463
|
-
sortText: 'e-12',
|
|
464
|
-
},
|
|
465
|
-
{
|
|
466
|
-
label: '731000124108 |US module|',
|
|
467
|
-
kind: 'value',
|
|
468
|
-
detail: 'US National module',
|
|
469
|
-
sortText: 'e-13',
|
|
470
|
-
},
|
|
471
|
-
{
|
|
472
|
-
label: '999000011000000103 |UK module|',
|
|
473
|
-
kind: 'value',
|
|
474
|
-
detail: 'UK clinical module',
|
|
475
|
-
sortText: 'e-14',
|
|
476
|
-
},
|
|
477
|
-
];
|
|
478
|
-
exports.definitionStatusIdValues = [
|
|
479
|
-
{
|
|
480
|
-
label: '900000000000074008 |Primitive|',
|
|
481
|
-
kind: 'value',
|
|
482
|
-
detail: 'Not fully defined',
|
|
483
|
-
sortText: 'e-10',
|
|
484
|
-
},
|
|
485
|
-
{
|
|
486
|
-
label: '900000000000073002 |Defined|',
|
|
487
|
-
kind: 'value',
|
|
488
|
-
detail: 'Fully defined concept',
|
|
489
|
-
sortText: 'e-11',
|
|
490
|
-
},
|
|
491
|
-
];
|
|
492
|
-
exports.languageCodeValues = [
|
|
493
|
-
{ label: 'en', kind: 'value', detail: 'English', sortText: 'e-01' },
|
|
494
|
-
{ label: 'es', kind: 'value', detail: 'Spanish', sortText: 'e-02' },
|
|
495
|
-
{ label: 'fr', kind: 'value', detail: 'French', sortText: 'e-03' },
|
|
496
|
-
{ label: 'de', kind: 'value', detail: 'German', sortText: 'e-04' },
|
|
497
|
-
{ label: 'nl', kind: 'value', detail: 'Dutch', sortText: 'e-05' },
|
|
498
|
-
{ label: 'sv', kind: 'value', detail: 'Swedish', sortText: 'e-06' },
|
|
499
|
-
{ label: 'da', kind: 'value', detail: 'Danish', sortText: 'e-07' },
|
|
500
|
-
{ label: 'no', kind: 'value', detail: 'Norwegian', sortText: 'e-08' },
|
|
501
|
-
{ label: 'zh', kind: 'value', detail: 'Chinese', sortText: 'e-09' },
|
|
502
|
-
{ label: 'ja', kind: 'value', detail: 'Japanese', sortText: 'e-10' },
|
|
503
|
-
{ label: 'ko', kind: 'value', detail: 'Korean', sortText: 'e-11' },
|
|
504
|
-
{ label: 'pt', kind: 'value', detail: 'Portuguese', sortText: 'e-12' },
|
|
505
|
-
];
|
|
506
|
-
exports.effectiveTimeHint = {
|
|
507
|
-
label: '"YYYYMMDD"',
|
|
508
|
-
kind: 'value',
|
|
509
|
-
detail: 'Effective time format',
|
|
510
|
-
documentation: 'Enter date in YYYYMMDD format, e.g. "20240101"',
|
|
511
|
-
sortText: 'e-10',
|
|
512
|
-
};
|
|
513
|
-
// ── Concept search item ──────────────────────────────────────────────────
|
|
514
|
-
exports.conceptSearch = {
|
|
515
|
-
label: '🔍 Search for concept...',
|
|
516
|
-
kind: 'function',
|
|
517
|
-
detail: 'Search SNOMED CT concepts via FHIR',
|
|
518
|
-
documentation: 'Open concept search dialog to find and insert SNOMED CT concepts',
|
|
519
|
-
insertText: '',
|
|
520
|
-
command: {
|
|
521
|
-
command: 'ecl.searchConcept',
|
|
522
|
-
title: 'Search Concept',
|
|
523
|
-
},
|
|
524
|
-
sortText: 'f-01',
|
|
525
|
-
};
|
|
526
|
-
//# sourceMappingURL=context-items.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context-items.js","sourceRoot":"","sources":["../../src/completion/context-items.ts"],"names":[],"mappings":";AAAA,sFAAsF;AACtF,0DAA0D;;;AAU1D,4EAA4E;AAE/D,QAAA,YAAY,GAAuB;IAC9C,KAAK,EAAE,GAAG;IACV,IAAI,EAAE,UAAoC;IAC1C,MAAM,EAAE,eAAe;IACvB,aAAa,EAAE,sFAAsF;IACrG,QAAQ,EAAE,MAAM;CACjB,CAAC;AAEW,QAAA,kBAAkB,GAAuB;IACpD,KAAK,EAAE,IAAI;IACX,IAAI,EA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KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,OAAiC,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE;IAC7F,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,OAAiC,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE;IAC9F,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,OAAiC,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE;IAC5F,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,OAAiC,EAAE,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,EAAE;CACjG,CAAC;AAEW,QAAA,iBAAiB,GAAuB;IACnD,KAAK,EAAE,YAAY;IACnB,IAAI,EAAE,OAAiC;IACvC,MAAM,EAAE,uBAAuB;IAC/B,aAAa,EAAE,gDAAgD;IAC/D,QAAQ,EAAE,MAAM;CACjB,CAAC;AAEF,4EAA4E;AAE/D,QAAA,aAAa,GAAuB;IAC/C,KAAK,EAAE,0BAA0B;IACjC,IAAI,EAAE,UAAoC;IAC1C,MAAM,EAAE,oCAAoC;IAC5C,aAAa,EAAE,kEAAkE;IACjF,UAAU,EAAE,EAAE;IACd,OAAO,EAAE;QACP,OAAO,EAAE,mBAAmB;QAC5B,KAAK,EAAE,gBAAgB;KACxB;IACD,QAAQ,EAAE,MAAM;CACjB,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { CoreCompletionItem } from '../types';
|
|
2
|
-
import type { ITerminologyService } from '../terminology/types';
|
|
3
|
-
/** ECL constraints for filter keywords that support FHIR-powered completions. */
|
|
4
|
-
export declare const FILTER_ECL_CONSTRAINTS: Record<string, string>;
|
|
5
|
-
/**
|
|
6
|
-
* Get FHIR-powered completion items for a filter keyword.
|
|
7
|
-
*
|
|
8
|
-
* Evaluates the ECL constraint for the keyword against the terminology server,
|
|
9
|
-
* caches the result, and returns CompletionItems. Returns [] on FHIR errors.
|
|
10
|
-
*/
|
|
11
|
-
export declare function getFhirFilterCompletions(keyword: string, terminologyService: ITerminologyService): Promise<CoreCompletionItem[]>;
|
|
12
|
-
/** Clear all cached filter completions (e.g. on edition change). */
|
|
13
|
-
export declare function clearFilterCache(): void;
|
|
14
|
-
//# sourceMappingURL=filter-cache.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter-cache.d.ts","sourceRoot":"","sources":["../../src/completion/filter-cache.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,kBAAkB,EAA0B,MAAM,UAAU,CAAC;AAC3E,OAAO,KAAK,EAAE,mBAAmB,EAAqB,MAAM,sBAAsB,CAAC;AAEnF,iFAAiF;AACjF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAIzD,CAAC;AAeF;;;;;GAKG;AACH,wBAAsB,wBAAwB,CAC5C,OAAO,EAAE,MAAM,EACf,kBAAkB,EAAE,mBAAmB,GACtC,OAAO,CAAC,kBAAkB,EAAE,CAAC,CA4B/B;AAED,oEAAoE;AACpE,wBAAgB,gBAAgB,IAAI,IAAI,CAEvC"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2026 Commonwealth Scientific and Industrial Research Organisation (CSIRO)
|
|
3
|
-
// ABN 41 687 119 230. SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.FILTER_ECL_CONSTRAINTS = void 0;
|
|
6
|
-
exports.getFhirFilterCompletions = getFhirFilterCompletions;
|
|
7
|
-
exports.clearFilterCache = clearFilterCache;
|
|
8
|
-
/** ECL constraints for filter keywords that support FHIR-powered completions. */
|
|
9
|
-
exports.FILTER_ECL_CONSTRAINTS = {
|
|
10
|
-
typeid: '< 900000000000446008',
|
|
11
|
-
dialectid: '< 900000000000506000',
|
|
12
|
-
moduleid: '< 900000000000443000',
|
|
13
|
-
};
|
|
14
|
-
/** Maximum number of concepts to fetch per ECL expansion. */
|
|
15
|
-
const EXPANSION_LIMIT = 500;
|
|
16
|
-
/** Cache TTL in milliseconds (15 minutes). */
|
|
17
|
-
const CACHE_TTL_MS = 15 * 60 * 1000;
|
|
18
|
-
const cache = new Map();
|
|
19
|
-
/**
|
|
20
|
-
* Get FHIR-powered completion items for a filter keyword.
|
|
21
|
-
*
|
|
22
|
-
* Evaluates the ECL constraint for the keyword against the terminology server,
|
|
23
|
-
* caches the result, and returns CompletionItems. Returns [] on FHIR errors.
|
|
24
|
-
*/
|
|
25
|
-
async function getFhirFilterCompletions(keyword, terminologyService) {
|
|
26
|
-
const key = keyword.toLowerCase();
|
|
27
|
-
const ecl = exports.FILTER_ECL_CONSTRAINTS[key];
|
|
28
|
-
if (!ecl)
|
|
29
|
-
return [];
|
|
30
|
-
// Check cache
|
|
31
|
-
const cached = cache.get(key);
|
|
32
|
-
if (cached && Date.now() - cached.timestamp < CACHE_TTL_MS) {
|
|
33
|
-
return cached.items;
|
|
34
|
-
}
|
|
35
|
-
try {
|
|
36
|
-
const response = await terminologyService.evaluateEcl(ecl, EXPANSION_LIMIT);
|
|
37
|
-
const items = response.concepts.map((concept, index) => ({
|
|
38
|
-
label: `${concept.code} |${concept.display}|`,
|
|
39
|
-
kind: 'value',
|
|
40
|
-
detail: concept.display,
|
|
41
|
-
sortText: `e-${(20 + index).toString().padStart(3, '0')}`,
|
|
42
|
-
}));
|
|
43
|
-
cache.set(key, { items, timestamp: Date.now() });
|
|
44
|
-
return items;
|
|
45
|
-
}
|
|
46
|
-
catch {
|
|
47
|
-
// Graceful degradation — return empty on FHIR errors
|
|
48
|
-
return [];
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
/** Clear all cached filter completions (e.g. on edition change). */
|
|
52
|
-
function clearFilterCache() {
|
|
53
|
-
cache.clear();
|
|
54
|
-
}
|
|
55
|
-
//# sourceMappingURL=fil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AO,GAAG;YAC7C,IAAI,EAAE,OAAiC;YACvC,MAAM,EAAE,OAAO,CAAC,OAAO;YACvB,QAAQ,EAAE,KAAK,CAAC,EAAE,GAAG,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE;SAC1D,CAAC,CACH,CAAC;QAEF,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QACjD,OAAO,KAAK,CAAC;IACf,CAAC;IAAC,MAAM,CAAC;QACP,qDAAqD;QACrD,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC;AAED,oEAAoE;AACpE,SAAgB,gBAAgB;IAC9B,KAAK,CAAC,KAAK,EAAE,CAAC;AAChB,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { CoreCompletionItem } from '../types';
|
|
2
|
-
import type { ITerminologyService } from '../terminology/types';
|
|
3
|
-
export { clearFilterCache } from './filter-cache';
|
|
4
|
-
/**
|
|
5
|
-
* Determines which completion items to return given cursor context.
|
|
6
|
-
*
|
|
7
|
-
* Pure function — no LSP dependencies — so it can be unit-tested.
|
|
8
|
-
*
|
|
9
|
-
* @param inExpression Whether the cursor is inside a recognised expression
|
|
10
|
-
* @param textBeforeCursor Full text from expression start to cursor (multi-line)
|
|
11
|
-
* @param currentLine Text of the current line only
|
|
12
|
-
* @param cursorColumn Column position of cursor within the current line
|
|
13
|
-
* @returns Array of CompletionItem to present
|
|
14
|
-
*/
|
|
15
|
-
export declare function getCompletionItems(inExpression: boolean, textBeforeCursor: string, _currentLine: string, _cursorColumn: number): CoreCompletionItem[];
|
|
16
|
-
/**
|
|
17
|
-
* Extracts a partial concept term from the text before the cursor.
|
|
18
|
-
*
|
|
19
|
-
* Returns the search query string if the user appears to be typing a term
|
|
20
|
-
* after a constraint operator, logical operator, colon, equals, or open paren.
|
|
21
|
-
* Returns null if no valid search query is detected.
|
|
22
|
-
*
|
|
23
|
-
* Guards:
|
|
24
|
-
* - Minimum 3 characters
|
|
25
|
-
* - Not purely numeric (concept IDs are not term searches)
|
|
26
|
-
* - Not an ECL operator keyword
|
|
27
|
-
*/
|
|
28
|
-
export interface ConceptSearchQuery {
|
|
29
|
-
query: string;
|
|
30
|
-
startOffset: number;
|
|
31
|
-
}
|
|
32
|
-
export declare function extractConceptSearchQuery(textBeforeCursor: string): ConceptSearchQuery | null;
|
|
33
|
-
/**
|
|
34
|
-
* Async wrapper around getCompletionItems that also searches for concepts
|
|
35
|
-
* via the terminology service when the user appears to be typing a term.
|
|
36
|
-
*/
|
|
37
|
-
export declare function getCompletionItemsWithSearch(inExpression: boolean, textBeforeCursor: string, currentLine: string, cursorColumn: number, lineNumber: number, terminologyService: ITerminologyService | null): Promise<CoreCompletionItem[]>;
|
|
38
|
-
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/completion/provider.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAA0B,MAAM,UAAU,CAAC;AAK3E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AA0DlD;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAChC,YAAY,EAAE,OAAO,EACrB,gBAAgB,EAAE,MAAM,EACxB,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,MAAM,GACpB,kBAAkB,EAAE,CAuEtB;AAOD;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,yBAAyB,CAAC,gBAAgB,EAAE,MAAM,GAAG,kBAAkB,GAAG,IAAI,CAgC7F;AAID;;;GAGG;AACH,wBAAsB,4BAA4B,CAChD,YAAY,EAAE,OAAO,EACrB,gBAAgB,EAAE,MAAM,EACxB,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,EAClB,kBAAkB,EAAE,mBAAmB,GAAG,IAAI,GAC7C,OAAO,CAAC,kBAAkB,EAAE,CAAC,CA0E/B"}
|