StaticinitializeThe Prorm instance
Override the default table name 'pia_assessments'
StaticcreateCreate a new Privacy Impact Assessment.
Name/title of the assessment
List of data types being processed
Purpose of the processing operation
The created PIA record
StaticrecordRecord a risk associated with a PIA assessment.
The ID of the assessment to add the risk to
Description of the identified risk
Severity level of the risk
Mitigation measures for the risk
The created risk record
StaticapproveApprove a Privacy Impact Assessment. Sets status to 'approved' and records approver information.
The ID of the assessment to approve
Name/ID of the approver (e.g., DPO name)
The updated PIA record
StaticgetGet a Privacy Impact Assessment by ID. Includes associated risks.
The ID of the assessment to retrieve
The PIA record with associated risks
StaticlinkLink a model to a PIA assessment. Useful for tracking which models are covered by the assessment.
The ID of the assessment
The model class to link (can be a Prorm model or string name)
The updated PIA record
StaticgetGet all assessments with a specific status.
The status to filter by
Array of PIA records matching the status
StaticrejectReject a Privacy Impact Assessment.
The ID of the assessment to reject
Reason for rejection
The updated PIA record
StaticsubmitSubmit an assessment for review. Changes status from 'draft' to 'in_review'.
The ID of the assessment to submit
The updated PIA record
StaticgetGet all risks for an assessment grouped by severity.
The ID of the assessment
Object with risks grouped by severity level
StatichasCheck if an assessment has any high or critical risks without mitigations.
The ID of the assessment
True if there are unresolved high-risk items
StaticgetList all models linked to a PIA assessment.
The ID of the assessment
Array of linked model names
Initialize the PrivacyImpactAssessment model and sync the tables. Call once at application startup.