comparison Sphinx/source/faq/worklist.rst @ 12:1a4e870d4953

how to generate worklist files
author Alain Mazy <alain@mazy.be>
date Fri, 27 May 2016 09:24:02 +0200
parents 2394454105ee
children 98c0c61e7931
comparison
equal deleted inserted replaced
11:2394454105ee 12:1a4e870d4953
73 - In a prompt, launch a findscu request to ask Orthanc to return all Worklists for 'CT' modalities (considering findscu and Orthanc both runs on your machine: 127.0.0.1 is the Orthanc url and 4242 is the Orthanc DICOM port):: 73 - In a prompt, launch a findscu request to ask Orthanc to return all Worklists for 'CT' modalities (considering findscu and Orthanc both runs on your machine: 127.0.0.1 is the Orthanc url and 4242 is the Orthanc DICOM port)::
74 74
75 findscu -W -k "ScheduledProcedureStepSequence[0].Modality=CT" 127.0.0.1 4242 75 findscu -W -k "ScheduledProcedureStepSequence[0].Modality=CT" 127.0.0.1 4242
76 76
77 - findscu should display the matching worklists 77 - findscu should display the matching worklists
78
79 How can I create worklist files ?
80 ---------------------------------
81
82 - let's start from an existing `worklist file <https://bitbucket.org/sjodogne/orthanc/src/default/Plugins/Samples/ModalityWorklists/>`__.
83
84 - dump the sample worklist file to a DCMTK dump file::
85
86 dcmdump.exe wklist1.wl > sampleWorklist.txt
87
88 - you'll get something like::
89
90 # Dicom-File-Format
91
92 # Dicom-Meta-Information-Header
93 # Used TransferSyntax: Little Endian Explicit
94 (0002,0000) UL 202 # 4, 1 FileMetaInformationGroupLength
95 (0002,0001) OB 00\01 # 2, 1 FileMetaInformationVersion
96 (0002,0002) UI [1.2.276.0.7230010.3.1.0.1] # 26, 1 MediaStorageSOPClassUID
97 (0002,0003) UI [1.2.276.0.7230010.3.1.4.2831176407.11154.1448031138.805061] # 58, 1 MediaStorageSOPInstanceUID
98 (0002,0010) UI =LittleEndianExplicit # 20, 1 TransferSyntaxUID
99 (0002,0012) UI [1.2.276.0.7230010.3.0.3.6.0] # 28, 1 ImplementationClassUID
100 (0002,0013) SH [OFFIS_DCMTK_360] # 16, 1 ImplementationVersionName
101
102 # Dicom-Data-Set
103 # Used TransferSyntax: Little Endian Explicit
104 (0008,0005) CS [ISO_IR 100] # 10, 1 SpecificCharacterSet
105 (0008,0050) SH [00000] # 6, 1 AccessionNumber
106 (0010,0010) PN [VIVALDI^ANTONIO] # 16, 1 PatientName
107 (0010,0020) LO [AV35674] # 8, 1 PatientID
108 (0010,0030) DA [16780304] # 8, 1 PatientBirthDate
109 (0010,0040) CS [M] # 2, 1 PatientSex
110 (0010,2000) LO [METASTASIS] # 10, 1 MedicalAlerts
111 (0010,2110) LO [TANTAL] # 6, 1 Allergies
112 (0020,000d) UI [1.2.276.0.7230010.3.2.101] # 26, 1 StudyInstanceUID
113 (0032,1032) PN [SMITH] # 6, 1 RequestingPhysician
114 (0032,1060) LO [EXAM6] # 6, 1 RequestedProcedureDescription
115 (0040,0100) SQ (Sequence with explicit length #=1) # 176, 1 ScheduledProcedureStepSequence
116 (fffe,e000) na (Item with explicit length #=12) # 168, 1 Item
117 (0008,0060) CS [MR] # 2, 1 Modality
118 (0032,1070) LO [BARIUMSULFAT] # 12, 1 RequestedContrastAgent
119 (0040,0001) AE [AA32\AA33] # 10, 2 ScheduledStationAETitle
120 (0040,0002) DA [19951015] # 8, 1 ScheduledProcedureStepStartDate
121 (0040,0003) TM [085607] # 6, 1 ScheduledProcedureStepStartTime
122 (0040,0006) PN [JOHNSON] # 8, 1 ScheduledPerformingPhysicianName
123 (0040,0007) LO [EXAM74] # 6, 1 ScheduledProcedureStepDescription
124 (0040,0009) SH [SPD3445] # 8, 1 ScheduledProcedureStepID
125 (0040,0010) SH [STN456] # 6, 1 ScheduledStationName
126 (0040,0011) SH [B34F56] # 6, 1 ScheduledProcedureStepLocation
127 (0040,0012) LO (no value available) # 0, 0 PreMedication
128 (0040,0400) LT (no value available) # 0, 0 CommentsOnTheScheduledProcedureStep
129 (fffe,e00d) na (ItemDelimitationItem for re-encoding) # 0, 0 ItemDelimitationItem
130 (fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem
131 (0040,1001) SH [RP454G234] # 10, 1 RequestedProcedureID
132 (0040,1003) SH [LOW] # 4, 1 RequestedProcedurePriority
133
134
135 - open sampleWorklist.txt file in a text editor and modify/add/remove some Dicom Tags
136
137 - then, generate a new worklist file with dump2dcm::
138
139 dump2dcm.exe sampleWorklist.txt newWorklist.wl
140
141 - copy that file in the folder where Orthanc searches for its worklist files and that's it !
142
143 - of course, you'll automate this worklist generation workflow with some scripting language.
144
145