OpenFn / primero-progres

Interoperability solution for UNICEF <> UNHCR interagency referrals between Primero and Progres v4 systems.
https://openfn.github.io/primero-progres/
0 stars 2 forks source link

Flow 1: Updates to Jobs #27

Closed daissatou2 closed 3 years ago

daissatou2 commented 3 years ago

The specific request, in as few words as possible

  1. Update Primero owned_by field to not default to unhcr_cw but to map to Progres business_owner field instead. I.e. owned_by = user (depending on progres.business_owner). Does this require a new mapping table?

  2. Progresintervention_description to be mapped to service_referral_notes in Primero (concatenated with existing fields) on job Flow 1-1. AK to add concatenation logic. The four fields which should be mapped to service_referral_notes: progres_reasonforreferral progres_interventiondescription progres_comments_nonrestrictedstore progres_interventionbyother

  3. unhcr_referral_status to be added to the services section. This field will default to pending in Flow 1-1.

  4. Update job Flow 1-2 to add filter to check service.unhcr_referral_status (currently job checks case.status)

state.json

https://www.openfn.org/projects/p5am6e/messages/ma9p5jbq Progres/DTP - Use the certificate Primero - See LP for Primero Gambella Demo (openfn_testing)

adaptor

HTTPS adaptor to post to DTP ? Primero adaptor Primero API Docs

trigger

Job 1: Message filter - upon receiving a message from DTP Job 2: Scheduled daily job

aleksa-krolls commented 3 years ago

@daissatou2 Can you please...

  1. We will need to follow up with Robert here. On hold.
  2. Detail the mapping specs for service_referral_notes... what are all the source fields (3?) that should be concatenated? See the master mapping spec.
  3. Please go ahead and implement: https://github.com/OpenFn/primero-progres/blob/master/jobs/1.upsertExtracts.js
  4. Want to also try implementing this yourself? If stuck, let me know. https://github.com/OpenFn/primero-progres/blob/master/jobs/1.b.sendReferrals.js#L30
daissatou2 commented 3 years ago
  1. OK.
  2. Done in the original comment.
  3. Please review this commit. (Forgot to do a pull request instead).
  4. https://github.com/OpenFn/primero-progres/pull/31