@openfn/language-fhir-ndr-et 0.1.5 → 0.1.6
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 +13 -2
- package/package.json +3 -3
package/ast.json
CHANGED
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
"operation"
|
|
299
299
|
],
|
|
300
300
|
"docs": {
|
|
301
|
-
"description": "
|
|
301
|
+
"description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.",
|
|
302
302
|
"tags": [
|
|
303
303
|
{
|
|
304
304
|
"title": "public",
|
|
@@ -312,7 +312,18 @@
|
|
|
312
312
|
},
|
|
313
313
|
{
|
|
314
314
|
"title": "example",
|
|
315
|
-
"description": "each(\
|
|
315
|
+
"description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);",
|
|
316
|
+
"caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"title": "example",
|
|
320
|
+
"description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);",
|
|
321
|
+
"caption": "Iterate over items in state.data and pass each one into an \"insert\" operation"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"title": "example",
|
|
325
|
+
"description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);",
|
|
326
|
+
"caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation"
|
|
316
327
|
},
|
|
317
328
|
{
|
|
318
329
|
"title": "param",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfn/language-fhir-ndr-et",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "OpenFn fhir adaptor for NDR HIV in Ehtiopia",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"configuration-schema.json"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@openfn/language-fhir": "^5.0.
|
|
31
|
+
"@openfn/language-fhir": "^5.0.3",
|
|
32
32
|
"@types/fhir": "^0.0.41",
|
|
33
33
|
"ast-types": "^0.14.2",
|
|
34
34
|
"lodash": "^4.17.21",
|
|
35
35
|
"recast": "^0.23.9",
|
|
36
36
|
"typescript": "4.8.4",
|
|
37
37
|
"yauzl": "^3.1.3",
|
|
38
|
-
"@openfn/language-common": "2.1.
|
|
38
|
+
"@openfn/language-common": "2.1.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"assertion-error": "2.0.0",
|