Cr51RBCSampleTimingChecker

Cr-51 RBC Sample Timing Checker

instrumental radiopharmaceuticals nuclear-medicine cr-51 red-blood-cells blood-volume cell-survival sample-timing
Open selection

Cr-51 RBC Sample Timing Checker

Cr-51 RBC Sample Timing Checker

ℹ️  Utility performs:
    • Check of actual serial-sample timing against the approved red-cell survival protocol.
    • input.csv structure and numeric-value validation
    • LabWare-compatible output.json generation
    • Deterministic PASS / FAIL / ERROR status

⚠️  CRITICAL: Any nonconformity shall be reviewed by qualified personnel before the result is used in an operational workflow.

Usage:
  Cr51RBCSampleTimingChecker.exe                            → demonstration mode (console output)
  Cr51RBCSampleTimingChecker.exe input.csv output.json      → evaluate user data

Input format:
BatchNumber,InitialSampleHours,Day7SampleDay,Day14SampleDay,Day21SampleDay,AllowedInitialDeviationHours,AllowedDayDeviation

Example:
  CR51-TIME-001,1,7,14,21,1,1

— WHY IS THIS NEEDED?
Check of actual serial-sample timing against the approved red-cell survival protocol.
The utility belongs to “RPH Cr-51 Labelled Red Blood Cells QC Suite” and can be used as a standalone check or as part of a wider nuclear-medicine workflow.

⚠️  CRITICAL:
• InitialSampleTiming: <= allowed deviation from 1 h
• Day7Timing: <= allowed deviation
• Day14Timing: <= allowed deviation
• Day21Timing: <= allowed deviation

Key features:
• One .NET 6 executable and one Program.cs
• Complete input.csv example with passing, boundary and failing records
• LabWare-compatible JSON: Header, Samples, Results, Status, StatusCode, ErrorMessage, Description and DescriptionEN
• CultureInfo.InvariantCulture for numeric values
• Explicit result for every parameter and empty ErrorMessage for PASS

Critical parameters:
• InitialSampleTiming: <= allowed deviation from 1 h
• Day7Timing: <= allowed deviation
• Day14Timing: <= allowed deviation
• Day21Timing: <= allowed deviation

💡 Usage tips:
1. Before operational use, reconcile limits with the approved specification, product information, local SOP and equipment configuration.
2. Retain the source input.csv together with output.json and the executable version.
3. For clinical calculations, use only verified source data and an approved protocol profile.
4. FAIL requires review and is not an automatic medical decision.
5. Limit changes require change control and renewed verification.

⚠️ Note: The utility implements a deterministic CSV-to-LabWare-compatible-JSON workflow and does not replace an approved method, specification, SOP or medical judgement.

The reference limits in this version are a conservative FUZKK project starting profile. They shall be confirmed by the process owner before OQ/PQ and production use.

input.csv

BatchNumber,InitialSampleHours,Day7SampleDay,Day14SampleDay,Day21SampleDay,AllowedInitialDeviationHours,AllowedDayDeviation
CR51-TIME-001,1,7,14,21,1,1
CR51-TIME-002,2,8,15,22,1,1
CR51-TIME-003,8,12,21,35,1,1

URS & FS — user requirements and functional specification

URS — User Requirements Specification

  • The utility shall run without arguments in demonstration mode and with two arguments: input.csv output.json.
  • Mandatory CSV header: BatchNumber,InitialSampleHours,Day7SampleDay,Day14SampleDay,Day21SampleDay,AllowedInitialDeviationHours,AllowedDayDeviation.
  • Numeric values shall be parsed with CultureInfo.InvariantCulture.
  • Each row shall create a separate Samples object in LabWare-compatible JSON.
  • Status shall be PASS, FAIL or ERROR; ErrorMessage shall be empty for PASS.
  • The utility shall apply workflow-specific rules and return a result for every parameter.
  • Repeated execution with the same data and version shall produce an identical result.
  • An invalid header, column count or value type shall produce ERROR, never PASS.

Complete input.csv example

BatchNumber,InitialSampleHours,Day7SampleDay,Day14SampleDay,Day21SampleDay,AllowedInitialDeviationHours,AllowedDayDeviation
CR51-TIME-001,1,7,14,21,1,1
CR51-TIME-002,2,8,15,22,1,1
CR51-TIME-003,8,12,21,35,1,1

FS — Functional Specification

  1. Main() selects demonstration or file mode.
  2. LoadData() validates the exact header and converts each row into Record.
  3. Evaluate() returns a named tuple containing batch number, product, parameters, overall result and RU/EN recommendations.
  4. AddCheck() creates Results items with measured value, unit, limit and IsWithinSpec.
  5. RunWithFiles() builds Header/Samples and serializes the result with Newtonsoft.Json.
  6. A global exception becomes a SampleResult with ERROR status and code -1.

Implemented rules

  • InitialSampleTiming: <= allowed deviation from 1 h
  • Day7Timing: <= allowed deviation
  • Day14Timing: <= allowed deviation
  • Day21Timing: <= allowed deviation

Complete input.csv example

BatchNumber,InitialSampleHours,Day7SampleDay,Day14SampleDay,Day21SampleDay,AllowedInitialDeviationHours,AllowedDayDeviation
CR51-TIME-001,1,7,14,21,1,1
CR51-TIME-002,2,8,15,22,1,1
CR51-TIME-003,8,12,21,35,1,1

Minimum OQ scenarios

  • PASS for the first row.
  • Boundary-record processing for the second row.
  • FAIL for the third row.
  • ERROR for an altered header.
  • ERROR for a non-numeric value.
  • Identical JSON result on repeated execution.

Included in packages

PetRad QC Suite

A specialised utility package for radiopharmaceutical quality control: PET, SPECT, therapeutic radionuclides, generators and decay calculations.

Open

PetRad3: expanded PET/SPECT and radiopharmaceutical QC package

A curated suite for PET/SPECT radiopharmaceuticals, generator and cyclotron radionuclides, labelled compounds, radiochemical purity, breakthrough, sterility and endotoxin control.

Open

Radiology QC Suite

QC package for radiology and diagnostic imaging: radiopharmaceuticals, PET/SPECT, contrast media, iodinated and gadolinium products, plus particle, sterility and endotoxin checks.

Open

RPH Cr-51 Labelled Red Blood Cells QC Suite

Red-cell mass and blood-volume calculations, Cr-51 labelling efficiency, elution correction, recovery-curve analysis and sample-timing control.

Open

RPH isotope family: labelled cells and blood

In-111 and Cr-51 for labelled cells, blood volume, RBC/WBC and survival workflows.

Open

RPH organ/system: blood, cells and marrow

WBC/RBC/platelet labelling, blood volume, survival, blood-pool and cellular release workflows.

Open

RPH use case: labelled cells and blood-pool workflows

Leukocytes, red blood cells, platelets and autologous cell workflows: labeling efficiency, viability, free activity, recovery and release before reinjection.

Open

RPH: combined radiopharmaceutical QC package

RPH combines PetRad, PetRad2 and PetRad3 into one umbrella package for PET/SPECT, therapeutic radionuclides, generators, labelled compounds, decay calculations, sterility, endotoxins and radiochemical/radionuclidic purity.

Open