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?
readonlyoptionalextraElements?: readonlyFileMetaRawElement[]
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?
readonlyoptionalfileMetaInformationVersion?:Buffer<ArrayBufferLike>
implementationClassUID?
readonlyoptionalimplementationClassUID?:string
implementationVersionName?
readonlyoptionalimplementationVersionName?:string
mediaStorageSOPClassUID?
readonlyoptionalmediaStorageSOPClassUID?:string
mediaStorageSOPInstanceUID?
readonlyoptionalmediaStorageSOPInstanceUID?:string
sourceApplicationEntityTitle?
readonlyoptionalsourceApplicationEntityTitle?:string
transferSyntaxUID
readonlytransferSyntaxUID:string