AmericaSCORESBayArea / AmericaSCORESBayArea/salesforce-data-api

Contact endpoints can return mapped values for demographic fields based on an external system argument in the request

未关闭
#132 0 条评论 0 个 reaction 已指派 1 人 已被 @archana-llamas 认领 在 GitHub 查看
enhancement help wanted
主要语言
DataWeave
星标
2
派生
1
PR 合并指标
30 天内没有已合并 PR

描述

*Problem:*
Different external systems supported by the Sync Robot accept different values for ethnicity, gender etc. Registration forms and other related inputs must depend on simplified option lists.
The Robot needs to transmit the values for fields that can be accepted by those systems.

*Solution*
API based rules provide mappings based on an option value in the request:External_System (String)
Maintaining the mappings in a single place where it is appropriate and can be managed through a prop file or equivalent, under version control.

*Example*
1. A parent of a new Scores Student is required to select an ethnicity to register. (required by that same school district).
2. They select "Hispanic/Latinx" from the form provided by Scores
3. Publishing this record to that student's home schools district, the system accepts only the following: "Latino/Latina", "Hispanic of European Descent", "Central or South American"
4. The sync robot sends a request for the contact record using the contact ID and an argument string identifying the destination mapping "DCYF" (example)
5. The API retrieves the record, as stored, and based on the correct mapping rule for that field, returns, "Latino/Latina" which is acceptable to that system and agreed by system stakeholders (Program and District officials)
6. When the record is updated/PATCH, the system has a reverse mapping rule that stores the value "Hispanic/Latinx" based on the source system argument and value sent "Latino/Latina"
7. A log event reports the mapping took place including original and mapped values.

*Dependencies*
https://github.com/AmericaSCORESBayArea/student-registration/issues/197

https://github.com/AmericaSCORESBayArea/External-Sync-Robot/issues/166

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。