Skip to content

Main content

Tissue Cassette Piece Count Balance

Reconcile supplied tissue-piece counts across cassettes and retained material without assigning specimen adequacy.

Loading tool…

Description

Calculate recorded cassette-piece total and an unaccounted tissue-piece balance.

Pathology records connect specimens, blocks, slides, anatomical sites, processing timestamps and report versions. A recorded piece balance differs from verified tissue completeness, while cold-ischemia and fixation intervals describe distinct stages. Metadata and labels do not establish specimen adequacy, diagnosis, safe handling or report validity.

Calculate recorded cassette-piece total and an unaccounted tissue-piece balance.

When to use this tool

Use Tissue Cassette Piece Count Balance when you already have receivedPieces, cassettePieceCounts, retainedPieces and need to calculate recorded cassette-piece total and an unaccounted tissue-piece balance.

How to use the tool and how it works

  1. Enter receivedPieces, cassettePieceCounts, retainedPieces. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read cassetteTotal, unaccountedPieces. Use the output convention below.

Require nonnegative safe whole received/retained counts and each cassette count; sum cassette counts as numbers, then return received-cassetteTotal-retained.1

Input fieldMeaning and unitsAccepted input
receivedPiecesReceived PiecesRequired. Safe integer; minimum 0.
cassettePieceCountsCassette Piece CountsRequired. Array of safe integer; maximum items 256.
retainedPiecesRetained PiecesRequired. Safe integer; minimum 0.
Output fieldInterpretationReturned shape
cassetteTotalSafe numeric sum of recorded cassette counts; unsafe outputs are rejected.Required. Safe integer.
unaccountedPiecesUnaccounted PiecesRequired. Safe integer.
json
{
  "input": {
    "receivedPieces": 10,
    "cassettePieceCounts": [
      3,
      4
    ],
    "retainedPieces": 2
  },
  "output": {
    "cassetteTotal": 7,
    "unaccountedPieces": 1
  }
}

Limitations and assumptions

  • Negative residuals are retained; the tool does not locate tissue or verify identity, completeness or handling. An unsafe cassette total or residual is rejected.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Reconcile original accession, cassette, block and slide records when tracing a specimen. Review the full processing timeline and controlled report history for adequacy and version questions; a local count residual or displayed amendment label does not verify them.

References

  1. Calculation and input contract: pathology/tissue-cassette-piece-count-balance — tool.io

Similar or alternative tools