Function: readCode()
readCode(
item):CodedConcept
Read the coded triplet off a code-item dataset (e.g. one item of a Code
Sequence). Every part is independently fail-safe; schemeUid is the
resolved OID for the designator when standard, else undefined.
Parameters
item
Returns
Example
import { parseDicom, readCode } from "@cosyte/dicom";
const units = parseDicom(buf).image.realWorldValueMaps?.[0]?.unitsCode;
// units?.codeValue / units?.codingSchemeDesignator / units?.codeMeaning