Bedaquiline_BedaquilineDelamanidPretomanidQCBacklog
Bedaquiline / Bedaquiline
ℹ️ Utility checks quality of MDR-TB drugs:
• Supported types: BDQ (mono), BDP (combo)
• Assay of each API: 90.0–110.0%
• Impurities of each API: ≤1.0%
• Total Impurities: ≤2.5%
• Dissolution: ≥85% (Q)
• Moisture Content: ≤4.0%
• Heavy Metals: ≤20 ppm
⚠️ CRITICAL: Second-line drugs require strict quality control due to toxicity.
Usage:
Bedaquiline_BedaquilineDelamanidPretomanidQCBacklog.exe → demo mode
Bedaquiline_BedaquilineDelamanidPretomanidQCBacklog.exe input.csv output.json → evaluate data
Input format:
BatchNumber,ProductType,BedaquilineAssayPercent,DelamanidAssayPercent,PretomanidAssayPercent,BedaquilineImpurityPercent,DelamanidImpurityPercent,PretomanidImpurityPercent,TotalImpuritiesPercent,DissolutionBedaquilinePercent,DissolutionDelamanidPercent,DissolutionPretomanidPercent,MoistureContentPercent,HeavyMetalsPPM
Example:
BDP-2026-001,BDP,100.5,99.8,100.2,0.4,0.3,0.5,1.5,92.0,94.0,93.5,2.5,5.0
— WHY IS THIS NEEDED?
Bedaquiline, Delamanid, and Pretomanid are key drugs for treating Multidrug-Resistant Tuberculosis (MDR-TB):
• Bedaquiline — mycobacterial ATP synthase inhibitor
• Delamanid — cell wall synthesis inhibitor
• Pretomanid — nitroimidazole-oxazine prodrug
• BPaL or BDP combination is the standard of care
• Strict control required due to risk of cardiotoxicity (QT) and hepatotoxicity
⚠️ CRITICAL:
• Assay 90.0–110.0% — ensures bactericidal effect
• Impurities ≤1.0% — degradation and synthesis products
• Total Impurities ≤2.5% — overall purity indicator
• Dissolution ≥85% — critical for bioavailability of poorly soluble substances
• Moisture Content ≤4.0% — drug stability
• Heavy Metals ≤20 ppm — safety
Key features:
• Support for both monoproduct (Bedaquiline) and triple combination
• Individual impurity control for each component
• Dissolution testing for all active substances
• Strict moisture control
Critical parameters:
• Bedaquiline Assay: 90.0–110.0%
• Delamanid Assay: 90.0–110.0% (for BDP)
• Pretomanid Assay: 90.0–110.0% (for BDP)
• Impurities (each): ≤1.0%
• Total Impurities: ≤2.5%
• Dissolution (each): ≥85% (Q)
• Moisture Content: ≤4.0%
• Heavy Metals: ≤20 ppm
💡 Usage tips:
1. Assay determined by HPLC with UV detection
2. Drugs have low solubility, requires control of dissolution conditions
3. Store in light-protected place
4. If deviations detected, check raw material stability
⚠️ Note: BDP combination is a complex pharmaceutical form. All three components have different solubility and stability profiles. Quality control is critical to prevent further development of M. tuberculosis resistance.
input.csv
BatchNumber,ProductType,BedaquilineAssayPercent,DelamanidAssayPercent,PretomanidAssayPercent,BedaquilineImpurityPercent,DelamanidImpurityPercent,PretomanidImpurityPercent,TotalImpuritiesPercent,DissolutionBedaquilinePercent,DissolutionDelamanidPercent,DissolutionPretomanidPercent,MoistureContentPercent,HeavyMetalsPPM BDP-2026-001,BDP,100.5,99.8,100.2,0.4,0.3,0.5,1.5,92.0,94.0,93.5,2.5,5.0 BDQ-2026-001,BDQ,101.0,0.0,0.0,0.5,0.0,0.0,0.6,95.0,0.0,0.0,2.0,4.0
Bedaquiline_BedaquilineDelamanidPretomanidQCBacklog — Documentation
input.csv and *.description.txt. Package folder: Global/API coverage extension.Utility description
Bedaquiline / Bedaquiline-Delamanid-Pretomanid QC Backlog — Anti-TB Drug Quality Control
ℹ️ Utility checks quality of MDR-TB drugs:
• Supported types: BDQ (mono), BDP (combo)
• Assay of each API: 90.0–110.0%
• Impurities of each API: ≤1.0%
• Total Impurities: ≤2.5%
• Dissolution: ≥85% (Q)
• Moisture Content: ≤4.0%
• Heavy Metals: ≤20 ppm
⚠️ CRITICAL: Second-line drugs require strict quality control due to toxicity.
Usage:
Bedaquiline_BedaquilineDelamanidPretomanidQCBacklog.exe → demo mode
Bedaquiline_BedaquilineDelamanidPretomanidQCBacklog.exe input.csv output.json → evaluate data
Input format:
BatchNumber,ProductType,BedaquilineAssayPercent,DelamanidAssayPercent,PretomanidAssayPercent,BedaquilineImpurityPercent,DelamanidImpurityPercent,PretomanidImpurityPercent,TotalImpuritiesPercent,DissolutionBedaquilinePercent,DissolutionDelamanidPercent,DissolutionPretomanidPercent,MoistureContentPercent,HeavyMetalsPPM
Example:
BDP-2026-001,BDP,100.5,99.8,100.2,0.4,0.3,0.5,1.5,92.0,94.0,93.5,2.5,5.0
— WHY IS THIS NEEDED?
Bedaquiline, Delamanid, and Pretomanid are key drugs for treating Multidrug-Resistant Tuberculosis (MDR-TB):
• Bedaquiline — mycobacterial ATP synthase inhibitor
• Delamanid — cell wall synthesis inhibitor
• Pretomanid — nitroimidazole-oxazine prodrug
• BPaL or BDP combination is the standard of care
• Strict control required due to risk of cardiotoxicity (QT) and hepatotoxicity
⚠️ CRITICAL:
• Assay 90.0–110.0% — ensures bactericidal effect
• Impurities ≤1.0% — degradation and synthesis products
• Total Impurities ≤2.5% — overall purity indicator
• Dissolution ≥85% — critical for bioavailability of poorly soluble substances
• Moisture Content ≤4.0% — drug stability
• Heavy Metals ≤20 ppm — safety
Key features:
• Support for both monoproduct (Bedaquiline) and triple combination
• Individual impurity control for each component
• Dissolution testing for all active substances
• Strict moisture control
Critical parameters:
• Bedaquiline Assay: 90.0–110.0%
• Delamanid Assay: 90.0–110.0% (for BDP)
• Pretomanid Assay: 90.0–110.0% (for BDP)
• Impurities (each): ≤1.0%
• Total Impurities: ≤2.5%
• Dissolution (each): ≥85% (Q)
• Moisture Content: ≤4.0%
• Heavy Metals: ≤20 ppm
💡 Usage tips:
1. Assay determined by HPLC with UV detection
2. Drugs have low solubility, requires control of dissolution conditions
3. Store in light-protected place
4. If deviations detected, check raw material stability
⚠️ Note: BDP combination is a complex pharmaceutical form. All three components have different solubility and stability profiles. Quality control is critical to prevent further development of M. tuberculosis resistance.URS & FS — User Requirements and Functional Specification
This document describes the controlled interface and behaviour of Bedaquiline_BedaquilineDelamanidPretomanidQCBacklog for Bedaquiline / Bedaquiline.
Portal packages
Global/API coverage extension, Infectious Diseases QC Suite, LabEx QC laboratory utilities, Lumex QC instrument utilities, Medical Gases / inhaler-adjacent QC Suite, World API/FDC extension
AsthmaCOPDCSV→JSONFDCInhalerMissingAPIQCRespiratoryTBTuberculosisURS & FSP2Domain limits and critical parameters
- • Assay of each API: 90.0–110.0%
- • Impurities of each API: ≤1.0%
- • Total Impurities: ≤2.5%
- • Dissolution: ≥85% (Q)
- • Moisture Content: ≤4.0%
- • Heavy Metals: ≤20 ppm
- ⚠️ CRITICAL: Second-line drugs require strict quality control due to toxicity.
- BatchNumber,ProductType,BedaquilineAssayPercent,DelamanidAssayPercent,PretomanidAssayPercent,BedaquilineImpurityPercent,DelamanidImpurityPercent,PretomanidImpurityPercent,TotalImpuritiesPercent,DissolutionBedaquilinePercent,DissolutionDelamanidPercent,DissolutionPretomanidPercent,MoistureContentPercent,HeavyMetalsPPM
- ⚠️ CRITICAL:
- • Assay 90.0–110.0% — ensures bactericidal effect
- • Impurities ≤1.0% — degradation and synthesis products
- • Total Impurities ≤2.5% — overall purity indicator
- • Dissolution ≥85% — critical for bioavailability of poorly soluble substances
- • Moisture Content ≤4.0% — drug stability
- • Heavy Metals ≤20 ppm — safety
- • Individual impurity control for each component
- • Dissolution testing for all active substances
- Critical parameters:
URS — User Requirements Specification
| ID | Requirement | Criticality | Acceptance criterion |
|---|---|---|---|
| URS-001 | The utility shall accept an input.csv file for Bedaquiline / Bedaquiline with headers defined in the data contract. | High | The file is processed without manual header editing. |
| URS-002 | The utility shall perform deterministic QC evaluation without machine learning and without probabilistic conformance decisions. | High | Identical input data, rule version and configuration produce reproducible results. |
| URS-003 | The utility shall validate mandatory fields, data types, ranges, units and domain plausibility. | High | Schema, conversion and range errors are explicitly reported. |
| URS-004 | The utility shall apply domain limits and rules from the description, approved specification, registration dossier and local SOPs. | High | Each check has PASS/WARNING/FAIL and a clear message. |
| URS-005 | The utility shall generate output.json with machine-readable results, source values, warnings, failures and critical findings. | High | JSON is suitable for LIMS/ELN/MES integration and QA/QC review. |
| URS-006 | The utility shall preserve traceability between batch/sample, input file, applied rules and final status. | High | Output contains identifiers, checked parameters and audit metadata. |
| URS-007 | The documentation shall support IQ/OQ/PQ, CSV/CSA and review by internal QA or inspectors. | Medium | URS, FS, input/output contract and test scenarios are supplied with the utility. |
| URS-008 | The utility shall be used as a QC decision-support tool and not as a substitute for approved specifications and QA/QP release decision. | Medium | Documentation states change control and limit-verification expectations. |
input.csv contract
| # | Field | Type | Sample | Purpose |
|---|---|---|---|---|
| 1 | BatchNumber | string / controlled vocabulary | BDP-2026-001 | Batch or lot identifier used for traceability. |
| 2 | ProductType | string / controlled vocabulary | BDP | Product or dosage-form name under evaluation. |
| 3 | BedaquilineAssayPercent | decimal | 100.5 | Quantitative content/potency; critical release parameter. |
| 4 | DelamanidAssayPercent | decimal | 99.8 | Quantitative content/potency; critical release parameter. |
| 5 | PretomanidAssayPercent | decimal | 100.2 | Quantitative content/potency; critical release parameter. |
| 6 | BedaquilineImpurityPercent | decimal | 0.4 | Impurity/related-substance parameter; purity and degradation control. |
| 7 | DelamanidImpurityPercent | decimal | 0.3 | Impurity/related-substance parameter; purity and degradation control. |
| 8 | PretomanidImpurityPercent | decimal | 0.5 | Impurity/related-substance parameter; purity and degradation control. |
| 9 | TotalImpuritiesPercent | decimal | 1.5 | Impurity/related-substance parameter; purity and degradation control. |
| 10 | DissolutionBedaquilinePercent | decimal | 92.0 | Dissolution/release parameter relevant to bioavailability and batch quality. |
| 11 | DissolutionDelamanidPercent | decimal | 94.0 | Dissolution/release parameter relevant to bioavailability and batch quality. |
| 12 | DissolutionPretomanidPercent | decimal | 93.5 | Dissolution/release parameter relevant to bioavailability and batch quality. |
| 13 | MoistureContentPercent | decimal | 2.5 | Quantitative content/potency; critical release parameter. |
| 14 | HeavyMetalsPPM | decimal | 5.0 | Elemental impurity/metal parameter relevant to safety. |
BatchNumber,ProductType,BedaquilineAssayPercent,DelamanidAssayPercent,PretomanidAssayPercent,BedaquilineImpurityPercent,DelamanidImpurityPercent,PretomanidImpurityPercent,TotalImpuritiesPercent,DissolutionBedaquilinePercent,DissolutionDelamanidPercent,DissolutionPretomanidPercent,MoistureContentPercent,HeavyMetalsPPM BDP-2026-001,BDP,100.5,99.8,100.2,0.4,0.3,0.5,1.5,92.0,94.0,93.5,2.5,5.0 BDQ-2026-001,BDQ,101.0,0.0,0.0,0.5,0.0,0.0,0.6,95.0,0.0,0.0,2.0,4.0
Input validation rules
| ID | Field | Rule | Criticality |
|---|---|---|---|
| VR-001 | BatchNumber | The field shall match an approved dictionary or accepted string representation. | High |
| VR-002 | ProductType | The field shall match an approved dictionary or accepted string representation. | High |
| VR-003 | BedaquilineAssayPercent | The value shall be numeric, non-empty and domain-plausible for the approved specification. | High |
| VR-004 | DelamanidAssayPercent | The value shall be numeric, non-empty and domain-plausible for the approved specification. | High |
| VR-005 | PretomanidAssayPercent | The value shall be numeric, non-empty and domain-plausible for the approved specification. | High |
| VR-006 | BedaquilineImpurityPercent | The value shall be numeric, non-empty and domain-plausible for the approved specification. | High |
| VR-007 | DelamanidImpurityPercent | The value shall be numeric, non-empty and domain-plausible for the approved specification. | High |
| VR-008 | PretomanidImpurityPercent | The value shall be numeric, non-empty and domain-plausible for the approved specification. | High |
| VR-009 | TotalImpuritiesPercent | The value shall be numeric, non-empty and domain-plausible for the approved specification. | High |
| VR-010 | DissolutionBedaquilinePercent | The value shall be numeric, non-empty and domain-plausible for the approved specification. | Medium |
| VR-011 | DissolutionDelamanidPercent | The value shall be numeric, non-empty and domain-plausible for the approved specification. | Medium |
| VR-012 | DissolutionPretomanidPercent | The value shall be numeric, non-empty and domain-plausible for the approved specification. | Medium |
| VR-013 | MoistureContentPercent | The value shall be numeric, non-empty and domain-plausible for the approved specification. | High |
| VR-014 | HeavyMetalsPPM | The value shall be numeric, non-empty and domain-plausible for the approved specification. | Medium |
FS — Functional Specification
| ID | Function | Implementation |
|---|---|---|
| FS-001 | CLI execution | Support execution modes: demo mode without arguments and production mode input.csv output.json. |
| FS-002 | CSV import | Read input.csv in UTF-8/CSV-compatible format and validate header and expected columns. |
| FS-003 | Schema validation | Check mandatory fields, column count, unknown key fields and empty mandatory values. |
| FS-004 | Type conversion | Convert numeric, flag and text values; invalid format is recorded as a row-level error. |
| FS-005 | Domain rule engine | Apply rules for Bedaquiline / Bedaquiline, including critical limits from the description and approved specification. |
| FS-006 | Status aggregation | Produce final status: FAIL for critical failure, WARNING for non-critical deviation, PASS for conformance. |
| FS-007 | JSON export | Write output.json with detailed checks, source values, warnings, failures and critical findings. |
| FS-008 | Audit support | Keep result structure suitable for review, deviation investigation and calculation reproduction. |
| FS-009 | Integration contract | Support the scenario LIMS/ELN/MES → input.csv → utility → output.json → portal/admin review. |
| FS-010 | Fallback mapping | If the combined utility is not deployed, use component checks: bedaquiline-quality-checker, delamanid-quality-checker, pretomanid-quality-checker plus generic Lumex/LabEx checks. |
| FS-011 | Error handling | Return explicit messages for missing file, empty CSV, invalid schema, output write failure and invalid format. |
Example output.json
{
"utilityId": "bedaquiline-bedaquiline-delamanid-pretomanid-qc-backlog",
"utilityFolder": "Bedaquiline_BedaquilineDelamanidPretomanidQCBacklog",
"package": "Global/API coverage extension",
"overallStatus": "PASS|WARNING|FAIL",
"sourceFile": "input.csv",
"processedAtUtc": "2026-07-02T00:00:00Z",
"checks": [
{
"parameter": "BatchNumber",
"value": "BDP-2026-001",
"status": "PASS|WARNING|FAIL",
"message": "Deterministic rule-based check result",
"ruleReference": "FS-RULE-001"
},
{
"parameter": "ProductType",
"value": "BDP",
"status": "PASS|WARNING|FAIL",
"message": "Deterministic rule-based check result",
"ruleReference": "FS-RULE-002"
},
{
"parameter": "BedaquilineAssayPercent",
"value": "100.5",
"status": "PASS|WARNING|FAIL",
"message": "Deterministic rule-based check result",
"ruleReference": "FS-RULE-003"
},
{
"parameter": "DelamanidAssayPercent",
"value": "99.8",
"status": "PASS|WARNING|FAIL",
"message": "Deterministic rule-based check result",
"ruleReference": "FS-RULE-004"
},
{
"parameter": "PretomanidAssayPercent",
"value": "100.2",
"status": "PASS|WARNING|FAIL",
"message": "Deterministic rule-based check result",
"ruleReference": "FS-RULE-005"
},
{
"parameter": "BedaquilineImpurityPercent",
"value": "0.4",
"status": "PASS|WARNING|FAIL",
"message": "Deterministic rule-based check result",
"ruleReference": "FS-RULE-006"
},
{
"parameter": "DelamanidImpurityPercent",
"value": "0.3",
"status": "PASS|WARNING|FAIL",
"message": "Deterministic rule-based check result",
"ruleReference": "FS-RULE-007"
},
{
"parameter": "PretomanidImpurityPercent",
"value": "0.5",
"status": "PASS|WARNING|FAIL",
"message": "Deterministic rule-based check result",
"ruleReference": "FS-RULE-008"
},
{
"parameter": "TotalImpuritiesPercent",
"value": "1.5",
"status": "PASS|WARNING|FAIL",
"message": "Deterministic rule-based check result",
"ruleReference": "FS-RULE-009"
},
{
"parameter": "DissolutionBedaquilinePercent",
"value": "92.0",
"status": "PASS|WARNING|FAIL",
"message": "Deterministic rule-based check result",
"ruleReference": "FS-RULE-010"
},
{
"parameter": "DissolutionDelamanidPercent",
"value": "94.0",
"status": "PASS|WARNING|FAIL",
"message": "Deterministic rule-based check result",
"ruleReference": "FS-RULE-011"
},
{
"parameter": "DissolutionPretomanidPercent",
"value": "93.5",
"status": "PASS|WARNING|FAIL",
"message": "Deterministic rule-based check result",
"ruleReference": "FS-RULE-012"
},
{
"parameter": "MoistureContentPercent",
"value": "2.5",
"status": "PASS|WARNING|FAIL",
"message": "Deterministic rule-based check result",
"ruleReference": "FS-RULE-013"
},
{
"parameter": "HeavyMetalsPPM",
"value": "5.0",
"status": "PASS|WARNING|FAIL",
"message": "Deterministic rule-based check result",
"ruleReference": "FS-RULE-014"
}
],
"criticalFindings": [],
"warnings": [],
"audit": {
"inputHash": "sha256:<calculated at runtime>",
"rulesVersion": "<utility executable version>",
"documentation": "Bedaquiline_BedaquilineDelamanidPretomanidQCBacklog.documentation.html"
}
}
Traceability matrix
| URS | FS | Test | Evidence |
|---|---|---|---|
| URS-001 | FS-001, FS-002 | OQ-001 | Verify execution and import of valid input.csv. |
| URS-002 | FS-005, FS-006 | OQ-004 | Repeat the same dataset and compare output.json. |
| URS-003 | FS-003, FS-004, FS-011 | OQ-002, OQ-003 | Verify missing columns and invalid types. |
| URS-004 | FS-005, FS-006 | OQ-004, PQ-001 | Verify critical deviations on real/boundary data. |
| URS-005 | FS-007, FS-009 | OQ-005 | Verify JSON schema and downstream-system suitability. |
| URS-006 | FS-008 | OQ-006 | Verify identifiers and audit metadata. |
| URS-007 | FS-008, FS-011 | IQ-001, OQ-007 | Verify documentation completeness and control evidence. |
| URS-008 | FS-005, FS-008, FS-010 | PQ-002 | Verify review workflow and no replacement of QA decision. |
IQ/OQ/PQ test scenarios
| ID | Scenario | Expected result |
|---|---|---|
| IQ-001 | Verify executable, input.csv, documentation and checksum availability. | Delivery set is complete; version is recorded. |
| OQ-001 | Valid sample row from input.csv. | PASS or acceptable WARNING according to rules. |
| OQ-002 | Remove a mandatory CSV column. | Schema error or FAIL with missing-column reference. |
| OQ-003 | Place a non-numeric value into a numeric field. | Type-conversion error with row/field reference. |
| OQ-004 | Set a critical parameter outside the limit. | FAIL and critical finding. |
| OQ-005 | Verify output.json structure. | All mandatory sections are present and JSON is valid. |
| OQ-006 | Verify batch/sample traceability. | Input and result identifiers match. |
| OQ-007 | Verify fallback/decomposition for combined APIs. | Component checks are explicitly documented. |
| PQ-001 | Verify 3–5 real user batches/samples. | Result is confirmed by QC/QA review. |
| PQ-002 | Verify deviation workflow and manual QA decision. | Utility supports review but does not replace approved decision. |
QA/QC and change control
- Do not rename columns without updating validator, documentation and test set.
- Retain input.csv, output.json, executable version and checksum.
- Before production use, perform IQ/OQ/PQ or equivalent CSV/CSA verification.
- Critical limits shall be verified against the approved specification, registration dossier and local SOPs.
- For combination products, document whether the specialized FDC utility or fallback component checks were used.
- The utility provides structured QC decision support; final release decision remains with QA/QP and approved procedures.
Included in packages
Global API & Biosimilars QC Suite
Package for high-demand global APIs, generics and biosimilars, including fixed-dose combinations and biological products.
OpenInfectious Diseases QC Suite
QC utility package for infectious diseases: antibacterial, antiviral, antifungal and antiparasitic products, microbiology, sterility, endotoxins, viral safety and vaccine release checks.
OpenMedical Gases QC Suite
Quality-control package for medical and pharmaceutical gases: oxygen, nitrogen, carbon dioxide, nitrous oxide, helium and mixtures.
OpenWorld API Extension QC Suite
Extended package for 130 additional high-demand APIs and biological products prepared as a market-coverage backlog.
Open