Below is a diagram on the life cycle of patients in Search & Match. 

@startuml
start
:API/web front end; 
:Create patient; 
:Countdown set to 42 days;
repeat 
repeat 
note left: Patient state stays the same. Counter set back to 42 days
backward:Countdown (re)set to 42 days;
repeat while (Patient update or\nRetrieve patient or\nRerieve search results for patient) is (Yes) not (No)
:No activity on patient;
:Countdown hits 0;
:Patient automatically set to STP state\n\
All search results removed;
:Countdown set to 6 months;
backward:Countdown (re)set to 42 days;
repeat while (Patient set back to ACT or SUS state via API call or web front end) is (Yes) not (No)
:Countdown hits 0;
:Patient anonimised\n\
Patient no longer accessible or recoverable;
@enduml