Function: lookup()
lookup(
tagOrKeyword):DictionaryEntry|undefined
Look up a DICOM attribute by tag ("00100010") or keyword ("PatientName").
Hex tag input is normalized to uppercase; keyword input is case-sensitive.
Returns undefined for unknown tags, unknown keywords, malformed input, or
tags from repeating-group families (those resolve via the family entry's
repeatingGroup flag - see DictionaryEntry).
Parameters
tagOrKeyword
string
Returns
DictionaryEntry | undefined
Example
import { Dictionary } from "@cosyte/dicom";
const a = Dictionary.lookup("00100010"); // by tag
const b = Dictionary.lookup("PatientName"); // by keyword (DICT-04)
const c = Dictionary.lookup("not-real"); // undefined (D-10 no-throw)