# HG changeset patch # User Sebastien Jodogne # Date 1481223508 -3600 # Node ID fff2b4a24b5f608e572adec63d8708e1f668dccf # Parent dbcbffb889da948327d36a6ba83dee83d9bf7859 test of sequences in worklists diff -r dbcbffb889da -r fff2b4a24b5f Database/Worklists/Sequences/Queries/7814.without.length.dump --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Database/Worklists/Sequences/Queries/7814.without.length.dump Thu Dec 08 19:58:28 2016 +0100 @@ -0,0 +1,80 @@ +# Dicom-Data-Set +# Used TransferSyntax: LittleEndianExplicit +# (0008,0000) UL 156 # 4, 1 IdentifyingGroupLength +(0008,0005) CS (no value available) # 0, 0 SpecificCharacterSet +(0008,0050) SH (no value available) # 0, 0 AccessionNumber +(0008,0090) PN (no value available) # 0, 0 ReferringPhysiciansName +(0008,1030) LO (no value available) # 0, 0 StudyDescription +(0008,103e) LO (no value available) # 0, 0 SeriesDescription +(0008,1080) LO (no value available) # 0, 0 AdmittingDiagnosesDescription +(0008,1084) SQ (Sequence with explicit length #=0) # 0, 1 AdmittingDiagnosesCodeSequence +(fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem +(0008,1110) SQ (Sequence with explicit length #=1) # 36, 1 ReferencedStudySequence + (fffe,e000) na (Item with explicit length #=3) # 28, 1 Item +# (0008,0000) UL 16 # 4, 1 IdentifyingGroupLength + (0008,1150) UI (no value available) # 0, 0 ReferencedSOPClassUID + (0008,1155) UI (no value available) # 0, 0 ReferencedSOPInstanceUID + (fffe,e00d) na (ItemDelimitationItem for re-encoding) # 0, 0 ItemDelimitationItem +(fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem +(0008,1120) SQ (Sequence with explicit length #=1) # 36, 1 ReferencedPatientSequence + (fffe,e000) na (Item with explicit length #=3) # 28, 1 Item +# (0008,0000) UL 16 # 4, 1 IdentifyingGroupLength + (0008,1150) UI (no value available) # 0, 0 ReferencedSOPClassUID + (0008,1155) UI (no value available) # 0, 0 ReferencedSOPInstanceUID + (fffe,e00d) na (ItemDelimitationItem for re-encoding) # 0, 0 ItemDelimitationItem +(fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem +# (0010,0000) UL 114 # 4, 1 PatientGroupLength +(0010,0010) PN [* ] # 2, 1 PatientsName +(0010,0020) LO (no value available) # 0, 0 PatientID +(0010,0030) DA (no value available) # 0, 0 PatientsBirthDate +(0010,0040) CS (no value available) # 0, 0 PatientsSex +(0010,1000) LO (no value available) # 0, 0 OtherPatientIDs +(0010,1030) DS (no value available) # 0, 0 PatientsWeight +(0010,1040) LO (no value available) # 0, 0 PatientsAddress +(0010,2000) LO (no value available) # 0, 0 MedicalAlerts +(0010,2110) LO (no value available) # 0, 0 ContrastAllergies +(0010,2154) SH (no value available) # 0, 0 PatientsTelephoneNumbers +(0010,21c0) US (no value available) # 0, 0 PregnancyStatus +(0010,2201) LO (no value available) # 0, 0 Unknown Tag & Data +(0010,2292) LO (no value available) # 0, 0 Unknown Tag & Data +(0010,2297) PN (no value available) # 0, 0 Unknown Tag & Data +# (0020,0000) UL 16 # 4, 1 ImageGroupLength +(0020,000d) UI (no value available) # 0, 0 StudyInstanceUID +(0020,0010) SH (no value available) # 0, 0 StudyID +# (0032,0000) UL 28 # 4, 1 StudyGroupLength +(0032,1032) PN (no value available) # 0, 0 RequestingPhysician +(0032,1060) LO (no value available) # 0, 0 RequestedProcedureDescription +(0032,1064) SQ (Sequence with explicit length #=0) # 0, 1 RequestedProcedureCodeSequence +(fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem +# (0038,0000) UL 32 # 4, 1 VisitGroupLength +(0038,0010) LO (no value available) # 0, 0 AdmissionID +(0038,0050) LO (no value available) # 0, 0 SpecialNeeds +(0038,0300) LO (no value available) # 0, 0 CurrentPatientLocation +(0038,0500) LO (no value available) # 0, 0 PatientState +# (0040,0000) UL 220 # 4, 1 ModalityWorklistGroupLength +(0040,0100) SQ (Sequence with explicit length #=1) # 176, 1 ScheduledProcedureStepSequence + (fffe,e000) na (Item with explicit length #=17) # 168, 1 Item +# (0008,0000) UL 8 # 4, 1 IdentifyingGroupLength + (0008,0060) CS (no value available) # 0, 0 Modality +# (0032,0000) UL 8 # 4, 1 StudyGroupLength + (0032,1070) LO (no value available) # 0, 0 RequestedContrastAgent +# (0040,0000) UL 116 # 4, 1 ModalityWorklistGroupLength + (0040,0001) AE [STATION_AET ] # 8, 1 ScheduledStationAETitle + (0040,0002) DA [20161116] # 8, 1 ScheduledProcedureStepStartDate + (0040,0003) TM (no value available) # 0, 0 ScheduledProcedureStepStartTime + (0040,0004) DA (no value available) # 0, 0 ScheduledProcedureStepEndDate + (0040,0005) TM (no value available) # 0, 0 ScheduledProcedureStepEndTime + (0040,0006) PN (no value available) # 0, 0 ScheduledPerformingPhysiciansName + (0040,0007) LO (no value available) # 0, 0 ScheduledProcedureStepDescription + (0040,0008) SQ (Sequence with explicit length #=0) # 0, 1 ScheduledProtocolCodeSequence + (fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem + (0040,0009) SH (no value available) # 0, 0 ScheduledProcedureStepID + (0040,0010) SH (no value available) # 0, 0 ScheduledStationName + (0040,0011) SH (no value available) # 0, 0 ScheduledProcedureStepLocation + (0040,0020) CS (no value available) # 0, 0 ScheduledProcedureStepStatus + (fffe,e00d) na (ItemDelimitationItem for re-encoding) # 0, 0 ItemDelimitationItem +(fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem +(0040,1001) SH (no value available) # 0, 0 RequestedProcedureID +(0040,1003) SH (no value available) # 0, 0 RequestedProcedurePriority +(0040,1004) LO (no value available) # 0, 0 PatientTransportArrangements +(0040,3001) LO (no value available) # 0, 0 ConfidentialityConstraintOnPatientDataDescription \ No newline at end of file diff -r dbcbffb889da -r fff2b4a24b5f Database/Worklists/Sequences/Queries/7814.without.seq.dump --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Database/Worklists/Sequences/Queries/7814.without.seq.dump Thu Dec 08 19:58:28 2016 +0100 @@ -0,0 +1,80 @@ +# Dicom-Data-Set +# Used TransferSyntax: LittleEndianExplicit +# (0008,0000) UL 156 # 4, 1 IdentifyingGroupLength +(0008,0005) CS (no value available) # 0, 0 SpecificCharacterSet +(0008,0050) SH (no value available) # 0, 0 AccessionNumber +(0008,0090) PN (no value available) # 0, 0 ReferringPhysiciansName +(0008,1030) LO (no value available) # 0, 0 StudyDescription +(0008,103e) LO (no value available) # 0, 0 SeriesDescription +(0008,1080) LO (no value available) # 0, 0 AdmittingDiagnosesDescription +(0008,1084) SQ (Sequence with explicit length #=0) # 0, 1 AdmittingDiagnosesCodeSequence +(fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem +# (0008,1110) SQ (Sequence with explicit length #=1) # 36, 1 ReferencedStudySequence +# (fffe,e000) na (Item with explicit length #=3) # 28, 1 Item +# # (0008,0000) UL 16 # 4, 1 IdentifyingGroupLength +# (0008,1150) UI (no value available) # 0, 0 ReferencedSOPClassUID +# (0008,1155) UI (no value available) # 0, 0 ReferencedSOPInstanceUID +# (fffe,e00d) na (ItemDelimitationItem for re-encoding) # 0, 0 ItemDelimitationItem +# (fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem +# (0008,1120) SQ (Sequence with explicit length #=1) # 36, 1 ReferencedPatientSequence +# (fffe,e000) na (Item with explicit length #=3) # 28, 1 Item +# # (0008,0000) UL 16 # 4, 1 IdentifyingGroupLength +# (0008,1150) UI (no value available) # 0, 0 ReferencedSOPClassUID +# (0008,1155) UI (no value available) # 0, 0 ReferencedSOPInstanceUID +# (fffe,e00d) na (ItemDelimitationItem for re-encoding) # 0, 0 ItemDelimitationItem +# (fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem +# (0010,0000) UL 114 # 4, 1 PatientGroupLength +(0010,0010) PN [* ] # 2, 1 PatientsName +(0010,0020) LO (no value available) # 0, 0 PatientID +(0010,0030) DA (no value available) # 0, 0 PatientsBirthDate +(0010,0040) CS (no value available) # 0, 0 PatientsSex +(0010,1000) LO (no value available) # 0, 0 OtherPatientIDs +(0010,1030) DS (no value available) # 0, 0 PatientsWeight +(0010,1040) LO (no value available) # 0, 0 PatientsAddress +(0010,2000) LO (no value available) # 0, 0 MedicalAlerts +(0010,2110) LO (no value available) # 0, 0 ContrastAllergies +(0010,2154) SH (no value available) # 0, 0 PatientsTelephoneNumbers +(0010,21c0) US (no value available) # 0, 0 PregnancyStatus +(0010,2201) LO (no value available) # 0, 0 Unknown Tag & Data +(0010,2292) LO (no value available) # 0, 0 Unknown Tag & Data +(0010,2297) PN (no value available) # 0, 0 Unknown Tag & Data +# (0020,0000) UL 16 # 4, 1 ImageGroupLength +(0020,000d) UI (no value available) # 0, 0 StudyInstanceUID +(0020,0010) SH (no value available) # 0, 0 StudyID +# (0032,0000) UL 28 # 4, 1 StudyGroupLength +(0032,1032) PN (no value available) # 0, 0 RequestingPhysician +(0032,1060) LO (no value available) # 0, 0 RequestedProcedureDescription +(0032,1064) SQ (Sequence with explicit length #=0) # 0, 1 RequestedProcedureCodeSequence +(fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem +# (0038,0000) UL 32 # 4, 1 VisitGroupLength +(0038,0010) LO (no value available) # 0, 0 AdmissionID +(0038,0050) LO (no value available) # 0, 0 SpecialNeeds +(0038,0300) LO (no value available) # 0, 0 CurrentPatientLocation +(0038,0500) LO (no value available) # 0, 0 PatientState +# (0040,0000) UL 220 # 4, 1 ModalityWorklistGroupLength +(0040,0100) SQ (Sequence with explicit length #=1) # 176, 1 ScheduledProcedureStepSequence + (fffe,e000) na (Item with explicit length #=17) # 168, 1 Item +# (0008,0000) UL 8 # 4, 1 IdentifyingGroupLength + (0008,0060) CS (no value available) # 0, 0 Modality +# (0032,0000) UL 8 # 4, 1 StudyGroupLength + (0032,1070) LO (no value available) # 0, 0 RequestedContrastAgent +# (0040,0000) UL 116 # 4, 1 ModalityWorklistGroupLength + (0040,0001) AE [STATION_AET] # 8, 1 ScheduledStationAETitle + (0040,0002) DA [20161116] # 8, 1 ScheduledProcedureStepStartDate + (0040,0003) TM (no value available) # 0, 0 ScheduledProcedureStepStartTime + (0040,0004) DA (no value available) # 0, 0 ScheduledProcedureStepEndDate + (0040,0005) TM (no value available) # 0, 0 ScheduledProcedureStepEndTime + (0040,0006) PN (no value available) # 0, 0 ScheduledPerformingPhysiciansName + (0040,0007) LO (no value available) # 0, 0 ScheduledProcedureStepDescription + (0040,0008) SQ (Sequence with explicit length #=0) # 0, 1 ScheduledProtocolCodeSequence + (fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem + (0040,0009) SH (no value available) # 0, 0 ScheduledProcedureStepID + (0040,0010) SH (no value available) # 0, 0 ScheduledStationName + (0040,0011) SH (no value available) # 0, 0 ScheduledProcedureStepLocation + (0040,0020) CS (no value available) # 0, 0 ScheduledProcedureStepStatus + (fffe,e00d) na (ItemDelimitationItem for re-encoding) # 0, 0 ItemDelimitationItem +(fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem +(0040,1001) SH (no value available) # 0, 0 RequestedProcedureID +(0040,1003) SH (no value available) # 0, 0 RequestedProcedurePriority +(0040,1004) LO (no value available) # 0, 0 PatientTransportArrangements +(0040,3001) LO (no value available) # 0, 0 ConfidentialityConstraintOnPatientDataDescription diff -r dbcbffb889da -r fff2b4a24b5f Database/Worklists/Sequences/Queries/basic.7705.dump --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Database/Worklists/Sequences/Queries/basic.7705.dump Thu Dec 08 19:58:28 2016 +0100 @@ -0,0 +1,14 @@ +# this request has been constructed to match the 7705 wl that contains a PatientSpecies + +# Dicom-Data-Set +# Used TransferSyntax: LittleEndianExplicit +(0008,0005) CS (no value available) # 0, 0 SpecificCharacterSet +(0008,0050) SH (no value available) # 0, 0 AccessionNumber +(0010,2201) LO (no value available) ############ PatientSpecies ############### +(0040,0100) SQ (Sequence with explicit length #=1) # 176, 1 ScheduledProcedureStepSequence + (fffe,e000) na (Item with explicit length #=17) # 168, 1 Item + (0008,0060) CS (no value available) # 0, 0 Modality + (0040,0001) AE [STATION_AET] # 8, 1 ScheduledStationAETitle + (0040,0002) DA [20161117] # 8, 1 ScheduledProcedureStepStartDate + (fffe,e00d) na (ItemDelimitationItem for re-encoding) # 0, 0 ItemDelimitationItem +(fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem diff -r dbcbffb889da -r fff2b4a24b5f Database/Worklists/Sequences/Queries/orig.7814.dump --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Database/Worklists/Sequences/Queries/orig.7814.dump Thu Dec 08 19:58:28 2016 +0100 @@ -0,0 +1,80 @@ +# Dicom-Data-Set +# Used TransferSyntax: LittleEndianExplicit +(0008,0000) UL 156 # 4, 1 IdentifyingGroupLength +(0008,0005) CS (no value available) # 0, 0 SpecificCharacterSet +(0008,0050) SH (no value available) # 0, 0 AccessionNumber +(0008,0090) PN (no value available) # 0, 0 ReferringPhysiciansName +(0008,1030) LO (no value available) # 0, 0 StudyDescription +(0008,103e) LO (no value available) # 0, 0 SeriesDescription +(0008,1080) LO (no value available) # 0, 0 AdmittingDiagnosesDescription +(0008,1084) SQ (Sequence with explicit length #=0) # 0, 1 AdmittingDiagnosesCodeSequence +(fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem +(0008,1110) SQ (Sequence with explicit length #=1) # 36, 1 ReferencedStudySequence + (fffe,e000) na (Item with explicit length #=3) # 28, 1 Item + (0008,0000) UL 16 # 4, 1 IdentifyingGroupLength + (0008,1150) UI (no value available) # 0, 0 ReferencedSOPClassUID + (0008,1155) UI (no value available) # 0, 0 ReferencedSOPInstanceUID + (fffe,e00d) na (ItemDelimitationItem for re-encoding) # 0, 0 ItemDelimitationItem +(fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem +(0008,1120) SQ (Sequence with explicit length #=1) # 36, 1 ReferencedPatientSequence + (fffe,e000) na (Item with explicit length #=3) # 28, 1 Item + (0008,0000) UL 16 # 4, 1 IdentifyingGroupLength + (0008,1150) UI (no value available) # 0, 0 ReferencedSOPClassUID + (0008,1155) UI (no value available) # 0, 0 ReferencedSOPInstanceUID + (fffe,e00d) na (ItemDelimitationItem for re-encoding) # 0, 0 ItemDelimitationItem +(fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem +(0010,0000) UL 114 # 4, 1 PatientGroupLength +(0010,0010) PN [* ] # 2, 1 PatientsName +(0010,0020) LO (no value available) # 0, 0 PatientID +(0010,0030) DA (no value available) # 0, 0 PatientsBirthDate +(0010,0040) CS (no value available) # 0, 0 PatientsSex +(0010,1000) LO (no value available) # 0, 0 OtherPatientIDs +(0010,1030) DS (no value available) # 0, 0 PatientsWeight +(0010,1040) LO (no value available) # 0, 0 PatientsAddress +(0010,2000) LO (no value available) # 0, 0 MedicalAlerts +(0010,2110) LO (no value available) # 0, 0 ContrastAllergies +(0010,2154) SH (no value available) # 0, 0 PatientsTelephoneNumbers +(0010,21c0) US (no value available) # 0, 0 PregnancyStatus +(0010,2201) LO (no value available) # 0, 0 Unknown Tag & Data +(0010,2292) LO (no value available) # 0, 0 Unknown Tag & Data +(0010,2297) PN (no value available) # 0, 0 Unknown Tag & Data +(0020,0000) UL 16 # 4, 1 ImageGroupLength +(0020,000d) UI (no value available) # 0, 0 StudyInstanceUID +(0020,0010) SH (no value available) # 0, 0 StudyID +(0032,0000) UL 28 # 4, 1 StudyGroupLength +(0032,1032) PN (no value available) # 0, 0 RequestingPhysician +(0032,1060) LO (no value available) # 0, 0 RequestedProcedureDescription +(0032,1064) SQ (Sequence with explicit length #=0) # 0, 1 RequestedProcedureCodeSequence +(fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem +(0038,0000) UL 32 # 4, 1 VisitGroupLength +(0038,0010) LO (no value available) # 0, 0 AdmissionID +(0038,0050) LO (no value available) # 0, 0 SpecialNeeds +(0038,0300) LO (no value available) # 0, 0 CurrentPatientLocation +(0038,0500) LO (no value available) # 0, 0 PatientState +(0040,0000) UL 220 # 4, 1 ModalityWorklistGroupLength +(0040,0100) SQ (Sequence with explicit length #=1) # 176, 1 ScheduledProcedureStepSequence + (fffe,e000) na (Item with explicit length #=17) # 168, 1 Item + (0008,0000) UL 8 # 4, 1 IdentifyingGroupLength + (0008,0060) CS (no value available) # 0, 0 Modality + (0032,0000) UL 8 # 4, 1 StudyGroupLength + (0032,1070) LO (no value available) # 0, 0 RequestedContrastAgent + (0040,0000) UL 116 # 4, 1 ModalityWorklistGroupLength + (0040,0001) AE [STATION_AET ] # 8, 1 ScheduledStationAETitle + (0040,0002) DA [20161116] # 8, 1 ScheduledProcedureStepStartDate + (0040,0003) TM (no value available) # 0, 0 ScheduledProcedureStepStartTime + (0040,0004) DA (no value available) # 0, 0 ScheduledProcedureStepEndDate + (0040,0005) TM (no value available) # 0, 0 ScheduledProcedureStepEndTime + (0040,0006) PN (no value available) # 0, 0 ScheduledPerformingPhysiciansName + (0040,0007) LO (no value available) # 0, 0 ScheduledProcedureStepDescription + (0040,0008) SQ (Sequence with explicit length #=0) # 0, 1 ScheduledProtocolCodeSequence + (fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem + (0040,0009) SH (no value available) # 0, 0 ScheduledProcedureStepID + (0040,0010) SH (no value available) # 0, 0 ScheduledStationName + (0040,0011) SH (no value available) # 0, 0 ScheduledProcedureStepLocation + (0040,0020) CS (no value available) # 0, 0 ScheduledProcedureStepStatus + (fffe,e00d) na (ItemDelimitationItem for re-encoding) # 0, 0 ItemDelimitationItem +(fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem +(0040,1001) SH (no value available) # 0, 0 RequestedProcedureID +(0040,1003) SH (no value available) # 0, 0 RequestedProcedurePriority +(0040,1004) LO (no value available) # 0, 0 PatientTransportArrangements +(0040,3001) LO (no value available) # 0, 0 ConfidentialityConstraintOnPatientDataDescription \ No newline at end of file diff -r dbcbffb889da -r fff2b4a24b5f Database/Worklists/Sequences/STATION_AET/lockfile diff -r dbcbffb889da -r fff2b4a24b5f Database/Worklists/Sequences/STATION_AET/orig.7705.dump --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Database/Worklists/Sequences/STATION_AET/orig.7705.dump Thu Dec 08 19:58:28 2016 +0100 @@ -0,0 +1,44 @@ +# Dicom-Meta-Information-Header +# Used TransferSyntax: Little Endian Explicit +(0002,0000) UL 200 # 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.2173265676.11480.1480155293.189] # 56, 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,0050) SH [AN123456] # 14, 1 AccessionNumber +(0008,0090) PN [ReferringPhysicianName] # 12, 1 ReferringPhysicianName +(0008,1050) PN [PerformingPhysicianName] # 12, 1 PerformingPhysicianName +(0010,0010) PN [PatientName] # 4, 1 PatientName +(0010,0020) LO [01234567] # 10, 1 PatientID +(0010,0030) DA [20120201] # 8, 1 PatientBirthDate +(0010,0040) CS [F] # 2, 1 PatientSex +(0010,2000) LO (no value available) # 0, 0 MedicalAlerts +(0010,2110) LO (no value available) # 0, 0 Allergies +(0010,2201) LO [Dog] # 4, 1 PatientSpeciesDescription +(0010,2297) PN [ResponsiblePerson] # 16, 1 ResponsiblePerson +(0020,000d) UI [1.2.826.0.1.12345678.8.975.1.11.123456.20161117140053.7705] # 58, 1 StudyInstanceUID +(0032,1032) PN [RequestingPhysician] # 12, 1 RequestingPhysician +(0032,1060) LO (no value available) # 0, 0 RequestedProcedureDescription +(0040,0100) SQ (Sequence with explicit length #=1) # 166, 1 ScheduledProcedureStepSequence + (fffe,e000) na (Item with explicit length #=11) # 158, 1 Item + (0008,0060) CS [DX] # 2, 1 Modality + (0032,1070) LO (no value available) # 0, 0 RequestedContrastAgent + (0040,0001) AE [STATION_AET] # 8, 1 ScheduledStationAETitle + (0040,0002) DA [20161117] # 8, 1 ScheduledProcedureStepStartDate + (0040,0003) TM [140053] # 6, 1 ScheduledProcedureStepStartTime + (0040,0006) PN [ScheduledPerformingPhysicianName] # 12, 1 ScheduledPerformingPhysicianName + (0040,0009) SH (no value available) # 0, 0 ScheduledProcedureStepID + (0040,0011) SH (no value available) # 0, 0 ScheduledProcedureStepLocation + (0040,0012) LO (no value available) # 0, 0 PreMedication + (0040,0400) LT (no value available) # 0, 0 CommentsOnTheScheduledProcedureStep + (0040,1005) LO [RequestedProcedureLocation] # 34, 1 RequestedProcedureLocation + (fffe,e00d) na (ItemDelimitationItem for re-encoding) # 0, 0 ItemDelimitationItem +(fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem +(0040,1001) SH (no value available) # 0, 0 RequestedProcedureID +(0040,1003) SH (no value available) # 0, 0 RequestedProcedurePriority \ No newline at end of file diff -r dbcbffb889da -r fff2b4a24b5f Database/Worklists/Sequences/STATION_AET/orig.7814.dump --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Database/Worklists/Sequences/STATION_AET/orig.7814.dump Thu Dec 08 19:58:28 2016 +0100 @@ -0,0 +1,45 @@ +(0008,0050) SH [AN123457] # 14, 1 AccessionNumber +(0008,0090) PN [ReferringPhysiciansName] # 12, 1 ReferringPhysiciansName +(0008,1080) LO (no value available) # 0, 0 AdmittingDiagnosesDescription +(0008,1110) SQ (Sequence with explicit length #=0) # 36, 1 ReferencedStudySequence +(fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem +(0008,1120) SQ (Sequence with explicit length #=0) # 36, 1 ReferencedPatientSequence +(fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem +(0010,0010) PN [nn] # 2, 1 PatientsName +(0010,0020) LO [01234568] # 10, 1 PatientID +(0010,0030) DA (no value available) # 0, 0 PatientsBirthDate +(0010,0040) CS [F ] # 2, 1 PatientsSex +(0010,1000) LO (no value available) # 0, 0 OtherPatientIDs +(0010,1030) DS (no value available) # 0, 0 PatientsWeight +(0010,1040) LO (no value available) # 0, 0 PatientsAddress +(0010,2000) LO (no value available) # 0, 0 MedicalAlerts +(0010,2110) LO (no value available) # 0, 0 ContrastAllergies +(0010,21c0) US 4 # 2, 1 PregnancyStatus +(0020,000d) UI [1.2.826.0.1.12345678.8.975.1.11.123456.20161117140053.7814] # 58, 1 StudyInstanceUID +(0032,1032) PN [RequestingPhysician] # 12, 1 RequestingPhysician +(0032,1060) LO (no value available) # 0, 0 RequestedProcedureDescription +(0038,0010) LO (no value available) # 0, 0 AdmissionID +(0038,0050) LO (no value available) # 0, 0 SpecialNeeds +(0038,0300) LO (no value available) # 0, 0 CurrentPatientLocation +(0038,0500) LO (no value available) # 0, 0 PatientState +(0040,0100) SQ (Sequence with explicit length #=1) # 176, 1 ScheduledProcedureStepSequence + (fffe,e000) na (Item with explicit length #=13) # 168, 1 Item + (0008,0060) CS [CR] # 2, 1 Modality + (0032,1070) LO (no value available) # 0, 0 RequestedContrastAgent + (0040,0001) AE [STATION_AET] # 8, 1 ScheduledStationAETitle + (0040,0002) DA [20161116] # 8, 1 ScheduledProcedureStepStartDate + (0040,0003) TM [110253] # 6, 1 ScheduledProcedureStepStartTime + (0040,0004) DA (no value available) # 0, 0 ScheduledProcedureStepEndDate + (0040,0005) TM (no value available) # 0, 0 ScheduledProcedureStepEndTime + (0040,0006) PN [ScheduledPerformingPhysicianName] # 12, 1 ScheduledPerformingPhysiciansName + (0040,0007) LO (no value available) # 0, 0 ScheduledProcedureStepDescription + (0040,0009) SH (no value available) # 0, 0 ScheduledProcedureStepID + (0040,0010) SH (no value available) # 0, 0 ScheduledStationName + (0040,0011) SH (no value available) # 0, 0 ScheduledProcedureStepLocation + (0040,0020) CS (no value available) # 0, 0 ScheduledProcedureStepStatus + (fffe,e00d) na (ItemDelimitationItem for re-encoding) # 0, 0 ItemDelimitationItem +(fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem +(0040,1001) SH (no value available) # 0, 0 RequestedProcedureID +(0040,1003) SH (no value available) # 0, 0 RequestedProcedurePriority +(0040,1004) LO (no value available) # 0, 0 PatientTransportArrangements +(0040,3001) LO (no value available) # 0, 0 ConfidentialityConstraintOnPatientDataDescription \ No newline at end of file diff -r dbcbffb889da -r fff2b4a24b5f Database/Worklists/Sequences/STATION_AET/orig.7814.without.seq.dump --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Database/Worklists/Sequences/STATION_AET/orig.7814.without.seq.dump Thu Dec 08 19:58:28 2016 +0100 @@ -0,0 +1,45 @@ +(0008,0050) SH [AN123457] # 14, 1 AccessionNumber +(0008,0090) PN [ReferringPhysiciansName] # 12, 1 ReferringPhysiciansName +(0008,1080) LO (no value available) # 0, 0 AdmittingDiagnosesDescription +# (0008,1110) SQ (Sequence with explicit length #=0) # 36, 1 ReferencedStudySequence +# (fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem +# (0008,1120) SQ (Sequence with explicit length #=0) # 36, 1 ReferencedPatientSequence +# (fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem +(0010,0010) PN [nn] # 2, 1 PatientsName +(0010,0020) LO [01234568] # 10, 1 PatientID +(0010,0030) DA (no value available) # 0, 0 PatientsBirthDate +(0010,0040) CS [F ] # 2, 1 PatientsSex +(0010,1000) LO (no value available) # 0, 0 OtherPatientIDs +(0010,1030) DS (no value available) # 0, 0 PatientsWeight +(0010,1040) LO (no value available) # 0, 0 PatientsAddress +(0010,2000) LO (no value available) # 0, 0 MedicalAlerts +(0010,2110) LO (no value available) # 0, 0 ContrastAllergies +(0010,21c0) US 4 # 2, 1 PregnancyStatus +(0020,000d) UI [1.2.826.0.1.12345678.8.975.1.11.123456.20161117140053.7814] # 58, 1 StudyInstanceUID +(0032,1032) PN [RequestingPhysician] # 12, 1 RequestingPhysician +(0032,1060) LO (no value available) # 0, 0 RequestedProcedureDescription +(0038,0010) LO (no value available) # 0, 0 AdmissionID +(0038,0050) LO (no value available) # 0, 0 SpecialNeeds +(0038,0300) LO (no value available) # 0, 0 CurrentPatientLocation +(0038,0500) LO (no value available) # 0, 0 PatientState +(0040,0100) SQ (Sequence with explicit length #=1) # 176, 1 ScheduledProcedureStepSequence + (fffe,e000) na (Item with explicit length #=13) # 168, 1 Item + (0008,0060) CS [CR] # 2, 1 Modality + (0032,1070) LO (no value available) # 0, 0 RequestedContrastAgent + (0040,0001) AE [STATION_AET] # 8, 1 ScheduledStationAETitle + (0040,0002) DA [20161116] # 8, 1 ScheduledProcedureStepStartDate + (0040,0003) TM [110253] # 6, 1 ScheduledProcedureStepStartTime + (0040,0004) DA (no value available) # 0, 0 ScheduledProcedureStepEndDate + (0040,0005) TM (no value available) # 0, 0 ScheduledProcedureStepEndTime + (0040,0006) PN [ScheduledPerformingPhysicianName] # 12, 1 ScheduledPerformingPhysiciansName + (0040,0007) LO (no value available) # 0, 0 ScheduledProcedureStepDescription + (0040,0009) SH (no value available) # 0, 0 ScheduledProcedureStepID + (0040,0010) SH (no value available) # 0, 0 ScheduledStationName + (0040,0011) SH (no value available) # 0, 0 ScheduledProcedureStepLocation + (0040,0020) CS (no value available) # 0, 0 ScheduledProcedureStepStatus + (fffe,e00d) na (ItemDelimitationItem for re-encoding) # 0, 0 ItemDelimitationItem +(fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem +(0040,1001) SH (no value available) # 0, 0 RequestedProcedureID +(0040,1003) SH (no value available) # 0, 0 RequestedProcedurePriority +(0040,1004) LO (no value available) # 0, 0 PatientTransportArrangements +(0040,3001) LO (no value available) # 0, 0 ConfidentialityConstraintOnPatientDataDescription \ No newline at end of file diff -r dbcbffb889da -r fff2b4a24b5f Plugins/Worklists/Run.py --- a/Plugins/Worklists/Run.py Thu Dec 08 12:46:04 2016 +0100 +++ b/Plugins/Worklists/Run.py Thu Dec 08 19:58:28 2016 +0100 @@ -70,13 +70,13 @@ os.remove(os.path.join(WORKING, f)) def AddToDatabase(source): - subprocess.check_call([ 'dump2dcm', '-g', '--write-xfer-little', + subprocess.check_call([ 'dump2dcm', '--write-xfer-little', os.path.join(DATABASE, source), os.path.join(WORKING, os.path.basename(source) + '.wl') ]) def RunQuery(source, ignoreTags): with tempfile.NamedTemporaryFile() as f: - subprocess.check_call([ 'dump2dcm', '-g', '--write-xfer-little', + subprocess.check_call([ 'dump2dcm', '--write-xfer-little', os.path.join(DATABASE, source), f.name ]) a = subprocess.check_output([ 'findscu', '-v', '--call', 'ORTHANC', '-aet', 'ORTHANCTEST', @@ -175,6 +175,16 @@ self.assertTrue(CompareAnswers(expected, answers)) + def test_vet(self): + AddToDatabase('Sequences/STATION_AET/orig.7705.dump') + AddToDatabase('Sequences/STATION_AET/orig.7814.dump') + AddToDatabase('Sequences/STATION_AET/orig.7814.without.seq.dump') + + self.assertEqual(2, len(RunQuery('Sequences/Queries/7814.without.length.dump', []))) + self.assertEqual(2, len(RunQuery('Sequences/Queries/7814.without.seq.dump', []))) + self.assertEqual(2, len(RunQuery('Sequences/Queries/orig.7814.dump', []))) + + try: print('\nStarting the tests...')