Skip to content

Commit

Permalink
Added patient object to the expresion runner context object
Browse files Browse the repository at this point in the history
  • Loading branch information
Herobiam committed Aug 17, 2023
1 parent a307698 commit d6cc35d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/encounter/ohri-encounter-form.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ export const OHRIEncounterForm: React.FC<OHRIEncounterFormProps> = ({
: [{ type: 'OHRIBaseValidator' }];
// handle validation
const basevalidatorConfig = {
expressionContext: { mode: sessionMode },
expressionContext: { patient, mode: sessionMode },
values: { ...values, [fieldName]: value },
fields,
};
Expand Down

0 comments on commit d6cc35d

Please sign in to comment.