SOP: Electronic Record Management — CSV (Computer System Validation)
Status:Draft
Expert Advice: Design records lifecycle and controls first — apply least-privilege access and tamper-evident audit trails. During validation, treat record metadata (timestamps, user IDs, system events) as critical evidence of data integrity.
1. Purpose
To define the procedures and controls for creation, capture, classification, storage, retrieval, retention, archival, and secure disposal of electronic records generated, processed or maintained within validated computerized systems used in pharmaceutical operations to ensure data integrity and compliance with applicable GxP regulations, including 21 CFR Part 11, EU GMP Annex 11 and local regulations.
Important Fact: Electronic records are legally equivalent to paper records when systems meet regulatory requirements for authenticity, reliability and retrievability.
2. Scope
This SOP applies to all electronic records across laboratory, manufacturing, quality, and IT systems categorized under the Computer System Validation (CSV) program, including LIMS, ELN, MES, ERP record modules, instrument software, archival systems, and backups.
3. Responsibilities
Role
Responsibility
System Owner
Ensure system meets business needs, maintain system documentation, and approve record retention schedules.
Data Owner / Process SME
Classify records, define metadata requirements and retention/archival rules.
Review and approve SOPs, changes, audit trails, and ensure compliance with regulatory requirements.
End Users
Create/enter records per training and follow access controls and data entry conventions.
Electronic Record: Any combination of text, graphics, data, or other information created, modified, maintained, archived, retrieved or distributed in electronic form.
Audit Trail: Secure, computer-generated, time-stamped electronic record that allows reconstruction of the course of events.
Metadata: Information describing the context, content and structure of records (e.g., timestamp, user ID, system ID).
CSV: Computer System Validation — activities to ensure systems function as intended in a GxP context.
Operational Records (e.g., batch records, instrument outputs)
Quality Records (e.g., QC results, release decisions)
Administrative Records (e.g., system logs, user access records)
Regulatory Records (e.g., change control, validation deliverables)
Classification Matrix (example)
Record Type
Criticality
Retention
Access Level
Analytical Results
High
15 years
QA / Analysts
Instrument Raw Files
High
5–10 years
Analysts / IT
System Logs / Audit Trails
High
5 years
IT / QA
Training Records
Medium
3 years
HR / Supervisors
Design electronic templates and forms with mandatory metadata fields (userID, timestamp, reason for change where applicable).
Where manual entry exists, use controlled vocabularies and dropdowns to reduce free-text errors.
Implement input validation and field-level constraints during development/validation.
Ensure unique identifiers for records (e.g., record ID, sample ID) to enable traceability.
Expert Tip: Capture both human-readable and machine-readable metadata. For example, store timestamps in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ) to avoid timezone ambiguity during audits.
Use role-based access control (RBAC) with least privilege principle.
Enforce strong authentication (unique user IDs, complex passwords, password expiry) and use multifactor authentication for critical systems.
Ensure administrative privileges are separate, documented, and limited to specific functions.
Implement periodic user access reviews (at least quarterly) and document the review.
Audit trails must be enabled for all systems handling critical records and shall be immutable and time-stamped.
Audit trail information must include: who? what? when? why? (user ID, event, timestamp, reason/comment where applicable).
Provide procedures to review audit trails (frequency, reviewer, acceptance criteria), including automated reports for exceptions.
Maintain audit trail retention aligned with the parent records retention policy.
Ensure checksum or hash-based integrity checks for critical file types where appropriate.
Use write-once/read-many (WORM) or equivalent protections for archival storage if required by regulations.
Implement separation of duties for record approval and record creation where applicable.
Define backup frequency (e.g., daily incremental, weekly full) and retention in the backup SOP.
Store backup copies in geographically separate locations where possible.
Validate restore procedures annually (or after major changes) and document results.
Archive records per retention schedule; archived data must remain accessible and readable for the retention period.
Expert Advice: Test restores from archived media (not just backups) to ensure readability over time — format obsolescence is a real risk.
All changes affecting electronic records (software updates, configuration changes, patching) must follow change control and be assessed for impact on records and validation status.
Perform risk assessment for changes (categorize as minor/major) and update validation deliverables accordingly.
Schedule maintenance windows, notify users in advance, and ensure backups before changes.
Systems classified under CSV must have documented V-model deliverables: URS, FRS, Design/Config specs, IQ/OQ/PQ, Traceability Matrix, Test Scripts, and Validation Summary Report.
Include test cases for record creation, metadata capture, audit trail entries, access control enforcement, backup/restore and archival retrieval.
Retain validation documentation as per company policy and regulatory expectations.
Example test case summary (abbreviated):
TC-010: Create Result Record -> Verify record saved with userID & timestamp -> Verify audit trail entry created. TC-011: Edit Draft Record -> Verify edit allowed only in draft state; approval step generates audit trail. TC-020: Restore Backup -> Verify restored data matches checksum and is readable.
Apply retention schedules based on record classification, regulatory requirements and business needs. Document retention periods in the Record Retention Matrix.
Perform secure deletion of electronic records only when retention period expires and in accordance with approved procedures; ensure deletions are logged and approved by Data Owner and QA.
Record Retention Matrix (example)
Record
Retention
Owner
Batch Electronic Records
15 years
Manufacturing QA
QC Test Results
15 years
QC
Validation Documents
Life of product + 2 years
Validation
Users must be trained on record creation, system-specific procedures, and this SOP prior to access.
Maintain training records and perform refresher training after major system updates or procedure changes.
Report any suspected data integrity incidents immediately to QA and IT. Initiate incident investigation per the Incident Management SOP.
Preserve systems and logs (do not power down unless instructed) to maintain forensic evidence.
Document root cause, corrective and preventive actions (CAPA) and any record remediation steps with full traceability.
Expert Tip: When investigating, capture immutable snapshots (forensic images) of affected systems and export audit trails in a tamper-evident format before analysis.
Perform scheduled reviews of electronic records and system health (audit trail review, access review, backup verification) at defined intervals (monthly/quarterly/annually as applicable).
QA to include Electronic Record Management topics in internal audits and management reviews.
Preferred archival formats: PDF/A for human-readable documents, CSV/JSON/XML for structured exports with accompanying metadata manifest.
Ensure exports include descriptive metadata (system, version, export timestamp, checksum) and retain provenance information.
21 CFR Part 11 — FDA
EU GMP Annex 11 — Computerised Systems
ICH Q9 — Quality Risk Management
GAMP 5 — A Risk-Based Approach to Compliant GxP Computerized Systems
Record Classification Form (Template)
Audit Trail Review Checklist
Backup & Restore Test Report Template
Change Control Impact Assessment Form
Version
Date
Change Description
Prepared By
00
14-Nov-2025
Initial draft for Electronic Record Management SOP (CSV)
QA / CSV Team
For assistance implementing these controls in a specific system, contact the Validation or IT Team. This document is intended to be tailored per system and organization policies.
Practical application & learning guide
Template status: site-specific review and controlled approval required before use.
Why this procedure matters: A useful SOP makes the approved task repeatable, clarifies who may perform and review it, and leaves enough reliable evidence to reconstruct what happened and support a sound quality decision. Read the task-specific scope, prerequisites, steps, and acceptance criteria in the SOP above; this guide explains how to apply them in a controlled way.
Practical workflow
Prepare: confirm the current approved document and training; verify authorization, materials, equipment and status, environmental/safety prerequisites, applicable specification or method, and required forms. Resolve missing or conflicting prerequisites before starting.
Perform: follow the approved sequence without undocumented shortcuts. Record actual observations and results as the work occurs, using required units, identifiers, date/time, initials/signatures, and controlled record references. Explain entries so a trained independent reviewer can understand the work without relying on memory.
Evaluate: compare actual results with the approved acceptance criteria and defined decision rules. Verify calculations, transcriptions, checks, and required second-person reviews. If data conflict, criteria are unclear, or the result is unexpected, pause the affected decision and seek QA/owner direction.
Close: reconcile all pages, attachments, labels, samples/materials, electronic records, calculations, and handoffs. Complete required review and disposition, file evidence in the approved repository, and record open actions with an owner and due date.
Task-specific learning points
For computerized-system work, first confirm the system boundary, intended use, GxP impact, approved change or lifecycle record, and the correct environment. Link each requirement/risk to objective test or review evidence; record expected and actual results, tester, date, system/version/configuration, anomalies, and independent review. A system category is not a risk rating. Keep unresolved critical defects, data-integrity concerns, or unapproved changes out of release decisions; QA/system owner documents acceptance, restrictions, or remediation.
Decision, exception & escalation
If a prerequisite is not met, a result is outside the approved criteria, an error or unexpected condition occurs, a record is incomplete, or product/sample/data may be affected, contain or stop the affected work when safe; protect materials, records, and evidence; promptly inform the responsible supervisor and QA; and use the linked deviation, OOS/OOT, incident, safety, change-control, or investigation procedure. Assess impact and document the facts, immediate controls, affected scope, decision authority, disposition, and closure evidence. Resume only when the authorized decision-maker has documented that conditions for restart are met. Do not silently repeat, overwrite, discard, backdate, or average results.
Records and evidence to confirm locally
Identify the controlled form/logbook or electronic record, source data and attachments, required independent review, linked deviation/change/training records, repository, retention period, and retrieval method. The exact record set and retention period must come from approved site procedures and applicable requirements.
Site adoption fields
Document ID: [site ID] Version: [approved version] Effective date: [date] Process owner: [role] QA approver: [role] Forms/specifications: [controlled IDs] Training: [assignment] Related procedures: [IDs]. Replace placeholders, resolve conflicts, obtain controlled approval, and train affected personnel before implementation.
Template boundary: This guide supplements the task-specific method; it does not establish a test limit, processing parameter, frequency, sample size, retention period, or regulatory applicability. Use approved specifications, validated methods, product commitments, safety controls, and local requirements. QA and a qualified subject matter expert must approve technical changes.