Dear Mr. Sabin,
Good News.
I converted the following query.txt into a valid query.dcm file using dump2dcm:
_________________________________
# query patient names and IDs
(0008,0052) CS [PATIENT] # QueryRetrieveLevel
(0010,0010) PN [] # PatientsName
(0010,0020) LO [] # PatientID
_________________________________
obtaining the following result:
_____________________________________________________________
C:\home>findscu -X -v -P -aec ACME_STORE localhost 104 query.dcm
Requesting Association
Association Accepted (Max Send PDV: 8180)
Find SCU RQ: MsgID 1
REQUEST:
# Dicom-Data-Set
# Used TransferSyntax: LittleEndianExplicit
(0008,0052) CS [PATIENT ] # 8, 1 QueryRetrieveLe
vel
(0010,0010) PN (no value available) # 0, 0 PatientName
(0010,0020) LO (no value available) # 0, 0 PatientID
--------
RESPONSE: 1 (Pending)
# Dicom-Data-Set
# Used TransferSyntax: LittleEndianExplicit
(0008,0052) CS [PATIENT ] # 8, 1 QueryRetrieveLe
vel
(0008,0054) AE [ACME_STORE] # 10, 1 RetrieveAETitle
(0010,0010) PN [XXXX DEMO ] # 10, 1 PatientName
(0010,0020) LO [556342B ] # 8, 1 PatientID
--------
RESPONSE: 2 (Pending)
# Dicom-Data-Set
# Used TransferSyntax: LittleEndianExplicit
(0008,0052) CS [PATIENT ] # 8, 1 QueryRetrieveLe
vel
(0008,0054) AE [ACME_STORE] # 10, 1 RetrieveAETitle
(0010,0010) PN [XXXXX^GIUSEPPE^^^ ] # 18, 1 PatientName
(0010,0020) LO [121 ] # 4, 1 PatientID
--------
RESPONSE: 3 (Pending)
# Dicom-Data-Set
# Used TransferSyntax: LittleEndianExplicit
(0008,0052) CS [PATIENT ] # 8, 1 QueryRetrieveLe
vel
(0008,0054) AE [ACME_STORE] # 10, 1 RetrieveAETitle
(0010,0010) PN [XXXXXXX^CHARLES ] # 16, 1 PatientName
(0010,0020) LO [GE0514] # 6, 1 PatientID
--------
RESPONSE: 4 (Pending)
# Dicom-Data-Set
# Used TransferSyntax: LittleEndianExplicit
(0008,0052) CS [PATIENT ] # 8, 1 QueryRetrieveLe
vel
(0008,0054) AE [ACME_STORE] # 10, 1 RetrieveAETitle
(0010,0010) PN [XXXXXXX^ANNA ] # 14, 1 PatientName
(0010,0020) LO [SMS511104 ] # 10, 1 PatientID
--------
RESPONSE: 5 (Pending)
# Dicom-Data-Set
# Used TransferSyntax: LittleEndianExplicit
(0008,0052) CS [PATIENT ] # 8, 1 QueryRetrieveLe
vel
(0008,0054) AE [ACME_STORE] # 10, 1 RetrieveAETitle
(0010,0010) PN [XXXXXXXXX M ] # 12, 1 PatientName
(0010,0020) LO [spectro-csi ] # 12, 1 PatientID
--------
RESPONSE: 6 (Pending)
# Dicom-Data-Set
# Used TransferSyntax: LittleEndianExplicit
(0008,0052) CS [PATIENT ] # 8, 1 QueryRetrieveLe
vel
(0008,0054) AE [ACME_STORE] # 10, 1 RetrieveAETitle
(0010,0010) PN [XXXXX^XXXXXX ] # 16, 1 PatientName
(0010,0020) LO (no value available) # 0, 0 PatientID
--------
RESPONSE: 7 (Pending)
# Dicom-Data-Set
# Used TransferSyntax: LittleEndianExplicit
(0008,0052) CS [PATIENT ] # 8, 1 QueryRetrieveLe
vel
(0008,0054) AE [ACME_STORE] # 10, 1 RetrieveAETitle
(0010,0010) PN [XXXX^GIUSEPPE^^^] # 16, 1 PatientName
(0010,0020) LO [586 ] # 4, 1 PatientID
--------
C-Find RSP: MsgID: 1 [Status=Success]
AffectedSOPClassUID: =FINDPatientRootQueryRetrieveInformationModel
Data Set: Not Present
Releasing Association
C:\home>
_____________________________________________________________
I omit the surnames, of course. I noted that spaces are replaced by the symbol ^
Thanks to -X option, I obtain the files named "rsp0001.dcm","rsp0002.dcm".... which
contain the patientsname, patientid...and other. I can read each rsp000x.dcm using dcmdump.
Can dcmdump generate a file which contains the dump? (I didn't find the option in the help documentation...but I'm tired...)
The rsp000x.dcm files mentioned above shoud be 9 (because in ACME_STORE there are 9 files) but they are 7. Why?
Two .dcm files have the same patientsname and patientsid. Is it a possible answer?
This is the answer of dcmqrscp:
_____________________________________________________________
C:\home>dcmqrscp -v 104
Association Received (localhost:FINDSCU -> ACME_STORE) Tue Mar 07 21:27:36 2006
Association Acknowledged (Max Send PDV: 16372)
WARING: maxStudiesPerStorageArea too large
setting to 500
Received Find SCP: C-Find RQ: MsgID: 1
AffectedSOPClassUID: =FINDPatientRootQueryRetrieveInformationModel
Priority: 2
Data Set: Present
Find SCP Request Identifiers:
# Dicom-Data-Set
# Used TransferSyntax: LittleEndianExplicit
(0008,0052) CS [PATIENT] # 8, 1 QueryRetrieveLe
vel
(0010,0010) PN (no value available) # 0, 0 PatientName
(0010,0020) LO (no value available) # 0, 0 PatientID
Find SCP Response 1 [status: Pending]
Find SCP Response 2 [status: Pending]
Find SCP Response 3 [status: Pending]
Find SCP Response 4 [status: Pending]
Find SCP Response 5 [status: Pending]
Find SCP Response 6 [status: Pending]
Find SCP Response 7 [status: Pending]
Find SCP Response 8 [status: Success]
Association Release
_____________________________________________________________
Tomorrow, I hope to learn how MOVESCU work...but I think that I will need of you again
Thank you so much Mr. Sabin.