WeightVariationTabletCapsuleQualityChecker

Weight Variation Tablet/Capsule

LabEx laboratory QC CSV→JSON URS & FS solid dosage forms utilities / cleanroom
Open selection
Weight 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

IDRequirementCriticalityAcceptance criterion
URS-001The utility shall accept input.csv with approved columns: BatchNumber, ProductName, DosageForm, AverageWeight_mg, MinWeight_mg, MaxWeight_mg, UnitsOutside5Percent, UnitsOutside10Percent, TotalUnitsTested.HighThe CSV file is processed without manual header editing.
URS-002The utility shall perform deterministic evaluation for “Weight Variation Tablet/Capsule” without machine learning.HighThe same input data produce the same JSON result.
URS-003The utility shall validate mandatory fields, numeric formats, flags, ranges and domain plausibility.HighSchema and conversion errors are explicitly reported.
URS-004The utility shall generate output.json with PASS / WARNING / FAIL statuses, source values, warnings and failures.HighThe JSON result is suitable for review, deviation investigation and integration.
URS-005The documentation shall support IQ/OQ/PQ or CSV/CSA verification.MediumURS/FS, CSV/JSON contract and test scenarios are supplied with the utility.

input.csv contract

#FieldSamplePurpose
1BatchNumberWV-2026-TAB-001Input parameter for deterministic QC evaluation.
2ProductNameParacetamol 500mg TabletsInput parameter for deterministic QC evaluation.
3DosageFormTabletInput parameter for deterministic QC evaluation.
4AverageWeight_mg650.0Input parameter for deterministic QC evaluation.
5MinWeight_mg630.0Input parameter for deterministic QC evaluation.
6MaxWeight_mg670.0Input parameter for deterministic QC evaluation.
7UnitsOutside5Percent1Input parameter for deterministic QC evaluation.
8UnitsOutside10Percent0Input parameter for deterministic QC evaluation.
9TotalUnitsTested20Input parameter for deterministic QC evaluation.

FS — Functional Specification

IDFunctionImplementation
FS-001CSV importRead input.csv; validate header, column count and encoding.
FS-002Schema validationCheck required fields and permitted input values.
FS-003Rule engineApply domain rules, limits and system suitability/specification checks described in the source utility description.
FS-004Status aggregationProduce final status: FAIL for critical failure, WARNING for non-critical deviation, PASS for conformance.
FS-005JSON exportWrite 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 FAIL or 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.

Open

LabEx QC Suite

LabEx package for laboratory QC methods: chromatography, spectroscopy, microbiology, sterility, endotoxins, particles, dissolution, water, cleanrooms and sample preparation.

Open