@d4l/collect-lib 1.51.0 → 1.52.0

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.
@@ -0,0 +1,25 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+
21
+
22
+
23
+
24
+ exports.__spreadValues = __spreadValues; exports.__spreadProps = __spreadProps;
25
+ //# sourceMappingURL=chunk-DDAAVRWG.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/collect-lib/collect-lib/dist/chunk-DDAAVRWG.js"],"names":[],"mappings":"AAAA,6EAAI,UAAU,EAAE,MAAM,CAAC,cAAc;AACrC,IAAI,WAAW,EAAE,MAAM,CAAC,gBAAgB;AACxC,IAAI,kBAAkB,EAAE,MAAM,CAAC,yBAAyB;AACxD,IAAI,oBAAoB,EAAE,MAAM,CAAC,qBAAqB;AACtD,IAAI,aAAa,EAAE,MAAM,CAAC,SAAS,CAAC,cAAc;AAClD,IAAI,aAAa,EAAE,MAAM,CAAC,SAAS,CAAC,oBAAoB;AACxD,IAAI,gBAAgB,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,IAAI,GAAG,IAAI,EAAE,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC,GAAG,EAAE,EAAE,KAAK;AAC/J,IAAI,eAAe,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG;AAC/B,EAAE,IAAI,CAAC,IAAI,KAAK,GAAG,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;AAChC,IAAI,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC;AAClC,MAAM,eAAe,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;AACvC,EAAE,GAAG,CAAC,mBAAmB;AACzB,IAAI,IAAI,CAAC,IAAI,KAAK,GAAG,mBAAmB,CAAC,CAAC,CAAC,EAAE;AAC7C,MAAM,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC;AACpC,QAAQ,eAAe,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;AACzC,IAAI;AACJ,EAAE,OAAO,CAAC;AACV,CAAC;AACD,IAAI,cAAc,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,UAAU,CAAC,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;AACjE;AACA;AACE;AACA;AACF,+EAAC","file":"/home/runner/work/collect-lib/collect-lib/dist/chunk-DDAAVRWG.js"}
@@ -0,0 +1,25 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+
21
+ export {
22
+ __spreadValues,
23
+ __spreadProps
24
+ };
25
+ //# sourceMappingURL=chunk-FJBZBVPE.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Cross-questionnaire `enableWhen`: the supported FHIRPath subset, an engine-free subset validator,
3
+ * and a shared conformance fixture.
4
+ *
5
+ * A cross-questionnaire or derived condition is expressed as an SDC `enableWhenExpression`
6
+ * (text/fhirpath) over named variables (see `questionnaire-item-variable` in constants.ts).
7
+ * To keep the feature testable and the authoring UI able to compile to it, phoenix only
8
+ * evaluates and next-research-studio only emits the closed subset declared here. Studio never
9
+ * writes FHIRPath by hand: it compiles structured conditions via `enable-when-conditions.ts`, whose
10
+ * templates are the only producer of expressions.
11
+ *
12
+ * This module is intentionally engine-free: it defines the subset and the fixture as data.
13
+ * The evaluator lives in `enable-when-eval.ts` (exposed via the `./fhirpath`
14
+ * subpath) and must satisfy `ENABLE_WHEN_CONFORMANCE_CASES`; `findSubsetViolations` must accept
15
+ * every in-subset expression and reject every `OUT_OF_SUBSET_EXPRESSIONS` entry. Keeping both
16
+ * repos pinned to this one fixture is the guard against subset drift.
17
+ */
18
+ /**
19
+ * Boolean, comparison and membership operators, plus collection union, allowed in an enableWhen
20
+ * expression. `contains` is the infix membership operator (`%coll contains 'x'`), not the string
21
+ * function.
22
+ */
23
+ declare const SUPPORTED_FHIRPATH_OPERATORS: readonly ["and", "or", "contains", "=", "!=", ">", "<", ">=", "<=", "|"];
24
+ /**
25
+ * Functions allowed in an enableWhen expression. `today`/`now` read the ambient clock (device time in
26
+ * production, pinned via fake timers in tests). Variable values always arrive as strings, so a
27
+ * value must be converted before it can be compared to a number (`toInteger`/`toDecimal`) or used
28
+ * in date arithmetic (`toDate`); comparing a raw string variable to a number is an evaluation
29
+ * error, not a false.
30
+ */
31
+ declare const SUPPORTED_FHIRPATH_FUNCTIONS: readonly ["exists", "empty", "not", "first", "today", "now", "toDate", "toInteger", "toDecimal"];
32
+ /** Calendar units allowed in date arithmetic (`%d.first().toDate() + 18 years`). */
33
+ declare const SUPPORTED_FHIRPATH_DATE_UNITS: readonly ["years", "months", "weeks", "days"];
34
+ /**
35
+ * The variable environment an enableWhen expression is evaluated against. Each variable resolves to a
36
+ * collection of scalar strings: codes, free text, numbers as decimal strings, or dates as
37
+ * `YYYY-MM-DD` / `YYYY` (a dateTime string does not convert with `toDate()` and yields an empty
38
+ * collection). An empty array means the variable is unbound/absent (an empty FHIRPath
39
+ * collection). Every variable an expression references must be present as a key: fhirpath.js
40
+ * throws on an undefined environment variable.
41
+ */
42
+ type FhirPathVariables = Record<string, string[]>;
43
+ /**
44
+ * A single conformance case: an expression, the environment and (fixed) clock it is evaluated
45
+ * against, and the expected result (shown or hidden). Shared verbatim between studio and phoenix so both sides
46
+ * agree on the supported subset and its semantics. The clock is pinned for determinism.
47
+ */
48
+ type EnableWhenConformanceCase = {
49
+ description: string;
50
+ expression: string;
51
+ variables: FhirPathVariables;
52
+ /** Fixed value for `today()`/`now()`, ISO date (YYYY-MM-DD). */
53
+ now: string;
54
+ expected: boolean;
55
+ };
56
+ /** Extract the `%name` variables referenced by an expression (used by the fixture self-check). */
57
+ declare const referencedVariables: (expression: string) => string[];
58
+ /**
59
+ * Engine-free check that an expression stays inside the supported subset. Returns one human-readable
60
+ * violation per offending token (empty array = in subset). It is a lexical check, not a parser: it
61
+ * rejects unknown functions, unknown words (member access like `.code`, `$this`, `in`, `iif`),
62
+ * and characters the subset never uses. Well-formedness is left to the evaluator.
63
+ */
64
+ declare const findSubsetViolations: (expression: string) => string[];
65
+ /**
66
+ * Canonical cases covering the supported subset. Every expression here is in-subset, and every
67
+ * template in `enable-when-conditions.ts` has at least one case here in its compiled form.
68
+ */
69
+ declare const ENABLE_WHEN_CONFORMANCE_CASES: EnableWhenConformanceCase[];
70
+ /**
71
+ * Expressions outside the supported subset. Studio's validator must reject these; they are here so
72
+ * that rejection is tested against the same list phoenix refuses to evaluate. Not exhaustive.
73
+ */
74
+ declare const OUT_OF_SUBSET_EXPRESSIONS: string[];
75
+
76
+ export { ENABLE_WHEN_CONFORMANCE_CASES as E, type FhirPathVariables as F, OUT_OF_SUBSET_EXPRESSIONS as O, SUPPORTED_FHIRPATH_DATE_UNITS as S, type EnableWhenConformanceCase as a, SUPPORTED_FHIRPATH_FUNCTIONS as b, SUPPORTED_FHIRPATH_OPERATORS as c, findSubsetViolations as f, referencedVariables as r };
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Cross-questionnaire `enableWhen`: the supported FHIRPath subset, an engine-free subset validator,
3
+ * and a shared conformance fixture.
4
+ *
5
+ * A cross-questionnaire or derived condition is expressed as an SDC `enableWhenExpression`
6
+ * (text/fhirpath) over named variables (see `questionnaire-item-variable` in constants.ts).
7
+ * To keep the feature testable and the authoring UI able to compile to it, phoenix only
8
+ * evaluates and next-research-studio only emits the closed subset declared here. Studio never
9
+ * writes FHIRPath by hand: it compiles structured conditions via `enable-when-conditions.ts`, whose
10
+ * templates are the only producer of expressions.
11
+ *
12
+ * This module is intentionally engine-free: it defines the subset and the fixture as data.
13
+ * The evaluator lives in `enable-when-eval.ts` (exposed via the `./fhirpath`
14
+ * subpath) and must satisfy `ENABLE_WHEN_CONFORMANCE_CASES`; `findSubsetViolations` must accept
15
+ * every in-subset expression and reject every `OUT_OF_SUBSET_EXPRESSIONS` entry. Keeping both
16
+ * repos pinned to this one fixture is the guard against subset drift.
17
+ */
18
+ /**
19
+ * Boolean, comparison and membership operators, plus collection union, allowed in an enableWhen
20
+ * expression. `contains` is the infix membership operator (`%coll contains 'x'`), not the string
21
+ * function.
22
+ */
23
+ declare const SUPPORTED_FHIRPATH_OPERATORS: readonly ["and", "or", "contains", "=", "!=", ">", "<", ">=", "<=", "|"];
24
+ /**
25
+ * Functions allowed in an enableWhen expression. `today`/`now` read the ambient clock (device time in
26
+ * production, pinned via fake timers in tests). Variable values always arrive as strings, so a
27
+ * value must be converted before it can be compared to a number (`toInteger`/`toDecimal`) or used
28
+ * in date arithmetic (`toDate`); comparing a raw string variable to a number is an evaluation
29
+ * error, not a false.
30
+ */
31
+ declare const SUPPORTED_FHIRPATH_FUNCTIONS: readonly ["exists", "empty", "not", "first", "today", "now", "toDate", "toInteger", "toDecimal"];
32
+ /** Calendar units allowed in date arithmetic (`%d.first().toDate() + 18 years`). */
33
+ declare const SUPPORTED_FHIRPATH_DATE_UNITS: readonly ["years", "months", "weeks", "days"];
34
+ /**
35
+ * The variable environment an enableWhen expression is evaluated against. Each variable resolves to a
36
+ * collection of scalar strings: codes, free text, numbers as decimal strings, or dates as
37
+ * `YYYY-MM-DD` / `YYYY` (a dateTime string does not convert with `toDate()` and yields an empty
38
+ * collection). An empty array means the variable is unbound/absent (an empty FHIRPath
39
+ * collection). Every variable an expression references must be present as a key: fhirpath.js
40
+ * throws on an undefined environment variable.
41
+ */
42
+ type FhirPathVariables = Record<string, string[]>;
43
+ /**
44
+ * A single conformance case: an expression, the environment and (fixed) clock it is evaluated
45
+ * against, and the expected result (shown or hidden). Shared verbatim between studio and phoenix so both sides
46
+ * agree on the supported subset and its semantics. The clock is pinned for determinism.
47
+ */
48
+ type EnableWhenConformanceCase = {
49
+ description: string;
50
+ expression: string;
51
+ variables: FhirPathVariables;
52
+ /** Fixed value for `today()`/`now()`, ISO date (YYYY-MM-DD). */
53
+ now: string;
54
+ expected: boolean;
55
+ };
56
+ /** Extract the `%name` variables referenced by an expression (used by the fixture self-check). */
57
+ declare const referencedVariables: (expression: string) => string[];
58
+ /**
59
+ * Engine-free check that an expression stays inside the supported subset. Returns one human-readable
60
+ * violation per offending token (empty array = in subset). It is a lexical check, not a parser: it
61
+ * rejects unknown functions, unknown words (member access like `.code`, `$this`, `in`, `iif`),
62
+ * and characters the subset never uses. Well-formedness is left to the evaluator.
63
+ */
64
+ declare const findSubsetViolations: (expression: string) => string[];
65
+ /**
66
+ * Canonical cases covering the supported subset. Every expression here is in-subset, and every
67
+ * template in `enable-when-conditions.ts` has at least one case here in its compiled form.
68
+ */
69
+ declare const ENABLE_WHEN_CONFORMANCE_CASES: EnableWhenConformanceCase[];
70
+ /**
71
+ * Expressions outside the supported subset. Studio's validator must reject these; they are here so
72
+ * that rejection is tested against the same list phoenix refuses to evaluate. Not exhaustive.
73
+ */
74
+ declare const OUT_OF_SUBSET_EXPRESSIONS: string[];
75
+
76
+ export { ENABLE_WHEN_CONFORMANCE_CASES as E, type FhirPathVariables as F, OUT_OF_SUBSET_EXPRESSIONS as O, SUPPORTED_FHIRPATH_DATE_UNITS as S, type EnableWhenConformanceCase as a, SUPPORTED_FHIRPATH_FUNCTIONS as b, SUPPORTED_FHIRPATH_OPERATORS as c, findSubsetViolations as f, referencedVariables as r };
@@ -0,0 +1,24 @@
1
+ import { F as FhirPathVariables } from './enable-when-expression-L1gQM0rv.mjs';
2
+
3
+ /**
4
+ * Evaluate an `enableWhenExpression` against a variable environment, returning whether the
5
+ * item should be shown. An empty or non-true result is treated as `false` (hidden until known),
6
+ * matching native `enableWhen` semantics. An evaluation error (malformed expression, type
7
+ * mismatch such as a raw string compared to a number, unbound variable) is also `false`: the
8
+ * fail-hidden contract must not depend on every caller validating the expression first.
9
+ *
10
+ * Variables are passed as the fhirpath.js environment and referenced in the expression as `%name`.
11
+ *
12
+ * Time: `today()`/`now()` read the ambient clock (fhirpath.js caches it for the duration of one
13
+ * evaluation). Tests pin it with fake timers; production uses device time.
14
+ *
15
+ * Packaging: this module imports the fhirpath.js engine (~157 KB gzipped) and is deliberately
16
+ * published on its own subpath (`@d4l/collect-lib/fhirpath`, see tsup.config.ts) instead of the
17
+ * barrel. The barrel is imported on nearly every Research Studio page, while evaluation is only
18
+ * needed where an expression is actually run (phoenix, and Studio's synthetic-data generator); the
19
+ * package declares no `sideEffects: false` (it imports polyfills), so bundlers could not drop the
20
+ * engine from the barrel on their own. Do not re-export it from `fhir/index.ts`.
21
+ */
22
+ declare const evaluateEnableWhen: (expression: string, variables: FhirPathVariables) => boolean;
23
+
24
+ export { evaluateEnableWhen };
@@ -0,0 +1,24 @@
1
+ import { F as FhirPathVariables } from './enable-when-expression-L1gQM0rv.js';
2
+
3
+ /**
4
+ * Evaluate an `enableWhenExpression` against a variable environment, returning whether the
5
+ * item should be shown. An empty or non-true result is treated as `false` (hidden until known),
6
+ * matching native `enableWhen` semantics. An evaluation error (malformed expression, type
7
+ * mismatch such as a raw string compared to a number, unbound variable) is also `false`: the
8
+ * fail-hidden contract must not depend on every caller validating the expression first.
9
+ *
10
+ * Variables are passed as the fhirpath.js environment and referenced in the expression as `%name`.
11
+ *
12
+ * Time: `today()`/`now()` read the ambient clock (fhirpath.js caches it for the duration of one
13
+ * evaluation). Tests pin it with fake timers; production uses device time.
14
+ *
15
+ * Packaging: this module imports the fhirpath.js engine (~157 KB gzipped) and is deliberately
16
+ * published on its own subpath (`@d4l/collect-lib/fhirpath`, see tsup.config.ts) instead of the
17
+ * barrel. The barrel is imported on nearly every Research Studio page, while evaluation is only
18
+ * needed where an expression is actually run (phoenix, and Studio's synthetic-data generator); the
19
+ * package declares no `sideEffects: false` (it imports polyfills), so bundlers could not drop the
20
+ * engine from the barrel on their own. Do not re-export it from `fhir/index.ts`.
21
+ */
22
+ declare const evaluateEnableWhen: (expression: string, variables: FhirPathVariables) => boolean;
23
+
24
+ export { evaluateEnableWhen };
@@ -0,0 +1,16 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }require('./chunk-DDAAVRWG.js');
2
+
3
+ // src/fhir/enable-when-eval.ts
4
+ var _fhirpath = require('fhirpath'); var _fhirpath2 = _interopRequireDefault(_fhirpath);
5
+ var evaluateEnableWhen = (expression, variables) => {
6
+ try {
7
+ const result = _fhirpath2.default.evaluate({}, expression, variables);
8
+ return Array.isArray(result) && result[0] === true;
9
+ } catch (e) {
10
+ return false;
11
+ }
12
+ };
13
+
14
+
15
+ exports.evaluateEnableWhen = evaluateEnableWhen;
16
+ //# sourceMappingURL=fhirpath.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/collect-lib/collect-lib/dist/fhirpath.js","../src/fhir/enable-when-eval.ts"],"names":[],"mappings":"AAAA,wMAA4B;AAC5B;AACA;ACFA,wFAAqB;AAsBd,IAAM,mBAAA,EAAqB,CAAC,UAAA,EAAoB,SAAA,EAAA,GAA0C;AAC/F,EAAA,IAAI;AACF,IAAA,MAAM,OAAA,EAAS,kBAAA,CAAS,QAAA,CAAS,CAAC,CAAA,EAAG,UAAA,EAAY,SAAS,CAAA;AAC1D,IAAA,OAAO,KAAA,CAAM,OAAA,CAAQ,MAAM,EAAA,GAAK,MAAA,CAAO,CAAC,EAAA,IAAM,IAAA;AAAA,EAChD,EAAA,MAAA,CAAQ,CAAA,EAAA;AACN,IAAA,OAAO,KAAA;AAAA,EACT;AACF,CAAA;ADjBA;AACE;AACF,gDAAC","file":"/home/runner/work/collect-lib/collect-lib/dist/fhirpath.js","sourcesContent":[null,"import fhirpath from 'fhirpath';\nimport { FhirPathVariables } from './enable-when-expression';\n\n/**\n * Evaluate an `enableWhenExpression` against a variable environment, returning whether the\n * item should be shown. An empty or non-true result is treated as `false` (hidden until known),\n * matching native `enableWhen` semantics. An evaluation error (malformed expression, type\n * mismatch such as a raw string compared to a number, unbound variable) is also `false`: the\n * fail-hidden contract must not depend on every caller validating the expression first.\n *\n * Variables are passed as the fhirpath.js environment and referenced in the expression as `%name`.\n *\n * Time: `today()`/`now()` read the ambient clock (fhirpath.js caches it for the duration of one\n * evaluation). Tests pin it with fake timers; production uses device time.\n *\n * Packaging: this module imports the fhirpath.js engine (~157 KB gzipped) and is deliberately\n * published on its own subpath (`@d4l/collect-lib/fhirpath`, see tsup.config.ts) instead of the\n * barrel. The barrel is imported on nearly every Research Studio page, while evaluation is only\n * needed where an expression is actually run (phoenix, and Studio's synthetic-data generator); the\n * package declares no `sideEffects: false` (it imports polyfills), so bundlers could not drop the\n * engine from the barrel on their own. Do not re-export it from `fhir/index.ts`.\n */\nexport const evaluateEnableWhen = (expression: string, variables: FhirPathVariables): boolean => {\n try {\n const result = fhirpath.evaluate({}, expression, variables);\n return Array.isArray(result) && result[0] === true;\n } catch {\n return false;\n }\n};\n"]}
@@ -0,0 +1,16 @@
1
+ import "./chunk-FJBZBVPE.mjs";
2
+
3
+ // src/fhir/enable-when-eval.ts
4
+ import fhirpath from "fhirpath";
5
+ var evaluateEnableWhen = (expression, variables) => {
6
+ try {
7
+ const result = fhirpath.evaluate({}, expression, variables);
8
+ return Array.isArray(result) && result[0] === true;
9
+ } catch (e) {
10
+ return false;
11
+ }
12
+ };
13
+ export {
14
+ evaluateEnableWhen
15
+ };
16
+ //# sourceMappingURL=fhirpath.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/fhir/enable-when-eval.ts"],"sourcesContent":["import fhirpath from 'fhirpath';\nimport { FhirPathVariables } from './enable-when-expression';\n\n/**\n * Evaluate an `enableWhenExpression` against a variable environment, returning whether the\n * item should be shown. An empty or non-true result is treated as `false` (hidden until known),\n * matching native `enableWhen` semantics. An evaluation error (malformed expression, type\n * mismatch such as a raw string compared to a number, unbound variable) is also `false`: the\n * fail-hidden contract must not depend on every caller validating the expression first.\n *\n * Variables are passed as the fhirpath.js environment and referenced in the expression as `%name`.\n *\n * Time: `today()`/`now()` read the ambient clock (fhirpath.js caches it for the duration of one\n * evaluation). Tests pin it with fake timers; production uses device time.\n *\n * Packaging: this module imports the fhirpath.js engine (~157 KB gzipped) and is deliberately\n * published on its own subpath (`@d4l/collect-lib/fhirpath`, see tsup.config.ts) instead of the\n * barrel. The barrel is imported on nearly every Research Studio page, while evaluation is only\n * needed where an expression is actually run (phoenix, and Studio's synthetic-data generator); the\n * package declares no `sideEffects: false` (it imports polyfills), so bundlers could not drop the\n * engine from the barrel on their own. Do not re-export it from `fhir/index.ts`.\n */\nexport const evaluateEnableWhen = (expression: string, variables: FhirPathVariables): boolean => {\n try {\n const result = fhirpath.evaluate({}, expression, variables);\n return Array.isArray(result) && result[0] === true;\n } catch {\n return false;\n }\n};\n"],"mappings":";;;AAAA,OAAO,cAAc;AAsBd,IAAM,qBAAqB,CAAC,YAAoB,cAA0C;AAC/F,MAAI;AACF,UAAM,SAAS,SAAS,SAAS,CAAC,GAAG,YAAY,SAAS;AAC1D,WAAO,MAAM,QAAQ,MAAM,KAAK,OAAO,CAAC,MAAM;AAAA,EAChD,SAAQ;AACN,WAAO;AAAA,EACT;AACF;","names":[]}
package/dist/index.d.mts CHANGED
@@ -1,4 +1,6 @@
1
1
  import { Buffer } from 'buffer/';
2
+ import { S as SUPPORTED_FHIRPATH_DATE_UNITS } from './enable-when-expression-L1gQM0rv.mjs';
3
+ export { E as ENABLE_WHEN_CONFORMANCE_CASES, a as EnableWhenConformanceCase, F as FhirPathVariables, O as OUT_OF_SUBSET_EXPRESSIONS, b as SUPPORTED_FHIRPATH_FUNCTIONS, c as SUPPORTED_FHIRPATH_OPERATORS, f as findSubsetViolations, r as referencedVariables } from './enable-when-expression-L1gQM0rv.mjs';
2
4
  import * as fhir_r5 from 'fhir/r5';
3
5
  import { DateTimeUnit, Duration } from 'luxon';
4
6
 
@@ -1012,6 +1014,13 @@ declare const QuestionnaireItemInputExtension = "http://fhir.data4life.care/Stru
1012
1014
  declare const TopicInputTopicUrl = "topic";
1013
1015
  declare const TopicInputScopeUrl = "scope";
1014
1016
  declare const TopicSystem = "http://fhir.data4life.care/topic";
1017
+ declare const QuestionnaireItemVariableExtension = "http://fhir.data4life.care/StructureDefinition/questionnaire-item-variable";
1018
+ declare const ItemVariableNameUrl = "name";
1019
+ declare const ItemVariableTopicUrl = "topic";
1020
+ declare const ItemVariableQuestionUrl = "question";
1021
+ declare const ItemVariableScopeUrl = "scope";
1022
+ declare const EnableWhenExpressionExtension = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression";
1023
+ declare const FhirPathLanguage = "text/fhirpath";
1015
1024
  declare const SignalIDSystem = "http://fhir.data4life.care/r5/NamingSystem/app-signal-ids";
1016
1025
  declare const AppIDNamingSystem = "http://fhir.data4life.care/r5/NamingSystem/app-db-ids";
1017
1026
  declare const SensorTypeSystem = "http://fhir.data4life.care/r5/NamingSystem/sensor-device-type";
@@ -1083,6 +1092,130 @@ type TopicScopeCode = (typeof TOPIC_SCOPE_CODES)[number];
1083
1092
  /** True if `code` is a recognized topic scope valueCode. */
1084
1093
  declare const isValidTopicScope: (code: string) => code is TopicScopeCode;
1085
1094
 
1095
+ /**
1096
+ * Structured enableWhen conditions and their compilation to (and from) an `enableWhenExpression`.
1097
+ *
1098
+ * Research Studio authors a dependency as a flat list of {@link EnableWhenCondition} conditions combined with one
1099
+ * {@link EnableWhenBehavior} (all / any), the same mental model as native `enableWhen` +
1100
+ * `enableBehavior`. `compileEnableWhen` turns those conditions into the two proto/FHIR artifacts (variable
1101
+ * bindings and one FHIRPath expression in the subset declared in `enable-when-expression.ts`);
1102
+ * `decompileEnableWhen` reads them back so the editor can reopen a saved dependency as conditions. The compiler is
1103
+ * the only producer of FHIRPath in the system, so its output shapes are the canonical forms the
1104
+ * decompiler and the conformance fixture are written against.
1105
+ *
1106
+ * Engine-free on purpose: studio imports this from the barrel; evaluation lives behind the
1107
+ * `./fhirpath` subpath.
1108
+ */
1109
+
1110
+ /** Calendar unit for elapsed-time predicates; the subset's date units. */
1111
+ type EnableWhenDateUnit = (typeof SUPPORTED_FHIRPATH_DATE_UNITS)[number];
1112
+ /**
1113
+ * How a source's values are typed, derived by studio from the producing question's input type
1114
+ * (coding: single/multi select, likert, country; integer: integer, ordinal scale; decimal: decimal,
1115
+ * numeric scale; date; year; string: everything else). It selects the allowed predicates and the
1116
+ * conversion the compiled expression applies.
1117
+ */
1118
+ type EnableWhenValueType = 'coding' | 'string' | 'integer' | 'decimal' | 'date' | 'year';
1119
+ /** Where a condition reads its value from: a question in the same questionnaire, or a topic. */
1120
+ type EnableWhenSource = {
1121
+ kind: 'question';
1122
+ linkId: string;
1123
+ } | {
1124
+ kind: 'topic';
1125
+ topic: string;
1126
+ scope: TopicScopeCode;
1127
+ };
1128
+ type EnableWhenComparisonOp = 'eq' | 'neq' | 'gt' | 'lt' | 'gteq' | 'lteq';
1129
+ type EnableWhenPredicate = {
1130
+ op: 'exists';
1131
+ } | {
1132
+ op: 'empty';
1133
+ }
1134
+ /** `value` is a code/text for coding/string sources, a number for integer/decimal, an ISO date (`YYYY-MM-DD`) or year (`YYYY`) for date/year. */
1135
+ | {
1136
+ op: EnableWhenComparisonOp;
1137
+ value: string | number;
1138
+ } | {
1139
+ op: 'oneOf';
1140
+ values: string[];
1141
+ }
1142
+ /**
1143
+ * Elapsed time since the date, measured against today. `elapsedAtLeast` is inclusive ("age >= 18"
1144
+ * is `{ amount: 18, unit: 'years' }`, shown on the 18th birthday); `elapsedLessThan` is exclusive
1145
+ * ("age <= 17" is `{ amount: 18, unit: 'years' }`; "within the last 30 days" is `{ amount: 31,
1146
+ * unit: 'days' }`). The two are exact complements, so one boundary day never belongs to both or
1147
+ * to neither. What the date *means* (a birth date, an enrollment) is a UI concern, not a model one.
1148
+ */
1149
+ | {
1150
+ op: 'elapsedAtLeast';
1151
+ amount: number;
1152
+ unit: EnableWhenDateUnit;
1153
+ } | {
1154
+ op: 'elapsedLessThan';
1155
+ amount: number;
1156
+ unit: EnableWhenDateUnit;
1157
+ }
1158
+ /** `min` inclusive, `max` exclusive: "age 18 to 65" is `{ min: 18, max: 66, unit: 'years' }`. */
1159
+ | {
1160
+ op: 'elapsedBetween';
1161
+ min: number;
1162
+ max: number;
1163
+ unit: EnableWhenDateUnit;
1164
+ };
1165
+ type EnableWhenPredicateOp = EnableWhenPredicate['op'];
1166
+ type EnableWhenCondition = {
1167
+ source: EnableWhenSource;
1168
+ valueType: EnableWhenValueType;
1169
+ predicate: EnableWhenPredicate;
1170
+ };
1171
+ /** Mirrors `enableBehavior`: `all` = every condition must hold (and), `any` = at least one (or). */
1172
+ type EnableWhenBehavior = 'all' | 'any';
1173
+ /** Predicates that compare against the clock; they can never be expressed as native `enableWhen`. */
1174
+ declare const TEMPORAL_PREDICATES: readonly ["elapsedAtLeast", "elapsedLessThan", "elapsedBetween"];
1175
+ /** Units an elapsed-time predicate may use per source type: a year-only date has no finer resolution. */
1176
+ declare const ELAPSED_UNITS_BY_VALUE_TYPE: Partial<Record<EnableWhenValueType, readonly EnableWhenDateUnit[]>>;
1177
+ /** Which predicates a source of a given value type supports; studio derives its operator options from this. */
1178
+ declare const ENABLE_WHEN_PREDICATES_BY_VALUE_TYPE: Record<EnableWhenValueType, readonly EnableWhenPredicateOp[]>;
1179
+ /**
1180
+ * True if the conditions cannot be carried as native `enableWhen` and must be compiled to an expression:
1181
+ * any topic source, any clock-relative predicate, or a predicate native `enableWhen` has no
1182
+ * operator for (`empty`, `oneOf`).
1183
+ */
1184
+ declare const requiresExpression: (conditions: EnableWhenCondition[]) => boolean;
1185
+ /** One variable binding; mirrors proto `ItemVariable` / the `questionnaire-item-variable` extension. `topic` is the bare topic id. */
1186
+ type EnableWhenItemVariable = {
1187
+ name: string;
1188
+ question?: string;
1189
+ topic?: string;
1190
+ scope?: TopicScopeCode;
1191
+ };
1192
+ type CompiledEnableWhen = {
1193
+ itemVariables: EnableWhenItemVariable[];
1194
+ expression: string;
1195
+ };
1196
+ declare class EnableWhenCompileError extends Error {
1197
+ readonly conditionIndex?: number | undefined;
1198
+ constructor(message: string, conditionIndex?: number | undefined);
1199
+ }
1200
+ /**
1201
+ * Compile conditions + behavior into variable bindings and one FHIRPath expression. Sources used by
1202
+ * several conditions share one variable. Throws {@link EnableWhenCompileError} on an invalid condition; studio only
1203
+ * compiles conditions that passed its own validation, so a throw is a programming error there.
1204
+ */
1205
+ declare const compileEnableWhen: (conditions: EnableWhenCondition[], behavior: EnableWhenBehavior) => CompiledEnableWhen;
1206
+ type DecompiledEnableWhen = {
1207
+ conditions: EnableWhenCondition[];
1208
+ behavior: EnableWhenBehavior;
1209
+ };
1210
+ /**
1211
+ * Read compiled artifacts back into conditions. Returns null when the expression is not in the compiler's
1212
+ * canonical shapes (hand-written or imported FHIRPath), which the editor shows as a read-only
1213
+ * custom expression. The value type of a condition is inferred from the expression where the shape
1214
+ * reveals it; pass `resolveValueType` (looked up from the actual source) to make it authoritative,
1215
+ * since e.g. an age condition cannot tell a `date` from a `year` source and `exists` conditions carry no type.
1216
+ */
1217
+ declare const decompileEnableWhen: (itemVariables: EnableWhenItemVariable[], expression: string, resolveValueType?: (source: EnableWhenSource) => EnableWhenValueType | undefined) => DecompiledEnableWhen | null;
1218
+
1086
1219
  /**
1087
1220
  * Replaces {{program-name}} and {{fhir-base-host}} templates in the given string
1088
1221
  */
@@ -2074,4 +2207,4 @@ declare const API_TARGET_MAP: {
2074
2207
  };
2075
2208
  };
2076
2209
 
2077
- export { AES_BLOCKSIZE, ANDROID_SENSORS_CONSTANT_NAMES, type API, type APIConfig, type APIDeviceConfig, API_TARGET_MAP, APPLE_HEALTH_ANNOTATION_ACTIVE_ENERGY, APPLE_HEALTH_ANNOTATION_ACTIVITY_SUMMARY, APPLE_HEALTH_ANNOTATION_CONTRACEPTIVE, APPLE_HEALTH_ANNOTATION_HEART_RATE, APPLE_HEALTH_ANNOTATION_HRV, APPLE_HEALTH_ANNOTATION_ITEM_ACTIVE_ENERGY, APPLE_HEALTH_ANNOTATION_ITEM_ACTIVITY_SUMMARY, APPLE_HEALTH_ANNOTATION_ITEM_CONTRACEPTIVE_TYPE, APPLE_HEALTH_ANNOTATION_ITEM_HEART_RATE, APPLE_HEALTH_ANNOTATION_ITEM_HRV, APPLE_HEALTH_ANNOTATION_ITEM_LACTATION_STATE, APPLE_HEALTH_ANNOTATION_ITEM_MENSTRUAL_CYCLE, APPLE_HEALTH_ANNOTATION_ITEM_PREGNANCY_STATE, APPLE_HEALTH_ANNOTATION_ITEM_RESPIRATORY_RATE, APPLE_HEALTH_ANNOTATION_ITEM_RESTING_HEART_RATE, APPLE_HEALTH_ANNOTATION_ITEM_SKIN_TEMPERATURE, APPLE_HEALTH_ANNOTATION_ITEM_SLEEP_DURATION, APPLE_HEALTH_ANNOTATION_ITEM_SLEEP_STATE, APPLE_HEALTH_ANNOTATION_ITEM_SPO2, APPLE_HEALTH_ANNOTATION_ITEM_STAND_HOUR_STATE, APPLE_HEALTH_ANNOTATION_ITEM_STEP_COUNT, APPLE_HEALTH_ANNOTATION_ITEM_WALKING_RUNNING_DISTANCE, APPLE_HEALTH_ANNOTATION_ITEM_WORKOUT, APPLE_HEALTH_ANNOTATION_LACTATION, APPLE_HEALTH_ANNOTATION_MENSTRUAL_CYCLE, APPLE_HEALTH_ANNOTATION_PREGNANCY, APPLE_HEALTH_ANNOTATION_RESPIRATORY_RATE, APPLE_HEALTH_ANNOTATION_RESTING_HEART_RATE, APPLE_HEALTH_ANNOTATION_SKIN_TEMPERATURE, APPLE_HEALTH_ANNOTATION_SLEEP_ANALYSIS, APPLE_HEALTH_ANNOTATION_SPO2, APPLE_HEALTH_ANNOTATION_STAND_HOURS, APPLE_HEALTH_ANNOTATION_STEP_COUNT, APPLE_HEALTH_ANNOTATION_WALKING_RUNNING_DISTANCE, APPLE_HEALTH_ANNOTATION_WORKOUT, APPLE_HEALTH_DATA_SOURCES, APPLE_HEALTH_SIGNAL_TYPE_ANNOTATIONS, APPLE_HEALTH_SLEEP_STATE_MAP, ASMSECGMeasurementAnnotation, ASMSSpO2MeasurementAnnotation, type AndCondition, type Answer, AnswerCodeGuard, AnswerDateGuard, type AnswerItem, type Answers, AppIDNamingSystem, type AppleHealthDataSource, type AppleHealthSleepStates, type ArrayAnswer, type ArrayAnswerItem, type BLEDeviceConfig, BLE_ASMS_ANNOTATION_ITEM_ECG, BLE_ASMS_ANNOTATION_ITEM_SPO2, BLE_CPMS_ANNOTATION_ITEM_ACTIVITY_TYPE, BLE_CPMS_ANNOTATION_ITEM_DAILY_CALORIES, BLE_CPMS_ANNOTATION_ITEM_DAILY_DISTANCE, BLE_CPMS_ANNOTATION_ITEM_DAILY_ELEVATION_GAIN, BLE_CPMS_ANNOTATION_ITEM_DAILY_FLOORS, BLE_CPMS_ANNOTATION_ITEM_DAILY_STEPS, BLE_PAMS_ANNOTATION_ITEM_ABSOLUTE_ELEVATION, BLE_PAMS_ANNOTATION_ITEM_AVERAGE_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_AVERAGE_SPEED, BLE_PAMS_ANNOTATION_ITEM_BYTE, BLE_PAMS_ANNOTATION_ITEM_CALORIES_TOTAL, BLE_PAMS_ANNOTATION_ITEM_DISTANCE_TOTAL, BLE_PAMS_ANNOTATION_ITEM_FLAGS_16, BLE_PAMS_ANNOTATION_ITEM_FLAGS_24, BLE_PAMS_ANNOTATION_ITEM_FLAGS_32, BLE_PAMS_ANNOTATION_ITEM_FLAGS_8, BLE_PAMS_ANNOTATION_ITEM_FLOORS_TOTAL, BLE_PAMS_ANNOTATION_ITEM_FOUR_BYTES, BLE_PAMS_ANNOTATION_ITEM_HEADER, BLE_PAMS_ANNOTATION_ITEM_HEART_RATE, BLE_PAMS_ANNOTATION_ITEM_MAXIMUM_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_MAXIMUM_SPEED, BLE_PAMS_ANNOTATION_ITEM_MINIMUM_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_MINIMUM_SPEED, BLE_PAMS_ANNOTATION_ITEM_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_NEGATIVE_ELEVATION_GAIN, BLE_PAMS_ANNOTATION_ITEM_POSITIVE_ELEVATION_GAIN, BLE_PAMS_ANNOTATION_ITEM_RUNNING_STEPS_TOTAL, BLE_PAMS_ANNOTATION_ITEM_SPEED, BLE_PAMS_ANNOTATION_ITEM_STEPS_TOTAL, BLE_PAMS_ANNOTATION_ITEM_THREE_BYTES, BLE_PAMS_ANNOTATION_ITEM_TWO_BYTES, BLE_PAMS_ANNOTATION_ITEM_VO2_MAX, BLE_PSMS_ANNOTATION_ITEM_ACCELERATION, BLE_PSMS_ANNOTATION_ITEM_HEART_RATE, BLE_PSMS_ANNOTATION_ITEM_IBI, BLE_PSMS_ANNOTATION_ITEM_PPG_GREEN, BLE_PSMS_ANNOTATION_ITEM_PPG_IR, BLE_PSMS_ANNOTATION_ITEM_PPG_RED, BLE_PSMS_ANNOTATION_ITEM_SKIN_TEMPERATURE, type BaseDeviceConfig, type BleDeviceMetaLabel, BoolGuard, CPMSHealthServicesActivityDetectionAnnotation, CPMSHealthServicesPassiveDataAnnotation, type CodeQuestionCondition, CollectorClient, type CollectorConnectParams, type CollectorSyncItem, type CollectorSyncResponse, CommunicationTypeSystem, type ComparisonOperator, type ConditionOperatorType, type ConditionQuestionType, type ConditionSorting, type ConditionType, Conjunction, type Consent, type ConsentCondition, ConsentGuard, ConsentNameSystem, type ConsentPath, type ConsentTimes, ConsentVersionSystem, type ContentBlock, type Converter, type CopyrightLabel, CountryValueSet, type CryptoModule, CustomExtensionContextValue, CustomExtensionDate, CustomExtensionStudyName, CustomQuestionSystem, type DEVICE_ANNOTATION, type DEVICE_ANNOTATION_DATA_FORMAT, type DEVICE_ANNOTATION_DATA_TYPE, type DEVICE_ANNOTATION_DATA_TYPE_APPLE, DEVICE_ANNOTATION_HEARTRATE, DEVICE_ANNOTATION_HRV_RMSSD, type DEVICE_ANNOTATION_ITEM, DEVICE_ANNOTATION_ITEM_ACCELERATION, DEVICE_ANNOTATION_ITEM_ANGULAR_SPEED, DEVICE_ANNOTATION_ITEM_BEACON_ID, DEVICE_ANNOTATION_ITEM_DATA_SOURCE, DEVICE_ANNOTATION_ITEM_DISTANCE, DEVICE_ANNOTATION_ITEM_EGVS, DEVICE_ANNOTATION_ITEM_HEARTRATE, DEVICE_ANNOTATION_ITEM_HRV_RMSSD, DEVICE_ANNOTATION_ITEM_MAGNETIC_FIELD, DEVICE_ANNOTATION_ITEM_REMOTE_DISTANCE, DEVICE_ANNOTATION_ITEM_RESTING_HEART_RATE, DEVICE_ANNOTATION_ITEM_RSSI, DEVICE_ANNOTATION_ITEM_SKIN_TEMPERATURE_DEVIATION, DEVICE_ANNOTATION_ITEM_UNIX_TIMESTAMP, DEVICE_ANNOTATION_SKIN_TEMPERATURE_DEVIATION, DEVICE_ANNOTATION_TIMESTAMP_NOTE, DEVICE_ANNOTATION_TIMESTAMP_SIZE, DEVICE_ANNOTATION_TIMESTAMP_UNIT, DEVICE_D4L_COMPANION_ANNOTATION_ITEM_DATA_TYPES_FLAG, DEVICE_D4L_COMPANION_ANNOTATION_ITEM_TIMESTAMP, DEVICE_DISPLAY_LABEL_CODING, type DEVICE_KEY, type DEVICE_KEY_API, type DEVICE_KEY_BLE, type DEVICE_KEY_INTERNAL, type DEVICE_KEY_SDK, DEVICE_KEY_TO_NAME, DEVICE_LABEL_CODING, type DEVICE_MOVELLA_PAYLOAD_MODES, DEVICE_OUTPUT_RATE_CODING, DEVICE_SENSOR_DELAY_CODING, type DEVICE_SIGNAL_TYPE, type DEVICE_SIGNAL_TYPE_APPLE, type DateBlurringFunction, type DateCondition, DateGuard, type DateQuestionCondition, DecimalGuard, type DeviceConfig, type DeviceName, Disjunction, type Display, type DisplayContent, type DisplayContentPath, type DisplayPath, type DisplayType, type DonationRecord, DonationSDK, type DonorIdentity, ERROR_CODES, ExistsGuard, type ExtendedProgramDevicesDataType, FITBIT_ANNOTATION_ITEM_BREATHING_RATE, FITBIT_ANNOTATION_ITEM_CALORIES, FITBIT_ANNOTATION_ITEM_HEART_RATE, FITBIT_ANNOTATION_ITEM_HEART_RATE_VARIABILITY, FITBIT_ANNOTATION_ITEM_SKIN_TEMPERATURE, FITBIT_ANNOTATION_ITEM_SLEEP_LEVEL, FITBIT_ANNOTATION_ITEM_SLEEP_LEVEL_DURATION, FITBIT_ANNOTATION_ITEM_SPO2, FITBIT_ANNOTATION_ITEM_STEPS, FITBIT_BREATHING_RATE_ANNOTATION, FITBIT_CALORIES_ANNOTATION, FITBIT_HEART_RATE_ANNOTATION, FITBIT_HEART_RATE_VARIABILITY_ANNOTATION, FITBIT_SIGNAL_TYPE_ANNOTATIONS, FITBIT_SKIN_TEMPERATURE_ANNOTATION, FITBIT_SLEEP_ANNOTATION, FITBIT_SLEEP_LEVEL_MAP, FITBIT_SPO2_ANNOTATION, FITBIT_STEPS_ANNOTATION, type FitbitSleepLevelTypes, type FlatAnswer, type FrequencySubset, type FrequencyType, GARMIN_ACTIVITY_ANNOTATION, GARMIN_ANNOTATION_ITEM_ACTIVITY_ACTIVE_TIME, GARMIN_ANNOTATION_ITEM_ACTIVITY_LEVEL, GARMIN_ANNOTATION_ITEM_ACTIVITY_METS, GARMIN_ANNOTATION_ITEM_BLOOD_PRESSURE, GARMIN_ANNOTATION_ITEM_BODY_BATTERY, GARMIN_ANNOTATION_ITEM_BODY_COMPOSITION, GARMIN_ANNOTATION_ITEM_SLEEP_SCORE, GARMIN_ANNOTATION_ITEM_VO2MAX, GARMIN_BLOOD_PRESSURE_ANNOTATION, GARMIN_BODY_BATTERY_ANNOTATION, GARMIN_BODY_COMPOSITION_ANNOTATION, GARMIN_SIGNAL_TYPE_ANNOTATIONS, GARMIN_SLEEP_SCORE_ANNOTATION, GARMIN_VO2MAX_ANNOTATION, GOOGLE_HEALTH_SIGNAL_TYPE_ANNOTATIONS, type GeoLocationAnswer, type Guard, type GuardContext, type GuardParameters, HEALTH_CONNECT_ANNOTATION_ITEM_SLEEP_DURATION, HEALTH_CONNECT_ANNOTATION_ITEM_SLEEP_STAGE, HEALTH_CONNECT_ANNOTATION_ITEM_STEPS, HEALTH_CONNECT_DATA_SOURCES, HEALTH_CONNECT_ITEM_SPO2, HEALTH_CONNECT_SIGNAL_TYPE_ANNOTATIONS, HEALTH_CONNECT_SLEEP_ANNOTATION, HEALTH_CONNECT_SLEEP_STAGE_MAP, HEALTH_CONNECT_SPO2_ANNOTATION, HEALTH_CONNECT_STEPS_ANNOTATION, HYBRID_ENCRYPTION_VERSION_RECOVERY, HYBRID_ENCRYPTION_VERSION_V4, type HealthConnectDataSource, type HealthConnectSleepStages, HybridEncrypter, IMUAnnotation, ImageExtension, type InternalDeviceConfig, InternalSensorAnnotationTypes, Iso3166CodeSystem, KEY_LENGTH, KeyHandler, MENSTRUAL_CYCLE_ANNOTATION, MENSTRUAL_CYCLE_ANNOTATION_ITEM, MENSTRUAL_CYCLE_PHASE, MENSTRUAL_FLOW, MENSTRUAL_FLOW_ANNOTATION, MENSTRUAL_FLOW_ANNOTATION_ITEM, type MatrixAnswer, type MatrixAnswerItem, MaxValueExtension, MeasurementTypeSystem, type Message, type MessagePath, type MessageRecipient, MinLengthExtension, MinValueExtension, type MultiAnswers, type Notification, type NotificationRecipient, OTHER_ANSWER_CODE, OURA_ACTIVITY_ANNOTATION, OURA_ANNOTATION_ITEM_ACTIVITY_LEVEL, OURA_ANNOTATION_ITEM_BATTERY_LEVEL, OURA_ANNOTATION_ITEM_CARDIOVASCULAR_AGE, OURA_ANNOTATION_ITEM_STRESS, OURA_ANNOTATION_ITEM_TAG, OURA_ANNOTATION_ITEM_WORKOUT, OURA_BATTERY_LEVEL_ANNOTATION, OURA_CARDIOVASCULAR_AGE_ANNOTATION, OURA_SIGNAL_TYPE_ANNOTATIONS, OURA_STRESS_ANNOTATION, OURA_TAG_ANNOTATION, OURA_WORKOUT_ANNOTATION, ObservationTypeSystem, Offset, type OffsetCondition, type OrCondition, PAMSCardioVascularActivityAnnotation, PAMSGeneralActivityInstantaneousAnnotation, PAMSGeneralActivitySummaryAnnotation, PAMSStepCounterActivitySummaryAnnotation, PSMSAccelerationAnnotation, PSMSHeartRateAnnotation, PSMSPPGGreenAnnotation, PSMSPPGIRAnnotation, PSMSPPGRedAnnotation, PSMSSkinTemperatureAnnotation, PostalCodeCountrySourceExtension, PostalCodeFixedCountryUrl, PostalCodeFromItemUrl, PrepopulateExtension, type PreviewTimeSeriesItem, type Program, type ProgramAnonymization, type ProgramAppVersion, type ProgramClientTarget, type ProgramConsentStep, type ProgramContact, type ProgramContent, type ProgramContentPath, type ProgramDevice, type ProgramDeviceType, type ProgramDevicesDataType, type ProgramDevicesLabel, type ProgramDisplayStep, type ProgramDonation, type ProgramEligibilityStep, type ProgramFeatured, type ProgramRoutineStep, type ProgramSensorStep, type ProgramStep, type ProgramStepBase, type ProgramStepType, type ProgramSurveyStep, type ProgramTag, type ProgramTokenStep, type ProgramTracking, type ProgramType, QItemControlDefinition, type QuestionInputType, QuestionnaireItemInputExtension, QuestionnaireItemOutputExtension, type QuestionnaireResponse, type QuestionnaireScore, RECORDING_MODEL_CURRENT_VERSION, RECORDING_SIGNAL_MODEL_CURRENT_VERSION, type RecordState, type Recording, type RecordingSignal, type RecordingSignalItem, type RecordingSignalPreview, type RecordingSignalWithId, type RecordingTag, type RecursiveKeyOf, RelativeMaxValueExtension, RelativeMinValueExtension, type ResearchSubject, type ResearchSubjectProgress, type ResearchSubjectProgressState, type ResponseCondition, type ResponseContext, ResponseGuard, type ResponseMinimal, type ResponseTimes, type ResponseValue, type RestorationSize, type Routine, type RoutineCondition, type RoutineContent, type RoutineContentPath, type RoutineContentStep, RoutineGuard, RoutineIsPassiveExtension, type RoutineTimes, type SDKDeviceConfig, type SDKInterface, SIGNAL_DURATION_CODING, type ScalarAnswer, type ScalarAnswerItem, type ScoreThreshold, type SeenDisplay, type SeenMessage, SensorIdentifierSystem, SensorSettingsSystem, SensorTypeSystem, SignalIDSystem, type SkippedStep, SliderInputLabel, SliderMaxLabelExtension, SliderMinLabelExtension, SliderOrientationExtension, SliderStepSizeExtension, type StepCondition, type StepConditionBase, type StringTemplater, StudyNameSystem, type Survey, type SurveyCondition, type SurveyContent, type SurveyContentPath, SurveyGuard, type SurveyMultiplex, type SurveyScoring, TAG_LENGTH, TOPIC_ID_PATTERN, TOPIC_SCOPE_CODES, TRACKING_RESOURCE_TYPE, type Tag, type TagEffectiveType, type TaskFrequency, type Threshold, TimeFuncs, type TimeWindow, TokenNamingSystem, TopicInputScopeUrl, TopicInputTopicUrl, type TopicScopeCode, TopicSystem, type TrackingCategory, type TrackingEvent, type TrackingEventsDocument, type TranslatedString, ULID_REGEX, ULIDtoUUID, UUID_REGEX, UUIDtoULID, type V4KeySpec, type V4SlotSpec, V4_DECRYPTER_DATA_RECEIVER, V4_DECRYPTER_MOBILE_APP, WORDLIST_LANGUAGES, WearOS3AnnotationMap, WebConverter, type WordListLanguage, YearGuard, binaryStringToUint8Array, buildSelfSignedAuthToken, calculateQuestionnaireScoreRange, calculateScoreRangeForItem, capitalizeFirstLetter, dayFormat, encodeDataSource, extractWordsFromRecoveryPhrase, generateFHIRConsent, generateFHIRQuestionnaireScore, generateFHIRRecordingBundle, generateFHIRResearchSubject, generateFHIRResponse, generateFHIRSeenDisplay, generateFHIRSeenMessage, generateFHIRTag, generateQuestionGuard, generateStepGuard, generateUrn, get, getFollowUpQuestionLinkId, getLanguageOfPassPhrase, getMovellaAnnotation, getText, getTimeFuncs, indexArrayBy, isArrayAnswer, isBeforeStartDate, isFlatAnswer, isGeoLocationAnswer, isMatrixAnswer, isNotAfterEndDate, isNotBeforeStartDate, isScalarAnswer, isScoreEligible, isValidTopicCanonical, isValidTopicId, isValidTopicScope, isYearString, newStepDateGuard, overwriteTime, stringToDate, stringToYear, timezonelessDate, toDeviceConfig, toQuestionnaireResponseItem, topicIdFromCanonical, uint8ArrayToBinaryString, utf8ToUint8Array, v4AesKey, v4AesSlot, v4EcKey, v4EcSlot, v4RsaKey, v4RsaSlot, wordlists };
2210
+ export { AES_BLOCKSIZE, ANDROID_SENSORS_CONSTANT_NAMES, type API, type APIConfig, type APIDeviceConfig, API_TARGET_MAP, APPLE_HEALTH_ANNOTATION_ACTIVE_ENERGY, APPLE_HEALTH_ANNOTATION_ACTIVITY_SUMMARY, APPLE_HEALTH_ANNOTATION_CONTRACEPTIVE, APPLE_HEALTH_ANNOTATION_HEART_RATE, APPLE_HEALTH_ANNOTATION_HRV, APPLE_HEALTH_ANNOTATION_ITEM_ACTIVE_ENERGY, APPLE_HEALTH_ANNOTATION_ITEM_ACTIVITY_SUMMARY, APPLE_HEALTH_ANNOTATION_ITEM_CONTRACEPTIVE_TYPE, APPLE_HEALTH_ANNOTATION_ITEM_HEART_RATE, APPLE_HEALTH_ANNOTATION_ITEM_HRV, APPLE_HEALTH_ANNOTATION_ITEM_LACTATION_STATE, APPLE_HEALTH_ANNOTATION_ITEM_MENSTRUAL_CYCLE, APPLE_HEALTH_ANNOTATION_ITEM_PREGNANCY_STATE, APPLE_HEALTH_ANNOTATION_ITEM_RESPIRATORY_RATE, APPLE_HEALTH_ANNOTATION_ITEM_RESTING_HEART_RATE, APPLE_HEALTH_ANNOTATION_ITEM_SKIN_TEMPERATURE, APPLE_HEALTH_ANNOTATION_ITEM_SLEEP_DURATION, APPLE_HEALTH_ANNOTATION_ITEM_SLEEP_STATE, APPLE_HEALTH_ANNOTATION_ITEM_SPO2, APPLE_HEALTH_ANNOTATION_ITEM_STAND_HOUR_STATE, APPLE_HEALTH_ANNOTATION_ITEM_STEP_COUNT, APPLE_HEALTH_ANNOTATION_ITEM_WALKING_RUNNING_DISTANCE, APPLE_HEALTH_ANNOTATION_ITEM_WORKOUT, APPLE_HEALTH_ANNOTATION_LACTATION, APPLE_HEALTH_ANNOTATION_MENSTRUAL_CYCLE, APPLE_HEALTH_ANNOTATION_PREGNANCY, APPLE_HEALTH_ANNOTATION_RESPIRATORY_RATE, APPLE_HEALTH_ANNOTATION_RESTING_HEART_RATE, APPLE_HEALTH_ANNOTATION_SKIN_TEMPERATURE, APPLE_HEALTH_ANNOTATION_SLEEP_ANALYSIS, APPLE_HEALTH_ANNOTATION_SPO2, APPLE_HEALTH_ANNOTATION_STAND_HOURS, APPLE_HEALTH_ANNOTATION_STEP_COUNT, APPLE_HEALTH_ANNOTATION_WALKING_RUNNING_DISTANCE, APPLE_HEALTH_ANNOTATION_WORKOUT, APPLE_HEALTH_DATA_SOURCES, APPLE_HEALTH_SIGNAL_TYPE_ANNOTATIONS, APPLE_HEALTH_SLEEP_STATE_MAP, ASMSECGMeasurementAnnotation, ASMSSpO2MeasurementAnnotation, type AndCondition, type Answer, AnswerCodeGuard, AnswerDateGuard, type AnswerItem, type Answers, AppIDNamingSystem, type AppleHealthDataSource, type AppleHealthSleepStates, type ArrayAnswer, type ArrayAnswerItem, type BLEDeviceConfig, BLE_ASMS_ANNOTATION_ITEM_ECG, BLE_ASMS_ANNOTATION_ITEM_SPO2, BLE_CPMS_ANNOTATION_ITEM_ACTIVITY_TYPE, BLE_CPMS_ANNOTATION_ITEM_DAILY_CALORIES, BLE_CPMS_ANNOTATION_ITEM_DAILY_DISTANCE, BLE_CPMS_ANNOTATION_ITEM_DAILY_ELEVATION_GAIN, BLE_CPMS_ANNOTATION_ITEM_DAILY_FLOORS, BLE_CPMS_ANNOTATION_ITEM_DAILY_STEPS, BLE_PAMS_ANNOTATION_ITEM_ABSOLUTE_ELEVATION, BLE_PAMS_ANNOTATION_ITEM_AVERAGE_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_AVERAGE_SPEED, BLE_PAMS_ANNOTATION_ITEM_BYTE, BLE_PAMS_ANNOTATION_ITEM_CALORIES_TOTAL, BLE_PAMS_ANNOTATION_ITEM_DISTANCE_TOTAL, BLE_PAMS_ANNOTATION_ITEM_FLAGS_16, BLE_PAMS_ANNOTATION_ITEM_FLAGS_24, BLE_PAMS_ANNOTATION_ITEM_FLAGS_32, BLE_PAMS_ANNOTATION_ITEM_FLAGS_8, BLE_PAMS_ANNOTATION_ITEM_FLOORS_TOTAL, BLE_PAMS_ANNOTATION_ITEM_FOUR_BYTES, BLE_PAMS_ANNOTATION_ITEM_HEADER, BLE_PAMS_ANNOTATION_ITEM_HEART_RATE, BLE_PAMS_ANNOTATION_ITEM_MAXIMUM_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_MAXIMUM_SPEED, BLE_PAMS_ANNOTATION_ITEM_MINIMUM_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_MINIMUM_SPEED, BLE_PAMS_ANNOTATION_ITEM_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_NEGATIVE_ELEVATION_GAIN, BLE_PAMS_ANNOTATION_ITEM_POSITIVE_ELEVATION_GAIN, BLE_PAMS_ANNOTATION_ITEM_RUNNING_STEPS_TOTAL, BLE_PAMS_ANNOTATION_ITEM_SPEED, BLE_PAMS_ANNOTATION_ITEM_STEPS_TOTAL, BLE_PAMS_ANNOTATION_ITEM_THREE_BYTES, BLE_PAMS_ANNOTATION_ITEM_TWO_BYTES, BLE_PAMS_ANNOTATION_ITEM_VO2_MAX, BLE_PSMS_ANNOTATION_ITEM_ACCELERATION, BLE_PSMS_ANNOTATION_ITEM_HEART_RATE, BLE_PSMS_ANNOTATION_ITEM_IBI, BLE_PSMS_ANNOTATION_ITEM_PPG_GREEN, BLE_PSMS_ANNOTATION_ITEM_PPG_IR, BLE_PSMS_ANNOTATION_ITEM_PPG_RED, BLE_PSMS_ANNOTATION_ITEM_SKIN_TEMPERATURE, type BaseDeviceConfig, type BleDeviceMetaLabel, BoolGuard, CPMSHealthServicesActivityDetectionAnnotation, CPMSHealthServicesPassiveDataAnnotation, type CodeQuestionCondition, CollectorClient, type CollectorConnectParams, type CollectorSyncItem, type CollectorSyncResponse, CommunicationTypeSystem, type ComparisonOperator, type CompiledEnableWhen, type ConditionOperatorType, type ConditionQuestionType, type ConditionSorting, type ConditionType, Conjunction, type Consent, type ConsentCondition, ConsentGuard, ConsentNameSystem, type ConsentPath, type ConsentTimes, ConsentVersionSystem, type ContentBlock, type Converter, type CopyrightLabel, CountryValueSet, type CryptoModule, CustomExtensionContextValue, CustomExtensionDate, CustomExtensionStudyName, CustomQuestionSystem, type DEVICE_ANNOTATION, type DEVICE_ANNOTATION_DATA_FORMAT, type DEVICE_ANNOTATION_DATA_TYPE, type DEVICE_ANNOTATION_DATA_TYPE_APPLE, DEVICE_ANNOTATION_HEARTRATE, DEVICE_ANNOTATION_HRV_RMSSD, type DEVICE_ANNOTATION_ITEM, DEVICE_ANNOTATION_ITEM_ACCELERATION, DEVICE_ANNOTATION_ITEM_ANGULAR_SPEED, DEVICE_ANNOTATION_ITEM_BEACON_ID, DEVICE_ANNOTATION_ITEM_DATA_SOURCE, DEVICE_ANNOTATION_ITEM_DISTANCE, DEVICE_ANNOTATION_ITEM_EGVS, DEVICE_ANNOTATION_ITEM_HEARTRATE, DEVICE_ANNOTATION_ITEM_HRV_RMSSD, DEVICE_ANNOTATION_ITEM_MAGNETIC_FIELD, DEVICE_ANNOTATION_ITEM_REMOTE_DISTANCE, DEVICE_ANNOTATION_ITEM_RESTING_HEART_RATE, DEVICE_ANNOTATION_ITEM_RSSI, DEVICE_ANNOTATION_ITEM_SKIN_TEMPERATURE_DEVIATION, DEVICE_ANNOTATION_ITEM_UNIX_TIMESTAMP, DEVICE_ANNOTATION_SKIN_TEMPERATURE_DEVIATION, DEVICE_ANNOTATION_TIMESTAMP_NOTE, DEVICE_ANNOTATION_TIMESTAMP_SIZE, DEVICE_ANNOTATION_TIMESTAMP_UNIT, DEVICE_D4L_COMPANION_ANNOTATION_ITEM_DATA_TYPES_FLAG, DEVICE_D4L_COMPANION_ANNOTATION_ITEM_TIMESTAMP, DEVICE_DISPLAY_LABEL_CODING, type DEVICE_KEY, type DEVICE_KEY_API, type DEVICE_KEY_BLE, type DEVICE_KEY_INTERNAL, type DEVICE_KEY_SDK, DEVICE_KEY_TO_NAME, DEVICE_LABEL_CODING, type DEVICE_MOVELLA_PAYLOAD_MODES, DEVICE_OUTPUT_RATE_CODING, DEVICE_SENSOR_DELAY_CODING, type DEVICE_SIGNAL_TYPE, type DEVICE_SIGNAL_TYPE_APPLE, type DateBlurringFunction, type DateCondition, DateGuard, type DateQuestionCondition, DecimalGuard, type DecompiledEnableWhen, type DeviceConfig, type DeviceName, Disjunction, type Display, type DisplayContent, type DisplayContentPath, type DisplayPath, type DisplayType, type DonationRecord, DonationSDK, type DonorIdentity, ELAPSED_UNITS_BY_VALUE_TYPE, ENABLE_WHEN_PREDICATES_BY_VALUE_TYPE, ERROR_CODES, type EnableWhenBehavior, type EnableWhenComparisonOp, EnableWhenCompileError, type EnableWhenCondition, type EnableWhenDateUnit, EnableWhenExpressionExtension, type EnableWhenItemVariable, type EnableWhenPredicate, type EnableWhenPredicateOp, type EnableWhenSource, type EnableWhenValueType, ExistsGuard, type ExtendedProgramDevicesDataType, FITBIT_ANNOTATION_ITEM_BREATHING_RATE, FITBIT_ANNOTATION_ITEM_CALORIES, FITBIT_ANNOTATION_ITEM_HEART_RATE, FITBIT_ANNOTATION_ITEM_HEART_RATE_VARIABILITY, FITBIT_ANNOTATION_ITEM_SKIN_TEMPERATURE, FITBIT_ANNOTATION_ITEM_SLEEP_LEVEL, FITBIT_ANNOTATION_ITEM_SLEEP_LEVEL_DURATION, FITBIT_ANNOTATION_ITEM_SPO2, FITBIT_ANNOTATION_ITEM_STEPS, FITBIT_BREATHING_RATE_ANNOTATION, FITBIT_CALORIES_ANNOTATION, FITBIT_HEART_RATE_ANNOTATION, FITBIT_HEART_RATE_VARIABILITY_ANNOTATION, FITBIT_SIGNAL_TYPE_ANNOTATIONS, FITBIT_SKIN_TEMPERATURE_ANNOTATION, FITBIT_SLEEP_ANNOTATION, FITBIT_SLEEP_LEVEL_MAP, FITBIT_SPO2_ANNOTATION, FITBIT_STEPS_ANNOTATION, FhirPathLanguage, type FitbitSleepLevelTypes, type FlatAnswer, type FrequencySubset, type FrequencyType, GARMIN_ACTIVITY_ANNOTATION, GARMIN_ANNOTATION_ITEM_ACTIVITY_ACTIVE_TIME, GARMIN_ANNOTATION_ITEM_ACTIVITY_LEVEL, GARMIN_ANNOTATION_ITEM_ACTIVITY_METS, GARMIN_ANNOTATION_ITEM_BLOOD_PRESSURE, GARMIN_ANNOTATION_ITEM_BODY_BATTERY, GARMIN_ANNOTATION_ITEM_BODY_COMPOSITION, GARMIN_ANNOTATION_ITEM_SLEEP_SCORE, GARMIN_ANNOTATION_ITEM_VO2MAX, GARMIN_BLOOD_PRESSURE_ANNOTATION, GARMIN_BODY_BATTERY_ANNOTATION, GARMIN_BODY_COMPOSITION_ANNOTATION, GARMIN_SIGNAL_TYPE_ANNOTATIONS, GARMIN_SLEEP_SCORE_ANNOTATION, GARMIN_VO2MAX_ANNOTATION, GOOGLE_HEALTH_SIGNAL_TYPE_ANNOTATIONS, type GeoLocationAnswer, type Guard, type GuardContext, type GuardParameters, HEALTH_CONNECT_ANNOTATION_ITEM_SLEEP_DURATION, HEALTH_CONNECT_ANNOTATION_ITEM_SLEEP_STAGE, HEALTH_CONNECT_ANNOTATION_ITEM_STEPS, HEALTH_CONNECT_DATA_SOURCES, HEALTH_CONNECT_ITEM_SPO2, HEALTH_CONNECT_SIGNAL_TYPE_ANNOTATIONS, HEALTH_CONNECT_SLEEP_ANNOTATION, HEALTH_CONNECT_SLEEP_STAGE_MAP, HEALTH_CONNECT_SPO2_ANNOTATION, HEALTH_CONNECT_STEPS_ANNOTATION, HYBRID_ENCRYPTION_VERSION_RECOVERY, HYBRID_ENCRYPTION_VERSION_V4, type HealthConnectDataSource, type HealthConnectSleepStages, HybridEncrypter, IMUAnnotation, ImageExtension, type InternalDeviceConfig, InternalSensorAnnotationTypes, Iso3166CodeSystem, ItemVariableNameUrl, ItemVariableQuestionUrl, ItemVariableScopeUrl, ItemVariableTopicUrl, KEY_LENGTH, KeyHandler, MENSTRUAL_CYCLE_ANNOTATION, MENSTRUAL_CYCLE_ANNOTATION_ITEM, MENSTRUAL_CYCLE_PHASE, MENSTRUAL_FLOW, MENSTRUAL_FLOW_ANNOTATION, MENSTRUAL_FLOW_ANNOTATION_ITEM, type MatrixAnswer, type MatrixAnswerItem, MaxValueExtension, MeasurementTypeSystem, type Message, type MessagePath, type MessageRecipient, MinLengthExtension, MinValueExtension, type MultiAnswers, type Notification, type NotificationRecipient, OTHER_ANSWER_CODE, OURA_ACTIVITY_ANNOTATION, OURA_ANNOTATION_ITEM_ACTIVITY_LEVEL, OURA_ANNOTATION_ITEM_BATTERY_LEVEL, OURA_ANNOTATION_ITEM_CARDIOVASCULAR_AGE, OURA_ANNOTATION_ITEM_STRESS, OURA_ANNOTATION_ITEM_TAG, OURA_ANNOTATION_ITEM_WORKOUT, OURA_BATTERY_LEVEL_ANNOTATION, OURA_CARDIOVASCULAR_AGE_ANNOTATION, OURA_SIGNAL_TYPE_ANNOTATIONS, OURA_STRESS_ANNOTATION, OURA_TAG_ANNOTATION, OURA_WORKOUT_ANNOTATION, ObservationTypeSystem, Offset, type OffsetCondition, type OrCondition, PAMSCardioVascularActivityAnnotation, PAMSGeneralActivityInstantaneousAnnotation, PAMSGeneralActivitySummaryAnnotation, PAMSStepCounterActivitySummaryAnnotation, PSMSAccelerationAnnotation, PSMSHeartRateAnnotation, PSMSPPGGreenAnnotation, PSMSPPGIRAnnotation, PSMSPPGRedAnnotation, PSMSSkinTemperatureAnnotation, PostalCodeCountrySourceExtension, PostalCodeFixedCountryUrl, PostalCodeFromItemUrl, PrepopulateExtension, type PreviewTimeSeriesItem, type Program, type ProgramAnonymization, type ProgramAppVersion, type ProgramClientTarget, type ProgramConsentStep, type ProgramContact, type ProgramContent, type ProgramContentPath, type ProgramDevice, type ProgramDeviceType, type ProgramDevicesDataType, type ProgramDevicesLabel, type ProgramDisplayStep, type ProgramDonation, type ProgramEligibilityStep, type ProgramFeatured, type ProgramRoutineStep, type ProgramSensorStep, type ProgramStep, type ProgramStepBase, type ProgramStepType, type ProgramSurveyStep, type ProgramTag, type ProgramTokenStep, type ProgramTracking, type ProgramType, QItemControlDefinition, type QuestionInputType, QuestionnaireItemInputExtension, QuestionnaireItemOutputExtension, QuestionnaireItemVariableExtension, type QuestionnaireResponse, type QuestionnaireScore, RECORDING_MODEL_CURRENT_VERSION, RECORDING_SIGNAL_MODEL_CURRENT_VERSION, type RecordState, type Recording, type RecordingSignal, type RecordingSignalItem, type RecordingSignalPreview, type RecordingSignalWithId, type RecordingTag, type RecursiveKeyOf, RelativeMaxValueExtension, RelativeMinValueExtension, type ResearchSubject, type ResearchSubjectProgress, type ResearchSubjectProgressState, type ResponseCondition, type ResponseContext, ResponseGuard, type ResponseMinimal, type ResponseTimes, type ResponseValue, type RestorationSize, type Routine, type RoutineCondition, type RoutineContent, type RoutineContentPath, type RoutineContentStep, RoutineGuard, RoutineIsPassiveExtension, type RoutineTimes, type SDKDeviceConfig, type SDKInterface, SIGNAL_DURATION_CODING, SUPPORTED_FHIRPATH_DATE_UNITS, type ScalarAnswer, type ScalarAnswerItem, type ScoreThreshold, type SeenDisplay, type SeenMessage, SensorIdentifierSystem, SensorSettingsSystem, SensorTypeSystem, SignalIDSystem, type SkippedStep, SliderInputLabel, SliderMaxLabelExtension, SliderMinLabelExtension, SliderOrientationExtension, SliderStepSizeExtension, type StepCondition, type StepConditionBase, type StringTemplater, StudyNameSystem, type Survey, type SurveyCondition, type SurveyContent, type SurveyContentPath, SurveyGuard, type SurveyMultiplex, type SurveyScoring, TAG_LENGTH, TEMPORAL_PREDICATES, TOPIC_ID_PATTERN, TOPIC_SCOPE_CODES, TRACKING_RESOURCE_TYPE, type Tag, type TagEffectiveType, type TaskFrequency, type Threshold, TimeFuncs, type TimeWindow, TokenNamingSystem, TopicInputScopeUrl, TopicInputTopicUrl, type TopicScopeCode, TopicSystem, type TrackingCategory, type TrackingEvent, type TrackingEventsDocument, type TranslatedString, ULID_REGEX, ULIDtoUUID, UUID_REGEX, UUIDtoULID, type V4KeySpec, type V4SlotSpec, V4_DECRYPTER_DATA_RECEIVER, V4_DECRYPTER_MOBILE_APP, WORDLIST_LANGUAGES, WearOS3AnnotationMap, WebConverter, type WordListLanguage, YearGuard, binaryStringToUint8Array, buildSelfSignedAuthToken, calculateQuestionnaireScoreRange, calculateScoreRangeForItem, capitalizeFirstLetter, compileEnableWhen, dayFormat, decompileEnableWhen, encodeDataSource, extractWordsFromRecoveryPhrase, generateFHIRConsent, generateFHIRQuestionnaireScore, generateFHIRRecordingBundle, generateFHIRResearchSubject, generateFHIRResponse, generateFHIRSeenDisplay, generateFHIRSeenMessage, generateFHIRTag, generateQuestionGuard, generateStepGuard, generateUrn, get, getFollowUpQuestionLinkId, getLanguageOfPassPhrase, getMovellaAnnotation, getText, getTimeFuncs, indexArrayBy, isArrayAnswer, isBeforeStartDate, isFlatAnswer, isGeoLocationAnswer, isMatrixAnswer, isNotAfterEndDate, isNotBeforeStartDate, isScalarAnswer, isScoreEligible, isValidTopicCanonical, isValidTopicId, isValidTopicScope, isYearString, newStepDateGuard, overwriteTime, requiresExpression, stringToDate, stringToYear, timezonelessDate, toDeviceConfig, toQuestionnaireResponseItem, topicIdFromCanonical, uint8ArrayToBinaryString, utf8ToUint8Array, v4AesKey, v4AesSlot, v4EcKey, v4EcSlot, v4RsaKey, v4RsaSlot, wordlists };