dcm4che3 CGET illegal unique key attribute (0020000d) in the patient level retrieve

142 views
Skip to first unread message

chen chen

unread,
May 12, 2020, 5:13:00 AM5/12/20
to dcm4che
I use dcm4che3 in Java code. I called the CGET method CGET (string cuid, int priority, attributes data, string tsuid, dimselsphandler rspahandler) of the association, but when I executed, the system log output errorcomment = illegal unique key attribute (0020000d) in the patient level retrieve. So how can I pass this value on to him

Gunter Zeilinger

unread,
May 14, 2020, 12:55:49 AM5/14/20
to dcm...@googlegroups.com
You can't. Guess you actually want to retrieve on STUDY level.


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, May 12, 2020 11:13 AM, chen chen <7566...@qq.com> wrote:

I use dcm4che3 in Java code. I called the CGET method CGET (string cuid, int priority, attributes data, string tsuid, dimselsphandler rspahandler) of the association, but when I executed, the system log output errorcomment = illegal unique key attribute (0020000d) in the patient level retrieve. So how can I pass this value on to him


--
You received this message because you are subscribed to the Google Groups "dcm4che" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+u...@googlegroups.com.

chen chen

unread,
May 14, 2020, 2:31:33 AM5/14/20
to dcm4che
you are right. My retrieval is really at the study level.So,Which parameter in the parameter list should I pass this value.Hope to receive your reply。Thanks

在 2020年5月14日星期四 UTC+8下午12:55:49,gunterze写道:
You can't. Guess you actually want to retrieve on STUDY level.


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, May 12, 2020 11:13 AM, chen chen <7566...@qq.com> wrote:

I use dcm4che3 in Java code. I called the CGET method CGET (string cuid, int priority, attributes data, string tsuid, dimselsphandler rspahandler) of the association, but when I executed, the system log output errorcomment = illegal unique key attribute (0020000d) in the patient level retrieve. So how can I pass this value on to him


--
You received this message because you are subscribed to the Google Groups "dcm4che" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dcm...@googlegroups.com.

Gunter Zeilinger

unread,
May 14, 2020, 3:14:12 AM5/14/20
to dcm...@googlegroups.com
keys.setString(Tag.QueryRetrieveLevel, VR.CS, "STUDY")


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

chen chen

unread,
May 14, 2020, 3:46:26 AM5/14/20
to dcm4che

1589442250(1).jpg

1589442208(1).jpgI specified the retrieval level,But the same thing will happen.



在 2020年5月14日星期四 UTC+8下午3:14:12,gunterze写道:
keys.setString(Tag.QueryRetrieveLevel, VR.CS, "STUDY")


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, May 12, 2020 11:29 AM, 'Gunter Zeilinger' via dcm4che <dcm...@googlegroups.com> wrote:

You can't. Guess you actually want to retrieve on STUDY level.


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, May 12, 2020 11:13 AM, chen chen <7566...@qq.com> wrote:

I use dcm4che3 in Java code. I called the CGET method CGET (string cuid, int priority, attributes data, string tsuid, dimselsphandler rspahandler) of the association, but when I executed, the system log output errorcomment = illegal unique key attribute (0020000d) in the patient level retrieve. So how can I pass this value on to him


--
You received this message because you are subscribed to the Google Groups "dcm4che" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dcm...@googlegroups.com.


--
You received this message because you are subscribed to the Google Groups "dcm4che" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dcm...@googlegroups.com.

Gunter Zeilinger

unread,
May 14, 2020, 4:45:44 AM5/14/20
to dcm...@googlegroups.com
Show me the log of the C-GET RQ you sent out.


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+u...@googlegroups.com.

chen chen

unread,
May 14, 2020, 5:43:49 AM5/14/20
to dcm4che

2020-05-14 17:36:48,726 INFO  -> (TCPServer-1-1) [org.dcm4cheri.net.FsmImpl.<init>(FsmImpl.java:112)] Socket[addr=/127.0.0.1,port=49216,localport=11112]
2020-05-14 17:36:48,729 INFO  OVIYAM2->DCM4CHEE (TCPServer-1-1) [org.dcm4cheri.net.FsmImpl.fireReceived(FsmImpl.java:749)] received AAssociateRQ
appCtxName: 1.2.840.10008.3.1.1.1/DICOM Application Context Name
        implClass: 1.2.40.0.13.1.3
implVersion: dcm4che-5.22.0
calledAET: DCM4CHEE
callingAET: OVIYAM2
maxPDULen: 16378
asyncOpsWindow:
pc-251: as=1.2.840.10008.5.1.4.1.2.2.3/Study Root Query/Retrieve Information Model - GET
ts=1.2.840.10008.1.2.1/Explicit VR Little Endian
ts=1.2.840.10008.1.2/Implicit VR Little Endian
2020-05-14 17:36:48,731 INFO  OVIYAM2->DCM4CHEE (TCPServer-1-1) [org.dcm4cheri.net.FsmImpl.fireWrite(FsmImpl.java:726)] sending AAssociateAC
appCtxName: 1.2.840.10008.3.1.1.1/DICOM Application Context Name
implClass: 1.2.40.0.13.1.1.1
implVersion: @VERSIONNAME@
calledAET: DCM4CHEE
callingAET: OVIYAM2
maxPDULen: 16352
asyncOpsWindow:
pc-251: 0 - acceptance
ts=1.2.840.10008.1.2/Implicit VR Little Endian
2020-05-14 17:36:48,753 INFO  OVIYAM2->DCM4CHEE (TCPServer-1-1) [org.dcm4cheri.net.FsmImpl.fireReceived(FsmImpl.java:689)] received [pc-251] 1:C_FIND_RQ with Dataset
class: 1.2.840.10008.5.1.4.1.2.2.3/Study Root Query/Retrieve Information Model - GET
2020-05-14 17:36:48,754 INFO  OVIYAM2->DCM4CHEE (TCPServer-1-1) [org.dcm4cheri.net.FsmImpl.fireWrite(FsmImpl.java:705)] sending [pc-251] 1:C_FIND_RSP
class: 1.2.840.10008.5.1.4.1.2.2.3/Study Root Query/Retrieve Information Model - GET
status: 211
2020-05-14 17:36:48,763 INFO  OVIYAM2->DCM4CHEE (ActiveAssoc-70-1) [org.dcm4cheri.net.FsmImpl.fireReceived(FsmImpl.java:689)] received [pc-251] 1:C_GET_RQ with Dataset
class: 1.2.840.10008.5.1.4.1.2.2.3/Study Root Query/Retrieve Information Model - GET
2020-05-14 17:36:48,763 DEBUG OVIYAM2->DCM4CHEE (ActiveAssoc-70-1) [org.dcm4chex.archive.dcm.qrscp.GetScp.c_get(GetScp.java:96)] Identifier:

2020-05-14 17:36:48,763 DEBUG OVIYAM2->DCM4CHEE (ActiveAssoc-70-1) [org.dcm4chex.archive.dcm.qrscp.GetScp.c_get(GetScp.java:97)] 0000 (0008,0016) UI #0 *0 [] //SOP Class UID
0008 (0008,0018) UI #0 *0 [] //SOP Instance UID
0016 (0008,0020) DA #0 *0 [] //Study Date
0024 (0008,0021) DA #0 *0 [] //Series Date
0032 (0008,0030) TM #0 *0 [] //Study Time
0040 (0008,0031) TM #0 *0 [] //Series Time
0048 (0008,0050) SH #0 *0 [] //Accession Number
0056 (0008,0052) CS #6 *1 [STUDY] //Query/Retrieve Level
0070 (0008,0060) CS #0 *0 [] //Modality
0078 (0008,0061) CS #6 *1 [RTPLAN] //Modalities in Study
0092 (0008,0080) LO #0 *0 [] //Institution Name
0100 (0008,0090) PN #0 *0 [] //Referring Physician's Name
0108 (0008,1030) LO #0 *0 [] //Study Description
0116 (0008,103E) LO #0 *0 [] //Series Description
0124 (0010,0010) PN #2 *1 [*] //Patient's Name
0134 (0010,0020) LO #0 *0 [] //Patient ID
0142 (0010,0030) DA #0 *0 [] //Patient's Birth Date
0150 (0010,0040) CS #0 *0 [] //Patient's Sex
0158 (0018,0015) CS #0 *0 [] //Body Part Examined
0166 (0020,000D) UI #56 *1 [1.3.12.2.1107.5.1.4.95787.30000018111202051864200000013] //Study Instance UID
0230 (0020,000E) UI #46 *1 [1.2.276.0.7230010.3.1.4.0.2012.1542103331.236] //Series Instance UID
0284 (0020,0010) SH #0 *0 [] //Study ID
0292 (0020,0011) IS #0 *0 [] //Series Number
0300 (0020,0013) IS #0 *0 [] //Instance Number
0308 (0020,0052) UI #0 *0 [] //Frame of Reference UID
0316 (0020,1041) DS #0 *0 [] //Slice Location
0324 (0020,1206) IS #0 *0 [] //Number of Study Related Series
0332 (0020,1208) IS #0 *0 [] //Number of Study Related Instances
0340 (0020,1209) IS #0 *0 [] //Number of Series Related Instances
0348 (0020,4000) LT #0 *0 [] //Image Comments
0356 (0028,0008) IS #0 *0 [] //Number of Frames
0364 (0028,0010) US #0 *0 [] //Rows
0372 (0028,0011) US #0 *0 [] //Columns
2020-05-14 17:36:48,766 INFO  OVIYAM2->DCM4CHEE (ActiveAssoc-70-1) [org.dcm4cheri.net.FsmImpl.fireWrite(FsmImpl.java:705)] sending [pc-251] 1:C_GET_RSP
class: 1.2.840.10008.5.1.4.1.2.2.3/Study Root Query/Retrieve Information Model - GET
status: a900
error comment: Illegal Unique Key Attribute (0020,000E) in STUDY Level Retrieve
2020-05-14 17:36:48,767 INFO  OVIYAM2->DCM4CHEE (TCPServer-1-1) [org.dcm4cheri.net.FsmImpl.fireReceived(FsmImpl.java:749)] received A-RELEASE-RQ
2020-05-14 17:36:48,768 INFO  OVIYAM2->DCM4CHEE (TCPServer-1-1) [org.dcm4cheri.net.FsmImpl.fireWrite(FsmImpl.java:726)] sending A-RELEASE-RP
2020-05-14 17:36:48,819 INFO  OVIYAM2->DCM4CHEE (TCPServer-1-1) [org.dcm4cheri.net.FsmImpl$1.entry(FsmImpl.java:990)] closing connection - Socket[addr=/127.0.0.1,port=49216,localport=11112]
2020-05-14 17:36:48,819 INFO  -> (TCPServer-1-1) [org.dcm4cheri.server.ServerImpl.run(ServerImpl.java:303)] finished - Socket[addr=/127.0.0.1,port=49216,localport=11112]

在 2020年5月14日星期四 UTC+8下午4:45:44,gunterze写道:

chen chen

unread,
May 14, 2020, 5:48:54 AM5/14/20
to dcm4che
Please look at this log. There is something wrong with the log above.
2020-05-14 17:46:52,538 INFO  -> (TCPServer-1) [org.dcm4cheri.net.FsmImpl.<init>(FsmImpl.java:112)] Socket[addr=/127.0.0.1,port=49817,localport=11112]
2020-05-14 17:46:52,541 INFO  OVIYAM2->DCM4CHEE (TCPServer-1) [org.dcm4cheri.net.FsmImpl.fireReceived(FsmImpl.java:749)] received AAssociateRQ
appCtxName: 1.2.840.10008.3.1.1.1/DICOM Application Context Name
implClass: 1.2.40.0.13.1.3
implVersion: dcm4che-5.22.0
calledAET: DCM4CHEE
callingAET: OVIYAM2
maxPDULen: 16378
asyncOpsWindow:
pc-251: as=1.2.840.10008.5.1.4.1.2.2.3/Study Root Query/Retrieve Information Model - GET
ts=1.2.840.10008.1.2.1/Explicit VR Little Endian
ts=1.2.840.10008.1.2/Implicit VR Little Endian
2020-05-14 17:46:52,544 INFO  OVIYAM2->DCM4CHEE (TCPServer-1) [org.dcm4cheri.net.FsmImpl.fireWrite(FsmImpl.java:726)] sending AAssociateAC
appCtxName: 1.2.840.10008.3.1.1.1/DICOM Application Context Name
implClass: 1.2.40.0.13.1.1.1
implVersion: @VERSIONNAME@
calledAET: DCM4CHEE
callingAET: OVIYAM2
maxPDULen: 16352
asyncOpsWindow:
pc-251: 0 - acceptance
ts=1.2.840.10008.1.2/Implicit VR Little Endian
2020-05-14 17:46:52,569 INFO  OVIYAM2->DCM4CHEE (TCPServer-1) [org.dcm4cheri.net.FsmImpl.fireReceived(FsmImpl.java:689)] received [pc-251] 1:C_GET_RQ with Dataset
class: 1.2.840.10008.5.1.4.1.2.2.3/Study Root Query/Retrieve Information Model - GET
2020-05-14 17:46:52,570 DEBUG OVIYAM2->DCM4CHEE (TCPServer-1) [org.dcm4chex.archive.dcm.qrscp.GetScp.c_get(GetScp.java:96)] Identifier:
2020-05-14 17:46:52,570 DEBUG OVIYAM2->DCM4CHEE (TCPServer-1) [org.dcm4chex.archive.dcm.qrscp.GetScp.c_get(GetScp.java:97)] 0000 (0008,0016) UI #0 *0 [] //SOP Class UID
2020-05-14 17:46:52,577 INFO  OVIYAM2->DCM4CHEE (TCPServer-1) [org.dcm4cheri.net.FsmImpl.fireWrite(FsmImpl.java:705)] sending [pc-251] 1:C_GET_RSP
class: 1.2.840.10008.5.1.4.1.2.2.3/Study Root Query/Retrieve Information Model - GET
status: a900
error comment: Illegal Unique Key Attribute (0020,000E) in STUDY Level Retrieve
2020-05-14 17:46:52,582 INFO  OVIYAM2->DCM4CHEE (ActiveAssoc-71-1) [org.dcm4cheri.net.FsmImpl.fireReceived(FsmImpl.java:749)] received A-RELEASE-RQ
2020-05-14 17:46:52,582 INFO  OVIYAM2->DCM4CHEE (ActiveAssoc-71-1) [org.dcm4cheri.net.FsmImpl.fireWrite(FsmImpl.java:726)] sending A-RELEASE-RP
2020-05-14 17:46:52,583 INFO  -> (TCPServer-1) [org.dcm4cheri.server.ServerImpl.run(ServerImpl.java:303)] finished - Socket[addr=/127.0.0.1,port=49817,localport=11112]
2020-05-14 17:46:52,634 INFO  OVIYAM2->DCM4CHEE (ActiveAssoc-71-1) [org.dcm4cheri.net.FsmImpl$1.entry(FsmImpl.java:990)] closing connection - Socket[addr=/127.0.0.1,port=49817,localport=11112]

在 2020年5月14日星期四 UTC+8下午4:45:44,gunterze写道:
Show me the log of the C-GET RQ you sent out.

Gunter Zeilinger

unread,
May 14, 2020, 6:03:38 AM5/14/20
to dcm...@googlegroups.com
Looks rather like query keys of a C-FIND RQ and not like retrieve keys (=just
(0008,0052) CS #6 *1 [STUDY] //Query/Retrieve Level
0020,000D) UI #56 *1 [1.3.12.2.1107.5.1.4.95787.30000018111202051864200000013] //Study Instance UID
) of a C-GET RQ

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+u...@googlegroups.com.

chen chen

unread,
May 14, 2020, 6:10:56 AM5/14/20
to dcm4che
I'm sorry, please look at the second log. The first time I had a problem with my code.

在 2020年5月14日星期四 UTC+8下午6:03:38,gunterze写道:

Gunter Zeilinger

unread,
May 14, 2020, 8:20:38 AM5/14/20
to dcm...@googlegroups.com
2020-05-14 17:46:52,570 DEBUG OVIYAM2->DCM4CHEE (TCPServer-1) [org.dcm4chex.archive.dcm.qrscp.GetScp.c_get(GetScp.java:96)] Identifier:
2020-05-14 17:46:52,570 DEBUG OVIYAM2->DCM4CHEE (TCPServer-1) [org.dcm4chex.archive.dcm.qrscp.GetScp.c_get(GetScp.java:97)] 0000 (0008,0016) UI #0 *0 [] //SOP Class UID


There is neither
(0008,0052) CS #6 *1 [STUDY] //Query/Retrieve Level
nor
(0020,000D) UI #56 *1 [1.3.12.2.1107.5.1.4.95787.30000018111202051864200000013] //Study Instance UID

Use dcm4che's getscu utility to ses how it looks right.
$ getscu -cAET@host:port -mStudyInstanceUID=
1.3.12.2.1107.5.1.4.95787.30000018111202051864200000013


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+u...@googlegroups.com.

chen chen

unread,
May 15, 2020, 3:23:45 AM5/15/20
to dcm4che
I would like to ask you two questions.
First question, I found this problem when I used it.
log:2020-05-15 15:14:20,526 INFO  GETSCU->DCM4CHEE (Thread-662) [org.dcm4chex.archive.dcm.qrscp.GetTask.noPresentationContext(GetTask.java:189)]No Presentation Context for 1.2.840.10008.5.1.4.1.1.481.8/RT Ion Plan Storage offered by GETSCU
Cannot send 1 instances of this class
Do you think this problem is caused by my code or PACS server.
Second question,These in your code1589527337(1).jpg
Do these InformationModel have any direct relationship with the retrieval community


在 2020年5月14日星期四 UTC+8下午8:20:38,gunterze写道:

Gunter Zeilinger

unread,
May 15, 2020, 3:50:46 AM5/15/20
to dcm...@googlegroups.com
You did not offer a Presentation Context for 1.2.840.10008.5.1.4.1.1.481.8/RT Ion Plan Storage in the A-ASSOCIATE RQ invoked by GETSCU.

dcm4che's getscu utility does not offer that Presentation Context by default. You may comment in the corresponding line in $DCM4CHE/etc/getscu/store-tcs.properties:

#RTIonPlanStorage:\
#ImplicitVRLittleEndian;ExplicitVRLittleEndian

getscu does not only support to act as SCU of the Study Root Query/Retrieve Information Model - GET SOP Class but also

$ getscu -h
usage: getscu [options] -c <aet>@<host>:<port> [dcmfile_in...]

The getscu application implements a Service Class User (SCU) for the
Query/Retrieve, the Composite Instance Root Retrieve, the Hanging Protocol
Query/Retrieve and the Color Palette Query/Retrieve Service Class.
...
 -M <name>                                specifies Information Model.
                                          Supported names: PatientRoot,
                                          StudyRoot, PatientStudyOnly,
                                          CompositeInstanceRoot,
                                          WithoutBulkData, HangingProtocol
                                          or ColorPalette. If no
                                          Information Model is specified,
                                          StudyRoot will be used.

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+u...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages