TreatmentResponseMonitoringChecker

Treatment Response Monitoring

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

Utility description: Treatment Response Monitoring

Treatment Response Monitoring Checker — Standardized Molecular Treatment Response Assessment

Performs molecular response evaluation per ESMO Precision Medicine Guidelines, NCCN Therapy Monitoring, CAP/CLIA §GEN.48800 and consensus molecular monitoring recommendations: molecular response classification (mCR: sustained clearance ≥2 timepoints; mPR: ≥50% VAF decrease from baseline; mSD: neither mPR nor mPD; mPD: ≥25% VAF increase from nadir OR new confirmed resistance variant; INDETERMINATE: technical limitations), VAF dynamics (baseline→nadir→current percent change, molecular clearance assessment), emerging resistance detection (new variant identification, confirmation requirement, mechanism classification), radiological correlation (RECIST concordance/discordance typing, molecular lead/lag recognition), technical reliability verification (both timepoints QC, sample type consistency, platform consistency), and clinical context integration (symptoms, ECOG, actionable alternatives). Five-tier classification: MOLECULAR_CR / MOLECULAR_PR / MOLECULAR_SD / MOLECULAR_PD / INDETERMINATE.

⚠️ Critical: Molecular response ≠ radiological response; integration of both mandatory. New resistance mutation = mPD EVEN IF target VAF decreasing. VAF comparison across different matrices (tissue vs plasma) INVALID. Single-timepoint clearance ≠ mCR; sustained confirmation required. ≥25% increase from nadir = mPD threshold (analogous to RECIST PD). Discordance requires clinical correlation, not automatic decision. Technical issues at any timepoint = INDETERMINATE assessment. Tool provides STRUCTURED ASSESSMENT only; final therapy continuation/modification/change decisions made by treating oncologist and MDT considering complete clinical picture. Molecular response is one of multiple decision factors.

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

📍 Scope of Application:
     • Oncology clinics: Targeted/immunotherapy response monitoring.
     • Multidisciplinary tumor boards: Structured input for treatment decisions.
     • Clinical trials: Molecular response endpoints.
     • Liquid biopsy: Longitudinal cfDNA VAF monitoring.
     • Reference laboratories: Standardized reports for ordering providers.

💡 Tips:
1. Standardized Timepoints: Establish fixed monitoring intervals (e.g., every 4–8 weeks).
2. Nadir Tracking: Automatically update nadir with each new measurement.
3. Resistance Panel: Use panel covering known resistance mechanisms for current therapy.
4. Discordance Protocol: Develop algorithm for molecular-radiological discordance management.
5. Clearance Confirmation: Require ≥2 consecutive below-LOD timepoints for mCR declaration.

⚠️ Note: This utility provides a STRUCTURED MOLECULAR RESPONSE ASSESSMENT. Final decisions regarding therapy continuation, modification, or change are made by the treating oncologist and multidisciplinary team considering the complete clinical picture. Molecular response is one of multiple decision factors, not a standalone determinant.

input.csv

PatientID,PrimaryTumorType,CurrentTherapy,TherapyLine,TherapyStartDate,DaysOnTherapy,BaselineVariant,BaselineVAF_Percent,BaselineDate,BaselineQC_Passed,NadirVAF_Percent,NadirDate,SampleID_Current,CurrentVAF_Percent,CurrentDate,CurrentQC_Passed,CurrentDepth_X,AssayLOD_Percent,CurrentAboveLOD,DaysSinceBaseline,DaysSinceNadir,NewResistanceVariant_Detected,NewResistanceVariant,NewVariantVAF_Percent,NewVariant_Confirmed,ResistanceMechanism,RECIST_Response,LastImaging_Date,DaysBetween_MolecularAndImaging,MolecularRadiological_Concordant,DiscordanceType,BothTimepoints_TechnicallyReliable,SampleType_Consistent,AssayPlatform_Consistent,ReliabilityConcern,Symptoms_Progressing,ECOG_Status,ActionableAlternative_Available,AlternativeTherapyOptions
PAT-LUNG-042,NSCLC,Osimertinib,First_Line,2026-03-15,85,EGFR:L858R,18.5,2026-03-10,true,0.8,2026-05-20,TX-2026-001,1.2,2026-06-08,true,15000,0.01,true,90,19,false,,0,false,,PR,2026-06-01,7,true,,true,true,true,,false,0,false,
PAT-CRC-055,CRC,Cetuximab+FOLFIRI,Second_Line,2026-01-10,150,KRAS_WT,0,2026-01-05,true,0,2026-01-05,TX-2026-002,8.5,2026-06-09,true,12000,0.01,true,155,155,true,KRAS:G12C,8.5,true,Off_Target_Bypass,PD,2026-06-05,4,true,,true,true,true,,true,1,true,"Sotorasib;Adagrasib;Clinical_Trial"
PAT-BRCA-061,Breast,Palbociclib+Letrozole,First_Line,2026-02-01,128,PIK3CA:H1047R,12.0,2026-01-28,true,0.3,2026-04-15,TX-2026-003,0.5,2026-06-08,true,18000,0.01,true,131,54,false,,0,false,,PD,2026-06-05,3,false,Molecular_PR_Radiological_PD,true,true,true,,false,0,true,"Fulvestrant;Alpelisib"

URS & FS — User Requirements and Functional Specification

This document describes the controlled interface and behaviour of TreatmentResponseMonitoringChecker for Treatment Response Monitoring Checker.

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.
  • Performs molecular response evaluation per ESMO Precision Medicine Guidelines, NCCN Therapy Monitoring, CAP/CLIA §GEN.48800 and consensus molecular monitoring recommendations: molecular response classification (mCR: sustained clearance ≥2 timepoints; mPR: ≥50% VAF decrease from baseline; mSD: neither mPR nor mPD; mPD: ≥25% VAF increase from nadir OR new confirmed resistance variant; INDETERMINATE: technical limitations), VAF dynamics (baseline→nadir→current percent change, molecular clearance as
  • ⚠️ Critical: Molecular response ≠ radiological response; integration of both mandatory. New resistance mutation = mPD EVEN IF target VAF decreasing. VAF comparison across different matrices (tissue vs plasma) INVALID. Single-timepoint clearance ≠ mCR; sustained confirmation required. ≥25% increase from nadir = mPD threshold (analogous to RECIST PD). Discordance requires clinical correlation, not automatic decision. Technical issues at any timepoint = INDETERMINATE assessment. Tool provides STRUC
  • 5. Clearance Confirmation: Require ≥2 consecutive below-LOD timepoints for mCR declaration.

URS — User Requirements Specification

IDRequirementCriticalityAcceptance criterion
URS-001The utility shall accept an input.csv file for Treatment Response Monitoring Checker 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
1PatientIDstring / controlled vocabularyPAT-LUNG-042Controlled input parameter for deterministic QC rules.
2PrimaryTumorTypestring / controlled vocabularyNSCLCControlled input parameter for deterministic QC rules.
3CurrentTherapystring / controlled vocabularyOsimertinibControlled input parameter for deterministic QC rules.
4TherapyLinestring / controlled vocabularyFirst_LineControlled input parameter for deterministic QC rules.
5TherapyStartDatestring / controlled vocabulary2026-03-15Controlled input parameter for deterministic QC rules.
6DaysOnTherapyinteger / decimal85Time parameter for process, incubation, storage or analytical workflow.
7BaselineVariantstring / controlled vocabularyEGFR:L858RControlled input parameter for deterministic QC rules.
8BaselineVAF_Percentdecimal18.5Controlled input parameter for deterministic QC rules.
9BaselineDatestring / controlled vocabulary2026-03-10Controlled input parameter for deterministic QC rules.
10BaselineQC_Passedstring / controlled vocabularytrueControlled input parameter for deterministic QC rules.
11NadirVAF_Percentdecimal0.8Controlled input parameter for deterministic QC rules.
12NadirDatestring / controlled vocabulary2026-05-20Controlled input parameter for deterministic QC rules.
13SampleID_Currentstring / controlled vocabularyTX-2026-001Sample or laboratory specimen identifier.
14CurrentVAF_Percentdecimal1.2Controlled input parameter for deterministic QC rules.
15CurrentDatestring / controlled vocabulary2026-06-08Controlled input parameter for deterministic QC rules.
16CurrentQC_Passedstring / controlled vocabularytrueControlled input parameter for deterministic QC rules.
17CurrentDepth_Xdecimal15000Controlled input parameter for deterministic QC rules.
18AssayLOD_Percentdecimal0.01Controlled input parameter for deterministic QC rules.
19CurrentAboveLODstring / controlled vocabularytrueControlled input parameter for deterministic QC rules.
20DaysSinceBaselineinteger / decimal90Time parameter for process, incubation, storage or analytical workflow.
21DaysSinceNadirinteger / decimal19Time parameter for process, incubation, storage or analytical workflow.
22NewResistanceVariant_Detectedstring / controlled vocabularyfalseControlled input parameter for deterministic QC rules.
23NewResistanceVariantstring / controlled vocabularyControlled input parameter for deterministic QC rules.
24NewVariantVAF_Percentdecimal0Controlled input parameter for deterministic QC rules.
25NewVariant_Confirmedstring / controlled vocabularyfalseControlled input parameter for deterministic QC rules.
26ResistanceMechanismstring / controlled vocabularyControlled input parameter for deterministic QC rules.
27RECIST_Responsestring / controlled vocabularyPRControlled input parameter for deterministic QC rules.
28LastImaging_Datestring / controlled vocabulary2026-06-01Controlled input parameter for deterministic QC rules.
29DaysBetween_MolecularAndImaginginteger / decimal7Time parameter for process, incubation, storage or analytical workflow.
30MolecularRadiological_Concordantstring / controlled vocabularytrueControlled input parameter for deterministic QC rules.
31DiscordanceTypestring / controlled vocabularyControlled input parameter for deterministic QC rules.
32BothTimepoints_TechnicallyReliablestring / controlled vocabularytrueTime parameter for process, incubation, storage or analytical workflow.
33SampleType_Consistentstring / controlled vocabularytrueSample or laboratory specimen identifier.
34AssayPlatform_Consistentstring / controlled vocabularytrueControlled input parameter for deterministic QC rules.
35ReliabilityConcernstring / controlled vocabularyControlled input parameter for deterministic QC rules.
36Symptoms_Progressingstring / controlled vocabularyfalseControlled input parameter for deterministic QC rules.
37ECOG_Statusstring / controlled vocabulary0Result/status used in final classification.
38ActionableAlternative_Availablestring / controlled vocabularyfalseBiological/molecular component controlled as a CQA.
39AlternativeTherapyOptionsstring / controlled vocabularyBiological/molecular component controlled as a CQA.
PatientID,PrimaryTumorType,CurrentTherapy,TherapyLine,TherapyStartDate,DaysOnTherapy,BaselineVariant,BaselineVAF_Percent,BaselineDate,BaselineQC_Passed,NadirVAF_Percent,NadirDate,SampleID_Current,CurrentVAF_Percent,CurrentDate,CurrentQC_Passed,CurrentDepth_X,AssayLOD_Percent,CurrentAboveLOD,DaysSinceBaseline,DaysSinceNadir,NewResistanceVariant_Detected,NewResistanceVariant,NewVariantVAF_Percent,NewVariant_Confirmed,ResistanceMechanism,RECIST_Response,LastImaging_Date,DaysBetween_MolecularAndImaging,MolecularRadiological_Concordant,DiscordanceType,BothTimepoints_TechnicallyReliable,SampleType_Consistent,AssayPlatform_Consistent,ReliabilityConcern,Symptoms_Progressing,ECOG_Status,ActionableAlternative_Available,AlternativeTherapyOptions
PAT-LUNG-042,NSCLC,Osimertinib,First_Line,2026-03-15,85,EGFR:L858R,18.5,2026-03-10,true,0.8,2026-05-20,TX-2026-001,1.2,2026-06-08,true,15000,0.01,true,90,19,false,,0,false,,PR,2026-06-01,7,true,,true,true,true,,false,0,false,
PAT-CRC-055,CRC,Cetuximab+FOLFIRI,Second_Line,2026-01-10,150,KRAS_WT,0,2026-01-05,true,0,2026-01-05,TX-2026-002,8.5,2026-06-09,true,12000,0.01,true,155,155,true,KRAS:G12C,8.5,true,Off_Target_Bypass,PD,2026-06-05,4,true,,true,true,true,,true,1,true,Sotorasib;Adagrasib;Clinical_Trial
PAT-BRCA-061,Breast,Palbociclib+Letrozole,First_Line,2026-02-01,128,PIK3CA:H1047R,12.0,2026-01-28,true,0.3,2026-04-15,TX-2026-003,0.5,2026-06-08,true,18000,0.01,true,131,54,false,,0,false,,PD,2026-06-05,3,false,Molecular_PR_Radiological_PD,true,true,true,,false,0,true,Fulvestrant;Alpelisib

Input validation rules

IDFieldRuleCriticality
VR-001PatientIDThe field shall match an approved dictionary or accepted string representation.High
VR-002PrimaryTumorTypeThe field shall match an approved dictionary or accepted string representation.High
VR-003CurrentTherapyThe field shall match an approved dictionary or accepted string representation.High
VR-004TherapyLineThe field shall match an approved dictionary or accepted string representation.Medium
VR-005TherapyStartDateThe field shall match an approved dictionary or accepted string representation.Medium
VR-006DaysOnTherapyThe field shall match an approved dictionary or accepted string representation.Medium
VR-007BaselineVariantThe field shall match an approved dictionary or accepted string representation.Medium
VR-008BaselineVAF_PercentThe field shall match an approved dictionary or accepted string representation.Medium
VR-009BaselineDateThe field shall match an approved dictionary or accepted string representation.Medium
VR-010BaselineQC_PassedThe field shall match an approved dictionary or accepted string representation.Medium
VR-011NadirVAF_PercentThe field shall match an approved dictionary or accepted string representation.Medium
VR-012NadirDateThe field shall match an approved dictionary or accepted string representation.Medium
VR-013SampleID_CurrentThe field shall match an approved dictionary or accepted string representation.Medium
VR-014CurrentVAF_PercentThe field shall match an approved dictionary or accepted string representation.Medium
VR-015CurrentDateThe field shall match an approved dictionary or accepted string representation.Medium
VR-016CurrentQC_PassedThe field shall match an approved dictionary or accepted string representation.Medium
VR-017CurrentDepth_XThe field shall match an approved dictionary or accepted string representation.Medium
VR-018AssayLOD_PercentThe field shall match an approved dictionary or accepted string representation.Medium
VR-019CurrentAboveLODThe field shall match an approved dictionary or accepted string representation.Medium
VR-020DaysSinceBaselineThe field shall match an approved dictionary or accepted string representation.Medium
VR-021DaysSinceNadirThe field shall match an approved dictionary or accepted string representation.Medium
VR-022NewResistanceVariant_DetectedThe field shall match an approved dictionary or accepted string representation.Medium
VR-023NewResistanceVariantThe field shall match an approved dictionary or accepted string representation.Medium
VR-024NewVariantVAF_PercentThe field shall match an approved dictionary or accepted string representation.Medium
VR-025NewVariant_ConfirmedThe field shall match an approved dictionary or accepted string representation.Medium
VR-026ResistanceMechanismThe field shall match an approved dictionary or accepted string representation.Medium
VR-027RECIST_ResponseThe field shall match an approved dictionary or accepted string representation.Medium
VR-028LastImaging_DateThe field shall match an approved dictionary or accepted string representation.Medium
VR-029DaysBetween_MolecularAndImagingThe field shall match an approved dictionary or accepted string representation.Medium
VR-030MolecularRadiological_ConcordantThe field shall match an approved dictionary or accepted string representation.Medium
VR-031DiscordanceTypeThe field shall match an approved dictionary or accepted string representation.Medium
VR-032BothTimepoints_TechnicallyReliableThe field shall match an approved dictionary or accepted string representation.Medium
VR-033SampleType_ConsistentThe field shall match an approved dictionary or accepted string representation.Medium
VR-034AssayPlatform_ConsistentThe field shall match an approved dictionary or accepted string representation.Medium
VR-035ReliabilityConcernThe field shall match an approved dictionary or accepted string representation.Medium
VR-036Symptoms_ProgressingThe field shall match an approved dictionary or accepted string representation.Medium
VR-037ECOG_StatusThe field shall match an approved dictionary or accepted string representation.Medium
VR-038ActionableAlternative_AvailableThe field shall match an approved dictionary or accepted string representation.Medium
VR-039AlternativeTherapyOptionsThe 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 Treatment Response Monitoring Checker, 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": "treatmentresponsemonitoringchecker",
  "utilityFolder": "TreatmentResponseMonitoringChecker",
  "package": "LiquidBiopsy",
  "overallStatus": "PASS|WARNING|FAIL",
  "sourceFile": "input.csv",
  "processedAtUtc": "2026-06-10T00:00:00Z",
  "checks": [
    {
      "parameter": "PatientID",
      "value": "PAT-LUNG-042",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-001"
    },
    {
      "parameter": "PrimaryTumorType",
      "value": "NSCLC",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-002"
    },
    {
      "parameter": "CurrentTherapy",
      "value": "Osimertinib",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-003"
    },
    {
      "parameter": "TherapyLine",
      "value": "First_Line",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-004"
    },
    {
      "parameter": "TherapyStartDate",
      "value": "2026-03-15",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-005"
    },
    {
      "parameter": "DaysOnTherapy",
      "value": "85",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-006"
    },
    {
      "parameter": "BaselineVariant",
      "value": "EGFR:L858R",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-007"
    },
    {
      "parameter": "BaselineVAF_Percent",
      "value": "18.5",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-008"
    },
    {
      "parameter": "BaselineDate",
      "value": "2026-03-10",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-009"
    },
    {
      "parameter": "BaselineQC_Passed",
      "value": "true",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-010"
    },
    {
      "parameter": "NadirVAF_Percent",
      "value": "0.8",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-011"
    },
    {
      "parameter": "NadirDate",
      "value": "2026-05-20",
      "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": "TreatmentResponseMonitoringChecker.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