ExternalResultReconciliationBuilder

External Result Reconciliation Builder

Liquid Biopsy жидкостная биопсия cfDNA ctDNA CTC exosomes NGS qPCR
Open selection

Utility description: External Result Reconciliation Builder

External Result Reconciliation Builder — External Laboratory Data Harmonization

ℹ️  Utility performs automatic reconciliation of results from external sources according to ICH E6(R2), CLSI EP09 and CDISC SDTM:
     • Unit Harmonization: Automatic unit conversion using specified factors.
     • Value Reconciliation: Comparison of converted values with internal reference results.
     • Reference Range Check: Verification of external reference ranges against expected.
     • Timeliness Control: Monitoring of delay between sample collection and result receipt.
     • Unified Output: Generation of standardized JSON for LIMS/EDC/TMF loading.

⚠️  IMPORTANT: 
     • Data from different laboratories often use different units and reference ranges.
     • Without correct conversion, result comparison is impossible and dangerous.
     • Reference range discrepancy may change normal/abnormal classification.

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

Input format:
StudyID,SubjectID,VisitName,Analyte,ExternalLabID,ExternalValue,ExternalUnit,ExpectedUnit,ConversionFactor,InternalReferenceValue,MaxAllowableDiff_Percent,ExternalRefRange_Low,ExternalRefRange_High,ExpectedRefRange_Low,ExpectedRefRange_High,CollectionDate,ReportDate,MaxReportDelay_Days

Example:
  TRIAL-001,SUBJ-001,Week4,ALT,LAB-EU,42.0,U/L,U/L,1.0,43.5,15,10,50,10,50,2026-06-01,2026-06-03,14

📍 Scope of Application (Usage Where):
     • Multi-Center Clinical Trials: Harmonization of decentralized laboratory data.
     • Central Laboratories: Reconciliation of outsourced test results.
     • Regulatory Submissions: Preparation of unified SDTM LB datasets.
     • Meta-Analyses: Pooling data from heterogeneous sources.

— WHY IS THIS NEEDED?
External laboratories operate with their own protocols, calibrators, and reference populations.
Direct pooling of such data without reconciliation leads to systematic errors and false conclusions.
Automated reconciliation ensures transparency of data transformation and identifies issues before inclusion in analysis.

⚠️  CRITICAL:
• Conversion Factor: Must be validated for each unit pair. Factor error = systematic error.
• Value Discrepancy: >MaxAllowableDiff% requires investigation (different methods? sample degradation?).
• Ref Range Mismatch: May require reclassification of LOW/HIGH/NORMAL flags.
• Report Delay: Overdue results may violate protocol visit window.
• Missing Data: Absence of any key field = reconciliation impossible.

Key features:
• Automatic unit conversion
• Percentage value reconciliation with allowable deviation
• Reference range verification
• Timestamp control
• CDISC-ready JSON generation
• Compliance with ICH E6(R2) and CLSI EP09

Critical parameters:
• Unit Conversion: Validated factor applied
• Value Difference: ≤ Max Allowable %
• Reference Ranges: Match expected
• Report Delay: ≤ Max Days
• Data Completeness: All fields present

💡 Usage tips:
1. Conversion Table: Maintain centralized directory of factors for all analytes and unit pairs.
2. Reference Ranges: Request current ranges from each external lab before study start.
3. Duplicates: Send split-samples to external and central labs to establish baseline discrepancy.
4. Automation: Integrate utility into ETL pipeline for automatic incoming data processing.
5. Audit: Retain original and converted values for full traceability.

⚠️ Note: This utility is a data harmonization tool. It does not replace method transfer validation but provides operational reconciliation of routine results during the study.

input.csv

StudyID,SubjectID,VisitName,Analyte,ExternalLabID,ExternalValue,ExternalUnit,ExpectedUnit,ConversionFactor,InternalReferenceValue,MaxAllowableDiff_Percent,ExternalRefRange_Low,ExternalRefRange_High,ExpectedRefRange_Low,ExpectedRefRange_High,CollectionDate,ReportDate,MaxReportDelay_Days
TRIAL-2026-MC,SUBJ-001,Week 4,ALT,LAB-EU-01,42.0,U/L,U/L,1.0,43.5,15.0,10,50,10,50,2026-06-01,2026-06-03,14
TRIAL-2026-MC,SUBJ-002,Baseline,Glucose,LAB-US-03,98.0,mg/dL,mmol/L,0.0555,5.6,10.0,70,100,3.9,5.6,2026-05-28,2026-06-15,14
TRIAL-2026-MC,SUBJ-003,Week 12,Creatinine,LAB-AP-02,0.9,mg/dL,mg/dL,1.0,0.88,15.0,0.6,1.2,0.7,1.3,2026-06-10,2026-06-12,14

URS & FS — User Requirements and Functional Specification

This document describes the controlled interface and behaviour of ExternalResultReconciliationBuilder for External Result Reconciliation Builder.

Domain limits and critical parameters

Key fragments from the source description are shown below. Before production use, limits must be verified against the approved specification, registration dossier and local SOPs.
  • ℹ️ Utility performs automatic reconciliation of results from external sources according to ICH E6(R2), CLSI EP09 and CDISC SDTM:
  • • Value Reconciliation: Comparison of converted values with internal reference results.
  • • Without correct conversion, result comparison is impossible and dangerous.
  • ⚠️ CRITICAL:
  • • Conversion Factor: Must be validated for each unit pair. Factor error = systematic error.
  • • Value Discrepancy: >MaxAllowableDiff% requires investigation (different methods? sample degradation?).
  • • Compliance with ICH E6(R2) and CLSI EP09
  • Critical parameters:
  • • Value Difference: ≤ Max Allowable %
  • • Report Delay: ≤ Max Days

URS — User Requirements Specification

IDRequirementCriticalityAcceptance criterion
URS-001The utility shall accept an input.csv file for External Result Reconciliation Builder with headers defined in the data contract.HighThe file is processed without manual header editing.
URS-002The utility shall perform deterministic QC evaluation without machine learning and without probabilistic conformance decisions.HighIdentical input data, rule version and configuration produce reproducible results.
URS-003The utility shall validate mandatory fields, data types, ranges, units and domain plausibility.HighSchema, conversion and range errors are explicitly reported.
URS-004The utility shall apply domain limits and rules from the description, approved specification, registration dossier and local SOPs.HighEach check has PASS/WARNING/FAIL and a clear message.
URS-005The utility shall generate output.json with machine-readable results, source values, warnings, failures and critical findings.HighJSON is suitable for LIMS/ELN/MES integration and QA/QC review.
URS-006The utility shall preserve traceability between batch/sample, input file, applied rules and final status.HighOutput contains identifiers, checked parameters and audit metadata.
URS-007The documentation shall support IQ/OQ/PQ, CSV/CSA and review by internal QA or inspectors.MediumURS, FS, input/output contract and test scenarios are supplied with the utility.
URS-008The utility shall be used as a QC decision-support tool and not as a substitute for approved specifications and QA/QP release decision.MediumDocumentation states change control and limit-verification expectations.

input.csv contract

#FieldTypeSamplePurpose
1StudyIDstring / controlled vocabularyTRIAL-2026-MCControlled input parameter for deterministic QC rules.
2SubjectIDstring / controlled vocabularySUBJ-001Controlled input parameter for deterministic QC rules.
3VisitNamestring / controlled vocabularyWeek 4Controlled input parameter for deterministic QC rules.
4Analytestring / controlled vocabularyALTControlled input parameter for deterministic QC rules.
5ExternalLabIDstring / controlled vocabularyLAB-EU-01Biological/molecular component controlled as a CQA.
6ExternalValuedecimal42.0Biological/molecular component controlled as a CQA.
7ExternalUnitstring / controlled vocabularyU/LBiological/molecular component controlled as a CQA.
8ExpectedUnitstring / controlled vocabularyU/LControlled input parameter for deterministic QC rules.
9ConversionFactordecimal1.0Controlled input parameter for deterministic QC rules.
10InternalReferenceValuedecimal43.5Biological/molecular component controlled as a CQA.
11MaxAllowableDiff_Percentdecimal15.0Controlled input parameter for deterministic QC rules.
12ExternalRefRange_Lowdecimal10Biological/molecular component controlled as a CQA.
13ExternalRefRange_Highdecimal50Biological/molecular component controlled as a CQA.
14ExpectedRefRange_Lowdecimal10Controlled input parameter for deterministic QC rules.
15ExpectedRefRange_Highdecimal50Controlled input parameter for deterministic QC rules.
16CollectionDatestring / controlled vocabulary2026-06-01Controlled input parameter for deterministic QC rules.
17ReportDatestring / controlled vocabulary2026-06-03Controlled input parameter for deterministic QC rules.
18MaxReportDelay_Daysinteger / decimal14Time parameter for process, incubation, storage or analytical workflow.
StudyID,SubjectID,VisitName,Analyte,ExternalLabID,ExternalValue,ExternalUnit,ExpectedUnit,ConversionFactor,InternalReferenceValue,MaxAllowableDiff_Percent,ExternalRefRange_Low,ExternalRefRange_High,ExpectedRefRange_Low,ExpectedRefRange_High,CollectionDate,ReportDate,MaxReportDelay_Days
TRIAL-2026-MC,SUBJ-001,Week 4,ALT,LAB-EU-01,42.0,U/L,U/L,1.0,43.5,15.0,10,50,10,50,2026-06-01,2026-06-03,14
TRIAL-2026-MC,SUBJ-002,Baseline,Glucose,LAB-US-03,98.0,mg/dL,mmol/L,0.0555,5.6,10.0,70,100,3.9,5.6,2026-05-28,2026-06-15,14
TRIAL-2026-MC,SUBJ-003,Week 12,Creatinine,LAB-AP-02,0.9,mg/dL,mg/dL,1.0,0.88,15.0,0.6,1.2,0.7,1.3,2026-06-10,2026-06-12,14

Input validation rules

IDFieldRuleCriticality
VR-001StudyIDThe field shall match an approved dictionary or accepted string representation.High
VR-002SubjectIDThe field shall match an approved dictionary or accepted string representation.High
VR-003VisitNameThe field shall match an approved dictionary or accepted string representation.High
VR-004AnalyteThe field shall match an approved dictionary or accepted string representation.Medium
VR-005ExternalLabIDThe field shall match an approved dictionary or accepted string representation.Medium
VR-006ExternalValueThe field shall match an approved dictionary or accepted string representation.Medium
VR-007ExternalUnitThe field shall match an approved dictionary or accepted string representation.Medium
VR-008ExpectedUnitThe field shall match an approved dictionary or accepted string representation.Medium
VR-009ConversionFactorThe field shall match an approved dictionary or accepted string representation.Medium
VR-010InternalReferenceValueThe field shall match an approved dictionary or accepted string representation.Medium
VR-011MaxAllowableDiff_PercentThe field shall match an approved dictionary or accepted string representation.Medium
VR-012ExternalRefRange_LowThe field shall match an approved dictionary or accepted string representation.Medium
VR-013ExternalRefRange_HighThe field shall match an approved dictionary or accepted string representation.Medium
VR-014ExpectedRefRange_LowThe field shall match an approved dictionary or accepted string representation.Medium
VR-015ExpectedRefRange_HighThe field shall match an approved dictionary or accepted string representation.Medium
VR-016CollectionDateThe field shall match an approved dictionary or accepted string representation.Medium
VR-017ReportDateThe field shall match an approved dictionary or accepted string representation.Medium
VR-018MaxReportDelay_DaysThe field shall match an approved dictionary or accepted string representation.Medium

FS — Functional Specification

IDFunctionImplementation
FS-001CLI executionSupport execution modes: demo mode without arguments and production mode input.csv output.json.
FS-002CSV importRead input.csv in UTF-8/CSV-compatible format and validate header and expected columns.
FS-003Schema validationCheck mandatory fields, column count, unknown key fields and empty mandatory values.
FS-004Type conversionConvert numeric, flag and text values; invalid format is recorded as a row-level error.
FS-005Domain rule engineApply rules for External Result Reconciliation Builder, including critical limits from the description and approved specification.
FS-006Status aggregationProduce final status: FAIL for critical failure, WARNING for non-critical deviation, PASS for conformance.
FS-007JSON exportWrite output.json with detailed checks, source values, warnings, failures and critical findings.
FS-008Audit supportKeep result structure suitable for review, deviation investigation and calculation reproduction.
FS-009Integration contractSupport the scenario LIMS/ELN/MES → input.csv → utility → output.json → portal/admin review.
FS-010Error handlingReturn explicit messages for missing file, empty CSV, invalid schema, output write failure and invalid format.

Example output.json

{
  "utilityId": "externalresultreconciliationbuilder",
  "utilityFolder": "ExternalResultReconciliationBuilder",
  "package": "LiquidBiopsy",
  "overallStatus": "PASS|WARNING|FAIL",
  "sourceFile": "input.csv",
  "processedAtUtc": "2026-06-10T00:00:00Z",
  "checks": [
    {
      "parameter": "StudyID",
      "value": "TRIAL-2026-MC",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-001"
    },
    {
      "parameter": "SubjectID",
      "value": "SUBJ-001",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-002"
    },
    {
      "parameter": "VisitName",
      "value": "Week 4",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-003"
    },
    {
      "parameter": "Analyte",
      "value": "ALT",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-004"
    },
    {
      "parameter": "ExternalLabID",
      "value": "LAB-EU-01",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-005"
    },
    {
      "parameter": "ExternalValue",
      "value": "42.0",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-006"
    },
    {
      "parameter": "ExternalUnit",
      "value": "U/L",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-007"
    },
    {
      "parameter": "ExpectedUnit",
      "value": "U/L",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-008"
    },
    {
      "parameter": "ConversionFactor",
      "value": "1.0",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-009"
    },
    {
      "parameter": "InternalReferenceValue",
      "value": "43.5",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-010"
    },
    {
      "parameter": "MaxAllowableDiff_Percent",
      "value": "15.0",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-011"
    },
    {
      "parameter": "ExternalRefRange_Low",
      "value": "10",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-012"
    }
  ],
  "criticalFindings": [],
  "warnings": [],
  "audit": {
    "inputHash": "sha256:<calculated at runtime>",
    "rulesVersion": "<utility executable version>",
    "documentation": "ExternalResultReconciliationBuilder.documentation.html"
  }
}

Traceability matrix

URSFSTestEvidence
URS-001FS-001, FS-002OQ-001Verify execution and import of valid input.csv.
URS-002FS-005, FS-006OQ-004Repeat the same dataset and compare output.json.
URS-003FS-003, FS-004, FS-010OQ-002, OQ-003Verify missing columns and invalid types.
URS-004FS-005, FS-006OQ-004, PQ-001Verify critical deviations on real/boundary data.
URS-005FS-007, FS-009OQ-005Verify JSON schema and downstream-system suitability.
URS-006FS-008OQ-006Verify identifiers and audit metadata.
URS-007FS-008, FS-010IQ-001, OQ-007Verify documentation completeness and control evidence.
URS-008FS-005, FS-008PQ-002Verify review workflow and no replacement of QA decision.

IQ/OQ/PQ test scenarios

IDScenarioExpected result
IQ-001Verify executable, input.csv, documentation and checksum availability.Delivery set is complete; version is recorded.
OQ-001Valid sample row from input.csv.PASS or acceptable WARNING according to rules.
OQ-002Remove a mandatory CSV column.Schema error or FAIL with missing-column reference.
OQ-003Place a non-numeric value into a numeric field.Type-conversion error with row/field reference.
OQ-004Set a critical parameter outside the limit.FAIL and critical finding.
OQ-005Verify output.json structure.All mandatory sections are present and JSON is valid.
OQ-006Verify batch/sample traceability.Input and result identifiers match.
PQ-001Verify 3–5 real user batches/samples.Result is confirmed by QC/QA review.
PQ-002Verify 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.
  • The utility provides structured QC decision support; final release decision remains with QA/QP and approved procedures.

Included in packages

Liquid Biopsy QC Suite

QC and pre-analytical control package for liquid biopsy workflows: cfDNA/ctDNA, CTC, EV/exosomes, methylation, NGS/qPCR/ddPCR, sample quality, contamination, sensitivity and reporting checks.

Open