Skip to content

Commit

Permalink
Merge pull request #1639 from onaio/update-fi-bcc
Browse files Browse the repository at this point in the history
Update Dynamic FI BCC condition expression
  • Loading branch information
ciremusyoka authored Jul 28, 2021
2 parents 3b930a8 + 8fc6901 commit 1630a76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/forms/PlanForm/tests/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1668,7 +1668,7 @@ describe('containers/forms/PlanForm - Dynamic Form Activities', () => {
`"ConditionsExpression$this.is(FHIR.QuestionnaireResponse) or $this.type.where(id='locationType').text = 'Mosquito Collection Point'DescriptionStructure is a mosquito collection pointExpression$this.is(FHIR.Location) or (questionnaire = 'Register_Structure' and $this.item.where(linkId='structureType').answer.value ='Mosquito Collection Point')DescriptionApply to mosquito collection point in Register_Structure questionnaires"`
);
expect(conditions.at(5).text()).toMatchInlineSnapshot(
`"ConditionsExpressionLocation.physicalType.text = 'jdn'DescriptionJurisdiction type location"`
`"ConditionsExpressionLocation.physicalType.coding.exists(code='jdn')DescriptionJurisdiction type location"`
);

// dynamic fi trigers
Expand Down
2 changes: 1 addition & 1 deletion src/configs/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ export const planActivities: PlanActivities = {
{
expression: {
description: 'Jurisdiction type location',
expression: "Location.physicalType.text = 'jdn'",
expression: "Location.physicalType.coding.exists(code='jdn')",
},
kind: APPLICABILITY_CONDITION_KIND,
},
Expand Down

0 comments on commit 1630a76

Please sign in to comment.