@fhir-dsl/fhirpath 0.6.0 → 0.6.1
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.d.cts +13 -1
- package/dist/index.d.ts +13 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -16,6 +16,14 @@ interface FhirTypeMap {
|
|
|
16
16
|
Period: Period;
|
|
17
17
|
Range: Range;
|
|
18
18
|
Ratio: Ratio;
|
|
19
|
+
Resource: Resource;
|
|
20
|
+
Patient: Resource;
|
|
21
|
+
Observation: Resource;
|
|
22
|
+
Bundle: Resource;
|
|
23
|
+
Condition: Resource;
|
|
24
|
+
Encounter: Resource;
|
|
25
|
+
Organization: Resource;
|
|
26
|
+
Practitioner: Resource;
|
|
19
27
|
string: string;
|
|
20
28
|
String: string;
|
|
21
29
|
boolean: boolean;
|
|
@@ -221,6 +229,10 @@ interface FhirPathConversionOps {
|
|
|
221
229
|
/** Can convert to Quantity? */
|
|
222
230
|
convertsToQuantity(): FhirPathExpr<boolean>;
|
|
223
231
|
}
|
|
232
|
+
interface FhirPathBooleanOps {
|
|
233
|
+
/** Boolean NOT */
|
|
234
|
+
not(): FhirPathExpr<boolean>;
|
|
235
|
+
}
|
|
224
236
|
interface FhirPathUtilityOps<T> {
|
|
225
237
|
/** Debug trace (returns input unchanged) */
|
|
226
238
|
trace(name: string): FhirPathExpr<T>;
|
|
@@ -238,7 +250,7 @@ interface FhirPathUtilityOps<T> {
|
|
|
238
250
|
today(): FhirPathExpr<string>;
|
|
239
251
|
}
|
|
240
252
|
/** Composed FHIRPath operations interface */
|
|
241
|
-
interface FhirPathOps<T> extends FhirPathCoreOps<T>, FhirPathExistenceOps<T>, FhirPathSubsetOps<T>, FhirPathProjectionOps<T>, FhirPathCombiningOps<T>, FhirPathStringOps, FhirPathMathOps, FhirPathConversionOps, FhirPathUtilityOps<T> {
|
|
253
|
+
interface FhirPathOps<T> extends FhirPathCoreOps<T>, FhirPathExistenceOps<T>, FhirPathSubsetOps<T>, FhirPathProjectionOps<T>, FhirPathCombiningOps<T>, FhirPathStringOps, FhirPathMathOps, FhirPathConversionOps, FhirPathBooleanOps, FhirPathUtilityOps<T> {
|
|
242
254
|
}
|
|
243
255
|
/**
|
|
244
256
|
* A type-safe FHIRPath expression node.
|
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,14 @@ interface FhirTypeMap {
|
|
|
16
16
|
Period: Period;
|
|
17
17
|
Range: Range;
|
|
18
18
|
Ratio: Ratio;
|
|
19
|
+
Resource: Resource;
|
|
20
|
+
Patient: Resource;
|
|
21
|
+
Observation: Resource;
|
|
22
|
+
Bundle: Resource;
|
|
23
|
+
Condition: Resource;
|
|
24
|
+
Encounter: Resource;
|
|
25
|
+
Organization: Resource;
|
|
26
|
+
Practitioner: Resource;
|
|
19
27
|
string: string;
|
|
20
28
|
String: string;
|
|
21
29
|
boolean: boolean;
|
|
@@ -221,6 +229,10 @@ interface FhirPathConversionOps {
|
|
|
221
229
|
/** Can convert to Quantity? */
|
|
222
230
|
convertsToQuantity(): FhirPathExpr<boolean>;
|
|
223
231
|
}
|
|
232
|
+
interface FhirPathBooleanOps {
|
|
233
|
+
/** Boolean NOT */
|
|
234
|
+
not(): FhirPathExpr<boolean>;
|
|
235
|
+
}
|
|
224
236
|
interface FhirPathUtilityOps<T> {
|
|
225
237
|
/** Debug trace (returns input unchanged) */
|
|
226
238
|
trace(name: string): FhirPathExpr<T>;
|
|
@@ -238,7 +250,7 @@ interface FhirPathUtilityOps<T> {
|
|
|
238
250
|
today(): FhirPathExpr<string>;
|
|
239
251
|
}
|
|
240
252
|
/** Composed FHIRPath operations interface */
|
|
241
|
-
interface FhirPathOps<T> extends FhirPathCoreOps<T>, FhirPathExistenceOps<T>, FhirPathSubsetOps<T>, FhirPathProjectionOps<T>, FhirPathCombiningOps<T>, FhirPathStringOps, FhirPathMathOps, FhirPathConversionOps, FhirPathUtilityOps<T> {
|
|
253
|
+
interface FhirPathOps<T> extends FhirPathCoreOps<T>, FhirPathExistenceOps<T>, FhirPathSubsetOps<T>, FhirPathProjectionOps<T>, FhirPathCombiningOps<T>, FhirPathStringOps, FhirPathMathOps, FhirPathConversionOps, FhirPathBooleanOps, FhirPathUtilityOps<T> {
|
|
242
254
|
}
|
|
243
255
|
/**
|
|
244
256
|
* A type-safe FHIRPath expression node.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fhir-dsl/fhirpath",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Type-safe FHIRPath expression builder with autocomplete",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fhir-dsl/types": "0.6.
|
|
22
|
+
"@fhir-dsl/types": "0.6.1"
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
25
|
"dist"
|