From f1ec128c0f2778ba358d072e335ca795bf9a826f Mon Sep 17 00:00:00 2001 From: Emmanuel Evance Date: Tue, 1 Oct 2024 14:41:32 +0300 Subject: [PATCH] uncomment create events --- workflows/wf2/6-create-events.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/workflows/wf2/6-create-events.js b/workflows/wf2/6-create-events.js index 76ce9d3..c307c70 100644 --- a/workflows/wf2/6-create-events.js +++ b/workflows/wf2/6-create-events.js @@ -105,14 +105,14 @@ fn(state => { }); //Create events for each encounter -// each( -// '$.encountersMapping[*]', -// create('events', $.data, { -// params: { -// dataElementIdScheme: 'UID', -// }, -// }) -// ); - -// // Return only lastRunDateTime -// fn(({ lastRunDateTime }) => ({ lastRunDateTime })); +each( + '$.encountersMapping[*]', + create('events', $.data, { + params: { + dataElementIdScheme: 'UID', + }, + }) +); + +// Return only lastRunDateTime +fn(({ lastRunDateTime }) => ({ lastRunDateTime }));