HeparinSodiumQualityChecker

Heparin Sodium

antivirals API biologics endotoxins essential medicines global market heavy metals oncology
Open selection

Heparin Sodium Quality Checker — Unfractionated Heparin (Ph. Eur., USP)

ℹ️ The utility checks Anti-Xa/IIa activity, ratio, protein content, sterility, endotoxins.
ℹ️ Does not use machine learning — rule-based logic only.
⚠️ CRITICAL! Xa/IIa ratio 0.8-1.2. Protein ≤0.1%. Sterility mandatory!

Usage:
HeparinSodiumQualityChecker.exe → demo mode
HeparinSodiumQualityChecker.exe input.csv output.json → evaluate data

Input format:
BatchNumber,Anti_Factor_Xa_IU_per_mg,Anti_Factor_IIa_IU_per_mg,Ratio_Xa_to_IIa,Protein_Content_Percent,Heavy_Metals_ppm,Residual_Solvent_Ethanol_ppm,Residual_Solvent_Acetone_ppm,pH_Value,Osmolality_mOsm_kg,Appearance_Score,SterilityTest,Endotoxin_EU_per_mg,TAMC,TYMC,EColi_Detected,Salmonella_Detected

Example:
HEP-SOD-2026-001,150.0,148.0,1.01,0.05,4,800,400,7.0,290,0,0,0.15,10,2,0,0

— WHY IS THIS NEEDED?
Heparin Sodium — unfractionated heparin for thrombosis prophylaxis:
• Activity Ratio: Key parameter distinguishing UFH from low molecular weight heparins. Anti-Xa to Anti-IIa ratio must be close to 1.0 (range 0.8–1.2). This ensures predictable anticoagulant effect.
• Protein: Heparin is derived from porcine intestinal mucosa. Residual protein is an allergen and strictly limited (≤0.1%).
• Sterility and Endotoxins: Absolute requirements for parenteral administration.
• Molecular Weight: Controlled via gel chromatography (indirectly reflected by activity profile here, but MWD is critical in full QC).
⚠️ CRITICAL:
• Anti-Factor Xa Activity: 140–160 IU/mg
• Anti-Factor IIa Activity: 140–160 IU/mg
• Xa/IIa Ratio: 0.8–1.2
• Protein Content: ≤ 0.1%
• Sterility: No growth
• Endotoxins: ≤ 1.0 EU/mg
• Heavy Metals: ≤ 10 ppm
• Appearance: Clear, colorless to slightly yellow
⚠️ Note: Utility places special emphasis on UFH specificity. Deviation in Xa/IIa ratio indicates improper fractionation or degradation, altering pharmacokinetics and safety profile. Protein control is critical to prevent anaphylactic reactions.

input.csv

BatchNumber,Anti_Factor_Xa_IU_per_mg,Anti_Factor_IIa_IU_per_mg,Ratio_Xa_to_IIa,Protein_Content_Percent,Heavy_Metals_ppm,Residual_Solvent_Ethanol_ppm,Residual_Solvent_Acetone_ppm,pH_Value,Osmolality_mOsm_kg,Appearance_Score,SterilityTest,Endotoxin_EU_per_mg,TAMC,TYMC,EColi_Detected,Salmonella_Detected
HEP-SOD-2026-001,150.0,148.0,1.01,0.05,4,800,400,7.0,290,0,0,0.15,10,2,0,0

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: HeparinSodiumQualityCheckerAPI / object: Heparin SodiumCategory: Global API expansion

1. Scope

The Heparin Sodium Quality Checker utility is used for Heparin Sodium. 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: Global API expansion

Tags: antivirals, API, biologics, endotoxins, essential medicines, global market, heavy metals, oncology, sterility

2. Execution modes

HeparinSodiumQualityChecker.exe                            → demo mode
HeparinSodiumQualityChecker.exe input.csv output.json      → evaluate data

3. Key controlled areas

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

4. Domain limits and critical parameters

  • ⚠️ CRITICAL! Xa/IIa ratio 0.8-1.2. Protein ≤0.1%. Sterility mandatory!
  • Protein: Heparin is derived from porcine intestinal mucosa. Residual protein is an allergen and strictly limited (≤0.1%).
  • ⚠️ CRITICAL:
  • Anti-Factor Xa Activity: 140–160 IU/mg
  • Anti-Factor IIa Activity: 140–160 IU/mg
  • Xa/IIa Ratio: 0.8–1.2
  • Protein Content: ≤ 0.1%
  • Sterility: No growth
  • Endotoxins: ≤ 1.0 EU/mg
  • Heavy Metals: ≤ 10 ppm
  • Appearance: Clear, colorless to slightly yellow
  • ⚠️ Note: Utility places special emphasis on UFH specificity. Deviation in Xa/IIa ratio indicates improper fractionation or degradation, altering pharmacokinetics and safety profile. Protein control is critical to prevent anaphylactic reactions.
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 Heparin Sodium 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, microbiology and pathogens, 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 NumberHEP-SOD-2026-001mandatory field; used for batch/lot traceability
2Anti_Factor_Xa_IU_per_mgdecimalas specifiedAnti Factor Xa IU per mg150.0mandatory numeric value; rule comparison is performed by the utility
3Anti_Factor_IIa_IU_per_mgdecimalas specifiedAnti Factor IIa IU per mg148.0mandatory numeric value; rule comparison is performed by the utility
4Ratio_Xa_to_IIadecimalas specifiedRatio Xa to IIa1.01mandatory numeric value; rule comparison is performed by the utility
5Protein_Content_Percentdecimal%Protein Content %0.05numeric value; compared with assay/purity limit from specification or method
6Heavy_Metals_ppmdecimalppmHeavy Metals ppm4numeric value; checked as elemental/metal impurity
7Residual_Solvent_Ethanol_ppmdecimalppmResidual Solvent Ethanol ppm800numeric value; checked as residual solvent against the applicable limit
8Residual_Solvent_Acetone_ppmdecimalppmResidual Solvent Acetone ppm400numeric value; checked as residual solvent against the applicable limit
9pH_ValuedecimalpHp H Value7.0mandatory numeric value; rule comparison is performed by the utility
10Osmolality_mOsm_kgdecimalmOsm/kgOsmolality m Osm kg290mandatory numeric value; rule comparison is performed by the utility
11Appearance_Scoredecimalas specifiedAppearance Score0mandatory numeric value; rule comparison is performed by the utility
12SterilityTestboolean / flag0/1Sterility Test0valid flag required; prohibited organisms and growth are normally expected as 0 / absent
13Endotoxin_EU_per_mgdecimalEU/mlEndotoxin EU per mg0.15numeric value; critical safety attribute compared with endotoxin limit
14TAMCdecimalas specifiedTAMC10numeric value; compared with microbiological limits
15TYMCdecimalas specifiedTYMC2numeric value; compared with microbiological limits
16EColi_Detectedboolean / flag0/1EColi Detected0valid flag required; prohibited organisms and growth are normally expected as 0 / absent
17Salmonella_Detectedboolean / flag0/1Salmonella Detected0valid flag required; prohibited organisms and growth are normally expected as 0 / absent

CSV example

BatchNumber,Anti_Factor_Xa_IU_per_mg,Anti_Factor_IIa_IU_per_mg,Ratio_Xa_to_IIa,Protein_Content_Percent,Heavy_Metals_ppm,Residual_Solvent_Ethanol_ppm,Residual_Solvent_Acetone_ppm,pH_Value,Osmolality_mOsm_kg,Appearance_Score,SterilityTest,Endotoxin_EU_per_mg,TAMC,TYMC,EColi_Detected,Salmonella_Detected
HEP-SOD-2026-001,150.0,148.0,1.01,0.05,4,800,400,7.0,290,0,0,0.15,10,2,0,0

7. FS — functional specification

IDFunctionImplementation description
FS-001CLI entry pointThe executable HeparinSodiumQualityChecker.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 Heparin Sodium, 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": "HeparinSodiumQualityChecker",
  "api": "Heparin Sodium",
  "batchNumber": "HEP-SOD-2026-001",
  "overallStatus": "PASS|WARNING|FAIL",
  "checkedAtUtc": "2026-05-18T00:00:00Z",
  "checks": [
    {
      "parameter": "BatchNumber",
      "value": "HEP-SOD-2026-001",
      "unit": "as specified",
      "status": "PASS|WARNING|FAIL",
      "message": "Rule-based check result"
    },
    {
      "parameter": "Anti_Factor_Xa_IU_per_mg",
      "value": "150.0",
      "unit": "as specified",
      "status": "PASS|WARNING|FAIL",
      "message": "Rule-based check result"
    },
    {
      "parameter": "Anti_Factor_IIa_IU_per_mg",
      "value": "148.0",
      "unit": "as specified",
      "status": "PASS|WARNING|FAIL",
      "message": "Rule-based check result"
    },
    {
      "parameter": "Ratio_Xa_to_IIa",
      "value": "1.01",
      "unit": "as specified",
      "status": "PASS|WARNING|FAIL",
      "message": "Rule-based check result"
    },
    {
      "parameter": "Protein_Content_Percent",
      "value": "0.05",
      "unit": "%",
      "status": "PASS|WARNING|FAIL",
      "message": "Rule-based check result"
    },
    {
      "parameter": "Heavy_Metals_ppm",
      "value": "4",
      "unit": "ppm",
      "status": "PASS|WARNING|FAIL",
      "message": "Rule-based check result"
    },
    {
      "parameter": "Residual_Solvent_Ethanol_ppm",
      "value": "800",
      "unit": "ppm",
      "status": "PASS|WARNING|FAIL",
      "message": "Rule-based check result"
    },
    {
      "parameter": "Residual_Solvent_Acetone_ppm",
      "value": "400",
      "unit": "ppm",
      "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-005Positive pathogen/microbiological flag or microbiological limit excursionCritical FAIL is produced with the offending parameter.
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

Cardiology QC Suite

QC package for cardiology medicines: antihypertensives, anticoagulants, antiplatelets, lipid-lowering and antiarrhythmic medicines plus supporting QC checks.

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

Gastroenterology QC Suite

QC package for gastroenterology: PPIs, antiemetics, prokinetics, IBD medicines, laxatives, enzymes and GI anti-infectives.

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

World API Extension QC Suite

Extended package for 130 additional high-demand APIs and biological products prepared as a market-coverage backlog.

Open