@openfn/language-fhir-eswatini 0.4.0 → 0.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/ast.json CHANGED
@@ -1,5 +1,64 @@
1
1
  {
2
- "operations": [],
2
+ "operations": [
3
+ {
4
+ "name": "addToBundle",
5
+ "params": [
6
+ "resources",
7
+ "name"
8
+ ],
9
+ "docs": {
10
+ "description": "Add a resource to a bundle on state, using the `name` as the key (or `bundle` by default).\nThe resource will be upserted (via PUT).\nA new bundle will be generated if one does not already exist.",
11
+ "tags": [
12
+ {
13
+ "title": "public",
14
+ "description": null,
15
+ "type": null
16
+ },
17
+ {
18
+ "title": "function",
19
+ "description": null,
20
+ "name": null
21
+ },
22
+ {
23
+ "title": "param",
24
+ "description": "A resource or array of resources to add to the bundle",
25
+ "type": {
26
+ "type": "NameExpression",
27
+ "name": "object/array"
28
+ },
29
+ "name": "resources"
30
+ },
31
+ {
32
+ "title": "param",
33
+ "description": "A name (key) for this bundle on state (defaults to `bundle`)",
34
+ "type": {
35
+ "type": "OptionalType",
36
+ "expression": {
37
+ "type": "NameExpression",
38
+ "name": "string"
39
+ }
40
+ },
41
+ "name": "name"
42
+ },
43
+ {
44
+ "title": "state",
45
+ "description": "bundle - the updated bundle"
46
+ },
47
+ {
48
+ "title": "example",
49
+ "description": "addToBundle(b.patient($.patientDetails))",
50
+ "caption": "Add a new patient resource to the default bundle"
51
+ },
52
+ {
53
+ "title": "returns",
54
+ "description": "Operation",
55
+ "type": null
56
+ }
57
+ ]
58
+ },
59
+ "valid": true
60
+ }
61
+ ],
3
62
  "exports": [],
4
63
  "common": [
5
64
  {
@@ -281,6 +340,49 @@
281
340
  },
282
341
  "valid": true
283
342
  },
343
+ {
344
+ "name": "combine",
345
+ "params": [
346
+ "operations"
347
+ ],
348
+ "docs": {
349
+ "description": "Combines two operations into one",
350
+ "tags": [
351
+ {
352
+ "title": "public",
353
+ "description": null,
354
+ "type": null
355
+ },
356
+ {
357
+ "title": "function",
358
+ "description": null,
359
+ "name": null
360
+ },
361
+ {
362
+ "title": "example",
363
+ "description": "combine(\n create('foo'),\n delete('bar')\n)"
364
+ },
365
+ {
366
+ "title": "param",
367
+ "description": "Operations to be performed.",
368
+ "type": {
369
+ "type": "NameExpression",
370
+ "name": "Operations"
371
+ },
372
+ "name": "operations"
373
+ },
374
+ {
375
+ "title": "returns",
376
+ "description": null,
377
+ "type": {
378
+ "type": "NameExpression",
379
+ "name": "Operation"
380
+ }
381
+ }
382
+ ]
383
+ },
384
+ "valid": true
385
+ },
284
386
  {
285
387
  "name": "field",
286
388
  "params": [