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
- Enter receivedPieces, cassettePieceCounts, retainedPieces. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- 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 field | Meaning and units | Accepted input |
|---|---|---|
| receivedPieces | Received Pieces | Required. Safe integer; minimum 0. |
| cassettePieceCounts | Cassette Piece Counts | Required. Array of safe integer; maximum items 256. |
| retainedPieces | Retained Pieces | Required. Safe integer; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| cassetteTotal | Safe numeric sum of recorded cassette counts; unsafe outputs are rejected. | Required. Safe integer. |
| unaccountedPieces | Unaccounted Pieces | Required. Safe integer. |
{
"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
Similar or alternative tools
- Prosthetic Repair Inventory Balance
Calculate a signed prosthetic repair-material inventory balance.
- Oral Surgery Tray Item Count Difference
Compare recorded and expected oral-surgery tray item counts.