Update how f1-j2-casesToOscar.js maps "referral_status" field
daissatou2 opened this issue · 2 comments
Feature Request
Background, context, and business value
@aleksa-krolls we need to update this code using the new referral_id
. We are currently only syncing decisions for the most recent Primero referral. Instead, the job should sync any new decisions for any referral (regardless of the order in which it was received).
The specific request, in as few words as possible
A clear and concise description of what you want to happen.
state.json
{
"configuration": ["SEE LAST PASS: 'Primero V2 Cambodia Demo (openfn_cp_user)'"],
}
{
"configuration": ["SEE LAST PASS: 'Oscar Staging (api only user)'"],
"data": "Data generated from F1-J1 job run",
}
expression.js
@aleksa-krolls creating this placeholder GH issue for us to think about when Kiry resolves the API error/we get more clarity on next steps.
@daissatou2 fyi - I think I resolved this in the commit for #116 - no longer only checking for the most recent Primero service. Instead, we send any decision where status is accepted or exited (aka !== 'Referred'). See below.
9aea5a1#diff-597dbdf1623947cf04f72f9f6dd113973ab3184eda28e5af44a355869da2c4adR239-R244