copy a study

  • Hi,


    start with dgate -? Here are the move options:


    DICOM move options:
    --movepatient:source,dest,patid Move patient, source e.g. (local)
    --movestudy:source,dest,patid:studyuid Move study, patid: optional
    --moveaccession:source,dest,patid:acc Move by Accession#, patid: optional
    --movestudies:source,dest,date(range) Move studies on date
    --moveseries:src,dst,patid:seruid,stuid Move series patid: optional
    --move:src,dst,p,st,ser,sop Move patient..image


    Hope these help.


    Marcel

  • Hello, meanwhile I thank you for the quick reply.
    I can not use the "--movestudies: source, dest, dates (range) Move studies on dates" with dGATE under linux.
    I would like to know the syntax of the command, in more detail.
    Is there a manual reference id for the command line?
    Thank you


    Massimo

  • Hello,
    I'm trying to use the command "--moveaccession: source, dest, patid: acc Move by Accession #, patid: optional" but I get an error.
    Can I make a practical example of the command to launch from linux consoles if I want to send the study that has as accessionnumber R201700022 from my PACS CONQUEST to a DICOM node?


    Thank you
    Greetings

  • Hello,
    I thought I made some mistakes in the command syntax but it does not seem to me.
    I find myself in this situation:
    I have 2 PACS servers: one is called NOVAPACS on a linux basis, the other is called CONQUESTSRV1 on a windows base.
    I have to copy a studio from the first server to the second one MR studio that has the following tags:
    AccessionNumber: R2017003021
    PatientID: 44916


    Premising that the two servers were declared on both Conquest configurations and that they already accept studies from different modes, I can not copy the studies from one server to another.
    The command that digitosul linux server is as follows:
    ./dgate --moveaccession: NOVAPACS, CONQUESTSRV1,44916:R2017003021
    I get as a video error: Move failed from ion: NOVAPACS to CONQUESTSRV1


    what can I do?


    Thank you


    Massimo

  • Yes, there are no spaces, it was a google translator to enter the spaces but in the command line I entered there are no spaces:
    ./dgate --moveaccession:NOVAPACS,CONQUESTSRV1,44916:R2017003021


    What can I do?


    Thank you

  • Hi, Marcel,
    Better analyzing the error "Move failed from ion: NOVAPACS to CONQUESTSRV1" I thought that "from ion" would indicate that there is actually an "ion" in it, so perhaps the right command is "./dgate --moveaccess : Xxxxxxxxxxx "and not" --moveaccession "?


    Massimo

  • Hi Massimo,


    thanks for your help in this. Which version are you on? There is is a fix in this command in 1.4.19 that I forgot about. The 'ion' feedback reminded me. If you are on linux you can patch the source code yourself.


    regards,


    Marcel

  • Ah,


    Find and replace the following snippet in dgate.cpp and then recompile:



    I believe I miscounted the length of the command, i.e., in your version something else as +14 is used.


    Marcel

  • Hello Marcel,


    I've tested --moveaccess on build 1.4.19 on windows, looks like there is still problem to move images with accessionID. Is there any workaround as I need to use command line to query PACS with accession.


    Thanks,


    Haluk


  • Sorry, It is my mistake, I retest again with 2 Conquests, it works Conquest 2 Conquest however PACS on other side can't response with accessionID.


    Thanks,


    Haluk

  • Hi Marcel,


    I am using dgate64.exe to trigger a query from Mirth. Although I can query both GE PACS and Siemens with --movestudy but both give me an error query with moveaccession.
    here is the log for moveaccession and movestudy. Looks like moveaccession is making query study based?


    Any help much appreciated.


    Unsuccessful move accession;


    [BB4D] Connected by address: 0100007f
    [BB4D] Testing transfer: '1.2.840.10008.1.2' against list #0 = '1.2.840.10008.1.2'
    [BB4D] 0000,0002 18 UI AffectedSOPClassUID "1.2.840.10008.1.1"
    [BB4D] 0000,0100 2 US CommandField 48
    [BB4D] 0000,0110 2 US MessageID 1
    [BB4D] 0000,0800 2 US DataSetType 257
    [BB4D] 0002,0010 17 UI TransferSyntaxUID "1.2.840.10008.1.2"
    [BB4D] 9999,0300 42 LO ConquestConsoleText "Server command sent using DGATE -- option"
    [BB4D] 9999,0400 50 LO ConquestConsoleComma "moveaccession:SIEPACSSRV,BB4D,PLA4567002642143"
    [BB4D] Server command sent using DGATE -- option
    [BB4D] ***preretrieve/forward xxx to: remote DICOM error
    [BB4D] 0000,0002 28 UI AffectedSOPClassUID "1.2.840.10008.5.1.4.1.2.2.2"
    [BB4D] 0000,0100 2 US CommandField 32801
    [BB4D] 0000,0120 2 US MessageIDBeingRespon 7777
    [BB4D] 0000,0800 2 US DataSetType 257
    [BB4D] 0000,0900 2 US Status 43264
    [BB4D] 0000,1021 2 US NumberOfCompletedSub 0
    [BB4D] 0000,1022 2 US NumberOfFailedSubope 0
    [BB4D] 0000,1023 2 US NumberOfWarningSubop 0
    [BB4D] 0002,0010 17 UI TransferSyntaxUID "1.2.840.10008.1.2"


    Successful movestudy;


    [BB4D] Connected by address: 0100007f
    [BB4D] Testing transfer: '1.2.840.10008.1.2' against list #0 = '1.2.840.10008.1.2'
    [BB4D] 0000,0002 18 UI AffectedSOPClassUID "1.2.840.10008.1.1"
    [BB4D] 0000,0100 2 US CommandField 48
    [BB4D] 0000,0110 2 US MessageID 1
    [BB4D] 0000,0800 2 US DataSetType 257
    [BB4D] 0002,0010 17 UI TransferSyntaxUID "1.2.840.10008.1.2"
    [BB4D] 9999,0300 42 LO ConquestConsoleText "Server command sent using DGATE -- option"
    [BB4D] 9999,0400 88 LO ConquestConsoleComma "movestudy:SIEPACSSRV,BB4D,1.3.12.2.1107.5.8.3.807665.525354.55565748.2016071212250993"
    [BB4D] Server command sent using DGATE -- option
    [BB4D] Connected by address: dc040a0a
    [BB4D] Testing transfer: '1.2.840.10008.1.2.1' against list #0 = '1.2.840.10008.1.2'
    [BB4D] Testing transfer: '1.2.840.10008.1.2' against list #0 = '1.2.840.10008.1.2'
    [BB4D] Testing transfer: '1.2.840.10008.1.2.4.50' against list #0 = '1.2.840.10008.1.2'
    [BB4D] Testing transfer: '1.2.840.10008.1.2.4.51' against list #0 = '1.2.840.10008.1.2'
    [BB4D] Testing transfer: '1.2.840.10008.1.2.4.70' against list #0 = '1.2.840.10008.1.2'
    [BB4D] Testing transfer: '1.2.840.10008.1.2.5' against list #0 = '1.2.840.10008.1.2'
    [BB4D] Testing transfer: '1.2.840.10008.1.2.4.91' against list #0 = '1.2.840.10008.1.2'
    [BB4D] Testing transfer: '1.2.840.10008.1.2.4.90' against list #0 = '1.2.840.10008.1.2'
    [BB4D] Testing transfer: '1.2.840.10008.1.2.4.100' against list #0 = '1.2.840.10008.1.2'
    [BB4D] Testing transfer: '1.2.840.10008.1.2.1' against list #0 = '1.2.840.10008.1.2'
    [BB4D] Testing transfer: '1.2.840.10008.1.2' against list #0 = '1.2.840.10008.1.2'
    [BB4D] Testing transfer: '1.2.840.10008.1.2.4.50' against list #0 = '1.2.840.10008.1.2'
    [BB4D] Testing transfer: '1.2.840.10008.1.2.4.51' against list #0 = '1.2.840.10008.1.2'
    [BB4D] Testing transfer: '1.2.840.10008.1.2.4.70' against list #0 = '1.2.840.10008.1.2'
    [BB4D] Testing transfer: '1.2.840.10008.1.2.5' against list #0 = '1.2.840.10008.1.2'
    [BB4D] Testing transfer: '1.2.840.10008.1.2.4.91' against list #0 = '1.2.840.10008.1.2'
    [BB4D] Testing transfer: '1.2.840.10008.1.2.4.90' against list #0 = '1.2.840.10008.1.2'
    [BB4D] Testing transfer: '1.2.840.10008.1.2.4.100' against list #0 = '1.2.840.10008.1.2'
    [BB4D]
    [BB4D] UPACS THREAD 567: STARTED AT: Tue Oct 10 12:20:23 2017
    [BB4D] A-ASSOCIATE-RQ Packet Dump
    [BB4D] Calling Application Title : "SIEPACSSRV "
    [BB4D] Called Application Title : "BB4D "
    [BB4D] Application Context : "1.2.840.10008.3.1.1.1", PDU length: 64512
    [BB4D] Number of Proposed Presentation Contexts: 16
    [BB4D] Presentation Context 0 "1.2.840.10008.5.1.4.1.1.1" 1
    [BB4D] Presentation Context 1 "1.2.840.10008.5.1.4.1.1.1" 1
    [BB4D] Presentation Context 2 "1.2.840.10008.5.1.4.1.1.1" 1
    [BB4D] Presentation Context 3 "1.2.840.10008.5.1.4.1.1.1" 1
    [BB4D] Presentation Context 4 "1.2.840.10008.5.1.4.1.1.1" 1
    [BB4D] Presentation Context 5 "1.2.840.10008.5.1.4.1.1.1" 1
    [BB4D] Presentation Context 6 "1.2.840.10008.5.1.4.1.1.1" 1
    [BB4D] Presentation Context 7 "1.2.840.10008.5.1.4.1.1.1" 1
    [BB4D] Presentation Context 8 "1.2.840.10008.5.1.4.1.2.2.2" 1
    [BB4D] Presentation Context 9 "1.2.840.10008.5.1.4.1.2.2.2" 1
    [BB4D] Presentation Context 10 "1.2.840.10008.5.1.4.1.2.2.2" 1
    [BB4D] Presentation Context 11 "1.2.840.10008.5.1.4.1.2.2.2" 1
    [BB4D] Presentation Context 12 "1.2.840.10008.5.1.4.1.2.2.2" 1
    [BB4D] Presentation Context 13 "1.2.840.10008.5.1.4.1.2.2.2" 1
    [BB4D] Presentation Context 14 "1.2.840.10008.5.1.4.1.2.2.2" 1
    [BB4D] Presentation Context 15 "1.2.840.10008.5.1.4.1.2.2.2" 1
    [BB4D] Server Command := 0001
    [BB4D] Message ID := 1469
    [BB4D] 0000,0002 26 UI AffectedSOPClassUID "1.2.840.10008.5.1.4.1.1.1"
    [BB4D] 0000,0100 2 US CommandField 1
    [BB4D] 0000,0110 2 US MessageID 5225
    [BB4D] 0000,0700 2 US Priority 0
    [BB4D] 0000,0800 2 US DataSetType 0
    [BB4D] 0000,1000 48 UI AffectedSOPInstanceU "1.3.12.2.1107.5.3.49.22113.11.201607121253030656"
    [BB4D] 0002,0010 17 UI TransferSyntaxUID "1.2.840.10008.1.2"
    [BB4D] Importconverter2.0 executes: set 0008,0080 to "XXXX"
    [BB4D] Query Tables: DICOMImages
    [BB4D] Columns : ObjectFile, DeviceName
    [BB4D] Where : SOPInstanc = '1.3.12.2.1107.5.3.49.22113.11.201607121253030656' AND ImagePat = 'XXXX'
    [BB4D] Order : (null)
    [BB4D] Query Tables: DICOMImages
    [BB4D] Columns : SOPInstanc,SOPClassUI,ImageNumbe,ImageDate,ImageTime,EchoNumber,NumberOfFr,AcqDate,AcqTime,ReceivingC,AcqNumber,SliceLocat,SamplesPer,PhotoMetri,Rows,Colums,BitsStored,ImageType,ImageID,ImagePat,SeriesInst
    [BB4D] Where : SOPInstanc = '1.3.12.2.1107.5.3.49.22113.11.201607121253030656' AND ImagePat = 'XXXX'
    [BB4D] Order : (null)
    [BB4D] Update Table: DICOMImages
    [BB4D] Updates : SOPInstanc = '1.3.12.2.1107.5.3.49.22113.11.201607121253030656', SOPClassUI = '1.2.840.10008.5.1.4.1.1.1', ImageNumbe = '1', ImageDate = '20160712', ImageTime = '125303.0656', AcqDate = '20160712', AcqTime = '125303.0656', AcqNumber = '1', SamplesPer = '1', PhotoMetri = 'MONOCHROME2', Rows = '579', Colums = '1088', BitsStored = '12', ImageType = 'ORIGINAL\PRIMARY\\RAD', ImagePat = '60115651', SeriesInst = '1.3.12.2.1107.5.3.49.22113.2.201607121253030656', AccessTime = 1507627200, ObjectFile = '60115651\1.3.12.2.1107.5.3.49.22113.2.201607121253030656_0007_000001_15076251410bc1.dcm', DeviceName = 'MAG0'
    [BB4D] Where : SOPInstanc = '1.3.12.2.1107.5.3.49.22113.11.201607121253030656' AND ImagePat = '60115651'
    [BB4D] Query Tables: DICOMSeries
    [BB4D] Columns : SeriesInst,SeriesNumb,SeriesDate,SeriesTime,SeriesDesc,Modality,PatientPos,ContrastBo,Manufactur,ModelName,BodyPartEx,ProtocolNa,StationNam,Institutio,FrameOfRef,SeriesPat,StudyInsta
    [BB4D] Where : SeriesInst = '1.3.12.2.1107.5.3.49.22113.2.201607121253030656' AND SeriesPat = '60115651'
    [BB4D] Order : (null)
    [BB4D] Update Table: DICOMSeries
    [BB4D] Updates : SeriesInst = '1.3.12.2.1107.5.3.49.22113.2.201607121253030656', SeriesNumb = '7', SeriesDate = '20160712', SeriesTime = '125303', SeriesDesc = 'X098a Patella', Modality = 'CR', Manufactur = 'SIEMENS', ModelName = 'Fluorospot Compact FD', BodyPartEx = 'DIZ', ProtocolNa = 'X098a Patella', StationNam = 'FLCOMPACT', Institutio = 'XXXXXX', SeriesPat = '60115651', StudyInsta = '1.3.12.2.1107.5.8.3.807665.525354.55565748.2016071212250993', AccessTime = 1507627200
    [BB4D] Where : SeriesInst = '1.3.12.2.1107.5.3.49.22113.2.201607121253030656' AND SeriesPat = 'XXXXX'
    [BB4D] Query Tables: DICOMStudies
    [BB4D] Columns : StudyInsta,StudyDate,StudyTime,StudyID,StudyDescr,AccessionN,ReferPhysi,PatientsAg,PatientsWe,StudyModal,PatientNam,PatientBir,PatientSex,PatientID
    [BB4D] Where : StudyInsta = '1.3.12.2.1107.5.8.3.807665.525354.55565748.2016071212250993'
    [BB4D] Order : (null)
    [BB4D] Update Table: DICOMStudies
    [BB4D] Updates : StudyInsta = '1.3.12.2.1107.5.8.3.807665.525354.55565748.2016071212250993', StudyDate = '20160712', StudyTime = '125303', StudyID = '3465370', StudyDescr = 'Patella Tanjansiyel Grafisi (Sað)', AccessionN = 'PLA4567002642143', ReferPhysi = 'Ortopedi, Travmatoloji ve Spor Yaralanmalar?^^^^=^^^^=^^^^', PatientsAg = '054Y', StudyModal = 'CR', PatientNam = 'Uzun^Emine', PatientBir = '19611026', PatientSex = 'F', PatientID = '60115651', AccessTime = 1507627200
    [BB4D] Where : StudyInsta = '1.3.12.2.1107.5.8.3.807665.525354.55565748.2016071212250993'
    [BB4D] Query Tables: DICOMPatients
    [BB4D] Columns : PatientID,PatientNam,PatientBir,PatientSex
    [BB4D] Where : PatientID = '60115651'
    [BB4D] Order : (null)
    [BB4D] Update Table: DICOMPatients
    [BB4D] Updates : PatientID = 'XXXX', PatientNam = 'XXXX^XXXX', PatientBir = 'XXXXX', PatientSex = 'X', AccessTime = 1507627200
    [BB4D] Where : PatientID = 'XXXXXX'
    [BB4D] Rewritten file: E:\BB4D\ADDCOM\QR\Data\60115651\1.3.12.2.1107.5.3.49.22113.2.201607121253030656_0007_000001_15076251410bc1.dcm
    [BB4D] UPACS THREAD 567: ENDED AT: Tue Oct 10 12:20:24 2017
    [BB4D] UPACS THREAD 567: TOTAL RUNNING TIME: 1 SECONDS


    Best Regards,


    Haluk Celikel

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!