SampleIdentityConsistencyChecker

Sample Identity Consistency

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

Utility description: Sample Identity Consistency

Sample Identity Consistency Checker — Multi-Level Sample Identity Verification

Performs comprehensive identity verification per CAP/CLIA §GEN.48800, ISO 15189 §7.3.2, CLSI GP44-A2 and Joint Commission NPSG.01.01.01: demographics consistency (name, DOB, sex, MRN match between requisition and LIMS), barcode consistency across all workflow stages (tube → extraction → library → flow cell), genetic fingerprint (SNP concordance score ≥0.95 vs reference/prior sample), genetic sex determination vs declared sex, chain of custody completeness, metadata plausibility (collection date, age, duplicate accessions, unexpected sample type), and prior genotype concordance. Four-tier classification: IDENTITY_VERIFIED / DISCREPANCY_DETECTED / SUSPECTED_SWAP / INSUFFICIENT_DATA.

⚠️ Critical: Identification errors cause ~10% of serious lab incidents. ANY discrepancy = HOLD RELEASE pending investigation. SUSPECTED_SWAP = IMMEDIATE HALT + quarantine + director notification. Genetic fingerprint is most reliable verification method; use when possible. Manual barcode transcription increases error risk by order of magnitude. For germline tests, comparison with prior results mandatory when history available. Sex mismatch may be biological (DSD, transplant); not always error. Tool performs VERIFICATION based on available data; absence of discrepancies ≠ guaranteed correct identification. Combination of methods (demographics + barcodes + genetics + CoC) provides maximum reliability. Release decisions upon DISCREPANCY made by laboratory director after investigation.

input.csv

SampleID,PatientID,AssayName,Req_PatientName,Req_DateOfBirth,Req_Sex,Req_MRN,Req_OrderingProvider,LIMS_PatientName,LIMS_DateOfBirth,LIMS_Sex,LIMS_MRN,LIMS_AccessionNumber,Barcode_SampleTube,Barcode_ExtractionPlate,Barcode_LibraryPlate,Barcode_SequencingFlowCell,Barcode_AllMatch,Barcode_Readable_AllStages,GeneticFingerprint_Performed,GeneticFingerprint_MatchScore,MinGeneticFingerprint_MatchScore,GeneticSex_Determined,GeneticSex_MatchesDeclared,SNPs_Checked,SNPs_Concordant,ChainOfCustody_Complete,CustodyTransfers_Count,AllTransfers_Documented,CustodyGap_Description,CollectionDate_Plausible,AgeAtCollection_Plausible,SexConsistent_AcrossSources,DuplicateAccession_Detected,UnexpectedSampleType,PriorResults_Available,PriorGenotype_Concordant,PriorDiscordance_Details
ID-2026-001,PAT-LUNG-042,NSCLC_CGP,Ivanov Ivan,1965-03-15,M,MRN-12345,Dr. Petrov,Ivanov Ivan,1965-03-15,M,MRN-12345,ACC-2026-0891,BC-TUBE-0891,BC-EXT-0891,BC-LIB-0891,BC-FC-0891,true,true,true,0.998,0.95,XY,true,24,24,true,4,true,,true,true,true,false,false,true,true,
ID-2026-002,PAT-CRC-055,CRC_Panel,Smirnova Anna,1978-07-22,F,MRN-67890,Dr. Sidorova,Smirnova Anna,1978-07-22,F,MRN-67890,ACC-2026-0892,BC-TUBE-0892,BC-EXT-0892,BC-LIB-0893,BC-FC-0892,false,true,true,0.97,0.95,XY,false,24,23,true,4,true,,true,true,false,false,false,false,,
ID-2026-003,PAT-BRCA-061,BRCA1_2_Germline,Kozlova Maria,1985-11-03,F,MRN-11111,Dr. Ivanova,Kozlova Maria,1985-11-03,F,MRN-11111,ACC-2026-0893,BC-TUBE-0893,BC-EXT-0893,BC-LIB-0893,BC-FC-0893,true,true,true,0.72,0.95,XX,true,24,17,false,5,false,Missing transfer record between extraction and library prep,true,true,true,false,false,true,false,3/24 SNPs discordant with prior germline test from 2025-08

URS & FS — User Requirements and Functional Specification

This document describes the controlled interface and behaviour of SampleIdentityConsistencyChecker for Sample Identity Consistency 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 comprehensive identity verification per CAP/CLIA §GEN.48800, ISO 15189 §7.3.2, CLSI GP44-A2 and Joint Commission NPSG.01.01.01: demographics consistency (name, DOB, sex, MRN match between requisition and LIMS), barcode consistency across all workflow stages (tube → extraction → library → flow cell), genetic fingerprint (SNP concordance score ≥0.95 vs reference/prior sample), genetic sex determination vs declared sex, chain of custody completeness, metadata plausibility (collection date,
  • ⚠️ Critical: Identification errors cause ~10% of serious lab incidents. ANY discrepancy = HOLD RELEASE pending investigation. SUSPECTED_SWAP = IMMEDIATE HALT + quarantine + director notification. Genetic fingerprint is most reliable verification method; use when possible. Manual barcode transcription increases error risk by order of magnitude. For germline tests, comparison with prior results mandatory when history available. Sex mismatch may be biological (DSD, transplant); not always error. To

URS — User Requirements Specification

IDRequirementCriticalityAcceptance criterion
URS-001The utility shall accept an input.csv file for Sample Identity Consistency 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
1SampleIDstring / controlled vocabularyID-2026-001Sample or laboratory specimen identifier.
2PatientIDstring / controlled vocabularyPAT-LUNG-042Controlled input parameter for deterministic QC rules.
3AssayNamestring / controlled vocabularyNSCLC_CGPControlled input parameter for deterministic QC rules.
4Req_PatientNamestring / controlled vocabularyIvanov IvanControlled input parameter for deterministic QC rules.
5Req_DateOfBirthstring / controlled vocabulary1965-03-15Controlled input parameter for deterministic QC rules.
6Req_Sexstring / controlled vocabularyMControlled input parameter for deterministic QC rules.
7Req_MRNstring / controlled vocabularyMRN-12345Controlled input parameter for deterministic QC rules.
8Req_OrderingProviderstring / controlled vocabularyDr. PetrovControlled input parameter for deterministic QC rules.
9LIMS_PatientNamestring / controlled vocabularyIvanov IvanControlled input parameter for deterministic QC rules.
10LIMS_DateOfBirthstring / controlled vocabulary1965-03-15Controlled input parameter for deterministic QC rules.
11LIMS_Sexstring / controlled vocabularyMControlled input parameter for deterministic QC rules.
12LIMS_MRNstring / controlled vocabularyMRN-12345Controlled input parameter for deterministic QC rules.
13LIMS_AccessionNumberstring / controlled vocabularyACC-2026-0891Controlled input parameter for deterministic QC rules.
14Barcode_SampleTubestring / controlled vocabularyBC-TUBE-0891Sample or laboratory specimen identifier.
15Barcode_ExtractionPlatestring / controlled vocabularyBC-EXT-0891Controlled input parameter for deterministic QC rules.
16Barcode_LibraryPlatestring / controlled vocabularyBC-LIB-0891Controlled input parameter for deterministic QC rules.
17Barcode_SequencingFlowCellstring / controlled vocabularyBC-FC-0891Controlled input parameter for deterministic QC rules.
18Barcode_AllMatchstring / controlled vocabularytrueControlled input parameter for deterministic QC rules.
19Barcode_Readable_AllStagesstring / controlled vocabularytrueControlled input parameter for deterministic QC rules.
20GeneticFingerprint_Performedstring / controlled vocabularytrueControlled input parameter for deterministic QC rules.
21GeneticFingerprint_MatchScoredecimal0.998Controlled input parameter for deterministic QC rules.
22MinGeneticFingerprint_MatchScoredecimal0.95Controlled input parameter for deterministic QC rules.
23GeneticSex_Determinedstring / controlled vocabularyXYControlled input parameter for deterministic QC rules.
24GeneticSex_MatchesDeclaredstring / controlled vocabularytrueControlled input parameter for deterministic QC rules.
25SNPs_Checkeddecimal24Controlled input parameter for deterministic QC rules.
26SNPs_Concordantdecimal24Controlled input parameter for deterministic QC rules.
27ChainOfCustody_Completestring / controlled vocabularytrueControlled input parameter for deterministic QC rules.
28CustodyTransfers_Countinteger / decimal4Count parameter used for microbiological, particulate or cellular control.
29AllTransfers_Documentedstring / controlled vocabularytrueControlled input parameter for deterministic QC rules.
30CustodyGap_Descriptionstring / controlled vocabularyControlled input parameter for deterministic QC rules.
31CollectionDate_Plausiblestring / controlled vocabularytrueControlled input parameter for deterministic QC rules.
32AgeAtCollection_Plausiblestring / controlled vocabularytrueControlled input parameter for deterministic QC rules.
33SexConsistent_AcrossSourcesstring / controlled vocabularytrueControlled input parameter for deterministic QC rules.
34DuplicateAccession_Detectedstring / controlled vocabularyfalseControlled input parameter for deterministic QC rules.
35UnexpectedSampleTypestring / controlled vocabularyfalseSample or laboratory specimen identifier.
36PriorResults_Availablestring / controlled vocabularytrueResult/status used in final classification.
37PriorGenotype_Concordantstring / controlled vocabularytrueControlled input parameter for deterministic QC rules.
38PriorDiscordance_Detailsstring / controlled vocabularyControlled input parameter for deterministic QC rules.
SampleID,PatientID,AssayName,Req_PatientName,Req_DateOfBirth,Req_Sex,Req_MRN,Req_OrderingProvider,LIMS_PatientName,LIMS_DateOfBirth,LIMS_Sex,LIMS_MRN,LIMS_AccessionNumber,Barcode_SampleTube,Barcode_ExtractionPlate,Barcode_LibraryPlate,Barcode_SequencingFlowCell,Barcode_AllMatch,Barcode_Readable_AllStages,GeneticFingerprint_Performed,GeneticFingerprint_MatchScore,MinGeneticFingerprint_MatchScore,GeneticSex_Determined,GeneticSex_MatchesDeclared,SNPs_Checked,SNPs_Concordant,ChainOfCustody_Complete,CustodyTransfers_Count,AllTransfers_Documented,CustodyGap_Description,CollectionDate_Plausible,AgeAtCollection_Plausible,SexConsistent_AcrossSources,DuplicateAccession_Detected,UnexpectedSampleType,PriorResults_Available,PriorGenotype_Concordant,PriorDiscordance_Details
ID-2026-001,PAT-LUNG-042,NSCLC_CGP,Ivanov Ivan,1965-03-15,M,MRN-12345,Dr. Petrov,Ivanov Ivan,1965-03-15,M,MRN-12345,ACC-2026-0891,BC-TUBE-0891,BC-EXT-0891,BC-LIB-0891,BC-FC-0891,true,true,true,0.998,0.95,XY,true,24,24,true,4,true,,true,true,true,false,false,true,true,
ID-2026-002,PAT-CRC-055,CRC_Panel,Smirnova Anna,1978-07-22,F,MRN-67890,Dr. Sidorova,Smirnova Anna,1978-07-22,F,MRN-67890,ACC-2026-0892,BC-TUBE-0892,BC-EXT-0892,BC-LIB-0893,BC-FC-0892,false,true,true,0.97,0.95,XY,false,24,23,true,4,true,,true,true,false,false,false,false,,
ID-2026-003,PAT-BRCA-061,BRCA1_2_Germline,Kozlova Maria,1985-11-03,F,MRN-11111,Dr. Ivanova,Kozlova Maria,1985-11-03,F,MRN-11111,ACC-2026-0893,BC-TUBE-0893,BC-EXT-0893,BC-LIB-0893,BC-FC-0893,true,true,true,0.72,0.95,XX,true,24,17,false,5,false,Missing transfer record between extraction and library prep,true,true,true,false,false,true,false,3/24 SNPs discordant with prior germline test from 2025-08

Input validation rules

IDFieldRuleCriticality
VR-001SampleIDThe field shall match an approved dictionary or accepted string representation.High
VR-002PatientIDThe field shall match an approved dictionary or accepted string representation.High
VR-003AssayNameThe field shall match an approved dictionary or accepted string representation.High
VR-004Req_PatientNameThe field shall match an approved dictionary or accepted string representation.Medium
VR-005Req_DateOfBirthThe field shall match an approved dictionary or accepted string representation.Medium
VR-006Req_SexThe field shall match an approved dictionary or accepted string representation.Medium
VR-007Req_MRNThe field shall match an approved dictionary or accepted string representation.Medium
VR-008Req_OrderingProviderThe field shall match an approved dictionary or accepted string representation.Medium
VR-009LIMS_PatientNameThe field shall match an approved dictionary or accepted string representation.Medium
VR-010LIMS_DateOfBirthThe field shall match an approved dictionary or accepted string representation.Medium
VR-011LIMS_SexThe field shall match an approved dictionary or accepted string representation.Medium
VR-012LIMS_MRNThe field shall match an approved dictionary or accepted string representation.Medium
VR-013LIMS_AccessionNumberThe field shall match an approved dictionary or accepted string representation.Medium
VR-014Barcode_SampleTubeThe field shall match an approved dictionary or accepted string representation.Medium
VR-015Barcode_ExtractionPlateThe field shall match an approved dictionary or accepted string representation.Medium
VR-016Barcode_LibraryPlateThe field shall match an approved dictionary or accepted string representation.Medium
VR-017Barcode_SequencingFlowCellThe field shall match an approved dictionary or accepted string representation.Medium
VR-018Barcode_AllMatchThe field shall match an approved dictionary or accepted string representation.Medium
VR-019Barcode_Readable_AllStagesThe field shall match an approved dictionary or accepted string representation.Medium
VR-020GeneticFingerprint_PerformedThe field shall match an approved dictionary or accepted string representation.Medium
VR-021GeneticFingerprint_MatchScoreThe field shall match an approved dictionary or accepted string representation.Medium
VR-022MinGeneticFingerprint_MatchScoreThe field shall match an approved dictionary or accepted string representation.Medium
VR-023GeneticSex_DeterminedThe field shall match an approved dictionary or accepted string representation.Medium
VR-024GeneticSex_MatchesDeclaredThe field shall match an approved dictionary or accepted string representation.Medium
VR-025SNPs_CheckedThe field shall match an approved dictionary or accepted string representation.Medium
VR-026SNPs_ConcordantThe field shall match an approved dictionary or accepted string representation.Medium
VR-027ChainOfCustody_CompleteThe field shall match an approved dictionary or accepted string representation.Medium
VR-028CustodyTransfers_CountThe field shall match an approved dictionary or accepted string representation.Medium
VR-029AllTransfers_DocumentedThe field shall match an approved dictionary or accepted string representation.Medium
VR-030CustodyGap_DescriptionThe field shall match an approved dictionary or accepted string representation.Medium
VR-031CollectionDate_PlausibleThe field shall match an approved dictionary or accepted string representation.Medium
VR-032AgeAtCollection_PlausibleThe field shall match an approved dictionary or accepted string representation.Medium
VR-033SexConsistent_AcrossSourcesThe field shall match an approved dictionary or accepted string representation.Medium
VR-034DuplicateAccession_DetectedThe field shall match an approved dictionary or accepted string representation.Medium
VR-035UnexpectedSampleTypeThe field shall match an approved dictionary or accepted string representation.Medium
VR-036PriorResults_AvailableThe field shall match an approved dictionary or accepted string representation.Medium
VR-037PriorGenotype_ConcordantThe field shall match an approved dictionary or accepted string representation.Medium
VR-038PriorDiscordance_DetailsThe 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 Sample Identity Consistency 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": "sampleidentityconsistencychecker",
  "utilityFolder": "SampleIdentityConsistencyChecker",
  "package": "LiquidBiopsy",
  "overallStatus": "PASS|WARNING|FAIL",
  "sourceFile": "input.csv",
  "processedAtUtc": "2026-06-10T00:00:00Z",
  "checks": [
    {
      "parameter": "SampleID",
      "value": "ID-2026-001",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-001"
    },
    {
      "parameter": "PatientID",
      "value": "PAT-LUNG-042",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-002"
    },
    {
      "parameter": "AssayName",
      "value": "NSCLC_CGP",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-003"
    },
    {
      "parameter": "Req_PatientName",
      "value": "Ivanov Ivan",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-004"
    },
    {
      "parameter": "Req_DateOfBirth",
      "value": "1965-03-15",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-005"
    },
    {
      "parameter": "Req_Sex",
      "value": "M",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-006"
    },
    {
      "parameter": "Req_MRN",
      "value": "MRN-12345",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-007"
    },
    {
      "parameter": "Req_OrderingProvider",
      "value": "Dr. Petrov",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-008"
    },
    {
      "parameter": "LIMS_PatientName",
      "value": "Ivanov Ivan",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-009"
    },
    {
      "parameter": "LIMS_DateOfBirth",
      "value": "1965-03-15",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-010"
    },
    {
      "parameter": "LIMS_Sex",
      "value": "M",
      "status": "PASS|WARNING|FAIL",
      "message": "Deterministic rule-based check result",
      "ruleReference": "FS-RULE-011"
    },
    {
      "parameter": "LIMS_MRN",
      "value": "MRN-12345",
      "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": "SampleIdentityConsistencyChecker.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

Biopharmaceuticals Extended QC Suite

Extended QC utility coverage for mAbs, biosimilars, proteins, insulins, vaccines, mRNA/LNP, HCP, sterile release, microbiology, water, cleanroom and stability workflows.

Open

Immunology QC Suite

QC utility package for immunology: monoclonal antibodies, biosimilars, immunomodulators, immunosuppressants, ELISA/SPR, HCP, protein characterization, sterility and pyrogen/release checks.

Open

Infectious Diseases QC Suite

QC utility package for infectious diseases: antibacterial, antiviral, antifungal and antiparasitic products, microbiology, sterility, endotoxins, viral safety and vaccine release checks.

Open

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