-
Type:
Task
-
Resolution: Unresolved
-
Priority:
High
-
Affects Version/s: None
-
Platform
-
Dev
What this is
Background jobs (Quartz) that run on their own inside Consent-API.
Steps
- Expiry: End consents and doctor access when their end date passes.
- Renewal reminder: Remind the patient before a consent ends. If renewed, save a new version. If not, set it to EXPIRED so the check says no.
- Turning 18: Run daily. When a child turns 18, end the guardian link, set the status to RECONSENT_REQUIRED, and ask the patient for their own consent at the next contact.
- Retention clean-up: Clean up data when its retention period ends.
- Audit-log check: Check that the audit log has not been changed.
Done when
- Expired consent and access stop working.
- A reminder goes out before the end date.
- A child turning 18 is marked RECONSENT_REQUIRED.
- The audit-log check reports any change.
Waiting on: Retention periods (Legal decision, section 13).
Source: DPDPA Compliance Proposal v14, sections 3.2.1, 6 (C9, C16)