You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/utility-guides/SubjectAssertion.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ It is designed to assert that a subject with a given NHS number matches specifie
22
22
## Overview
23
23
24
24
The `subject_assertion` function is used to verify that a subject in the database matches a set of criteria.
25
-
If the subject does not match all criteria, the function will iteratively remove criteria (except NHS number) and retry, logging any criteria that caused the assertion to fail.
25
+
If the subject does not match all criteria, the function will iteratively loop through each criteria (except NHS number), logging any criteria that caused the assertion to fail.
26
26
27
27
---
28
28
@@ -36,8 +36,8 @@ If the subject does not match all criteria, the function will iteratively remove
36
36
## How It Works
37
37
38
38
1. The function first checks if the subject with the given NHS number matches all provided criteria.
39
-
2. If not, it removes one criterion at a time (except NHS number) and retries the assertion.
40
-
3. This process continues until either a match is found or all criteria (except NHS number) have been removed.
39
+
2. If not, it removes checks one criterion at a time and retries the assertion.
40
+
3. This process continues until all criteria have been checked.
41
41
4. If a match is found only after removing criteria, the failed criteria are logged.
42
42
5. The function returns `True` only if all criteria match on the first attempt; otherwise, it returns `False`.
0 commit comments