CyanocobalaminQualityChecker

Cyanocobalamin

assay heavy metals impurities minerals premix specification vitamins water quality
Open selection

Cyanocobalamin Quality Checker — Vitamin B12 (Ph. Eur. 2.8.1)

ℹ️ The utility checks assay, specific rotation, UV ratios, impurities, loss on drying.
ℹ️ Does not use machine learning — rule-based logic only.
⚠️ Critical for vitamin products, dietary supplements, injectable solutions, parenteral nutrition.

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

Input format:
BatchNumber,AssayPercent,SpecificRotation,UV361_278,UV361_308,Hydroxocobalamin,OtherImpurities,TotalImpurities,LossOnDrying,HeavyMetals,pH,ClarityNTU,ColorAPHA,EthanolPPM,AcetonePPM

Example:
B12-2026-001,98.5,22.0,1.80,1.85,0.8,0.5,1.3,8.5,10,5.8,2,35,1000,600

— WHY IS THIS NEEDED?
Cyanocobalamin (vitamin B12) is a water-soluble vitamin critical for:
• DNA synthesis and erythrocyte formation (prevention of megaloblastic anemia)
• Nervous system function (myelination)
• Homocysteine metabolism
• Vitamin complexes, dietary supplements, injectable solutions
• Parenteral nutrition (especially for patients with malabsorption)
Critical parameters:
• Assay 96.0–102.0% (on dried basis)
• Specific rotation +20° to +24° (in water)
• UV ratios: A361/A278 (1.70–1.90), A361/A308 (1.75–1.95) — for identification and purity
• Hydroxocobalamin ≤2.0% (main impurity)
• Total impurities ≤5.0%
• Loss on drying ≤12.0% (for trihydrate)
• Heavy metals ≤20 ppm
• pH 4.5–7.0 (for 0.025% solution)
• Clarity ≤5 NTU, color ≤50 APHA
Monograph compliance is mandatory for registration.

input.csv

BatchNumber,AssayPercent,SpecificRotation,UV361_278,UV361_308,Hydroxocobalamin,OtherImpurities,TotalImpurities,LossOnDrying,HeavyMetals,pH,ClarityNTU,ColorAPHA,EthanolPPM,AcetonePPM
B12-2026-001,98.5,22.0,1.80,1.85,0.8,0.5,1.3,8.5,10,5.8,2,35,1000,600

URS & FS — user requirements and functional specification

This document defines user requirements and functional specification for the quality-control utility. It supports deployment discussion, IQ/OQ preparation and QC workflow integration.

Utility: CyanocobalaminQualityCheckerAPI / object: CyanocobalaminCategory: Vitamins and minerals

1. Scope

The Cyanocobalamin Quality Checker utility is used for Cyanocobalamin. The actual input.csv is the source of truth for the input structure; control criteria are defined by the executable and the domain description.

The utility does not use machine learning; decisions are produced by deterministic rules.

Categories: Vitamins and minerals

Tags: assay, heavy metals, impurities, minerals, premix, specification, vitamins, water quality

2. Execution modes

CyanocobalaminQualityChecker.exe                            → demo mode (console output)
CyanocobalaminQualityChecker.exe input.csv output.json      → evaluate your data

3. Key controlled areas

  • assay / content
  • residual solvents
  • heavy metals / elemental impurities
  • pH and physicochemical parameters

4. Domain limits and critical parameters

  • ⚠️ Critical for vitamin products, dietary supplements, injectable solutions, parenteral nutrition.
  • Critical parameters:
  • Assay 96.0–102.0% (on dried basis)
  • Specific rotation +20° to +24° (in water)
  • UV ratios: A361/A278 (1.70–1.90), A361/A308 (1.75–1.95) — for identification and purity
  • Hydroxocobalamin ≤2.0% (main impurity)
  • Total impurities ≤5.0%
  • Loss on drying ≤12.0% (for trihydrate)
  • Heavy metals ≤20 ppm
  • pH 4.5–7.0 (for 0.025% solution)
  • Clarity ≤5 NTU, color ≤50 APHA
Limits stated in the description must be verified against the current approved specification, pharmacopoeial monograph and registration dossier before production use.

5. URS — user requirements

IDRequirementCriticalityAcceptance criterion
URS-001The system shall accept an input.csv file for Cyanocobalamin with the exact columns listed in the “Input data contract” section.HighA file with the correct header is processed without manual editing; missing mandatory columns produce FAIL/import error.
URS-002The system shall support execution without arguments in demo mode and execution with input.csv output.json for user data.MediumBoth execution scenarios produce a predictable result or clear diagnostic error.
URS-003The system shall perform rule-based controls for: assay / content, residual solvents, heavy metals / elemental impurities, pH and physicochemical parameters.HighEach controlled parameter receives a status and message; the result does not depend on hidden Excel formulas or ML.
URS-004The system shall preserve traceability between batch/lot, source values, applied rules and final verdict.HighOutput includes batch identifier, source values, parameter statuses and critical findings.
URS-005The system shall generate machine-readable output.json for LIMS/ELN/MES, batch record and QA/QC review.HighJSON contains overall status, check array, warnings, failures and source-file reference.
URS-006The system shall support use in the client validation package: URS/FS, IQ/OQ preparation, installation and operational scenario checks.HighThe document, test scenarios and reproducible CSV/JSON flow are suitable for audit and internal approval.
URS-007The system shall clearly separate technical data errors from specification nonconformities.MediumSchema/type errors are not mixed with pharmacopoeial deviations and are reported separately.

6. input.csv data contract

The source of truth for the input schema is the actual input.csv header. Column names are technical identifiers and are not translated.

#ColumnTypeUnitDescriptionSampleControl rule
1BatchNumberidentifieras specifiedBatch NumberB12-2026-001mandatory field; used for batch/lot traceability
2AssayPercentdecimal%Assay %98.5numeric value; compared with assay/purity limit from specification or method
3SpecificRotationdecimalas specifiedSpecific Rotation22.0mandatory numeric value; rule comparison is performed by the utility
4UV361_278decimalas specifiedUV361 2781.80mandatory numeric value; rule comparison is performed by the utility
5UV361_308decimalas specifiedUV361 3081.85mandatory numeric value; rule comparison is performed by the utility
6HydroxocobalamindecimalminHydroxocobalamin0.8mandatory numeric value; rule comparison is performed by the utility
7OtherImpuritiesdecimalas specifiedOther Impurities0.5mandatory numeric value; rule comparison is performed by the utility
8TotalImpuritiesdecimalas specifiedTotal Impurities1.3mandatory numeric value; rule comparison is performed by the utility
9LossOnDryingdecimalas specifiedLoss On Drying8.5mandatory numeric value; rule comparison is performed by the utility
10HeavyMetalsdecimalas specifiedHeavy Metals10numeric value; checked as elemental/metal impurity
11pHdecimalpHp H5.8mandatory numeric value; rule comparison is performed by the utility
12ClarityNTUdecimalas specifiedClarity NTU2mandatory numeric value; rule comparison is performed by the utility
13ColorAPHAdecimalas specifiedColor APHA35mandatory numeric value; rule comparison is performed by the utility
14EthanolPPMdecimalppmEthanol PPM1000numeric value; checked as residual solvent against the applicable limit
15AcetonePPMdecimalppmAcetone PPM600numeric value; checked as residual solvent against the applicable limit

CSV example

BatchNumber,AssayPercent,SpecificRotation,UV361_278,UV361_308,Hydroxocobalamin,OtherImpurities,TotalImpurities,LossOnDrying,HeavyMetals,pH,ClarityNTU,ColorAPHA,EthanolPPM,AcetonePPM
B12-2026-001,98.5,22.0,1.80,1.85,0.8,0.5,1.3,8.5,10,5.8,2,35,1000,600

7. FS — functional specification

IDFunctionImplementation description
FS-001CLI entry pointThe executable CyanocobalaminQualityChecker.exe supports demo mode and input.csv output.json processing mode.
FS-002CSV parserThe import module reads CSV, validates header, column presence/order, value count and encoding. Decimal values are expected with a dot separator.
FS-003Field conversionEach column is converted to the expected type: identifier, text, decimal number, date/time or boolean flag.
FS-004Domain rule engineFor Cyanocobalamin, explicit rules are applied: range, minimum, maximum, absence of prohibited flag, data completeness or calculation-based check.
FS-005Criticality handlingCritical violations produce FAIL; non-critical deviations and incomplete data produce WARNING; full conformance produces PASS.
FS-006JSON writeroutput.json stores overall status, per-parameter results, source values, warnings, failures and diagnostic messages.
FS-007Integration contractThe CSV → JSON format is stable for invocation from LIMS/ELN/MES, scheduled task or wrapper service.
FS-008Error handlingSchema error, missing file, non-numeric value or JSON write failure returns diagnosable error without silent PASS.

8. output.json contract

The output file must be suitable for automated processing, audit review and correlation with the source input.csv row.

{
  "utility": "CyanocobalaminQualityChecker",
  "api": "Cyanocobalamin",
  "batchNumber": "B12-2026-001",
  "overallStatus": "PASS|WARNING|FAIL",
  "checkedAtUtc": "2026-05-18T00:00:00Z",
  "checks": [
    {
      "parameter": "BatchNumber",
      "value": "B12-2026-001",
      "unit": "as specified",
      "status": "PASS|WARNING|FAIL",
      "message": "Rule-based check result"
    },
    {
      "parameter": "AssayPercent",
      "value": "98.5",
      "unit": "%",
      "status": "PASS|WARNING|FAIL",
      "message": "Rule-based check result"
    },
    {
      "parameter": "SpecificRotation",
      "value": "22.0",
      "unit": "as specified",
      "status": "PASS|WARNING|FAIL",
      "message": "Rule-based check result"
    },
    {
      "parameter": "UV361_278",
      "value": "1.80",
      "unit": "as specified",
      "status": "PASS|WARNING|FAIL",
      "message": "Rule-based check result"
    },
    {
      "parameter": "UV361_308",
      "value": "1.85",
      "unit": "as specified",
      "status": "PASS|WARNING|FAIL",
      "message": "Rule-based check result"
    },
    {
      "parameter": "Hydroxocobalamin",
      "value": "0.8",
      "unit": "min",
      "status": "PASS|WARNING|FAIL",
      "message": "Rule-based check result"
    },
    {
      "parameter": "OtherImpurities",
      "value": "0.5",
      "unit": "as specified",
      "status": "PASS|WARNING|FAIL",
      "message": "Rule-based check result"
    },
    {
      "parameter": "TotalImpurities",
      "value": "1.3",
      "unit": "as specified",
      "status": "PASS|WARNING|FAIL",
      "message": "Rule-based check result"
    }
  ],
  "criticalFindings": [],
  "sourceFile": "input.csv"
}

9. OQ/PQ test scenarios

IDScenarioExpected result
TC-001Valid CSV with expected header and sample rowAll rows are processed; output contains PASS/WARNING/FAIL and parameter-level detail.
TC-002A mandatory input.csv column is missingImport is rejected or the row receives FAIL with schema reference.
TC-003A numeric field contains text or a blank valueType conversion error is recorded; the result is not hidden as PASS.
TC-004A parameter is outside specification or critical limitCritical parameters produce FAIL; non-critical deviations produce WARNING according to the rule.
TC-007Residual solvent above applicable limitFAIL is produced with solvent name and measured value.

10. QA/QC, CSV and change control

  • Before production use, the client records executable version, checksum, specification/monograph version, test CSV, expected JSON and IQ/OQ results.
  • Column names must not be changed without updating the validator and test scenarios.
  • The source CSV, output.json and utility version should be stored together as an evidence package.
  • Any change in control rules must go through change control and repeated OQ scenario verification.

Included in packages

Algeria: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

Argentina: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

Australia: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

Bangladesh: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

Brazil: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

Canada: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

China: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

Colombia: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

Democratic Republic of the Congo: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

Egypt: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

Ethiopia: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

France: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

Germany: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

India: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

Indonesia: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

Iran: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

Italy: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

Japan: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

Kenya: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

Mexico: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

Myanmar: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

Nigeria: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

Pakistan: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

Philippines: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

Russia: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

Saudi Arabia: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

South Africa: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

South Korea: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

Sudan: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

Tanzania: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

Thailand: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

Turkey: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

Uganda: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

United Kingdom: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

United States: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

Vietnam: national essential medicines QC package

QC utility package aligned with the country essential/reimbursed medicines list analogue and cross-checked against WHO EML. Only utilities already present in the portal are included; the package is a validation/discussion starting map, not an official registry copy.

Open

Vitamins & Minerals QC Suite

Quality-control package for vitamins, minerals, premixes and nutrient substances.

Open