Send DICOM tags in worklist response to modality

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
AndrasM
Posts: 7
Joined: Wed, 2014-09-03, 09:23

Send DICOM tags in worklist response to modality

#1 Post by AndrasM »

Hello,

We are running DCMTK 3.6.0 installed on a Debian 7.6.0 server. We use it only for worklist management with wlmscpfs.
We need to send back some DICOM tag to modalities in worklist find SCP response. These tags are in worklist files but wlmscpfs does not send to modalities.

These are required tags in worklist files:
(0040,0001) AE [MODALITY] # 4, 1 ScheduledStationAETitle
(0040,0007) LO [Study description] # 10, 1 ScheduledProcedureStepDescription
(0040,0009) SH [03001112] # 8, 1 ScheduledProcedureStepID

And this is the find SCP response output for given tags:
I: (0040,0001) AE (no value available) # 0, 0 ScheduledStationAETitle
I: (0040,0007) LO (no value available) # 0, 0 ScheduledProcedureStepDescription
I: (0040,0009) SH (no value available) # 0, 0 ScheduledProcedureStepID

Here is C-FIND query:
D: setting network receive timeout to 60 seconds
D: PDU Type: Associate Request, PDU Length: 201 + 6 bytes PDU header
D: 01 00 00 00 00 c9 00 01 00 00 53 57 49 54 57 4c
D: 53 20 20 20 20 20 20 20 20 20 53 45 4e 4f 20 20
D: 20 20 20 20 20 20 20 20 20 20 00 00 00 00 00 00
D: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
D: 00 00 00 00 00 00 00 00 00 00 10 00 00 15 31 2e
D: 32 2e 38 34 30 2e 31 30 30 30 38 2e 33 2e 31 2e
D: 31 2e 31 20 00 00 33 01 00 00 00 30 00 00 16 31
D: 2e 32 2e 38 34 30 2e 31 30 30 30 38 2e 35 2e 31
D: 2e 34 2e 33 31 40 00 00 11 31 2e 32 2e 38 34 30
D: 2e 31 30 30 30 38 2e 31 2e 32 50 00 00 31 51 00
D: 00 04 00 00 70 00 52 00 00 14 31 2e 32 2e 38 34
D: 30 2e 31 31 33 36 31 39 2e 36 2e 32 35 35 55 00
D: 00 0d 4d 65 72 67 65 43 4f 4d 33 5f 33 36 30
D: Parsing an A-ASSOCIATE PDU
I: Association Received (193.6.198.106:MODALITY -> WORKLISTSRV)
D: Parameters:
D: ====================== BEGIN A-ASSOCIATE-RQ =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.0
D: Our Implementation Version Name: OFFIS_DCMTK_360
D: Their Implementation Class UID: 1.2.840.113619.6.255
D: Their Implementation Version Name: MergeCOM3_360
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: MODALITY
D: Called Application Name: WORKLISTSRV
D: Responding Application Name:
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 28672
D: Presentation Contexts:
D: Context ID: 1 (Proposed)
D: Abstract Syntax: =FINDModalityWorklistInformationModel
D: Proposed SCP/SCU Role: Default
D: Proposed Transfer Syntax(es):
D: =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-RQ ======================
D: Constructing Associate AC PDU
I: Association Acknowledged (Max Send PDV: 28660)
D: ====================== BEGIN A-ASSOCIATE-AC =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.0
D: Our Implementation Version Name: OFFIS_DCMTK_360
D: Their Implementation Class UID: 1.2.840.113619.6.255
D: Their Implementation Version Name: MergeCOM3_360
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: MODALITY
D: Called Application Name: WORKLISTSRV
D: Responding Application Name:
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 28672
D: Presentation Contexts:
D: Context ID: 1 (Accepted)
D: Abstract Syntax: =FINDModalityWorklistInformationModel
D: Proposed SCP/SCU Role: Default
D: Accepted SCP/SCU Role: Default
D: Accepted Transfer Syntax: =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-AC ======================
I: ===================== INCOMING DIMSE MESSAGE ====================
I: Message Type : C-FIND RQ
I: Presentation Context ID : 1
I: Message ID : 7
I: Affected SOP Class UID : FINDModalityWorklistInformationModel
I: Data Set : present
I: Priority : medium
I: ======================= END DIMSE MESSAGE =======================

Could you please help me how is possible to send back required tags?

Thank you in advance!
Peter

Michael Onken
DCMTK Developer
Posts: 2049
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: Send DICOM tags in worklist response to modality

#2 Post by Michael Onken »

Hi Peter,

the query is actually not in the log. Are you starting wlmscpfs using the -d option?

Also, can you run dcmdump on the worklist file you created and show the output?

Best regards,
Michael

AndrasM
Posts: 7
Joined: Wed, 2014-09-03, 09:23

Re: Send DICOM tags in worklist response to modality

#3 Post by AndrasM »

Hi Michael,

Yes, output came from wlmscpfs using the -d debug option.

Here is worklist file dump:
# Dicom-File-Format

# Dicom-Meta-Information-Header
# Used TransferSyntax: Little Endian Explicit
(0002,0000) UL 202 # 4, 1 FileMetaInformationGroupLength
(0002,0001) OB 00\01 # 2, 1 FileMetaInformationVersion
(0002,0002) UI [1.2.276.0.7230010.3.1.0.1] # 26, 1 MediaStorageSOPClassUID
(0002,0003) UI [1.2.276.0.7230010.3.1.4.113364166.30207.1544080806.930510] # 58, 1 MediaStorageSOPInstanceUID
(0002,0010) UI =LittleEndianExplicit # 20, 1 TransferSyntaxUID
(0002,0012) UI [1.2.276.0.7230010.3.0.3.6.0] # 28, 1 ImplementationClassUID
(0002,0013) SH [OFFIS_DCMTK_360] # 16, 1 ImplementationVersionName

# Dicom-Data-Set
# Used TransferSyntax: Little Endian Explicit
(0008,0005) CS [ISO_IR 100] # 10, 1 SpecificCharacterSet
(0008,0018) UI [1.2.276.0.7230010.3.1.4.113364166.30207.1544080806.930510] # 58, 1 SOPInstanceUID
(0008,0050) SH [03001112] # 8, 1 AccessionNumber
(0008,0090) PN (no value available) # 0, 0 ReferringPhysicianName
(0010,0010) PN [TEST TEST] # 12, 1 PatientName
(0010,0020) LO [123456789] # 10, 1 PatientID
(0010,0030) DA [19000101] # 8, 1 PatientBirthDate
(0010,0040) CS [F] # 2, 1 PatientSex
(0020,000d) UI [1.2.276.0.7230010.3.1.2.113364166.30207.1544080806.930508] # 58, 1 StudyInstanceUID
(0020,000e) UI [1.2.276.0.7230010.3.1.3.113364166.30207.1544080806.930509] # 58, 1 SeriesInstanceUID
(0032,1060) LO [Study description] # 10, 1 RequestedProcedureDescription
(0040,0001) AE [MODALITY] # 4, 1 ScheduledStationAETitle
(0040,0007) LO [Study description] # 10, 1 ScheduledProcedureStepDescription
(0040,0009) SH [03001112] # 8, 1 ScheduledProcedureStepID
(0040,0100) SQ (Sequence with explicit length #=1) # 72, 1 ScheduledProcedureStepSequence
(fffe,e000) na (Item with explicit length #=6) # 64, 1 Item
(0008,0060) CS [MG] # 2, 1 Modality
(0040,0002) DA [20181206] # 8, 1 ScheduledProcedureStepStartDate
(0040,0003) TM [120000] # 6, 1 ScheduledProcedureStepStartTime
(0040,0006) PN (no value available) # 0, 0 ScheduledPerformingPhysicianName
(0040,0012) LO (no value available) # 0, 0 PreMedication
(0040,0400) LT (no value available) # 0, 0 CommentsOnTheScheduledProcedureStep
(fffe,e00d) na (ItemDelimitationItem for re-encoding) # 0, 0 ItemDelimitationItem
(fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem
(0040,1001) SH [03001112] # 8, 1 RequestedProcedureID
(0040,1003) SH [ROUTINE] # 8, 1 RequestedProcedurePriority


End here is response:
I: Worklist Find SCP Response 8 (Pending)
I:
I: # Dicom-Data-Set
I: # Used TransferSyntax: Little Endian Implicit
I: (0008,0005) CS [ISO_IR 100] # 10, 1 SpecificCharacterSet
I: (0008,0050) SH [03001112] # 8, 1 AccessionNumber
I: (0008,0090) PN (no value available) # 0, 0 ReferringPhysicianName
I: (0008,1110) SQ (Sequence with explicit length #=0) # 24, 1 ReferencedStudySequence
I: (fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem
I: (0008,1120) SQ (Sequence with explicit length #=0) # 24, 1 ReferencedPatientSequence
I: (fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem
I: (0010,0010) PN [TEST TEST ] # 12, 1 PatientName
I: (0010,0020) LO [123456789 ] # 10, 1 PatientID
I: (0010,0030) DA [19000101] # 8, 1 PatientBirthDate
I: (0010,0040) CS [F ] # 2, 1 PatientSex
I: (0020,000d) UI [1.2.276.0.7230010.3.1.2.113364166.30207.1544080806.930508] # 58, 1 StudyInstanceUID
I: (0032,1060) LO [Study description ] # 10, 1 RequestedProcedureDescription
I: (0040,0100) SQ (Sequence with explicit length #=1) # 132, 1 ScheduledProcedureStepSequence
I: (fffe,e000) na (Item with explicit length #=8) # 124, 1 Item
I: (0008,0060) CS [MG] # 2, 1 Modality
I: (0040,0001) AE (no value available) # 0, 0 ScheduledStationAETitle
I: (0040,0002) DA [20181206] # 8, 1 ScheduledProcedureStepStartDate
I: (0040,0003) TM [120000] # 6, 1 ScheduledProcedureStepStartTime
I: (0040,0006) PN (no value available) # 0, 0 ScheduledPerformingPhysicianName
I: (0040,0007) LO (no value available) # 0, 0 ScheduledProcedureStepDescription
I: (0040,0009) SH (no value available) # 0, 0 ScheduledProcedureStepID
I: (0040,0010) SH (no value available) # 0, 0 ScheduledStationName
I: (fffe,e00d) na (ItemDelimitationItem for re-encoding) # 0, 0 ItemDelimitationItem
I: (fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem
I: (0040,1001) SH [03001112] # 8, 1 RequestedProcedureID
I:
I: -----------------------------
I: Worklist Find SCP Response 9 (Success)
I: Association Release
I: +++++++++++++++++++++++++++++

Thanks for your help.

Kind regards,
Peter

Michael Onken
DCMTK Developer
Posts: 2049
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: Send DICOM tags in worklist response to modality

#4 Post by Michael Onken »

Hi,

the attributes that belong to the Scheduled Procedure Step, i.e. the job to be done, and not to higher level entities like Requested Procedure, Study or Patient must be inside the Scheduled Procedure Step Sequence.

In your case, those attributes (e.g. ScheduledProcedureStepDescription) are on main level instead.

Look into the example worklist files that come with DCMTK (that are probably also shipped with Debian). The reference is of course the related Worklist Information Model table in the DICOM standard.

Best regards,
Michael

AndrasM
Posts: 7
Joined: Wed, 2014-09-03, 09:23

Re: Send DICOM tags in worklist response to modality

#5 Post by AndrasM »

Hi Michael,

Thanks, it works like a charm.

Kind regards,
Peter

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Baidu [Spider] and 1 guest