RibavirinPurityChecker

Ribavirin Purity Checker

Lumex QC URS & FS input.csv output.json rule-based LIMS-ready API
Open selection

Utility description: Ribavirin Purity Checker

Ribavirin Purity Checker — Ribavirin Quality Control

ℹ️  Utility checks critical quality parameters of ribavirin:
   • Assay content: 98.5–101.5%
   • Impurity A (1,2,4-triazole-3-carboxamide): ≤0.5%
   • Impurity B (Ribavirin N-oxide): ≤0.5%
   • Sum of other related substances: ≤1.0%
   • Specific rotation: -30° to -36° (in water)
   • Loss on Drying (LOD): ≤0.5%

⚠️  CRITICAL: Specific rotation deviation → ribose stereochemistry violation!
   High impurities → incomplete synthesis products or oxidation.

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

Input format:
BatchNumber,AssayPercent,ImpurityAPercent,ImpurityBPercent,OtherImpuritiesPercent,SpecificRotation,LossOnDryingPercent

Example:
 RBV-2026-001,99.8,0.10,0.05,0.20,-33.5,0.2

— WHY IS THIS NEEDED?
Ribavirin is a synthetic nucleoside analogue (of guanosine) with antiviral activity.
• Contains a chiral center (D-ribofuranosyl moiety). Pharmacopoeias require optical purity control.
• Impurity A (triazole carboxamide) is the aglycone, a product of glycosidic bond hydrolysis or synthesis byproduct.
• Impurity B (N-oxide) is an oxidation product of the triazole ring.
• HPLC is the primary method for assay and impurity control.

⚠️  CRITICAL:
• Assay 98.5–101.5% — strict limit for substance.
• Impurities ≤0.5% (individual) and ≤1.0% (sum) — ensures safety.
• Specific Rotation [-30°; -36°] — confirms correct sugar configuration (beta-D-ribofuranosyl).
• LOD ≤0.5% — ribavirin is hygroscopic, moisture affects dosing.

Key features:
• Comprehensive assessment of assay, impurities, and chirality.
• Control of degradation products (hydrolysis, oxidation).
• Compliance with Ph. Eur., USP, and RF SP requirements.

Critical parameters:
• Assay: 98.5–101.5%
• Impurity A (Triazole Carboxamide): ≤0.5%
• Impurity B (N-Oxide): ≤0.5%
• Other Impurities: ≤1.0%
• Specific Rotation: -30° to -36°
• Loss on Drying: ≤0.5%

💡 Usage tips:
1. Use reversed-phase HPLC (C18) with aqueous-salt eluent (ribavirin is very polar).
2. Detection usually at 207–220 nm.
3. For chirality confirmation, use polarimetry or chiral HPLC (if extended control is required).
4. Ribavirin is soluble in water but poorly soluble in organic solvents.
5. Store substance in a tightly closed container, protected from light.

⚠️ Note: Ribavirin is a prodrug inside the cell (phosphorylated), but in the substance, we control the stability of the nucleoside structure and stereochemistry.

input.csv

BatchNumber,Assay%,ImpA%,ImpB%,OtherImp%,SpecRot,LOD%
RBV-2026-001,99.8,0.10,0.05,0.20,-33.5,0.2
RBV-2026-002,99.2,0.20,0.10,0.30,-32.0,0.3
RBV-FAIL-2026-003,97.0,0.80,0.60,1.50,-25.0,0.8

URS & FS — User Requirements and Functional Specification

This document defines the controlled interface, validation behaviour and expected output of RibavirinPurityChecker. The document is intended to reside inside the utility folder together with input.csv and the description file. Expected executable: RibavirinPurityChecker.exe.

Purpose: the utility performs deterministic verification of QC input data against approved limits, generates machine-readable output.json, and supports QC/QA review, LIMS/ELN/MES integration and CSV/CSA preparation.

Scope

Utility classIR spectroscopy / InfraLUM
Main object/methodRibavirin Quality Control
Inputinput.csv with a fixed header and controlled data types.
Outputoutput.json with PASS, WARNING, FAIL statuses, detailed checks and critical findings.
ExclusionsThe utility does not replace the approved specification, analytical procedure, OOS/OOT investigation or Qualified Person / QA release decision.

Domain limits and critical parameters

Key fragments from the source description are listed below. Before production use, limits shall be verified against the approved specification, registration dossier, current pharmacopoeial edition and local SOPs.
  • • Assay content: 98.5–101.5%
  • • Impurity A (1,2,4-triazole-3-carboxamide): ≤0.5%
  • • Impurity B (Ribavirin N-oxide): ≤0.5%
  • • Sum of other related substances: ≤1.0%
  • • Specific rotation: -30° to -36° (in water)
  • • Loss on Drying (LOD): ≤0.5%
  • ⚠️ CRITICAL: Specific rotation deviation → ribose stereochemistry violation!
  • RibavirinPurityChecker.exe input.csv output.json → evaluate your data
  • BatchNumber,AssayPercent,ImpurityAPercent,ImpurityBPercent,OtherImpuritiesPercent,SpecificRotation,LossOnDryingPercent
  • • Contains a chiral center (D-ribofuranosyl moiety). Pharmacopoeias require optical purity control.
  • • Impurity A (triazole carboxamide) is the aglycone, a product of glycosidic bond hydrolysis or synthesis byproduct.
  • • Impurity B (N-oxide) is an oxidation product of the triazole ring.
  • • HPLC is the primary method for assay and impurity control.
  • ⚠️ CRITICAL:
  • • Assay 98.5–101.5% — strict limit for substance.
  • • Impurities ≤0.5% (individual) and ≤1.0% (sum) — ensures safety.

Pharmacopoeial and regulatory references found in the description

#SourceNote
1Ph. EurUsed as a source/context reference from the description; the current edition must be verified before implementation.
2USPUsed as a source/context reference from the description; the current edition must be verified before implementation.
3ГФ РФUsed as a source/context reference from the description; the current edition must be verified before implementation.

Production data flow

StepResponsible objectDescriptionControl
1LIMS/ELN/MES or QC analystCreates input.csv with measured values and batch identifier.Header, mandatory-field and unit checks.
2RibavirinPurityCheckerLoads CSV, converts data types, applies domain rules and produces the result.Deterministic rules; no ML/probabilistic conformance decision.
3QC reviewer / QAReviews output.json, warnings, critical deviations and source values.Review, deviation investigation and data-trail retention.
4Archive / eQMSRetains input, output, utility version, documentation and checksum.Data integrity: ALCOA+, reproducibility and change control.

URS — User Requirements Specification

IDRequirementCriticalityAcceptance criterion
URS-001The utility shall be supplied with RibavirinPurityChecker.documentation.html in the same folder as the description and sample input.csv.MediumThe documentation file exists in the RibavirinPurityChecker folder and opens locally in a browser.
URS-002The utility shall accept input.csv with the exact headers defined in the data contract.HighA CSV file with the correct header is processed without manual editing.
URS-003The utility shall validate mandatory fields, column count, data types and basic plausibility of values.HighSchema and conversion errors are explicitly reported.
URS-004The utility shall evaluate each critical and non-critical QC parameter against approved limits.HighEach checked parameter receives a status and explanatory message.
URS-005The utility shall produce a final record/batch status: PASS, WARNING or FAIL.HighA critical deviation causes FAIL; a non-critical deviation causes WARNING.
URS-006The utility shall generate output.json suitable for LIMS/ELN/MES integration and QA/QC review.HighJSON contains source values, rules, statuses, warnings and critical findings.
URS-007The utility shall preserve traceability between batch identifier, input values, applied rules and final status.HighThe output contains the batch/row identifier and list of checked parameters.
URS-008The utility shall not use machine learning or probabilistic interpretation for conformance decisions.MediumThe result is reproducible and based on explicit rules, thresholds and input values.
URS-009The utility shall support the CLI scenario: RibavirinPurityChecker.exe input.csv output.json.HighWith valid arguments, output.json is created; on error, a diagnostic message is returned.
URS-010The documentation shall support IQ/OQ/PQ or equivalent CSV/CSA verification.MediumThe document contains URS, FS, CSV contract, rules, test scenarios and traceability.
URS-011The utility shall distinguish data errors, method warnings and critical specification failures.Highoutput.json provides separate structures/fields for errors, warnings and critical findings.
URS-012The utility shall support archival retention of unchanged input and output data.Mediuminput.csv and output.json can be retained as a batch record or OQ/PQ evidence.

input.csv contract

#FieldTypeSamplePurpose
1BatchNumberstringRBV-2026-001Batch or lot identifier used for traceability.
2Assay%decimal99.8Assay/content result used to verify quantitative compliance.
3ImpA%decimal0.10Controlled input parameter used by the deterministic QC rules.
4ImpB%decimal0.05Controlled input parameter used by the deterministic QC rules.
5OtherImp%decimal0.20Controlled input parameter used by the deterministic QC rules.
6SpecRotdecimal-33.5Controlled input parameter used by the deterministic QC rules.
7LOD%decimal0.2Water/moisture or loss-on-drying parameter relevant for stability and quality.
BatchNumber,Assay%,ImpA%,ImpB%,OtherImp%,SpecRot,LOD%
RBV-2026-001,99.8,0.10,0.05,0.20,-33.5,0.2
RBV-2026-002,99.2,0.20,0.10,0.30,-32.0,0.3
RBV-FAIL-2026-003,97.0,0.80,0.60,1.50,-25.0,0.8

Input validation rules

IDFieldTypeCheckCriticality
VR-001BatchNumberstringnot empty; unique within file where applicableMedium
VR-002Assay%decimalparse as invariant decimal; finite value; no NaN/Infinity; evaluate against approved % limitHigh
VR-003ImpA%decimalparse as invariant decimal; finite value; no NaN/Infinity; evaluate against approved numerical limitMedium
VR-004ImpB%decimalparse as invariant decimal; finite value; no NaN/Infinity; evaluate against approved numerical limitMedium
VR-005OtherImp%decimalparse as invariant decimal; finite value; no NaN/Infinity; evaluate against approved numerical limitMedium
VR-006SpecRotdecimalparse as invariant decimal; finite value; no NaN/Infinity; evaluate against approved numerical limitMedium
VR-007LOD%decimalparse as invariant decimal; finite value; no NaN/Infinity; evaluate against approved numerical limitMedium

FS — Functional Specification

IDFunctionImplementationURS link
FS-001Local HTML documentationProvide a bilingual RibavirinPurityChecker.documentation.html file with RU/EN switch, source description, URS, FS, contracts and tests.URS-001, URS-010
FS-002CSV importRead input.csv in UTF-8/CSV-compatible format and identify the header row and data records.URS-002, URS-009
FS-003Schema validationCompare actual columns against the expected contract; missing key fields are recorded as schema errors.URS-002, URS-003
FS-004Type conversionConvert decimal, flag/boolean and controlled string values. Invalid values are recorded at row and field level.URS-003
FS-005Domain rule engineApply rules for Ribavirin Purity Checker, including critical limits from the description and approved specification.URS-004, URS-008
FS-006Status aggregationAggregate parameter statuses: FAIL for critical failure, WARNING for non-critical deviation, PASS for conformance.URS-005, URS-011
FS-007JSON exportWrite output.json with utility identifier, source values, check results, warnings and critical findings.URS-006, URS-007
FS-008Error handlingSeparate execution errors, schema errors, conversion errors and domain-limit failures.URS-003, URS-011
FS-009Audit supportKeep result structure suitable for review, OOS/OOT investigation, calculation reproduction and inspection discussion.URS-007, URS-012
FS-010Integration contractSupport the standard scenario: LIMS/ELN/MES creates input.csv, the utility returns output.json, and the portal displays description and documentation.URS-006, URS-009
FS-011Configuration/change controlAny change to limits, column names or rule logic requires versioning, review, regression tests and documentation update.URS-010, URS-012
FS-012Data integrityDo not modify the source input.csv; save results separately in output.json for archival retention.URS-007, URS-012

Example output.json structure

{
  "utilityId": "ribavirinpuritychecker",
  "utilityName": "RibavirinPurityChecker",
  "object": "Ribavirin Purity Checker",
  "overallStatus": "PASS|WARNING|FAIL",
  "sourceFile": "input.csv",
  "recordCount": 3,
  "checks": [
    {
      "parameter": "BatchNumber",
      "value": "RBV-2026-001",
      "status": "PASS|WARNING|FAIL",
      "message": "Rule-based check result",
      "ruleReference": "VR-001"
    },
    {
      "parameter": "Assay%",
      "value": "99.8",
      "status": "PASS|WARNING|FAIL",
      "message": "Rule-based check result",
      "ruleReference": "VR-002"
    },
    {
      "parameter": "ImpA%",
      "value": "0.10",
      "status": "PASS|WARNING|FAIL",
      "message": "Rule-based check result",
      "ruleReference": "VR-003"
    },
    {
      "parameter": "ImpB%",
      "value": "0.05",
      "status": "PASS|WARNING|FAIL",
      "message": "Rule-based check result",
      "ruleReference": "VR-004"
    },
    {
      "parameter": "OtherImp%",
      "value": "0.20",
      "status": "PASS|WARNING|FAIL",
      "message": "Rule-based check result",
      "ruleReference": "VR-005"
    },
    {
      "parameter": "SpecRot",
      "value": "-33.5",
      "status": "PASS|WARNING|FAIL",
      "message": "Rule-based check result",
      "ruleReference": "VR-006"
    },
    {
      "parameter": "LOD%",
      "value": "0.2",
      "status": "PASS|WARNING|FAIL",
      "message": "Rule-based check result",
      "ruleReference": "VR-007"
    }
  ],
  "criticalFindings": [],
  "warnings": [],
  "metadata": {
    "executionMode": "CLI",
    "interface": "CSV to JSON",
    "documentationFile": "RibavirinPurityChecker.documentation.html"
  }
}

Traceability matrix URS → FS → OQ/PQ

URSFSVerificationExpected result
URS-001FS-001Check that RibavirinPurityChecker.documentation.html exists in the utility folder.The file exists, opens, and the RU/EN switch works.
URS-002/003FS-002/003/004Run the utility with a correct CSV, a CSV missing a mandatory column and a CSV with an invalid data type.Correct CSV is processed; schema and type errors are explicit.
URS-004/005FS-005/006Submit values within limits, at warning level and beyond a critical limit.PASS, WARNING and FAIL are produced according to rules.
URS-006/007FS-007/009/012Verify output.json structure and batch traceability.JSON contains batch identifier, values, rules, statuses and critical findings.
URS-008FS-005Repeat execution with the same input.csv.The result is identical; no probabilistic behaviour is present.
URS-009/010/012FS-010/011/012Execute the CLI scenario and archive input/output/version.Artefacts are suitable for OQ/PQ and change-control records.

OQ/PQ test scenarios

IDScenarioInput dataExpected result
OQ-001Positive pathSample CSV with valid values.output.json is created; final status is PASS or acceptable WARNING according to rules.
OQ-002Mandatory column missingRemove one key column from the header.Schema error; the row shall not be treated as passed.
OQ-003Invalid typePut text into a numeric field.Type-conversion error with field and row identification.
OQ-004Critical limitCritical parameter value outside the approved limit.FAIL and an entry in criticalFindings.
OQ-005WarningNon-critical deviation or unknown controlled category.WARNING without hiding the source value.
PQ-001User real batchReal input.csv from the QC process.Reviewed result with input.csv, output.json, version and checksum retained.

QA/QC, CSV/CSA and change control

  • Do not rename columns without updating the validator, test set and documentation.
  • Retain input.csv, output.json, executable version, checksum and a copy of the documentation.
  • Before production use, perform IQ/OQ/PQ or equivalent risk-based CSV/CSA verification.
  • Critical limits shall be approved by the process owner and verified against the registration dossier, pharmacopoeia and local SOPs.
  • Any change to rules, thresholds or status interpretation shall go through change control and regression testing.

Included in packages

Infectious Diseases QC Suite

QC utility package for infectious diseases: antibacterial, antiviral, antifungal and antiparasitic products, microbiology, sterility, endotoxins, viral safety and vaccine release checks.

Open

Lumex QC Suite

A single Lumex package combining the former Lumex and Lumex2 sets: instrumental and general pharmaceutical QC, AAS/ICP, CE, HPLC, NIR/PAT, stability, dissolution, content uniformity, system suitability and statistical control.

Open