@openfn/language-fhir-fr 1.0.26 → 1.1.1

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
@@ -281,6 +281,49 @@
281
281
  },
282
282
  "valid": true
283
283
  },
284
+ {
285
+ "name": "combine",
286
+ "params": [
287
+ "operations"
288
+ ],
289
+ "docs": {
290
+ "description": "Combines two operations into one",
291
+ "tags": [
292
+ {
293
+ "title": "public",
294
+ "description": null,
295
+ "type": null
296
+ },
297
+ {
298
+ "title": "function",
299
+ "description": null,
300
+ "name": null
301
+ },
302
+ {
303
+ "title": "example",
304
+ "description": "combine(\n create('foo'),\n delete('bar')\n)"
305
+ },
306
+ {
307
+ "title": "param",
308
+ "description": "Operations to be performed.",
309
+ "type": {
310
+ "type": "NameExpression",
311
+ "name": "Operations"
312
+ },
313
+ "name": "operations"
314
+ },
315
+ {
316
+ "title": "returns",
317
+ "description": null,
318
+ "type": {
319
+ "type": "NameExpression",
320
+ "name": "Operation"
321
+ }
322
+ }
323
+ ]
324
+ },
325
+ "valid": true
326
+ },
284
327
  {
285
328
  "name": "field",
286
329
  "params": [
@@ -520,6 +563,55 @@
520
563
  ]
521
564
  },
522
565
  "valid": false
566
+ },
567
+ {
568
+ "name": "log",
569
+ "params": [
570
+ "args"
571
+ ],
572
+ "docs": {
573
+ "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.",
574
+ "tags": [
575
+ {
576
+ "title": "public",
577
+ "description": null,
578
+ "type": null
579
+ },
580
+ {
581
+ "title": "function",
582
+ "description": null,
583
+ "name": null
584
+ },
585
+ {
586
+ "title": "example",
587
+ "description": "log('Patient List::', $.patients);",
588
+ "caption": "Log values from state"
589
+ },
590
+ {
591
+ "title": "example",
592
+ "description": "fn((state) => {\n console.log(state.data);\n return state;\n})",
593
+ "caption": "Use console.log inside a callback or fn block"
594
+ },
595
+ {
596
+ "title": "param",
597
+ "description": "A value or message to display in the logs",
598
+ "type": {
599
+ "type": "NameExpression",
600
+ "name": "any"
601
+ },
602
+ "name": "args"
603
+ },
604
+ {
605
+ "title": "returns",
606
+ "description": null,
607
+ "type": {
608
+ "type": "NameExpression",
609
+ "name": "Operation"
610
+ }
611
+ }
612
+ ]
613
+ },
614
+ "valid": true
523
615
  }
524
616
  ]
525
617
  }
package/dist/index.cjs CHANGED
@@ -5486,6 +5486,7 @@ var src_exports = {};
5486
5486
  __export(src_exports, {
5487
5487
  b: () => builders_exports,
5488
5488
  builders: () => builders_exports,
5489
+ combine: () => import_language_common.combine,
5489
5490
  cursor: () => import_language_common.cursor,
5490
5491
  dataPath: () => import_language_common.dataPath,
5491
5492
  dataValue: () => import_language_common.dataValue,
@@ -5496,6 +5497,7 @@ __export(src_exports, {
5496
5497
  fields: () => import_language_common.fields,
5497
5498
  fn: () => import_language_common.fn,
5498
5499
  lastReferenceValue: () => import_language_common.lastReferenceValue,
5500
+ log: () => import_language_common.log,
5499
5501
  merge: () => import_language_common.merge,
5500
5502
  sourceValue: () => import_language_common.sourceValue,
5501
5503
  util: () => utils_exports
@@ -5505,6 +5507,7 @@ module.exports = __toCommonJS(src_exports);
5505
5507
  // src/Adaptor.js
5506
5508
  var Adaptor_exports = {};
5507
5509
  __export(Adaptor_exports, {
5510
+ combine: () => import_language_common.combine,
5508
5511
  cursor: () => import_language_common.cursor,
5509
5512
  dataPath: () => import_language_common.dataPath,
5510
5513
  dataValue: () => import_language_common.dataValue,
@@ -5514,6 +5517,7 @@ __export(Adaptor_exports, {
5514
5517
  fields: () => import_language_common.fields,
5515
5518
  fn: () => import_language_common.fn,
5516
5519
  lastReferenceValue: () => import_language_common.lastReferenceValue,
5520
+ log: () => import_language_common.log,
5517
5521
  merge: () => import_language_common.merge,
5518
5522
  sourceValue: () => import_language_common.sourceValue
5519
5523
  });
@@ -11792,6 +11796,7 @@ var src_default = Adaptor_exports;
11792
11796
  0 && (module.exports = {
11793
11797
  b,
11794
11798
  builders,
11799
+ combine,
11795
11800
  cursor,
11796
11801
  dataPath,
11797
11802
  dataValue,
@@ -11801,6 +11806,7 @@ var src_default = Adaptor_exports;
11801
11806
  fields,
11802
11807
  fn,
11803
11808
  lastReferenceValue,
11809
+ log,
11804
11810
  merge,
11805
11811
  sourceValue,
11806
11812
  util
package/dist/index.js CHANGED
@@ -5483,6 +5483,7 @@ var require_lodash = __commonJS({
5483
5483
  // src/Adaptor.js
5484
5484
  var Adaptor_exports = {};
5485
5485
  __export(Adaptor_exports, {
5486
+ combine: () => combine,
5486
5487
  cursor: () => cursor,
5487
5488
  dataPath: () => dataPath,
5488
5489
  dataValue: () => dataValue,
@@ -5492,6 +5493,7 @@ __export(Adaptor_exports, {
5492
5493
  fields: () => fields,
5493
5494
  fn: () => fn,
5494
5495
  lastReferenceValue: () => lastReferenceValue,
5496
+ log: () => log,
5495
5497
  merge: () => merge,
5496
5498
  sourceValue: () => sourceValue
5497
5499
  });
@@ -5649,15 +5651,17 @@ var composite = (object, key, value) => {
5649
5651
 
5650
5652
  // src/Adaptor.js
5651
5653
  import {
5654
+ combine,
5655
+ cursor,
5652
5656
  dataPath,
5653
5657
  dataValue,
5654
5658
  dateFns,
5655
- cursor,
5656
5659
  each,
5657
5660
  field,
5658
5661
  fields,
5659
5662
  fn,
5660
5663
  lastReferenceValue,
5664
+ log,
5661
5665
  merge,
5662
5666
  sourceValue
5663
5667
  } from "@openfn/language-common";
@@ -11781,6 +11785,7 @@ var src_default = Adaptor_exports;
11781
11785
  export {
11782
11786
  builders_exports as b,
11783
11787
  builders_exports as builders,
11788
+ combine,
11784
11789
  cursor,
11785
11790
  dataPath,
11786
11791
  dataValue,
@@ -11791,6 +11796,7 @@ export {
11791
11796
  fields,
11792
11797
  fn,
11793
11798
  lastReferenceValue,
11799
+ log,
11794
11800
  merge,
11795
11801
  sourceValue,
11796
11802
  utils_exports as util
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openfn/language-fhir-fr",
3
3
  "label": "FHIR-FR",
4
- "version": "1.0.26",
4
+ "version": "1.1.1",
5
5
  "description": "OpenFn fhir-fr adaptor",
6
6
  "author": "Open Function Group",
7
7
  "license": "LGPLv3",
@@ -16,7 +16,7 @@
16
16
  "generatorVersion": "0.2.1"
17
17
  },
18
18
  "dependencies": {
19
- "@openfn/language-common": "3.3.2"
19
+ "@openfn/language-common": "3.3.3"
20
20
  },
21
21
  "devDependencies": {
22
22
  "assertion-error": "2.0.0",