@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.
- package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.d.ts +3 -2
- package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.d.ts.map +1 -1
- package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.d.ts.map +1 -1
- package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.d.ts.map +1 -1
- package/FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.d.ts +74 -0
- package/FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.d.ts.map +1 -0
- package/FormSpec.TS/FormSpec.FS/BlueprintValidation.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/BlueprintValidation.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/FormSpecHelpers.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/FormSpecHelpers.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.js +36 -30
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.js +4 -19
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.js +12 -2
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.js +282 -0
- package/FormSpec.TS/FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.js.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.ts.map +1 -0
- package/FormSpec.TS/FormSpec.FS/Interop/Facade/FormAnswersGate.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Interop/Facade/FormAnswersGate.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Helpers.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Helpers.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Option.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Option.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Values.Api.Option.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Values.Api.Option.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Migrator.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/Migrator.ts.map +1 -1
- package/FormSpec.TS/FormSpec.FS/PathwayExecutor.js.map +1 -1
- package/FormSpec.TS/FormSpec.FS/PathwayExecutor.ts.map +1 -1
- package/FormSpec.TS/PluginRegistration.js +2 -0
- package/FormSpec.TS/PluginRegistration.js.map +1 -1
- package/FormSpec.TS/PluginRegistration.ts.map +1 -1
- package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Decode.js +63 -69
- package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Decode.js.map +1 -1
- package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Decode.ts.map +1 -1
- package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Encode.js +6 -10
- package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Encode.js.map +1 -1
- package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Encode.ts.map +1 -1
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs +57 -0
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js +119 -0
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Fable.Promise.fableproj +20 -0
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Promise.fs +766 -0
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +165 -0
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Promise.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Promise.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs +31 -0
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +32 -0
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js.map +1 -0
- package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.ts.map +1 -0
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/DateParsing.fs.js.map +1 -1
- package/FormSpec.TS/fable_modules/Feliz.2.8.0/DateParsing.fs.ts.map +1 -1
- package/FormSpec.TS/fable_modules/project_cracked.json +1 -1
- package/FormSpec.TS/plugins/allergyfinder/src/AllergyFinderField.js +2431 -0
- package/FormSpec.TS/plugins/allergyfinder/src/AllergyFinderField.js.map +1 -0
- package/FormSpec.TS/plugins/allergyfinder/src/AllergyFinderField.ts.map +1 -0
- package/FormSpec.TS/plugins/allergyfinder/src/OpenFdaClient.js +107 -0
- package/FormSpec.TS/plugins/allergyfinder/src/OpenFdaClient.js.map +1 -0
- package/FormSpec.TS/plugins/allergyfinder/src/OpenFdaClient.ts.map +1 -0
- package/FormSpec.TS/plugins/vitals/src/VitalsField.js +29 -312
- package/FormSpec.TS/plugins/vitals/src/VitalsField.js.map +1 -1
- package/FormSpec.TS/plugins/vitals/src/VitalsField.ts.map +1 -1
- package/FormSpec.TS/plugins/vitals/src/VitalsLogic.js +506 -0
- package/FormSpec.TS/plugins/vitals/src/VitalsLogic.js.map +1 -0
- package/FormSpec.TS/plugins/vitals/src/VitalsLogic.ts.map +1 -0
- package/README.md +7 -7
- package/Thoth.Json/packages/Thoth.Json/Decode.d.ts +2 -2
- package/Thoth.Json/packages/Thoth.Json/Decode.d.ts.map +1 -1
- package/Thoth.Json/packages/Thoth.Json/Encode.d.ts.map +1 -1
- package/fable_modules/Fable.Promise.3.2.0/Promise.fs.d.ts +112 -0
- package/fable_modules/Fable.Promise.3.2.0/Promise.fs.d.ts.map +1 -0
- package/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.d.ts +8 -0
- package/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.d.ts.map +1 -0
- package/package.json +1 -1
- package/plugins/allergyfinder/src/AllergyFinderField.d.ts +116 -0
- package/plugins/allergyfinder/src/AllergyFinderField.d.ts.map +1 -0
- package/plugins/allergyfinder/src/OpenFdaClient.d.ts +5 -0
- package/plugins/allergyfinder/src/OpenFdaClient.d.ts.map +1 -0
- package/plugins/vitals/src/VitalsField.d.ts +4 -43
- package/plugins/vitals/src/VitalsField.d.ts.map +1 -1
- package/plugins/vitals/src/VitalsLogic.d.ts +72 -0
- package/plugins/vitals/src/VitalsLogic.d.ts.map +1 -0
- package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.ts +35 -32
- package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.ts +5 -22
- package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.ts +13 -2
- package/src/FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.ts +160 -0
- package/src/PluginRegistration.ts +2 -0
- package/src/Thoth.Json/packages/Thoth.Json/Decode.ts +38 -55
- package/src/Thoth.Json/packages/Thoth.Json/Encode.ts +10 -16
- package/src/plugins/allergyfinder/src/AllergyFinderField.ts +1341 -0
- package/src/plugins/allergyfinder/src/OpenFdaClient.ts +103 -0
- package/src/plugins/vitals/src/VitalsField.ts +35 -244
- 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>
|