@forzalabs/remora 1.2.12 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +55 -0
- package/documentation/README.md +3 -2
- package/documentation/default_resources/project.json +1 -3
- package/index.js +13545 -9923
- package/json_schemas/code-set-schema.json +60 -0
- package/json_schemas/consumer-schema.json +740 -297
- package/json_schemas/producer-schema.json +97 -17
- package/json_schemas/project-schema.json +8 -0
- package/json_schemas/source-schema.json +15 -21
- package/package.json +2 -1
- package/workers/ExecutorWorker.js +13313 -9859
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Code Set Schema",
|
|
4
|
+
"description": "A named, reusable set of allowed values used to drive synthetic-data generation (the 'synth' command). Exactly one of 'values' or 'records' must be provided.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["name"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"$schema": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"format": "uri"
|
|
11
|
+
},
|
|
12
|
+
"name": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"minLength": 1,
|
|
15
|
+
"description": "Unique name; referenced from a producer dimension's 'codeSet'."
|
|
16
|
+
},
|
|
17
|
+
"description": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "Optional description of the code set"
|
|
20
|
+
},
|
|
21
|
+
"values": {
|
|
22
|
+
"type": "array",
|
|
23
|
+
"minItems": 1,
|
|
24
|
+
"items": {
|
|
25
|
+
"type": ["string", "number", "boolean"]
|
|
26
|
+
},
|
|
27
|
+
"description": "Flat list form: one value is picked per row. Mutually exclusive with 'records'."
|
|
28
|
+
},
|
|
29
|
+
"records": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"minItems": 1,
|
|
32
|
+
"items": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"minProperties": 1,
|
|
35
|
+
"additionalProperties": {
|
|
36
|
+
"type": ["string", "number", "boolean"]
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"description": "Structured form: correlated rows. Dimensions bind to a field and land on the same row per record. Mutually exclusive with 'values'."
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"oneOf": [
|
|
43
|
+
{ "required": ["values"], "properties": { "values": { "type": "array" } } },
|
|
44
|
+
{ "required": ["records"], "properties": { "records": { "type": "array" } } }
|
|
45
|
+
],
|
|
46
|
+
"additionalProperties": false,
|
|
47
|
+
"examples": [
|
|
48
|
+
{
|
|
49
|
+
"name": "gap_statuses",
|
|
50
|
+
"values": ["OPEN", "CLOSED", "COMPLIANT", "NON-COMPLIANT", "EXCLUDED"]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "hedis_measures",
|
|
54
|
+
"records": [
|
|
55
|
+
{ "code": "CBP", "name": "Controlling High Blood Pressure", "system": "LOINC" },
|
|
56
|
+
{ "code": "COL", "name": "Colorectal Cancer Screening", "system": "CPT" }
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|