@openfn/language-fhir-ndr-et 0.1.29 → 0.2.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/ast.json +92 -0
- package/dist/index.cjs +6 -0
- package/dist/index.js +7 -1
- package/package.json +2 -2
package/ast.json
CHANGED
|
@@ -355,6 +355,49 @@
|
|
|
355
355
|
},
|
|
356
356
|
"valid": true
|
|
357
357
|
},
|
|
358
|
+
{
|
|
359
|
+
"name": "combine",
|
|
360
|
+
"params": [
|
|
361
|
+
"operations"
|
|
362
|
+
],
|
|
363
|
+
"docs": {
|
|
364
|
+
"description": "Combines two operations into one",
|
|
365
|
+
"tags": [
|
|
366
|
+
{
|
|
367
|
+
"title": "public",
|
|
368
|
+
"description": null,
|
|
369
|
+
"type": null
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"title": "function",
|
|
373
|
+
"description": null,
|
|
374
|
+
"name": null
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"title": "example",
|
|
378
|
+
"description": "combine(\n create('foo'),\n delete('bar')\n)"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"title": "param",
|
|
382
|
+
"description": "Operations to be performed.",
|
|
383
|
+
"type": {
|
|
384
|
+
"type": "NameExpression",
|
|
385
|
+
"name": "Operations"
|
|
386
|
+
},
|
|
387
|
+
"name": "operations"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"title": "returns",
|
|
391
|
+
"description": null,
|
|
392
|
+
"type": {
|
|
393
|
+
"type": "NameExpression",
|
|
394
|
+
"name": "Operation"
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
]
|
|
398
|
+
},
|
|
399
|
+
"valid": true
|
|
400
|
+
},
|
|
358
401
|
{
|
|
359
402
|
"name": "field",
|
|
360
403
|
"params": [
|
|
@@ -594,6 +637,55 @@
|
|
|
594
637
|
]
|
|
595
638
|
},
|
|
596
639
|
"valid": false
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"name": "log",
|
|
643
|
+
"params": [
|
|
644
|
+
"args"
|
|
645
|
+
],
|
|
646
|
+
"docs": {
|
|
647
|
+
"description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.",
|
|
648
|
+
"tags": [
|
|
649
|
+
{
|
|
650
|
+
"title": "public",
|
|
651
|
+
"description": null,
|
|
652
|
+
"type": null
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
"title": "function",
|
|
656
|
+
"description": null,
|
|
657
|
+
"name": null
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"title": "example",
|
|
661
|
+
"description": "log('Patient List::', $.patients);",
|
|
662
|
+
"caption": "Log values from state"
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
"title": "example",
|
|
666
|
+
"description": "fn((state) => {\n console.log(state.data);\n return state;\n})",
|
|
667
|
+
"caption": "Use console.log inside a callback or fn block"
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
"title": "param",
|
|
671
|
+
"description": "A value or message to display in the logs",
|
|
672
|
+
"type": {
|
|
673
|
+
"type": "NameExpression",
|
|
674
|
+
"name": "any"
|
|
675
|
+
},
|
|
676
|
+
"name": "args"
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
"title": "returns",
|
|
680
|
+
"description": null,
|
|
681
|
+
"type": {
|
|
682
|
+
"type": "NameExpression",
|
|
683
|
+
"name": "Operation"
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
]
|
|
687
|
+
},
|
|
688
|
+
"valid": true
|
|
597
689
|
}
|
|
598
690
|
]
|
|
599
691
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -27,6 +27,7 @@ var src_exports = {};
|
|
|
27
27
|
__export(src_exports, {
|
|
28
28
|
b: () => builders_exports,
|
|
29
29
|
builders: () => builders_exports,
|
|
30
|
+
combine: () => import_language_common.combine,
|
|
30
31
|
create: () => create,
|
|
31
32
|
cursor: () => import_language_common.cursor,
|
|
32
33
|
dataPath: () => import_language_common.dataPath,
|
|
@@ -37,6 +38,7 @@ __export(src_exports, {
|
|
|
37
38
|
fields: () => import_language_common.fields,
|
|
38
39
|
fn: () => import_language_common.fn,
|
|
39
40
|
lastReferenceValue: () => import_language_common.lastReferenceValue,
|
|
41
|
+
log: () => import_language_common.log,
|
|
40
42
|
merge: () => import_language_common.merge,
|
|
41
43
|
sourceValue: () => import_language_common.sourceValue,
|
|
42
44
|
util: () => utils_exports
|
|
@@ -46,6 +48,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
46
48
|
// src/Adaptor.js
|
|
47
49
|
var Adaptor_exports = {};
|
|
48
50
|
__export(Adaptor_exports, {
|
|
51
|
+
combine: () => import_language_common.combine,
|
|
49
52
|
create: () => create,
|
|
50
53
|
cursor: () => import_language_common.cursor,
|
|
51
54
|
dataPath: () => import_language_common.dataPath,
|
|
@@ -55,6 +58,7 @@ __export(Adaptor_exports, {
|
|
|
55
58
|
fields: () => import_language_common.fields,
|
|
56
59
|
fn: () => import_language_common.fn,
|
|
57
60
|
lastReferenceValue: () => import_language_common.lastReferenceValue,
|
|
61
|
+
log: () => import_language_common.log,
|
|
58
62
|
merge: () => import_language_common.merge,
|
|
59
63
|
sourceValue: () => import_language_common.sourceValue
|
|
60
64
|
});
|
|
@@ -26650,6 +26654,7 @@ var src_default = Adaptor_exports;
|
|
|
26650
26654
|
0 && (module.exports = {
|
|
26651
26655
|
b,
|
|
26652
26656
|
builders,
|
|
26657
|
+
combine,
|
|
26653
26658
|
create,
|
|
26654
26659
|
cursor,
|
|
26655
26660
|
dataPath,
|
|
@@ -26659,6 +26664,7 @@ var src_default = Adaptor_exports;
|
|
|
26659
26664
|
fields,
|
|
26660
26665
|
fn,
|
|
26661
26666
|
lastReferenceValue,
|
|
26667
|
+
log,
|
|
26662
26668
|
merge,
|
|
26663
26669
|
sourceValue,
|
|
26664
26670
|
util
|
package/dist/index.js
CHANGED
|
@@ -7,6 +7,7 @@ var __export = (target, all) => {
|
|
|
7
7
|
// src/Adaptor.js
|
|
8
8
|
var Adaptor_exports = {};
|
|
9
9
|
__export(Adaptor_exports, {
|
|
10
|
+
combine: () => combine,
|
|
10
11
|
create: () => create,
|
|
11
12
|
cursor: () => cursor,
|
|
12
13
|
dataPath: () => dataPath,
|
|
@@ -16,6 +17,7 @@ __export(Adaptor_exports, {
|
|
|
16
17
|
fields: () => fields,
|
|
17
18
|
fn: () => fn,
|
|
18
19
|
lastReferenceValue: () => lastReferenceValue,
|
|
20
|
+
log: () => log,
|
|
19
21
|
merge: () => merge,
|
|
20
22
|
sourceValue: () => sourceValue
|
|
21
23
|
});
|
|
@@ -26581,14 +26583,16 @@ function relatedPerson_related_person(props) {
|
|
|
26581
26583
|
|
|
26582
26584
|
// src/Adaptor.js
|
|
26583
26585
|
import {
|
|
26586
|
+
combine,
|
|
26587
|
+
cursor,
|
|
26584
26588
|
dataPath,
|
|
26585
26589
|
dataValue,
|
|
26586
|
-
cursor,
|
|
26587
26590
|
each,
|
|
26588
26591
|
field,
|
|
26589
26592
|
fields,
|
|
26590
26593
|
fn,
|
|
26591
26594
|
lastReferenceValue,
|
|
26595
|
+
log,
|
|
26592
26596
|
merge,
|
|
26593
26597
|
sourceValue
|
|
26594
26598
|
} from "@openfn/language-common";
|
|
@@ -26621,6 +26625,7 @@ var src_default = Adaptor_exports;
|
|
|
26621
26625
|
export {
|
|
26622
26626
|
builders_exports as b,
|
|
26623
26627
|
builders_exports as builders,
|
|
26628
|
+
combine,
|
|
26624
26629
|
create,
|
|
26625
26630
|
cursor,
|
|
26626
26631
|
dataPath,
|
|
@@ -26631,6 +26636,7 @@ export {
|
|
|
26631
26636
|
fields,
|
|
26632
26637
|
fn,
|
|
26633
26638
|
lastReferenceValue,
|
|
26639
|
+
log,
|
|
26634
26640
|
merge,
|
|
26635
26641
|
sourceValue,
|
|
26636
26642
|
utils_exports as util
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfn/language-fhir-ndr-et",
|
|
3
3
|
"label": "FHIR NDR Ehtiopia",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"description": "OpenFn fhir adaptor for NDR HIV in Ehtiopia",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"typescript": "4.8.4",
|
|
37
37
|
"yauzl": "^3.1.3",
|
|
38
38
|
"@openfn/language-common": "3.3.2",
|
|
39
|
-
"@openfn/language-fhir": "5.0
|
|
39
|
+
"@openfn/language-fhir": "5.1.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"assertion-error": "2.0.0",
|