Skip to content

Commit 3b85b2a

Browse files
feat: change referred transform rules to only run on add records (#1718)
* feat: change referred rules to only run for add records * feat: update rule number
1 parent 9423480 commit 3b85b2a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

application/CohortManager/src/Functions/CohortDistributionServices/TransformDataService/TransformDataService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public async Task<CohortDistributionParticipant> TransformParticipantAsync(Cohor
138138

139139
var resultList = await re.ExecuteAllRulesAsync("Common", ruleParameters);
140140

141-
if (participant.ReferralFlag == true)
141+
if (participant.ReferralFlag == true && participant.RecordType == Actions.New)
142142
{
143143
resultList.AddRange(await re.ExecuteAllRulesAsync("Referred", ruleParameters));
144144
}

application/CohortManager/src/Functions/CohortDistributionServices/TransformDataService/transformRules.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@
679679
"WorkflowName": "Referred",
680680
"Rules": [
681681
{
682-
"RuleName": "00.UpdateServiceNowData.ReferralWithPrimaryCareProvider",
682+
"RuleName": "98.UpdateServiceNowData.ReferralWithPrimaryCareProvider",
683683
"LocalParams": [
684684
{
685685
"Name": "IsReferralFlag",

0 commit comments

Comments
 (0)