Description
Compare a recorded patient-position code with a supplied allowed list.
Medical-image metadata separates patient position, laterality, pixel spacing, slice spacing, padding and frame timing. Row and column spacing order matters, and slice spacing is distinct from slice thickness. A rectangular voxel or constant-frame model uses declared geometry; it does not inspect images, confirm a patient or establish a clinical finding.
Compare a recorded patient-position code with a supplied allowed list.
When to use this tool
Use Radiology Patient Position Code when you already have imageId, recordedCode, allowedCodes and need to compare a recorded patient-position code with a supplied allowed list.
How to use the tool and how it works
- Enter imageId, recordedCode, allowedCodes. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read label, listed. Inspect listed before interpreting the associated values.
Require imageId/code nonempty; format image [code] and return literal list membership as listed.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| imageId | Image Id | Required. Text; minimum UTF-16 length 1; maximum UTF-16 length 8192. |
| recordedCode | Recorded Code | Required. Text; minimum UTF-16 length 1; maximum UTF-16 length 8192. |
| allowedCodes | Allowed Codes | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| label | Label | Required. Text; maximum UTF-16 length 8192. |
| listed | Listed | Required. Boolean. |
{
"input": {
"imageId": "IMG17",
"recordedCode": "HFS",
"allowedCodes": [
"HFS",
"FFS"
]
},
"output": {
"label": "IMG17 [HFS]",
"listed": true
}
} Limitations and assumptions
- The list is caller supplied; no image, patient position, DICOM dictionary or clinical correctness is verified.
- 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.
Alternative or Complementary methods
Inspect the original DICOM attributes and complete image geometry when validating an image record. Use the relevant attribute and value-representation checks for format compliance, and actual per-frame timing when constant spacing or frame time is inadequate.
References
Similar or alternative tools
- Radiology Laterality Tag
Record an explicit radiology laterality code and source.
- DICOM SOP Instance Reference Token
Record supplied DICOM study, series, and instance UID strings.