WeightVariationTabletCapsuleQualityChecker
Weight Variation Tablet/Capsule
LabEx laboratory QC CSV→JSON URS & FS solid dosage forms utilities / cleanroom
Open selectionWeight Variation Tablet/Capsule Quality Checker — Control of Weight Variation for Tablets and Capsules
ℹ️ Utility assesses weight uniformity of dosage forms (tablets and capsules) according to USP <905> (Weight Variation Method):
• Applicability: Uncoated tablets or hard capsules containing ≥50 mg API or ≥50% API of total weight.
• Criterion 1: Not more than 2 units out of 20 may deviate from average weight by more than 5%.
• Criterion 2: No unit may deviate from average weight by more than 10%.
• Calculation based on weighing 20 individual units.
⚠️ CRITICAL: Weight deviation of any unit by more than 10% leads to immediate batch rejection!
High weight variation is an indicator of problems with compression or capsule filling process.
Usage:
WeightVariationTabletCapsuleQualityChecker.exe → demo mode (console output)
WeightVariationTabletCapsuleQualityChecker.exe input.csv output.json → evaluate your data
Input format:
BatchNumber,ProductName,DosageForm,AverageWeight_mg,MinWeight_mg,MaxWeight_mg,UnitsOutside5Percent,UnitsOutside10Percent,TotalUnitsTested
Example:
WV-2026-TAB-001,Paracetamol 500mg,Tablet,650.0,630.0,670.0,1,0,20
— WHY IS THIS NEEDED?
Weight uniformity is a critical quality parameter for ensuring patient dose uniformity.
For high-dose drugs, weight variation method is an alternative to Content Uniformity (CU) test, as it is less labor-intensive and non-destructive.
⚠️ CRITICAL:
• Method applicable only if API fraction is high. For low-dose drugs (<50 mg or <50%), Content Uniformity (CU) test is required.
• Balance Accuracy: Analytical balances with accuracy to 0.1 mg or better must be used.
• Statistics: If more than 2 units exceed 5% but none exceed 10%, retesting of another 20 units (total 40) is allowed.
• Capsules: Capsules must be cleaned of dust with a soft brush before weighing.
Key features:
• Automatic check of USP <905> criteria
• Separation of logic for tablets and capsules
• Control of extreme values (Min/Max)
• Generation of reports for QC departments and LIMS LabWare
• Compliance with GMP and Pharmacopoeia requirements
Critical parameters:
• Deviation >5%: ≤ 2 units
• Deviation >10%: 0 units
• Average Weight: Used as reference
💡 Usage tips:
1. Sampling: Units must be selected randomly from different parts of the batch.
2. Calibration: Balances must be calibrated before starting the test.
3. Conditions: Weighing is performed under controlled humidity and temperature.
4. Interpretation: If batch fails weight test, it automatically fails dosage uniformity requirement.
5. Process: High weight variation often indicates poor granulate flowability or issues with die/filler.
⚠️ Note: This method is a "surrogate" for content uniformity assessment. It assumes powder blend is homogeneous, and weight variation directly reflects API quantity variation.input.csv
BatchNumber,ProductName,DosageForm,AverageWeight_mg,MinWeight_mg,MaxWeight_mg,UnitsOutside5Percent,UnitsOutside10Percent,TotalUnitsTested WV-2026-TAB-001,Paracetamol 500mg Tablets,Tablet,650.0,630.0,670.0,1,0,20 WV-2026-CAP-002,Amoxicillin 250mg Capsules,Capsule,300.0,280.0,320.0,3,0,20 WV-2026-TAB-FAIL-003,Ibuprofen 400mg Tablets,Tablet,450.0,390.0,510.0,5,1,20
URS & FS — Weight Variation Tablet/Capsule
This document describes the user requirements and functional specification for WeightVariationTabletCapsuleQualityChecker. The utility is intended for QC laboratory use as a rule-based check of data prepared from an instrument, LIMS, ELN, MES or an approved input.csv.
URS — User Requirements Specification
| ID | Requirement | Criticality | Acceptance criterion |
|---|---|---|---|
| URS-001 | The utility shall accept input.csv with approved columns: BatchNumber, ProductName, DosageForm, AverageWeight_mg, MinWeight_mg, MaxWeight_mg, UnitsOutside5Percent, UnitsOutside10Percent, TotalUnitsTested. | High | The CSV file is processed without manual header editing. |
| URS-002 | The utility shall perform deterministic evaluation for “Weight Variation Tablet/Capsule” without machine learning. | High | The same input data produce the same JSON result. |
| URS-003 | The utility shall validate mandatory fields, numeric formats, flags, ranges and domain plausibility. | High | Schema and conversion errors are explicitly reported. |
| URS-004 | The utility shall generate output.json with PASS / WARNING / FAIL statuses, source values, warnings and failures. | High | The JSON result is suitable for review, deviation investigation and integration. |
| URS-005 | The documentation shall support IQ/OQ/PQ or CSV/CSA verification. | Medium | URS/FS, CSV/JSON contract and test scenarios are supplied with the utility. |
input.csv contract
| # | Field | Sample | Purpose |
|---|---|---|---|
| 1 | BatchNumber | WV-2026-TAB-001 | Input parameter for deterministic QC evaluation. |
| 2 | ProductName | Paracetamol 500mg Tablets | Input parameter for deterministic QC evaluation. |
| 3 | DosageForm | Tablet | Input parameter for deterministic QC evaluation. |
| 4 | AverageWeight_mg | 650.0 | Input parameter for deterministic QC evaluation. |
| 5 | MinWeight_mg | 630.0 | Input parameter for deterministic QC evaluation. |
| 6 | MaxWeight_mg | 670.0 | Input parameter for deterministic QC evaluation. |
| 7 | UnitsOutside5Percent | 1 | Input parameter for deterministic QC evaluation. |
| 8 | UnitsOutside10Percent | 0 | Input parameter for deterministic QC evaluation. |
| 9 | TotalUnitsTested | 20 | Input parameter for deterministic QC evaluation. |
FS — Functional Specification
| ID | Function | Implementation |
|---|---|---|
| FS-001 | CSV import | Read input.csv; validate header, column count and encoding. |
| FS-002 | Schema validation | Check required fields and permitted input values. |
| FS-003 | Rule engine | Apply domain rules, limits and system suitability/specification checks described in the source utility description. |
| FS-004 | Status aggregation | Produce final status: FAIL for critical failure, WARNING for non-critical deviation, PASS for conformance. |
| FS-005 | JSON export | Write machine-readable output.json for LIMS/ELN/MES and QA/QC review. |
OQ/PQ scenarios
- OQ-001: a valid sample row shall be processed without schema error.
- OQ-002: a missing mandatory column shall produce a schema error.
- OQ-003: a non-numeric value in a numeric field shall produce a conversion error.
- OQ-004: a critical parameter outside the limit shall produce
FAILor a critical finding. - PQ-001: user real batches shall be checked with retention of
input.csv,output.json, utility version and checksum.
Included in packages
Dental & Dental Materials QC Suite
QC utility package for dental medicinal products, oral-care products and dental materials: anaesthetics, antiseptics, analgesic/anti-infective products, polymers/minerals, resins, bonding workflows, microbiology, stability and material QC.
OpenLabEx QC Suite
LabEx package for laboratory QC methods: chromatography, spectroscopy, microbiology, sterility, endotoxins, particles, dissolution, water, cleanrooms and sample preparation.
Open