URS & FS — User Requirements and Functional Specification
This document describes the controlled interface and behaviour of SendoutSampleChainChecker for Sendout Sample Chain 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 sendout traceability verification per CAP/CLIA §GEN.48800, ISO 15189 §7.3.2, CLSI GP44-A2 and Joint Commission NPSG.01.01.01: order documentation (requisition, clinical info, consent, insurance auth), courier handoff (packaging, manifest, tracking number, handoff confirmation), transit monitoring (tracking status, delivery confirmation, transit duration vs max), ref lab receipt (accession confirmation, test match, sample condition, rejection reason), result return verification (performe
- ⚠️ Critical: Sendout samples have HIGHEST identity loss risk due to multiple transfer points. Missing courier handoff confirmation = cannot prove shipment. Tracking exception without delivery = presume LOST. Result with mismatched PatientID/SampleID = potential wrong-patient error. Different test performed than ordered = clinically inapplicable result. SLA breach without notification = service agreement and ethical violation. Every chain gap must be documented and investigated. Tool verifies CHA
- • CAP/ISO accreditation: Chain of custody documentation for external tests.
- ⚠️ Note: This utility verifies CHAIN TRACEABILITY, not result quality. Clinical result verification is performed separately. For RESULT_MISMATCH or LOST_IN_TRANSIT status, all result-related actions must be blocked until the issue is resolved. Decisions regarding sample re-submission are made jointly by the ordering physician and laboratory director.
URS — User Requirements Specification
| ID | Requirement | Criticality | Acceptance criterion |
|---|
| URS-001 | The utility shall accept an input.csv file for Sendout Sample Chain Checker 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 | SampleID | string / controlled vocabulary | SO-2026-001 | Sample or laboratory specimen identifier. |
| 2 | PatientID | string / controlled vocabulary | PAT-LUNG-042 | Controlled input parameter for deterministic QC rules. |
| 3 | OrderingFacility | string / controlled vocabulary | City Hospital | Controlled input parameter for deterministic QC rules. |
| 4 | ReferenceLab | string / controlled vocabulary | National Genetics Lab | Controlled input parameter for deterministic QC rules. |
| 5 | OrderedTest | string / controlled vocabulary | BRCA1_2_Full_Sequencing | Controlled input parameter for deterministic QC rules. |
| 6 | Priority | string / controlled vocabulary | Routine | Controlled input parameter for deterministic QC rules. |
| 7 | RequisitionForm_Complete | string / controlled vocabulary | true | Controlled input parameter for deterministic QC rules. |
| 8 | ClinicalInformation_Provided | string / controlled vocabulary | true | Controlled input parameter for deterministic QC rules. |
| 9 | InformedConsent_Documented | string / controlled vocabulary | true | Controlled input parameter for deterministic QC rules. |
| 10 | InsuranceAuthorization_Obtained | string / controlled vocabulary | true | Controlled input parameter for deterministic QC rules. |
| 11 | OrderDate | string / controlled vocabulary | 2026-05-28 | Controlled input parameter for deterministic QC rules. |
| 12 | AuthorizedBy | string / controlled vocabulary | Dr. Petrov | Controlled input parameter for deterministic QC rules. |
| 13 | SamplePackaged_Correctly | string / controlled vocabulary | true | Sample or laboratory specimen identifier. |
| 14 | ShippingManifest_Generated | string / controlled vocabulary | true | Controlled input parameter for deterministic QC rules. |
| 15 | CourierTrackingNumber | string / controlled vocabulary | TRK-889900 | Controlled input parameter for deterministic QC rules. |
| 16 | HandoffToCourier_DateTime | string / controlled vocabulary | 2026-05-28T10:00:00 | Time parameter for process, incubation, storage or analytical workflow. |
| 17 | HandoffConfirmed_ByCourier | string / controlled vocabulary | true | Controlled input parameter for deterministic QC rules. |
| 18 | HandoffPerson_ID | string / controlled vocabulary | TECH-012 | Controlled input parameter for deterministic QC rules. |
| 19 | TransitTracking_Active | string / controlled vocabulary | true | Controlled input parameter for deterministic QC rules. |
| 20 | LastTrackingStatus | string / controlled vocabulary | Delivered | Result/status used in final classification. |
| 21 | ExpectedDelivery_DateTime | string / controlled vocabulary | 2026-05-29T12:00:00 | Time parameter for process, incubation, storage or analytical workflow. |
| 22 | ActualDelivery_DateTime | string / controlled vocabulary | 2026-05-29T11:30:00 | Time parameter for process, incubation, storage or analytical workflow. |
| 23 | DeliveryConfirmed_ByRefLab | string / controlled vocabulary | true | Controlled input parameter for deterministic QC rules. |
| 24 | TransitDuration_Hours | integer / decimal | 25.5 | Time parameter for process, incubation, storage or analytical workflow. |
| 25 | MaxExpectedTransit_Hours | integer / decimal | 48 | Time parameter for process, incubation, storage or analytical workflow. |
| 26 | RefLab_AccessionNumber | string / controlled vocabulary | NGL-2026-44521 | Controlled input parameter for deterministic QC rules. |
| 27 | RefLab_Accession_Confirmed | string / controlled vocabulary | true | Controlled input parameter for deterministic QC rules. |
| 28 | RefLab_Received_DateTime | string / controlled vocabulary | 2026-05-29T11:30:00 | Time parameter for process, incubation, storage or analytical workflow. |
| 29 | RefLab_TestOrdered_Matches | string / controlled vocabulary | true | Controlled input parameter for deterministic QC rules. |
| 30 | RefLab_SampleCondition_Acceptable | string / controlled vocabulary | true | Sample or laboratory specimen identifier. |
| 31 | RefLab_RejectionReason | string / controlled vocabulary | | Controlled input parameter for deterministic QC rules. |
| 32 | Result_Received | string / controlled vocabulary | true | Result/status used in final classification. |
| 33 | Result_Received_DateTime | string / controlled vocabulary | 2026-06-05T14:00:00 | Time parameter for process, incubation, storage or analytical workflow. |
| 34 | PerformedTest_Name | string / controlled vocabulary | BRCA1_2_Full_Sequencing | Controlled input parameter for deterministic QC rules. |
| 35 | PerformedTest_Matches_Ordered | string / controlled vocabulary | true | Controlled input parameter for deterministic QC rules. |
| 36 | Result_PatientID_Matches | string / controlled vocabulary | true | Result/status used in final classification. |
| 37 | Result_SampleID_Matches | string / controlled vocabulary | true | Sample or laboratory specimen identifier. |
| 38 | Result_Status | string / controlled vocabulary | Final | Result/status used in final classification. |
| 39 | Result_Interpretation_Included | string / controlled vocabulary | true | Result/status used in final classification. |
| 40 | TargetTAT_Hours | string / controlled vocabulary | 168 | Time parameter for process, incubation, storage or analytical workflow. |
| 41 | ActualTAT_Hours | integer / decimal | 196 | Time parameter for process, incubation, storage or analytical workflow. |
| 42 | SLA_Met | string / controlled vocabulary | false | Controlled input parameter for deterministic QC rules. |
| 43 | SLABreach_Notified | string / controlled vocabulary | true | Controlled input parameter for deterministic QC rules. |
| 44 | ResidualSample_ReturnRequested | string / controlled vocabulary | true | Sample or laboratory specimen identifier. |
| 45 | ResidualSample_Returned | string / controlled vocabulary | true | Sample or laboratory specimen identifier. |
| 46 | ResidualReturn_DateTime | string / controlled vocabulary | 2026-06-07T09:00:00 | Impurity/residual component used for specification conformance assessment. |
| 47 | MissingHandoffSteps | decimal | 0 | Controlled input parameter for deterministic QC rules. |
| 48 | AnyIdentityMismatch | string / controlled vocabulary | false | Controlled input parameter for deterministic QC rules. |
| 49 | UnexplainedDelay_Detected | string / controlled vocabulary | false | Controlled input parameter for deterministic QC rules. |
| 50 | GapDescription | string / controlled vocabulary | | Controlled input parameter for deterministic QC rules. |
SampleID,PatientID,OrderingFacility,ReferenceLab,OrderedTest,Priority,RequisitionForm_Complete,ClinicalInformation_Provided,InformedConsent_Documented,InsuranceAuthorization_Obtained,OrderDate,AuthorizedBy,SamplePackaged_Correctly,ShippingManifest_Generated,CourierTrackingNumber,HandoffToCourier_DateTime,HandoffConfirmed_ByCourier,HandoffPerson_ID,TransitTracking_Active,LastTrackingStatus,ExpectedDelivery_DateTime,ActualDelivery_DateTime,DeliveryConfirmed_ByRefLab,TransitDuration_Hours,MaxExpectedTransit_Hours,RefLab_AccessionNumber,RefLab_Accession_Confirmed,RefLab_Received_DateTime,RefLab_TestOrdered_Matches,RefLab_SampleCondition_Acceptable,RefLab_RejectionReason,Result_Received,Result_Received_DateTime,PerformedTest_Name,PerformedTest_Matches_Ordered,Result_PatientID_Matches,Result_SampleID_Matches,Result_Status,Result_Interpretation_Included,TargetTAT_Hours,ActualTAT_Hours,SLA_Met,SLABreach_Notified,ResidualSample_ReturnRequested,ResidualSample_Returned,ResidualReturn_DateTime,MissingHandoffSteps,AnyIdentityMismatch,UnexplainedDelay_Detected,GapDescription
SO-2026-001,PAT-LUNG-042,City Hospital,National Genetics Lab,BRCA1_2_Full_Sequencing,Routine,true,true,true,true,2026-05-28,Dr. Petrov,true,true,TRK-889900,2026-05-28T10:00:00,true,TECH-012,true,Delivered,2026-05-29T12:00:00,2026-05-29T11:30:00,true,25.5,48,NGL-2026-44521,true,2026-05-29T11:30:00,true,true,,true,2026-06-05T14:00:00,BRCA1_2_Full_Sequencing,true,true,true,Final,true,168,196,false,true,true,true,2026-06-07T09:00:00,0,false,false,
SO-2026-002,PAT-CRC-055,Regional Oncology,Molecular Diagnostics Inc,MSI_Stability_Panel,STAT,true,true,true,true,2026-06-01,Dr. Sidorova,true,true,TRK-112233,2026-06-01T08:00:00,true,TECH-008,true,Exception,2026-06-02T10:00:00,,false,0,24,,false,,,false,false,,false,,,,,,,72,0,false,false,false,false,,3,false,true,No delivery confirmation; tracking exception; ref lab has no record
SO-2026-003,PAT-BRCA-061,Women's Health Center,Hereditary Cancer Lab,PALB2_Single_Gene,Routine,true,true,true,true,2026-05-20,Dr. Ivanova,true,true,TRK-445566,2026-05-20T14:00:00,true,TECH-015,true,Delivered,2026-05-21T16:00:00,2026-05-21T15:45:00,true,25.75,48,HCL-2026-78901,true,2026-05-21T15:45:00,false,true,,true,2026-06-03T10:00:00,BRCA1_2_Panel,false,true,true,Final,true,168,332,false,true,false,false,,0,false,false,Performed test does not match ordered test
Input validation rules
| ID | Field | Rule | Criticality |
|---|
| VR-001 | SampleID | The field shall match an approved dictionary or accepted string representation. | High |
| VR-002 | PatientID | The field shall match an approved dictionary or accepted string representation. | High |
| VR-003 | OrderingFacility | The field shall match an approved dictionary or accepted string representation. | High |
| VR-004 | ReferenceLab | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-005 | OrderedTest | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-006 | Priority | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-007 | RequisitionForm_Complete | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-008 | ClinicalInformation_Provided | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-009 | InformedConsent_Documented | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-010 | InsuranceAuthorization_Obtained | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-011 | OrderDate | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-012 | AuthorizedBy | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-013 | SamplePackaged_Correctly | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-014 | ShippingManifest_Generated | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-015 | CourierTrackingNumber | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-016 | HandoffToCourier_DateTime | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-017 | HandoffConfirmed_ByCourier | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-018 | HandoffPerson_ID | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-019 | TransitTracking_Active | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-020 | LastTrackingStatus | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-021 | ExpectedDelivery_DateTime | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-022 | ActualDelivery_DateTime | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-023 | DeliveryConfirmed_ByRefLab | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-024 | TransitDuration_Hours | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-025 | MaxExpectedTransit_Hours | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-026 | RefLab_AccessionNumber | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-027 | RefLab_Accession_Confirmed | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-028 | RefLab_Received_DateTime | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-029 | RefLab_TestOrdered_Matches | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-030 | RefLab_SampleCondition_Acceptable | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-031 | RefLab_RejectionReason | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-032 | Result_Received | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-033 | Result_Received_DateTime | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-034 | PerformedTest_Name | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-035 | PerformedTest_Matches_Ordered | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-036 | Result_PatientID_Matches | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-037 | Result_SampleID_Matches | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-038 | Result_Status | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-039 | Result_Interpretation_Included | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-040 | TargetTAT_Hours | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-041 | ActualTAT_Hours | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-042 | SLA_Met | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-043 | SLABreach_Notified | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-044 | ResidualSample_ReturnRequested | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-045 | ResidualSample_Returned | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-046 | ResidualReturn_DateTime | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-047 | MissingHandoffSteps | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-048 | AnyIdentityMismatch | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-049 | UnexplainedDelay_Detected | The field shall match an approved dictionary or accepted string representation. | Medium |
| VR-050 | GapDescription | The field shall match an approved dictionary or accepted string representation. | 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 Sendout Sample Chain Checker, 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 | Error handling | Return explicit messages for missing file, empty CSV, invalid schema, output write failure and invalid format. |
Example output.json
{
"utilityId": "sendoutsamplechainchecker",
"utilityFolder": "SendoutSampleChainChecker",
"package": "LiquidBiopsy",
"overallStatus": "PASS|WARNING|FAIL",
"sourceFile": "input.csv",
"processedAtUtc": "2026-06-10T00:00:00Z",
"checks": [
{
"parameter": "SampleID",
"value": "SO-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": "OrderingFacility",
"value": "City Hospital",
"status": "PASS|WARNING|FAIL",
"message": "Deterministic rule-based check result",
"ruleReference": "FS-RULE-003"
},
{
"parameter": "ReferenceLab",
"value": "National Genetics Lab",
"status": "PASS|WARNING|FAIL",
"message": "Deterministic rule-based check result",
"ruleReference": "FS-RULE-004"
},
{
"parameter": "OrderedTest",
"value": "BRCA1_2_Full_Sequencing",
"status": "PASS|WARNING|FAIL",
"message": "Deterministic rule-based check result",
"ruleReference": "FS-RULE-005"
},
{
"parameter": "Priority",
"value": "Routine",
"status": "PASS|WARNING|FAIL",
"message": "Deterministic rule-based check result",
"ruleReference": "FS-RULE-006"
},
{
"parameter": "RequisitionForm_Complete",
"value": "true",
"status": "PASS|WARNING|FAIL",
"message": "Deterministic rule-based check result",
"ruleReference": "FS-RULE-007"
},
{
"parameter": "ClinicalInformation_Provided",
"value": "true",
"status": "PASS|WARNING|FAIL",
"message": "Deterministic rule-based check result",
"ruleReference": "FS-RULE-008"
},
{
"parameter": "InformedConsent_Documented",
"value": "true",
"status": "PASS|WARNING|FAIL",
"message": "Deterministic rule-based check result",
"ruleReference": "FS-RULE-009"
},
{
"parameter": "InsuranceAuthorization_Obtained",
"value": "true",
"status": "PASS|WARNING|FAIL",
"message": "Deterministic rule-based check result",
"ruleReference": "FS-RULE-010"
},
{
"parameter": "OrderDate",
"value": "2026-05-28",
"status": "PASS|WARNING|FAIL",
"message": "Deterministic rule-based check result",
"ruleReference": "FS-RULE-011"
},
{
"parameter": "AuthorizedBy",
"value": "Dr. Petrov",
"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": "SendoutSampleChainChecker.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-010 | 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-010 | IQ-001, OQ-007 | Verify documentation completeness and control evidence. |
| URS-008 | FS-005, FS-008 | 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. |
| 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.
- The utility provides structured QC decision support; final release decision remains with QA/QP and approved procedures.