I am using DCMTK 3.6.7 (64 Bit) version.
I am using strscp for receiving DICOM images.
The command i run is this,
storescp.exe -d +xy 104
The error happens in function 'storeSCPCallback' of class storescp.cc.
The below string comparison fails,
Code: Select all
else if (strcmp(sopInstance, req->AffectedSOPInstanceUID) != 0)
{
rsp->DimseStatus = STATUS_STORE_Error_DataSetDoesNotMatchSOPClass;
}
Here is the log of client which exports the image,
Code: Select all
2023-04-26 09:40:31.411 INFO 17116 ===================== OUTGOING DIMSE MESSAGE ====================
2023-04-26 09:40:31.411 INFO 17116 Message Type : C-STORE RQ
2023-04-26 09:40:31.411 INFO 17116 Message ID : 1
2023-04-26 09:40:31.411 INFO 17116 Affected SOP Class UID : VLSlideCoordinatesMicroscopicImageStorage
2023-04-26 09:40:31.411 INFO 17116 Affected SOP Instance UID : 1.2.276.0.118.696685194.21556.1682492941.488
2023-04-26 09:40:31.411 INFO 17116 Data Set : present
2023-04-26 09:40:31.411 INFO 17116 Priority : low
2023-04-26 09:40:31.411 INFO 17116 ======================= END DIMSE MESSAGE =======================
from 1.2.276.0.118.696685194.21556.1682492941.488 [to] 1.2.276.0.7230010.3.1.4.696685194.19676.1682494815.643
In the image which is received and stored on the disk has original UID stored in tag ====> Referenced SOP Instance UID which is 1.2.276.0.118.696685194.21556.1682492941.488
So, the comparison happens between,
sopInstance = 1.2.276.0.7230010.3.1.4.696685194.19676.1682494815.643
and
AffectedSOPInstanceUID = 1.2.276.0.118.696685194.21556.1682492941.488
which obviously fails, and gives the 0xa900 error.
How can i overcome this ?
Should i use any output option which prevents from creating new Instance UID and the comparison passes ?
Here is the partial image dump in txt
Code: Select all
(Group,Element) TAG Description VR VM Length Value
(0002,0000) File Meta Information Group Length UL 1 4 218
(0002,0001) File Meta Information Version OB 1 2 00\01
(0002,0002) Media Storage SOP Class UID UI 1 30 1.2.840.10008.5.1.4.1.1.77.1.3
(0002,0003) Media Storage SOP Instance UID UI 1 54 1.2.276.0.7230010.3.1.4.696685194.19676.1682494815.643
(0002,0010) Transfer Syntax UID UI 1 22 1.2.840.10008.1.2.4.50 (JPEG Baseline(Process 1))
(0002,0012) Implementation Class UID UI 1 28 1.2.276.0.7230010.3.0.3.6.6
(0002,0013) Implementation Version Name SH 1 16 OFFIS_DCMTK_366
(0002,0016) Source Application Entity Title AE 1 6 Local
(0008,0005) Specific Character Set CS 1 10 ISO_IR 192
(0008,0008) Image Type CS 2 16 DERIVED\PRIMARY
(0008,0016) SOP Class UID UI 1 30 1.2.840.10008.5.1.4.1.1.77.1.3
(0008,0018) SOP Instance UID UI 1 54 1.2.276.0.7230010.3.1.4.696685194.19676.1682494815.643
(0008,0020) Study Date DA 1 8 20230412
(0008,0021) Series Date DA 1 8 20230412
(0008,0023) Content Date DA 1 8 20230412
(0008,0030) Study Time TM 1 6 120709
(0008,0031) Series Time TM 1 6 120717
(0008,0033) Content Time TM 1 6 120717
(0008,0050) Accession Number SH 0 0
(0008,0060) Modality CS 1 2 SM
(0008,0064) Conversion Type CS 1 4 WSD
(0008,0070) Manufacturer LO 1 32 MetaSystems Hard & Software GmbH
(0008,0080) Institution Name LO 1 16 XYZ Institution
(0008,0090) Referring Physician Name PN 0 0
(0008,1010) Station Name SH 1 12 AT-LT-WIN10
(0008,1030) Study Description LO 1 14 CLL-VTS7_CLLDF
(0008,103E) Series Description LO 1 34 Cu - / Sl XT / Sc C / Field 1
(0008,1090) Manufacturer Model Name LO 1 16 MetaSystems Neon
(0008,2111) Derivation Description ST 1 86 Lossy compression with JPEG baseline, IJG quality factor 90, compression ratio 91.861
(0008,2112) Source Image Sequence SQ 1 176
(FFFE,E000) Item 1 168
(0008,1150) Referenced SOP Class UID UI 1 30 1.2.840.10008.5.1.4.1.1.77.1.3
(0008,1155) Referenced SOP Instance UID UI 1 44 1.2.276.0.118.696685194.21556.1682492941.488
(0040,A170) Purpose Of Reference Code Sequence SQ 1 66
(FFFE,E000) Item 1 58
(0008,0100) Code Value SH 1 6 121320
(0008,0102) Coding Scheme Designator SH 1 4 DCM
(0008,0104) Code Meaning LO 1 24 Uncompressed predecessor
(FFFE,E00D) Item Delimitation Item 0
(FFFE,E0DD) Sequence Delimitation Item 0
(FFFE,E00D) Item Delimitation Item 0
(FFFE,E0DD) Sequence Delimitation Item 0