PotentiometricTitrationQualityChecker

Potentiometric Titration

LabEx laboratory QC CSV→JSON URS & FS utilities / cleanroom
Open selection
Potentiometric Titration Quality Checker — Control of Potentiometric Titration Quality

ℹ️  Utility calculates and verifies active substance content by potentiometric titration:
   • Calculation of Assay % based on titrant volume at equivalence point.
   • Accounts for titrant molarity, sample mass, molecular weight, and stoichiometry.
   • Compares result with established specification limits.

⚠️  CRITICAL: Error in equivalence point determination leads to incorrect result!
   Potentiometry is preferred over visual methods for colored or turbid solutions.

Usage:
 PotentiometricTitrationQualityChecker.exe                            → demo mode (console output)
 PotentiometricTitrationQualityChecker.exe input.csv output.json      → evaluate your data

Input format:
BatchNumber,EquivalencePointVolumeMl,TitrantMolarity,SampleMassG,MolarMassGmol,StoichiometryFactor,LowerLimitPercent,UpperLimitPercent

Example:
 TITR-API-2026-001,12.50,0.1000,0.5000,180.16,1.0,99.0,101.0

— WHY IS THIS NEEDED?
Potentiometric titration is a precise quantitative method for acids, bases, salts, and redox agents.
• Used where visual indicators are inapplicable (turbid solutions, lack of suitable indicator).
• Automatic titrators record potential jump, increasing objectivity of endpoint determination.
• Content calculation requires many parameters, automation of which reduces error risk.
• Complies with pharmacopoeial requirements (USP <541>, Ph. Eur. 2.2.20).

⚠️  CRITICAL:
• Electrode must be properly calibrated and conditioned.
• Titration speed near equivalence point must be reduced for accuracy.
• Solution must be well-stirred.
• Temperature can affect electrode potential and dissociation constants.

Key features:
• Automatic percentage content calculation.
• Specification compliance check.
• Support for automatic titrator data.

Critical parameters:
• Assay Content: Within [Lower Limit - Upper Limit]

💡 Usage tips:
1. Regularly check electrode membrane condition.
2. Use reference standards to verify titrant (titer factor).
3. Clean electrode after each measurement per manufacturer instructions.
4. For weak acids/bases, ensure potential jump is sufficiently pronounced.
5. Save titration curves (potential vs volume) for auditing.

⚠️ Note: Unlike acid-base titration with indicators, potentiometry allows recording the entire reaction course, useful for mixture analysis or multi-step processes.

input.csv

BatchNumber,EqVol_mL,Titrant_M,SampleMass_g,MW_gmol,Stoich,Lower%,Upper%
TITR-API-2026-001,12.50,0.1000,0.5000,180.16,1.0,99.0,101.0
TITR-API-2026-002,12.45,0.1000,0.5000,180.16,1.0,99.0,101.0
TITR-FAIL-2026-003,11.80,0.1000,0.5000,180.16,1.0,99.0,101.0

URS & FS — Potentiometric Titration

This document describes the user requirements and functional specification for PotentiometricTitrationQualityChecker. 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, EqVol_mL, Titrant_M, SampleMass_g, MW_gmol, Stoich, Lower%, Upper%.HighThe CSV file is processed without manual header editing.
URS-002The utility shall perform deterministic evaluation for “Potentiometric Titration” 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
1BatchNumberTITR-API-2026-001Input parameter for deterministic QC evaluation.
2EqVol_mL12.50Input parameter for deterministic QC evaluation.
3Titrant_M0.1000Input parameter for deterministic QC evaluation.
4SampleMass_g0.5000Input parameter for deterministic QC evaluation.
5MW_gmol180.16Input parameter for deterministic QC evaluation.
6Stoich1.0Input parameter for deterministic QC evaluation.
7Lower%99.0Input parameter for deterministic QC evaluation.
8Upper%101.0Input 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

LabEx QC Suite

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

Open