@openfn/language-fhir-eswatini 0.5.2 → 0.6.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 +103 -0
- package/dist/index.cjs +517 -503
- package/dist/index.js +54 -41
- package/package.json +1 -1
package/ast.json
CHANGED
|
@@ -57,6 +57,60 @@
|
|
|
57
57
|
]
|
|
58
58
|
},
|
|
59
59
|
"valid": true
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "mapValues",
|
|
63
|
+
"params": [
|
|
64
|
+
"url",
|
|
65
|
+
"mappings"
|
|
66
|
+
],
|
|
67
|
+
"docs": {
|
|
68
|
+
"description": "Set value mappings against a value-set.\nPass the URL of the valueset you want to provide mappings for.\nFor each mapping, the key is the input string, and the value is either\na code string or a full object value to map",
|
|
69
|
+
"tags": [
|
|
70
|
+
{
|
|
71
|
+
"title": "public",
|
|
72
|
+
"description": null,
|
|
73
|
+
"type": null
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"title": "function",
|
|
77
|
+
"description": null,
|
|
78
|
+
"name": null
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"title": "param",
|
|
82
|
+
"description": "The URL of the value set you are providing mappings for",
|
|
83
|
+
"type": {
|
|
84
|
+
"type": "NameExpression",
|
|
85
|
+
"name": "string"
|
|
86
|
+
},
|
|
87
|
+
"name": "url"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"title": "param",
|
|
91
|
+
"description": "object of mappings",
|
|
92
|
+
"type": {
|
|
93
|
+
"type": "OptionalType",
|
|
94
|
+
"expression": {
|
|
95
|
+
"type": "NameExpression",
|
|
96
|
+
"name": "object"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"name": "mappings"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"title": "example",
|
|
103
|
+
"description": "mapValues('http://172.209.216.154:3447/fhir/ValueSet/SzTinkhundlaVS', {\n // Maps input value \"lobamba\" to mapping code \"3\"\n lobamba: '3',\n});",
|
|
104
|
+
"caption": "Create a custom mapping for Patient.inkhundla"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"title": "returns",
|
|
108
|
+
"description": "Operation",
|
|
109
|
+
"type": null
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
"valid": true
|
|
60
114
|
}
|
|
61
115
|
],
|
|
62
116
|
"exports": [],
|
|
@@ -622,6 +676,55 @@
|
|
|
622
676
|
]
|
|
623
677
|
},
|
|
624
678
|
"valid": false
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"name": "log",
|
|
682
|
+
"params": [
|
|
683
|
+
"args"
|
|
684
|
+
],
|
|
685
|
+
"docs": {
|
|
686
|
+
"description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.",
|
|
687
|
+
"tags": [
|
|
688
|
+
{
|
|
689
|
+
"title": "public",
|
|
690
|
+
"description": null,
|
|
691
|
+
"type": null
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
"title": "function",
|
|
695
|
+
"description": null,
|
|
696
|
+
"name": null
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
"title": "example",
|
|
700
|
+
"description": "log('Patient List::', $.patients);",
|
|
701
|
+
"caption": "Log values from state"
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
"title": "example",
|
|
705
|
+
"description": "fn((state) => {\n console.log(state.data);\n return state;\n})",
|
|
706
|
+
"caption": "Use console.log inside a callback or fn block"
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
"title": "param",
|
|
710
|
+
"description": "A value or message to display in the logs",
|
|
711
|
+
"type": {
|
|
712
|
+
"type": "NameExpression",
|
|
713
|
+
"name": "any"
|
|
714
|
+
},
|
|
715
|
+
"name": "args"
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
"title": "returns",
|
|
719
|
+
"description": null,
|
|
720
|
+
"type": {
|
|
721
|
+
"type": "NameExpression",
|
|
722
|
+
"name": "Operation"
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
]
|
|
726
|
+
},
|
|
727
|
+
"valid": true
|
|
625
728
|
}
|
|
626
729
|
]
|
|
627
730
|
}
|