Subscribe and Unsubscribe to Receive UPS Event Reports

Subscribe to receive UPS Event Reports about specific UPS with Deletion Lock

Start UPS Event Listener

Start UPS event listener listening on local port 11113 for receiving UPS Event Reports:

$ dcmups -LUPSEVENT@localhost:11113
Start Server listening on port 11113
10:56:35,041 INFO   - Start listening on localhost/127.0.0.1:11113
Schedule new UPS from XML file

Schedule new UPS from XML file dcm4che-2.0.24/etc/dcmups/ncreate.xml:

$ dcmups create DCM4CHEE@localhost:11112 -f dcm4che-2.0.24/etc/dcmups/ncreate.xml
10:57:56,824 INFO   - M-READ dcm4che-2.0.24/etc/dcmups/ncreate.xml
10:57:57,078 INFO   - Association(1) initiated Socket[addr=localhost/127.0.0.1,port=11112,localport=47305]
10:57:57,078 INFO   - DCM4CHEE(1): A-ASSOCIATE-RQ DCM4CHEE << DCMUPSSCU
10:57:57,191 INFO   - DCM4CHEE(1): A-ASSOCIATE-AC DCMUPSSCU >> DCM4CHEE
10:57:57,193 INFO   - Connected to DCM4CHEE@localhost:11112 in 0.147 s
10:57:57,244 INFO   - Send N-CREATE Request using 1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class:
(0008,1080) LO #0 [] Admitting Diagnoses Description
(0008,1195) UI #0 [] Transaction UID
(0010,0010) PN #18 [Simpson^Homer^Jay] Patient's Name
(0010,0020) LO #4 [7431] Patient ID
(0010,0021) LO #10 [99DCM4CHE] Issuer of Patient ID
(0010,0022) CS #0 [] Type of Patient ID
(0010,0030) DA #8 [19551005] Patient's Birth Date
(0010,0040) CS #2 [M] Patient's Sex
(0010,1002) SQ #0 [] Other Patient IDs Sequence
(0020,000D) UI #8 [1.2.3.4] Study Instance UID
(0038,0010) LO #0 [] Admission ID
(0038,0014) SQ #0 [] Issuer of Admission ID Sequence
(0040,0400) LT #0 [] Comments on the Scheduled Procedure Step
(0040,4004) SQ #0 [] Scheduled Processing Applications Code Sequence
(0040,4005) DT #12 [201006101030] Scheduled Procedure Step Start DateTime
(0040,4018) SQ #-1 [1 item] Scheduled Workitem Code Sequence
>ITEM #1:
>(0008,0100) SH #6 [110005] Code Value
>(0008,0102) SH #4 [DCM] Coding Scheme Designator
>(0008,0104) LO #14 [Interpretation] Code Meaning
(0040,4020) CS #10 [INCOMPLETE] Input Availability Flag
(0040,4021) SQ #0 [] Input Information Sequence
(0040,4025) SQ #0 [] Scheduled Station Name Code Sequence
(0040,4026) SQ #0 [] Scheduled Station Class Code Sequence
(0040,4027) SQ #0 [] Scheduled Station Geographic Location Code Sequence
(0040,4034) SQ #-1 [1 item] Scheduled Human Performers Sequence
>ITEM #1:
>(0040,4009) SQ #-1 [1 item] Human Performer Code Sequence
>>ITEM #1:
>>(0008,0100) SH #6 [axady] Code Value
>>(0008,0102) SH #6 [99Agfa] Coding Scheme Designator
>>(0008,0104) LO #16 [Gunter Zeilinger] Code Meaning
>(0040,4036) LO #16 [Agfa Healthcare] Human Performer's Organization
>(0040,4037) PN #16 [Zeilinger^Gunter] Human Performer's Name
(0040,A370) SQ #-1 [1 item] Referenced Request Sequence
>ITEM #1:
>(0008,0050) SH #4 [5678] Accession Number
>(0020,000D) UI #8 [1.2.3.4] Study Instance UID
>(0032,1060) LO #0 [] Requested Procedure Description
>(0032,1064) SQ #0 [] Requested Procedure Code Sequence
>(0040,1001) SH #4 [1234] Requested Procedure ID
(0074,1000) CS #10 [SCHEDULED] Unified Procedure Step State
(0074,1002) SQ #0 [] Unified Procedure Step Progress Information Sequence
(0074,1200) CS #6 [MEDIUM] Scheduled Procedure Step Priority
(0074,1202) LO #22 [Sample Worklist Label] Worklist Label
(0074,1204) LO #28 [Sample Procedure Step Label] Procedure Step Label
(0074,1210) SQ #0 [] Scheduled Processing Parameters Sequence
(0074,1216) SQ #0 [] Unified Procedure Step Performed Procedure Sequence
(0074,1220) SQ #0 [] Related Procedure Step Sequence

10:57:57,249 INFO   - DCM4CHEE(1) << 1:N-CREATE-RQ[pcid=7
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=null
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
10:57:57,878 INFO   - DCM4CHEE(1) >> 1:N-CREATE-RSP[pcid=7, status=0H
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32772]
10:57:57,879 INFO   - DCM4CHEE(1) << A-RELEASE-RQ
10:57:57,942 INFO   - DCM4CHEE(1) >> A-RELEASE-RP
10:57:57,942 INFO   - Released connection to DCM4CHEE@localhost:11112
10:57:57,942 INFO   - DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=47305]

Sucessfully created new UPS with SOP Instance UID: 1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32772.

Subscribe UPS watcher to receive UPS Event Reports about this UPS with Deletion Lock

Subscribe UPS watcher to receive UPS Event Reports about this UPS with Deletion Lock:

$ dcmups subscribe DCM4CHEE@localhost:11112 -aet UPSEVENT -dellock -iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32772
11:01:23,227 INFO   - Association(1) initiated Socket[addr=localhost/127.0.0.1,port=11112,localport=42842]
11:01:23,229 INFO   - DCM4CHEE(1): A-ASSOCIATE-RQ DCM4CHEE << DCMUPSSCU
11:01:23,235 INFO   - DCM4CHEE(1): A-ASSOCIATE-AC DCMUPSSCU >> DCM4CHEE
11:01:23,237 INFO   - Connected to DCM4CHEE@localhost:11112 in 0.041 s
11:01:23,279 INFO   - Send N-ACTION Request using 1.2.840.10008.5.1.4.34.4.2/Unified Procedure Step - Watch SOP Class:
(0074,1230) CS #4 [TRUE] Deletion Lock
(0074,1234) AE #8 [UPSEVENT] Receiving AE

11:01:23,284 INFO   - DCM4CHEE(1) << 1:N-ACTION-RQ[pcid=7, actionID=3
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32772
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:01:23,501 INFO   - DCM4CHEE(1) >> 1:N-ACTION-RSP[pcid=7, actionID=3, status=0H
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32772
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:01:23,502 INFO   - Data:
(0074,1230) CS #4 [TRUE] Deletion Lock
(0074,1234) AE #8 [UPSEVENT] Receiving AE

11:01:23,502 INFO   - DCM4CHEE(1) << A-RELEASE-RQ
11:01:23,502 INFO   - DCM4CHEE(1) >> A-RELEASE-RP
11:01:23,502 INFO   - Released connection to DCM4CHEE@localhost:11112
11:01:23,502 INFO   - DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=42842]

, which causes the UPS SCP to send an UPS Event Report to UPSEVENT:

11:01:23,513 INFO   - Association(1) accepted Socket[addr=/127.0.0.1,port=53215,localport=11113]
11:01:23,522 INFO   - Association(1): A-ASSOCIATE-RQ DCM4CHEE >> UPSEVENT
11:01:23,523 INFO   - DCM4CHEE(1): A-ASSOCIATE-AC UPSEVENT << DCM4CHEE
11:01:23,587 INFO   - DCM4CHEE(1) >> 1:N-EVENT-REPORT-RQ[pcid=1, eventID=1
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32772
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:01:23,606 INFO   - Data:
(0074,1000) CS #10 [SCHEDULED] Unified Procedure Step State

11:01:23,607 INFO   - DCM4CHEE(1) << 1:N-EVENT-REPORT-RSP[pcid=1, eventID=1, status=0H]
11:01:23,612 INFO   - DCM4CHEE(1) >> A-RELEASE-RQ
11:01:23,613 INFO   - DCM4CHEE(1) << A-RELEASE-RP
11:01:23,663 INFO   - DCM4CHEE(1): close Socket[addr=/127.0.0.1,port=53215,localport=11113]
Change UPS status to IN PROGRESS
$ dcmups chstate DCM4CHEE@localhost:11112 -state="IN PROGRESS" -iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32772 -tuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32772.1
11:09:24,969 INFO   - Association(1) initiated Socket[addr=localhost/127.0.0.1,port=11112,localport=59362]
11:09:24,971 INFO   - DCM4CHEE(1): A-ASSOCIATE-RQ DCM4CHEE << DCMUPSSCU
11:09:24,976 INFO   - DCM4CHEE(1): A-ASSOCIATE-AC DCMUPSSCU >> DCM4CHEE
11:09:24,977 INFO   - Connected to DCM4CHEE@localhost:11112 in 0.039 s
11:09:25,023 INFO   - Send N-ACTION Request using 1.2.840.10008.5.1.4.34.4.3/Unified Procedure Step - Pull SOP Class:
(0008,1195) UI #56 [1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32772.1] Transaction UID
(0074,1000) CS #12 [IN PROGRESS] Unified Procedure Step State

11:09:25,028 INFO   - DCM4CHEE(1) << 1:N-ACTION-RQ[pcid=7, actionID=1
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32772
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:09:25,094 INFO   - DCM4CHEE(1) >> 1:N-ACTION-RSP[pcid=7, actionID=1, status=0H
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32772
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:09:25,094 INFO   - Data:
(0008,1195) UI #56 [1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32772.1] Transaction UID
(0074,1000) CS #12 [IN PROGRESS] Unified Procedure Step State

11:09:25,095 INFO   - DCM4CHEE(1) << A-RELEASE-RQ
11:09:25,095 INFO   - DCM4CHEE(1) >> A-RELEASE-RP
11:09:25,095 INFO   - Released connection to DCM4CHEE@localhost:11112
11:09:25,096 INFO   - DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=59362]

and UPSEVENT receives:

11:09:25,115 INFO   - Association(2) accepted Socket[addr=/127.0.0.1,port=41920,localport=11113]
11:09:25,116 INFO   - Association(2): A-ASSOCIATE-RQ DCM4CHEE >> UPSEVENT
11:09:25,116 INFO   - DCM4CHEE(2): A-ASSOCIATE-AC UPSEVENT << DCM4CHEE
11:09:25,130 INFO   - DCM4CHEE(2) >> 1:N-EVENT-REPORT-RQ[pcid=1, eventID=1
    cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
    iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32772
    ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:09:25,130 INFO   - Data:
(0074,1000) CS #12 [IN PROGRESS] Unified Procedure Step State

11:09:25,130 INFO   - DCM4CHEE(2) << 1:N-EVENT-REPORT-RSP[pcid=1, eventID=1, status=0H]
11:09:25,152 INFO   - DCM4CHEE(2) >> A-RELEASE-RQ
11:09:25,153 INFO   - DCM4CHEE(2) << A-RELEASE-RP
11:09:25,203 INFO   - DCM4CHEE(2): close Socket[addr=/127.0.0.1,port=41920,localport=11113]
Change UPS status to CANCELED
dcmups chstate DCM4CHEE@localhost:11112 -state="CANCELED" -iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32772 -tuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32772.1
11:11:24,635 INFO   - Association(1) initiated Socket[addr=localhost/127.0.0.1,port=11112,localport=55815]
11:11:24,636 INFO   - DCM4CHEE(1): A-ASSOCIATE-RQ DCM4CHEE << DCMUPSSCU
11:11:24,642 INFO   - DCM4CHEE(1): A-ASSOCIATE-AC DCMUPSSCU >> DCM4CHEE
11:11:24,643 INFO   - Connected to DCM4CHEE@localhost:11112 in 0.039 s
11:11:24,690 INFO   - Send N-ACTION Request using 1.2.840.10008.5.1.4.34.4.3/Unified Procedure Step - Pull SOP Class:
(0008,1195) UI #56 [1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32772.1] Transaction UID
(0074,1000) CS #8 [CANCELED] Unified Procedure Step State

11:11:24,695 INFO   - DCM4CHEE(1) << 1:N-ACTION-RQ[pcid=7, actionID=1
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32772
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:11:24,756 INFO   - DCM4CHEE(1) >> 1:N-ACTION-RSP[pcid=7, actionID=1, status=0H
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32772
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:11:24,756 INFO   - Data:
(0008,1195) UI #56 [1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32772.1] Transaction UID
(0074,1000) CS #8 [CANCELED] Unified Procedure Step State

11:11:24,756 INFO   - DCM4CHEE(1) << A-RELEASE-RQ
11:11:24,757 INFO   - DCM4CHEE(1) >> A-RELEASE-RP
11:11:24,757 INFO   - Released connection to DCM4CHEE@localhost:11112
11:11:24,757 INFO   - DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=55815]

and UPSEVENT receives:

11:11:24,744 INFO   - Association(3) accepted Socket[addr=/127.0.0.1,port=56075,localport=11113]
11:11:24,748 INFO   - Association(3): A-ASSOCIATE-RQ DCM4CHEE >> UPSEVENT
11:11:24,748 INFO   - DCM4CHEE(3): A-ASSOCIATE-AC UPSEVENT << DCM4CHEE
11:11:24,749 INFO   - DCM4CHEE(3) >> 1:N-EVENT-REPORT-RQ[pcid=1, eventID=1
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32772
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:11:24,749 INFO   - Data:
(0074,1000) CS #8 [CANCELED] Unified Procedure Step State

11:11:24,749 INFO   - DCM4CHEE(3) << 1:N-EVENT-REPORT-RSP[pcid=1, eventID=1, status=0H]
11:11:24,751 INFO   - DCM4CHEE(3) >> A-RELEASE-RQ
11:11:24,751 INFO   - DCM4CHEE(3) << A-RELEASE-RP
11:11:24,802 INFO   - DCM4CHEE(3): close Socket[addr=/127.0.0.1,port=56075,localport=11113]
Retrieve canceled UPS
$ dcmups get DCM4CHEE@localhost:11112 -iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32772
11:13:36,540 INFO   - Association(1) initiated Socket[addr=localhost/127.0.0.1,port=11112,localport=35235]
11:13:36,542 INFO   - DCM4CHEE(1): A-ASSOCIATE-RQ DCM4CHEE << DCMUPSSCU
11:13:36,547 INFO   - DCM4CHEE(1): A-ASSOCIATE-AC DCMUPSSCU >> DCM4CHEE
11:13:36,548 INFO   - Connected to DCM4CHEE@localhost:11112 in 0.039 s
11:13:36,596 INFO   - DCM4CHEE(1) << 1:N-GET-RQ[pcid=7
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32772]
11:13:36,627 INFO   - DCM4CHEE(1) >> 1:N-GET-RSP[pcid=7, status=0H
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32772
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:13:36,647 INFO   - Data:
(0008,0016) UI #26 [1.2.840.10008.5.1.4.34.4.1] SOP Class UID
(0008,0018) UI #54 [1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32772] SOP Instance UID
(0008,1080) LO #0 [] Admitting Diagnoses Description
(0008,1195) UI #0 [] Transaction UID
(0010,0010) PN #18 [Simpson^Homer^Jay] Patient's Name
(0010,0020) LO #4 [7431] Patient ID
(0010,0021) LO #10 [99DCM4CHE] Issuer of Patient ID
(0010,0030) DA #8 [19551005] Patient's Birth Date
(0010,0040) CS #2 [M] Patient's Sex
(0010,1002) SQ #0 [] Other Patient IDs Sequence
(0020,000D) UI #8 [1.2.3.4] Study Instance UID
(0038,0010) LO #0 [] Admission ID
(0038,0014) SQ #0 [] Issuer of Admission ID Sequence
(0040,0400) LT #0 [] Comments on the Scheduled Procedure Step
(0040,4004) SQ #0 [] Scheduled Processing Applications Code Sequence
(0040,4005) DT #12 [201006101030] Scheduled Procedure Step Start DateTime
(0040,4010) DT #18 [20100924105757.305] Scheduled Procedure Step Modification Date Time
(0040,4018) SQ #-1 [1 item] Scheduled Workitem Code Sequence
>ITEM #1 @344:
>(0008,0100) SH #6 [110005] Code Value
>(0008,0102) SH #4 [DCM] Coding Scheme Designator
>(0008,0104) LO #14 [Interpretation] Code Meaning
(0040,4020) CS #10 [INCOMPLETE] Input Availability Flag
(0040,4021) SQ #0 [] Input Information Sequence
(0040,4025) SQ #0 [] Scheduled Station Name Code Sequence
(0040,4026) SQ #0 [] Scheduled Station Class Code Sequence
(0040,4027) SQ #0 [] Scheduled Station Geographic Location Code Sequence
(0040,4034) SQ #-1 [1 item] Scheduled Human Performers Sequence
>ITEM #1 @526:
>(0040,4009) SQ #-1 [1 item] Human Performer Code Sequence
>>ITEM #1 @546:
>>(0008,0100) SH #6 [axady] Code Value
>>(0008,0102) SH #6 [99Agfa] Coding Scheme Designator
>>(0008,0104) LO #16 [Gunter Zeilinger] Code Meaning
>(0040,4036) LO #16 [Agfa Healthcare] Human Performer's Organization
>(0040,4037) PN #16 [Zeilinger^Gunter] Human Performer's Name
(0040,A370) SQ #-1 [1 item] Referenced Request Sequence
>ITEM #1 @698:
>(0008,0050) SH #4 [5678] Accession Number
>(0020,000D) UI #8 [1.2.3.4] Study Instance UID
>(0032,1060) LO #0 [] Requested Procedure Description
>(0032,1064) SQ #0 [] Requested Procedure Code Sequence
>(0040,1001) SH #4 [1234] Requested Procedure ID
(0074,1000) CS #8 [CANCELED] Unified Procedure Step State
(0074,1002) SQ #0 [] Unified Procedure Step Progress Information Sequence
(0074,1200) CS #6 [MEDIUM] Scheduled Procedure Step Priority
(0074,1202) LO #22 [Sample Worklist Label] Worklist Label
(0074,1204) LO #28 [Sample Procedure Step Label] Procedure Step Label
(0074,1210) SQ #0 [] Scheduled Processing Parameters Sequence
(0074,1216) SQ #0 [] Unified Procedure Step Performed Procedure Sequence
(0074,1220) SQ #0 [] Related Procedure Step Sequence

11:13:36,647 INFO   - DCM4CHEE(1) << A-RELEASE-RQ
11:13:36,648 INFO   - DCM4CHEE(1) >> A-RELEASE-RP
11:13:36,648 INFO   - Released connection to DCM4CHEE@localhost:11112
11:13:36,648 INFO   - DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=35235]

Successful!

Because there is still one Deletion Lock on that UPS hold by a subscribed UPS Watcher SCU, the UPS was not deleted by the UPS SCP.

Unsubscribe from receiving UPS Event Reports about specific UPS

Unsubscribe UPS watcher from receiving UPS Event Reports about the canceled UPS
$ dcmups unsubscribe DCM4CHEE@localhost:11112 -aet UPSEVENT -iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32772
11:14:48,636 INFO   - Association(1) initiated Socket[addr=localhost/127.0.0.1,port=11112,localport=40694]
11:14:48,637 INFO   - DCM4CHEE(1): A-ASSOCIATE-RQ DCM4CHEE << DCMUPSSCU
11:14:48,660 INFO   - DCM4CHEE(1): A-ASSOCIATE-AC DCMUPSSCU >> DCM4CHEE
11:14:48,662 INFO   - Connected to DCM4CHEE@localhost:11112 in 0.057 s
11:14:48,704 INFO   - Send N-ACTION Request using 1.2.840.10008.5.1.4.34.4.2/Unified Procedure Step - Watch SOP Class:
(0074,1234) AE #8 [UPSEVENT] Receiving AE

11:14:48,709 INFO   - DCM4CHEE(1) << 1:N-ACTION-RQ[pcid=7, actionID=4
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32772
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:14:48,873 INFO   - DCM4CHEE(1) >> 1:N-ACTION-RSP[pcid=7, actionID=4, status=0H
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32772
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:14:48,873 INFO   - Data:
(0074,1234) AE #8 [UPSEVENT] Receiving AE

11:14:48,873 INFO   - DCM4CHEE(1) << A-RELEASE-RQ
11:14:48,874 INFO   - DCM4CHEE(1) >> A-RELEASE-RP
11:14:48,874 INFO   - Released connection to DCM4CHEE@localhost:11112
11:14:48,874 INFO   - DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=40694]

Successful!

Try to retrieve canceled UPS

Repeat retrieve of canceled UPS:

$ dcmups get DCM4CHEE@localhost:11112 -iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32772
11:15:32,607 INFO   - Association(1) initiated Socket[addr=localhost/127.0.0.1,port=11112,localport=39404]
11:15:32,608 INFO   - DCM4CHEE(1): A-ASSOCIATE-RQ DCM4CHEE << DCMUPSSCU
11:15:32,615 INFO   - DCM4CHEE(1): A-ASSOCIATE-AC DCMUPSSCU >> DCM4CHEE
11:15:32,616 INFO   - Connected to DCM4CHEE@localhost:11112 in 0.041 s
11:15:32,666 INFO   - DCM4CHEE(1) << 1:N-GET-RQ[pcid=7
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32772]
11:15:32,684 INFO   - DCM4CHEE(1) >> 1:N-GET-RSP[pcid=7, status=c307H
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32772]
11:15:32,685 INFO   - DCM4CHEE(1) << A-RELEASE-RQ
11:15:32,685 INFO   - DCM4CHEE(1) >> A-RELEASE-RP
11:15:32,685 INFO   - Released connection to DCM4CHEE@localhost:11112
11:15:32,685 INFO   - DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=39404]

Failed with error status C307H - Specified SOP Instance UID does not exist or is not a UPS Instance managed by this SCP.

Subscribe to receive UPS Event Reports about any UPS without Deletion Lock

Schedule new UPS from XML file

Schedule new UPS from XML file dcm4che-2.0.24/etc/dcmups/ncreate.xml:

$ dcm4che-2.0.24/bin/dcmups create DCM4CHEE@localhost:11112 -f dcm4che-2.0.24/etc/dcmups/ncreate.xml
14:58:16,233 INFO   - M-READ dcm4che-2.0.24/etc/dcmups/ncreate.xml
14:58:16,312 INFO   - Association(1) initiated Socket[addr=localhost/127.0.0.1,port=11112,localport=51750]
14:58:16,313 INFO   - DCM4CHEE(1): A-ASSOCIATE-RQ DCM4CHEE << DCMUPSSCU
14:58:16,319 INFO   - DCM4CHEE(1): A-ASSOCIATE-AC DCMUPSSCU >> DCM4CHEE
14:58:16,320 INFO   - Connected to DCM4CHEE@localhost:11112 in 0.037 s
14:58:16,368 INFO   - Send N-CREATE Request using 1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class:
(0008,1080) LO #0 [] Admitting Diagnoses Description
(0008,1195) UI #0 [] Transaction UID
(0010,0010) PN #18 [Simpson^Homer^Jay] Patient's Name
(0010,0020) LO #4 [7431] Patient ID
(0010,0021) LO #10 [99DCM4CHE] Issuer of Patient ID
(0010,0022) CS #0 [] Type of Patient ID
(0010,0030) DA #8 [19551005] Patient's Birth Date
(0010,0040) CS #2 [M] Patient's Sex
(0010,1002) SQ #0 [] Other Patient IDs Sequence
(0020,000D) UI #8 [1.2.3.4] Study Instance UID
(0038,0010) LO #0 [] Admission ID
(0038,0014) SQ #0 [] Issuer of Admission ID Sequence
(0040,0400) LT #0 [] Comments on the Scheduled Procedure Step
(0040,4004) SQ #0 [] Scheduled Processing Applications Code Sequence
(0040,4005) DT #12 [201006101030] Scheduled Procedure Step Start DateTime
(0040,4018) SQ #-1 [1 item] Scheduled Workitem Code Sequence
>ITEM #1:
>(0008,0100) SH #6 [110005] Code Value
>(0008,0102) SH #4 [DCM] Coding Scheme Designator
>(0008,0104) LO #14 [Interpretation] Code Meaning
(0040,4020) CS #10 [INCOMPLETE] Input Availability Flag
(0040,4021) SQ #0 [] Input Information Sequence
(0040,4025) SQ #0 [] Scheduled Station Name Code Sequence
(0040,4026) SQ #0 [] Scheduled Station Class Code Sequence
(0040,4027) SQ #0 [] Scheduled Station Geographic Location Code Sequence
(0040,4034) SQ #-1 [1 item] Scheduled Human Performers Sequence
>ITEM #1:
>(0040,4009) SQ #-1 [1 item] Human Performer Code Sequence
>>ITEM #1:
>>(0008,0100) SH #6 [axady] Code Value
>>(0008,0102) SH #6 [99Agfa] Coding Scheme Designator
>>(0008,0104) LO #16 [Gunter Zeilinger] Code Meaning
>(0040,4036) LO #16 [Agfa Healthcare] Human Performer's Organization
>(0040,4037) PN #16 [Zeilinger^Gunter] Human Performer's Name
(0040,A370) SQ #-1 [1 item] Referenced Request Sequence
>ITEM #1:
>(0008,0050) SH #4 [5678] Accession Number
>(0020,000D) UI #8 [1.2.3.4] Study Instance UID
>(0032,1060) LO #0 [] Requested Procedure Description
>(0032,1064) SQ #0 [] Requested Procedure Code Sequence
>(0040,1001) SH #4 [1234] Requested Procedure ID
(0074,1000) CS #10 [SCHEDULED] Unified Procedure Step State
(0074,1002) SQ #0 [] Unified Procedure Step Progress Information Sequence
(0074,1200) CS #6 [MEDIUM] Scheduled Procedure Step Priority
(0074,1202) LO #22 [Sample Worklist Label] Worklist Label
(0074,1204) LO #28 [Sample Procedure Step Label] Procedure Step Label
(0074,1210) SQ #0 [] Scheduled Processing Parameters Sequence
(0074,1216) SQ #0 [] Unified Procedure Step Performed Procedure Sequence
(0074,1220) SQ #0 [] Related Procedure Step Sequence

14:58:16,373 INFO   - DCM4CHEE(1) << 1:N-CREATE-RQ[pcid=7
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=null
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
14:58:16,414 INFO   - DCM4CHEE(1) >> 1:N-CREATE-RSP[pcid=7, status=0H
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32777]
14:58:16,414 INFO   - DCM4CHEE(1) << A-RELEASE-RQ
14:58:16,414 INFO   - DCM4CHEE(1) >> A-RELEASE-RP
14:58:16,414 INFO   - Released connection to DCM4CHEE@localhost:11112
14:58:16,415 INFO   - DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=51750]

Sucessfully created new UPS with SOP Instance UID: 1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32773.

Subscribe UPS watcher to receive UPS Event Reports about any UPS without Deletion Lock

Subscribe UPS watcher to receive UPS Event Reports about any UPS without Deletion Lock:

$ dcmups subscribe DCM4CHEE@localhost:11112 -aet UPSEVENT
14:58:59,110 INFO   - Association(1) initiated Socket[addr=localhost/127.0.0.1,port=11112,localport=44143]
14:58:59,112 INFO   - DCM4CHEE(1): A-ASSOCIATE-RQ DCM4CHEE << DCMUPSSCU
14:58:59,118 INFO   - DCM4CHEE(1): A-ASSOCIATE-AC DCMUPSSCU >> DCM4CHEE
14:58:59,119 INFO   - Connected to DCM4CHEE@localhost:11112 in 0.04 s
14:58:59,166 INFO   - Send N-ACTION Request using 1.2.840.10008.5.1.4.34.4.2/Unified Procedure Step - Watch SOP Class:
(0074,1230) CS #6 [FALSE] Deletion Lock
(0074,1234) AE #8 [UPSEVENT] Receiving AE

14:58:59,171 INFO   - DCM4CHEE(1) << 1:N-ACTION-RQ[pcid=7, actionID=3
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.840.10008.5.1.4.34.5
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
14:58:59,207 INFO   - DCM4CHEE(1) >> 1:N-ACTION-RSP[pcid=7, actionID=3, status=0H
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.840.10008.5.1.4.34.5
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
14:58:59,207 INFO   - Data:
(0074,1230) CS #6 [FALSE] Deletion Lock
(0074,1234) AE #8 [UPSEVENT] Receiving AE

14:58:59,207 INFO   - DCM4CHEE(1) << A-RELEASE-RQ
14:58:59,208 INFO   - DCM4CHEE(1) >> A-RELEASE-RP
14:58:59,208 INFO   - Released connection to DCM4CHEE@localhost:11112
14:58:59,208 INFO   - DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=44143]

Successful!

(warning) Different than in the case of the UPS specific subscription (with or without Deletion Lock) or in the case of the globally subscription with Deletion Lock , no initial UPS Event Reports about existing UPS were sent from the UPS SCP to UPSEVENT.

Change UPS status to IN PROGRESS
$ dcmups chstate DCM4CHEE@localhost:11112 -state="IN PROGRESS" -iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32777 -tuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32777.1
14:59:40,965 INFO   - Association(1) initiated Socket[addr=localhost/127.0.0.1,port=11112,localport=59119]
14:59:40,967 INFO   - DCM4CHEE(1): A-ASSOCIATE-RQ DCM4CHEE << DCMUPSSCU
14:59:40,973 INFO   - DCM4CHEE(1): A-ASSOCIATE-AC DCMUPSSCU >> DCM4CHEE
14:59:40,975 INFO   - Connected to DCM4CHEE@localhost:11112 in 0.041 s
14:59:41,022 INFO   - Send N-ACTION Request using 1.2.840.10008.5.1.4.34.4.3/Unified Procedure Step - Pull SOP Class:
(0008,1195) UI #56 [1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32777.1] Transaction UID
(0074,1000) CS #12 [IN PROGRESS] Unified Procedure Step State

14:59:41,027 INFO   - DCM4CHEE(1) << 1:N-ACTION-RQ[pcid=7, actionID=1
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32777
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
14:59:41,076 INFO   - DCM4CHEE(1) >> 1:N-ACTION-RSP[pcid=7, actionID=1, status=0H
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32777
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
14:59:41,076 INFO   - Data:
(0008,1195) UI #56 [1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32777.1] Transaction UID
(0074,1000) CS #12 [IN PROGRESS] Unified Procedure Step State

14:59:41,076 INFO   - DCM4CHEE(1) << A-RELEASE-RQ
14:59:41,077 INFO   - DCM4CHEE(1) >> A-RELEASE-RP
14:59:41,077 INFO   - DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=59119]
14:59:41,078 INFO   - Released connection to DCM4CHEE@localhost:11112

and UPSEVENT receives:

14:59:41,063 INFO   - Association(14) accepted Socket[addr=/127.0.0.1,port=42961,localport=11113]
14:59:41,064 INFO   - Association(14): A-ASSOCIATE-RQ DCM4CHEE >> UPSEVENT
14:59:41,064 INFO   - DCM4CHEE(14): A-ASSOCIATE-AC UPSEVENT << DCM4CHEE
14:59:41,066 INFO   - DCM4CHEE(14) >> 1:N-EVENT-REPORT-RQ[pcid=1, eventID=1
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32777
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
14:59:41,066 INFO   - Data:
(0074,1000) CS #12 [IN PROGRESS] Unified Procedure Step State

14:59:41,066 INFO   - DCM4CHEE(14) << 1:N-EVENT-REPORT-RSP[pcid=1, eventID=1, status=0H]
14:59:41,068 INFO   - DCM4CHEE(14) >> A-RELEASE-RQ
14:59:41,068 INFO   - DCM4CHEE(14) << A-RELEASE-RP
14:59:41,118 INFO   - DCM4CHEE(14): close Socket[addr=/127.0.0.1,port=42961,localport=11113]
Change UPS status to CANCELED
$ dcmups chstate DCM4CHEE@localhost:11112 -state="CANCELED" -iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32777 -tuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32777.1
15:00:44,231 INFO   - Association(1) initiated Socket[addr=localhost/127.0.0.1,port=11112,localport=38846]
15:00:44,233 INFO   - DCM4CHEE(1): A-ASSOCIATE-RQ DCM4CHEE << DCMUPSSCU
15:00:44,238 INFO   - DCM4CHEE(1): A-ASSOCIATE-AC DCMUPSSCU >> DCM4CHEE
15:00:44,239 INFO   - Connected to DCM4CHEE@localhost:11112 in 0.041 s
15:00:44,285 INFO   - Send N-ACTION Request using 1.2.840.10008.5.1.4.34.4.3/Unified Procedure Step - Pull SOP Class:
(0008,1195) UI #56 [1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32777.1] Transaction UID
(0074,1000) CS #8 [CANCELED] Unified Procedure Step State

15:00:44,290 INFO   - DCM4CHEE(1) << 1:N-ACTION-RQ[pcid=7, actionID=1
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32777
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
15:00:44,348 INFO   - DCM4CHEE(1) >> 1:N-ACTION-RSP[pcid=7, actionID=1, status=0H
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32777
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
15:00:44,349 INFO   - Data:
(0008,1195) UI #56 [1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32777.1] Transaction UID
(0074,1000) CS #8 [CANCELED] Unified Procedure Step State

15:00:44,349 INFO   - DCM4CHEE(1) << A-RELEASE-RQ
15:00:44,349 INFO   - DCM4CHEE(1) >> A-RELEASE-RP
15:00:44,349 INFO   - Released connection to DCM4CHEE@localhost:11112
15:00:44,349 INFO   - DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=38846]

and UPSEVENT receives:

15:00:44,337 INFO   - Association(15) accepted Socket[addr=/127.0.0.1,port=33542,localport=11113]
15:00:44,338 INFO   - Association(15): A-ASSOCIATE-RQ DCM4CHEE >> UPSEVENT
15:00:44,339 INFO   - DCM4CHEE(15): A-ASSOCIATE-AC UPSEVENT << DCM4CHEE
15:00:44,342 INFO   - DCM4CHEE(15) >> 1:N-EVENT-REPORT-RQ[pcid=1, eventID=1
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32777
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
15:00:44,343 INFO   - Data:
(0074,1000) CS #8 [CANCELED] Unified Procedure Step State

15:00:44,343 INFO   - DCM4CHEE(15) << 1:N-EVENT-REPORT-RSP[pcid=1, eventID=1, status=0H]
15:00:44,344 INFO   - DCM4CHEE(15) >> A-RELEASE-RQ
15:00:44,344 INFO   - DCM4CHEE(15) << A-RELEASE-RP
15:00:44,395 INFO   - DCM4CHEE(15): close Socket[addr=/127.0.0.1,port=33542,localport=11113]
Try to unsubscribe from receiving UPS Events about canceled UPS
$ dcmups unsubscribe DCM4CHEE@localhost:11112 -aet UPSEVENT -iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32777
15:01:51,468 INFO   - Association(1) initiated Socket[addr=localhost/127.0.0.1,port=11112,localport=50546]
15:01:51,470 INFO   - DCM4CHEE(1): A-ASSOCIATE-RQ DCM4CHEE << DCMUPSSCU
15:01:51,475 INFO   - DCM4CHEE(1): A-ASSOCIATE-AC DCMUPSSCU >> DCM4CHEE
15:01:51,477 INFO   - Connected to DCM4CHEE@localhost:11112 in 0.042 s
15:01:51,523 INFO   - Send N-ACTION Request using 1.2.840.10008.5.1.4.34.4.2/Unified Procedure Step - Watch SOP Class:
(0074,1234) AE #8 [UPSEVENT] Receiving AE

15:01:51,528 INFO   - DCM4CHEE(1) << 1:N-ACTION-RQ[pcid=7, actionID=4
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32777
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
15:01:51,546 INFO   - DCM4CHEE(1) >> 1:N-ACTION-RSP[pcid=7, actionID=4, status=c307H
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32777]
15:01:51,546 INFO   - DCM4CHEE(1) << A-RELEASE-RQ
15:01:51,546 INFO   - DCM4CHEE(1) >> A-RELEASE-RP
15:01:51,546 INFO   - Released connection to DCM4CHEE@localhost:11112
15:01:51,546 INFO   - DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=50546]

Failed with error status C307H - Specified SOP Instance UID does not exist or is not a UPS Instance managed by this SCP.

Because, UPSs with final state COMPLETED or CANCELED may be deleted by the UPS SCP, if no deletion lock on that UPS is hold by any subscribed UPS Watcher SCU.

Schedule new UPS from XML file

Schedule new UPS from XML file dcm4che-2.0.24/etc/dcmups/ncreate.xml:

$ dcmups create DCM4CHEE@localhost:11112 -f dcm4che-2.0.24/etc/dcmups/ncreate.xml
15:02:25,545 INFO   - M-READ dcm4che-2.0.24/etc/dcmups/ncreate.xml
15:02:25,624 INFO   - Association(1) initiated Socket[addr=localhost/127.0.0.1,port=11112,localport=44455]
15:02:25,624 INFO   - DCM4CHEE(1): A-ASSOCIATE-RQ DCM4CHEE << DCMUPSSCU
15:02:25,629 INFO   - DCM4CHEE(1): A-ASSOCIATE-AC DCMUPSSCU >> DCM4CHEE
15:02:25,630 INFO   - Connected to DCM4CHEE@localhost:11112 in 0.036 s
15:02:25,680 INFO   - Send N-CREATE Request using 1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class:
(0008,1080) LO #0 [] Admitting Diagnoses Description
(0008,1195) UI #0 [] Transaction UID
(0010,0010) PN #18 [Simpson^Homer^Jay] Patient's Name
(0010,0020) LO #4 [7431] Patient ID
(0010,0021) LO #10 [99DCM4CHE] Issuer of Patient ID
(0010,0022) CS #0 [] Type of Patient ID
(0010,0030) DA #8 [19551005] Patient's Birth Date
(0010,0040) CS #2 [M] Patient's Sex
(0010,1002) SQ #0 [] Other Patient IDs Sequence
(0020,000D) UI #8 [1.2.3.4] Study Instance UID
(0038,0010) LO #0 [] Admission ID
(0038,0014) SQ #0 [] Issuer of Admission ID Sequence
(0040,0400) LT #0 [] Comments on the Scheduled Procedure Step
(0040,4004) SQ #0 [] Scheduled Processing Applications Code Sequence
(0040,4005) DT #12 [201006101030] Scheduled Procedure Step Start DateTime
(0040,4018) SQ #-1 [1 item] Scheduled Workitem Code Sequence
>ITEM #1:
>(0008,0100) SH #6 [110005] Code Value
>(0008,0102) SH #4 [DCM] Coding Scheme Designator
>(0008,0104) LO #14 [Interpretation] Code Meaning
(0040,4020) CS #10 [INCOMPLETE] Input Availability Flag
(0040,4021) SQ #0 [] Input Information Sequence
(0040,4025) SQ #0 [] Scheduled Station Name Code Sequence
(0040,4026) SQ #0 [] Scheduled Station Class Code Sequence
(0040,4027) SQ #0 [] Scheduled Station Geographic Location Code Sequence
(0040,4034) SQ #-1 [1 item] Scheduled Human Performers Sequence
>ITEM #1:
>(0040,4009) SQ #-1 [1 item] Human Performer Code Sequence
>>ITEM #1:
>>(0008,0100) SH #6 [axady] Code Value
>>(0008,0102) SH #6 [99Agfa] Coding Scheme Designator
>>(0008,0104) LO #16 [Gunter Zeilinger] Code Meaning
>(0040,4036) LO #16 [Agfa Healthcare] Human Performer's Organization
>(0040,4037) PN #16 [Zeilinger^Gunter] Human Performer's Name
(0040,A370) SQ #-1 [1 item] Referenced Request Sequence
>ITEM #1:
>(0008,0050) SH #4 [5678] Accession Number
>(0020,000D) UI #8 [1.2.3.4] Study Instance UID
>(0032,1060) LO #0 [] Requested Procedure Description
>(0032,1064) SQ #0 [] Requested Procedure Code Sequence
>(0040,1001) SH #4 [1234] Requested Procedure ID
(0074,1000) CS #10 [SCHEDULED] Unified Procedure Step State
(0074,1002) SQ #0 [] Unified Procedure Step Progress Information Sequence
(0074,1200) CS #6 [MEDIUM] Scheduled Procedure Step Priority
(0074,1202) LO #22 [Sample Worklist Label] Worklist Label
(0074,1204) LO #28 [Sample Procedure Step Label] Procedure Step Label
(0074,1210) SQ #0 [] Scheduled Processing Parameters Sequence
(0074,1216) SQ #0 [] Unified Procedure Step Performed Procedure Sequence
(0074,1220) SQ #0 [] Related Procedure Step Sequence

15:02:25,685 INFO   - DCM4CHEE(1) << 1:N-CREATE-RQ[pcid=7
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=null
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
15:02:25,768 INFO   - DCM4CHEE(1) >> 1:N-CREATE-RSP[pcid=7, status=0H
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32778]
15:02:25,768 INFO   - DCM4CHEE(1) << A-RELEASE-RQ
15:02:25,768 INFO   - DCM4CHEE(1) >> A-RELEASE-RP
15:02:25,769 INFO   - Released connection to DCM4CHEE@localhost:11112
15:02:25,769 INFO   - DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=44455]

and UPSEVENT receives:

15:02:25,760 INFO   - Association(16) accepted Socket[addr=/127.0.0.1,port=58335,localport=11113]
15:02:25,761 INFO   - Association(16): A-ASSOCIATE-RQ DCM4CHEE >> UPSEVENT
15:02:25,761 INFO   - DCM4CHEE(16): A-ASSOCIATE-AC UPSEVENT << DCM4CHEE
15:02:25,767 INFO   - DCM4CHEE(16) >> 1:N-EVENT-REPORT-RQ[pcid=1, eventID=1
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32778
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
15:02:25,767 INFO   - Data:
(0074,1000) CS #10 [SCHEDULED] Unified Procedure Step State

15:02:25,767 INFO   - DCM4CHEE(16) << 1:N-EVENT-REPORT-RSP[pcid=1, eventID=1, status=0H]
15:02:25,768 INFO   - DCM4CHEE(16) >> A-RELEASE-RQ
15:02:25,768 INFO   - DCM4CHEE(16) << A-RELEASE-RP
15:02:25,818 INFO   - DCM4CHEE(16): close Socket[addr=/127.0.0.1,port=58335,localport=11113]

Suspend global subscription

Suspend global subscription of UPS watcher
$ dcmups suspend DCM4CHEE@localhost:11112 -aet UPSEVENT
15:05:17,241 INFO   - Association(1) initiated Socket[addr=localhost/127.0.0.1,port=11112,localport=55507]
15:05:17,243 INFO   - DCM4CHEE(1): A-ASSOCIATE-RQ DCM4CHEE << DCMUPSSCU
15:05:17,250 INFO   - DCM4CHEE(1): A-ASSOCIATE-AC DCMUPSSCU >> DCM4CHEE
15:05:17,251 INFO   - Connected to DCM4CHEE@localhost:11112 in 0.041 s
15:05:17,296 INFO   - Send N-ACTION Request using 1.2.840.10008.5.1.4.34.4.2/Unified Procedure Step - Watch SOP Class:
(0074,1234) AE #8 [UPSEVENT] Receiving AE

15:05:17,301 INFO   - DCM4CHEE(1) << 1:N-ACTION-RQ[pcid=7, actionID=5
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.840.10008.5.1.4.34.5
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
15:05:17,331 INFO   - DCM4CHEE(1) >> 1:N-ACTION-RSP[pcid=7, actionID=5, status=0H
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.840.10008.5.1.4.34.5
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
15:05:17,332 INFO   - Data:
(0074,1234) AE #8 [UPSEVENT] Receiving AE

15:05:17,332 INFO   - DCM4CHEE(1) << A-RELEASE-RQ
15:05:17,332 INFO   - DCM4CHEE(1) >> A-RELEASE-RP
15:05:17,332 INFO   - Released connection to DCM4CHEE@localhost:11112
15:05:17,332 INFO   - DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=55507]
Change UPS status to IN PROGRESS
$ dcmups chstate DCM4CHEE@localhost:11112 -state="IN PROGRESS" -iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32778 -tuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32778.1
15:10:59,853 INFO   - Association(1) initiated Socket[addr=localhost/127.0.0.1,port=11112,localport=49291]
15:10:59,854 INFO   - DCM4CHEE(1): A-ASSOCIATE-RQ DCM4CHEE << DCMUPSSCU
15:10:59,860 INFO   - DCM4CHEE(1): A-ASSOCIATE-AC DCMUPSSCU >> DCM4CHEE
15:10:59,862 INFO   - Connected to DCM4CHEE@localhost:11112 in 0.041 s
15:10:59,907 INFO   - Send N-ACTION Request using 1.2.840.10008.5.1.4.34.4.3/Unified Procedure Step - Pull SOP Class:
(0008,1195) UI #56 [1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32778.1] Transaction UID
(0074,1000) CS #12 [IN PROGRESS] Unified Procedure Step State

15:10:59,912 INFO   - DCM4CHEE(1) << 1:N-ACTION-RQ[pcid=7, actionID=1
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32778
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
15:10:59,953 INFO   - DCM4CHEE(1) >> 1:N-ACTION-RSP[pcid=7, actionID=1, status=0H
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32778
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
15:10:59,953 INFO   - Data:
(0008,1195) UI #56 [1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32778.1] Transaction UID
(0074,1000) CS #12 [IN PROGRESS] Unified Procedure Step State

15:10:59,954 INFO   - DCM4CHEE(1) << A-RELEASE-RQ
15:10:59,954 INFO   - DCM4CHEE(1) >> A-RELEASE-RP
15:10:59,954 INFO   - Released connection to DCM4CHEE@localhost:11112
15:10:59,954 INFO   - DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=49291]

and UPSEVENT still receives

15:10:59,940 INFO   - Association(17) accepted Socket[addr=/127.0.0.1,port=40297,localport=11113]
15:10:59,941 INFO   - Association(17): A-ASSOCIATE-RQ DCM4CHEE >> UPSEVENT
15:10:59,941 INFO   - DCM4CHEE(17): A-ASSOCIATE-AC UPSEVENT << DCM4CHEE
15:10:59,944 INFO   - DCM4CHEE(17) >> 1:N-EVENT-REPORT-RQ[pcid=1, eventID=1
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32778
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
15:10:59,944 INFO   - Data:
(0074,1000) CS #12 [IN PROGRESS] Unified Procedure Step State

15:10:59,944 INFO   - DCM4CHEE(17) << 1:N-EVENT-REPORT-RSP[pcid=1, eventID=1, status=0H]
15:10:59,947 INFO   - DCM4CHEE(17) >> A-RELEASE-RQ
15:10:59,947 INFO   - DCM4CHEE(17) << A-RELEASE-RP
15:10:59,998 INFO   - DCM4CHEE(17): close Socket[addr=/127.0.0.1,port=40297,localport=11113]

because suspend global subscription simply stop globally subscribing to new instances without removing specific subscriptions.

Change UPS status to CANCELED
$ dcmups chstate DCM4CHEE@localhost:11112 -state="CANCELED" -iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32778 -tuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32778.1
15:12:03,773 INFO   - Association(1) initiated Socket[addr=localhost/127.0.0.1,port=11112,localport=55417]
15:12:03,775 INFO   - DCM4CHEE(1): A-ASSOCIATE-RQ DCM4CHEE << DCMUPSSCU
15:12:03,781 INFO   - DCM4CHEE(1): A-ASSOCIATE-AC DCMUPSSCU >> DCM4CHEE
15:12:03,786 INFO   - Connected to DCM4CHEE@localhost:11112 in 0.041 s
15:12:03,834 INFO   - Send N-ACTION Request using 1.2.840.10008.5.1.4.34.4.3/Unified Procedure Step - Pull SOP Class:
(0008,1195) UI #56 [1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32778.1] Transaction UID
(0074,1000) CS #8 [CANCELED] Unified Procedure Step State

15:12:03,839 INFO   - DCM4CHEE(1) << 1:N-ACTION-RQ[pcid=7, actionID=1
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32778
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
15:12:03,902 INFO   - DCM4CHEE(1) >> 1:N-ACTION-RSP[pcid=7, actionID=1, status=0H
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32778
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
15:12:03,902 INFO   - Data:
(0008,1195) UI #56 [1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32778.1] Transaction UID
(0074,1000) CS #8 [CANCELED] Unified Procedure Step State

15:12:03,902 INFO   - DCM4CHEE(1) << A-RELEASE-RQ
15:12:03,903 INFO   - DCM4CHEE(1) >> A-RELEASE-RP
15:12:03,903 INFO   - Released connection to DCM4CHEE@localhost:11112
15:12:03,903 INFO   - DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=55417]

and UPSEVENT still receives

15:12:03,889 INFO   - Association(18) accepted Socket[addr=/127.0.0.1,port=45172,localport=11113]
15:12:03,890 INFO   - Association(18): A-ASSOCIATE-RQ DCM4CHEE >> UPSEVENT
15:12:03,890 INFO   - DCM4CHEE(18): A-ASSOCIATE-AC UPSEVENT << DCM4CHEE
15:12:03,895 INFO   - DCM4CHEE(18) >> 1:N-EVENT-REPORT-RQ[pcid=1, eventID=1
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32778
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
15:12:03,895 INFO   - Data:
(0074,1000) CS #8 [CANCELED] Unified Procedure Step State

15:12:03,895 INFO   - DCM4CHEE(18) << 1:N-EVENT-REPORT-RSP[pcid=1, eventID=1, status=0H]
15:12:03,899 INFO   - DCM4CHEE(18) >> A-RELEASE-RQ
15:12:03,899 INFO   - DCM4CHEE(18) << A-RELEASE-RP
15:12:03,949 INFO   - DCM4CHEE(18): close Socket[addr=/127.0.0.1,port=45172,localport=11113]
Schedule new UPS from XML file

Schedule new UPS from XML file dcm4che-2.0.24/etc/dcmups/ncreate.xml:

$ dcmups create DCM4CHEE@localhost:11112 -f dcm4che-2.0.24/etc/dcmups/ncreate.xml
15:13:01,937 INFO   - M-READ dcm4che-2.0.24/etc/dcmups/ncreate.xml
15:13:02,016 INFO   - Association(1) initiated Socket[addr=localhost/127.0.0.1,port=11112,localport=33073]
15:13:02,016 INFO   - DCM4CHEE(1): A-ASSOCIATE-RQ DCM4CHEE << DCMUPSSCU
15:13:02,023 INFO   - DCM4CHEE(1): A-ASSOCIATE-AC DCMUPSSCU >> DCM4CHEE
15:13:02,024 INFO   - Connected to DCM4CHEE@localhost:11112 in 0.038 s
15:13:02,070 INFO   - Send N-CREATE Request using 1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class:
(0008,1080) LO #0 [] Admitting Diagnoses Description
(0008,1195) UI #0 [] Transaction UID
(0010,0010) PN #18 [Simpson^Homer^Jay] Patient's Name
(0010,0020) LO #4 [7431] Patient ID
(0010,0021) LO #10 [99DCM4CHE] Issuer of Patient ID
(0010,0022) CS #0 [] Type of Patient ID
(0010,0030) DA #8 [19551005] Patient's Birth Date
(0010,0040) CS #2 [M] Patient's Sex
(0010,1002) SQ #0 [] Other Patient IDs Sequence
(0020,000D) UI #8 [1.2.3.4] Study Instance UID
(0038,0010) LO #0 [] Admission ID
(0038,0014) SQ #0 [] Issuer of Admission ID Sequence
(0040,0400) LT #0 [] Comments on the Scheduled Procedure Step
(0040,4004) SQ #0 [] Scheduled Processing Applications Code Sequence
(0040,4005) DT #12 [201006101030] Scheduled Procedure Step Start DateTime
(0040,4018) SQ #-1 [1 item] Scheduled Workitem Code Sequence
>ITEM #1:
>(0008,0100) SH #6 [110005] Code Value
>(0008,0102) SH #4 [DCM] Coding Scheme Designator
>(0008,0104) LO #14 [Interpretation] Code Meaning
(0040,4020) CS #10 [INCOMPLETE] Input Availability Flag
(0040,4021) SQ #0 [] Input Information Sequence
(0040,4025) SQ #0 [] Scheduled Station Name Code Sequence
(0040,4026) SQ #0 [] Scheduled Station Class Code Sequence
(0040,4027) SQ #0 [] Scheduled Station Geographic Location Code Sequence
(0040,4034) SQ #-1 [1 item] Scheduled Human Performers Sequence
>ITEM #1:
>(0040,4009) SQ #-1 [1 item] Human Performer Code Sequence
>>ITEM #1:
>>(0008,0100) SH #6 [axady] Code Value
>>(0008,0102) SH #6 [99Agfa] Coding Scheme Designator
>>(0008,0104) LO #16 [Gunter Zeilinger] Code Meaning
>(0040,4036) LO #16 [Agfa Healthcare] Human Performer's Organization
>(0040,4037) PN #16 [Zeilinger^Gunter] Human Performer's Name
(0040,A370) SQ #-1 [1 item] Referenced Request Sequence
>ITEM #1:
>(0008,0050) SH #4 [5678] Accession Number
>(0020,000D) UI #8 [1.2.3.4] Study Instance UID
>(0032,1060) LO #0 [] Requested Procedure Description
>(0032,1064) SQ #0 [] Requested Procedure Code Sequence
>(0040,1001) SH #4 [1234] Requested Procedure ID
(0074,1000) CS #10 [SCHEDULED] Unified Procedure Step State
(0074,1002) SQ #0 [] Unified Procedure Step Progress Information Sequence
(0074,1200) CS #6 [MEDIUM] Scheduled Procedure Step Priority
(0074,1202) LO #22 [Sample Worklist Label] Worklist Label
(0074,1204) LO #28 [Sample Procedure Step Label] Procedure Step Label
(0074,1210) SQ #0 [] Scheduled Processing Parameters Sequence
(0074,1216) SQ #0 [] Unified Procedure Step Performed Procedure Sequence
(0074,1220) SQ #0 [] Related Procedure Step Sequence

15:13:02,075 INFO   - DCM4CHEE(1) << 1:N-CREATE-RQ[pcid=7
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=null
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
15:13:02,121 INFO   - DCM4CHEE(1) >> 1:N-CREATE-RSP[pcid=7, status=0H
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32779]
15:13:02,121 INFO   - DCM4CHEE(1) << A-RELEASE-RQ
15:13:02,122 INFO   - DCM4CHEE(1) >> A-RELEASE-RP
15:13:02,122 INFO   - Released connection to DCM4CHEE@localhost:11112
15:13:02,122 INFO   - DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=33073]

UPSEVENT does not receive an UPS Event Report for the new scheduled UPS, because global subscription was suspended.

Subscribe to receive UPS Event Reports about any UPS with Deletion Lock

Subscribe UPS watcher to receive UPS Event Reports about any UPS with Deletion Lock
$ dcmups subscribe DCM4CHEE@localhost:11112 -aet UPSEVENT -dellock
15:19:50,375 INFO   - Association(1) initiated Socket[addr=localhost/127.0.0.1,port=11112,localport=39767]
15:19:50,377 INFO   - DCM4CHEE(1): A-ASSOCIATE-RQ DCM4CHEE << DCMUPSSCU
15:19:50,383 INFO   - DCM4CHEE(1): A-ASSOCIATE-AC DCMUPSSCU >> DCM4CHEE
15:19:50,385 INFO   - Connected to DCM4CHEE@localhost:11112 in 0.041 s
15:19:50,432 INFO   - Send N-ACTION Request using 1.2.840.10008.5.1.4.34.4.2/Unified Procedure Step - Watch SOP Class:
(0074,1230) CS #4 [TRUE] Deletion Lock
(0074,1234) AE #8 [UPSEVENT] Receiving AE

15:19:50,437 INFO   - DCM4CHEE(1) << 1:N-ACTION-RQ[pcid=7, actionID=3
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.840.10008.5.1.4.34.5
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
15:19:50,499 INFO   - DCM4CHEE(1) >> 1:N-ACTION-RSP[pcid=7, actionID=3, status=0H
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.840.10008.5.1.4.34.5
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
15:19:50,499 INFO   - Data:
(0074,1230) CS #4 [TRUE] Deletion Lock
(0074,1234) AE #8 [UPSEVENT] Receiving AE

15:19:50,499 INFO   - DCM4CHEE(1) << A-RELEASE-RQ
15:19:50,499 INFO   - DCM4CHEE(1) >> A-RELEASE-RP
15:19:50,500 INFO   - Released connection to DCM4CHEE@localhost:11112
15:19:50,500 INFO   - DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=39767]

, which causes the UPS SCP to send inital UPS Event Reports for already exisiting UPS to UPSEVENT:

15:19:50,485 INFO   - Association(19) accepted Socket[addr=/127.0.0.1,port=59385,localport=11113]
15:19:50,486 INFO   - Association(19): A-ASSOCIATE-RQ DCM4CHEE >> UPSEVENT
15:19:50,486 INFO   - DCM4CHEE(19): A-ASSOCIATE-AC UPSEVENT << DCM4CHEE
15:19:50,488 INFO   - DCM4CHEE(19) >> 1:N-EVENT-REPORT-RQ[pcid=1, eventID=1
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32779
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
15:19:50,488 INFO   - Data:
(0074,1000) CS #10 [SCHEDULED] Unified Procedure Step State

15:19:50,488 INFO   - DCM4CHEE(19) << 1:N-EVENT-REPORT-RSP[pcid=1, eventID=1, status=0H]
15:19:50,489 INFO   - DCM4CHEE(19) >> A-RELEASE-RQ
15:19:50,489 INFO   - DCM4CHEE(19) << A-RELEASE-RP
15:19:50,540 INFO   - DCM4CHEE(19): close Socket[addr=/127.0.0.1,port=59385,localport=11113]
[Change UPS status to IN PROGRESS
$ dcmups chstate DCM4CHEE@localhost:11112 -state="IN PROGRESS" -iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32779 -tuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32779.1
15:21:00,177 INFO   - Association(1) initiated Socket[addr=localhost/127.0.0.1,port=11112,localport=47669]
15:21:00,179 INFO   - DCM4CHEE(1): A-ASSOCIATE-RQ DCM4CHEE << DCMUPSSCU
15:21:00,185 INFO   - DCM4CHEE(1): A-ASSOCIATE-AC DCMUPSSCU >> DCM4CHEE
15:21:00,187 INFO   - Connected to DCM4CHEE@localhost:11112 in 0.042 s
15:21:00,236 INFO   - Send N-ACTION Request using 1.2.840.10008.5.1.4.34.4.3/Unified Procedure Step - Pull SOP Class:
(0008,1195) UI #56 [1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32779.1] Transaction UID
(0074,1000) CS #12 [IN PROGRESS] Unified Procedure Step State

15:21:00,241 INFO   - DCM4CHEE(1) << 1:N-ACTION-RQ[pcid=7, actionID=1
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32779
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
15:21:00,287 INFO   - DCM4CHEE(1) >> 1:N-ACTION-RSP[pcid=7, actionID=1, status=0H
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32779
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
15:21:00,287 INFO   - Data:
(0008,1195) UI #56 [1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32779.1] Transaction UID
(0074,1000) CS #12 [IN PROGRESS] Unified Procedure Step State

15:21:00,287 INFO   - DCM4CHEE(1) << A-RELEASE-RQ
15:21:00,288 INFO   - DCM4CHEE(1) >> A-RELEASE-RP
15:21:00,288 INFO   - Released connection to DCM4CHEE@localhost:11112
15:21:00,288 INFO   - DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=47669]

and UPSEVENT receives:

15:21:00,273 INFO   - Association(20) accepted Socket[addr=/127.0.0.1,port=37925,localport=11113]
15:21:00,274 INFO   - Association(20): A-ASSOCIATE-RQ DCM4CHEE >> UPSEVENT
15:21:00,275 INFO   - DCM4CHEE(20): A-ASSOCIATE-AC UPSEVENT << DCM4CHEE
15:21:00,276 INFO   - DCM4CHEE(20) >> 1:N-EVENT-REPORT-RQ[pcid=1, eventID=1
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32779
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
15:21:00,277 INFO   - Data:
(0074,1000) CS #12 [IN PROGRESS] Unified Procedure Step State

15:21:00,277 INFO   - DCM4CHEE(20) << 1:N-EVENT-REPORT-RSP[pcid=1, eventID=1, status=0H]
15:21:00,278 INFO   - DCM4CHEE(20) >> A-RELEASE-RQ
15:21:00,278 INFO   - DCM4CHEE(20) << A-RELEASE-RP
15:21:00,329 INFO   - DCM4CHEE(20): close Socket[addr=/127.0.0.1,port=37925,localport=11113]

Unsubscribe from receiving UPS Event Reports about any UPS

Unsubscribe UPS watcher from receiving UPS Event Reports about any UPS
$ dcmups unsubscribe DCM4CHEE@localhost:11112 -aet UPSEVENT
15:22:04,115 INFO   - Association(1) initiated Socket[addr=localhost/127.0.0.1,port=11112,localport=33855]
15:22:04,116 INFO   - DCM4CHEE(1): A-ASSOCIATE-RQ DCM4CHEE << DCMUPSSCU
15:22:04,122 INFO   - DCM4CHEE(1): A-ASSOCIATE-AC DCMUPSSCU >> DCM4CHEE
15:22:04,124 INFO   - Connected to DCM4CHEE@localhost:11112 in 0.04 s
15:22:04,171 INFO   - Send N-ACTION Request using 1.2.840.10008.5.1.4.34.4.2/Unified Procedure Step - Watch SOP Class:
(0074,1234) AE #8 [UPSEVENT] Receiving AE

15:22:04,177 INFO   - DCM4CHEE(1) << 1:N-ACTION-RQ[pcid=7, actionID=4
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.840.10008.5.1.4.34.5
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
15:22:04,229 INFO   - DCM4CHEE(1) >> 1:N-ACTION-RSP[pcid=7, actionID=4, status=0H
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.840.10008.5.1.4.34.5
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
15:22:04,229 INFO   - Data:
(0074,1234) AE #8 [UPSEVENT] Receiving AE

15:22:04,229 INFO   - DCM4CHEE(1) << A-RELEASE-RQ
15:22:04,229 INFO   - DCM4CHEE(1) >> A-RELEASE-RP
15:22:04,230 INFO   - Released connection to DCM4CHEE@localhost:11112
15:22:04,230 INFO   - DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=33855]
Change UPS status to CANCELED
$ dcmups chstate DCM4CHEE@localhost:11112 -state="CANCELED" -iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32779 -tuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32779.1
15:22:34,836 INFO   - Association(1) initiated Socket[addr=localhost/127.0.0.1,port=11112,localport=49636]
15:22:34,838 INFO   - DCM4CHEE(1): A-ASSOCIATE-RQ DCM4CHEE << DCMUPSSCU
15:22:34,843 INFO   - DCM4CHEE(1): A-ASSOCIATE-AC DCMUPSSCU >> DCM4CHEE
15:22:34,844 INFO   - Connected to DCM4CHEE@localhost:11112 in 0.04 s
15:22:34,890 INFO   - Send N-ACTION Request using 1.2.840.10008.5.1.4.34.4.3/Unified Procedure Step - Pull SOP Class:
(0008,1195) UI #56 [1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32779.1] Transaction UID
(0074,1000) CS #8 [CANCELED] Unified Procedure Step State

15:22:34,895 INFO   - DCM4CHEE(1) << 1:N-ACTION-RQ[pcid=7, actionID=1
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32779
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
15:22:34,914 INFO   - DCM4CHEE(1) >> 1:N-ACTION-RSP[pcid=7, actionID=1, status=c307H
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100924090207189.32779]
15:22:34,914 INFO   - DCM4CHEE(1) << A-RELEASE-RQ
15:22:34,914 INFO   - DCM4CHEE(1) >> A-RELEASE-RP
15:22:34,915 INFO   - Released connection to DCM4CHEE@localhost:11112
15:22:34,915 INFO   - DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=49636]

UPSEVENT does not receive an UPS Event Report about the canceled UPS.