@f1studio/form-spec 5.0.0-alpha.140 → 5.0.0-alpha.141

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.
Files changed (105) hide show
  1. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.d.ts +3 -2
  2. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.d.ts.map +1 -1
  3. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.d.ts.map +1 -1
  4. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.d.ts.map +1 -1
  5. package/FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.d.ts +74 -0
  6. package/FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.d.ts.map +1 -0
  7. package/FormSpec.TS/FormSpec.FS/BlueprintValidation.js.map +1 -1
  8. package/FormSpec.TS/FormSpec.FS/BlueprintValidation.ts.map +1 -1
  9. package/FormSpec.TS/FormSpec.FS/FormSpecHelpers.js.map +1 -1
  10. package/FormSpec.TS/FormSpec.FS/FormSpecHelpers.ts.map +1 -1
  11. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.js +36 -30
  12. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.js.map +1 -1
  13. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.ts.map +1 -1
  14. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.js +4 -19
  15. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.js.map +1 -1
  16. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.ts.map +1 -1
  17. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.js.map +1 -1
  18. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.ts.map +1 -1
  19. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.js +12 -2
  20. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.js.map +1 -1
  21. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.ts.map +1 -1
  22. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.js.map +1 -1
  23. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.ts.map +1 -1
  24. package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.js.map +1 -1
  25. package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.ts.map +1 -1
  26. package/FormSpec.TS/FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.js +282 -0
  27. package/FormSpec.TS/FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.js.map +1 -0
  28. package/FormSpec.TS/FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.ts.map +1 -0
  29. package/FormSpec.TS/FormSpec.FS/Interop/Facade/FormAnswersGate.js.map +1 -1
  30. package/FormSpec.TS/FormSpec.FS/Interop/Facade/FormAnswersGate.ts.map +1 -1
  31. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Helpers.js.map +1 -1
  32. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Helpers.ts.map +1 -1
  33. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Option.js.map +1 -1
  34. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Option.ts.map +1 -1
  35. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Values.Api.Option.js.map +1 -1
  36. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Values.Api.Option.ts.map +1 -1
  37. package/FormSpec.TS/FormSpec.FS/Migrator.js.map +1 -1
  38. package/FormSpec.TS/FormSpec.FS/Migrator.ts.map +1 -1
  39. package/FormSpec.TS/FormSpec.FS/PathwayExecutor.js.map +1 -1
  40. package/FormSpec.TS/FormSpec.FS/PathwayExecutor.ts.map +1 -1
  41. package/FormSpec.TS/PluginRegistration.js +2 -0
  42. package/FormSpec.TS/PluginRegistration.js.map +1 -1
  43. package/FormSpec.TS/PluginRegistration.ts.map +1 -1
  44. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Decode.js +63 -69
  45. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Decode.js.map +1 -1
  46. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Decode.ts.map +1 -1
  47. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Encode.js +6 -10
  48. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Encode.js.map +1 -1
  49. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Encode.ts.map +1 -1
  50. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs +57 -0
  51. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js +119 -0
  52. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js.map +1 -0
  53. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.ts.map +1 -0
  54. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Fable.Promise.fableproj +20 -0
  55. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Promise.fs +766 -0
  56. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +165 -0
  57. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Promise.fs.js.map +1 -0
  58. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Promise.fs.ts.map +1 -0
  59. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs +31 -0
  60. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +32 -0
  61. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js.map +1 -0
  62. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.ts.map +1 -0
  63. package/FormSpec.TS/fable_modules/Feliz.2.8.0/DateParsing.fs.js.map +1 -1
  64. package/FormSpec.TS/fable_modules/Feliz.2.8.0/DateParsing.fs.ts.map +1 -1
  65. package/FormSpec.TS/fable_modules/project_cracked.json +1 -1
  66. package/FormSpec.TS/plugins/allergyfinder/src/AllergyFinderField.js +2431 -0
  67. package/FormSpec.TS/plugins/allergyfinder/src/AllergyFinderField.js.map +1 -0
  68. package/FormSpec.TS/plugins/allergyfinder/src/AllergyFinderField.ts.map +1 -0
  69. package/FormSpec.TS/plugins/allergyfinder/src/OpenFdaClient.js +107 -0
  70. package/FormSpec.TS/plugins/allergyfinder/src/OpenFdaClient.js.map +1 -0
  71. package/FormSpec.TS/plugins/allergyfinder/src/OpenFdaClient.ts.map +1 -0
  72. package/FormSpec.TS/plugins/vitals/src/VitalsField.js +29 -312
  73. package/FormSpec.TS/plugins/vitals/src/VitalsField.js.map +1 -1
  74. package/FormSpec.TS/plugins/vitals/src/VitalsField.ts.map +1 -1
  75. package/FormSpec.TS/plugins/vitals/src/VitalsLogic.js +506 -0
  76. package/FormSpec.TS/plugins/vitals/src/VitalsLogic.js.map +1 -0
  77. package/FormSpec.TS/plugins/vitals/src/VitalsLogic.ts.map +1 -0
  78. package/README.md +7 -7
  79. package/Thoth.Json/packages/Thoth.Json/Decode.d.ts +2 -2
  80. package/Thoth.Json/packages/Thoth.Json/Decode.d.ts.map +1 -1
  81. package/Thoth.Json/packages/Thoth.Json/Encode.d.ts.map +1 -1
  82. package/fable_modules/Fable.Promise.3.2.0/Promise.fs.d.ts +112 -0
  83. package/fable_modules/Fable.Promise.3.2.0/Promise.fs.d.ts.map +1 -0
  84. package/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.d.ts +8 -0
  85. package/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.d.ts.map +1 -0
  86. package/package.json +1 -1
  87. package/plugins/allergyfinder/src/AllergyFinderField.d.ts +116 -0
  88. package/plugins/allergyfinder/src/AllergyFinderField.d.ts.map +1 -0
  89. package/plugins/allergyfinder/src/OpenFdaClient.d.ts +5 -0
  90. package/plugins/allergyfinder/src/OpenFdaClient.d.ts.map +1 -0
  91. package/plugins/vitals/src/VitalsField.d.ts +4 -43
  92. package/plugins/vitals/src/VitalsField.d.ts.map +1 -1
  93. package/plugins/vitals/src/VitalsLogic.d.ts +72 -0
  94. package/plugins/vitals/src/VitalsLogic.d.ts.map +1 -0
  95. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.ts +35 -32
  96. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.ts +5 -22
  97. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.ts +13 -2
  98. package/src/FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.ts +160 -0
  99. package/src/PluginRegistration.ts +2 -0
  100. package/src/Thoth.Json/packages/Thoth.Json/Decode.ts +38 -55
  101. package/src/Thoth.Json/packages/Thoth.Json/Encode.ts +10 -16
  102. package/src/plugins/allergyfinder/src/AllergyFinderField.ts +1341 -0
  103. package/src/plugins/allergyfinder/src/OpenFdaClient.ts +103 -0
  104. package/src/plugins/vitals/src/VitalsField.ts +35 -244
  105. package/src/plugins/vitals/src/VitalsLogic.ts +360 -0
@@ -0,0 +1,119 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
+ });
10
+ }
11
+ _export(exports, {
12
+ get CancellationToken () {
13
+ return CancellationToken;
14
+ },
15
+ get CancellationToken_$ctor () {
16
+ return CancellationToken_$ctor;
17
+ },
18
+ get CancellationToken_$reflection () {
19
+ return CancellationToken_$reflection;
20
+ },
21
+ get CancellationToken__Cancel () {
22
+ return CancellationToken__Cancel;
23
+ },
24
+ get create () {
25
+ return create;
26
+ },
27
+ get createCancellable () {
28
+ return createCancellable;
29
+ },
30
+ get iter () {
31
+ return iter;
32
+ }
33
+ });
34
+ const _Option = require("@fable-org/fable-library-js/Option.js");
35
+ const _Reflection = require("@fable-org/fable-library-js/Reflection.js");
36
+ function create(onNext) {
37
+ return {
38
+ [Symbol.asyncIterator] () {
39
+ return {
40
+ next: ()=>{
41
+ const pr = onNext();
42
+ return pr.then((_arg)=>{
43
+ if (_arg == null) {
44
+ return {
45
+ done: true
46
+ };
47
+ } else {
48
+ return {
49
+ value: (0, _Option.value)(_arg),
50
+ done: false
51
+ };
52
+ }
53
+ });
54
+ },
55
+ return: ()=>({
56
+ done: true
57
+ })
58
+ };
59
+ }
60
+ };
61
+ }
62
+ function createCancellable(onCancel, onNext) {
63
+ return {
64
+ [Symbol.asyncIterator] () {
65
+ return {
66
+ next: ()=>{
67
+ const pr = onNext();
68
+ return pr.then((_arg)=>{
69
+ if (_arg == null) {
70
+ return {
71
+ done: true
72
+ };
73
+ } else {
74
+ return {
75
+ value: (0, _Option.value)(_arg),
76
+ done: false
77
+ };
78
+ }
79
+ });
80
+ },
81
+ return: ()=>{
82
+ onCancel();
83
+ return {
84
+ done: true
85
+ };
86
+ }
87
+ };
88
+ }
89
+ };
90
+ }
91
+ class CancellationToken {
92
+ constructor(){}
93
+ }
94
+ function CancellationToken_$reflection() {
95
+ return (0, _Reflection.class_type)("AsyncIterable.CancellationToken", undefined, CancellationToken);
96
+ }
97
+ function CancellationToken_$ctor() {
98
+ return new CancellationToken();
99
+ }
100
+ function CancellationToken__Cancel(this$) {
101
+ throw this$;
102
+ }
103
+ function iter(action, iterable) {
104
+ const token = CancellationToken_$ctor();
105
+ return (async ()=>{
106
+ for await (const value of iterable){
107
+ try {
108
+ action(token, value);
109
+ } catch (err) {
110
+ if (err instanceof token.constructor) {
111
+ break;
112
+ }
113
+ throw err;
114
+ }
115
+ }
116
+ })();
117
+ } //# sourceMappingURL=AsyncIterable.fs.ts.map
118
+
119
+ //# sourceMappingURL=AsyncIterable.fs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../FormSpec.TS/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.ts"],"names":["pr","onNext","_arg1","onCancel","this","token","``.ctor``"],"mappings":";;;;;;;;;;;QAwCgBI;eAAAA;;;;;;;;;;;;;;;;;;;;;;;;WAtBZ;QAEoBJ,CAAAA,OAAAA,aAAAA,CAAAA,aAAZ,AAAAC;YAAY,OAAAD;gBAAa,IAAA,AAAAE,EAAAA;;sCAEW;;;;;wCADyB,OAAzCA;;;;;0BAGU;;;;;;;;eAItC;AAEoBF,uCAAZ,AAAAC;;;;;sCACoBC;+BAAyC,OAAA;;;;;4BAI7DC;gCACuB;;;;;;;;;;;;;;;;;;AAI3B,GAAQC,GAAAA;;;;;AAIRC,qCAAQ,AAAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["./AsyncIterable.fs"],"names":["pr","onNext","_arg1","onCancel","this","token","\u0060\u0060.ctor\u0060\u0060"],"mappings":";;;;;;;WAkBI;AAEoBA,uCAAZ,AAAAC;AAAY,eAAA,AAAAD;AAAa,gBAAA,AAAAE;;0BAEW;;;;;mCADhBA;0BAAyC;;;;;cAG/B;;;;;;;;WAItC;AAEoBF,uCAAZ,AAAAC;AAAY,eAAA,AAAAD;AAAa,gBAAA,AAAAE;;0BAEW;;;;;mCADhBA;0BAAyC;;;;;AAI7D,AAAAC;;kBACuB;;;;;;;;;;;;;;;;;;;AAI3B,UAAQC;;;;;;;AAIRC,qCAAQ,AAAAC;AACZ,WAAA","file":null,"sourcesContent":null,"sourceRoot":null}
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Project Sdk="Microsoft.NET.Sdk">
3
+ <PropertyGroup>
4
+ <Version>3.2.0</Version>
5
+ <PackageVersion>3.2.0</PackageVersion>
6
+ <TargetFramework>netstandard2.0</TargetFramework>
7
+ </PropertyGroup>
8
+ <ItemGroup>
9
+ <Compile Include="Promise.fs" />
10
+ <Compile Include="PromiseImpl.fs" />
11
+ <Compile Include="AsyncIterable.fs" />
12
+ </ItemGroup>
13
+ <ItemGroup>
14
+ <Content Include="*.fsproj; *.fs" PackagePath="fable\" />
15
+ </ItemGroup>
16
+ <ItemGroup>
17
+ <PackageReference Include="Fable.Core" Version="3.7.1" />
18
+ <PackageReference Update="FSharp.Core" Version="4.7.2" />
19
+ </ItemGroup>
20
+ </Project>