OpenFn / unicef-cambodia

UNICEF Cambodia - Primero Interoperability
https://openfn.github.io/unicef-cambodia/
1 stars 2 forks source link

Add a new field mapping to the f1-j2-casesToOscar job #111

Closed daissatou2 closed 2 years ago

daissatou2 commented 2 years ago

Background, context, and business value

Add a new field mapping to the f1-j2-casesToOscar job.

The specific request, in as few words as possible

Add the date_of_referral field to the casesToOscar job mapping. The details for the new field have been added to the mapping specifications.

Note: the source data is on the referral response from Primero. Check out this sample referral response .

state.json

Primero (to generate state)

{
"configuration": "Primero V2 Cambodia Demo API user",
}

Oscar:

{
"configuration": "Oscar Staging (api only user)",
"data": "Data will be generated from f1-j1 job"
}
daissatou2 commented 2 years ago

@aleksa-krolls I tried copying the mapping for date_of_birth but the difference here is created_at is on the referrals response instead of the cases response. image

aleksa-krolls commented 2 years ago

@daissatou2 fyi, this issue was added to the wrong repo... I transferred here.

I think I've now implemented this change. Can you please test by sending a Primero referral to Oscar to confirm? Holler if issues, thanks!