-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.d.ts
1727 lines (1475 loc) · 39.3 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import { Mixin } from 'ts-mixer';
import { Logger } from 'winston';
import { Socket } from 'net';
import { SecureContext, TLSSocket } from 'tls';
import AsyncEventEmitter from 'async-eventemitter';
declare namespace PresentationContextResult {
const Proposed: number;
const Accept: number;
const RejectUser: number;
const RejectNoReason: number;
const RejectAbstractSyntaxNotSupported: number;
const RejectTransferSyntaxesNotSupported: number;
}
declare namespace UserIdentityType {
const Username: number;
const UsernameAndPasscode: number;
const Kerberos: number;
const Saml: number;
const Jwt: number;
}
declare namespace AbortSource {
const ServiceUser: number;
const Unknown: number;
const ServiceProvider: number;
}
declare namespace AbortReason {
const NotSpecified: number;
const UnrecognizedPdu: number;
const UnexpectedPdu: number;
const UnrecognizedPduParameter: number;
const UnexpectedPduParameter: number;
const InvalidPduParameter: number;
}
declare namespace RejectResult {
const Permanent: number;
const Transient: number;
}
declare namespace RejectSource {
const ServiceUser: number;
const ServiceProviderAcse: number;
const ServiceProviderPresentation: number;
}
declare namespace RejectReason {
const NoReasonGiven: number;
const ApplicationContextNotSupported: number;
const CallingAeNotRecognized: number;
const CalledAeNotRecognized: number;
const ProtocolVersionNotSupported: number;
const TemporaryCongestion: number;
const LocalLimitExceeded: number;
}
declare namespace Priority {
const Low: number;
const Medium: number;
const High: number;
}
declare namespace Status {
const Success: number;
const Cancel: number;
const Pending: number;
const ClassInstanceConflict: number;
const DataSetSopClassMismatch: number;
const DuplicateSOPInstance: number;
const DuplicateInvocation: number;
const InvalidArgumentValue: number;
const InvalidAttributeValue: number;
const InvalidObjectInstance: number;
const MissingAttribute: number;
const MissingAttributeValue: number;
const MistypedArgument: number;
const MoveDestinationUnknown: number;
const NoSuchActionType: number;
const NoSuchArgument: number;
const NoSuchEventType: number;
const NoSuchObjectInstance: number;
const NoSuchSopClass: number;
const NotAuthorized: number;
const OutOfResourcesNumberOfMatches: number;
const OutOfResourcesSubOperations: number;
const ProcessingFailure: number;
const ResourceLimitation: number;
const SopClassNotSupported: number;
const UnrecognizedOperation: number;
}
declare namespace StorageClass {
const BasicTextSrStorage: string;
const BreastProjectionXRayImageStorageForPresentation: string;
const BreastProjectionXRayImageStorageForProcessing: string;
const BreastTomosynthesisImageStorage: string;
const ChestCadSrStorage: string;
const ComprehensiveSrStorage: string;
const ComputedRadiographyImageStorage: string;
const CtImageStorage: string;
const DigitalIntraOralXRayImageStorageForPresentation: string;
const DigitalIntraOralXRayImageStorageForProcessing: string;
const DigitalMammographyXRayImageStorageForPresentation: string;
const DigitalMammographyXRayImageStorageForProcessing: string;
const DigitalXRayImageStorageForPresentation: string;
const DigitalXRayImageStorageForProcessing: string;
const EncapsulatedCdaStorage: string;
const EncapsulatedPdfStorage: string;
const EnhancedCtImageStorage: string;
const EnhancedMrColorImageStorage: string;
const EnhancedMrImageStorage: string;
const EnhancedPetImageStorage: string;
const EnhancedSrStorage: string;
const EnhancedXaImageStorage: string;
const EnhancedXrfImageStorage: string;
const IntravascularOpticalCoherenceTomographyImageStorageForPresentation: string;
const IntravascularOpticalCoherenceTomographyImageStorageForProcessing: string;
const LegacyConvertedEnhancedCTImageStorage: string;
const LegacyConvertedEnhancedMRImageStorage: string;
const LegacyConvertedEnhancedPETImageStorage: string;
const MammographyCadSrStorage: string;
const MrImageStorage: string;
const MultiframeGrayscaleByteSecondaryCaptureImageStorage: string;
const MultiframeGrayscaleWordSecondaryCaptureImageStorage: string;
const MultiframeSingleBitSecondaryCaptureImageStorage: string;
const MultiframeTrueColorSecondaryCaptureImageStorage: string;
const NuclearMedicineImageStorage: string;
const OphthalmicOpticalCoherenceTomographyEnFaceImageStorage: string;
const OphthalmicPhotography16BitImageStorage: string;
const OphthalmicPhotography8BitImageStorage: string;
const OphthalmicTomographyImageStorage: string;
const PositronEmissionTomographyImageStorage: string;
const RtImageStorage: string;
const SecondaryCaptureImageStorage: string;
const UltrasoundImageStorage: string;
const UltrasoundMultiframeImageStorage: string;
const VideoEndoscopicImageStorage: string;
const VideoMicroscopicImageStorage: string;
const VideoPhotographicImageStorage: string;
const VlEndoscopicImageStorage: string;
const VlMicroscopicImageStorage: string;
const VlPhotographicImageStorage: string;
const VlSlideCoordinatesMicroscopicImageStorage: string;
const VlWholeSlideMicroscopyImageStorage: string;
const WideFieldOphthalmicPhotography3dCoordinatesImageStorage: string;
const WideFieldOphthalmicPhotographyStereographicProjectionImageStorage: string;
const XRay3dAngiographicImageStorage: string;
const XRay3dCraniofacialImageStorage: string;
const XRayAngiographicImageStorage: string;
const XRayRadiationDoseSRStorage: string;
const XRayRadiofluoroscopicImageStorage: string;
}
declare namespace SopClass {
const Verification: string;
const StudyRootQueryRetrieveInformationModelFind: string;
const ModalityWorklistInformationModelFind: string;
const ModalityPerformedProcedureStep: string;
const StudyRootQueryRetrieveInformationModelMove: string;
const StudyRootQueryRetrieveInformationModelGet: string;
const StorageCommitmentPushModel: string;
const BasicFilmSession: string;
const PrintJob: string;
const BasicAnnotationBox: string;
const Printer: string;
const PrinterConfigurationRetrieval: string;
const BasicGrayscalePrintManagementMeta: string;
const BasicColorPrintManagementMeta: string;
const BasicFilmBox: string;
const PresentationLut: string;
const BasicGrayscaleImageBox: string;
const BasicColorImageBox: string;
const InstanceAvailabilityNotification: string;
}
declare namespace TransferSyntax {
const ImplicitVRLittleEndian: string;
const ExplicitVRLittleEndian: string;
const DeflatedExplicitVRLittleEndian: string;
const ExplicitVRBigEndian: string;
const RleLossless: string;
const JpegBaseline: string;
const JpegLossless: string;
const JpegLsLossless: string;
const JpegLsLossy: string;
const Jpeg2000Lossless: string;
const Jpeg2000Lossy: string;
}
declare class Dataset {
/**
* Creates an instance of Dataset.
*/
constructor(
elementsOrBuffer?: Record<string, unknown> | Buffer,
transferSyntaxUid?: string,
readOptions?: Record<string, unknown>
);
/**
* Gets element value.
*/
getElement(tag: string): string | undefined;
/**
* Sets element value.
*/
setElement(tag: string, value: string): void;
/**
* Gets all elements.
*/
getElements(): Record<string, unknown>;
/**
* Gets DICOM transfer syntax UID.
*/
getTransferSyntaxUid(): string;
/**
* Sets DICOM transfer syntax UID.
*/
setTransferSyntaxUid(transferSyntaxUid: string): void;
/**
* Gets elements encoded in a DICOM dataset buffer.
*/
getDenaturalizedDataset(
writeOptions?: Record<string, unknown>,
nameMap?: Record<string, unknown>
): Buffer;
/**
* Gets command elements encoded in a DICOM dataset buffer.
*/
getDenaturalizedCommandDataset(): Buffer;
/**
* Loads a dataset from DICOM P10 file.
*/
static fromFile(
path: string,
callback?: (error: Error | undefined, dataset: Dataset | undefined) => void,
readOptions?: Record<string, unknown>
): Dataset | undefined;
/**
* Saves a dataset to DICOM P10 file.
*/
toFile(
path: string,
callback?: (error: Error | undefined) => void,
nameMap?: Record<string, unknown>,
writeOptions?: Record<string, unknown>
): void;
/**
* Generates a UUID-derived UID.
*/
static generateDerivedUid(): string;
/**
* Gets the dataset description.
*/
toString(): string;
}
declare class Implementation {
/**
* Gets implementation class UID.
*/
static getImplementationClassUid(): string;
/**
* Sets implementation class UID.
*/
static setImplementationClassUid(uid: string): void;
/**
* Gets implementation version.
*/
static getImplementationVersion(): string;
/**
* Sets implementation version.
*/
static setImplementationVersion(version: string): void;
/**
* Gets max PDU length.
*/
static getMaxPduLength(): number;
/**
* Sets max PDU length.
*/
static setMaxPduLength(maxLength: number): void;
}
declare class PresentationContext {
/**
* Creates an instance of PresentationContext.
*/
constructor(pcId: number, abstractSyntaxUid: string, transferSyntaxUid?: string, result?: number);
/**
* Gets presentation context ID.
*/
getPresentationContextId(): number;
/**
* Gets abstract syntax UID.
*/
getAbstractSyntaxUid(): string;
/**
* Gets transfer syntax UIDs.
*/
getTransferSyntaxUids(): Array<string>;
/**
* Add transfer syntax UID.
*/
addTransferSyntaxUid(transferSyntaxUid: string): void;
/**
* Removes transfer syntax UID.
*/
removeTransferSyntaxUid(transferSyntaxUid: string): void;
/**
* Checks whether transfer syntax UID is present.
*/
hasTransferSyntaxUid(transferSyntaxUid: string): boolean;
/**
* Gets the accepted transfer syntax UID.
*/
getAcceptedTransferSyntaxUid(): string | undefined;
/**
* Gets the presentation context result.
*/
getResult(): number;
/**
* Sets the presentation context result.
*/
setResult(result: number, acceptedTransferSyntaxUid?: string): void;
/**
* Gets the presentation context result description.
*/
getResultDescription(): string;
/**
* Gets the presentation context description.
*/
toString(): string;
}
declare class Association {
/**
* Creates an instance of Association.
*/
constructor(callingAeTitle: string, calledAeTitle: string);
/**
* Gets the calling AE title.
*/
getCallingAeTitle(): string;
/**
* Sets the calling AE title.
*/
setCallingAeTitle(aet: string): void;
/**
* Gets the called AE title.
*/
getCalledAeTitle(): string;
/**
* Sets the called AE title.
*/
setCalledAeTitle(aet: string): void;
/**
* Gets maximum PDU length.
*/
getMaxPduLength(): number;
/**
* Sets maximum PDU length.
*/
setMaxPduLength(maxPduLength: number): void;
/**
* Gets the application context name.
*/
getApplicationContextName(): string;
/**
* Gets the implementation class UID.
*/
getImplementationClassUid(): string;
/**
* Sets the implementation class UID.
*/
setImplementationClassUid(uid: string): void;
/**
* Gets the implementation version.
*/
getImplementationVersion(): string;
/**
* Sets the implementation version.
*/
setImplementationVersion(version: string): void;
/**
* Gets a flag indicating whether to negotiate asynchronous operations.
*/
getNegotiateAsyncOps(): boolean;
/**
* Sets a flag indicating whether to negotiate asynchronous operations.
*/
setNegotiateAsyncOps(negotiate: boolean): void;
/**
* Gets the supported maximum number of asynchronous operations invoked.
*/
getMaxAsyncOpsInvoked(): number;
/**
* Sets the supported maximum number of asynchronous operations invoked.
*/
setMaxAsyncOpsInvoked(ops: number): void;
/**
* Gets the supported maximum number of asynchronous operations performed.
*/
getMaxAsyncOpsPerformed(): number;
/**
* Sets the supported maximum number of asynchronous operations performed.
*/
setMaxAsyncOpsPerformed(ops: number): void;
/**
* Gets a flag indicating whether to negotiate user identity.
*/
getNegotiateUserIdentity(): boolean;
/**
* Sets a flag indicating whether to negotiate user identity.
*/
setNegotiateUserIdentity(negotiate: boolean): void;
/**
* Gets the user identity type.
*/
getUserIdentityType(): number;
/**
* Sets the user identity type.
*/
setUserIdentityType(type: number): void;
/**
* Gets a flag indicating whether a positive response requested.
*/
getUserIdentityPositiveResponseRequested(): boolean;
/**
* Sets a flag indicating whether a positive response requested.
*/
setUserIdentityPositiveResponseRequested(positiveResponseRequested: boolean): void;
/**
* Gets the user identity primary field.
* This field might contain the username, the Kerberos service ticket or the JWT.
*/
getUserIdentityPrimaryField(): string;
/**
* Sets the user identity primary field.
* This field might contain the username, the Kerberos service ticket or the JWT.
*/
setUserIdentityPrimaryField(primaryField: string): void;
/**
* Gets the user identity secondary field.
* This field might contain the passcode.
*/
getUserIdentitySecondaryField(): string;
/**
* Sets the user identity secondary field.
* This field might contain the passcode.
*/
setUserIdentitySecondaryField(secondaryField: string): void;
/**
* Gets a flag indicating whether to negotiate user identity server response.
*/
getNegotiateUserIdentityServerResponse(): boolean;
/**
* Sets a flag indicating whether to negotiate user identity server response.
*/
setNegotiateUserIdentityServerResponse(negotiate: boolean): void;
/**
* Gets the user identity server response.
* This field might contain the Kerberos server ticket if the user identity type value was 3,
* the SAML response if the user identity type value was 4, or it might be empty
* if the user identity type value was 1 or 2.
*/
getUserIdentityServerResponse(): string;
/**
* Sets the user identity server response.
* This field might contain the Kerberos server ticket if the user identity type value was 3,
* the SAML response if the user identity type value was 4, or it might be empty
* if the user identity type value was 1 or 2.
*/
setUserIdentityServerResponse(serverResponse: string): void;
/**
* Adds presentation context to association.
*/
addPresentationContext(abstractSyntaxUid: string, presentationContextId?: number): number;
/**
* Adds presentation context to association if not exists.
*/
addOrGetPresentationContext(abstractSyntaxUid: string): number;
/**
* Adds transfer syntax to presentation context.
*/
addTransferSyntaxToPresentationContext(pcId: number, transferSyntaxUid: string): void;
/**
* Finds presentation context.
*/
findPresentationContextByAbstractSyntaxAndTransferSyntax(
abstractSyntaxUid: string,
transferSyntaxUid: string
): number | undefined;
/**
* Gets presentation context.
*/
getPresentationContext(pcId: number): PresentationContext;
/**
* Gets presentation contexts.
*/
getPresentationContexts(): Array<{
id: number;
context: PresentationContext;
}>;
/**
* Clears all presentation contexts.
*/
clearPresentationContexts(): void;
/**
* Adds presentation context from request.
*/
addPresentationContextFromRequest(
request: Request,
transferSyntaxes?: string | Array<string>
): number;
/**
* Gets accepted presentation context from request.
*/
getAcceptedPresentationContextFromRequest(request: Request): PresentationContext | undefined;
/**
* Gets the association description.
*/
toString(): string;
}
declare class Command {
/**
* Creates an instance of Command.
*/
constructor(commandDataset?: Dataset, dataset?: Dataset);
/**
* Gets command dataset.
*/
getCommandDataset(): Dataset;
/**
* Sets command dataset.
*/
setCommandDataset(dataset: Dataset): void;
/**
* Gets dataset.
*/
getDataset(): Dataset | undefined;
/**
* Sets dataset and updates CommandDataSetType element.
*/
setDataset(dataset: Dataset): void;
/**
* Gets command field type.
*/
getCommandFieldType(): number;
/**
* Command has dataset.
*/
hasDataset(): boolean;
/**
* Gets the command description.
*/
toString(opts?: { includeCommandDataset?: boolean; includeDataset?: boolean }): string;
}
declare class Request extends Mixin(Command, AsyncEventEmitter) {
/**
* Creates an instance of Request.
*/
constructor(
type: number,
affectedOrRequestedClassUid: string,
hasDataset: boolean,
metaSopClassUid?: string
);
/**
* Gets affected SOP class UID.
*/
getAffectedSopClassUid(): string;
/**
* Sets affected SOP class UID.
*/
setAffectedSopClassUid(affectedSopClassUid: string): void;
/**
* Gets requested SOP class UID.
*/
getRequestedSopClassUid(): string;
/**
* Sets requested SOP class UID.
*/
setRequestedSopClassUid(requestedSopClassUid: string): void;
/**
* Gets meta SOP class UID.
*/
getMetaSopClassUid(): string | undefined;
/**
* Sets meta SOP class UID.
*/
setMetaSopClassUid(metaSopClassUid: string): void;
/**
* Gets affected SOP instance UID.
*/
getAffectedSopInstanceUid(): string;
/**
* Sets affected SOP instance UID.
*/
setAffectedSopInstanceUid(affectedSopInstanceUid: string): void;
/**
* Gets requested SOP instance UID.
*/
getRequestedSopInstanceUid(): string;
/**
* Sets requested SOP instance UID.
*/
setRequestedSopInstanceUid(requestedSopInstanceUid: string): void;
/**
* Gets request message ID.
*/
getMessageId(): number;
/**
* Sets request message ID.
*/
setMessageId(messageId: number): void;
/**
* Raise response event.
*/
raiseResponseEvent(response: Response): void;
/**
* Raise instance event.
*/
raiseInstanceEvent(dataset: Dataset): void;
/**
* Raise done event.
*/
raiseDoneEvent(): void;
/**
* Gets the request description.
*/
toString(opts?: { includeCommandDataset?: boolean; includeDataset?: boolean }): string;
}
declare class Response extends Command {
/**
* Creates an instance of Response.
*/
constructor(
type: number,
affectedOrRequestedClassUid: string,
hasDataset: boolean,
status: number,
errorComment: string
);
/**
* Gets affected SOP class UID.
*/
getAffectedSopClassUid(): string;
/**
* Sets affected SOP class UID.
*/
setAffectedSopClassUid(affectedSopClassUid: string): void;
/**
* Gets requested SOP class UID.
*/
getRequestedSopClassUid(): string;
/**
* Sets requested SOP class UID.
*/
setRequestedSopClassUid(requestedSopClassUid: string): void;
/**
* Gets affected SOP instance UID.
*/
getAffectedSopInstanceUid(): string;
/**
* Sets affected SOP instance UID.
*/
setAffectedSopInstanceUid(affectedSopInstanceUid: string): void;
/**
* Gets requested SOP instance UID.
*/
getRequestedSopInstanceUid(): string;
/**
* Sets requested SOP instance UID.
*/
setRequestedSopInstanceUid(requestedSopInstanceUid: string): void;
/**
* Gets status.
*/
getStatus(): number;
/**
* Sets status.
*/
setStatus(status: number): void;
/**
* Gets error comment.
*/
getErrorComment(): string;
/**
* Sets error comment.
*/
setErrorComment(errorComment: string): void;
/**
* Gets response message ID.
*/
getMessageIdBeingRespondedTo(): number;
/**
* Sets response message ID.
*/
setMessageIdBeingRespondedTo(messageId: number): void;
/**
* Gets the response description.
*/
toString(opts?: { includeCommandDataset?: boolean; includeDataset?: boolean }): string;
}
declare class CEchoRequest extends Request {
/**
* Creates an instance of CEchoRequest.
*/
constructor();
}
declare class CEchoResponse extends Response {
/**
* Creates an instance of CEchoResponse.
*/
constructor(status: number, errorComment: string);
/**
* Creates a C-ECHO response from a request.
*/
static fromRequest(request: CEchoRequest): CEchoResponse;
}
declare class CFindRequest extends Request {
/**
* Creates an instance of CFindRequest.
*/
constructor(priority?: number);
/**
* Gets request priority.
*/
getPriority(): number;
/**
* Sets request priority.
*/
setPriority(priority: number): void;
/**
* Creates study find request.
*/
static createStudyFindRequest(elements: Record<string, unknown>, priority?: number): CFindRequest;
/**
* Creates series find request.
*/
static createSeriesFindRequest(
elements: Record<string, unknown>,
priority?: number
): CFindRequest;
/**
* Creates image find request.
*/
static createImageFindRequest(elements: Record<string, unknown>, priority?: number): CFindRequest;
/**
* Creates worklist find request.
*/
static createWorklistFindRequest(
elements: Record<string, unknown>,
priority?: number
): CFindRequest;
}
declare class CFindResponse extends Response {
/**
* Creates an instance of CEchoResponse.
*/
constructor(status: number, errorComment: string);
/**
* Creates a C-FIND response from a request.
*/
static fromRequest(request: CFindRequest): CFindResponse;
}
declare class CStoreRequest extends Request {
/**
* Creates an instance of CStoreRequest.
*/
constructor(datasetOrFile: Dataset | string, priority?: number);
/**
* Gets request priority.
*/
getPriority(): number;
/**
* Sets request priority.
*/
setPriority(priority: number): void;
}
declare class CStoreResponse extends Response {
/**
* Creates an instance of CStoreResponse.
*/
constructor(status: number, errorComment: string);
/**
* Creates a C-STORE response from a request.
*/
static fromRequest(request: CStoreRequest): CStoreResponse;
}
declare class CMoveRequest extends Request {
/**
* Creates an instance of CMoveRequest.
*/
constructor(priority?: number);
/**
* Gets request priority.
*/
getPriority(): number;
/**
* Sets request priority.
*/
setPriority(priority: number): void;
/**
* Creates study move request.
*/
static createStudyMoveRequest(
destinationAet: string,
studyInstanceUid: string,
priority?: number
): CMoveRequest;
/**
* Creates series move request.
*/
static createSeriesMoveRequest(
destinationAet: string,
studyInstanceUid: string,
seriesInstanceUid: string,
priority?: number
): CMoveRequest;
/**
* Creates image move request.
*/
static createImageMoveRequest(
destinationAet: string,
studyInstanceUid: string,
seriesInstanceUid: string,
sopInstanceUid: string,
priority?: number
): CMoveRequest;
}
declare class CMoveResponse extends Response {
/**
* Creates an instance of CMoveResponse.
*/
constructor(status: number, errorComment: string);
/**
* Gets remaining sub operations.
*/
getRemaining(): number;
/**
* Gets completed sub operations.
*/
getCompleted(): number;
/**
* Gets sub operations with warnings.
*/
getWarnings(): number;
/**
* Gets failed sub operations.
*/
getFailures(): number;
/**
* Creates a C-MOVE response from a request.
*/
static fromRequest(request: CMoveRequest): CMoveResponse;
}
declare class CGetRequest extends Request {