Skip to main content
Version: v0.0.3

Interface: FileMeta

The Part-10 File Meta Information group, projected as a typed view over (0002,xxxx) elements parsed during the File Meta pre-pass.

Only transferSyntaxUID is required because it is the dispatch input for the four v1 transfer-syntax parsers; everything else is optional because real-world clinical files routinely omit one or more Type-1 elements. Phase 7's validate() adds opinion-bearing checks for those missing elements.

Example

import { parseDicom } from "@cosyte/dicom";
const ds = parseDicom(buf);
if (ds.fileMeta !== undefined) {
const ts = ds.fileMeta.transferSyntaxUID; // always present when fileMeta is defined
}

Properties

extraElements?

readonly optional extraElements?: readonly FileMetaRawElement[]

Any (0002,xxxx) elements the source carried that the typed fields above do not model, preserved in tag order so a round-trip re-emits the File Meta group byte-for-byte. Omitted when the group held only modeled elements.


fileMetaInformationVersion?

readonly optional fileMetaInformationVersion?: Buffer<ArrayBufferLike>


implementationClassUID?

readonly optional implementationClassUID?: string


implementationVersionName?

readonly optional implementationVersionName?: string


mediaStorageSOPClassUID?

readonly optional mediaStorageSOPClassUID?: string


mediaStorageSOPInstanceUID?

readonly optional mediaStorageSOPInstanceUID?: string


sourceApplicationEntityTitle?

readonly optional sourceApplicationEntityTitle?: string


transferSyntaxUID

readonly transferSyntaxUID: string