@f1studio/form-spec 5.0.0-alpha.101
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/Designer.d.ts +89 -0
- package/FormSpec.TS/Components/HelloComponent.js +68 -0
- package/FormSpec.TS/Components/HelloComponent.js.map +1 -0
- package/FormSpec.TS/Components/HelloComponent.ts.map +1 -0
- package/FormSpec.TS/Designer.js +526 -0
- package/FormSpec.TS/Designer.js.map +1 -0
- package/FormSpec.TS/Designer.ts.map +1 -0
- package/FormSpec.TS/FormSpec.js +5400 -0
- package/FormSpec.TS/FormSpec.js.map +1 -0
- package/FormSpec.TS/FormSpec.ts.map +1 -0
- package/FormSpec.TS/FormSpecHelpers.js +382 -0
- package/FormSpec.TS/FormSpecHelpers.js.map +1 -0
- package/FormSpec.TS/FormSpecHelpers.ts.map +1 -0
- package/FormSpec.TS/Helpers.js +732 -0
- package/FormSpec.TS/Helpers.js.map +1 -0
- package/FormSpec.TS/Helpers.ts.map +1 -0
- package/FormSpec.TS/Interfaces.js +257 -0
- package/FormSpec.TS/Interfaces.js.map +1 -0
- package/FormSpec.TS/Interfaces.ts.map +1 -0
- package/FormSpec.TS/Interop/FormSpec.Api.Helpers.js +854 -0
- package/FormSpec.TS/Interop/FormSpec.Api.Helpers.js.map +1 -0
- package/FormSpec.TS/Interop/FormSpec.Api.Helpers.ts.map +1 -0
- package/FormSpec.TS/Interop/FormSpec.Api.Option.js +1961 -0
- package/FormSpec.TS/Interop/FormSpec.Api.Option.js.map +1 -0
- package/FormSpec.TS/Interop/FormSpec.Api.Option.ts.map +1 -0
- package/FormSpec.TS/Interop/FormSpec.Values.Api.Option.js +1367 -0
- package/FormSpec.TS/Interop/FormSpec.Values.Api.Option.js.map +1 -0
- package/FormSpec.TS/Interop/FormSpec.Values.Api.Option.ts.map +1 -0
- package/FormSpec.TS/Logging/LogTypes.js +347 -0
- package/FormSpec.TS/Logging/LogTypes.js.map +1 -0
- package/FormSpec.TS/Logging/LogTypes.ts.map +1 -0
- package/FormSpec.TS/Migrator.js +230 -0
- package/FormSpec.TS/Migrator.js.map +1 -0
- package/FormSpec.TS/Migrator.ts.map +1 -0
- package/FormSpec.TS/PathwayDataExtractor.js +361 -0
- package/FormSpec.TS/PathwayDataExtractor.js.map +1 -0
- package/FormSpec.TS/PathwayDataExtractor.ts.map +1 -0
- package/FormSpec.TS/PathwayExecutor.js +1321 -0
- package/FormSpec.TS/PathwayExecutor.js.map +1 -0
- package/FormSpec.TS/PathwayExecutor.ts.map +1 -0
- package/FormSpec.TS/PathwayValidator.js +346 -0
- package/FormSpec.TS/PathwayValidator.js.map +1 -0
- package/FormSpec.TS/PathwayValidator.ts.map +1 -0
- package/FormSpec.TS/PluginInterface.js +171 -0
- package/FormSpec.TS/PluginInterface.js.map +1 -0
- package/FormSpec.TS/PluginInterface.ts.map +1 -0
- package/FormSpec.TS/Prelude.js +59 -0
- package/FormSpec.TS/Prelude.js.map +1 -0
- package/FormSpec.TS/Prelude.ts.map +1 -0
- package/FormSpec.TS/Renderers/FormSpecMarkdownRenderer.js +958 -0
- package/FormSpec.TS/Renderers/FormSpecMarkdownRenderer.js.map +1 -0
- package/FormSpec.TS/Renderers/FormSpecMarkdownRenderer.ts.map +1 -0
- package/FormSpec.TS/Renderers/MermaidRenderer.js +228 -0
- package/FormSpec.TS/Renderers/MermaidRenderer.js.map +1 -0
- package/FormSpec.TS/Renderers/MermaidRenderer.ts.map +1 -0
- package/FormSpec.TS/Renderers/PathwayRenderers.js +190 -0
- package/FormSpec.TS/Renderers/PathwayRenderers.js.map +1 -0
- package/FormSpec.TS/Renderers/PathwayRenderers.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Base.fs +511 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Base.fs.js +437 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Base.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Base.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Error.fs +16 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Error.fs.js +73 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Error.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Error.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Extensions.fs +50 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Extensions.fs.js +72 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Extensions.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Extensions.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Fable.Form.fableproj +28 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Field.fs +24 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Field.fs.js +56 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Field.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Field.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Fable.Form.Simple.fableproj +31 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Form.fs +178 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Form.fs.js +464 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Form.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Form.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Extensions.fs +17 -0
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Hooks.fs +152 -0
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Hooks.fs.js +25 -0
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Hooks.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Hooks.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Types.fableproj +28 -0
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs +218 -0
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs.js +37 -0
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.Types.fableproj +27 -0
- package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.fs +82 -0
- package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.fs.js +7 -0
- package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/BorderStyle.fs +59 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Colors.fs +154 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Colors.fs.js +32 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Colors.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Colors.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Feliz.fableproj +42 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Fonts.fs +240 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/GridTypes.fs +24 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Html.fs +826 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Interop.fs +83 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Interop.fs.js +292 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Interop.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Interop.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Key.fs +65 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Key.fs.js +229 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Key.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Key.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Length.fs +91 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Locale.fs +876 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Properties.fs +4080 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Properties.fs.js +133 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Properties.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Properties.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/React.fs +656 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/React.fs.js +561 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/React.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/React.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactDOM.fs +25 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactDOM.fs.js +46 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactDOM.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactDOM.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactInterop.js +63 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactInterop.js.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactTypes.fs +41 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactTypes.fs.js +7 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactTypes.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactTypes.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/StyleTypes.fs +53 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/StyleTypes.fs.js +7 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/StyleTypes.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/StyleTypes.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Styles.fs +5740 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Svg.fs +1455 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Svg.fs.js +39 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Svg.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Svg.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/TextDecorationLine.fs +13 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/TextDecorationStyle.fs +33 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Transform.fs +181 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/TransformOrigin.fs +17 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/TransitionProperty.fs +162 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Types.fs +13 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Types.fs.js +7 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Types.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.7.0/Types.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Decode.fs +1768 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Decode.fs.js +2337 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Decode.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Decode.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs +811 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs.js +465 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Extra.fs +47 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Extra.fs.js +18 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Extra.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Extra.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Thoth.Json.fableproj +34 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Types.fs +68 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Types.fs.js +355 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Types.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Types.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/project_cracked.json +1 -0
- package/FormSpec.d.ts +1257 -0
- package/FormSpecHelpers.d.ts +50 -0
- package/Helpers.d.ts +147 -0
- package/Interfaces.d.ts +70 -0
- package/Interop/FormSpec.Api.Helpers.d.ts +247 -0
- package/Interop/FormSpec.Api.Helpers.d.ts.map +1 -0
- package/Interop/FormSpec.Api.Option.d.ts +384 -0
- package/Interop/FormSpec.Api.Option.d.ts.map +1 -0
- package/Interop/FormSpec.Values.Api.Option.d.ts +324 -0
- package/Interop/FormSpec.Values.Api.Option.d.ts.map +1 -0
- package/Migrator.d.ts +59 -0
- package/PathwayDataExtractor.d.ts +19 -0
- package/PathwayExecutor.d.ts +210 -0
- package/PathwayValidator.d.ts +52 -0
- package/PluginInterface.d.ts +36 -0
- package/Prelude.d.ts +11 -0
- package/README.TS.md +622 -0
- package/README.md +85 -0
- package/package.json +39 -0
- package/src/Components/HelloComponent.ts +48 -0
- package/src/Components/HelloComponent.ts.map +1 -0
- package/src/Designer.ts +389 -0
- package/src/Designer.ts.map +1 -0
- package/src/FormSpec.ts +3114 -0
- package/src/FormSpec.ts.map +1 -0
- package/src/FormSpecHelpers.ts +374 -0
- package/src/FormSpecHelpers.ts.map +1 -0
- package/src/Helpers.ts +765 -0
- package/src/Helpers.ts.map +1 -0
- package/src/Interfaces.ts +166 -0
- package/src/Interfaces.ts.map +1 -0
- package/src/Interop/FormSpec.Api.Helpers.ts +872 -0
- package/src/Interop/FormSpec.Api.Helpers.ts.map +1 -0
- package/src/Interop/FormSpec.Api.Option.ts +1618 -0
- package/src/Interop/FormSpec.Api.Option.ts.map +1 -0
- package/src/Interop/FormSpec.Values.Api.Option.ts +1214 -0
- package/src/Interop/FormSpec.Values.Api.Option.ts.map +1 -0
- package/src/Logging/LogTypes.ts +212 -0
- package/src/Logging/LogTypes.ts.map +1 -0
- package/src/Migrator.ts +156 -0
- package/src/Migrator.ts.map +1 -0
- package/src/PathwayDataExtractor.ts +290 -0
- package/src/PathwayDataExtractor.ts.map +1 -0
- package/src/PathwayExecutor.ts +1102 -0
- package/src/PathwayExecutor.ts.map +1 -0
- package/src/PathwayValidator.ts +244 -0
- package/src/PathwayValidator.ts.map +1 -0
- package/src/PluginInterface.ts +79 -0
- package/src/PluginInterface.ts.map +1 -0
- package/src/Prelude.ts +21 -0
- package/src/Prelude.ts.map +1 -0
- package/src/Renderers/FormSpecMarkdownRenderer.ts +874 -0
- package/src/Renderers/FormSpecMarkdownRenderer.ts.map +1 -0
- package/src/Renderers/MermaidRenderer.ts +218 -0
- package/src/Renderers/MermaidRenderer.ts.map +1 -0
- package/src/Renderers/PathwayRenderers.ts +200 -0
- package/src/Renderers/PathwayRenderers.ts.map +1 -0
package/src/FormSpec.ts
ADDED
|
@@ -0,0 +1,3114 @@
|
|
|
1
|
+
import { FSharpRef, Record, Union } from "@fable-org/fable-library-js/Types.js";
|
|
2
|
+
import { obj_type, float64_type, tuple_type, bool_type, int32_type, list_type, option_type, record_type, string_type, union_type, class_type, TypeInfo } from "@fable-org/fable-library-js/Reflection.js";
|
|
3
|
+
import { IComparable, IEquatable } from "@fable-org/fable-library-js/Util.js";
|
|
4
|
+
import { FSharpMap } from "@fable-org/fable-library-js/Map.js";
|
|
5
|
+
import { Option } from "@fable-org/fable-library-js/Option.js";
|
|
6
|
+
import { FSharpSet } from "@fable-org/fable-library-js/Set.js";
|
|
7
|
+
import { ofArray, FSharpList } from "@fable-org/fable-library-js/List.js";
|
|
8
|
+
import { float64, int32 } from "@fable-org/fable-library-js/Int32.js";
|
|
9
|
+
import { newGuid, tryParse } from "@fable-org/fable-library-js/Guid.js";
|
|
10
|
+
import { item } from "@fable-org/fable-library-js/Array.js";
|
|
11
|
+
import { split } from "@fable-org/fable-library-js/String.js";
|
|
12
|
+
|
|
13
|
+
export class Shared_FieldKey extends Union<0, "FieldKey"> {
|
|
14
|
+
constructor(Item: string) {
|
|
15
|
+
super();
|
|
16
|
+
this.tag = 0;
|
|
17
|
+
this.fields = [Item];
|
|
18
|
+
}
|
|
19
|
+
readonly tag: 0;
|
|
20
|
+
readonly fields: [string];
|
|
21
|
+
cases() {
|
|
22
|
+
return ["FieldKey"];
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function Shared_FieldKey_$reflection(): TypeInfo {
|
|
27
|
+
return union_type("F1.Studio.Shared.FieldKey", [], Shared_FieldKey, () => [[["Item", class_type("System.Guid")]]]);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export class Shared_StateKey extends Union<0, "StateKey"> {
|
|
31
|
+
constructor(Item: string) {
|
|
32
|
+
super();
|
|
33
|
+
this.tag = 0;
|
|
34
|
+
this.fields = [Item];
|
|
35
|
+
}
|
|
36
|
+
readonly tag: 0;
|
|
37
|
+
readonly fields: [string];
|
|
38
|
+
cases() {
|
|
39
|
+
return ["StateKey"];
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function Shared_StateKey_$reflection(): TypeInfo {
|
|
44
|
+
return union_type("F1.Studio.Shared.StateKey", [], Shared_StateKey, () => [[["Item", class_type("System.Guid")]]]);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export class Shared_TransitionKey extends Union<0, "TransitionKey"> {
|
|
48
|
+
constructor(Item: string) {
|
|
49
|
+
super();
|
|
50
|
+
this.tag = 0;
|
|
51
|
+
this.fields = [Item];
|
|
52
|
+
}
|
|
53
|
+
readonly tag: 0;
|
|
54
|
+
readonly fields: [string];
|
|
55
|
+
cases() {
|
|
56
|
+
return ["TransitionKey"];
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function Shared_TransitionKey_$reflection(): TypeInfo {
|
|
61
|
+
return union_type("F1.Studio.Shared.TransitionKey", [], Shared_TransitionKey, () => [[["Item", class_type("System.Guid")]]]);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export class Shared_MatrixItemKey extends Union<0, "MatrixItemKey"> {
|
|
65
|
+
constructor(Item: string) {
|
|
66
|
+
super();
|
|
67
|
+
this.tag = 0;
|
|
68
|
+
this.fields = [Item];
|
|
69
|
+
}
|
|
70
|
+
readonly tag: 0;
|
|
71
|
+
readonly fields: [string];
|
|
72
|
+
cases() {
|
|
73
|
+
return ["MatrixItemKey"];
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function Shared_MatrixItemKey_$reflection(): TypeInfo {
|
|
78
|
+
return union_type("F1.Studio.Shared.MatrixItemKey", [], Shared_MatrixItemKey, () => [[["Item", class_type("System.Guid")]]]);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export class Shared_FieldOptionKey extends Union<0, "FieldOptionKey"> {
|
|
82
|
+
constructor(Item: string) {
|
|
83
|
+
super();
|
|
84
|
+
this.tag = 0;
|
|
85
|
+
this.fields = [Item];
|
|
86
|
+
}
|
|
87
|
+
readonly tag: 0;
|
|
88
|
+
readonly fields: [string];
|
|
89
|
+
cases() {
|
|
90
|
+
return ["FieldOptionKey"];
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function Shared_FieldOptionKey_$reflection(): TypeInfo {
|
|
95
|
+
return union_type("F1.Studio.Shared.FieldOptionKey", [], Shared_FieldOptionKey, () => [[["Item", class_type("System.Guid")]]]);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export class Shared_PluginPropertyKey extends Union<0, "PluginPropertyKey"> {
|
|
99
|
+
constructor(Item: string) {
|
|
100
|
+
super();
|
|
101
|
+
this.tag = 0;
|
|
102
|
+
this.fields = [Item];
|
|
103
|
+
}
|
|
104
|
+
readonly tag: 0;
|
|
105
|
+
readonly fields: [string];
|
|
106
|
+
cases() {
|
|
107
|
+
return ["PluginPropertyKey"];
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function Shared_PluginPropertyKey_$reflection(): TypeInfo {
|
|
112
|
+
return union_type("F1.Studio.Shared.PluginPropertyKey", [], Shared_PluginPropertyKey, () => [[["Item", class_type("System.Guid")]]]);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export class Shared_FieldOption extends Record implements IEquatable<Shared_FieldOption>, IComparable<Shared_FieldOption> {
|
|
116
|
+
readonly Description: string;
|
|
117
|
+
readonly Value: string;
|
|
118
|
+
readonly OptionKey: Shared_FieldOptionKey;
|
|
119
|
+
constructor(Description: string, Value: string, OptionKey: Shared_FieldOptionKey) {
|
|
120
|
+
super();
|
|
121
|
+
this.Description = Description;
|
|
122
|
+
this.Value = Value;
|
|
123
|
+
this.OptionKey = OptionKey;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export function Shared_FieldOption_$reflection(): TypeInfo {
|
|
128
|
+
return record_type("F1.Studio.Shared.FieldOption", [], Shared_FieldOption, () => [["Description", string_type], ["Value", string_type], ["OptionKey", Shared_FieldOptionKey_$reflection()]]);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export class Shared_FieldAnswer extends Record implements IEquatable<Shared_FieldAnswer>, IComparable<Shared_FieldAnswer> {
|
|
132
|
+
readonly FieldKey: Shared_FieldKey;
|
|
133
|
+
readonly Description: string;
|
|
134
|
+
readonly Value: string;
|
|
135
|
+
constructor(FieldKey: Shared_FieldKey, Description: string, Value: string) {
|
|
136
|
+
super();
|
|
137
|
+
this.FieldKey = FieldKey;
|
|
138
|
+
this.Description = Description;
|
|
139
|
+
this.Value = Value;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export function Shared_FieldAnswer_$reflection(): TypeInfo {
|
|
144
|
+
return record_type("F1.Studio.Shared.FieldAnswer", [], Shared_FieldAnswer, () => [["FieldKey", Shared_FieldKey_$reflection()], ["Description", string_type], ["Value", string_type]]);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export class Shared_MatrixAnswer extends Record implements IEquatable<Shared_MatrixAnswer>, IComparable<Shared_MatrixAnswer> {
|
|
148
|
+
readonly FieldKey: Shared_FieldKey;
|
|
149
|
+
readonly Description: string;
|
|
150
|
+
readonly Values: FSharpMap<Shared_MatrixItemKey, string>;
|
|
151
|
+
constructor(FieldKey: Shared_FieldKey, Description: string, Values: FSharpMap<Shared_MatrixItemKey, string>) {
|
|
152
|
+
super();
|
|
153
|
+
this.FieldKey = FieldKey;
|
|
154
|
+
this.Description = Description;
|
|
155
|
+
this.Values = Values;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export function Shared_MatrixAnswer_$reflection(): TypeInfo {
|
|
160
|
+
return record_type("F1.Studio.Shared.MatrixAnswer", [], Shared_MatrixAnswer, () => [["FieldKey", Shared_FieldKey_$reflection()], ["Description", string_type], ["Values", class_type("Microsoft.FSharp.Collections.FSharpMap`2", [Shared_MatrixItemKey_$reflection(), string_type])]]);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export class Shared_PluginDataProperty extends Record implements IEquatable<Shared_PluginDataProperty>, IComparable<Shared_PluginDataProperty> {
|
|
164
|
+
readonly PropertyKey: Shared_PluginPropertyKey;
|
|
165
|
+
readonly Name: string;
|
|
166
|
+
readonly DataType: string;
|
|
167
|
+
readonly Value: string;
|
|
168
|
+
readonly DisplayName: Option<string>;
|
|
169
|
+
readonly Unit: Option<string>;
|
|
170
|
+
readonly Description: Option<string>;
|
|
171
|
+
constructor(PropertyKey: Shared_PluginPropertyKey, Name: string, DataType: string, Value: string, DisplayName: Option<string>, Unit: Option<string>, Description: Option<string>) {
|
|
172
|
+
super();
|
|
173
|
+
this.PropertyKey = PropertyKey;
|
|
174
|
+
this.Name = Name;
|
|
175
|
+
this.DataType = DataType;
|
|
176
|
+
this.Value = Value;
|
|
177
|
+
this.DisplayName = DisplayName;
|
|
178
|
+
this.Unit = Unit;
|
|
179
|
+
this.Description = Description;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export function Shared_PluginDataProperty_$reflection(): TypeInfo {
|
|
184
|
+
return record_type("F1.Studio.Shared.PluginDataProperty", [], Shared_PluginDataProperty, () => [["PropertyKey", Shared_PluginPropertyKey_$reflection()], ["Name", string_type], ["DataType", string_type], ["Value", string_type], ["DisplayName", option_type(string_type)], ["Unit", option_type(string_type)], ["Description", option_type(string_type)]]);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export type Shared_FieldValue_$union =
|
|
188
|
+
| Shared_FieldValue<0>
|
|
189
|
+
| Shared_FieldValue<1>
|
|
190
|
+
| Shared_FieldValue<2>
|
|
191
|
+
| Shared_FieldValue<3>
|
|
192
|
+
|
|
193
|
+
export type Shared_FieldValue_$cases = {
|
|
194
|
+
0: ["Single", [Shared_FieldAnswer]],
|
|
195
|
+
1: ["Multiple", [FSharpSet<Shared_FieldAnswer>]],
|
|
196
|
+
2: ["Matrix", [Shared_MatrixAnswer]],
|
|
197
|
+
3: ["PluginData", [FSharpList<Shared_PluginDataProperty>]]
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export function Shared_FieldValue_Single(Item: Shared_FieldAnswer) {
|
|
201
|
+
return new Shared_FieldValue<0>(0, [Item]);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export function Shared_FieldValue_Multiple(Item: FSharpSet<Shared_FieldAnswer>) {
|
|
205
|
+
return new Shared_FieldValue<1>(1, [Item]);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export function Shared_FieldValue_Matrix(Item: Shared_MatrixAnswer) {
|
|
209
|
+
return new Shared_FieldValue<2>(2, [Item]);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export function Shared_FieldValue_PluginData(Item: FSharpList<Shared_PluginDataProperty>) {
|
|
213
|
+
return new Shared_FieldValue<3>(3, [Item]);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export class Shared_FieldValue<Tag extends keyof Shared_FieldValue_$cases> extends Union<Tag, Shared_FieldValue_$cases[Tag][0]> {
|
|
217
|
+
constructor(readonly tag: Tag, readonly fields: Shared_FieldValue_$cases[Tag][1]) {
|
|
218
|
+
super();
|
|
219
|
+
}
|
|
220
|
+
cases() {
|
|
221
|
+
return ["Single", "Multiple", "Matrix", "PluginData"];
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export function Shared_FieldValue_$reflection(): TypeInfo {
|
|
226
|
+
return union_type("F1.Studio.Shared.FieldValue", [], Shared_FieldValue, () => [[["Item", Shared_FieldAnswer_$reflection()]], [["Item", class_type("Microsoft.FSharp.Collections.FSharpSet`1", [Shared_FieldAnswer_$reflection()])]], [["Item", Shared_MatrixAnswer_$reflection()]], [["Item", list_type(Shared_PluginDataProperty_$reflection())]]]);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export type Shared_ConditionValue_$union =
|
|
230
|
+
| Shared_ConditionValue<0>
|
|
231
|
+
| Shared_ConditionValue<1>
|
|
232
|
+
| Shared_ConditionValue<2>
|
|
233
|
+
| Shared_ConditionValue<3>
|
|
234
|
+
|
|
235
|
+
export type Shared_ConditionValue_$cases = {
|
|
236
|
+
0: ["Single", [string]],
|
|
237
|
+
1: ["Multiple", [FSharpSet<string>]],
|
|
238
|
+
2: ["Matrix", [FSharpMap<Shared_MatrixItemKey, string>]],
|
|
239
|
+
3: ["PluginData", [Shared_PluginDataProperty]]
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export function Shared_ConditionValue_Single(Item: string) {
|
|
243
|
+
return new Shared_ConditionValue<0>(0, [Item]);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export function Shared_ConditionValue_Multiple(Item: FSharpSet<string>) {
|
|
247
|
+
return new Shared_ConditionValue<1>(1, [Item]);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export function Shared_ConditionValue_Matrix(Item: FSharpMap<Shared_MatrixItemKey, string>) {
|
|
251
|
+
return new Shared_ConditionValue<2>(2, [Item]);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export function Shared_ConditionValue_PluginData(Item: Shared_PluginDataProperty) {
|
|
255
|
+
return new Shared_ConditionValue<3>(3, [Item]);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export class Shared_ConditionValue<Tag extends keyof Shared_ConditionValue_$cases> extends Union<Tag, Shared_ConditionValue_$cases[Tag][0]> {
|
|
259
|
+
constructor(readonly tag: Tag, readonly fields: Shared_ConditionValue_$cases[Tag][1]) {
|
|
260
|
+
super();
|
|
261
|
+
}
|
|
262
|
+
cases() {
|
|
263
|
+
return ["Single", "Multiple", "Matrix", "PluginData"];
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export function Shared_ConditionValue_$reflection(): TypeInfo {
|
|
268
|
+
return union_type("F1.Studio.Shared.ConditionValue", [], Shared_ConditionValue, () => [[["Item", string_type]], [["Item", class_type("Microsoft.FSharp.Collections.FSharpSet`1", [string_type])]], [["Item", class_type("Microsoft.FSharp.Collections.FSharpMap`2", [Shared_MatrixItemKey_$reflection(), string_type])]], [["Item", Shared_PluginDataProperty_$reflection()]]]);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export class Spec_FieldResult extends Record implements IEquatable<Spec_FieldResult>, IComparable<Spec_FieldResult> {
|
|
272
|
+
readonly Patient: string;
|
|
273
|
+
readonly Order: int32;
|
|
274
|
+
readonly Question: string;
|
|
275
|
+
readonly Answer: string;
|
|
276
|
+
readonly Value: string;
|
|
277
|
+
constructor(Patient: string, Order: int32, Question: string, Answer: string, Value: string) {
|
|
278
|
+
super();
|
|
279
|
+
this.Patient = Patient;
|
|
280
|
+
this.Order = (Order | 0);
|
|
281
|
+
this.Question = Question;
|
|
282
|
+
this.Answer = Answer;
|
|
283
|
+
this.Value = Value;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export function Spec_FieldResult_$reflection(): TypeInfo {
|
|
288
|
+
return record_type("F1.Studio.Spec.FieldResult", [], Spec_FieldResult, () => [["Patient", string_type], ["Order", int32_type], ["Question", string_type], ["Answer", string_type], ["Value", string_type]]);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export class Spec_MinimalField extends Record implements IEquatable<Spec_MinimalField>, IComparable<Spec_MinimalField> {
|
|
292
|
+
readonly FieldOrder: int32;
|
|
293
|
+
readonly Options: FSharpList<Shared_FieldOption>;
|
|
294
|
+
constructor(FieldOrder: int32, Options: FSharpList<Shared_FieldOption>) {
|
|
295
|
+
super();
|
|
296
|
+
this.FieldOrder = (FieldOrder | 0);
|
|
297
|
+
this.Options = Options;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export function Spec_MinimalField_$reflection(): TypeInfo {
|
|
302
|
+
return record_type("F1.Studio.Spec.MinimalField", [], Spec_MinimalField, () => [["FieldOrder", int32_type], ["Options", list_type(Shared_FieldOption_$reflection())]]);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
export type Spec_Evaluator_$union =
|
|
306
|
+
| Spec_Evaluator<0>
|
|
307
|
+
| Spec_Evaluator<1>
|
|
308
|
+
| Spec_Evaluator<2>
|
|
309
|
+
| Spec_Evaluator<3>
|
|
310
|
+
| Spec_Evaluator<4>
|
|
311
|
+
| Spec_Evaluator<5>
|
|
312
|
+
| Spec_Evaluator<6>
|
|
313
|
+
| Spec_Evaluator<7>
|
|
314
|
+
| Spec_Evaluator<8>
|
|
315
|
+
|
|
316
|
+
export type Spec_Evaluator_$cases = {
|
|
317
|
+
0: ["Equals", []],
|
|
318
|
+
1: ["NotEquals", []],
|
|
319
|
+
2: ["GreaterThan", []],
|
|
320
|
+
3: ["GreaterThanOrEquals", []],
|
|
321
|
+
4: ["LessThan", []],
|
|
322
|
+
5: ["LessThanOrEquals", []],
|
|
323
|
+
6: ["Exists", []],
|
|
324
|
+
7: ["IsEmpty", []],
|
|
325
|
+
8: ["Contains", []]
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
export function Spec_Evaluator_Equals() {
|
|
329
|
+
return new Spec_Evaluator<0>(0, []);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
export function Spec_Evaluator_NotEquals() {
|
|
333
|
+
return new Spec_Evaluator<1>(1, []);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
export function Spec_Evaluator_GreaterThan() {
|
|
337
|
+
return new Spec_Evaluator<2>(2, []);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
export function Spec_Evaluator_GreaterThanOrEquals() {
|
|
341
|
+
return new Spec_Evaluator<3>(3, []);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
export function Spec_Evaluator_LessThan() {
|
|
345
|
+
return new Spec_Evaluator<4>(4, []);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
export function Spec_Evaluator_LessThanOrEquals() {
|
|
349
|
+
return new Spec_Evaluator<5>(5, []);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
export function Spec_Evaluator_Exists() {
|
|
353
|
+
return new Spec_Evaluator<6>(6, []);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
export function Spec_Evaluator_IsEmpty() {
|
|
357
|
+
return new Spec_Evaluator<7>(7, []);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
export function Spec_Evaluator_Contains() {
|
|
361
|
+
return new Spec_Evaluator<8>(8, []);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
export class Spec_Evaluator<Tag extends keyof Spec_Evaluator_$cases> extends Union<Tag, Spec_Evaluator_$cases[Tag][0]> {
|
|
365
|
+
constructor(readonly tag: Tag, readonly fields: Spec_Evaluator_$cases[Tag][1]) {
|
|
366
|
+
super();
|
|
367
|
+
}
|
|
368
|
+
cases() {
|
|
369
|
+
return ["Equals", "NotEquals", "GreaterThan", "GreaterThanOrEquals", "LessThan", "LessThanOrEquals", "Exists", "IsEmpty", "Contains"];
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
export function Spec_Evaluator_$reflection(): TypeInfo {
|
|
374
|
+
return union_type("F1.Studio.Spec.Evaluator", [], Spec_Evaluator, () => [[], [], [], [], [], [], [], [], []]);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
export type Spec_SpecialTextType_$union =
|
|
378
|
+
| Spec_SpecialTextType<0>
|
|
379
|
+
| Spec_SpecialTextType<1>
|
|
380
|
+
| Spec_SpecialTextType<2>
|
|
381
|
+
| Spec_SpecialTextType<3>
|
|
382
|
+
| Spec_SpecialTextType<4>
|
|
383
|
+
| Spec_SpecialTextType<5>
|
|
384
|
+
| Spec_SpecialTextType<6>
|
|
385
|
+
| Spec_SpecialTextType<7>
|
|
386
|
+
| Spec_SpecialTextType<8>
|
|
387
|
+
| Spec_SpecialTextType<9>
|
|
388
|
+
|
|
389
|
+
export type Spec_SpecialTextType_$cases = {
|
|
390
|
+
0: ["BodyTemperatureType", []],
|
|
391
|
+
1: ["BloodPressureType", []],
|
|
392
|
+
2: ["DiastolicBloodPressureType", []],
|
|
393
|
+
3: ["SystolicBloodPressureType", []],
|
|
394
|
+
4: ["HeightType", []],
|
|
395
|
+
5: ["WeightType", []],
|
|
396
|
+
6: ["PulseRateType", []],
|
|
397
|
+
7: ["HeartRateType", []],
|
|
398
|
+
8: ["RespirationRateType", []],
|
|
399
|
+
9: ["OxygenSaturationType", []]
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
export function Spec_SpecialTextType_BodyTemperatureType() {
|
|
403
|
+
return new Spec_SpecialTextType<0>(0, []);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
export function Spec_SpecialTextType_BloodPressureType() {
|
|
407
|
+
return new Spec_SpecialTextType<1>(1, []);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
export function Spec_SpecialTextType_DiastolicBloodPressureType() {
|
|
411
|
+
return new Spec_SpecialTextType<2>(2, []);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
export function Spec_SpecialTextType_SystolicBloodPressureType() {
|
|
415
|
+
return new Spec_SpecialTextType<3>(3, []);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
export function Spec_SpecialTextType_HeightType() {
|
|
419
|
+
return new Spec_SpecialTextType<4>(4, []);
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
export function Spec_SpecialTextType_WeightType() {
|
|
423
|
+
return new Spec_SpecialTextType<5>(5, []);
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
export function Spec_SpecialTextType_PulseRateType() {
|
|
427
|
+
return new Spec_SpecialTextType<6>(6, []);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
export function Spec_SpecialTextType_HeartRateType() {
|
|
431
|
+
return new Spec_SpecialTextType<7>(7, []);
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
export function Spec_SpecialTextType_RespirationRateType() {
|
|
435
|
+
return new Spec_SpecialTextType<8>(8, []);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
export function Spec_SpecialTextType_OxygenSaturationType() {
|
|
439
|
+
return new Spec_SpecialTextType<9>(9, []);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
export class Spec_SpecialTextType<Tag extends keyof Spec_SpecialTextType_$cases> extends Union<Tag, Spec_SpecialTextType_$cases[Tag][0]> {
|
|
443
|
+
constructor(readonly tag: Tag, readonly fields: Spec_SpecialTextType_$cases[Tag][1]) {
|
|
444
|
+
super();
|
|
445
|
+
}
|
|
446
|
+
cases() {
|
|
447
|
+
return ["BodyTemperatureType", "BloodPressureType", "DiastolicBloodPressureType", "SystolicBloodPressureType", "HeightType", "WeightType", "PulseRateType", "HeartRateType", "RespirationRateType", "OxygenSaturationType"];
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
export function Spec_SpecialTextType_$reflection(): TypeInfo {
|
|
452
|
+
return union_type("F1.Studio.Spec.SpecialTextType", [], Spec_SpecialTextType, () => [[], [], [], [], [], [], [], [], [], []]);
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
export class Spec_DependsOn extends Record implements IEquatable<Spec_DependsOn>, IComparable<Spec_DependsOn> {
|
|
456
|
+
readonly FieldKey: Shared_FieldKey;
|
|
457
|
+
readonly FieldValue: string;
|
|
458
|
+
readonly Evaluator: Spec_Evaluator_$union;
|
|
459
|
+
constructor(FieldKey: Shared_FieldKey, FieldValue: string, Evaluator: Spec_Evaluator_$union) {
|
|
460
|
+
super();
|
|
461
|
+
this.FieldKey = FieldKey;
|
|
462
|
+
this.FieldValue = FieldValue;
|
|
463
|
+
this.Evaluator = Evaluator;
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
export function Spec_DependsOn_$reflection(): TypeInfo {
|
|
468
|
+
return record_type("F1.Studio.Spec.DependsOn", [], Spec_DependsOn, () => [["FieldKey", Shared_FieldKey_$reflection()], ["FieldValue", string_type], ["Evaluator", Spec_Evaluator_$reflection()]]);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
export class Spec_SpecialTextInfo extends Record implements IEquatable<Spec_SpecialTextInfo>, IComparable<Spec_SpecialTextInfo> {
|
|
472
|
+
readonly SpecialTextType: Spec_SpecialTextType_$union;
|
|
473
|
+
readonly Value: Option<string>;
|
|
474
|
+
constructor(SpecialTextType: Spec_SpecialTextType_$union, Value: Option<string>) {
|
|
475
|
+
super();
|
|
476
|
+
this.SpecialTextType = SpecialTextType;
|
|
477
|
+
this.Value = Value;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
export function Spec_SpecialTextInfo_$reflection(): TypeInfo {
|
|
482
|
+
return record_type("F1.Studio.Spec.SpecialTextInfo", [], Spec_SpecialTextInfo, () => [["SpecialTextType", Spec_SpecialTextType_$reflection()], ["Value", option_type(string_type)]]);
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
export class Spec_TextInfo extends Record implements IEquatable<Spec_TextInfo>, IComparable<Spec_TextInfo> {
|
|
486
|
+
readonly Value: Option<string>;
|
|
487
|
+
constructor(Value: Option<string>) {
|
|
488
|
+
super();
|
|
489
|
+
this.Value = Value;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
export function Spec_TextInfo_$reflection(): TypeInfo {
|
|
494
|
+
return record_type("F1.Studio.Spec.TextInfo", [], Spec_TextInfo, () => [["Value", option_type(string_type)]]);
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
export class Spec_SingleChoiceInfo extends Record implements IEquatable<Spec_SingleChoiceInfo>, IComparable<Spec_SingleChoiceInfo> {
|
|
498
|
+
readonly Options: FSharpList<Shared_FieldOption>;
|
|
499
|
+
constructor(Options: FSharpList<Shared_FieldOption>) {
|
|
500
|
+
super();
|
|
501
|
+
this.Options = Options;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
export function Spec_SingleChoiceInfo_$reflection(): TypeInfo {
|
|
506
|
+
return record_type("F1.Studio.Spec.SingleChoiceInfo", [], Spec_SingleChoiceInfo, () => [["Options", list_type(Shared_FieldOption_$reflection())]]);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
export class Spec_MultiChoiceInfo extends Record implements IEquatable<Spec_MultiChoiceInfo>, IComparable<Spec_MultiChoiceInfo> {
|
|
510
|
+
readonly Options: FSharpList<Shared_FieldOption>;
|
|
511
|
+
constructor(Options: FSharpList<Shared_FieldOption>) {
|
|
512
|
+
super();
|
|
513
|
+
this.Options = Options;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
export function Spec_MultiChoiceInfo_$reflection(): TypeInfo {
|
|
518
|
+
return record_type("F1.Studio.Spec.MultiChoiceInfo", [], Spec_MultiChoiceInfo, () => [["Options", list_type(Shared_FieldOption_$reflection())]]);
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
export class Spec_TextToSpeechInfo extends Record implements IEquatable<Spec_TextToSpeechInfo>, IComparable<Spec_TextToSpeechInfo> {
|
|
522
|
+
readonly Value: Option<string>;
|
|
523
|
+
constructor(Value: Option<string>) {
|
|
524
|
+
super();
|
|
525
|
+
this.Value = Value;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
export function Spec_TextToSpeechInfo_$reflection(): TypeInfo {
|
|
530
|
+
return record_type("F1.Studio.Spec.TextToSpeechInfo", [], Spec_TextToSpeechInfo, () => [["Value", option_type(string_type)]]);
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
export class Spec_DrugFinderInfo extends Record implements IEquatable<Spec_DrugFinderInfo>, IComparable<Spec_DrugFinderInfo> {
|
|
534
|
+
readonly Value: Option<string>;
|
|
535
|
+
constructor(Value: Option<string>) {
|
|
536
|
+
super();
|
|
537
|
+
this.Value = Value;
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
export function Spec_DrugFinderInfo_$reflection(): TypeInfo {
|
|
542
|
+
return record_type("F1.Studio.Spec.DrugFinderInfo", [], Spec_DrugFinderInfo, () => [["Value", option_type(string_type)]]);
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
export class Spec_DrugFinderWithFrequencyInfo extends Record implements IEquatable<Spec_DrugFinderWithFrequencyInfo>, IComparable<Spec_DrugFinderWithFrequencyInfo> {
|
|
546
|
+
readonly Value: Option<string>;
|
|
547
|
+
constructor(Value: Option<string>) {
|
|
548
|
+
super();
|
|
549
|
+
this.Value = Value;
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
export function Spec_DrugFinderWithFrequencyInfo_$reflection(): TypeInfo {
|
|
554
|
+
return record_type("F1.Studio.Spec.DrugFinderWithFrequencyInfo", [], Spec_DrugFinderWithFrequencyInfo, () => [["Value", option_type(string_type)]]);
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
export class Spec_AllergyFinderInfo extends Record implements IEquatable<Spec_AllergyFinderInfo>, IComparable<Spec_AllergyFinderInfo> {
|
|
558
|
+
readonly Value: Option<string>;
|
|
559
|
+
constructor(Value: Option<string>) {
|
|
560
|
+
super();
|
|
561
|
+
this.Value = Value;
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
export function Spec_AllergyFinderInfo_$reflection(): TypeInfo {
|
|
566
|
+
return record_type("F1.Studio.Spec.AllergyFinderInfo", [], Spec_AllergyFinderInfo, () => [["Value", option_type(string_type)]]);
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
export class Spec_ICD10FinderInfo extends Record implements IEquatable<Spec_ICD10FinderInfo>, IComparable<Spec_ICD10FinderInfo> {
|
|
570
|
+
readonly Value: Option<string>;
|
|
571
|
+
constructor(Value: Option<string>) {
|
|
572
|
+
super();
|
|
573
|
+
this.Value = Value;
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
export function Spec_ICD10FinderInfo_$reflection(): TypeInfo {
|
|
578
|
+
return record_type("F1.Studio.Spec.ICD10FinderInfo", [], Spec_ICD10FinderInfo, () => [["Value", option_type(string_type)]]);
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
export class Spec_CPTFinderInfo extends Record implements IEquatable<Spec_CPTFinderInfo>, IComparable<Spec_CPTFinderInfo> {
|
|
582
|
+
readonly Value: Option<string>;
|
|
583
|
+
constructor(Value: Option<string>) {
|
|
584
|
+
super();
|
|
585
|
+
this.Value = Value;
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
export function Spec_CPTFinderInfo_$reflection(): TypeInfo {
|
|
590
|
+
return record_type("F1.Studio.Spec.CPTFinderInfo", [], Spec_CPTFinderInfo, () => [["Value", option_type(string_type)]]);
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
export class Spec_VaccineFinderInfo extends Record implements IEquatable<Spec_VaccineFinderInfo>, IComparable<Spec_VaccineFinderInfo> {
|
|
594
|
+
readonly Value: Option<string>;
|
|
595
|
+
constructor(Value: Option<string>) {
|
|
596
|
+
super();
|
|
597
|
+
this.Value = Value;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
export function Spec_VaccineFinderInfo_$reflection(): TypeInfo {
|
|
602
|
+
return record_type("F1.Studio.Spec.VaccineFinderInfo", [], Spec_VaccineFinderInfo, () => [["Value", option_type(string_type)]]);
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
export class Spec_ProviderSelectorInfo extends Record implements IEquatable<Spec_ProviderSelectorInfo>, IComparable<Spec_ProviderSelectorInfo> {
|
|
606
|
+
readonly Value: Option<string>;
|
|
607
|
+
constructor(Value: Option<string>) {
|
|
608
|
+
super();
|
|
609
|
+
this.Value = Value;
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
export function Spec_ProviderSelectorInfo_$reflection(): TypeInfo {
|
|
614
|
+
return record_type("F1.Studio.Spec.ProviderSelectorInfo", [], Spec_ProviderSelectorInfo, () => [["Value", option_type(string_type)]]);
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
export class Spec_BooleanInfo extends Record implements IEquatable<Spec_BooleanInfo>, IComparable<Spec_BooleanInfo> {
|
|
618
|
+
readonly DefaultValue: Option<boolean>;
|
|
619
|
+
readonly Selection: Option<boolean>;
|
|
620
|
+
constructor(DefaultValue: Option<boolean>, Selection$: Option<boolean>) {
|
|
621
|
+
super();
|
|
622
|
+
this.DefaultValue = DefaultValue;
|
|
623
|
+
this.Selection = Selection$;
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
export function Spec_BooleanInfo_$reflection(): TypeInfo {
|
|
628
|
+
return record_type("F1.Studio.Spec.BooleanInfo", [], Spec_BooleanInfo, () => [["DefaultValue", option_type(bool_type)], ["Selection", option_type(bool_type)]]);
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
export type Spec_MessageType_$union =
|
|
632
|
+
| Spec_MessageType<0>
|
|
633
|
+
| Spec_MessageType<1>
|
|
634
|
+
| Spec_MessageType<2>
|
|
635
|
+
| Spec_MessageType<3>
|
|
636
|
+
| Spec_MessageType<4>
|
|
637
|
+
|
|
638
|
+
export type Spec_MessageType_$cases = {
|
|
639
|
+
0: ["Warning", []],
|
|
640
|
+
1: ["Success", []],
|
|
641
|
+
2: ["Error", []],
|
|
642
|
+
3: ["Info", []],
|
|
643
|
+
4: ["Danger", []]
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
export function Spec_MessageType_Warning() {
|
|
647
|
+
return new Spec_MessageType<0>(0, []);
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
export function Spec_MessageType_Success() {
|
|
651
|
+
return new Spec_MessageType<1>(1, []);
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
export function Spec_MessageType_Error() {
|
|
655
|
+
return new Spec_MessageType<2>(2, []);
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
export function Spec_MessageType_Info() {
|
|
659
|
+
return new Spec_MessageType<3>(3, []);
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
export function Spec_MessageType_Danger() {
|
|
663
|
+
return new Spec_MessageType<4>(4, []);
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
export class Spec_MessageType<Tag extends keyof Spec_MessageType_$cases> extends Union<Tag, Spec_MessageType_$cases[Tag][0]> {
|
|
667
|
+
constructor(readonly tag: Tag, readonly fields: Spec_MessageType_$cases[Tag][1]) {
|
|
668
|
+
super();
|
|
669
|
+
}
|
|
670
|
+
cases() {
|
|
671
|
+
return ["Warning", "Success", "Error", "Info", "Danger"];
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
export function Spec_MessageType_$reflection(): TypeInfo {
|
|
676
|
+
return union_type("F1.Studio.Spec.MessageType", [], Spec_MessageType, () => [[], [], [], [], []]);
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
export class Spec_MessageInfo extends Record implements IEquatable<Spec_MessageInfo>, IComparable<Spec_MessageInfo> {
|
|
680
|
+
readonly Heading: string;
|
|
681
|
+
readonly MessageType: Spec_MessageType_$union;
|
|
682
|
+
readonly Message: string;
|
|
683
|
+
readonly Footer: Option<string>;
|
|
684
|
+
constructor(Heading: string, MessageType: Spec_MessageType_$union, Message: string, Footer: Option<string>) {
|
|
685
|
+
super();
|
|
686
|
+
this.Heading = Heading;
|
|
687
|
+
this.MessageType = MessageType;
|
|
688
|
+
this.Message = Message;
|
|
689
|
+
this.Footer = Footer;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
export function Spec_MessageInfo_$reflection(): TypeInfo {
|
|
694
|
+
return record_type("F1.Studio.Spec.MessageInfo", [], Spec_MessageInfo, () => [["Heading", string_type], ["MessageType", Spec_MessageType_$reflection()], ["Message", string_type], ["Footer", option_type(string_type)]]);
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
export class Spec_ReadOnlyInfo extends Record implements IEquatable<Spec_ReadOnlyInfo>, IComparable<Spec_ReadOnlyInfo> {
|
|
698
|
+
readonly Heading: string;
|
|
699
|
+
readonly Content: string;
|
|
700
|
+
readonly Collapsible: Option<boolean>;
|
|
701
|
+
readonly InitiallyExpanded: Option<boolean>;
|
|
702
|
+
readonly Formatting: Option<string>;
|
|
703
|
+
constructor(Heading: string, Content: string, Collapsible: Option<boolean>, InitiallyExpanded: Option<boolean>, Formatting: Option<string>) {
|
|
704
|
+
super();
|
|
705
|
+
this.Heading = Heading;
|
|
706
|
+
this.Content = Content;
|
|
707
|
+
this.Collapsible = Collapsible;
|
|
708
|
+
this.InitiallyExpanded = InitiallyExpanded;
|
|
709
|
+
this.Formatting = Formatting;
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
export function Spec_ReadOnlyInfo_$reflection(): TypeInfo {
|
|
714
|
+
return record_type("F1.Studio.Spec.ReadOnlyInfo", [], Spec_ReadOnlyInfo, () => [["Heading", string_type], ["Content", string_type], ["Collapsible", option_type(bool_type)], ["InitiallyExpanded", option_type(bool_type)], ["Formatting", option_type(string_type)]]);
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
export type Spec_DemographicFields_$union =
|
|
718
|
+
| Spec_DemographicFields<0>
|
|
719
|
+
| Spec_DemographicFields<1>
|
|
720
|
+
| Spec_DemographicFields<2>
|
|
721
|
+
| Spec_DemographicFields<3>
|
|
722
|
+
| Spec_DemographicFields<4>
|
|
723
|
+
| Spec_DemographicFields<5>
|
|
724
|
+
| Spec_DemographicFields<6>
|
|
725
|
+
| Spec_DemographicFields<7>
|
|
726
|
+
| Spec_DemographicFields<8>
|
|
727
|
+
| Spec_DemographicFields<9>
|
|
728
|
+
| Spec_DemographicFields<10>
|
|
729
|
+
| Spec_DemographicFields<11>
|
|
730
|
+
|
|
731
|
+
export type Spec_DemographicFields_$cases = {
|
|
732
|
+
0: ["FirstName", []],
|
|
733
|
+
1: ["LastName", []],
|
|
734
|
+
2: ["DateOfBirth", []],
|
|
735
|
+
3: ["Gender", []],
|
|
736
|
+
4: ["MRN", []],
|
|
737
|
+
5: ["Address", []],
|
|
738
|
+
6: ["Phone", []],
|
|
739
|
+
7: ["Email", []],
|
|
740
|
+
8: ["EmergencyContact", []],
|
|
741
|
+
9: ["Insurance", []],
|
|
742
|
+
10: ["PreferredLanguage", []],
|
|
743
|
+
11: ["All", []]
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
export function Spec_DemographicFields_FirstName() {
|
|
747
|
+
return new Spec_DemographicFields<0>(0, []);
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
export function Spec_DemographicFields_LastName() {
|
|
751
|
+
return new Spec_DemographicFields<1>(1, []);
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
export function Spec_DemographicFields_DateOfBirth() {
|
|
755
|
+
return new Spec_DemographicFields<2>(2, []);
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
export function Spec_DemographicFields_Gender() {
|
|
759
|
+
return new Spec_DemographicFields<3>(3, []);
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
export function Spec_DemographicFields_MRN() {
|
|
763
|
+
return new Spec_DemographicFields<4>(4, []);
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
export function Spec_DemographicFields_Address() {
|
|
767
|
+
return new Spec_DemographicFields<5>(5, []);
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
export function Spec_DemographicFields_Phone() {
|
|
771
|
+
return new Spec_DemographicFields<6>(6, []);
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
export function Spec_DemographicFields_Email() {
|
|
775
|
+
return new Spec_DemographicFields<7>(7, []);
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
export function Spec_DemographicFields_EmergencyContact() {
|
|
779
|
+
return new Spec_DemographicFields<8>(8, []);
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
export function Spec_DemographicFields_Insurance() {
|
|
783
|
+
return new Spec_DemographicFields<9>(9, []);
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
export function Spec_DemographicFields_PreferredLanguage() {
|
|
787
|
+
return new Spec_DemographicFields<10>(10, []);
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
export function Spec_DemographicFields_All() {
|
|
791
|
+
return new Spec_DemographicFields<11>(11, []);
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
export class Spec_DemographicFields<Tag extends keyof Spec_DemographicFields_$cases> extends Union<Tag, Spec_DemographicFields_$cases[Tag][0]> {
|
|
795
|
+
constructor(readonly tag: Tag, readonly fields: Spec_DemographicFields_$cases[Tag][1]) {
|
|
796
|
+
super();
|
|
797
|
+
}
|
|
798
|
+
cases() {
|
|
799
|
+
return ["FirstName", "LastName", "DateOfBirth", "Gender", "MRN", "Address", "Phone", "Email", "EmergencyContact", "Insurance", "PreferredLanguage", "All"];
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
export function Spec_DemographicFields_$reflection(): TypeInfo {
|
|
804
|
+
return union_type("F1.Studio.Spec.DemographicFields", [], Spec_DemographicFields, () => [[], [], [], [], [], [], [], [], [], [], [], []]);
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
export class Spec_PatientDemographicsInfo extends Record implements IEquatable<Spec_PatientDemographicsInfo>, IComparable<Spec_PatientDemographicsInfo> {
|
|
808
|
+
readonly Fields: FSharpList<Spec_DemographicFields_$union>;
|
|
809
|
+
readonly RequiredFields: Option<FSharpList<Spec_DemographicFields_$union>>;
|
|
810
|
+
readonly IncludePhoto: Option<boolean>;
|
|
811
|
+
readonly AutoPopulate: Option<boolean>;
|
|
812
|
+
constructor(Fields: FSharpList<Spec_DemographicFields_$union>, RequiredFields: Option<FSharpList<Spec_DemographicFields_$union>>, IncludePhoto: Option<boolean>, AutoPopulate: Option<boolean>) {
|
|
813
|
+
super();
|
|
814
|
+
this.Fields = Fields;
|
|
815
|
+
this.RequiredFields = RequiredFields;
|
|
816
|
+
this.IncludePhoto = IncludePhoto;
|
|
817
|
+
this.AutoPopulate = AutoPopulate;
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
export function Spec_PatientDemographicsInfo_$reflection(): TypeInfo {
|
|
822
|
+
return record_type("F1.Studio.Spec.PatientDemographicsInfo", [], Spec_PatientDemographicsInfo, () => [["Fields", list_type(Spec_DemographicFields_$reflection())], ["RequiredFields", option_type(list_type(Spec_DemographicFields_$reflection()))], ["IncludePhoto", option_type(bool_type)], ["AutoPopulate", option_type(bool_type)]]);
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
export type Spec_StaffRole_$union =
|
|
826
|
+
| Spec_StaffRole<0>
|
|
827
|
+
| Spec_StaffRole<1>
|
|
828
|
+
| Spec_StaffRole<2>
|
|
829
|
+
| Spec_StaffRole<3>
|
|
830
|
+
| Spec_StaffRole<4>
|
|
831
|
+
| Spec_StaffRole<5>
|
|
832
|
+
| Spec_StaffRole<6>
|
|
833
|
+
| Spec_StaffRole<7>
|
|
834
|
+
|
|
835
|
+
export type Spec_StaffRole_$cases = {
|
|
836
|
+
0: ["Physician", []],
|
|
837
|
+
1: ["Nurse", []],
|
|
838
|
+
2: ["NursePractitioner", []],
|
|
839
|
+
3: ["PhysicianAssistant", []],
|
|
840
|
+
4: ["Therapist", []],
|
|
841
|
+
5: ["Technician", []],
|
|
842
|
+
6: ["MedicalAssistant", []],
|
|
843
|
+
7: ["Other", [string]]
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
export function Spec_StaffRole_Physician() {
|
|
847
|
+
return new Spec_StaffRole<0>(0, []);
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
export function Spec_StaffRole_Nurse() {
|
|
851
|
+
return new Spec_StaffRole<1>(1, []);
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
export function Spec_StaffRole_NursePractitioner() {
|
|
855
|
+
return new Spec_StaffRole<2>(2, []);
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
export function Spec_StaffRole_PhysicianAssistant() {
|
|
859
|
+
return new Spec_StaffRole<3>(3, []);
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
export function Spec_StaffRole_Therapist() {
|
|
863
|
+
return new Spec_StaffRole<4>(4, []);
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
export function Spec_StaffRole_Technician() {
|
|
867
|
+
return new Spec_StaffRole<5>(5, []);
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
export function Spec_StaffRole_MedicalAssistant() {
|
|
871
|
+
return new Spec_StaffRole<6>(6, []);
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
export function Spec_StaffRole_Other(Item: string) {
|
|
875
|
+
return new Spec_StaffRole<7>(7, [Item]);
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
export class Spec_StaffRole<Tag extends keyof Spec_StaffRole_$cases> extends Union<Tag, Spec_StaffRole_$cases[Tag][0]> {
|
|
879
|
+
constructor(readonly tag: Tag, readonly fields: Spec_StaffRole_$cases[Tag][1]) {
|
|
880
|
+
super();
|
|
881
|
+
}
|
|
882
|
+
cases() {
|
|
883
|
+
return ["Physician", "Nurse", "NursePractitioner", "PhysicianAssistant", "Therapist", "Technician", "MedicalAssistant", "Other"];
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
export function Spec_StaffRole_$reflection(): TypeInfo {
|
|
888
|
+
return union_type("F1.Studio.Spec.StaffRole", [], Spec_StaffRole, () => [[], [], [], [], [], [], [], [["Item", string_type]]]);
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
export class Spec_ClinicalStaffInfo extends Record implements IEquatable<Spec_ClinicalStaffInfo>, IComparable<Spec_ClinicalStaffInfo> {
|
|
892
|
+
readonly Role: Option<Spec_StaffRole_$union>;
|
|
893
|
+
readonly IncludeName: boolean;
|
|
894
|
+
readonly IncludeCredentials: boolean;
|
|
895
|
+
readonly IncludeLicense: boolean;
|
|
896
|
+
readonly IncludeNPI: boolean;
|
|
897
|
+
readonly IncludeSignature: boolean;
|
|
898
|
+
readonly RequireAuthentication: Option<boolean>;
|
|
899
|
+
readonly TimeStamp: Option<boolean>;
|
|
900
|
+
constructor(Role: Option<Spec_StaffRole_$union>, IncludeName: boolean, IncludeCredentials: boolean, IncludeLicense: boolean, IncludeNPI: boolean, IncludeSignature: boolean, RequireAuthentication: Option<boolean>, TimeStamp: Option<boolean>) {
|
|
901
|
+
super();
|
|
902
|
+
this.Role = Role;
|
|
903
|
+
this.IncludeName = IncludeName;
|
|
904
|
+
this.IncludeCredentials = IncludeCredentials;
|
|
905
|
+
this.IncludeLicense = IncludeLicense;
|
|
906
|
+
this.IncludeNPI = IncludeNPI;
|
|
907
|
+
this.IncludeSignature = IncludeSignature;
|
|
908
|
+
this.RequireAuthentication = RequireAuthentication;
|
|
909
|
+
this.TimeStamp = TimeStamp;
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
export function Spec_ClinicalStaffInfo_$reflection(): TypeInfo {
|
|
914
|
+
return record_type("F1.Studio.Spec.ClinicalStaffInfo", [], Spec_ClinicalStaffInfo, () => [["Role", option_type(Spec_StaffRole_$reflection())], ["IncludeName", bool_type], ["IncludeCredentials", bool_type], ["IncludeLicense", bool_type], ["IncludeNPI", bool_type], ["IncludeSignature", bool_type], ["RequireAuthentication", option_type(bool_type)], ["TimeStamp", option_type(bool_type)]]);
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
export class Spec_MatrixItem extends Record implements IEquatable<Spec_MatrixItem>, IComparable<Spec_MatrixItem> {
|
|
918
|
+
readonly ItemKey: Shared_MatrixItemKey;
|
|
919
|
+
readonly ItemLabel: string;
|
|
920
|
+
constructor(ItemKey: Shared_MatrixItemKey, ItemLabel: string) {
|
|
921
|
+
super();
|
|
922
|
+
this.ItemKey = ItemKey;
|
|
923
|
+
this.ItemLabel = ItemLabel;
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
export function Spec_MatrixItem_$reflection(): TypeInfo {
|
|
928
|
+
return record_type("F1.Studio.Spec.MatrixItem", [], Spec_MatrixItem, () => [["ItemKey", Shared_MatrixItemKey_$reflection()], ["ItemLabel", string_type]]);
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
export class Spec_MatrixInfo extends Record implements IEquatable<Spec_MatrixInfo>, IComparable<Spec_MatrixInfo> {
|
|
932
|
+
readonly Items: FSharpList<Shared_FieldOption>;
|
|
933
|
+
readonly Options: FSharpList<Shared_FieldOption>;
|
|
934
|
+
constructor(Items: FSharpList<Shared_FieldOption>, Options: FSharpList<Shared_FieldOption>) {
|
|
935
|
+
super();
|
|
936
|
+
this.Items = Items;
|
|
937
|
+
this.Options = Options;
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
export function Spec_MatrixInfo_$reflection(): TypeInfo {
|
|
942
|
+
return record_type("F1.Studio.Spec.MatrixInfo", [], Spec_MatrixInfo, () => [["Items", list_type(Shared_FieldOption_$reflection())], ["Options", list_type(Shared_FieldOption_$reflection())]]);
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
export class Spec_SignatureInfo extends Record implements IEquatable<Spec_SignatureInfo>, IComparable<Spec_SignatureInfo> {
|
|
946
|
+
readonly Value: Option<string>;
|
|
947
|
+
constructor(Value: Option<string>) {
|
|
948
|
+
super();
|
|
949
|
+
this.Value = Value;
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
export function Spec_SignatureInfo_$reflection(): TypeInfo {
|
|
954
|
+
return record_type("F1.Studio.Spec.SignatureInfo", [], Spec_SignatureInfo, () => [["Value", option_type(string_type)]]);
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
export class Spec_PluginFieldConfig extends Record implements IEquatable<Spec_PluginFieldConfig>, IComparable<Spec_PluginFieldConfig> {
|
|
958
|
+
readonly PluginId: string;
|
|
959
|
+
readonly FieldName: string;
|
|
960
|
+
constructor(PluginId: string, FieldName: string) {
|
|
961
|
+
super();
|
|
962
|
+
this.PluginId = PluginId;
|
|
963
|
+
this.FieldName = FieldName;
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
export function Spec_PluginFieldConfig_$reflection(): TypeInfo {
|
|
968
|
+
return record_type("F1.Studio.Spec.PluginFieldConfig", [], Spec_PluginFieldConfig, () => [["PluginId", string_type], ["FieldName", string_type]]);
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
export type Spec_FieldType_$union =
|
|
972
|
+
| Spec_FieldType<0>
|
|
973
|
+
| Spec_FieldType<1>
|
|
974
|
+
| Spec_FieldType<2>
|
|
975
|
+
| Spec_FieldType<3>
|
|
976
|
+
| Spec_FieldType<4>
|
|
977
|
+
| Spec_FieldType<5>
|
|
978
|
+
| Spec_FieldType<6>
|
|
979
|
+
| Spec_FieldType<7>
|
|
980
|
+
| Spec_FieldType<8>
|
|
981
|
+
| Spec_FieldType<9>
|
|
982
|
+
| Spec_FieldType<10>
|
|
983
|
+
| Spec_FieldType<11>
|
|
984
|
+
| Spec_FieldType<12>
|
|
985
|
+
| Spec_FieldType<13>
|
|
986
|
+
| Spec_FieldType<14>
|
|
987
|
+
| Spec_FieldType<15>
|
|
988
|
+
| Spec_FieldType<16>
|
|
989
|
+
| Spec_FieldType<17>
|
|
990
|
+
| Spec_FieldType<18>
|
|
991
|
+
| Spec_FieldType<19>
|
|
992
|
+
| Spec_FieldType<20>
|
|
993
|
+
| Spec_FieldType<21>
|
|
994
|
+
| Spec_FieldType<22>
|
|
995
|
+
|
|
996
|
+
export type Spec_FieldType_$cases = {
|
|
997
|
+
0: ["Text", [Spec_TextInfo]],
|
|
998
|
+
1: ["TextArea", [Spec_TextInfo]],
|
|
999
|
+
2: ["Email", [Spec_TextInfo]],
|
|
1000
|
+
3: ["Password", [Spec_TextInfo]],
|
|
1001
|
+
4: ["Search", [Spec_TextInfo]],
|
|
1002
|
+
5: ["Color", [Spec_TextInfo]],
|
|
1003
|
+
6: ["Number", [Spec_TextInfo]],
|
|
1004
|
+
7: ["Tel", [Spec_TextInfo]],
|
|
1005
|
+
8: ["Date", [Spec_TextInfo]],
|
|
1006
|
+
9: ["DateTimeLocal", [Spec_TextInfo]],
|
|
1007
|
+
10: ["Time", [Spec_TextInfo]],
|
|
1008
|
+
11: ["Checkbox", [Spec_BooleanInfo]],
|
|
1009
|
+
12: ["Radio", [Spec_SingleChoiceInfo]],
|
|
1010
|
+
13: ["SingleChoice", [Spec_SingleChoiceInfo]],
|
|
1011
|
+
14: ["Dropdown", [Spec_SingleChoiceInfo]],
|
|
1012
|
+
15: ["MultiChoice", [Spec_MultiChoiceInfo]],
|
|
1013
|
+
16: ["CheckboxList", [Spec_MultiChoiceInfo]],
|
|
1014
|
+
17: ["TagList", [Spec_MultiChoiceInfo]],
|
|
1015
|
+
18: ["TextAutoComplete", [Spec_SingleChoiceInfo]],
|
|
1016
|
+
19: ["Matrix", [Spec_MatrixInfo]],
|
|
1017
|
+
20: ["Signature", [Spec_SignatureInfo]],
|
|
1018
|
+
21: ["Message", [Spec_MessageInfo]],
|
|
1019
|
+
22: ["PluginField", [Spec_PluginFieldConfig]]
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
export function Spec_FieldType_Text(Item: Spec_TextInfo) {
|
|
1023
|
+
return new Spec_FieldType<0>(0, [Item]);
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
export function Spec_FieldType_TextArea(Item: Spec_TextInfo) {
|
|
1027
|
+
return new Spec_FieldType<1>(1, [Item]);
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
export function Spec_FieldType_Email(Item: Spec_TextInfo) {
|
|
1031
|
+
return new Spec_FieldType<2>(2, [Item]);
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
export function Spec_FieldType_Password(Item: Spec_TextInfo) {
|
|
1035
|
+
return new Spec_FieldType<3>(3, [Item]);
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
export function Spec_FieldType_Search(Item: Spec_TextInfo) {
|
|
1039
|
+
return new Spec_FieldType<4>(4, [Item]);
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
export function Spec_FieldType_Color(Item: Spec_TextInfo) {
|
|
1043
|
+
return new Spec_FieldType<5>(5, [Item]);
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
export function Spec_FieldType_Number(Item: Spec_TextInfo) {
|
|
1047
|
+
return new Spec_FieldType<6>(6, [Item]);
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
export function Spec_FieldType_Tel(Item: Spec_TextInfo) {
|
|
1051
|
+
return new Spec_FieldType<7>(7, [Item]);
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
export function Spec_FieldType_Date(Item: Spec_TextInfo) {
|
|
1055
|
+
return new Spec_FieldType<8>(8, [Item]);
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
export function Spec_FieldType_DateTimeLocal(Item: Spec_TextInfo) {
|
|
1059
|
+
return new Spec_FieldType<9>(9, [Item]);
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
export function Spec_FieldType_Time(Item: Spec_TextInfo) {
|
|
1063
|
+
return new Spec_FieldType<10>(10, [Item]);
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
export function Spec_FieldType_Checkbox(Item: Spec_BooleanInfo) {
|
|
1067
|
+
return new Spec_FieldType<11>(11, [Item]);
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
export function Spec_FieldType_Radio(Item: Spec_SingleChoiceInfo) {
|
|
1071
|
+
return new Spec_FieldType<12>(12, [Item]);
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
export function Spec_FieldType_SingleChoice(Item: Spec_SingleChoiceInfo) {
|
|
1075
|
+
return new Spec_FieldType<13>(13, [Item]);
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
export function Spec_FieldType_Dropdown(Item: Spec_SingleChoiceInfo) {
|
|
1079
|
+
return new Spec_FieldType<14>(14, [Item]);
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
export function Spec_FieldType_MultiChoice(Item: Spec_MultiChoiceInfo) {
|
|
1083
|
+
return new Spec_FieldType<15>(15, [Item]);
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
export function Spec_FieldType_CheckboxList(Item: Spec_MultiChoiceInfo) {
|
|
1087
|
+
return new Spec_FieldType<16>(16, [Item]);
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
export function Spec_FieldType_TagList(Item: Spec_MultiChoiceInfo) {
|
|
1091
|
+
return new Spec_FieldType<17>(17, [Item]);
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
export function Spec_FieldType_TextAutoComplete(Item: Spec_SingleChoiceInfo) {
|
|
1095
|
+
return new Spec_FieldType<18>(18, [Item]);
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
export function Spec_FieldType_Matrix(Item: Spec_MatrixInfo) {
|
|
1099
|
+
return new Spec_FieldType<19>(19, [Item]);
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
export function Spec_FieldType_Signature(Item: Spec_SignatureInfo) {
|
|
1103
|
+
return new Spec_FieldType<20>(20, [Item]);
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
export function Spec_FieldType_Message(Item: Spec_MessageInfo) {
|
|
1107
|
+
return new Spec_FieldType<21>(21, [Item]);
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
export function Spec_FieldType_PluginField(Item: Spec_PluginFieldConfig) {
|
|
1111
|
+
return new Spec_FieldType<22>(22, [Item]);
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
export class Spec_FieldType<Tag extends keyof Spec_FieldType_$cases> extends Union<Tag, Spec_FieldType_$cases[Tag][0]> {
|
|
1115
|
+
constructor(readonly tag: Tag, readonly fields: Spec_FieldType_$cases[Tag][1]) {
|
|
1116
|
+
super();
|
|
1117
|
+
}
|
|
1118
|
+
cases() {
|
|
1119
|
+
return ["Text", "TextArea", "Email", "Password", "Search", "Color", "Number", "Tel", "Date", "DateTimeLocal", "Time", "Checkbox", "Radio", "SingleChoice", "Dropdown", "MultiChoice", "CheckboxList", "TagList", "TextAutoComplete", "Matrix", "Signature", "Message", "PluginField"];
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
export function Spec_FieldType_$reflection(): TypeInfo {
|
|
1124
|
+
return union_type("F1.Studio.Spec.FieldType", [], Spec_FieldType, () => [[["Item", Spec_TextInfo_$reflection()]], [["Item", Spec_TextInfo_$reflection()]], [["Item", Spec_TextInfo_$reflection()]], [["Item", Spec_TextInfo_$reflection()]], [["Item", Spec_TextInfo_$reflection()]], [["Item", Spec_TextInfo_$reflection()]], [["Item", Spec_TextInfo_$reflection()]], [["Item", Spec_TextInfo_$reflection()]], [["Item", Spec_TextInfo_$reflection()]], [["Item", Spec_TextInfo_$reflection()]], [["Item", Spec_TextInfo_$reflection()]], [["Item", Spec_BooleanInfo_$reflection()]], [["Item", Spec_SingleChoiceInfo_$reflection()]], [["Item", Spec_SingleChoiceInfo_$reflection()]], [["Item", Spec_SingleChoiceInfo_$reflection()]], [["Item", Spec_MultiChoiceInfo_$reflection()]], [["Item", Spec_MultiChoiceInfo_$reflection()]], [["Item", Spec_MultiChoiceInfo_$reflection()]], [["Item", Spec_SingleChoiceInfo_$reflection()]], [["Item", Spec_MatrixInfo_$reflection()]], [["Item", Spec_SignatureInfo_$reflection()]], [["Item", Spec_MessageInfo_$reflection()]], [["Item", Spec_PluginFieldConfig_$reflection()]]]);
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
export class Spec_FieldAnswerFlag extends Record implements IEquatable<Spec_FieldAnswerFlag>, IComparable<Spec_FieldAnswerFlag> {
|
|
1128
|
+
readonly OptionKey: string;
|
|
1129
|
+
readonly Label: string;
|
|
1130
|
+
constructor(OptionKey: string, Label: string) {
|
|
1131
|
+
super();
|
|
1132
|
+
this.OptionKey = OptionKey;
|
|
1133
|
+
this.Label = Label;
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
export function Spec_FieldAnswerFlag_$reflection(): TypeInfo {
|
|
1138
|
+
return record_type("F1.Studio.Spec.FieldAnswerFlag", [], Spec_FieldAnswerFlag, () => [["OptionKey", string_type], ["Label", string_type]]);
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
export class Spec_FormField$1<FieldType> extends Record implements IEquatable<Spec_FormField$1<FieldType>>, IComparable<Spec_FormField$1<FieldType>> {
|
|
1142
|
+
readonly FieldOrder: int32;
|
|
1143
|
+
readonly FieldKey: Shared_FieldKey;
|
|
1144
|
+
readonly Label: string;
|
|
1145
|
+
readonly Notes: Option<string>;
|
|
1146
|
+
readonly DependsOn: Option<Spec_DependsOn>;
|
|
1147
|
+
readonly IsOptional: boolean;
|
|
1148
|
+
readonly IsDeprecated: boolean;
|
|
1149
|
+
readonly FieldType: FieldType;
|
|
1150
|
+
constructor(FieldOrder: int32, FieldKey: Shared_FieldKey, Label: string, Notes: Option<string>, DependsOn: Option<Spec_DependsOn>, IsOptional: boolean, IsDeprecated: boolean, FieldType: FieldType) {
|
|
1151
|
+
super();
|
|
1152
|
+
this.FieldOrder = (FieldOrder | 0);
|
|
1153
|
+
this.FieldKey = FieldKey;
|
|
1154
|
+
this.Label = Label;
|
|
1155
|
+
this.Notes = Notes;
|
|
1156
|
+
this.DependsOn = DependsOn;
|
|
1157
|
+
this.IsOptional = IsOptional;
|
|
1158
|
+
this.IsDeprecated = IsDeprecated;
|
|
1159
|
+
this.FieldType = FieldType;
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
export function Spec_FormField$1_$reflection(gen0: TypeInfo): TypeInfo {
|
|
1164
|
+
return record_type("F1.Studio.Spec.FormField`1", [gen0], Spec_FormField$1, () => [["FieldOrder", int32_type], ["FieldKey", Shared_FieldKey_$reflection()], ["Label", string_type], ["Notes", option_type(string_type)], ["DependsOn", option_type(Spec_DependsOn_$reflection())], ["IsOptional", bool_type], ["IsDeprecated", bool_type], ["FieldType", gen0]]);
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
export class Spec_FormStep$1<FieldType> extends Record implements IEquatable<Spec_FormStep$1<FieldType>>, IComparable<Spec_FormStep$1<FieldType>> {
|
|
1168
|
+
readonly StepOrder: int32;
|
|
1169
|
+
readonly StepLabel: string;
|
|
1170
|
+
readonly Fields: FSharpList<Spec_FormField$1<FieldType>>;
|
|
1171
|
+
constructor(StepOrder: int32, StepLabel: string, Fields: FSharpList<Spec_FormField$1<FieldType>>) {
|
|
1172
|
+
super();
|
|
1173
|
+
this.StepOrder = (StepOrder | 0);
|
|
1174
|
+
this.StepLabel = StepLabel;
|
|
1175
|
+
this.Fields = Fields;
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
export function Spec_FormStep$1_$reflection(gen0: TypeInfo): TypeInfo {
|
|
1180
|
+
return record_type("F1.Studio.Spec.FormStep`1", [gen0], Spec_FormStep$1, () => [["StepOrder", int32_type], ["StepLabel", string_type], ["Fields", list_type(Spec_FormField$1_$reflection(gen0))]]);
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
export type Spec_ScoreColor_$union =
|
|
1184
|
+
| Spec_ScoreColor<0>
|
|
1185
|
+
| Spec_ScoreColor<1>
|
|
1186
|
+
| Spec_ScoreColor<2>
|
|
1187
|
+
| Spec_ScoreColor<3>
|
|
1188
|
+
| Spec_ScoreColor<4>
|
|
1189
|
+
| Spec_ScoreColor<5>
|
|
1190
|
+
| Spec_ScoreColor<6>
|
|
1191
|
+
|
|
1192
|
+
export type Spec_ScoreColor_$cases = {
|
|
1193
|
+
0: ["Unspecified", []],
|
|
1194
|
+
1: ["Primary", []],
|
|
1195
|
+
2: ["Link", []],
|
|
1196
|
+
3: ["Info", []],
|
|
1197
|
+
4: ["Success", []],
|
|
1198
|
+
5: ["Warning", []],
|
|
1199
|
+
6: ["Danger", []]
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
export function Spec_ScoreColor_Unspecified() {
|
|
1203
|
+
return new Spec_ScoreColor<0>(0, []);
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
export function Spec_ScoreColor_Primary() {
|
|
1207
|
+
return new Spec_ScoreColor<1>(1, []);
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
export function Spec_ScoreColor_Link() {
|
|
1211
|
+
return new Spec_ScoreColor<2>(2, []);
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
export function Spec_ScoreColor_Info() {
|
|
1215
|
+
return new Spec_ScoreColor<3>(3, []);
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
export function Spec_ScoreColor_Success() {
|
|
1219
|
+
return new Spec_ScoreColor<4>(4, []);
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
export function Spec_ScoreColor_Warning() {
|
|
1223
|
+
return new Spec_ScoreColor<5>(5, []);
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
export function Spec_ScoreColor_Danger() {
|
|
1227
|
+
return new Spec_ScoreColor<6>(6, []);
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
export class Spec_ScoreColor<Tag extends keyof Spec_ScoreColor_$cases> extends Union<Tag, Spec_ScoreColor_$cases[Tag][0]> {
|
|
1231
|
+
constructor(readonly tag: Tag, readonly fields: Spec_ScoreColor_$cases[Tag][1]) {
|
|
1232
|
+
super();
|
|
1233
|
+
}
|
|
1234
|
+
cases() {
|
|
1235
|
+
return ["Unspecified", "Primary", "Link", "Info", "Success", "Warning", "Danger"];
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
export function Spec_ScoreColor_$reflection(): TypeInfo {
|
|
1240
|
+
return union_type("F1.Studio.Spec.ScoreColor", [], Spec_ScoreColor, () => [[], [], [], [], [], [], []]);
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
export class Spec_ScoreRange extends Record implements IEquatable<Spec_ScoreRange>, IComparable<Spec_ScoreRange> {
|
|
1244
|
+
readonly Id: string;
|
|
1245
|
+
readonly Min: int32;
|
|
1246
|
+
readonly Max: int32;
|
|
1247
|
+
readonly Label: string;
|
|
1248
|
+
readonly Tag: Spec_ScoreColor_$union;
|
|
1249
|
+
constructor(Id: string, Min: int32, Max: int32, Label: string, Tag: Spec_ScoreColor_$union) {
|
|
1250
|
+
super();
|
|
1251
|
+
this.Id = Id;
|
|
1252
|
+
this.Min = (Min | 0);
|
|
1253
|
+
this.Max = (Max | 0);
|
|
1254
|
+
this.Label = Label;
|
|
1255
|
+
this.Tag = Tag;
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
export function Spec_ScoreRange_$reflection(): TypeInfo {
|
|
1260
|
+
return record_type("F1.Studio.Spec.ScoreRange", [], Spec_ScoreRange, () => [["Id", class_type("System.Guid")], ["Min", int32_type], ["Max", int32_type], ["Label", string_type], ["Tag", Spec_ScoreColor_$reflection()]]);
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
export class Spec_Score extends Record implements IEquatable<Spec_Score>, IComparable<Spec_Score> {
|
|
1264
|
+
readonly MaxScore: int32;
|
|
1265
|
+
readonly ScoreRanges: FSharpList<Spec_ScoreRange>;
|
|
1266
|
+
constructor(MaxScore: int32, ScoreRanges: FSharpList<Spec_ScoreRange>) {
|
|
1267
|
+
super();
|
|
1268
|
+
this.MaxScore = (MaxScore | 0);
|
|
1269
|
+
this.ScoreRanges = ScoreRanges;
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
export function Spec_Score_$reflection(): TypeInfo {
|
|
1274
|
+
return record_type("F1.Studio.Spec.Score", [], Spec_Score, () => [["MaxScore", int32_type], ["ScoreRanges", list_type(Spec_ScoreRange_$reflection())]]);
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
export class Spec_FormSpec$1<FieldType> extends Record implements IEquatable<Spec_FormSpec$1<FieldType>>, IComparable<Spec_FormSpec$1<FieldType>> {
|
|
1278
|
+
readonly Id: string;
|
|
1279
|
+
readonly Code: Option<string>;
|
|
1280
|
+
readonly Title: string;
|
|
1281
|
+
readonly Abstract: string;
|
|
1282
|
+
readonly Version: string;
|
|
1283
|
+
readonly FormSpecVersion: string;
|
|
1284
|
+
readonly Steps: FSharpList<Spec_FormStep$1<FieldType>>;
|
|
1285
|
+
readonly CategoryTags: FSharpList<string>;
|
|
1286
|
+
readonly Score: Option<Spec_Score>;
|
|
1287
|
+
readonly AssociatedCodes: FSharpList<string>;
|
|
1288
|
+
readonly RequiresReview: boolean;
|
|
1289
|
+
readonly RequiresReviewAndApproval: boolean;
|
|
1290
|
+
readonly ClinicalPathway: Option<ClinicalPathway_ClinicalPathwaySpec>;
|
|
1291
|
+
constructor(Id: string, Code: Option<string>, Title: string, Abstract: string, Version: string, FormSpecVersion: string, Steps: FSharpList<Spec_FormStep$1<FieldType>>, CategoryTags: FSharpList<string>, Score: Option<Spec_Score>, AssociatedCodes: FSharpList<string>, RequiresReview: boolean, RequiresReviewAndApproval: boolean, ClinicalPathway: Option<ClinicalPathway_ClinicalPathwaySpec>) {
|
|
1292
|
+
super();
|
|
1293
|
+
this.Id = Id;
|
|
1294
|
+
this.Code = Code;
|
|
1295
|
+
this.Title = Title;
|
|
1296
|
+
this.Abstract = Abstract;
|
|
1297
|
+
this.Version = Version;
|
|
1298
|
+
this.FormSpecVersion = FormSpecVersion;
|
|
1299
|
+
this.Steps = Steps;
|
|
1300
|
+
this.CategoryTags = CategoryTags;
|
|
1301
|
+
this.Score = Score;
|
|
1302
|
+
this.AssociatedCodes = AssociatedCodes;
|
|
1303
|
+
this.RequiresReview = RequiresReview;
|
|
1304
|
+
this.RequiresReviewAndApproval = RequiresReviewAndApproval;
|
|
1305
|
+
this.ClinicalPathway = ClinicalPathway;
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
export function Spec_FormSpec$1_$reflection(gen0: TypeInfo): TypeInfo {
|
|
1310
|
+
return record_type("F1.Studio.Spec.FormSpec`1", [gen0], Spec_FormSpec$1, () => [["Id", class_type("System.Guid")], ["Code", option_type(string_type)], ["Title", string_type], ["Abstract", string_type], ["Version", string_type], ["FormSpecVersion", string_type], ["Steps", list_type(Spec_FormStep$1_$reflection(gen0))], ["CategoryTags", list_type(string_type)], ["Score", option_type(Spec_Score_$reflection())], ["AssociatedCodes", list_type(string_type)], ["RequiresReview", bool_type], ["RequiresReviewAndApproval", bool_type], ["ClinicalPathway", option_type(ClinicalPathway_ClinicalPathwaySpec_$reflection())]]);
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
export function Spec_Evaluator__get_Key(x: Spec_Evaluator_$union): string {
|
|
1314
|
+
switch (x.tag) {
|
|
1315
|
+
case /* NotEquals */ 1:
|
|
1316
|
+
return "Not Equals";
|
|
1317
|
+
case /* GreaterThan */ 2:
|
|
1318
|
+
return "Greater Than";
|
|
1319
|
+
case /* GreaterThanOrEquals */ 3:
|
|
1320
|
+
return "Greater Than Or Equals";
|
|
1321
|
+
case /* LessThan */ 4:
|
|
1322
|
+
return "Less Than";
|
|
1323
|
+
case /* LessThanOrEquals */ 5:
|
|
1324
|
+
return "Less Than Or Equals";
|
|
1325
|
+
case /* Exists */ 6:
|
|
1326
|
+
return "Exists";
|
|
1327
|
+
case /* IsEmpty */ 7:
|
|
1328
|
+
return "Is Empty";
|
|
1329
|
+
case /* Contains */ 8:
|
|
1330
|
+
return "Contains";
|
|
1331
|
+
default:
|
|
1332
|
+
return "Equals";
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
export function Spec_tryEvaluationKeyToEvaluation(str: string): Option<Spec_Evaluator_$union> {
|
|
1337
|
+
switch (str) {
|
|
1338
|
+
case "Equals":
|
|
1339
|
+
return Spec_Evaluator_Equals();
|
|
1340
|
+
case "Not Equals":
|
|
1341
|
+
return Spec_Evaluator_NotEquals();
|
|
1342
|
+
case "Greater Than":
|
|
1343
|
+
return Spec_Evaluator_GreaterThan();
|
|
1344
|
+
case "Greater Than Or Equals":
|
|
1345
|
+
return Spec_Evaluator_GreaterThanOrEquals();
|
|
1346
|
+
case "Less Than":
|
|
1347
|
+
return Spec_Evaluator_LessThan();
|
|
1348
|
+
case "Less Than Or Equals":
|
|
1349
|
+
return Spec_Evaluator_LessThanOrEquals();
|
|
1350
|
+
case "Exists":
|
|
1351
|
+
return Spec_Evaluator_Exists();
|
|
1352
|
+
case "Is Empty":
|
|
1353
|
+
return Spec_Evaluator_IsEmpty();
|
|
1354
|
+
case "Contains":
|
|
1355
|
+
return Spec_Evaluator_Contains();
|
|
1356
|
+
default:
|
|
1357
|
+
return undefined;
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
export const Spec_evaluators: FSharpList<Spec_Evaluator_$union> = ofArray([Spec_Evaluator_Equals(), Spec_Evaluator_NotEquals(), Spec_Evaluator_GreaterThan(), Spec_Evaluator_GreaterThanOrEquals(), Spec_Evaluator_LessThan(), Spec_Evaluator_LessThanOrEquals(), Spec_Evaluator_Exists(), Spec_Evaluator_IsEmpty(), Spec_Evaluator_Contains()]);
|
|
1362
|
+
|
|
1363
|
+
export function Spec_SpecialTextType__get_Label(x: Spec_SpecialTextType_$union): string {
|
|
1364
|
+
switch (x.tag) {
|
|
1365
|
+
case /* BloodPressureType */ 1:
|
|
1366
|
+
return "Blood Pressure";
|
|
1367
|
+
case /* DiastolicBloodPressureType */ 2:
|
|
1368
|
+
return "Diastolic Blood Pressure";
|
|
1369
|
+
case /* SystolicBloodPressureType */ 3:
|
|
1370
|
+
return "Systolic Blood Pressure";
|
|
1371
|
+
case /* HeightType */ 4:
|
|
1372
|
+
return "Height";
|
|
1373
|
+
case /* WeightType */ 5:
|
|
1374
|
+
return "Weight";
|
|
1375
|
+
case /* PulseRateType */ 6:
|
|
1376
|
+
return "Pulse Rate";
|
|
1377
|
+
case /* HeartRateType */ 7:
|
|
1378
|
+
return "Heart Rate";
|
|
1379
|
+
case /* RespirationRateType */ 8:
|
|
1380
|
+
return "Respiration Rate";
|
|
1381
|
+
case /* OxygenSaturationType */ 9:
|
|
1382
|
+
return "Oxygen Saturation";
|
|
1383
|
+
default:
|
|
1384
|
+
return "Body Temperature";
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
export const Spec_availableSpecialTextType: FSharpList<Spec_SpecialTextType_$union> = ofArray([Spec_SpecialTextType_BodyTemperatureType(), Spec_SpecialTextType_BloodPressureType(), Spec_SpecialTextType_DiastolicBloodPressureType(), Spec_SpecialTextType_SystolicBloodPressureType(), Spec_SpecialTextType_HeightType(), Spec_SpecialTextType_WeightType(), Spec_SpecialTextType_PulseRateType(), Spec_SpecialTextType_HeartRateType(), Spec_SpecialTextType_RespirationRateType(), Spec_SpecialTextType_OxygenSaturationType()]);
|
|
1389
|
+
|
|
1390
|
+
export function Spec_ScoreColor__get_Value(x: Spec_ScoreColor_$union): int32 {
|
|
1391
|
+
switch (x.tag) {
|
|
1392
|
+
case /* Primary */ 1:
|
|
1393
|
+
return 1;
|
|
1394
|
+
case /* Link */ 2:
|
|
1395
|
+
return 2;
|
|
1396
|
+
case /* Info */ 3:
|
|
1397
|
+
return 3;
|
|
1398
|
+
case /* Success */ 4:
|
|
1399
|
+
return 4;
|
|
1400
|
+
case /* Warning */ 5:
|
|
1401
|
+
return 5;
|
|
1402
|
+
case /* Danger */ 6:
|
|
1403
|
+
return 6;
|
|
1404
|
+
default:
|
|
1405
|
+
return 0;
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
export function Spec_scoreColorFromIndex(index: int32): Spec_ScoreColor_$union {
|
|
1410
|
+
switch (index) {
|
|
1411
|
+
case 0:
|
|
1412
|
+
return Spec_ScoreColor_Unspecified();
|
|
1413
|
+
case 1:
|
|
1414
|
+
return Spec_ScoreColor_Primary();
|
|
1415
|
+
case 2:
|
|
1416
|
+
return Spec_ScoreColor_Link();
|
|
1417
|
+
case 3:
|
|
1418
|
+
return Spec_ScoreColor_Info();
|
|
1419
|
+
case 4:
|
|
1420
|
+
return Spec_ScoreColor_Success();
|
|
1421
|
+
case 5:
|
|
1422
|
+
return Spec_ScoreColor_Warning();
|
|
1423
|
+
case 6:
|
|
1424
|
+
return Spec_ScoreColor_Danger();
|
|
1425
|
+
default:
|
|
1426
|
+
throw new Error(`Invalid score color index ${index}`);
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
export class ClinicalPathway_MedicationAction extends Record implements IEquatable<ClinicalPathway_MedicationAction>, IComparable<ClinicalPathway_MedicationAction> {
|
|
1431
|
+
readonly Name: string;
|
|
1432
|
+
readonly Dose: string;
|
|
1433
|
+
readonly Route: string;
|
|
1434
|
+
readonly Frequency: string;
|
|
1435
|
+
readonly Duration: string;
|
|
1436
|
+
readonly AsNeeded: boolean;
|
|
1437
|
+
constructor(Name: string, Dose: string, Route: string, Frequency: string, Duration: string, AsNeeded: boolean) {
|
|
1438
|
+
super();
|
|
1439
|
+
this.Name = Name;
|
|
1440
|
+
this.Dose = Dose;
|
|
1441
|
+
this.Route = Route;
|
|
1442
|
+
this.Frequency = Frequency;
|
|
1443
|
+
this.Duration = Duration;
|
|
1444
|
+
this.AsNeeded = AsNeeded;
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1448
|
+
export function ClinicalPathway_MedicationAction_$reflection(): TypeInfo {
|
|
1449
|
+
return record_type("F1.Studio.ClinicalPathway.MedicationAction", [], ClinicalPathway_MedicationAction, () => [["Name", string_type], ["Dose", string_type], ["Route", string_type], ["Frequency", string_type], ["Duration", string_type], ["AsNeeded", bool_type]]);
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1452
|
+
export class ClinicalPathway_TestAction extends Record implements IEquatable<ClinicalPathway_TestAction>, IComparable<ClinicalPathway_TestAction> {
|
|
1453
|
+
readonly TestName: string;
|
|
1454
|
+
readonly TestType: string;
|
|
1455
|
+
readonly RequiresResult: boolean;
|
|
1456
|
+
readonly CriticalValues: Option<FSharpList<[string, string]>>;
|
|
1457
|
+
constructor(TestName: string, TestType: string, RequiresResult: boolean, CriticalValues: Option<FSharpList<[string, string]>>) {
|
|
1458
|
+
super();
|
|
1459
|
+
this.TestName = TestName;
|
|
1460
|
+
this.TestType = TestType;
|
|
1461
|
+
this.RequiresResult = RequiresResult;
|
|
1462
|
+
this.CriticalValues = CriticalValues;
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
export function ClinicalPathway_TestAction_$reflection(): TypeInfo {
|
|
1467
|
+
return record_type("F1.Studio.ClinicalPathway.TestAction", [], ClinicalPathway_TestAction, () => [["TestName", string_type], ["TestType", string_type], ["RequiresResult", bool_type], ["CriticalValues", option_type(list_type(tuple_type(string_type, string_type)))]]);
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
export type ClinicalPathway_ReferralUrgency_$union =
|
|
1471
|
+
| ClinicalPathway_ReferralUrgency<0>
|
|
1472
|
+
| ClinicalPathway_ReferralUrgency<1>
|
|
1473
|
+
| ClinicalPathway_ReferralUrgency<2>
|
|
1474
|
+
|
|
1475
|
+
export type ClinicalPathway_ReferralUrgency_$cases = {
|
|
1476
|
+
0: ["Immediate", []],
|
|
1477
|
+
1: ["Routine", [int32]],
|
|
1478
|
+
2: ["AsNeeded", []]
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
export function ClinicalPathway_ReferralUrgency_Immediate() {
|
|
1482
|
+
return new ClinicalPathway_ReferralUrgency<0>(0, []);
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
export function ClinicalPathway_ReferralUrgency_Routine(days: int32) {
|
|
1486
|
+
return new ClinicalPathway_ReferralUrgency<1>(1, [days]);
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
export function ClinicalPathway_ReferralUrgency_AsNeeded() {
|
|
1490
|
+
return new ClinicalPathway_ReferralUrgency<2>(2, []);
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
export class ClinicalPathway_ReferralUrgency<Tag extends keyof ClinicalPathway_ReferralUrgency_$cases> extends Union<Tag, ClinicalPathway_ReferralUrgency_$cases[Tag][0]> {
|
|
1494
|
+
constructor(readonly tag: Tag, readonly fields: ClinicalPathway_ReferralUrgency_$cases[Tag][1]) {
|
|
1495
|
+
super();
|
|
1496
|
+
}
|
|
1497
|
+
cases() {
|
|
1498
|
+
return ["Immediate", "Routine", "AsNeeded"];
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
export function ClinicalPathway_ReferralUrgency_$reflection(): TypeInfo {
|
|
1503
|
+
return union_type("F1.Studio.ClinicalPathway.ReferralUrgency", [], ClinicalPathway_ReferralUrgency, () => [[], [["days", int32_type]], []]);
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
export class ClinicalPathway_ReferralAction extends Record implements IEquatable<ClinicalPathway_ReferralAction>, IComparable<ClinicalPathway_ReferralAction> {
|
|
1507
|
+
readonly Target: string;
|
|
1508
|
+
readonly Urgency: ClinicalPathway_ReferralUrgency_$union;
|
|
1509
|
+
readonly Reason: string;
|
|
1510
|
+
constructor(Target: string, Urgency: ClinicalPathway_ReferralUrgency_$union, Reason: string) {
|
|
1511
|
+
super();
|
|
1512
|
+
this.Target = Target;
|
|
1513
|
+
this.Urgency = Urgency;
|
|
1514
|
+
this.Reason = Reason;
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
export function ClinicalPathway_ReferralAction_$reflection(): TypeInfo {
|
|
1519
|
+
return record_type("F1.Studio.ClinicalPathway.ReferralAction", [], ClinicalPathway_ReferralAction, () => [["Target", string_type], ["Urgency", ClinicalPathway_ReferralUrgency_$reflection()], ["Reason", string_type]]);
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
export class ClinicalPathway_EducationAction extends Record implements IEquatable<ClinicalPathway_EducationAction>, IComparable<ClinicalPathway_EducationAction> {
|
|
1523
|
+
readonly Topics: FSharpList<string>;
|
|
1524
|
+
readonly Materials: Option<FSharpList<string>>;
|
|
1525
|
+
constructor(Topics: FSharpList<string>, Materials: Option<FSharpList<string>>) {
|
|
1526
|
+
super();
|
|
1527
|
+
this.Topics = Topics;
|
|
1528
|
+
this.Materials = Materials;
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
export function ClinicalPathway_EducationAction_$reflection(): TypeInfo {
|
|
1533
|
+
return record_type("F1.Studio.ClinicalPathway.EducationAction", [], ClinicalPathway_EducationAction, () => [["Topics", list_type(string_type)], ["Materials", option_type(list_type(string_type))]]);
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
export class ClinicalPathway_ProcedureAction extends Record implements IEquatable<ClinicalPathway_ProcedureAction>, IComparable<ClinicalPathway_ProcedureAction> {
|
|
1537
|
+
readonly Name: string;
|
|
1538
|
+
readonly Description: string;
|
|
1539
|
+
readonly Duration: Option<string>;
|
|
1540
|
+
constructor(Name: string, Description: string, Duration: Option<string>) {
|
|
1541
|
+
super();
|
|
1542
|
+
this.Name = Name;
|
|
1543
|
+
this.Description = Description;
|
|
1544
|
+
this.Duration = Duration;
|
|
1545
|
+
}
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
export function ClinicalPathway_ProcedureAction_$reflection(): TypeInfo {
|
|
1549
|
+
return record_type("F1.Studio.ClinicalPathway.ProcedureAction", [], ClinicalPathway_ProcedureAction, () => [["Name", string_type], ["Description", string_type], ["Duration", option_type(string_type)]]);
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
export class ClinicalPathway_DocumentationAction extends Record implements IEquatable<ClinicalPathway_DocumentationAction>, IComparable<ClinicalPathway_DocumentationAction> {
|
|
1553
|
+
readonly FormName: string;
|
|
1554
|
+
readonly Purpose: string;
|
|
1555
|
+
readonly Required: boolean;
|
|
1556
|
+
constructor(FormName: string, Purpose: string, Required: boolean) {
|
|
1557
|
+
super();
|
|
1558
|
+
this.FormName = FormName;
|
|
1559
|
+
this.Purpose = Purpose;
|
|
1560
|
+
this.Required = Required;
|
|
1561
|
+
}
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
export function ClinicalPathway_DocumentationAction_$reflection(): TypeInfo {
|
|
1565
|
+
return record_type("F1.Studio.ClinicalPathway.DocumentationAction", [], ClinicalPathway_DocumentationAction, () => [["FormName", string_type], ["Purpose", string_type], ["Required", bool_type]]);
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
export type ClinicalPathway_TaskPriority_$union =
|
|
1569
|
+
| ClinicalPathway_TaskPriority<0>
|
|
1570
|
+
| ClinicalPathway_TaskPriority<1>
|
|
1571
|
+
| ClinicalPathway_TaskPriority<2>
|
|
1572
|
+
|
|
1573
|
+
export type ClinicalPathway_TaskPriority_$cases = {
|
|
1574
|
+
0: ["High", []],
|
|
1575
|
+
1: ["Medium", []],
|
|
1576
|
+
2: ["Low", []]
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1579
|
+
export function ClinicalPathway_TaskPriority_High() {
|
|
1580
|
+
return new ClinicalPathway_TaskPriority<0>(0, []);
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
export function ClinicalPathway_TaskPriority_Medium() {
|
|
1584
|
+
return new ClinicalPathway_TaskPriority<1>(1, []);
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
export function ClinicalPathway_TaskPriority_Low() {
|
|
1588
|
+
return new ClinicalPathway_TaskPriority<2>(2, []);
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
export class ClinicalPathway_TaskPriority<Tag extends keyof ClinicalPathway_TaskPriority_$cases> extends Union<Tag, ClinicalPathway_TaskPriority_$cases[Tag][0]> {
|
|
1592
|
+
constructor(readonly tag: Tag, readonly fields: ClinicalPathway_TaskPriority_$cases[Tag][1]) {
|
|
1593
|
+
super();
|
|
1594
|
+
}
|
|
1595
|
+
cases() {
|
|
1596
|
+
return ["High", "Medium", "Low"];
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
export function ClinicalPathway_TaskPriority_$reflection(): TypeInfo {
|
|
1601
|
+
return union_type("F1.Studio.ClinicalPathway.TaskPriority", [], ClinicalPathway_TaskPriority, () => [[], [], []]);
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
export type ClinicalPathway_DueDate_$union =
|
|
1605
|
+
| ClinicalPathway_DueDate<0>
|
|
1606
|
+
| ClinicalPathway_DueDate<1>
|
|
1607
|
+
| ClinicalPathway_DueDate<2>
|
|
1608
|
+
| ClinicalPathway_DueDate<3>
|
|
1609
|
+
|
|
1610
|
+
export type ClinicalPathway_DueDate_$cases = {
|
|
1611
|
+
0: ["Today", []],
|
|
1612
|
+
1: ["Tomorrow", []],
|
|
1613
|
+
2: ["DaysFromNow", [int32]],
|
|
1614
|
+
3: ["SpecificDate", [Date]]
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
export function ClinicalPathway_DueDate_Today() {
|
|
1618
|
+
return new ClinicalPathway_DueDate<0>(0, []);
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
export function ClinicalPathway_DueDate_Tomorrow() {
|
|
1622
|
+
return new ClinicalPathway_DueDate<1>(1, []);
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
export function ClinicalPathway_DueDate_DaysFromNow(Item: int32) {
|
|
1626
|
+
return new ClinicalPathway_DueDate<2>(2, [Item]);
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
export function ClinicalPathway_DueDate_SpecificDate(Item: Date) {
|
|
1630
|
+
return new ClinicalPathway_DueDate<3>(3, [Item]);
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
export class ClinicalPathway_DueDate<Tag extends keyof ClinicalPathway_DueDate_$cases> extends Union<Tag, ClinicalPathway_DueDate_$cases[Tag][0]> {
|
|
1634
|
+
constructor(readonly tag: Tag, readonly fields: ClinicalPathway_DueDate_$cases[Tag][1]) {
|
|
1635
|
+
super();
|
|
1636
|
+
}
|
|
1637
|
+
cases() {
|
|
1638
|
+
return ["Today", "Tomorrow", "DaysFromNow", "SpecificDate"];
|
|
1639
|
+
}
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
export function ClinicalPathway_DueDate_$reflection(): TypeInfo {
|
|
1643
|
+
return union_type("F1.Studio.ClinicalPathway.DueDate", [], ClinicalPathway_DueDate, () => [[], [], [["Item", int32_type]], [["Item", class_type("System.DateTimeOffset")]]]);
|
|
1644
|
+
}
|
|
1645
|
+
|
|
1646
|
+
export type ClinicalPathway_RecurrenceEnd_$union =
|
|
1647
|
+
| ClinicalPathway_RecurrenceEnd<0>
|
|
1648
|
+
| ClinicalPathway_RecurrenceEnd<1>
|
|
1649
|
+
| ClinicalPathway_RecurrenceEnd<2>
|
|
1650
|
+
|
|
1651
|
+
export type ClinicalPathway_RecurrenceEnd_$cases = {
|
|
1652
|
+
0: ["OnDate", [Date]],
|
|
1653
|
+
1: ["AfterOccurrences", [int32]],
|
|
1654
|
+
2: ["Never", []]
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
export function ClinicalPathway_RecurrenceEnd_OnDate(Item: Date) {
|
|
1658
|
+
return new ClinicalPathway_RecurrenceEnd<0>(0, [Item]);
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
export function ClinicalPathway_RecurrenceEnd_AfterOccurrences(Item: int32) {
|
|
1662
|
+
return new ClinicalPathway_RecurrenceEnd<1>(1, [Item]);
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
export function ClinicalPathway_RecurrenceEnd_Never() {
|
|
1666
|
+
return new ClinicalPathway_RecurrenceEnd<2>(2, []);
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
export class ClinicalPathway_RecurrenceEnd<Tag extends keyof ClinicalPathway_RecurrenceEnd_$cases> extends Union<Tag, ClinicalPathway_RecurrenceEnd_$cases[Tag][0]> {
|
|
1670
|
+
constructor(readonly tag: Tag, readonly fields: ClinicalPathway_RecurrenceEnd_$cases[Tag][1]) {
|
|
1671
|
+
super();
|
|
1672
|
+
}
|
|
1673
|
+
cases() {
|
|
1674
|
+
return ["OnDate", "AfterOccurrences", "Never"];
|
|
1675
|
+
}
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
export function ClinicalPathway_RecurrenceEnd_$reflection(): TypeInfo {
|
|
1679
|
+
return union_type("F1.Studio.ClinicalPathway.RecurrenceEnd", [], ClinicalPathway_RecurrenceEnd, () => [[["Item", class_type("System.DateTimeOffset")]], [["Item", int32_type]], []]);
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
export class ClinicalPathway_RecurrencePattern extends Record implements IEquatable<ClinicalPathway_RecurrencePattern>, IComparable<ClinicalPathway_RecurrencePattern> {
|
|
1683
|
+
readonly Interval: number;
|
|
1684
|
+
readonly Until: ClinicalPathway_RecurrenceEnd_$union;
|
|
1685
|
+
constructor(Interval: number, Until: ClinicalPathway_RecurrenceEnd_$union) {
|
|
1686
|
+
super();
|
|
1687
|
+
this.Interval = Interval;
|
|
1688
|
+
this.Until = Until;
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
export function ClinicalPathway_RecurrencePattern_$reflection(): TypeInfo {
|
|
1693
|
+
return record_type("F1.Studio.ClinicalPathway.RecurrencePattern", [], ClinicalPathway_RecurrencePattern, () => [["Interval", class_type("System.TimeSpan")], ["Until", ClinicalPathway_RecurrenceEnd_$reflection()]]);
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
export class ClinicalPathway_TaskAction extends Record implements IEquatable<ClinicalPathway_TaskAction>, IComparable<ClinicalPathway_TaskAction> {
|
|
1697
|
+
readonly Category: string;
|
|
1698
|
+
readonly Description: string;
|
|
1699
|
+
readonly Priority: ClinicalPathway_TaskPriority_$union;
|
|
1700
|
+
readonly DueDate: ClinicalPathway_DueDate_$union;
|
|
1701
|
+
readonly Assignee: string;
|
|
1702
|
+
readonly Recurrence: Option<ClinicalPathway_RecurrencePattern>;
|
|
1703
|
+
constructor(Category: string, Description: string, Priority: ClinicalPathway_TaskPriority_$union, DueDate: ClinicalPathway_DueDate_$union, Assignee: string, Recurrence: Option<ClinicalPathway_RecurrencePattern>) {
|
|
1704
|
+
super();
|
|
1705
|
+
this.Category = Category;
|
|
1706
|
+
this.Description = Description;
|
|
1707
|
+
this.Priority = Priority;
|
|
1708
|
+
this.DueDate = DueDate;
|
|
1709
|
+
this.Assignee = Assignee;
|
|
1710
|
+
this.Recurrence = Recurrence;
|
|
1711
|
+
}
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
export function ClinicalPathway_TaskAction_$reflection(): TypeInfo {
|
|
1715
|
+
return record_type("F1.Studio.ClinicalPathway.TaskAction", [], ClinicalPathway_TaskAction, () => [["Category", string_type], ["Description", string_type], ["Priority", ClinicalPathway_TaskPriority_$reflection()], ["DueDate", ClinicalPathway_DueDate_$reflection()], ["Assignee", string_type], ["Recurrence", option_type(ClinicalPathway_RecurrencePattern_$reflection())]]);
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
export type ClinicalPathway_AlertSeverity_$union =
|
|
1719
|
+
| ClinicalPathway_AlertSeverity<0>
|
|
1720
|
+
| ClinicalPathway_AlertSeverity<1>
|
|
1721
|
+
| ClinicalPathway_AlertSeverity<2>
|
|
1722
|
+
| ClinicalPathway_AlertSeverity<3>
|
|
1723
|
+
|
|
1724
|
+
export type ClinicalPathway_AlertSeverity_$cases = {
|
|
1725
|
+
0: ["Low", []],
|
|
1726
|
+
1: ["Medium", []],
|
|
1727
|
+
2: ["High", []],
|
|
1728
|
+
3: ["Critical", []]
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
export function ClinicalPathway_AlertSeverity_Low() {
|
|
1732
|
+
return new ClinicalPathway_AlertSeverity<0>(0, []);
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
export function ClinicalPathway_AlertSeverity_Medium() {
|
|
1736
|
+
return new ClinicalPathway_AlertSeverity<1>(1, []);
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
export function ClinicalPathway_AlertSeverity_High() {
|
|
1740
|
+
return new ClinicalPathway_AlertSeverity<2>(2, []);
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
export function ClinicalPathway_AlertSeverity_Critical() {
|
|
1744
|
+
return new ClinicalPathway_AlertSeverity<3>(3, []);
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
export class ClinicalPathway_AlertSeverity<Tag extends keyof ClinicalPathway_AlertSeverity_$cases> extends Union<Tag, ClinicalPathway_AlertSeverity_$cases[Tag][0]> {
|
|
1748
|
+
constructor(readonly tag: Tag, readonly fields: ClinicalPathway_AlertSeverity_$cases[Tag][1]) {
|
|
1749
|
+
super();
|
|
1750
|
+
}
|
|
1751
|
+
cases() {
|
|
1752
|
+
return ["Low", "Medium", "High", "Critical"];
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
export function ClinicalPathway_AlertSeverity_$reflection(): TypeInfo {
|
|
1757
|
+
return union_type("F1.Studio.ClinicalPathway.AlertSeverity", [], ClinicalPathway_AlertSeverity, () => [[], [], [], []]);
|
|
1758
|
+
}
|
|
1759
|
+
|
|
1760
|
+
export class ClinicalPathway_AlertAction extends Record implements IEquatable<ClinicalPathway_AlertAction>, IComparable<ClinicalPathway_AlertAction> {
|
|
1761
|
+
readonly Category: string;
|
|
1762
|
+
readonly Message: string;
|
|
1763
|
+
readonly Severity: ClinicalPathway_AlertSeverity_$union;
|
|
1764
|
+
readonly ExpiresAfter: Option<number>;
|
|
1765
|
+
constructor(Category: string, Message: string, Severity: ClinicalPathway_AlertSeverity_$union, ExpiresAfter: Option<number>) {
|
|
1766
|
+
super();
|
|
1767
|
+
this.Category = Category;
|
|
1768
|
+
this.Message = Message;
|
|
1769
|
+
this.Severity = Severity;
|
|
1770
|
+
this.ExpiresAfter = ExpiresAfter;
|
|
1771
|
+
}
|
|
1772
|
+
}
|
|
1773
|
+
|
|
1774
|
+
export function ClinicalPathway_AlertAction_$reflection(): TypeInfo {
|
|
1775
|
+
return record_type("F1.Studio.ClinicalPathway.AlertAction", [], ClinicalPathway_AlertAction, () => [["Category", string_type], ["Message", string_type], ["Severity", ClinicalPathway_AlertSeverity_$reflection()], ["ExpiresAfter", option_type(class_type("System.TimeSpan"))]]);
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
export type ClinicalPathway_ProblemStatus_$union =
|
|
1779
|
+
| ClinicalPathway_ProblemStatus<0>
|
|
1780
|
+
| ClinicalPathway_ProblemStatus<1>
|
|
1781
|
+
| ClinicalPathway_ProblemStatus<2>
|
|
1782
|
+
| ClinicalPathway_ProblemStatus<3>
|
|
1783
|
+
|
|
1784
|
+
export type ClinicalPathway_ProblemStatus_$cases = {
|
|
1785
|
+
0: ["Active", []],
|
|
1786
|
+
1: ["Resolved", []],
|
|
1787
|
+
2: ["Chronic", []],
|
|
1788
|
+
3: ["Inactive", []]
|
|
1789
|
+
}
|
|
1790
|
+
|
|
1791
|
+
export function ClinicalPathway_ProblemStatus_Active() {
|
|
1792
|
+
return new ClinicalPathway_ProblemStatus<0>(0, []);
|
|
1793
|
+
}
|
|
1794
|
+
|
|
1795
|
+
export function ClinicalPathway_ProblemStatus_Resolved() {
|
|
1796
|
+
return new ClinicalPathway_ProblemStatus<1>(1, []);
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1799
|
+
export function ClinicalPathway_ProblemStatus_Chronic() {
|
|
1800
|
+
return new ClinicalPathway_ProblemStatus<2>(2, []);
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
export function ClinicalPathway_ProblemStatus_Inactive() {
|
|
1804
|
+
return new ClinicalPathway_ProblemStatus<3>(3, []);
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
export class ClinicalPathway_ProblemStatus<Tag extends keyof ClinicalPathway_ProblemStatus_$cases> extends Union<Tag, ClinicalPathway_ProblemStatus_$cases[Tag][0]> {
|
|
1808
|
+
constructor(readonly tag: Tag, readonly fields: ClinicalPathway_ProblemStatus_$cases[Tag][1]) {
|
|
1809
|
+
super();
|
|
1810
|
+
}
|
|
1811
|
+
cases() {
|
|
1812
|
+
return ["Active", "Resolved", "Chronic", "Inactive"];
|
|
1813
|
+
}
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
export function ClinicalPathway_ProblemStatus_$reflection(): TypeInfo {
|
|
1817
|
+
return union_type("F1.Studio.ClinicalPathway.ProblemStatus", [], ClinicalPathway_ProblemStatus, () => [[], [], [], []]);
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
export class ClinicalPathway_ProblemAction extends Record implements IEquatable<ClinicalPathway_ProblemAction>, IComparable<ClinicalPathway_ProblemAction> {
|
|
1821
|
+
readonly ProblemName: string;
|
|
1822
|
+
readonly IcdCode: Option<string>;
|
|
1823
|
+
readonly Onset: Option<Date>;
|
|
1824
|
+
readonly Status: ClinicalPathway_ProblemStatus_$union;
|
|
1825
|
+
readonly Notes: Option<string>;
|
|
1826
|
+
constructor(ProblemName: string, IcdCode: Option<string>, Onset: Option<Date>, Status: ClinicalPathway_ProblemStatus_$union, Notes: Option<string>) {
|
|
1827
|
+
super();
|
|
1828
|
+
this.ProblemName = ProblemName;
|
|
1829
|
+
this.IcdCode = IcdCode;
|
|
1830
|
+
this.Onset = Onset;
|
|
1831
|
+
this.Status = Status;
|
|
1832
|
+
this.Notes = Notes;
|
|
1833
|
+
}
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1836
|
+
export function ClinicalPathway_ProblemAction_$reflection(): TypeInfo {
|
|
1837
|
+
return record_type("F1.Studio.ClinicalPathway.ProblemAction", [], ClinicalPathway_ProblemAction, () => [["ProblemName", string_type], ["IcdCode", option_type(string_type)], ["Onset", option_type(class_type("System.DateTimeOffset"))], ["Status", ClinicalPathway_ProblemStatus_$reflection()], ["Notes", option_type(string_type)]]);
|
|
1838
|
+
}
|
|
1839
|
+
|
|
1840
|
+
export class ClinicalPathway_PrescriptionAction extends Record implements IEquatable<ClinicalPathway_PrescriptionAction>, IComparable<ClinicalPathway_PrescriptionAction> {
|
|
1841
|
+
readonly Medication: string;
|
|
1842
|
+
readonly Dose: string;
|
|
1843
|
+
readonly Route: string;
|
|
1844
|
+
readonly Frequency: string;
|
|
1845
|
+
readonly Duration: string;
|
|
1846
|
+
readonly Quantity: int32;
|
|
1847
|
+
readonly Refills: int32;
|
|
1848
|
+
readonly Substitution: boolean;
|
|
1849
|
+
readonly Instructions: Option<string>;
|
|
1850
|
+
constructor(Medication: string, Dose: string, Route: string, Frequency: string, Duration: string, Quantity: int32, Refills: int32, Substitution: boolean, Instructions: Option<string>) {
|
|
1851
|
+
super();
|
|
1852
|
+
this.Medication = Medication;
|
|
1853
|
+
this.Dose = Dose;
|
|
1854
|
+
this.Route = Route;
|
|
1855
|
+
this.Frequency = Frequency;
|
|
1856
|
+
this.Duration = Duration;
|
|
1857
|
+
this.Quantity = (Quantity | 0);
|
|
1858
|
+
this.Refills = (Refills | 0);
|
|
1859
|
+
this.Substitution = Substitution;
|
|
1860
|
+
this.Instructions = Instructions;
|
|
1861
|
+
}
|
|
1862
|
+
}
|
|
1863
|
+
|
|
1864
|
+
export function ClinicalPathway_PrescriptionAction_$reflection(): TypeInfo {
|
|
1865
|
+
return record_type("F1.Studio.ClinicalPathway.PrescriptionAction", [], ClinicalPathway_PrescriptionAction, () => [["Medication", string_type], ["Dose", string_type], ["Route", string_type], ["Frequency", string_type], ["Duration", string_type], ["Quantity", int32_type], ["Refills", int32_type], ["Substitution", bool_type], ["Instructions", option_type(string_type)]]);
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1868
|
+
export type ClinicalPathway_FieldValueSource_$union =
|
|
1869
|
+
| ClinicalPathway_FieldValueSource<0>
|
|
1870
|
+
| ClinicalPathway_FieldValueSource<1>
|
|
1871
|
+
| ClinicalPathway_FieldValueSource<2>
|
|
1872
|
+
|
|
1873
|
+
export type ClinicalPathway_FieldValueSource_$cases = {
|
|
1874
|
+
0: ["LiteralValue", [string]],
|
|
1875
|
+
1: ["FieldReference", [Shared_FieldKey]],
|
|
1876
|
+
2: ["OptionKey", [Shared_FieldOptionKey]]
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
export function ClinicalPathway_FieldValueSource_LiteralValue(Item: string) {
|
|
1880
|
+
return new ClinicalPathway_FieldValueSource<0>(0, [Item]);
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1883
|
+
export function ClinicalPathway_FieldValueSource_FieldReference(Item: Shared_FieldKey) {
|
|
1884
|
+
return new ClinicalPathway_FieldValueSource<1>(1, [Item]);
|
|
1885
|
+
}
|
|
1886
|
+
|
|
1887
|
+
export function ClinicalPathway_FieldValueSource_OptionKey(Item: Shared_FieldOptionKey) {
|
|
1888
|
+
return new ClinicalPathway_FieldValueSource<2>(2, [Item]);
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
export class ClinicalPathway_FieldValueSource<Tag extends keyof ClinicalPathway_FieldValueSource_$cases> extends Union<Tag, ClinicalPathway_FieldValueSource_$cases[Tag][0]> {
|
|
1892
|
+
constructor(readonly tag: Tag, readonly fields: ClinicalPathway_FieldValueSource_$cases[Tag][1]) {
|
|
1893
|
+
super();
|
|
1894
|
+
}
|
|
1895
|
+
cases() {
|
|
1896
|
+
return ["LiteralValue", "FieldReference", "OptionKey"];
|
|
1897
|
+
}
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
export function ClinicalPathway_FieldValueSource_$reflection(): TypeInfo {
|
|
1901
|
+
return union_type("F1.Studio.ClinicalPathway.FieldValueSource", [], ClinicalPathway_FieldValueSource, () => [[["Item", string_type]], [["Item", Shared_FieldKey_$reflection()]], [["Item", Shared_FieldOptionKey_$reflection()]]]);
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
export class ClinicalPathway_SetFieldValueAction extends Record implements IEquatable<ClinicalPathway_SetFieldValueAction>, IComparable<ClinicalPathway_SetFieldValueAction> {
|
|
1905
|
+
readonly TargetField: Shared_FieldKey;
|
|
1906
|
+
readonly Value: ClinicalPathway_FieldValueSource_$union;
|
|
1907
|
+
readonly Condition: Option<ClinicalPathway_TransitionCondition_$union>;
|
|
1908
|
+
constructor(TargetField: Shared_FieldKey, Value: ClinicalPathway_FieldValueSource_$union, Condition: Option<ClinicalPathway_TransitionCondition_$union>) {
|
|
1909
|
+
super();
|
|
1910
|
+
this.TargetField = TargetField;
|
|
1911
|
+
this.Value = Value;
|
|
1912
|
+
this.Condition = Condition;
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1916
|
+
export function ClinicalPathway_SetFieldValueAction_$reflection(): TypeInfo {
|
|
1917
|
+
return record_type("F1.Studio.ClinicalPathway.SetFieldValueAction", [], ClinicalPathway_SetFieldValueAction, () => [["TargetField", Shared_FieldKey_$reflection()], ["Value", ClinicalPathway_FieldValueSource_$reflection()], ["Condition", option_type(ClinicalPathway_TransitionCondition_$reflection())]]);
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
export type ClinicalPathway_NavigationType_$union =
|
|
1921
|
+
| ClinicalPathway_NavigationType<0>
|
|
1922
|
+
| ClinicalPathway_NavigationType<1>
|
|
1923
|
+
| ClinicalPathway_NavigationType<2>
|
|
1924
|
+
| ClinicalPathway_NavigationType<3>
|
|
1925
|
+
|
|
1926
|
+
export type ClinicalPathway_NavigationType_$cases = {
|
|
1927
|
+
0: ["OpenInNewTab", []],
|
|
1928
|
+
1: ["ReplaceCurrentForm", []],
|
|
1929
|
+
2: ["OpenAsModal", []],
|
|
1930
|
+
3: ["QueueForLater", []]
|
|
1931
|
+
}
|
|
1932
|
+
|
|
1933
|
+
export function ClinicalPathway_NavigationType_OpenInNewTab() {
|
|
1934
|
+
return new ClinicalPathway_NavigationType<0>(0, []);
|
|
1935
|
+
}
|
|
1936
|
+
|
|
1937
|
+
export function ClinicalPathway_NavigationType_ReplaceCurrentForm() {
|
|
1938
|
+
return new ClinicalPathway_NavigationType<1>(1, []);
|
|
1939
|
+
}
|
|
1940
|
+
|
|
1941
|
+
export function ClinicalPathway_NavigationType_OpenAsModal() {
|
|
1942
|
+
return new ClinicalPathway_NavigationType<2>(2, []);
|
|
1943
|
+
}
|
|
1944
|
+
|
|
1945
|
+
export function ClinicalPathway_NavigationType_QueueForLater() {
|
|
1946
|
+
return new ClinicalPathway_NavigationType<3>(3, []);
|
|
1947
|
+
}
|
|
1948
|
+
|
|
1949
|
+
export class ClinicalPathway_NavigationType<Tag extends keyof ClinicalPathway_NavigationType_$cases> extends Union<Tag, ClinicalPathway_NavigationType_$cases[Tag][0]> {
|
|
1950
|
+
constructor(readonly tag: Tag, readonly fields: ClinicalPathway_NavigationType_$cases[Tag][1]) {
|
|
1951
|
+
super();
|
|
1952
|
+
}
|
|
1953
|
+
cases() {
|
|
1954
|
+
return ["OpenInNewTab", "ReplaceCurrentForm", "OpenAsModal", "QueueForLater"];
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1958
|
+
export function ClinicalPathway_NavigationType_$reflection(): TypeInfo {
|
|
1959
|
+
return union_type("F1.Studio.ClinicalPathway.NavigationType", [], ClinicalPathway_NavigationType, () => [[], [], [], []]);
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1962
|
+
export class ClinicalPathway_NavigateToFormAction extends Record implements IEquatable<ClinicalPathway_NavigateToFormAction>, IComparable<ClinicalPathway_NavigateToFormAction> {
|
|
1963
|
+
readonly FormId: string;
|
|
1964
|
+
readonly FormCode: Option<string>;
|
|
1965
|
+
readonly NavigationType: ClinicalPathway_NavigationType_$union;
|
|
1966
|
+
readonly PreFillMappings: Option<FSharpMap<Shared_FieldKey, Shared_FieldKey>>;
|
|
1967
|
+
readonly ReturnOnComplete: boolean;
|
|
1968
|
+
readonly Condition: Option<ClinicalPathway_TransitionCondition_$union>;
|
|
1969
|
+
constructor(FormId: string, FormCode: Option<string>, NavigationType: ClinicalPathway_NavigationType_$union, PreFillMappings: Option<FSharpMap<Shared_FieldKey, Shared_FieldKey>>, ReturnOnComplete: boolean, Condition: Option<ClinicalPathway_TransitionCondition_$union>) {
|
|
1970
|
+
super();
|
|
1971
|
+
this.FormId = FormId;
|
|
1972
|
+
this.FormCode = FormCode;
|
|
1973
|
+
this.NavigationType = NavigationType;
|
|
1974
|
+
this.PreFillMappings = PreFillMappings;
|
|
1975
|
+
this.ReturnOnComplete = ReturnOnComplete;
|
|
1976
|
+
this.Condition = Condition;
|
|
1977
|
+
}
|
|
1978
|
+
}
|
|
1979
|
+
|
|
1980
|
+
export function ClinicalPathway_NavigateToFormAction_$reflection(): TypeInfo {
|
|
1981
|
+
return record_type("F1.Studio.ClinicalPathway.NavigateToFormAction", [], ClinicalPathway_NavigateToFormAction, () => [["FormId", string_type], ["FormCode", option_type(string_type)], ["NavigationType", ClinicalPathway_NavigationType_$reflection()], ["PreFillMappings", option_type(class_type("Microsoft.FSharp.Collections.FSharpMap`2", [Shared_FieldKey_$reflection(), Shared_FieldKey_$reflection()]))], ["ReturnOnComplete", bool_type], ["Condition", option_type(ClinicalPathway_TransitionCondition_$reflection())]]);
|
|
1982
|
+
}
|
|
1983
|
+
|
|
1984
|
+
export type ClinicalPathway_ActionInfo_$union =
|
|
1985
|
+
| ClinicalPathway_ActionInfo<0>
|
|
1986
|
+
| ClinicalPathway_ActionInfo<1>
|
|
1987
|
+
| ClinicalPathway_ActionInfo<2>
|
|
1988
|
+
| ClinicalPathway_ActionInfo<3>
|
|
1989
|
+
| ClinicalPathway_ActionInfo<4>
|
|
1990
|
+
| ClinicalPathway_ActionInfo<5>
|
|
1991
|
+
| ClinicalPathway_ActionInfo<6>
|
|
1992
|
+
| ClinicalPathway_ActionInfo<7>
|
|
1993
|
+
| ClinicalPathway_ActionInfo<8>
|
|
1994
|
+
| ClinicalPathway_ActionInfo<9>
|
|
1995
|
+
| ClinicalPathway_ActionInfo<10>
|
|
1996
|
+
| ClinicalPathway_ActionInfo<11>
|
|
1997
|
+
|
|
1998
|
+
export type ClinicalPathway_ActionInfo_$cases = {
|
|
1999
|
+
0: ["Medication", [ClinicalPathway_MedicationAction]],
|
|
2000
|
+
1: ["Test", [ClinicalPathway_TestAction]],
|
|
2001
|
+
2: ["Referral", [ClinicalPathway_ReferralAction]],
|
|
2002
|
+
3: ["Education", [ClinicalPathway_EducationAction]],
|
|
2003
|
+
4: ["Procedure", [ClinicalPathway_ProcedureAction]],
|
|
2004
|
+
5: ["Documentation", [ClinicalPathway_DocumentationAction]],
|
|
2005
|
+
6: ["Task", [ClinicalPathway_TaskAction]],
|
|
2006
|
+
7: ["Alert", [ClinicalPathway_AlertAction]],
|
|
2007
|
+
8: ["Problem", [ClinicalPathway_ProblemAction]],
|
|
2008
|
+
9: ["Prescription", [ClinicalPathway_PrescriptionAction]],
|
|
2009
|
+
10: ["SetFieldValue", [ClinicalPathway_SetFieldValueAction]],
|
|
2010
|
+
11: ["NavigateToForm", [ClinicalPathway_NavigateToFormAction]]
|
|
2011
|
+
}
|
|
2012
|
+
|
|
2013
|
+
export function ClinicalPathway_ActionInfo_Medication(Item: ClinicalPathway_MedicationAction) {
|
|
2014
|
+
return new ClinicalPathway_ActionInfo<0>(0, [Item]);
|
|
2015
|
+
}
|
|
2016
|
+
|
|
2017
|
+
export function ClinicalPathway_ActionInfo_Test(Item: ClinicalPathway_TestAction) {
|
|
2018
|
+
return new ClinicalPathway_ActionInfo<1>(1, [Item]);
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2021
|
+
export function ClinicalPathway_ActionInfo_Referral(Item: ClinicalPathway_ReferralAction) {
|
|
2022
|
+
return new ClinicalPathway_ActionInfo<2>(2, [Item]);
|
|
2023
|
+
}
|
|
2024
|
+
|
|
2025
|
+
export function ClinicalPathway_ActionInfo_Education(Item: ClinicalPathway_EducationAction) {
|
|
2026
|
+
return new ClinicalPathway_ActionInfo<3>(3, [Item]);
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
export function ClinicalPathway_ActionInfo_Procedure(Item: ClinicalPathway_ProcedureAction) {
|
|
2030
|
+
return new ClinicalPathway_ActionInfo<4>(4, [Item]);
|
|
2031
|
+
}
|
|
2032
|
+
|
|
2033
|
+
export function ClinicalPathway_ActionInfo_Documentation(Item: ClinicalPathway_DocumentationAction) {
|
|
2034
|
+
return new ClinicalPathway_ActionInfo<5>(5, [Item]);
|
|
2035
|
+
}
|
|
2036
|
+
|
|
2037
|
+
export function ClinicalPathway_ActionInfo_Task(Item: ClinicalPathway_TaskAction) {
|
|
2038
|
+
return new ClinicalPathway_ActionInfo<6>(6, [Item]);
|
|
2039
|
+
}
|
|
2040
|
+
|
|
2041
|
+
export function ClinicalPathway_ActionInfo_Alert(Item: ClinicalPathway_AlertAction) {
|
|
2042
|
+
return new ClinicalPathway_ActionInfo<7>(7, [Item]);
|
|
2043
|
+
}
|
|
2044
|
+
|
|
2045
|
+
export function ClinicalPathway_ActionInfo_Problem(Item: ClinicalPathway_ProblemAction) {
|
|
2046
|
+
return new ClinicalPathway_ActionInfo<8>(8, [Item]);
|
|
2047
|
+
}
|
|
2048
|
+
|
|
2049
|
+
export function ClinicalPathway_ActionInfo_Prescription(Item: ClinicalPathway_PrescriptionAction) {
|
|
2050
|
+
return new ClinicalPathway_ActionInfo<9>(9, [Item]);
|
|
2051
|
+
}
|
|
2052
|
+
|
|
2053
|
+
export function ClinicalPathway_ActionInfo_SetFieldValue(Item: ClinicalPathway_SetFieldValueAction) {
|
|
2054
|
+
return new ClinicalPathway_ActionInfo<10>(10, [Item]);
|
|
2055
|
+
}
|
|
2056
|
+
|
|
2057
|
+
export function ClinicalPathway_ActionInfo_NavigateToForm(Item: ClinicalPathway_NavigateToFormAction) {
|
|
2058
|
+
return new ClinicalPathway_ActionInfo<11>(11, [Item]);
|
|
2059
|
+
}
|
|
2060
|
+
|
|
2061
|
+
export class ClinicalPathway_ActionInfo<Tag extends keyof ClinicalPathway_ActionInfo_$cases> extends Union<Tag, ClinicalPathway_ActionInfo_$cases[Tag][0]> {
|
|
2062
|
+
constructor(readonly tag: Tag, readonly fields: ClinicalPathway_ActionInfo_$cases[Tag][1]) {
|
|
2063
|
+
super();
|
|
2064
|
+
}
|
|
2065
|
+
cases() {
|
|
2066
|
+
return ["Medication", "Test", "Referral", "Education", "Procedure", "Documentation", "Task", "Alert", "Problem", "Prescription", "SetFieldValue", "NavigateToForm"];
|
|
2067
|
+
}
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
export function ClinicalPathway_ActionInfo_$reflection(): TypeInfo {
|
|
2071
|
+
return union_type("F1.Studio.ClinicalPathway.ActionInfo", [], ClinicalPathway_ActionInfo, () => [[["Item", ClinicalPathway_MedicationAction_$reflection()]], [["Item", ClinicalPathway_TestAction_$reflection()]], [["Item", ClinicalPathway_ReferralAction_$reflection()]], [["Item", ClinicalPathway_EducationAction_$reflection()]], [["Item", ClinicalPathway_ProcedureAction_$reflection()]], [["Item", ClinicalPathway_DocumentationAction_$reflection()]], [["Item", ClinicalPathway_TaskAction_$reflection()]], [["Item", ClinicalPathway_AlertAction_$reflection()]], [["Item", ClinicalPathway_ProblemAction_$reflection()]], [["Item", ClinicalPathway_PrescriptionAction_$reflection()]], [["Item", ClinicalPathway_SetFieldValueAction_$reflection()]], [["Item", ClinicalPathway_NavigateToFormAction_$reflection()]]]);
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2074
|
+
export class ClinicalPathway_EvaluationInfo extends Record implements IEquatable<ClinicalPathway_EvaluationInfo>, IComparable<ClinicalPathway_EvaluationInfo> {
|
|
2075
|
+
readonly EvaluationName: string;
|
|
2076
|
+
readonly Parameters: FSharpList<[Shared_FieldKey, string, string]>;
|
|
2077
|
+
readonly CriticalFindings: Option<FSharpList<string>>;
|
|
2078
|
+
constructor(EvaluationName: string, Parameters: FSharpList<[Shared_FieldKey, string, string]>, CriticalFindings: Option<FSharpList<string>>) {
|
|
2079
|
+
super();
|
|
2080
|
+
this.EvaluationName = EvaluationName;
|
|
2081
|
+
this.Parameters = Parameters;
|
|
2082
|
+
this.CriticalFindings = CriticalFindings;
|
|
2083
|
+
}
|
|
2084
|
+
}
|
|
2085
|
+
|
|
2086
|
+
export function ClinicalPathway_EvaluationInfo_$reflection(): TypeInfo {
|
|
2087
|
+
return record_type("F1.Studio.ClinicalPathway.EvaluationInfo", [], ClinicalPathway_EvaluationInfo, () => [["EvaluationName", string_type], ["Parameters", list_type(tuple_type(Shared_FieldKey_$reflection(), string_type, string_type))], ["CriticalFindings", option_type(list_type(string_type))]]);
|
|
2088
|
+
}
|
|
2089
|
+
|
|
2090
|
+
export class ClinicalPathway_DecisionInfo extends Record implements IEquatable<ClinicalPathway_DecisionInfo>, IComparable<ClinicalPathway_DecisionInfo> {
|
|
2091
|
+
readonly DecisionKey: string;
|
|
2092
|
+
readonly Question: string;
|
|
2093
|
+
readonly Options: FSharpList<string>;
|
|
2094
|
+
constructor(DecisionKey: string, Question: string, Options: FSharpList<string>) {
|
|
2095
|
+
super();
|
|
2096
|
+
this.DecisionKey = DecisionKey;
|
|
2097
|
+
this.Question = Question;
|
|
2098
|
+
this.Options = Options;
|
|
2099
|
+
}
|
|
2100
|
+
}
|
|
2101
|
+
|
|
2102
|
+
export function ClinicalPathway_DecisionInfo_$reflection(): TypeInfo {
|
|
2103
|
+
return record_type("F1.Studio.ClinicalPathway.DecisionInfo", [], ClinicalPathway_DecisionInfo, () => [["DecisionKey", string_type], ["Question", string_type], ["Options", list_type(string_type)]]);
|
|
2104
|
+
}
|
|
2105
|
+
|
|
2106
|
+
export class ClinicalPathway_TerminalInfo extends Record implements IEquatable<ClinicalPathway_TerminalInfo>, IComparable<ClinicalPathway_TerminalInfo> {
|
|
2107
|
+
readonly TerminalType: string;
|
|
2108
|
+
readonly Outcome: string;
|
|
2109
|
+
readonly Documentation: Option<string>;
|
|
2110
|
+
constructor(TerminalType: string, Outcome: string, Documentation: Option<string>) {
|
|
2111
|
+
super();
|
|
2112
|
+
this.TerminalType = TerminalType;
|
|
2113
|
+
this.Outcome = Outcome;
|
|
2114
|
+
this.Documentation = Documentation;
|
|
2115
|
+
}
|
|
2116
|
+
}
|
|
2117
|
+
|
|
2118
|
+
export function ClinicalPathway_TerminalInfo_$reflection(): TypeInfo {
|
|
2119
|
+
return record_type("F1.Studio.ClinicalPathway.TerminalInfo", [], ClinicalPathway_TerminalInfo, () => [["TerminalType", string_type], ["Outcome", string_type], ["Documentation", option_type(string_type)]]);
|
|
2120
|
+
}
|
|
2121
|
+
|
|
2122
|
+
export type ClinicalPathway_StateType_$union =
|
|
2123
|
+
| ClinicalPathway_StateType<0>
|
|
2124
|
+
| ClinicalPathway_StateType<1>
|
|
2125
|
+
| ClinicalPathway_StateType<2>
|
|
2126
|
+
| ClinicalPathway_StateType<3>
|
|
2127
|
+
| ClinicalPathway_StateType<4>
|
|
2128
|
+
| ClinicalPathway_StateType<5>
|
|
2129
|
+
|
|
2130
|
+
export type ClinicalPathway_StateType_$cases = {
|
|
2131
|
+
0: ["Evaluation", [ClinicalPathway_EvaluationInfo]],
|
|
2132
|
+
1: ["Decision", [ClinicalPathway_DecisionInfo]],
|
|
2133
|
+
2: ["Action", [ClinicalPathway_ActionInfo_$union]],
|
|
2134
|
+
3: ["CompoundAction", [FSharpList<ClinicalPathway_ActionInfo_$union>]],
|
|
2135
|
+
4: ["ConditionalAction", [ClinicalPathway_TransitionCondition_$union, ClinicalPathway_ActionInfo_$union, Option<ClinicalPathway_ActionInfo_$union>]],
|
|
2136
|
+
5: ["Terminal", [ClinicalPathway_TerminalInfo]]
|
|
2137
|
+
}
|
|
2138
|
+
|
|
2139
|
+
export function ClinicalPathway_StateType_Evaluation(Item: ClinicalPathway_EvaluationInfo) {
|
|
2140
|
+
return new ClinicalPathway_StateType<0>(0, [Item]);
|
|
2141
|
+
}
|
|
2142
|
+
|
|
2143
|
+
export function ClinicalPathway_StateType_Decision(Item: ClinicalPathway_DecisionInfo) {
|
|
2144
|
+
return new ClinicalPathway_StateType<1>(1, [Item]);
|
|
2145
|
+
}
|
|
2146
|
+
|
|
2147
|
+
export function ClinicalPathway_StateType_Action(Item: ClinicalPathway_ActionInfo_$union) {
|
|
2148
|
+
return new ClinicalPathway_StateType<2>(2, [Item]);
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
export function ClinicalPathway_StateType_CompoundAction(Item: FSharpList<ClinicalPathway_ActionInfo_$union>) {
|
|
2152
|
+
return new ClinicalPathway_StateType<3>(3, [Item]);
|
|
2153
|
+
}
|
|
2154
|
+
|
|
2155
|
+
export function ClinicalPathway_StateType_ConditionalAction(condition: ClinicalPathway_TransitionCondition_$union, thenAction: ClinicalPathway_ActionInfo_$union, elseAction: Option<ClinicalPathway_ActionInfo_$union>) {
|
|
2156
|
+
return new ClinicalPathway_StateType<4>(4, [condition, thenAction, elseAction]);
|
|
2157
|
+
}
|
|
2158
|
+
|
|
2159
|
+
export function ClinicalPathway_StateType_Terminal(Item: ClinicalPathway_TerminalInfo) {
|
|
2160
|
+
return new ClinicalPathway_StateType<5>(5, [Item]);
|
|
2161
|
+
}
|
|
2162
|
+
|
|
2163
|
+
export class ClinicalPathway_StateType<Tag extends keyof ClinicalPathway_StateType_$cases> extends Union<Tag, ClinicalPathway_StateType_$cases[Tag][0]> {
|
|
2164
|
+
constructor(readonly tag: Tag, readonly fields: ClinicalPathway_StateType_$cases[Tag][1]) {
|
|
2165
|
+
super();
|
|
2166
|
+
}
|
|
2167
|
+
cases() {
|
|
2168
|
+
return ["Evaluation", "Decision", "Action", "CompoundAction", "ConditionalAction", "Terminal"];
|
|
2169
|
+
}
|
|
2170
|
+
}
|
|
2171
|
+
|
|
2172
|
+
export function ClinicalPathway_StateType_$reflection(): TypeInfo {
|
|
2173
|
+
return union_type("F1.Studio.ClinicalPathway.StateType", [], ClinicalPathway_StateType, () => [[["Item", ClinicalPathway_EvaluationInfo_$reflection()]], [["Item", ClinicalPathway_DecisionInfo_$reflection()]], [["Item", ClinicalPathway_ActionInfo_$reflection()]], [["Item", list_type(ClinicalPathway_ActionInfo_$reflection())]], [["condition", ClinicalPathway_TransitionCondition_$reflection()], ["thenAction", ClinicalPathway_ActionInfo_$reflection()], ["elseAction", option_type(ClinicalPathway_ActionInfo_$reflection())]], [["Item", ClinicalPathway_TerminalInfo_$reflection()]]]);
|
|
2174
|
+
}
|
|
2175
|
+
|
|
2176
|
+
export class ClinicalPathway_StateDefinition extends Record implements IEquatable<ClinicalPathway_StateDefinition>, IComparable<ClinicalPathway_StateDefinition> {
|
|
2177
|
+
readonly StateKey: Shared_StateKey;
|
|
2178
|
+
readonly StateLabel: string;
|
|
2179
|
+
readonly StateOrder: int32;
|
|
2180
|
+
readonly StateType: ClinicalPathway_StateType_$union;
|
|
2181
|
+
readonly DependsOn: Option<ClinicalPathway_StateDependency>;
|
|
2182
|
+
constructor(StateKey: Shared_StateKey, StateLabel: string, StateOrder: int32, StateType: ClinicalPathway_StateType_$union, DependsOn: Option<ClinicalPathway_StateDependency>) {
|
|
2183
|
+
super();
|
|
2184
|
+
this.StateKey = StateKey;
|
|
2185
|
+
this.StateLabel = StateLabel;
|
|
2186
|
+
this.StateOrder = (StateOrder | 0);
|
|
2187
|
+
this.StateType = StateType;
|
|
2188
|
+
this.DependsOn = DependsOn;
|
|
2189
|
+
}
|
|
2190
|
+
}
|
|
2191
|
+
|
|
2192
|
+
export function ClinicalPathway_StateDefinition_$reflection(): TypeInfo {
|
|
2193
|
+
return record_type("F1.Studio.ClinicalPathway.StateDefinition", [], ClinicalPathway_StateDefinition, () => [["StateKey", Shared_StateKey_$reflection()], ["StateLabel", string_type], ["StateOrder", int32_type], ["StateType", ClinicalPathway_StateType_$reflection()], ["DependsOn", option_type(ClinicalPathway_StateDependency_$reflection())]]);
|
|
2194
|
+
}
|
|
2195
|
+
|
|
2196
|
+
export class ClinicalPathway_StateDependency extends Record implements IEquatable<ClinicalPathway_StateDependency>, IComparable<ClinicalPathway_StateDependency> {
|
|
2197
|
+
readonly StateKey: Shared_StateKey;
|
|
2198
|
+
readonly DependencyType: string;
|
|
2199
|
+
constructor(StateKey: Shared_StateKey, DependencyType: string) {
|
|
2200
|
+
super();
|
|
2201
|
+
this.StateKey = StateKey;
|
|
2202
|
+
this.DependencyType = DependencyType;
|
|
2203
|
+
}
|
|
2204
|
+
}
|
|
2205
|
+
|
|
2206
|
+
export function ClinicalPathway_StateDependency_$reflection(): TypeInfo {
|
|
2207
|
+
return record_type("F1.Studio.ClinicalPathway.StateDependency", [], ClinicalPathway_StateDependency, () => [["StateKey", Shared_StateKey_$reflection()], ["DependencyType", string_type]]);
|
|
2208
|
+
}
|
|
2209
|
+
|
|
2210
|
+
export type ClinicalPathway_TransitionCondition_$union =
|
|
2211
|
+
| ClinicalPathway_TransitionCondition<0>
|
|
2212
|
+
| ClinicalPathway_TransitionCondition<1>
|
|
2213
|
+
| ClinicalPathway_TransitionCondition<2>
|
|
2214
|
+
| ClinicalPathway_TransitionCondition<3>
|
|
2215
|
+
| ClinicalPathway_TransitionCondition<4>
|
|
2216
|
+
| ClinicalPathway_TransitionCondition<5>
|
|
2217
|
+
| ClinicalPathway_TransitionCondition<6>
|
|
2218
|
+
|
|
2219
|
+
export type ClinicalPathway_TransitionCondition_$cases = {
|
|
2220
|
+
0: ["FieldCondition", [Shared_FieldKey, ClinicalPathway_FieldEvaluator_$union, Shared_ConditionValue_$union]],
|
|
2221
|
+
1: ["FieldOptionCondition", [Shared_FieldKey, Option<Shared_MatrixItemKey>, Shared_FieldOptionKey, ClinicalPathway_FieldEvaluator_$union, Shared_ConditionValue_$union]],
|
|
2222
|
+
2: ["PluginPropertyCondition", [Shared_FieldKey, Shared_PluginPropertyKey, ClinicalPathway_FieldEvaluator_$union, Shared_ConditionValue_$union]],
|
|
2223
|
+
3: ["StateCondition", [Shared_StateKey, ClinicalPathway_StateEvaluator_$union]],
|
|
2224
|
+
4: ["CompositeCondition", [ClinicalPathway_LogicalOp_$union, FSharpList<ClinicalPathway_TransitionCondition_$union>]],
|
|
2225
|
+
5: ["TestResultCondition", [string, string]],
|
|
2226
|
+
6: ["Always", []]
|
|
2227
|
+
}
|
|
2228
|
+
|
|
2229
|
+
export function ClinicalPathway_TransitionCondition_FieldCondition(fieldKey: Shared_FieldKey, evaluator: ClinicalPathway_FieldEvaluator_$union, value: Shared_ConditionValue_$union) {
|
|
2230
|
+
return new ClinicalPathway_TransitionCondition<0>(0, [fieldKey, evaluator, value]);
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2233
|
+
export function ClinicalPathway_TransitionCondition_FieldOptionCondition(fieldKey: Shared_FieldKey, fieldItemKey: Option<Shared_MatrixItemKey>, optionKey: Shared_FieldOptionKey, evaluator: ClinicalPathway_FieldEvaluator_$union, value: Shared_ConditionValue_$union) {
|
|
2234
|
+
return new ClinicalPathway_TransitionCondition<1>(1, [fieldKey, fieldItemKey, optionKey, evaluator, value]);
|
|
2235
|
+
}
|
|
2236
|
+
|
|
2237
|
+
export function ClinicalPathway_TransitionCondition_PluginPropertyCondition(fieldKey: Shared_FieldKey, propertyKey: Shared_PluginPropertyKey, evaluator: ClinicalPathway_FieldEvaluator_$union, value: Shared_ConditionValue_$union) {
|
|
2238
|
+
return new ClinicalPathway_TransitionCondition<2>(2, [fieldKey, propertyKey, evaluator, value]);
|
|
2239
|
+
}
|
|
2240
|
+
|
|
2241
|
+
export function ClinicalPathway_TransitionCondition_StateCondition(stateKey: Shared_StateKey, stateEvaluator: ClinicalPathway_StateEvaluator_$union) {
|
|
2242
|
+
return new ClinicalPathway_TransitionCondition<3>(3, [stateKey, stateEvaluator]);
|
|
2243
|
+
}
|
|
2244
|
+
|
|
2245
|
+
export function ClinicalPathway_TransitionCondition_CompositeCondition(logicalOp: ClinicalPathway_LogicalOp_$union, conditions: FSharpList<ClinicalPathway_TransitionCondition_$union>) {
|
|
2246
|
+
return new ClinicalPathway_TransitionCondition<4>(4, [logicalOp, conditions]);
|
|
2247
|
+
}
|
|
2248
|
+
|
|
2249
|
+
export function ClinicalPathway_TransitionCondition_TestResultCondition(testName: string, result: string) {
|
|
2250
|
+
return new ClinicalPathway_TransitionCondition<5>(5, [testName, result]);
|
|
2251
|
+
}
|
|
2252
|
+
|
|
2253
|
+
export function ClinicalPathway_TransitionCondition_Always() {
|
|
2254
|
+
return new ClinicalPathway_TransitionCondition<6>(6, []);
|
|
2255
|
+
}
|
|
2256
|
+
|
|
2257
|
+
export class ClinicalPathway_TransitionCondition<Tag extends keyof ClinicalPathway_TransitionCondition_$cases> extends Union<Tag, ClinicalPathway_TransitionCondition_$cases[Tag][0]> {
|
|
2258
|
+
constructor(readonly tag: Tag, readonly fields: ClinicalPathway_TransitionCondition_$cases[Tag][1]) {
|
|
2259
|
+
super();
|
|
2260
|
+
}
|
|
2261
|
+
cases() {
|
|
2262
|
+
return ["FieldCondition", "FieldOptionCondition", "PluginPropertyCondition", "StateCondition", "CompositeCondition", "TestResultCondition", "Always"];
|
|
2263
|
+
}
|
|
2264
|
+
}
|
|
2265
|
+
|
|
2266
|
+
export function ClinicalPathway_TransitionCondition_$reflection(): TypeInfo {
|
|
2267
|
+
return union_type("F1.Studio.ClinicalPathway.TransitionCondition", [], ClinicalPathway_TransitionCondition, () => [[["fieldKey", Shared_FieldKey_$reflection()], ["evaluator", ClinicalPathway_FieldEvaluator_$reflection()], ["value", Shared_ConditionValue_$reflection()]], [["fieldKey", Shared_FieldKey_$reflection()], ["fieldItemKey", option_type(Shared_MatrixItemKey_$reflection())], ["optionKey", Shared_FieldOptionKey_$reflection()], ["evaluator", ClinicalPathway_FieldEvaluator_$reflection()], ["value", Shared_ConditionValue_$reflection()]], [["fieldKey", Shared_FieldKey_$reflection()], ["propertyKey", Shared_PluginPropertyKey_$reflection()], ["evaluator", ClinicalPathway_FieldEvaluator_$reflection()], ["value", Shared_ConditionValue_$reflection()]], [["stateKey", Shared_StateKey_$reflection()], ["stateEvaluator", ClinicalPathway_StateEvaluator_$reflection()]], [["logicalOp", ClinicalPathway_LogicalOp_$reflection()], ["conditions", list_type(ClinicalPathway_TransitionCondition_$reflection())]], [["testName", string_type], ["result", string_type]], []]);
|
|
2268
|
+
}
|
|
2269
|
+
|
|
2270
|
+
export type ClinicalPathway_FieldEvaluator_$union =
|
|
2271
|
+
| ClinicalPathway_FieldEvaluator<0>
|
|
2272
|
+
| ClinicalPathway_FieldEvaluator<1>
|
|
2273
|
+
| ClinicalPathway_FieldEvaluator<2>
|
|
2274
|
+
| ClinicalPathway_FieldEvaluator<3>
|
|
2275
|
+
| ClinicalPathway_FieldEvaluator<4>
|
|
2276
|
+
| ClinicalPathway_FieldEvaluator<5>
|
|
2277
|
+
| ClinicalPathway_FieldEvaluator<6>
|
|
2278
|
+
| ClinicalPathway_FieldEvaluator<7>
|
|
2279
|
+
| ClinicalPathway_FieldEvaluator<8>
|
|
2280
|
+
| ClinicalPathway_FieldEvaluator<9>
|
|
2281
|
+
| ClinicalPathway_FieldEvaluator<10>
|
|
2282
|
+
| ClinicalPathway_FieldEvaluator<11>
|
|
2283
|
+
| ClinicalPathway_FieldEvaluator<12>
|
|
2284
|
+
| ClinicalPathway_FieldEvaluator<13>
|
|
2285
|
+
|
|
2286
|
+
export type ClinicalPathway_FieldEvaluator_$cases = {
|
|
2287
|
+
0: ["Equals", []],
|
|
2288
|
+
1: ["NotEquals", []],
|
|
2289
|
+
2: ["InSet", [FSharpList<string>]],
|
|
2290
|
+
3: ["NotInSet", [FSharpList<string>]],
|
|
2291
|
+
4: ["ContainsAll", [FSharpList<string>]],
|
|
2292
|
+
5: ["GreaterThan", []],
|
|
2293
|
+
6: ["GreaterOrEqual", []],
|
|
2294
|
+
7: ["LessThan", []],
|
|
2295
|
+
8: ["LessOrEqual", []],
|
|
2296
|
+
9: ["Contains", []],
|
|
2297
|
+
10: ["IsPresent", []],
|
|
2298
|
+
11: ["IsAbsent", []],
|
|
2299
|
+
12: ["MatchesPattern", [string]],
|
|
2300
|
+
13: ["InRange", [int32, int32]]
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2303
|
+
export function ClinicalPathway_FieldEvaluator_Equals() {
|
|
2304
|
+
return new ClinicalPathway_FieldEvaluator<0>(0, []);
|
|
2305
|
+
}
|
|
2306
|
+
|
|
2307
|
+
export function ClinicalPathway_FieldEvaluator_NotEquals() {
|
|
2308
|
+
return new ClinicalPathway_FieldEvaluator<1>(1, []);
|
|
2309
|
+
}
|
|
2310
|
+
|
|
2311
|
+
export function ClinicalPathway_FieldEvaluator_InSet(values: FSharpList<string>) {
|
|
2312
|
+
return new ClinicalPathway_FieldEvaluator<2>(2, [values]);
|
|
2313
|
+
}
|
|
2314
|
+
|
|
2315
|
+
export function ClinicalPathway_FieldEvaluator_NotInSet(values: FSharpList<string>) {
|
|
2316
|
+
return new ClinicalPathway_FieldEvaluator<3>(3, [values]);
|
|
2317
|
+
}
|
|
2318
|
+
|
|
2319
|
+
export function ClinicalPathway_FieldEvaluator_ContainsAll(values: FSharpList<string>) {
|
|
2320
|
+
return new ClinicalPathway_FieldEvaluator<4>(4, [values]);
|
|
2321
|
+
}
|
|
2322
|
+
|
|
2323
|
+
export function ClinicalPathway_FieldEvaluator_GreaterThan() {
|
|
2324
|
+
return new ClinicalPathway_FieldEvaluator<5>(5, []);
|
|
2325
|
+
}
|
|
2326
|
+
|
|
2327
|
+
export function ClinicalPathway_FieldEvaluator_GreaterOrEqual() {
|
|
2328
|
+
return new ClinicalPathway_FieldEvaluator<6>(6, []);
|
|
2329
|
+
}
|
|
2330
|
+
|
|
2331
|
+
export function ClinicalPathway_FieldEvaluator_LessThan() {
|
|
2332
|
+
return new ClinicalPathway_FieldEvaluator<7>(7, []);
|
|
2333
|
+
}
|
|
2334
|
+
|
|
2335
|
+
export function ClinicalPathway_FieldEvaluator_LessOrEqual() {
|
|
2336
|
+
return new ClinicalPathway_FieldEvaluator<8>(8, []);
|
|
2337
|
+
}
|
|
2338
|
+
|
|
2339
|
+
export function ClinicalPathway_FieldEvaluator_Contains() {
|
|
2340
|
+
return new ClinicalPathway_FieldEvaluator<9>(9, []);
|
|
2341
|
+
}
|
|
2342
|
+
|
|
2343
|
+
export function ClinicalPathway_FieldEvaluator_IsPresent() {
|
|
2344
|
+
return new ClinicalPathway_FieldEvaluator<10>(10, []);
|
|
2345
|
+
}
|
|
2346
|
+
|
|
2347
|
+
export function ClinicalPathway_FieldEvaluator_IsAbsent() {
|
|
2348
|
+
return new ClinicalPathway_FieldEvaluator<11>(11, []);
|
|
2349
|
+
}
|
|
2350
|
+
|
|
2351
|
+
export function ClinicalPathway_FieldEvaluator_MatchesPattern(pattern: string) {
|
|
2352
|
+
return new ClinicalPathway_FieldEvaluator<12>(12, [pattern]);
|
|
2353
|
+
}
|
|
2354
|
+
|
|
2355
|
+
export function ClinicalPathway_FieldEvaluator_InRange(min: int32, max: int32) {
|
|
2356
|
+
return new ClinicalPathway_FieldEvaluator<13>(13, [min, max]);
|
|
2357
|
+
}
|
|
2358
|
+
|
|
2359
|
+
export class ClinicalPathway_FieldEvaluator<Tag extends keyof ClinicalPathway_FieldEvaluator_$cases> extends Union<Tag, ClinicalPathway_FieldEvaluator_$cases[Tag][0]> {
|
|
2360
|
+
constructor(readonly tag: Tag, readonly fields: ClinicalPathway_FieldEvaluator_$cases[Tag][1]) {
|
|
2361
|
+
super();
|
|
2362
|
+
}
|
|
2363
|
+
cases() {
|
|
2364
|
+
return ["Equals", "NotEquals", "InSet", "NotInSet", "ContainsAll", "GreaterThan", "GreaterOrEqual", "LessThan", "LessOrEqual", "Contains", "IsPresent", "IsAbsent", "MatchesPattern", "InRange"];
|
|
2365
|
+
}
|
|
2366
|
+
}
|
|
2367
|
+
|
|
2368
|
+
export function ClinicalPathway_FieldEvaluator_$reflection(): TypeInfo {
|
|
2369
|
+
return union_type("F1.Studio.ClinicalPathway.FieldEvaluator", [], ClinicalPathway_FieldEvaluator, () => [[], [], [["values", list_type(string_type)]], [["values", list_type(string_type)]], [["values", list_type(string_type)]], [], [], [], [], [], [], [], [["pattern", string_type]], [["min", int32_type], ["max", int32_type]]]);
|
|
2370
|
+
}
|
|
2371
|
+
|
|
2372
|
+
export type ClinicalPathway_StateEvaluator_$union =
|
|
2373
|
+
| ClinicalPathway_StateEvaluator<0>
|
|
2374
|
+
| ClinicalPathway_StateEvaluator<1>
|
|
2375
|
+
| ClinicalPathway_StateEvaluator<2>
|
|
2376
|
+
| ClinicalPathway_StateEvaluator<3>
|
|
2377
|
+
|
|
2378
|
+
export type ClinicalPathway_StateEvaluator_$cases = {
|
|
2379
|
+
0: ["Completed", []],
|
|
2380
|
+
1: ["HasValue", []],
|
|
2381
|
+
2: ["HasError", []],
|
|
2382
|
+
3: ["WasSkipped", []]
|
|
2383
|
+
}
|
|
2384
|
+
|
|
2385
|
+
export function ClinicalPathway_StateEvaluator_Completed() {
|
|
2386
|
+
return new ClinicalPathway_StateEvaluator<0>(0, []);
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
export function ClinicalPathway_StateEvaluator_HasValue() {
|
|
2390
|
+
return new ClinicalPathway_StateEvaluator<1>(1, []);
|
|
2391
|
+
}
|
|
2392
|
+
|
|
2393
|
+
export function ClinicalPathway_StateEvaluator_HasError() {
|
|
2394
|
+
return new ClinicalPathway_StateEvaluator<2>(2, []);
|
|
2395
|
+
}
|
|
2396
|
+
|
|
2397
|
+
export function ClinicalPathway_StateEvaluator_WasSkipped() {
|
|
2398
|
+
return new ClinicalPathway_StateEvaluator<3>(3, []);
|
|
2399
|
+
}
|
|
2400
|
+
|
|
2401
|
+
export class ClinicalPathway_StateEvaluator<Tag extends keyof ClinicalPathway_StateEvaluator_$cases> extends Union<Tag, ClinicalPathway_StateEvaluator_$cases[Tag][0]> {
|
|
2402
|
+
constructor(readonly tag: Tag, readonly fields: ClinicalPathway_StateEvaluator_$cases[Tag][1]) {
|
|
2403
|
+
super();
|
|
2404
|
+
}
|
|
2405
|
+
cases() {
|
|
2406
|
+
return ["Completed", "HasValue", "HasError", "WasSkipped"];
|
|
2407
|
+
}
|
|
2408
|
+
}
|
|
2409
|
+
|
|
2410
|
+
export function ClinicalPathway_StateEvaluator_$reflection(): TypeInfo {
|
|
2411
|
+
return union_type("F1.Studio.ClinicalPathway.StateEvaluator", [], ClinicalPathway_StateEvaluator, () => [[], [], [], []]);
|
|
2412
|
+
}
|
|
2413
|
+
|
|
2414
|
+
export type ClinicalPathway_LogicalOp_$union =
|
|
2415
|
+
| ClinicalPathway_LogicalOp<0>
|
|
2416
|
+
| ClinicalPathway_LogicalOp<1>
|
|
2417
|
+
| ClinicalPathway_LogicalOp<2>
|
|
2418
|
+
|
|
2419
|
+
export type ClinicalPathway_LogicalOp_$cases = {
|
|
2420
|
+
0: ["And", []],
|
|
2421
|
+
1: ["Or", []],
|
|
2422
|
+
2: ["Not", []]
|
|
2423
|
+
}
|
|
2424
|
+
|
|
2425
|
+
export function ClinicalPathway_LogicalOp_And() {
|
|
2426
|
+
return new ClinicalPathway_LogicalOp<0>(0, []);
|
|
2427
|
+
}
|
|
2428
|
+
|
|
2429
|
+
export function ClinicalPathway_LogicalOp_Or() {
|
|
2430
|
+
return new ClinicalPathway_LogicalOp<1>(1, []);
|
|
2431
|
+
}
|
|
2432
|
+
|
|
2433
|
+
export function ClinicalPathway_LogicalOp_Not() {
|
|
2434
|
+
return new ClinicalPathway_LogicalOp<2>(2, []);
|
|
2435
|
+
}
|
|
2436
|
+
|
|
2437
|
+
export class ClinicalPathway_LogicalOp<Tag extends keyof ClinicalPathway_LogicalOp_$cases> extends Union<Tag, ClinicalPathway_LogicalOp_$cases[Tag][0]> {
|
|
2438
|
+
constructor(readonly tag: Tag, readonly fields: ClinicalPathway_LogicalOp_$cases[Tag][1]) {
|
|
2439
|
+
super();
|
|
2440
|
+
}
|
|
2441
|
+
cases() {
|
|
2442
|
+
return ["And", "Or", "Not"];
|
|
2443
|
+
}
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2446
|
+
export function ClinicalPathway_LogicalOp_$reflection(): TypeInfo {
|
|
2447
|
+
return union_type("F1.Studio.ClinicalPathway.LogicalOp", [], ClinicalPathway_LogicalOp, () => [[], [], []]);
|
|
2448
|
+
}
|
|
2449
|
+
|
|
2450
|
+
export class ClinicalPathway_TransitionDefinition extends Record implements IEquatable<ClinicalPathway_TransitionDefinition>, IComparable<ClinicalPathway_TransitionDefinition> {
|
|
2451
|
+
readonly TransitionKey: Shared_TransitionKey;
|
|
2452
|
+
readonly FromState: Shared_StateKey;
|
|
2453
|
+
readonly ToState: Shared_StateKey;
|
|
2454
|
+
readonly Condition: ClinicalPathway_TransitionCondition_$union;
|
|
2455
|
+
readonly Priority: Option<int32>;
|
|
2456
|
+
constructor(TransitionKey: Shared_TransitionKey, FromState: Shared_StateKey, ToState: Shared_StateKey, Condition: ClinicalPathway_TransitionCondition_$union, Priority: Option<int32>) {
|
|
2457
|
+
super();
|
|
2458
|
+
this.TransitionKey = TransitionKey;
|
|
2459
|
+
this.FromState = FromState;
|
|
2460
|
+
this.ToState = ToState;
|
|
2461
|
+
this.Condition = Condition;
|
|
2462
|
+
this.Priority = Priority;
|
|
2463
|
+
}
|
|
2464
|
+
}
|
|
2465
|
+
|
|
2466
|
+
export function ClinicalPathway_TransitionDefinition_$reflection(): TypeInfo {
|
|
2467
|
+
return record_type("F1.Studio.ClinicalPathway.TransitionDefinition", [], ClinicalPathway_TransitionDefinition, () => [["TransitionKey", Shared_TransitionKey_$reflection()], ["FromState", Shared_StateKey_$reflection()], ["ToState", Shared_StateKey_$reflection()], ["Condition", ClinicalPathway_TransitionCondition_$reflection()], ["Priority", option_type(int32_type)]]);
|
|
2468
|
+
}
|
|
2469
|
+
|
|
2470
|
+
export type ClinicalPathway_ConstraintType_$union =
|
|
2471
|
+
| ClinicalPathway_ConstraintType<0>
|
|
2472
|
+
| ClinicalPathway_ConstraintType<1>
|
|
2473
|
+
| ClinicalPathway_ConstraintType<2>
|
|
2474
|
+
| ClinicalPathway_ConstraintType<3>
|
|
2475
|
+
|
|
2476
|
+
export type ClinicalPathway_ConstraintType_$cases = {
|
|
2477
|
+
0: ["VitalSignThreshold", [string, Option<float64>, Option<float64>]],
|
|
2478
|
+
1: ["MedicationContraindication", [string, FSharpList<string>]],
|
|
2479
|
+
2: ["TimeConstraint", [number]],
|
|
2480
|
+
3: ["RequiredField", [Shared_FieldKey]]
|
|
2481
|
+
}
|
|
2482
|
+
|
|
2483
|
+
export function ClinicalPathway_ConstraintType_VitalSignThreshold(parameter: string, min: Option<float64>, max: Option<float64>) {
|
|
2484
|
+
return new ClinicalPathway_ConstraintType<0>(0, [parameter, min, max]);
|
|
2485
|
+
}
|
|
2486
|
+
|
|
2487
|
+
export function ClinicalPathway_ConstraintType_MedicationContraindication(medication: string, conditions: FSharpList<string>) {
|
|
2488
|
+
return new ClinicalPathway_ConstraintType<1>(1, [medication, conditions]);
|
|
2489
|
+
}
|
|
2490
|
+
|
|
2491
|
+
export function ClinicalPathway_ConstraintType_TimeConstraint(maxDuration: number) {
|
|
2492
|
+
return new ClinicalPathway_ConstraintType<2>(2, [maxDuration]);
|
|
2493
|
+
}
|
|
2494
|
+
|
|
2495
|
+
export function ClinicalPathway_ConstraintType_RequiredField(fieldKey: Shared_FieldKey) {
|
|
2496
|
+
return new ClinicalPathway_ConstraintType<3>(3, [fieldKey]);
|
|
2497
|
+
}
|
|
2498
|
+
|
|
2499
|
+
export class ClinicalPathway_ConstraintType<Tag extends keyof ClinicalPathway_ConstraintType_$cases> extends Union<Tag, ClinicalPathway_ConstraintType_$cases[Tag][0]> {
|
|
2500
|
+
constructor(readonly tag: Tag, readonly fields: ClinicalPathway_ConstraintType_$cases[Tag][1]) {
|
|
2501
|
+
super();
|
|
2502
|
+
}
|
|
2503
|
+
cases() {
|
|
2504
|
+
return ["VitalSignThreshold", "MedicationContraindication", "TimeConstraint", "RequiredField"];
|
|
2505
|
+
}
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
export function ClinicalPathway_ConstraintType_$reflection(): TypeInfo {
|
|
2509
|
+
return union_type("F1.Studio.ClinicalPathway.ConstraintType", [], ClinicalPathway_ConstraintType, () => [[["parameter", string_type], ["min", option_type(float64_type)], ["max", option_type(float64_type)]], [["medication", string_type], ["conditions", list_type(string_type)]], [["maxDuration", class_type("System.TimeSpan")]], [["fieldKey", Shared_FieldKey_$reflection()]]]);
|
|
2510
|
+
}
|
|
2511
|
+
|
|
2512
|
+
export class ClinicalPathway_ConstraintDefinition extends Record implements IEquatable<ClinicalPathway_ConstraintDefinition>, IComparable<ClinicalPathway_ConstraintDefinition> {
|
|
2513
|
+
readonly ConstraintKey: string;
|
|
2514
|
+
readonly AppliesTo: FSharpList<Shared_StateKey>;
|
|
2515
|
+
readonly ConstraintType: ClinicalPathway_ConstraintType_$union;
|
|
2516
|
+
readonly Severity: string;
|
|
2517
|
+
constructor(ConstraintKey: string, AppliesTo: FSharpList<Shared_StateKey>, ConstraintType: ClinicalPathway_ConstraintType_$union, Severity: string) {
|
|
2518
|
+
super();
|
|
2519
|
+
this.ConstraintKey = ConstraintKey;
|
|
2520
|
+
this.AppliesTo = AppliesTo;
|
|
2521
|
+
this.ConstraintType = ConstraintType;
|
|
2522
|
+
this.Severity = Severity;
|
|
2523
|
+
}
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2526
|
+
export function ClinicalPathway_ConstraintDefinition_$reflection(): TypeInfo {
|
|
2527
|
+
return record_type("F1.Studio.ClinicalPathway.ConstraintDefinition", [], ClinicalPathway_ConstraintDefinition, () => [["ConstraintKey", string_type], ["AppliesTo", list_type(Shared_StateKey_$reflection())], ["ConstraintType", ClinicalPathway_ConstraintType_$reflection()], ["Severity", string_type]]);
|
|
2528
|
+
}
|
|
2529
|
+
|
|
2530
|
+
export class ClinicalPathway_PathRequirement extends Record implements IEquatable<ClinicalPathway_PathRequirement>, IComparable<ClinicalPathway_PathRequirement> {
|
|
2531
|
+
readonly RequirementKey: string;
|
|
2532
|
+
readonly Description: string;
|
|
2533
|
+
readonly MustVisitStates: FSharpList<Shared_StateKey>;
|
|
2534
|
+
readonly MustAvoidStates: Option<FSharpList<Shared_StateKey>>;
|
|
2535
|
+
readonly ValidationRule: Option<string>;
|
|
2536
|
+
constructor(RequirementKey: string, Description: string, MustVisitStates: FSharpList<Shared_StateKey>, MustAvoidStates: Option<FSharpList<Shared_StateKey>>, ValidationRule: Option<string>) {
|
|
2537
|
+
super();
|
|
2538
|
+
this.RequirementKey = RequirementKey;
|
|
2539
|
+
this.Description = Description;
|
|
2540
|
+
this.MustVisitStates = MustVisitStates;
|
|
2541
|
+
this.MustAvoidStates = MustAvoidStates;
|
|
2542
|
+
this.ValidationRule = ValidationRule;
|
|
2543
|
+
}
|
|
2544
|
+
}
|
|
2545
|
+
|
|
2546
|
+
export function ClinicalPathway_PathRequirement_$reflection(): TypeInfo {
|
|
2547
|
+
return record_type("F1.Studio.ClinicalPathway.PathRequirement", [], ClinicalPathway_PathRequirement, () => [["RequirementKey", string_type], ["Description", string_type], ["MustVisitStates", list_type(Shared_StateKey_$reflection())], ["MustAvoidStates", option_type(list_type(Shared_StateKey_$reflection()))], ["ValidationRule", option_type(string_type)]]);
|
|
2548
|
+
}
|
|
2549
|
+
|
|
2550
|
+
export type ClinicalPathway_SelectionStrategy_$union =
|
|
2551
|
+
| ClinicalPathway_SelectionStrategy<0>
|
|
2552
|
+
| ClinicalPathway_SelectionStrategy<1>
|
|
2553
|
+
| ClinicalPathway_SelectionStrategy<2>
|
|
2554
|
+
|
|
2555
|
+
export type ClinicalPathway_SelectionStrategy_$cases = {
|
|
2556
|
+
0: ["HighestPriority", []],
|
|
2557
|
+
1: ["MostSpecific", []],
|
|
2558
|
+
2: ["ClinicalSeverity", []]
|
|
2559
|
+
}
|
|
2560
|
+
|
|
2561
|
+
export function ClinicalPathway_SelectionStrategy_HighestPriority() {
|
|
2562
|
+
return new ClinicalPathway_SelectionStrategy<0>(0, []);
|
|
2563
|
+
}
|
|
2564
|
+
|
|
2565
|
+
export function ClinicalPathway_SelectionStrategy_MostSpecific() {
|
|
2566
|
+
return new ClinicalPathway_SelectionStrategy<1>(1, []);
|
|
2567
|
+
}
|
|
2568
|
+
|
|
2569
|
+
export function ClinicalPathway_SelectionStrategy_ClinicalSeverity() {
|
|
2570
|
+
return new ClinicalPathway_SelectionStrategy<2>(2, []);
|
|
2571
|
+
}
|
|
2572
|
+
|
|
2573
|
+
export class ClinicalPathway_SelectionStrategy<Tag extends keyof ClinicalPathway_SelectionStrategy_$cases> extends Union<Tag, ClinicalPathway_SelectionStrategy_$cases[Tag][0]> {
|
|
2574
|
+
constructor(readonly tag: Tag, readonly fields: ClinicalPathway_SelectionStrategy_$cases[Tag][1]) {
|
|
2575
|
+
super();
|
|
2576
|
+
}
|
|
2577
|
+
cases() {
|
|
2578
|
+
return ["HighestPriority", "MostSpecific", "ClinicalSeverity"];
|
|
2579
|
+
}
|
|
2580
|
+
}
|
|
2581
|
+
|
|
2582
|
+
export function ClinicalPathway_SelectionStrategy_$reflection(): TypeInfo {
|
|
2583
|
+
return union_type("F1.Studio.ClinicalPathway.SelectionStrategy", [], ClinicalPathway_SelectionStrategy, () => [[], [], []]);
|
|
2584
|
+
}
|
|
2585
|
+
|
|
2586
|
+
export type ClinicalPathway_CombinationStrategy_$union =
|
|
2587
|
+
| ClinicalPathway_CombinationStrategy<0>
|
|
2588
|
+
| ClinicalPathway_CombinationStrategy<1>
|
|
2589
|
+
| ClinicalPathway_CombinationStrategy<2>
|
|
2590
|
+
|
|
2591
|
+
export type ClinicalPathway_CombinationStrategy_$cases = {
|
|
2592
|
+
0: ["AllMatching", []],
|
|
2593
|
+
1: ["NonConflicting", []],
|
|
2594
|
+
2: ["Complementary", []]
|
|
2595
|
+
}
|
|
2596
|
+
|
|
2597
|
+
export function ClinicalPathway_CombinationStrategy_AllMatching() {
|
|
2598
|
+
return new ClinicalPathway_CombinationStrategy<0>(0, []);
|
|
2599
|
+
}
|
|
2600
|
+
|
|
2601
|
+
export function ClinicalPathway_CombinationStrategy_NonConflicting() {
|
|
2602
|
+
return new ClinicalPathway_CombinationStrategy<1>(1, []);
|
|
2603
|
+
}
|
|
2604
|
+
|
|
2605
|
+
export function ClinicalPathway_CombinationStrategy_Complementary() {
|
|
2606
|
+
return new ClinicalPathway_CombinationStrategy<2>(2, []);
|
|
2607
|
+
}
|
|
2608
|
+
|
|
2609
|
+
export class ClinicalPathway_CombinationStrategy<Tag extends keyof ClinicalPathway_CombinationStrategy_$cases> extends Union<Tag, ClinicalPathway_CombinationStrategy_$cases[Tag][0]> {
|
|
2610
|
+
constructor(readonly tag: Tag, readonly fields: ClinicalPathway_CombinationStrategy_$cases[Tag][1]) {
|
|
2611
|
+
super();
|
|
2612
|
+
}
|
|
2613
|
+
cases() {
|
|
2614
|
+
return ["AllMatching", "NonConflicting", "Complementary"];
|
|
2615
|
+
}
|
|
2616
|
+
}
|
|
2617
|
+
|
|
2618
|
+
export function ClinicalPathway_CombinationStrategy_$reflection(): TypeInfo {
|
|
2619
|
+
return union_type("F1.Studio.ClinicalPathway.CombinationStrategy", [], ClinicalPathway_CombinationStrategy, () => [[], [], []]);
|
|
2620
|
+
}
|
|
2621
|
+
|
|
2622
|
+
export type ClinicalPathway_ConflictResolution_$union =
|
|
2623
|
+
| ClinicalPathway_ConflictResolution<0>
|
|
2624
|
+
| ClinicalPathway_ConflictResolution<1>
|
|
2625
|
+
| ClinicalPathway_ConflictResolution<2>
|
|
2626
|
+
|
|
2627
|
+
export type ClinicalPathway_ConflictResolution_$cases = {
|
|
2628
|
+
0: ["CombineActions", []],
|
|
2629
|
+
1: ["PreferHigherPriority", []],
|
|
2630
|
+
2: ["RequireManualReview", []]
|
|
2631
|
+
}
|
|
2632
|
+
|
|
2633
|
+
export function ClinicalPathway_ConflictResolution_CombineActions() {
|
|
2634
|
+
return new ClinicalPathway_ConflictResolution<0>(0, []);
|
|
2635
|
+
}
|
|
2636
|
+
|
|
2637
|
+
export function ClinicalPathway_ConflictResolution_PreferHigherPriority() {
|
|
2638
|
+
return new ClinicalPathway_ConflictResolution<1>(1, []);
|
|
2639
|
+
}
|
|
2640
|
+
|
|
2641
|
+
export function ClinicalPathway_ConflictResolution_RequireManualReview() {
|
|
2642
|
+
return new ClinicalPathway_ConflictResolution<2>(2, []);
|
|
2643
|
+
}
|
|
2644
|
+
|
|
2645
|
+
export class ClinicalPathway_ConflictResolution<Tag extends keyof ClinicalPathway_ConflictResolution_$cases> extends Union<Tag, ClinicalPathway_ConflictResolution_$cases[Tag][0]> {
|
|
2646
|
+
constructor(readonly tag: Tag, readonly fields: ClinicalPathway_ConflictResolution_$cases[Tag][1]) {
|
|
2647
|
+
super();
|
|
2648
|
+
}
|
|
2649
|
+
cases() {
|
|
2650
|
+
return ["CombineActions", "PreferHigherPriority", "RequireManualReview"];
|
|
2651
|
+
}
|
|
2652
|
+
}
|
|
2653
|
+
|
|
2654
|
+
export function ClinicalPathway_ConflictResolution_$reflection(): TypeInfo {
|
|
2655
|
+
return union_type("F1.Studio.ClinicalPathway.ConflictResolution", [], ClinicalPathway_ConflictResolution, () => [[], [], []]);
|
|
2656
|
+
}
|
|
2657
|
+
|
|
2658
|
+
export class ClinicalPathway_SinglePathwayConfig extends Record implements IEquatable<ClinicalPathway_SinglePathwayConfig>, IComparable<ClinicalPathway_SinglePathwayConfig> {
|
|
2659
|
+
readonly SelectionStrategy: ClinicalPathway_SelectionStrategy_$union;
|
|
2660
|
+
readonly RequiresFullEvaluation: boolean;
|
|
2661
|
+
constructor(SelectionStrategy: ClinicalPathway_SelectionStrategy_$union, RequiresFullEvaluation: boolean) {
|
|
2662
|
+
super();
|
|
2663
|
+
this.SelectionStrategy = SelectionStrategy;
|
|
2664
|
+
this.RequiresFullEvaluation = RequiresFullEvaluation;
|
|
2665
|
+
}
|
|
2666
|
+
}
|
|
2667
|
+
|
|
2668
|
+
export function ClinicalPathway_SinglePathwayConfig_$reflection(): TypeInfo {
|
|
2669
|
+
return record_type("F1.Studio.ClinicalPathway.SinglePathwayConfig", [], ClinicalPathway_SinglePathwayConfig, () => [["SelectionStrategy", ClinicalPathway_SelectionStrategy_$reflection()], ["RequiresFullEvaluation", bool_type]]);
|
|
2670
|
+
}
|
|
2671
|
+
|
|
2672
|
+
export class ClinicalPathway_MultiPathwayConfig extends Record implements IEquatable<ClinicalPathway_MultiPathwayConfig>, IComparable<ClinicalPathway_MultiPathwayConfig> {
|
|
2673
|
+
readonly CombinationStrategy: ClinicalPathway_CombinationStrategy_$union;
|
|
2674
|
+
readonly ConflictResolution: ClinicalPathway_ConflictResolution_$union;
|
|
2675
|
+
readonly MaxSelections: Option<int32>;
|
|
2676
|
+
constructor(CombinationStrategy: ClinicalPathway_CombinationStrategy_$union, ConflictResolution: ClinicalPathway_ConflictResolution_$union, MaxSelections: Option<int32>) {
|
|
2677
|
+
super();
|
|
2678
|
+
this.CombinationStrategy = CombinationStrategy;
|
|
2679
|
+
this.ConflictResolution = ConflictResolution;
|
|
2680
|
+
this.MaxSelections = MaxSelections;
|
|
2681
|
+
}
|
|
2682
|
+
}
|
|
2683
|
+
|
|
2684
|
+
export function ClinicalPathway_MultiPathwayConfig_$reflection(): TypeInfo {
|
|
2685
|
+
return record_type("F1.Studio.ClinicalPathway.MultiPathwayConfig", [], ClinicalPathway_MultiPathwayConfig, () => [["CombinationStrategy", ClinicalPathway_CombinationStrategy_$reflection()], ["ConflictResolution", ClinicalPathway_ConflictResolution_$reflection()], ["MaxSelections", option_type(int32_type)]]);
|
|
2686
|
+
}
|
|
2687
|
+
|
|
2688
|
+
export type ClinicalPathway_PathwayExecutionMode_$union =
|
|
2689
|
+
| ClinicalPathway_PathwayExecutionMode<0>
|
|
2690
|
+
| ClinicalPathway_PathwayExecutionMode<1>
|
|
2691
|
+
| ClinicalPathway_PathwayExecutionMode<2>
|
|
2692
|
+
|
|
2693
|
+
export type ClinicalPathway_PathwayExecutionMode_$cases = {
|
|
2694
|
+
0: ["SinglePathway", [ClinicalPathway_SinglePathwayConfig]],
|
|
2695
|
+
1: ["MultiPathway", [ClinicalPathway_MultiPathwayConfig]],
|
|
2696
|
+
2: ["TriggerBased", [ClinicalPathway_TriggerBasedConfig]]
|
|
2697
|
+
}
|
|
2698
|
+
|
|
2699
|
+
export function ClinicalPathway_PathwayExecutionMode_SinglePathway(Item: ClinicalPathway_SinglePathwayConfig) {
|
|
2700
|
+
return new ClinicalPathway_PathwayExecutionMode<0>(0, [Item]);
|
|
2701
|
+
}
|
|
2702
|
+
|
|
2703
|
+
export function ClinicalPathway_PathwayExecutionMode_MultiPathway(Item: ClinicalPathway_MultiPathwayConfig) {
|
|
2704
|
+
return new ClinicalPathway_PathwayExecutionMode<1>(1, [Item]);
|
|
2705
|
+
}
|
|
2706
|
+
|
|
2707
|
+
export function ClinicalPathway_PathwayExecutionMode_TriggerBased(Item: ClinicalPathway_TriggerBasedConfig) {
|
|
2708
|
+
return new ClinicalPathway_PathwayExecutionMode<2>(2, [Item]);
|
|
2709
|
+
}
|
|
2710
|
+
|
|
2711
|
+
export class ClinicalPathway_PathwayExecutionMode<Tag extends keyof ClinicalPathway_PathwayExecutionMode_$cases> extends Union<Tag, ClinicalPathway_PathwayExecutionMode_$cases[Tag][0]> {
|
|
2712
|
+
constructor(readonly tag: Tag, readonly fields: ClinicalPathway_PathwayExecutionMode_$cases[Tag][1]) {
|
|
2713
|
+
super();
|
|
2714
|
+
}
|
|
2715
|
+
cases() {
|
|
2716
|
+
return ["SinglePathway", "MultiPathway", "TriggerBased"];
|
|
2717
|
+
}
|
|
2718
|
+
}
|
|
2719
|
+
|
|
2720
|
+
export function ClinicalPathway_PathwayExecutionMode_$reflection(): TypeInfo {
|
|
2721
|
+
return union_type("F1.Studio.ClinicalPathway.PathwayExecutionMode", [], ClinicalPathway_PathwayExecutionMode, () => [[["Item", ClinicalPathway_SinglePathwayConfig_$reflection()]], [["Item", ClinicalPathway_MultiPathwayConfig_$reflection()]], [["Item", ClinicalPathway_TriggerBasedConfig_$reflection()]]]);
|
|
2722
|
+
}
|
|
2723
|
+
|
|
2724
|
+
export type ClinicalPathway_TriggerTiming_$union =
|
|
2725
|
+
| ClinicalPathway_TriggerTiming<0>
|
|
2726
|
+
| ClinicalPathway_TriggerTiming<1>
|
|
2727
|
+
| ClinicalPathway_TriggerTiming<2>
|
|
2728
|
+
| ClinicalPathway_TriggerTiming<3>
|
|
2729
|
+
|
|
2730
|
+
export type ClinicalPathway_TriggerTiming_$cases = {
|
|
2731
|
+
0: ["OnFormSave", []],
|
|
2732
|
+
1: ["OnFormLoad", []],
|
|
2733
|
+
2: ["OnFormSubmit", []],
|
|
2734
|
+
3: ["OnFieldChange", [Shared_FieldKey]]
|
|
2735
|
+
}
|
|
2736
|
+
|
|
2737
|
+
export function ClinicalPathway_TriggerTiming_OnFormSave() {
|
|
2738
|
+
return new ClinicalPathway_TriggerTiming<0>(0, []);
|
|
2739
|
+
}
|
|
2740
|
+
|
|
2741
|
+
export function ClinicalPathway_TriggerTiming_OnFormLoad() {
|
|
2742
|
+
return new ClinicalPathway_TriggerTiming<1>(1, []);
|
|
2743
|
+
}
|
|
2744
|
+
|
|
2745
|
+
export function ClinicalPathway_TriggerTiming_OnFormSubmit() {
|
|
2746
|
+
return new ClinicalPathway_TriggerTiming<2>(2, []);
|
|
2747
|
+
}
|
|
2748
|
+
|
|
2749
|
+
export function ClinicalPathway_TriggerTiming_OnFieldChange(Item: Shared_FieldKey) {
|
|
2750
|
+
return new ClinicalPathway_TriggerTiming<3>(3, [Item]);
|
|
2751
|
+
}
|
|
2752
|
+
|
|
2753
|
+
export class ClinicalPathway_TriggerTiming<Tag extends keyof ClinicalPathway_TriggerTiming_$cases> extends Union<Tag, ClinicalPathway_TriggerTiming_$cases[Tag][0]> {
|
|
2754
|
+
constructor(readonly tag: Tag, readonly fields: ClinicalPathway_TriggerTiming_$cases[Tag][1]) {
|
|
2755
|
+
super();
|
|
2756
|
+
}
|
|
2757
|
+
cases() {
|
|
2758
|
+
return ["OnFormSave", "OnFormLoad", "OnFormSubmit", "OnFieldChange"];
|
|
2759
|
+
}
|
|
2760
|
+
}
|
|
2761
|
+
|
|
2762
|
+
export function ClinicalPathway_TriggerTiming_$reflection(): TypeInfo {
|
|
2763
|
+
return union_type("F1.Studio.ClinicalPathway.TriggerTiming", [], ClinicalPathway_TriggerTiming, () => [[], [], [], [["Item", Shared_FieldKey_$reflection()]]]);
|
|
2764
|
+
}
|
|
2765
|
+
|
|
2766
|
+
export class ClinicalPathway_TriggerBasedConfig extends Record implements IEquatable<ClinicalPathway_TriggerBasedConfig>, IComparable<ClinicalPathway_TriggerBasedConfig> {
|
|
2767
|
+
readonly Timing: ClinicalPathway_TriggerTiming_$union;
|
|
2768
|
+
readonly AutoExecute: boolean;
|
|
2769
|
+
constructor(Timing: ClinicalPathway_TriggerTiming_$union, AutoExecute: boolean) {
|
|
2770
|
+
super();
|
|
2771
|
+
this.Timing = Timing;
|
|
2772
|
+
this.AutoExecute = AutoExecute;
|
|
2773
|
+
}
|
|
2774
|
+
}
|
|
2775
|
+
|
|
2776
|
+
export function ClinicalPathway_TriggerBasedConfig_$reflection(): TypeInfo {
|
|
2777
|
+
return record_type("F1.Studio.ClinicalPathway.TriggerBasedConfig", [], ClinicalPathway_TriggerBasedConfig, () => [["Timing", ClinicalPathway_TriggerTiming_$reflection()], ["AutoExecute", bool_type]]);
|
|
2778
|
+
}
|
|
2779
|
+
|
|
2780
|
+
export class ClinicalPathway_ClinicalPathwaySpec extends Record implements IEquatable<ClinicalPathway_ClinicalPathwaySpec>, IComparable<ClinicalPathway_ClinicalPathwaySpec> {
|
|
2781
|
+
readonly PathwayId: string;
|
|
2782
|
+
readonly PathwayName: string;
|
|
2783
|
+
readonly Version: string;
|
|
2784
|
+
readonly ProtocolSource: string;
|
|
2785
|
+
readonly ExecutionMode: ClinicalPathway_PathwayExecutionMode_$union;
|
|
2786
|
+
readonly InitialState: Option<Shared_StateKey>;
|
|
2787
|
+
readonly States: FSharpList<ClinicalPathway_StateDefinition>;
|
|
2788
|
+
readonly Transitions: FSharpList<ClinicalPathway_TransitionDefinition>;
|
|
2789
|
+
readonly Constraints: FSharpList<ClinicalPathway_ConstraintDefinition>;
|
|
2790
|
+
readonly RequiredPaths: FSharpList<ClinicalPathway_PathRequirement>;
|
|
2791
|
+
readonly CreatedDate: Date;
|
|
2792
|
+
readonly ValidatedBy: Option<string>;
|
|
2793
|
+
readonly ValidationDate: Option<Date>;
|
|
2794
|
+
readonly ConfidenceScore: Option<float64>;
|
|
2795
|
+
constructor(PathwayId: string, PathwayName: string, Version: string, ProtocolSource: string, ExecutionMode: ClinicalPathway_PathwayExecutionMode_$union, InitialState: Option<Shared_StateKey>, States: FSharpList<ClinicalPathway_StateDefinition>, Transitions: FSharpList<ClinicalPathway_TransitionDefinition>, Constraints: FSharpList<ClinicalPathway_ConstraintDefinition>, RequiredPaths: FSharpList<ClinicalPathway_PathRequirement>, CreatedDate: Date, ValidatedBy: Option<string>, ValidationDate: Option<Date>, ConfidenceScore: Option<float64>) {
|
|
2796
|
+
super();
|
|
2797
|
+
this.PathwayId = PathwayId;
|
|
2798
|
+
this.PathwayName = PathwayName;
|
|
2799
|
+
this.Version = Version;
|
|
2800
|
+
this.ProtocolSource = ProtocolSource;
|
|
2801
|
+
this.ExecutionMode = ExecutionMode;
|
|
2802
|
+
this.InitialState = InitialState;
|
|
2803
|
+
this.States = States;
|
|
2804
|
+
this.Transitions = Transitions;
|
|
2805
|
+
this.Constraints = Constraints;
|
|
2806
|
+
this.RequiredPaths = RequiredPaths;
|
|
2807
|
+
this.CreatedDate = CreatedDate;
|
|
2808
|
+
this.ValidatedBy = ValidatedBy;
|
|
2809
|
+
this.ValidationDate = ValidationDate;
|
|
2810
|
+
this.ConfidenceScore = ConfidenceScore;
|
|
2811
|
+
}
|
|
2812
|
+
}
|
|
2813
|
+
|
|
2814
|
+
export function ClinicalPathway_ClinicalPathwaySpec_$reflection(): TypeInfo {
|
|
2815
|
+
return record_type("F1.Studio.ClinicalPathway.ClinicalPathwaySpec", [], ClinicalPathway_ClinicalPathwaySpec, () => [["PathwayId", string_type], ["PathwayName", string_type], ["Version", string_type], ["ProtocolSource", string_type], ["ExecutionMode", ClinicalPathway_PathwayExecutionMode_$reflection()], ["InitialState", option_type(Shared_StateKey_$reflection())], ["States", list_type(ClinicalPathway_StateDefinition_$reflection())], ["Transitions", list_type(ClinicalPathway_TransitionDefinition_$reflection())], ["Constraints", list_type(ClinicalPathway_ConstraintDefinition_$reflection())], ["RequiredPaths", list_type(ClinicalPathway_PathRequirement_$reflection())], ["CreatedDate", class_type("System.DateTimeOffset")], ["ValidatedBy", option_type(string_type)], ["ValidationDate", option_type(class_type("System.DateTimeOffset"))], ["ConfidenceScore", option_type(float64_type)]]);
|
|
2816
|
+
}
|
|
2817
|
+
|
|
2818
|
+
export class ClinicalPathway_PathExecutionContext extends Record implements IEquatable<ClinicalPathway_PathExecutionContext> {
|
|
2819
|
+
readonly PathwayId: string;
|
|
2820
|
+
readonly CurrentState: Shared_StateKey;
|
|
2821
|
+
readonly VisitedStates: FSharpList<Shared_StateKey>;
|
|
2822
|
+
readonly CollectedData: FSharpMap<Shared_FieldKey, any>;
|
|
2823
|
+
readonly TestResults: FSharpMap<string, string>;
|
|
2824
|
+
readonly CompletedActions: FSharpList<ClinicalPathway_ActionInfo_$union>;
|
|
2825
|
+
readonly Timestamp: Date;
|
|
2826
|
+
constructor(PathwayId: string, CurrentState: Shared_StateKey, VisitedStates: FSharpList<Shared_StateKey>, CollectedData: FSharpMap<Shared_FieldKey, any>, TestResults: FSharpMap<string, string>, CompletedActions: FSharpList<ClinicalPathway_ActionInfo_$union>, Timestamp: Date) {
|
|
2827
|
+
super();
|
|
2828
|
+
this.PathwayId = PathwayId;
|
|
2829
|
+
this.CurrentState = CurrentState;
|
|
2830
|
+
this.VisitedStates = VisitedStates;
|
|
2831
|
+
this.CollectedData = CollectedData;
|
|
2832
|
+
this.TestResults = TestResults;
|
|
2833
|
+
this.CompletedActions = CompletedActions;
|
|
2834
|
+
this.Timestamp = Timestamp;
|
|
2835
|
+
}
|
|
2836
|
+
}
|
|
2837
|
+
|
|
2838
|
+
export function ClinicalPathway_PathExecutionContext_$reflection(): TypeInfo {
|
|
2839
|
+
return record_type("F1.Studio.ClinicalPathway.PathExecutionContext", [], ClinicalPathway_PathExecutionContext, () => [["PathwayId", string_type], ["CurrentState", Shared_StateKey_$reflection()], ["VisitedStates", list_type(Shared_StateKey_$reflection())], ["CollectedData", class_type("Microsoft.FSharp.Collections.FSharpMap`2", [Shared_FieldKey_$reflection(), obj_type])], ["TestResults", class_type("Microsoft.FSharp.Collections.FSharpMap`2", [string_type, string_type])], ["CompletedActions", list_type(ClinicalPathway_ActionInfo_$reflection())], ["Timestamp", class_type("System.DateTime")]]);
|
|
2840
|
+
}
|
|
2841
|
+
|
|
2842
|
+
export class ClinicalPathway_ValidationIssue extends Record implements IEquatable<ClinicalPathway_ValidationIssue>, IComparable<ClinicalPathway_ValidationIssue> {
|
|
2843
|
+
readonly IssueType: string;
|
|
2844
|
+
readonly Severity: string;
|
|
2845
|
+
readonly Location: string;
|
|
2846
|
+
readonly Description: string;
|
|
2847
|
+
constructor(IssueType: string, Severity: string, Location: string, Description: string) {
|
|
2848
|
+
super();
|
|
2849
|
+
this.IssueType = IssueType;
|
|
2850
|
+
this.Severity = Severity;
|
|
2851
|
+
this.Location = Location;
|
|
2852
|
+
this.Description = Description;
|
|
2853
|
+
}
|
|
2854
|
+
}
|
|
2855
|
+
|
|
2856
|
+
export function ClinicalPathway_ValidationIssue_$reflection(): TypeInfo {
|
|
2857
|
+
return record_type("F1.Studio.ClinicalPathway.ValidationIssue", [], ClinicalPathway_ValidationIssue, () => [["IssueType", string_type], ["Severity", string_type], ["Location", string_type], ["Description", string_type]]);
|
|
2858
|
+
}
|
|
2859
|
+
|
|
2860
|
+
export class ClinicalPathway_PathwayValidationResult extends Record implements IEquatable<ClinicalPathway_PathwayValidationResult>, IComparable<ClinicalPathway_PathwayValidationResult> {
|
|
2861
|
+
readonly IsValid: boolean;
|
|
2862
|
+
readonly Issues: FSharpList<ClinicalPathway_ValidationIssue>;
|
|
2863
|
+
readonly Coverage: float64;
|
|
2864
|
+
readonly CompileStatus: string;
|
|
2865
|
+
constructor(IsValid: boolean, Issues: FSharpList<ClinicalPathway_ValidationIssue>, Coverage: float64, CompileStatus: string) {
|
|
2866
|
+
super();
|
|
2867
|
+
this.IsValid = IsValid;
|
|
2868
|
+
this.Issues = Issues;
|
|
2869
|
+
this.Coverage = Coverage;
|
|
2870
|
+
this.CompileStatus = CompileStatus;
|
|
2871
|
+
}
|
|
2872
|
+
}
|
|
2873
|
+
|
|
2874
|
+
export function ClinicalPathway_PathwayValidationResult_$reflection(): TypeInfo {
|
|
2875
|
+
return record_type("F1.Studio.ClinicalPathway.PathwayValidationResult", [], ClinicalPathway_PathwayValidationResult, () => [["IsValid", bool_type], ["Issues", list_type(ClinicalPathway_ValidationIssue_$reflection())], ["Coverage", float64_type], ["CompileStatus", string_type]]);
|
|
2876
|
+
}
|
|
2877
|
+
|
|
2878
|
+
export class Values_StepOrder extends Union<0, "StepOrder"> {
|
|
2879
|
+
constructor(Item: int32) {
|
|
2880
|
+
super();
|
|
2881
|
+
this.tag = 0;
|
|
2882
|
+
this.fields = [Item];
|
|
2883
|
+
}
|
|
2884
|
+
readonly tag: 0;
|
|
2885
|
+
readonly fields: [int32];
|
|
2886
|
+
cases() {
|
|
2887
|
+
return ["StepOrder"];
|
|
2888
|
+
}
|
|
2889
|
+
}
|
|
2890
|
+
|
|
2891
|
+
export function Values_StepOrder_$reflection(): TypeInfo {
|
|
2892
|
+
return union_type("F1.Studio.Values.StepOrder", [], Values_StepOrder, () => [[["Item", int32_type]]]);
|
|
2893
|
+
}
|
|
2894
|
+
|
|
2895
|
+
export class Values_FieldDetails$1<FieldType> extends Record implements IEquatable<Values_FieldDetails$1<FieldType>>, IComparable<Values_FieldDetails$1<FieldType>> {
|
|
2896
|
+
readonly FieldOrder: int32;
|
|
2897
|
+
readonly Key: Shared_FieldKey;
|
|
2898
|
+
readonly Label: string;
|
|
2899
|
+
readonly FieldValue: Shared_FieldValue_$union;
|
|
2900
|
+
readonly FieldType: FieldType;
|
|
2901
|
+
readonly Options: FSharpList<Shared_FieldOption>;
|
|
2902
|
+
constructor(FieldOrder: int32, Key: Shared_FieldKey, Label: string, FieldValue: Shared_FieldValue_$union, FieldType: FieldType, Options: FSharpList<Shared_FieldOption>) {
|
|
2903
|
+
super();
|
|
2904
|
+
this.FieldOrder = (FieldOrder | 0);
|
|
2905
|
+
this.Key = Key;
|
|
2906
|
+
this.Label = Label;
|
|
2907
|
+
this.FieldValue = FieldValue;
|
|
2908
|
+
this.FieldType = FieldType;
|
|
2909
|
+
this.Options = Options;
|
|
2910
|
+
}
|
|
2911
|
+
}
|
|
2912
|
+
|
|
2913
|
+
export function Values_FieldDetails$1_$reflection(gen0: TypeInfo): TypeInfo {
|
|
2914
|
+
return record_type("F1.Studio.Values.FieldDetails`1", [gen0], Values_FieldDetails$1, () => [["FieldOrder", int32_type], ["Key", Shared_FieldKey_$reflection()], ["Label", string_type], ["FieldValue", Shared_FieldValue_$reflection()], ["FieldType", gen0], ["Options", list_type(Shared_FieldOption_$reflection())]]);
|
|
2915
|
+
}
|
|
2916
|
+
|
|
2917
|
+
export type Values_FormStatus_$union =
|
|
2918
|
+
| Values_FormStatus<0>
|
|
2919
|
+
| Values_FormStatus<1>
|
|
2920
|
+
| Values_FormStatus<2>
|
|
2921
|
+
| Values_FormStatus<3>
|
|
2922
|
+
| Values_FormStatus<4>
|
|
2923
|
+
|
|
2924
|
+
export type Values_FormStatus_$cases = {
|
|
2925
|
+
0: ["Pending", []],
|
|
2926
|
+
1: ["Draft", [string]],
|
|
2927
|
+
2: ["WaitingForReview", []],
|
|
2928
|
+
3: ["WaitingForApproval", []],
|
|
2929
|
+
4: ["Complete", []]
|
|
2930
|
+
}
|
|
2931
|
+
|
|
2932
|
+
export function Values_FormStatus_Pending() {
|
|
2933
|
+
return new Values_FormStatus<0>(0, []);
|
|
2934
|
+
}
|
|
2935
|
+
|
|
2936
|
+
export function Values_FormStatus_Draft(Item: string) {
|
|
2937
|
+
return new Values_FormStatus<1>(1, [Item]);
|
|
2938
|
+
}
|
|
2939
|
+
|
|
2940
|
+
export function Values_FormStatus_WaitingForReview() {
|
|
2941
|
+
return new Values_FormStatus<2>(2, []);
|
|
2942
|
+
}
|
|
2943
|
+
|
|
2944
|
+
export function Values_FormStatus_WaitingForApproval() {
|
|
2945
|
+
return new Values_FormStatus<3>(3, []);
|
|
2946
|
+
}
|
|
2947
|
+
|
|
2948
|
+
export function Values_FormStatus_Complete() {
|
|
2949
|
+
return new Values_FormStatus<4>(4, []);
|
|
2950
|
+
}
|
|
2951
|
+
|
|
2952
|
+
export class Values_FormStatus<Tag extends keyof Values_FormStatus_$cases> extends Union<Tag, Values_FormStatus_$cases[Tag][0]> {
|
|
2953
|
+
constructor(readonly tag: Tag, readonly fields: Values_FormStatus_$cases[Tag][1]) {
|
|
2954
|
+
super();
|
|
2955
|
+
}
|
|
2956
|
+
cases() {
|
|
2957
|
+
return ["Pending", "Draft", "WaitingForReview", "WaitingForApproval", "Complete"];
|
|
2958
|
+
}
|
|
2959
|
+
}
|
|
2960
|
+
|
|
2961
|
+
export function Values_FormStatus_$reflection(): TypeInfo {
|
|
2962
|
+
return union_type("F1.Studio.Values.FormStatus", [], Values_FormStatus, () => [[], [["Item", class_type("System.Guid")]], [], [], []]);
|
|
2963
|
+
}
|
|
2964
|
+
|
|
2965
|
+
export type Values_SignatureType_$union =
|
|
2966
|
+
| Values_SignatureType<0>
|
|
2967
|
+
| Values_SignatureType<1>
|
|
2968
|
+
|
|
2969
|
+
export type Values_SignatureType_$cases = {
|
|
2970
|
+
0: ["Review", []],
|
|
2971
|
+
1: ["Approval", []]
|
|
2972
|
+
}
|
|
2973
|
+
|
|
2974
|
+
export function Values_SignatureType_Review() {
|
|
2975
|
+
return new Values_SignatureType<0>(0, []);
|
|
2976
|
+
}
|
|
2977
|
+
|
|
2978
|
+
export function Values_SignatureType_Approval() {
|
|
2979
|
+
return new Values_SignatureType<1>(1, []);
|
|
2980
|
+
}
|
|
2981
|
+
|
|
2982
|
+
export class Values_SignatureType<Tag extends keyof Values_SignatureType_$cases> extends Union<Tag, Values_SignatureType_$cases[Tag][0]> {
|
|
2983
|
+
constructor(readonly tag: Tag, readonly fields: Values_SignatureType_$cases[Tag][1]) {
|
|
2984
|
+
super();
|
|
2985
|
+
}
|
|
2986
|
+
cases() {
|
|
2987
|
+
return ["Review", "Approval"];
|
|
2988
|
+
}
|
|
2989
|
+
}
|
|
2990
|
+
|
|
2991
|
+
export function Values_SignatureType_$reflection(): TypeInfo {
|
|
2992
|
+
return union_type("F1.Studio.Values.SignatureType", [], Values_SignatureType, () => [[], []]);
|
|
2993
|
+
}
|
|
2994
|
+
|
|
2995
|
+
export class Values_Signature extends Record implements IEquatable<Values_Signature>, IComparable<Values_Signature> {
|
|
2996
|
+
readonly ApprovedById: string;
|
|
2997
|
+
readonly ApprovedByFullName: string;
|
|
2998
|
+
readonly ApprovedByDate: Date;
|
|
2999
|
+
readonly ApprovalSignature: string;
|
|
3000
|
+
readonly SignatureType: Values_SignatureType_$union;
|
|
3001
|
+
constructor(ApprovedById: string, ApprovedByFullName: string, ApprovedByDate: Date, ApprovalSignature: string, SignatureType: Values_SignatureType_$union) {
|
|
3002
|
+
super();
|
|
3003
|
+
this.ApprovedById = ApprovedById;
|
|
3004
|
+
this.ApprovedByFullName = ApprovedByFullName;
|
|
3005
|
+
this.ApprovedByDate = ApprovedByDate;
|
|
3006
|
+
this.ApprovalSignature = ApprovalSignature;
|
|
3007
|
+
this.SignatureType = SignatureType;
|
|
3008
|
+
}
|
|
3009
|
+
}
|
|
3010
|
+
|
|
3011
|
+
export function Values_Signature_$reflection(): TypeInfo {
|
|
3012
|
+
return record_type("F1.Studio.Values.Signature", [], Values_Signature, () => [["ApprovedById", class_type("System.Guid")], ["ApprovedByFullName", string_type], ["ApprovedByDate", class_type("System.DateTime")], ["ApprovalSignature", string_type], ["SignatureType", Values_SignatureType_$reflection()]]);
|
|
3013
|
+
}
|
|
3014
|
+
|
|
3015
|
+
export class Values_DynamicFormSpecDetails extends Record implements IEquatable<Values_DynamicFormSpecDetails>, IComparable<Values_DynamicFormSpecDetails> {
|
|
3016
|
+
readonly FormSpecId: string;
|
|
3017
|
+
readonly FormSpecCode: Option<string>;
|
|
3018
|
+
readonly FormSpecVersion: string;
|
|
3019
|
+
readonly DynamicVersion: string;
|
|
3020
|
+
readonly MaxScore: Option<Spec_Score>;
|
|
3021
|
+
readonly Status: Values_FormStatus_$union;
|
|
3022
|
+
readonly Signatures: FSharpList<Values_Signature>;
|
|
3023
|
+
constructor(FormSpecId: string, FormSpecCode: Option<string>, FormSpecVersion: string, DynamicVersion: string, MaxScore: Option<Spec_Score>, Status: Values_FormStatus_$union, Signatures: FSharpList<Values_Signature>) {
|
|
3024
|
+
super();
|
|
3025
|
+
this.FormSpecId = FormSpecId;
|
|
3026
|
+
this.FormSpecCode = FormSpecCode;
|
|
3027
|
+
this.FormSpecVersion = FormSpecVersion;
|
|
3028
|
+
this.DynamicVersion = DynamicVersion;
|
|
3029
|
+
this.MaxScore = MaxScore;
|
|
3030
|
+
this.Status = Status;
|
|
3031
|
+
this.Signatures = Signatures;
|
|
3032
|
+
}
|
|
3033
|
+
}
|
|
3034
|
+
|
|
3035
|
+
export function Values_DynamicFormSpecDetails_$reflection(): TypeInfo {
|
|
3036
|
+
return record_type("F1.Studio.Values.DynamicFormSpecDetails", [], Values_DynamicFormSpecDetails, () => [["FormSpecId", class_type("System.Guid")], ["FormSpecCode", option_type(string_type)], ["FormSpecVersion", string_type], ["DynamicVersion", string_type], ["MaxScore", option_type(Spec_Score_$reflection())], ["Status", Values_FormStatus_$reflection()], ["Signatures", list_type(Values_Signature_$reflection())]]);
|
|
3037
|
+
}
|
|
3038
|
+
|
|
3039
|
+
export class Values_DynamicForm$1<FableFormModel> extends Record implements IEquatable<Values_DynamicForm$1<FableFormModel>>, IComparable<Values_DynamicForm$1<FableFormModel>> {
|
|
3040
|
+
readonly DynamicFormSpecDetails: Values_DynamicFormSpecDetails;
|
|
3041
|
+
readonly Steps: FSharpMap<Values_StepOrder, FableFormModel>;
|
|
3042
|
+
constructor(DynamicFormSpecDetails: Values_DynamicFormSpecDetails, Steps: FSharpMap<Values_StepOrder, FableFormModel>) {
|
|
3043
|
+
super();
|
|
3044
|
+
this.DynamicFormSpecDetails = DynamicFormSpecDetails;
|
|
3045
|
+
this.Steps = Steps;
|
|
3046
|
+
}
|
|
3047
|
+
}
|
|
3048
|
+
|
|
3049
|
+
export function Values_DynamicForm$1_$reflection(gen0: TypeInfo): TypeInfo {
|
|
3050
|
+
return record_type("F1.Studio.Values.DynamicForm`1", [gen0], Values_DynamicForm$1, () => [["DynamicFormSpecDetails", Values_DynamicFormSpecDetails_$reflection()], ["Steps", class_type("Microsoft.FSharp.Collections.FSharpMap`2", [Values_StepOrder_$reflection(), gen0])]]);
|
|
3051
|
+
}
|
|
3052
|
+
|
|
3053
|
+
export class Values_DynamicFormResultData$1<FieldType> extends Record implements IEquatable<Values_DynamicFormResultData$1<FieldType>>, IComparable<Values_DynamicFormResultData$1<FieldType>> {
|
|
3054
|
+
readonly ResultFormSpecDetails: Values_DynamicFormSpecDetails;
|
|
3055
|
+
readonly ResultSteps: FSharpMap<Values_StepOrder, FSharpMap<Shared_FieldKey, Values_FieldDetails$1<FieldType>>>;
|
|
3056
|
+
constructor(ResultFormSpecDetails: Values_DynamicFormSpecDetails, ResultSteps: FSharpMap<Values_StepOrder, FSharpMap<Shared_FieldKey, Values_FieldDetails$1<FieldType>>>) {
|
|
3057
|
+
super();
|
|
3058
|
+
this.ResultFormSpecDetails = ResultFormSpecDetails;
|
|
3059
|
+
this.ResultSteps = ResultSteps;
|
|
3060
|
+
}
|
|
3061
|
+
}
|
|
3062
|
+
|
|
3063
|
+
export function Values_DynamicFormResultData$1_$reflection(gen0: TypeInfo): TypeInfo {
|
|
3064
|
+
return record_type("F1.Studio.Values.DynamicFormResultData`1", [gen0], Values_DynamicFormResultData$1, () => [["ResultFormSpecDetails", Values_DynamicFormSpecDetails_$reflection()], ["ResultSteps", class_type("Microsoft.FSharp.Collections.FSharpMap`2", [Values_StepOrder_$reflection(), class_type("Microsoft.FSharp.Collections.FSharpMap`2", [Shared_FieldKey_$reflection(), Values_FieldDetails$1_$reflection(gen0)])])]]);
|
|
3065
|
+
}
|
|
3066
|
+
|
|
3067
|
+
export function Values_FormStatus__get_toString(x: Values_FormStatus_$union): string {
|
|
3068
|
+
switch (x.tag) {
|
|
3069
|
+
case /* Draft */ 1:
|
|
3070
|
+
return `Draft ${x.fields[0]}`;
|
|
3071
|
+
case /* WaitingForReview */ 2:
|
|
3072
|
+
return "RequiresReview";
|
|
3073
|
+
case /* WaitingForApproval */ 3:
|
|
3074
|
+
return "RequiresApproval";
|
|
3075
|
+
case /* Complete */ 4:
|
|
3076
|
+
return "Complete";
|
|
3077
|
+
default:
|
|
3078
|
+
return "Pending";
|
|
3079
|
+
}
|
|
3080
|
+
}
|
|
3081
|
+
|
|
3082
|
+
export function Values_formStatusFromString(formStatusString: string): Values_FormStatus_$union {
|
|
3083
|
+
if (formStatusString.startsWith("Draft ")) {
|
|
3084
|
+
let matchValue: [boolean, string];
|
|
3085
|
+
let outArg = "00000000-0000-0000-0000-000000000000";
|
|
3086
|
+
matchValue = ([tryParse(item(1, split(formStatusString, [" "], undefined, 1)), new FSharpRef<string>((): string => outArg, (v: string): void => {
|
|
3087
|
+
outArg = v;
|
|
3088
|
+
})), outArg] as [boolean, string]);
|
|
3089
|
+
if (matchValue[0]) {
|
|
3090
|
+
return Values_FormStatus_Draft(matchValue[1]);
|
|
3091
|
+
}
|
|
3092
|
+
else {
|
|
3093
|
+
throw new Error("NYI: NEED TO HANDLE UNPARSED GUID FOR DRAFT FORMS");
|
|
3094
|
+
}
|
|
3095
|
+
}
|
|
3096
|
+
else {
|
|
3097
|
+
switch (formStatusString) {
|
|
3098
|
+
case "RequiresReview":
|
|
3099
|
+
return Values_FormStatus_WaitingForReview();
|
|
3100
|
+
case "RequiresApproval":
|
|
3101
|
+
return Values_FormStatus_WaitingForApproval();
|
|
3102
|
+
case "Complete":
|
|
3103
|
+
return Values_FormStatus_Complete();
|
|
3104
|
+
case "Pending":
|
|
3105
|
+
return Values_FormStatus_Pending();
|
|
3106
|
+
case "Draft":
|
|
3107
|
+
return Values_FormStatus_Draft(newGuid());
|
|
3108
|
+
default:
|
|
3109
|
+
throw new Error(`Unhandled Signature Type String ${formStatusString}`);
|
|
3110
|
+
}
|
|
3111
|
+
}
|
|
3112
|
+
}
|
|
3113
|
+
|
|
3114
|
+
//# sourceMappingURL=FormSpec.ts.map
|