@fnndsc/menu 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dicom.d.ts +323 -0
- package/dist/dicom.js +106 -0
- package/dist/dicom.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/messages.d.ts +8 -8
- package/dist/pacs.d.ts +30 -12
- package/dist/pacs.js +2 -0
- package/dist/pacs.js.map +1 -1
- package/package.json +1 -1
package/dist/dicom.d.ts
ADDED
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The DICOM vocabulary: tags and series as typed envelope payloads.
|
|
3
|
+
*
|
|
4
|
+
* `dcm tags` answers with every element of a file, or with what a folder's
|
|
5
|
+
* files share against what changes across them; `dcm series` answers with
|
|
6
|
+
* what a folder is as a series. A terminal renders both as text; a
|
|
7
|
+
* graphical surface reads these models — a tags listing that follows a
|
|
8
|
+
* scroll, an image pane that knows its modality before its first pixel.
|
|
9
|
+
* The kernel flags identifying tags and never strips them: redaction is
|
|
10
|
+
* the surface's choice, and the flag is how it chooses.
|
|
11
|
+
*
|
|
12
|
+
* @module
|
|
13
|
+
*/
|
|
14
|
+
import { z } from 'zod';
|
|
15
|
+
/** Where a tag sits in a grouped listing, in the order a listing shows the groups. */
|
|
16
|
+
export declare const DICOM_TAG_GROUPS: readonly ["patient", "study", "series", "image", "equipment", "meta", "private", "other"];
|
|
17
|
+
export declare const dicomTagGroupSchema: z.ZodCatch<z.ZodEnum<["patient", "study", "series", "image", "equipment", "meta", "private", "other"]>>;
|
|
18
|
+
/** One element of a DICOM dataset. Sequences carry their items, each a dataset of its own. */
|
|
19
|
+
export interface DicomTag {
|
|
20
|
+
tag: string;
|
|
21
|
+
name: string;
|
|
22
|
+
vr: string;
|
|
23
|
+
value: string;
|
|
24
|
+
group: (typeof DICOM_TAG_GROUPS)[number];
|
|
25
|
+
phi: boolean;
|
|
26
|
+
decoded?: string;
|
|
27
|
+
items?: DicomTag[][];
|
|
28
|
+
}
|
|
29
|
+
export declare const dicomTagSchema: z.ZodType<DicomTag, z.ZodTypeDef, unknown>;
|
|
30
|
+
/** A tag whose value changes across a folder's files. */
|
|
31
|
+
export declare const dicomVaryingTagSchema: z.ZodObject<{
|
|
32
|
+
tag: z.ZodString;
|
|
33
|
+
name: z.ZodString;
|
|
34
|
+
vr: z.ZodString;
|
|
35
|
+
group: z.ZodCatch<z.ZodEnum<["patient", "study", "series", "image", "equipment", "meta", "private", "other"]>>;
|
|
36
|
+
phi: z.ZodBoolean;
|
|
37
|
+
/** Distinct values across the files that carry the tag. */
|
|
38
|
+
distinct: z.ZodNumber;
|
|
39
|
+
/** The value in the first file, in stack order. */
|
|
40
|
+
first: z.ZodString;
|
|
41
|
+
/** The value in the last file, in stack order. */
|
|
42
|
+
last: z.ZodString;
|
|
43
|
+
/** Every file's value in stack order; a file without the tag carries null. */
|
|
44
|
+
values: z.ZodArray<z.ZodObject<{
|
|
45
|
+
path: z.ZodString;
|
|
46
|
+
value: z.ZodNullable<z.ZodString>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
value: string | null;
|
|
49
|
+
path: string;
|
|
50
|
+
}, {
|
|
51
|
+
value: string | null;
|
|
52
|
+
path: string;
|
|
53
|
+
}>, "many">;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
values: {
|
|
56
|
+
value: string | null;
|
|
57
|
+
path: string;
|
|
58
|
+
}[];
|
|
59
|
+
name: string;
|
|
60
|
+
tag: string;
|
|
61
|
+
vr: string;
|
|
62
|
+
group: "other" | "patient" | "study" | "series" | "image" | "equipment" | "meta" | "private";
|
|
63
|
+
phi: boolean;
|
|
64
|
+
distinct: number;
|
|
65
|
+
first: string;
|
|
66
|
+
last: string;
|
|
67
|
+
}, {
|
|
68
|
+
values: {
|
|
69
|
+
value: string | null;
|
|
70
|
+
path: string;
|
|
71
|
+
}[];
|
|
72
|
+
name: string;
|
|
73
|
+
tag: string;
|
|
74
|
+
vr: string;
|
|
75
|
+
phi: boolean;
|
|
76
|
+
distinct: number;
|
|
77
|
+
first: string;
|
|
78
|
+
last: string;
|
|
79
|
+
group?: unknown;
|
|
80
|
+
}>;
|
|
81
|
+
/**
|
|
82
|
+
* The `dicom.tags` model. For a file, `constant` holds every element and
|
|
83
|
+
* `varying` is empty. For a folder, `constant` is what every file shares
|
|
84
|
+
* and `varying` what changes, with `read` files out of `of` in the folder
|
|
85
|
+
* when the folder was sampled.
|
|
86
|
+
*/
|
|
87
|
+
export declare const dicomTagsModelSchema: z.ZodObject<{
|
|
88
|
+
path: z.ZodString;
|
|
89
|
+
subject: z.ZodEnum<["file", "folder"]>;
|
|
90
|
+
/** Files read, and files in the folder; equal unless sampled. */
|
|
91
|
+
read: z.ZodNumber;
|
|
92
|
+
of: z.ZodNumber;
|
|
93
|
+
/** Files that could not be read or parsed. */
|
|
94
|
+
refused: z.ZodArray<z.ZodString, "many">;
|
|
95
|
+
constant: z.ZodArray<z.ZodType<DicomTag, z.ZodTypeDef, unknown>, "many">;
|
|
96
|
+
varying: z.ZodArray<z.ZodObject<{
|
|
97
|
+
tag: z.ZodString;
|
|
98
|
+
name: z.ZodString;
|
|
99
|
+
vr: z.ZodString;
|
|
100
|
+
group: z.ZodCatch<z.ZodEnum<["patient", "study", "series", "image", "equipment", "meta", "private", "other"]>>;
|
|
101
|
+
phi: z.ZodBoolean;
|
|
102
|
+
/** Distinct values across the files that carry the tag. */
|
|
103
|
+
distinct: z.ZodNumber;
|
|
104
|
+
/** The value in the first file, in stack order. */
|
|
105
|
+
first: z.ZodString;
|
|
106
|
+
/** The value in the last file, in stack order. */
|
|
107
|
+
last: z.ZodString;
|
|
108
|
+
/** Every file's value in stack order; a file without the tag carries null. */
|
|
109
|
+
values: z.ZodArray<z.ZodObject<{
|
|
110
|
+
path: z.ZodString;
|
|
111
|
+
value: z.ZodNullable<z.ZodString>;
|
|
112
|
+
}, "strip", z.ZodTypeAny, {
|
|
113
|
+
value: string | null;
|
|
114
|
+
path: string;
|
|
115
|
+
}, {
|
|
116
|
+
value: string | null;
|
|
117
|
+
path: string;
|
|
118
|
+
}>, "many">;
|
|
119
|
+
}, "strip", z.ZodTypeAny, {
|
|
120
|
+
values: {
|
|
121
|
+
value: string | null;
|
|
122
|
+
path: string;
|
|
123
|
+
}[];
|
|
124
|
+
name: string;
|
|
125
|
+
tag: string;
|
|
126
|
+
vr: string;
|
|
127
|
+
group: "other" | "patient" | "study" | "series" | "image" | "equipment" | "meta" | "private";
|
|
128
|
+
phi: boolean;
|
|
129
|
+
distinct: number;
|
|
130
|
+
first: string;
|
|
131
|
+
last: string;
|
|
132
|
+
}, {
|
|
133
|
+
values: {
|
|
134
|
+
value: string | null;
|
|
135
|
+
path: string;
|
|
136
|
+
}[];
|
|
137
|
+
name: string;
|
|
138
|
+
tag: string;
|
|
139
|
+
vr: string;
|
|
140
|
+
phi: boolean;
|
|
141
|
+
distinct: number;
|
|
142
|
+
first: string;
|
|
143
|
+
last: string;
|
|
144
|
+
group?: unknown;
|
|
145
|
+
}>, "many">;
|
|
146
|
+
}, "strip", z.ZodTypeAny, {
|
|
147
|
+
path: string;
|
|
148
|
+
subject: "file" | "folder";
|
|
149
|
+
read: number;
|
|
150
|
+
of: number;
|
|
151
|
+
refused: string[];
|
|
152
|
+
constant: DicomTag[];
|
|
153
|
+
varying: {
|
|
154
|
+
values: {
|
|
155
|
+
value: string | null;
|
|
156
|
+
path: string;
|
|
157
|
+
}[];
|
|
158
|
+
name: string;
|
|
159
|
+
tag: string;
|
|
160
|
+
vr: string;
|
|
161
|
+
group: "other" | "patient" | "study" | "series" | "image" | "equipment" | "meta" | "private";
|
|
162
|
+
phi: boolean;
|
|
163
|
+
distinct: number;
|
|
164
|
+
first: string;
|
|
165
|
+
last: string;
|
|
166
|
+
}[];
|
|
167
|
+
}, {
|
|
168
|
+
path: string;
|
|
169
|
+
subject: "file" | "folder";
|
|
170
|
+
read: number;
|
|
171
|
+
of: number;
|
|
172
|
+
refused: string[];
|
|
173
|
+
constant: unknown[];
|
|
174
|
+
varying: {
|
|
175
|
+
values: {
|
|
176
|
+
value: string | null;
|
|
177
|
+
path: string;
|
|
178
|
+
}[];
|
|
179
|
+
name: string;
|
|
180
|
+
tag: string;
|
|
181
|
+
vr: string;
|
|
182
|
+
phi: boolean;
|
|
183
|
+
distinct: number;
|
|
184
|
+
first: string;
|
|
185
|
+
last: string;
|
|
186
|
+
group?: unknown;
|
|
187
|
+
}[];
|
|
188
|
+
}>;
|
|
189
|
+
/** The voxel grid, from one header. */
|
|
190
|
+
export declare const dicomGeometrySchema: z.ZodObject<{
|
|
191
|
+
rows: z.ZodNumber;
|
|
192
|
+
columns: z.ZodNumber;
|
|
193
|
+
pixelSpacing: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
194
|
+
sliceThickness: z.ZodOptional<z.ZodNumber>;
|
|
195
|
+
spacingBetweenSlices: z.ZodOptional<z.ZodNumber>;
|
|
196
|
+
}, "strip", z.ZodTypeAny, {
|
|
197
|
+
rows: number;
|
|
198
|
+
columns: number;
|
|
199
|
+
pixelSpacing?: [number, number] | undefined;
|
|
200
|
+
sliceThickness?: number | undefined;
|
|
201
|
+
spacingBetweenSlices?: number | undefined;
|
|
202
|
+
}, {
|
|
203
|
+
rows: number;
|
|
204
|
+
columns: number;
|
|
205
|
+
pixelSpacing?: [number, number] | undefined;
|
|
206
|
+
sliceThickness?: number | undefined;
|
|
207
|
+
spacingBetweenSlices?: number | undefined;
|
|
208
|
+
}>;
|
|
209
|
+
/**
|
|
210
|
+
* The `dicom.series` model: one folder as a series. Order names how the
|
|
211
|
+
* files were stacked: `filename` when each starts with its InstanceNumber
|
|
212
|
+
* (oxidicom's naming), `unknown` when they were merely sorted by name.
|
|
213
|
+
*/
|
|
214
|
+
export declare const dicomSeriesModelSchema: z.ZodObject<{
|
|
215
|
+
path: z.ZodString;
|
|
216
|
+
seriesInstanceUID: z.ZodOptional<z.ZodString>;
|
|
217
|
+
studyInstanceUID: z.ZodOptional<z.ZodString>;
|
|
218
|
+
modality: z.ZodString;
|
|
219
|
+
seriesDescription: z.ZodString;
|
|
220
|
+
seriesNumber: z.ZodOptional<z.ZodNumber>;
|
|
221
|
+
/** DICOM files in the folder. */
|
|
222
|
+
instances: z.ZodNumber;
|
|
223
|
+
/** Frames in the header read; one for a classic single-frame file. */
|
|
224
|
+
frames: z.ZodNumber;
|
|
225
|
+
order: z.ZodEnum<["filename", "unknown"]>;
|
|
226
|
+
geometry: z.ZodOptional<z.ZodObject<{
|
|
227
|
+
rows: z.ZodNumber;
|
|
228
|
+
columns: z.ZodNumber;
|
|
229
|
+
pixelSpacing: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
230
|
+
sliceThickness: z.ZodOptional<z.ZodNumber>;
|
|
231
|
+
spacingBetweenSlices: z.ZodOptional<z.ZodNumber>;
|
|
232
|
+
}, "strip", z.ZodTypeAny, {
|
|
233
|
+
rows: number;
|
|
234
|
+
columns: number;
|
|
235
|
+
pixelSpacing?: [number, number] | undefined;
|
|
236
|
+
sliceThickness?: number | undefined;
|
|
237
|
+
spacingBetweenSlices?: number | undefined;
|
|
238
|
+
}, {
|
|
239
|
+
rows: number;
|
|
240
|
+
columns: number;
|
|
241
|
+
pixelSpacing?: [number, number] | undefined;
|
|
242
|
+
sliceThickness?: number | undefined;
|
|
243
|
+
spacingBetweenSlices?: number | undefined;
|
|
244
|
+
}>>;
|
|
245
|
+
transferSyntax: z.ZodOptional<z.ZodObject<{
|
|
246
|
+
uid: z.ZodString;
|
|
247
|
+
name: z.ZodOptional<z.ZodString>;
|
|
248
|
+
}, "strip", z.ZodTypeAny, {
|
|
249
|
+
uid: string;
|
|
250
|
+
name?: string | undefined;
|
|
251
|
+
}, {
|
|
252
|
+
uid: string;
|
|
253
|
+
name?: string | undefined;
|
|
254
|
+
}>>;
|
|
255
|
+
/** Sum of the folder's DICOM file sizes. */
|
|
256
|
+
bytes: z.ZodNumber;
|
|
257
|
+
/** The file whose header answered, first in stack order. */
|
|
258
|
+
header: z.ZodString;
|
|
259
|
+
/** Files in stack order. */
|
|
260
|
+
files: z.ZodArray<z.ZodString, "many">;
|
|
261
|
+
/** Annotation files found for the series' UID. */
|
|
262
|
+
annotations: z.ZodArray<z.ZodString, "many">;
|
|
263
|
+
}, "strip", z.ZodTypeAny, {
|
|
264
|
+
path: string;
|
|
265
|
+
modality: string;
|
|
266
|
+
seriesDescription: string;
|
|
267
|
+
instances: number;
|
|
268
|
+
frames: number;
|
|
269
|
+
order: "unknown" | "filename";
|
|
270
|
+
bytes: number;
|
|
271
|
+
header: string;
|
|
272
|
+
files: string[];
|
|
273
|
+
annotations: string[];
|
|
274
|
+
seriesInstanceUID?: string | undefined;
|
|
275
|
+
studyInstanceUID?: string | undefined;
|
|
276
|
+
seriesNumber?: number | undefined;
|
|
277
|
+
geometry?: {
|
|
278
|
+
rows: number;
|
|
279
|
+
columns: number;
|
|
280
|
+
pixelSpacing?: [number, number] | undefined;
|
|
281
|
+
sliceThickness?: number | undefined;
|
|
282
|
+
spacingBetweenSlices?: number | undefined;
|
|
283
|
+
} | undefined;
|
|
284
|
+
transferSyntax?: {
|
|
285
|
+
uid: string;
|
|
286
|
+
name?: string | undefined;
|
|
287
|
+
} | undefined;
|
|
288
|
+
}, {
|
|
289
|
+
path: string;
|
|
290
|
+
modality: string;
|
|
291
|
+
seriesDescription: string;
|
|
292
|
+
instances: number;
|
|
293
|
+
frames: number;
|
|
294
|
+
order: "unknown" | "filename";
|
|
295
|
+
bytes: number;
|
|
296
|
+
header: string;
|
|
297
|
+
files: string[];
|
|
298
|
+
annotations: string[];
|
|
299
|
+
seriesInstanceUID?: string | undefined;
|
|
300
|
+
studyInstanceUID?: string | undefined;
|
|
301
|
+
seriesNumber?: number | undefined;
|
|
302
|
+
geometry?: {
|
|
303
|
+
rows: number;
|
|
304
|
+
columns: number;
|
|
305
|
+
pixelSpacing?: [number, number] | undefined;
|
|
306
|
+
sliceThickness?: number | undefined;
|
|
307
|
+
spacingBetweenSlices?: number | undefined;
|
|
308
|
+
} | undefined;
|
|
309
|
+
transferSyntax?: {
|
|
310
|
+
uid: string;
|
|
311
|
+
name?: string | undefined;
|
|
312
|
+
} | undefined;
|
|
313
|
+
}>;
|
|
314
|
+
export type DicomTagGroup = z.infer<typeof dicomTagGroupSchema>;
|
|
315
|
+
export type DicomVaryingTag = z.infer<typeof dicomVaryingTagSchema>;
|
|
316
|
+
export type DicomTagsModel = z.infer<typeof dicomTagsModelSchema>;
|
|
317
|
+
export type DicomGeometry = z.infer<typeof dicomGeometrySchema>;
|
|
318
|
+
export type DicomSeriesModel = z.infer<typeof dicomSeriesModelSchema>;
|
|
319
|
+
/** The DICOM models' envelope kinds. */
|
|
320
|
+
export declare const DICOM_MODEL_KINDS: {
|
|
321
|
+
readonly tags: "dicom.tags";
|
|
322
|
+
readonly series: "dicom.series";
|
|
323
|
+
};
|
package/dist/dicom.js
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The DICOM vocabulary: tags and series as typed envelope payloads.
|
|
3
|
+
*
|
|
4
|
+
* `dcm tags` answers with every element of a file, or with what a folder's
|
|
5
|
+
* files share against what changes across them; `dcm series` answers with
|
|
6
|
+
* what a folder is as a series. A terminal renders both as text; a
|
|
7
|
+
* graphical surface reads these models — a tags listing that follows a
|
|
8
|
+
* scroll, an image pane that knows its modality before its first pixel.
|
|
9
|
+
* The kernel flags identifying tags and never strips them: redaction is
|
|
10
|
+
* the surface's choice, and the flag is how it chooses.
|
|
11
|
+
*
|
|
12
|
+
* @module
|
|
13
|
+
*/
|
|
14
|
+
import { z } from 'zod';
|
|
15
|
+
/** Where a tag sits in a grouped listing, in the order a listing shows the groups. */
|
|
16
|
+
export const DICOM_TAG_GROUPS = ['patient', 'study', 'series', 'image', 'equipment', 'meta', 'private', 'other'];
|
|
17
|
+
export const dicomTagGroupSchema = z.enum(DICOM_TAG_GROUPS).catch('other');
|
|
18
|
+
export const dicomTagSchema = z.lazy(() => z.object({
|
|
19
|
+
/** `(gggg,eeee)`, upper-case hex. */
|
|
20
|
+
tag: z.string(),
|
|
21
|
+
name: z.string(),
|
|
22
|
+
vr: z.string(),
|
|
23
|
+
/** The value in text; bulk data reads `<N bytes>`; a sequence reads `N items`. */
|
|
24
|
+
value: z.string(),
|
|
25
|
+
group: dicomTagGroupSchema,
|
|
26
|
+
/** True when the tag identifies a person or an institution. */
|
|
27
|
+
phi: z.boolean(),
|
|
28
|
+
/** Words for a coded value, when the kernel knows them. */
|
|
29
|
+
decoded: z.string().optional(),
|
|
30
|
+
items: z.array(z.array(dicomTagSchema)).optional(),
|
|
31
|
+
}));
|
|
32
|
+
/** A tag whose value changes across a folder's files. */
|
|
33
|
+
export const dicomVaryingTagSchema = z.object({
|
|
34
|
+
tag: z.string(),
|
|
35
|
+
name: z.string(),
|
|
36
|
+
vr: z.string(),
|
|
37
|
+
group: dicomTagGroupSchema,
|
|
38
|
+
phi: z.boolean(),
|
|
39
|
+
/** Distinct values across the files that carry the tag. */
|
|
40
|
+
distinct: z.number(),
|
|
41
|
+
/** The value in the first file, in stack order. */
|
|
42
|
+
first: z.string(),
|
|
43
|
+
/** The value in the last file, in stack order. */
|
|
44
|
+
last: z.string(),
|
|
45
|
+
/** Every file's value in stack order; a file without the tag carries null. */
|
|
46
|
+
values: z.array(z.object({ path: z.string(), value: z.string().nullable() })),
|
|
47
|
+
});
|
|
48
|
+
/**
|
|
49
|
+
* The `dicom.tags` model. For a file, `constant` holds every element and
|
|
50
|
+
* `varying` is empty. For a folder, `constant` is what every file shares
|
|
51
|
+
* and `varying` what changes, with `read` files out of `of` in the folder
|
|
52
|
+
* when the folder was sampled.
|
|
53
|
+
*/
|
|
54
|
+
export const dicomTagsModelSchema = z.object({
|
|
55
|
+
path: z.string(),
|
|
56
|
+
subject: z.enum(['file', 'folder']),
|
|
57
|
+
/** Files read, and files in the folder; equal unless sampled. */
|
|
58
|
+
read: z.number(),
|
|
59
|
+
of: z.number(),
|
|
60
|
+
/** Files that could not be read or parsed. */
|
|
61
|
+
refused: z.array(z.string()),
|
|
62
|
+
constant: z.array(dicomTagSchema),
|
|
63
|
+
varying: z.array(dicomVaryingTagSchema),
|
|
64
|
+
});
|
|
65
|
+
/** The voxel grid, from one header. */
|
|
66
|
+
export const dicomGeometrySchema = z.object({
|
|
67
|
+
rows: z.number(),
|
|
68
|
+
columns: z.number(),
|
|
69
|
+
pixelSpacing: z.tuple([z.number(), z.number()]).optional(),
|
|
70
|
+
sliceThickness: z.number().optional(),
|
|
71
|
+
spacingBetweenSlices: z.number().optional(),
|
|
72
|
+
});
|
|
73
|
+
/**
|
|
74
|
+
* The `dicom.series` model: one folder as a series. Order names how the
|
|
75
|
+
* files were stacked: `filename` when each starts with its InstanceNumber
|
|
76
|
+
* (oxidicom's naming), `unknown` when they were merely sorted by name.
|
|
77
|
+
*/
|
|
78
|
+
export const dicomSeriesModelSchema = z.object({
|
|
79
|
+
path: z.string(),
|
|
80
|
+
seriesInstanceUID: z.string().optional(),
|
|
81
|
+
studyInstanceUID: z.string().optional(),
|
|
82
|
+
modality: z.string(),
|
|
83
|
+
seriesDescription: z.string(),
|
|
84
|
+
seriesNumber: z.number().optional(),
|
|
85
|
+
/** DICOM files in the folder. */
|
|
86
|
+
instances: z.number(),
|
|
87
|
+
/** Frames in the header read; one for a classic single-frame file. */
|
|
88
|
+
frames: z.number(),
|
|
89
|
+
order: z.enum(['filename', 'unknown']),
|
|
90
|
+
geometry: dicomGeometrySchema.optional(),
|
|
91
|
+
transferSyntax: z.object({ uid: z.string(), name: z.string().optional() }).optional(),
|
|
92
|
+
/** Sum of the folder's DICOM file sizes. */
|
|
93
|
+
bytes: z.number(),
|
|
94
|
+
/** The file whose header answered, first in stack order. */
|
|
95
|
+
header: z.string(),
|
|
96
|
+
/** Files in stack order. */
|
|
97
|
+
files: z.array(z.string()),
|
|
98
|
+
/** Annotation files found for the series' UID. */
|
|
99
|
+
annotations: z.array(z.string()),
|
|
100
|
+
});
|
|
101
|
+
/** The DICOM models' envelope kinds. */
|
|
102
|
+
export const DICOM_MODEL_KINDS = {
|
|
103
|
+
tags: 'dicom.tags',
|
|
104
|
+
series: 'dicom.series',
|
|
105
|
+
};
|
|
106
|
+
//# sourceMappingURL=dicom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dicom.js","sourceRoot":"","sources":["../src/dicom.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,sFAAsF;AACtF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,CAAU,CAAC;AAE1H,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AAc3E,MAAM,CAAC,MAAM,cAAc,GAA+C,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CACpF,CAAC,CAAC,MAAM,CAAC;IACP,qCAAqC;IACrC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,kFAAkF;IAClF,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,mBAAmB;IAC1B,+DAA+D;IAC/D,GAAG,EAAE,CAAC,CAAC,OAAO,EAAE;IAChB,2DAA2D;IAC3D,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,K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,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE;IACrF,4CAA4C;IAC5C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,4DAA4D;IAC5D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,4BAA4B;IAC5B,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC1B,kDAAkD;IAClD,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACjC,CAAC,CAAC;AAQH,wCAAwC;AACxC,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,IAAI,EAAE,YAAY;IAClB,MAAM,EAAE,cAAc;CACd,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -19,3 +19,4 @@ export { dagNodeCoreSchema, dagArgumentSchema, pipelineDiagramNodeSchema, pipeli
|
|
|
19
19
|
export { feedListEntrySchema, feedListModelSchema, FEED_LIST_MODEL_KIND, type FeedListEntry, type FeedListModel, } from './dag.js';
|
|
20
20
|
export { pluginParameterSchema, pluginInfoModelSchema, PLUGIN_INFO_MODEL_KIND, type PluginParameter, type PluginInfoModel, } from './plugin.js';
|
|
21
21
|
export { pacsProvenanceSchema, pacsPatientSchema, pacsPatientStatusSchema, PACS_PATIENT_STATUSES, pacsSeriesSchema, pacsStudySchema, pacsQueryModelSchema, pacsServerSchema, pacsServersModelSchema, PACS_QUERY_MODEL_KIND, PACS_SERVERS_MODEL_KIND, type PacsSeries, type PacsStudy, type PacsProvenance, type PacsPatient, type PacsPatientStatus, type PacsQueryModel, type PacsServer, type PacsServersModel, } from './pacs.js';
|
|
22
|
+
export { DICOM_TAG_GROUPS, dicomTagGroupSchema, dicomTagSchema, dicomVaryingTagSchema, dicomTagsModelSchema, dicomGeometrySchema, dicomSeriesModelSchema, DICOM_MODEL_KINDS, type DicomTag, type DicomTagGroup, type DicomVaryingTag, type DicomTagsModel, type DicomGeometry, type DicomSeriesModel, } from './dicom.js';
|
package/dist/index.js
CHANGED
|
@@ -19,4 +19,5 @@ export { dagNodeCoreSchema, dagArgumentSchema, pipelineDiagramNodeSchema, pipeli
|
|
|
19
19
|
export { feedListEntrySchema, feedListModelSchema, FEED_LIST_MODEL_KIND, } from './dag.js';
|
|
20
20
|
export { pluginParameterSchema, pluginInfoModelSchema, PLUGIN_INFO_MODEL_KIND, } from './plugin.js';
|
|
21
21
|
export { pacsProvenanceSchema, pacsPatientSchema, pacsPatientStatusSchema, PACS_PATIENT_STATUSES, pacsSeriesSchema, pacsStudySchema, pacsQueryModelSchema, pacsServerSchema, pacsServersModelSchema, PACS_QUERY_MODEL_KIND, PACS_SERVERS_MODEL_KIND, } from './pacs.js';
|
|
22
|
+
export { DICOM_TAG_GROUPS, dicomTagGroupSchema, dicomTagSchema, dicomVaryingTagSchema, dicomTagsModelSchema, dicomGeometrySchema, dicomSeriesModelSchema, DICOM_MODEL_KINDS, } from './dicom.js';
|
|
22
23
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EACL,kBAAkB,EAClB,mBAAmB,GAIpB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,cAAc,EACd,iBAAiB,GAMlB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,GAOtB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,aAAa,EACb,gCAAgC,EAChC,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,wBAAwB,E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B,MAAM,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EACL,kBAAkB,EAClB,mBAAmB,GAIpB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,cAAc,EACd,iBAAiB,GAMlB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,GAOtB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,aAAa,EACb,gCAAgC,EAChC,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,wBAAwB,EACxB,uBAAuB,EACvB,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,0BAA0B,EAC1B,yBAAyB,EACzB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,mBAAmB,EACnB,uBAAuB,EACvB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,EACnB,sBAAsB,EAItB,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,GAerB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,YAAY,GAEb,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,yBAAyB,EACzB,0BAA0B,EAC1B,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,eAAe,GAUhB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,GAGrB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,GAGvB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,qBAAqB,EACrB,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,GASxB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,qBAAqB,EACrB,oBAAoB,EACpB,mBAAmB,EACnB,sBAAsB,EACtB,iBAAiB,GAOlB,MAAM,YAAY,CAAC"}
|
package/dist/messages.d.ts
CHANGED
|
@@ -982,7 +982,7 @@ export declare const progressMessageSchema: z.ZodObject<{
|
|
|
982
982
|
}, "strip", z.ZodTypeAny, {
|
|
983
983
|
id: string;
|
|
984
984
|
type: "progress";
|
|
985
|
-
operation: "upload" | "download" | "pull" | "workflow" | "pipeline" | "
|
|
985
|
+
operation: "group" | "upload" | "download" | "pull" | "workflow" | "pipeline" | "task";
|
|
986
986
|
phase: "failed" | "scanning" | "transferring" | "watching" | "retrying" | "reading" | "working" | "complete";
|
|
987
987
|
label?: string | undefined;
|
|
988
988
|
status?: "unknown" | "done" | "error" | "running" | "unconfirmed" | "stalled" | "timeout" | undefined;
|
|
@@ -991,7 +991,7 @@ export declare const progressMessageSchema: z.ZodObject<{
|
|
|
991
991
|
itemId?: string | undefined;
|
|
992
992
|
current?: number | undefined;
|
|
993
993
|
percent?: number | undefined;
|
|
994
|
-
unit?: "nodes" | "
|
|
994
|
+
unit?: "nodes" | "series" | "bytes" | "files" | "jobs" | undefined;
|
|
995
995
|
}, {
|
|
996
996
|
id: string;
|
|
997
997
|
type: "progress";
|
|
@@ -1814,16 +1814,16 @@ export declare const deliverMessageSchema: z.ZodObject<{
|
|
|
1814
1814
|
}, "strip", z.ZodTypeAny, {
|
|
1815
1815
|
path: string;
|
|
1816
1816
|
type: "deliver";
|
|
1817
|
-
deliverId: string;
|
|
1818
1817
|
filename: string;
|
|
1818
|
+
deliverId: string;
|
|
1819
1819
|
destination?: string | undefined;
|
|
1820
1820
|
size?: number | undefined;
|
|
1821
1821
|
contentType?: string | undefined;
|
|
1822
1822
|
}, {
|
|
1823
1823
|
path: string;
|
|
1824
1824
|
type: "deliver";
|
|
1825
|
-
deliverId: string;
|
|
1826
1825
|
filename: string;
|
|
1826
|
+
deliverId: string;
|
|
1827
1827
|
destination?: string | undefined;
|
|
1828
1828
|
size?: number | undefined;
|
|
1829
1829
|
contentType?: string | undefined;
|
|
@@ -2199,7 +2199,7 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2199
2199
|
}, "strip", z.ZodTypeAny, {
|
|
2200
2200
|
id: string;
|
|
2201
2201
|
type: "progress";
|
|
2202
|
-
operation: "upload" | "download" | "pull" | "workflow" | "pipeline" | "
|
|
2202
|
+
operation: "group" | "upload" | "download" | "pull" | "workflow" | "pipeline" | "task";
|
|
2203
2203
|
phase: "failed" | "scanning" | "transferring" | "watching" | "retrying" | "reading" | "working" | "complete";
|
|
2204
2204
|
label?: string | undefined;
|
|
2205
2205
|
status?: "unknown" | "done" | "error" | "running" | "unconfirmed" | "stalled" | "timeout" | undefined;
|
|
@@ -2208,7 +2208,7 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2208
2208
|
itemId?: string | undefined;
|
|
2209
2209
|
current?: number | undefined;
|
|
2210
2210
|
percent?: number | undefined;
|
|
2211
|
-
unit?: "nodes" | "
|
|
2211
|
+
unit?: "nodes" | "series" | "bytes" | "files" | "jobs" | undefined;
|
|
2212
2212
|
}, {
|
|
2213
2213
|
id: string;
|
|
2214
2214
|
type: "progress";
|
|
@@ -2856,16 +2856,16 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2856
2856
|
}, "strip", z.ZodTypeAny, {
|
|
2857
2857
|
path: string;
|
|
2858
2858
|
type: "deliver";
|
|
2859
|
-
deliverId: string;
|
|
2860
2859
|
filename: string;
|
|
2860
|
+
deliverId: string;
|
|
2861
2861
|
destination?: string | undefined;
|
|
2862
2862
|
size?: number | undefined;
|
|
2863
2863
|
contentType?: string | undefined;
|
|
2864
2864
|
}, {
|
|
2865
2865
|
path: string;
|
|
2866
2866
|
type: "deliver";
|
|
2867
|
-
deliverId: string;
|
|
2868
2867
|
filename: string;
|
|
2868
|
+
deliverId: string;
|
|
2869
2869
|
destination?: string | undefined;
|
|
2870
2870
|
size?: number | undefined;
|
|
2871
2871
|
contentType?: string | undefined;
|
package/dist/pacs.d.ts
CHANGED
|
@@ -22,22 +22,26 @@ export declare const pacsSeriesSchema: z.ZodObject<{
|
|
|
22
22
|
pulled: z.ZodOptional<z.ZodBoolean>;
|
|
23
23
|
/** How many files CUBE holds, when known. */
|
|
24
24
|
pulledFiles: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
/** The folder CUBE keeps the pulled series in, when known: what an image pane opens. */
|
|
26
|
+
folderPath: z.ZodOptional<z.ZodString>;
|
|
25
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
modality: string;
|
|
26
29
|
description: string;
|
|
27
30
|
seriesUID: string;
|
|
28
|
-
modality: string;
|
|
29
31
|
vfsPath?: string | undefined;
|
|
30
32
|
fileCount?: number | undefined;
|
|
31
33
|
pulled?: boolean | undefined;
|
|
32
34
|
pulledFiles?: number | undefined;
|
|
35
|
+
folderPath?: string | undefined;
|
|
33
36
|
}, {
|
|
37
|
+
modality: string;
|
|
34
38
|
description: string;
|
|
35
39
|
seriesUID: string;
|
|
36
|
-
modality: string;
|
|
37
40
|
vfsPath?: string | undefined;
|
|
38
41
|
fileCount?: number | undefined;
|
|
39
42
|
pulled?: boolean | undefined;
|
|
40
43
|
pulledFiles?: number | undefined;
|
|
44
|
+
folderPath?: string | undefined;
|
|
41
45
|
}>;
|
|
42
46
|
/** One found study and its series. */
|
|
43
47
|
export declare const pacsStudySchema: z.ZodObject<{
|
|
@@ -69,33 +73,38 @@ export declare const pacsStudySchema: z.ZodObject<{
|
|
|
69
73
|
pulled: z.ZodOptional<z.ZodBoolean>;
|
|
70
74
|
/** How many files CUBE holds, when known. */
|
|
71
75
|
pulledFiles: z.ZodOptional<z.ZodNumber>;
|
|
76
|
+
/** The folder CUBE keeps the pulled series in, when known: what an image pane opens. */
|
|
77
|
+
folderPath: z.ZodOptional<z.ZodString>;
|
|
72
78
|
}, "strip", z.ZodTypeAny, {
|
|
79
|
+
modality: string;
|
|
73
80
|
description: string;
|
|
74
81
|
seriesUID: string;
|
|
75
|
-
modality: string;
|
|
76
82
|
vfsPath?: string | undefined;
|
|
77
83
|
fileCount?: number | undefined;
|
|
78
84
|
pulled?: boolean | undefined;
|
|
79
85
|
pulledFiles?: number | undefined;
|
|
86
|
+
folderPath?: string | undefined;
|
|
80
87
|
}, {
|
|
88
|
+
modality: string;
|
|
81
89
|
description: string;
|
|
82
90
|
seriesUID: string;
|
|
83
|
-
modality: string;
|
|
84
91
|
vfsPath?: string | undefined;
|
|
85
92
|
fileCount?: number | undefined;
|
|
86
93
|
pulled?: boolean | undefined;
|
|
87
94
|
pulledFiles?: number | undefined;
|
|
95
|
+
folderPath?: string | undefined;
|
|
88
96
|
}>, "many">;
|
|
89
97
|
}, "strip", z.ZodTypeAny, {
|
|
90
98
|
date: string;
|
|
91
99
|
series: {
|
|
100
|
+
modality: string;
|
|
92
101
|
description: string;
|
|
93
102
|
seriesUID: string;
|
|
94
|
-
modality: string;
|
|
95
103
|
vfsPath?: string | undefined;
|
|
96
104
|
fileCount?: number | undefined;
|
|
97
105
|
pulled?: boolean | undefined;
|
|
98
106
|
pulledFiles?: number | undefined;
|
|
107
|
+
folderPath?: string | undefined;
|
|
99
108
|
}[];
|
|
100
109
|
description: string;
|
|
101
110
|
patientName: string;
|
|
@@ -108,13 +117,14 @@ export declare const pacsStudySchema: z.ZodObject<{
|
|
|
108
117
|
}, {
|
|
109
118
|
date: string;
|
|
110
119
|
series: {
|
|
120
|
+
modality: string;
|
|
111
121
|
description: string;
|
|
112
122
|
seriesUID: string;
|
|
113
|
-
modality: string;
|
|
114
123
|
vfsPath?: string | undefined;
|
|
115
124
|
fileCount?: number | undefined;
|
|
116
125
|
pulled?: boolean | undefined;
|
|
117
126
|
pulledFiles?: number | undefined;
|
|
127
|
+
folderPath?: string | undefined;
|
|
118
128
|
}[];
|
|
119
129
|
description: string;
|
|
120
130
|
patientName: string;
|
|
@@ -299,33 +309,38 @@ export declare const pacsQueryModelSchema: z.ZodObject<{
|
|
|
299
309
|
pulled: z.ZodOptional<z.ZodBoolean>;
|
|
300
310
|
/** How many files CUBE holds, when known. */
|
|
301
311
|
pulledFiles: z.ZodOptional<z.ZodNumber>;
|
|
312
|
+
/** The folder CUBE keeps the pulled series in, when known: what an image pane opens. */
|
|
313
|
+
folderPath: z.ZodOptional<z.ZodString>;
|
|
302
314
|
}, "strip", z.ZodTypeAny, {
|
|
315
|
+
modality: string;
|
|
303
316
|
description: string;
|
|
304
317
|
seriesUID: string;
|
|
305
|
-
modality: string;
|
|
306
318
|
vfsPath?: string | undefined;
|
|
307
319
|
fileCount?: number | undefined;
|
|
308
320
|
pulled?: boolean | undefined;
|
|
309
321
|
pulledFiles?: number | undefined;
|
|
322
|
+
folderPath?: string | undefined;
|
|
310
323
|
}, {
|
|
324
|
+
modality: string;
|
|
311
325
|
description: string;
|
|
312
326
|
seriesUID: string;
|
|
313
|
-
modality: string;
|
|
314
327
|
vfsPath?: string | undefined;
|
|
315
328
|
fileCount?: number | undefined;
|
|
316
329
|
pulled?: boolean | undefined;
|
|
317
330
|
pulledFiles?: number | undefined;
|
|
331
|
+
folderPath?: string | undefined;
|
|
318
332
|
}>, "many">;
|
|
319
333
|
}, "strip", z.ZodTypeAny, {
|
|
320
334
|
date: string;
|
|
321
335
|
series: {
|
|
336
|
+
modality: string;
|
|
322
337
|
description: string;
|
|
323
338
|
seriesUID: string;
|
|
324
|
-
modality: string;
|
|
325
339
|
vfsPath?: string | undefined;
|
|
326
340
|
fileCount?: number | undefined;
|
|
327
341
|
pulled?: boolean | undefined;
|
|
328
342
|
pulledFiles?: number | undefined;
|
|
343
|
+
folderPath?: string | undefined;
|
|
329
344
|
}[];
|
|
330
345
|
description: string;
|
|
331
346
|
patientName: string;
|
|
@@ -338,13 +353,14 @@ export declare const pacsQueryModelSchema: z.ZodObject<{
|
|
|
338
353
|
}, {
|
|
339
354
|
date: string;
|
|
340
355
|
series: {
|
|
356
|
+
modality: string;
|
|
341
357
|
description: string;
|
|
342
358
|
seriesUID: string;
|
|
343
|
-
modality: string;
|
|
344
359
|
vfsPath?: string | undefined;
|
|
345
360
|
fileCount?: number | undefined;
|
|
346
361
|
pulled?: boolean | undefined;
|
|
347
362
|
pulledFiles?: number | undefined;
|
|
363
|
+
folderPath?: string | undefined;
|
|
348
364
|
}[];
|
|
349
365
|
description: string;
|
|
350
366
|
patientName: string;
|
|
@@ -473,13 +489,14 @@ export declare const pacsQueryModelSchema: z.ZodObject<{
|
|
|
473
489
|
studies: {
|
|
474
490
|
date: string;
|
|
475
491
|
series: {
|
|
492
|
+
modality: string;
|
|
476
493
|
description: string;
|
|
477
494
|
seriesUID: string;
|
|
478
|
-
modality: string;
|
|
479
495
|
vfsPath?: string | undefined;
|
|
480
496
|
fileCount?: number | undefined;
|
|
481
497
|
pulled?: boolean | undefined;
|
|
482
498
|
pulledFiles?: number | undefined;
|
|
499
|
+
folderPath?: string | undefined;
|
|
483
500
|
}[];
|
|
484
501
|
description: string;
|
|
485
502
|
patientName: string;
|
|
@@ -516,13 +533,14 @@ export declare const pacsQueryModelSchema: z.ZodObject<{
|
|
|
516
533
|
studies: {
|
|
517
534
|
date: string;
|
|
518
535
|
series: {
|
|
536
|
+
modality: string;
|
|
519
537
|
description: string;
|
|
520
538
|
seriesUID: string;
|
|
521
|
-
modality: string;
|
|
522
539
|
vfsPath?: string | undefined;
|
|
523
540
|
fileCount?: number | undefined;
|
|
524
541
|
pulled?: boolean | undefined;
|
|
525
542
|
pulledFiles?: number | undefined;
|
|
543
|
+
folderPath?: string | undefined;
|
|
526
544
|
}[];
|
|
527
545
|
description: string;
|
|
528
546
|
patientName: string;
|
package/dist/pacs.js
CHANGED
|
@@ -22,6 +22,8 @@ export const pacsSeriesSchema = z.object({
|
|
|
22
22
|
pulled: z.boolean().optional(),
|
|
23
23
|
/** How many files CUBE holds, when known. */
|
|
24
24
|
pulledFiles: z.number().optional(),
|
|
25
|
+
/** The folder CUBE keeps the pulled series in, when known: what an image pane opens. */
|
|
26
|
+
folderPath: z.string().optional(),
|
|
25
27
|
});
|
|
26
28
|
/** One found study and its series. */
|
|
27
29
|
export const pacsStudySchema = z.object({
|
package/dist/pacs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pacs.js","sourceRoot":"","sources":["../src/pacs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,uCAAuC;AACvC,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,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