-
Notifications
You must be signed in to change notification settings - Fork 231
Description
A documentation on the dataset object returned by parseDicom would be great. The types provided in index.d.ts are not very precises on the content of most sub object of this object. Most notably the Element Object is really hard to understand as all possible configurations are in a single interface.
interface Element
export interface Element {
tag: string;
vr?: string;
length: number;
dataOffset: number;
items?: Element[];
dataSet?: DataSet;
parser?: ByteArrayParser;
hadUndefinedLength?: boolean;
encapsulatedPixelData?: boolean;
basicOffsetTable?: number[];
fragments?: Fragment[];
}I have wasted a lot of time trying to understand which combinaison of property happens when (which I have found 3 : simple elements, sequences and elements with encapsulated pixel data) and some misunderstanding leaded to hard to track down bugs.
Having a documentation on the data returned by parseDicom with a break down of the meaning of each property would be appreciated, an update to the above quoted interface to have it broken down into the actual interfaces that exists at run time would be nice too (you can't have both items and basicOffsetTable for example).
I can draft documents for both if needed.