Posts by jwest

    Hi,
    Maybe this subject is off-topic. So I apologize in advance.


    To fill a worklist table, I need generate StudyInstanceUID and AccessionNumber.
    I am working with delphi.


    Please, does someone has some delphi(pascal) code to generate StudyInstanceUID and AccessionNumber.


    Regards,
    Luiz

    Mr Marcel,


    OK,


    What lua modules/packages could I use in server side lua scripts?
    How could I add a package to handle http requests on lua server side scripts?


    Regards,
    Luiz

    Mr Marcel,


    PHP have plenty of code ready to use in Web page Development.


    I think we would have more flexibility to use in Web page Development to Wado Server.


    I can use javascript to client authorization, but it´s executed on client. I guess I could use php to server side client authorization.


    I´d like to access firebird database with lua scripts and I don´t know if I can do it only using lua.


    Regards,


    Luiz

    Hi, Marcel,.


    I am using 1.4.17c with dgate 32 bits.
    If you look at my log of first post of this topic we can see my conquest server seems compress the file as you posted.



    The problem is the image disapearing in Weasis.
    Weasis load the image with progress percent. I can see the image on Weasis, but next the image disappears. Itested with 1.2.840.10008.1.2.4.57 and the same problem occurs.


    I altered only weasisseriesxml.lua to include WadoTransferSyntaxUID="]].."1.2.840.10008.1.2.4.57" or WadoTransferSyntaxUID="]].."1.2.840.10008.1.2.4.90"
    I don´t modify .cq files. I guess I can´t alter .cq to include transfersyntax. I can see on my log posted above in my first post of this topic that conquest server seems works ok.


    But in both cases, I have java.io.EOFException in java log of weasis.

    My Weasisserisxml.lua


    If you see the log of my first post of this topic, Conquest seems work well, but there is an Exception on log of Java console.
    I can see Weasis loading the image(It apperas onscreen of weasis) and after the loading of the image in the Weasis, it disappears.


    NOTE: If I remove WadoTransferSyntaxUID from lua script all works well.


    Do you agree I send you privatelly the main page link of the web server and you check by self, the problem of the image disapearing?
    If yes, please send me your private e-mail.
    My email is xxxxxx
    Regards,
    Luiz

    Mr Marcel,
    With "&transferSyntax=1.2.840.10008.1.2.4.57", I received a prompt to download dgate.exe
    After the download, I rename it to dgate.dcm and Weasis was able to open it correctly.


    >> Does weasis even support jpeg2000 out of the box?
    I dont´know, But at http://www.dcm4che.org/conflue…lay/WEA/Dicom+Conformance we have for Weasis Dicom TransferSyntax:


    At http://forums.dcm4che.org/jive…pa?threadID=3106&tstart=0 it seems other user have success with jpeg2000 lossless


    Regards,
    Luiz

    Mr Marcel,


    I rename it to dgate.dcm and weasis is unable to open it. Nothing is showing in weasis.
    I tried open other dcm from conquest install and it opens ok, but the dgate.dcm doesn´t shows in weasis.


    I think it is corrupted.


    Regards,
    Luiz

    Mr Marcel,


    In Dicom Header of a Image, I have noted Brackets.
    Do They have some special meaning in this context?
    If not, is possible conquest server parse the header to delete it?


    Here is a sample:


    2001,9000 0 UN (empty)
    >0008,0016 28 UI SOPClassUID "1.2.840.10008.5.1.4.1.1.11.1"
    >0008,0018 52 UI SOPInstanceUID "1.3.46.670589.30.1.6.1.116520970982.1359404675781.1"
    >0008,1115 0 SQ ReferencedSeriesSequ Sequence Item
    >>0008,1140 0 SQ ReferencedImageSeque Sequence Item
    >>>0008,1150 26 UI ReferencedSOPClassUI "1.2.840.10008.5.1.4.1.1.1"
    >>>0008,1155 52 UI ReferencedSOPInstanc "1.3.46.670589.30.1.6.1.116520970982.1359404674906.2"
    >>0020,000e 52 UI SeriesInstanceUID "1.3.46.670589.30.1.6.1.116520970982.1359404674968.1"
    >0020,0013 2 IS ImageNumber "1 "
    >0070,0001 0 UN (empty)
    >>0070,0002 16 UN "ANNOTATION_LAYER"
    >>0070,0008 0 UN (empty)
    >>>0070,0004 6 UN "PIXEL "
    >>>0070,0006 2 UN (8261|2045)
    >>>0070,0010 8 UN 42(B)
    >>>0070,0011 8 UN 43(C)
    >>>0070,0014 8 UN 3d(=)
    >>>0070,0015 2 UN (8270|204e)
    >>>2001,0010 22 UN "Philips Imaging DD 001"
    >>>2001,106d 18 UN


    Regards,
    Luiz

    Marcel,


    Yes,


    I also used ..[[" WadoTransferSyntaxUID="]].."1.2.840.10008.1.2.4.91"..[[" WadoCompressionRate="]].."75"..[[" >
    The problem is the same.


    I generate this sample with altova from weasis xsd schema. Does it can help you?:



    Luiz

    Mr Marcel,


    When I enable compression at lua xml, the images in weasis are loading and next disappear.
    All my images on conquest server are uncompressed.


    I have enabled in dgatesop.lst:
    JPEG2000LosslessOnly 1.2.840.10008.1.2.4.90 transfer LittleEndianExplicit
    JPEG2000 1.2.840.10008.1.2.4.91 transfer LittleEndianExplicit


    I did tests with:
    JPEG2000LosslessOnly 1.2.840.10008.1.2.4.90 transfer LittleEndianExplicit
    JPEG2000 1.2.840.10008.1.2.4.91 transfer LittleEndianExplicit
    and the problem occurs in both cases.


    I also tried change .cq file to include transfersyntax without success. The same problem occurs.


    I enabled compression in weasisseriesxml.lua as:


    Code
    1. print('Content-Type: application/xml\n')local patid = string.gsub(series2, ':.*$', '')local seriesuid = string.gsub(series2, '^.*:', '')local q = DicomObject:new()q.QueryRetrieveLevel = 'IMAGE'q.PatientID = patidq.SeriesInstanceUID = seriesuidq.SOPInstanceUID = ''q.PatientBirthDate = ''q.PatientName = ''q.StudyInstanceUID = ''q.StudyDescription = ''q.StudyDate = ''q.StudyTime = ''q.SeriesDescription = ''q.SeriesNumber = ''q.Modality = ''q.ImageNumber = ''r = dicomquery(servercommand('get_param:MyACRNema'), 'IMAGE', q)print([[<?xml version="1.0" encoding="utf-8" ?><wado_query xmlns= "http://www.weasis.org/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" wadoURL="]]..webscriptadress..[[" requireOnlySOPInstanceUID="false" overrideDicomTagsList="0x00000000" > <Patient PatientID="]]..patid..[[" PatientName="]]..r[0].PatientName..[[" PatientBirthDate="]]..r[0].PatientBirthDate..[[" > <Study StudyInstanceUID="]]..r[0].StudyInstanceUID..[[" StudyDescription="]]..r[0].StudyDescription..[[" StudyDate="]]..r[0].StudyDate..[[" StudyTime="]]..r[0].StudyTime..[[" > <Series SeriesInstanceUID="]]..r[0].SeriesInstanceUID..[[" SeriesDescription="]]..r[0].SeriesDescription..[[" SeriesNumber="]]..r[0].SeriesNumber..[[" Modality="]]..r[0].Modality..[[" WadoTransferSyntaxUID="]].."1.2.840.10008.1.2.4.90"..[[" >]])for i=0, #r-1 do print([[<Instance SOPInstanceUID="]]..r[i].SOPInstanceUID..[[" InstanceNumber="]]..i..[[" />]])endprint([[ </Series> </Study> </Patient></wado_query>]])


    Here is the log from conquest server:

    Code
    1. [CONQUESTSRV1] 0000,0110 2 US MessageID 1 [CONQUESTSRV1] 0000,0800 2 US DataSetType 257 [CONQUESTSRV1] 0002,0010 17 UI TransferSyntaxUID "1.2.840.10008.1.2" [CONQUESTSRV1] 9999,0400 20 LO ConquestConsoleComma "get_param:MyACRNema" [CONQUESTSRV1] Connected by address: 020aa8c0[CONQUESTSRV1] Testing transfer: '1.2.840.10008.1.2' against list #0 = '1.2.840.10008.1.2'[CONQUESTSRV1] [CONQUESTSRV1] UPACS THREAD 2516: STARTED AT: Tue Jan 21 22:15:17 2014[CONQUESTSRV1] A-ASSOCIATE-RQ Packet Dump[CONQUESTSRV1] Calling Application Title : "CONQUESTSRV1 "[CONQUESTSRV1] Called Application Title : "CONQUESTSRV1 "[CONQUESTSRV1] Application Context : "1.2.840.10008.3.1.1.1", PDU length: 16384[CONQUESTSRV1] Number of Proposed Presentation Contexts: 1[CONQUESTSRV1] Presentation Context 0 "1.2.840.10008.5.1.4.1.2.2.1" 1[CONQUESTSRV1] Server Command := 0020[CONQUESTSRV1] Message ID := 001b[CONQUESTSRV1] 0000,0002 28 UI AffectedSOPClassUID "1.2.840.10008.5.1.4.1.2.2.1" [CONQUESTSRV1] 0000,0100 2 US CommandField 32 [CONQUESTSRV1] 0000,0110 2 US MessageID 27 [CONQUESTSRV1] 0000,0700 2 US Priority 0 [CONQUESTSRV1] 0000,0800 2 US DataSetType 258 [CONQUESTSRV1] 0002,0010 17 UI TransferSyntaxUID "1.2.840.10008.1.2" [CONQUESTSRV1] (StudyRootQuery) search level: IMAGE [CONQUESTSRV1] 0002,0010 17 UI TransferSyntaxUID "1.2.840.10008.1.2" [CONQUESTSRV1] 0008,0018 0 UI SOPInstanceUID (empty)[CONQUESTSRV1] 0008,0020 0 DA StudyDate (empty)[CONQUESTSRV1] 0008,0030 0 TM StudyTime (empty)[CONQUESTSRV1] 0008,0052 6 CS QueryRetrieveLevel "IMAGE " [CONQUESTSRV1] 0008,0060 0 CS Modality (empty)[CONQUESTSRV1] 0008,1030 0 LO StudyDescription (empty)[CONQUESTSRV1] 0008,103e 0 LO SeriesDescription (empty)[CONQUESTSRV1] 0010,0010 0 PN PatientName (empty)[CONQUESTSRV1] 0010,0020 6 LO PatientID "184152" [CONQUESTSRV1] 0010,0030 0 DA PatientBirthDate (empty)[CONQUESTSRV1] 0020,000d 0 UI StudyInstanceUID (empty)[CONQUESTSRV1] 0020,000e 52 UI SeriesInstanceUID "1.3.46.670589.30.1.6.1.116520970982.1387821732718.1" [CONQUESTSRV1] 0020,0011 0 IS SeriesNumber (empty)[CONQUESTSRV1] 0020,0013 0 IS ImageNumber (empty)[CONQUESTSRV1] Query On Image[CONQUESTSRV1] Issue Query on Columns: DICOMImages.SOPInstanc, DICOMImages.ImageNumbe, DICOMSeries.Modality, DICOMSeries.SeriesDesc, DICOMSeries.SeriesInst, DICOMSeries.SeriesNumb, DICOMStudies.StudyDate, DICOMStudies.StudyTime, DICOMStudies.StudyDescr, DICOMStudies.PatientNam, DICOMStudies.PatientID, DICOMStudies.PatientBir, DICOMStudies.StudyInsta[CONQUESTSRV1] Values: DICOMSeries.SeriesInst = '1.3.46.670589.30.1.6.1.116520970982.1387821732718.1' and DICOMStudies.PatientID = '184152' and DICOMSeries.StudyInsta = DICOMStudies.StudyInsta and DICOMImages.SeriesInst = DICOMSeries.SeriesInst[CONQUESTSRV1] Tables: DICOMImages, DICOMSeries, DICOMStudies[CONQUESTSRV1] Query Distinct Tables: DICOMImages, DICOMSeries, DICOMStudies[CONQUESTSRV1] Columns : DICOMImages.SOPInstanc, DICOMImages.ImageNumbe, DICOMSeries.Modality, DICOMSeries.SeriesDesc, DICOMSeries.SeriesInst, DICOMSeries.SeriesNumb, DICOMStudies.StudyDate, DICOMStudies.StudyTime, DICOMStudies.StudyDescr, DICOMStudies.PatientNam, DICOMStudies.PatientID, DICOMStudies.PatientBir, DICOMStudies.StudyInsta[CONQUESTSRV1] Where : DICOMSeries.SeriesInst = '1.3.46.670589.30.1.6.1.116520970982.1387821732718.1' and DICOMStudies.PatientID = '184152' and DICOMSeries.StudyInsta = DICOMStudies.StudyInsta and DICOMImages.SeriesInst = DICOMSeries.SeriesInst[CONQUESTSRV1] Order : (null)[CONQUESTSRV1] Records = 1[CONQUESTSRV1] First record of cleaned response:[CONQUESTSRV1] 0008,0018 52 UI SOPInstanceUID "1.3.46.670589.30.1.6.1.116520970982.1387821732640.2" [CONQUESTSRV1] 0008,0020 8 DA StudyDate "20131223" [CONQUESTSRV1] 0008,0030 14 TM StudyTime "160034.312000 " [CONQUESTSRV1] 0008,0060 2 CS Modality "CR" [CONQUESTSRV1] 0008,1030 14 LO StudyDescription "Coluna lombar " [CONQUESTSRV1] 0008,103e 2 LO SeriesDescription "AP" [CONQUESTSRV1] 0010,0010 14 PN PatientName ".RENATO BASTOS" [CONQUESTSRV1] 0010,0020 6 LO PatientID "184152" [CONQUESTSRV1] 0010,0030 0 DA PatientBirthDate (empty)[CONQUESTSRV1] 0020,000d 52 UI StudyInstanceUID "1.3.46.670589.30.1.6.1.116520970982.1387821468515.1" [CONQUESTSRV1] 0020,000e 52 UI SeriesInstanceUID "1.3.46.670589.30.1.6.1.116520970982.1387821732718.1" [CONQUESTSRV1] 0020,0011 2 IS SeriesNumber "1 " [CONQUESTSRV1] 0020,0013 2 IS ImageNumber "1 " [CONQUESTSRV1] C-Find (StudyRoot) located 1 records[CONQUESTSRV1] UPACS THREAD 2516: ENDED AT: Tue Jan 21 22:15:17 2014[CONQUESTSRV1] UPACS THREAD 2516: TOTAL RUNNING TIME: 0 SECONDS[CONQUESTSRV1] Connected by address: 020aa8c0[CONQUESTSRV1] Connected by address: 020aa8c0[CONQUESTSRV1] Testing transfer: '1.2.840.10008.1.2' against list #0 = '1.2.840.10008.1.2'[CONQUESTSRV1] Testing transfer: '1.2.840.10008.1.2' against list #0 = '1.2.840.10008.1.2'[CONQUESTSRV1] 0000,0002 18 UI AffectedSOPClassUID "1.2.840.10008.1.1" [CONQUESTSRV1] 0000,0100 2 US CommandField 48 [CONQUESTSRV1] 0000,0110 2 US MessageID 1 [CONQUESTSRV1] 0000,0800 2 US DataSetType 257 [CONQUESTSRV1] 0002,0010 17 UI TransferSyntaxUID "1.2.840.10008.1.2" [CONQUESTSRV1] 9999,0400 224 LO ConquestConsoleComma "wadorequest:1.3.46.670589.30.1.6.1.116520970982.1387821468515.1\\1.3.46.670589.30.1.6.1.116520970982.1387821732718.1\\1.3.46.670589.30.1.6.1.116520970982.1387821732640.2,0/0/0/0,0/0,,application/dicom,1.2.840.10008.1.2.4.90,,," [CONQUESTSRV1] Query Tables: DICOMImages[CONQUESTSRV1] Columns : ObjectFile, DeviceName[CONQUESTSRV1] Where : SOPInstanc = '1.3.46.670589.30.1.6.1.116520970982.1387821732640.2' AND SeriesInst = '1.3.46.670589.30.1.6.1.116520970982.1387821732718.1'[CONQUESTSRV1] Order : (null)[CONQUESTSRV1] 0000,0002 18 UI AffectedSOPClassUID "1.2.840.10008.1.1" [CONQUESTSRV1] 0000,0100 2 US CommandField 48 [CONQUESTSRV1] 0000,0110 2 US MessageID 1 [CONQUESTSRV1] 0000,0800 2 US DataSetType 257 [CONQUESTSRV1] 0002,0010 17 UI TransferSyntaxUID "1.2.840.10008.1.2" [CONQUESTSRV1] 9999,0400 200 LO ConquestConsoleComma "wadorequest:1.3.46.670589.30.1.6.1.116520970982.1387821468515.1\\1.3.46.670589.30.1.6.1.116520970982.1387821732718.1\\1.3.46.670589.30.1.6.1.116520970982.1387821732640.2,0/0/0/70,256/256,,image/jpeg,,,," [CONQUESTSRV1] Query Tables: DICOMImages[CONQUESTSRV1] Columns : ObjectFile, DeviceName[CONQUESTSRV1] Where : SOPInstanc = '1.3.46.670589.30.1.6.1.116520970982.1387821732640.2' AND SeriesInst = '1.3.46.670589.30.1.6.1.116520970982.1387821732718.1'[CONQUESTSRV1] Order : (null)[CONQUESTSRV1] Locating file:MAG0 184152\1.3.46.670589.30.1.6.1.116520970982.1387821732718.1_0001_000001_138782377104cd.dcm[CONQUESTSRV1] Locating file:MAG0 184152\1.3.46.670589.30.1.6.1.116520970982.1387821732718.1_0001_000001_138782377104cd.dcm[CONQUESTSRV1] Jasper compress started.[CONQUESTSRV1] JPEG2K Lossless[CONQUESTSRV1] , buffered data[CONQUESTSRV1] , planes[CONQUESTSRV1] , H = 1671, W = 1671, Bits = 12 in 16, Frames = 1, [CONQUESTSRV1] color = MONOCHROME2 [CONQUESTSRV1] Jasper compress time 2 seconds.[CONQUESTSRV1] [recompress]: recompressed with mode = jk (strip=0)[CONQUESTSRV1] Connected by address: 020aa8c0[CONQUESTSRV1] Testing transfer: '1.2.840.10008.1.2' against list #0 = '1.2.840.10008.1.2'[CONQUESTSRV1] 0000,0002 18 UI AffectedSOPClassUID "1.2.840.10008.1.1" [CONQUESTSRV1] 0000,0100 2 US CommandField 48 [CONQUESTSRV1] 0000,0110 2 US MessageID 1 [CONQUESTSRV1] 0000,0800 2 US DataSetType 257 [CONQUESTSRV1] 0002,0010 17 UI TransferSyntaxUID "1.2.840.10008.1.2" [CONQUESTSRV1] 9999,0400 20 LO ConquestConsoleComma "get_param:MyACRNema" [CONQUESTSRV1] Connected by address: 020aa8c0[CONQUESTSRV1] Testing transfer: '1.2.840.10008.1.2' against list #0 = '1.2.840.10008.1.2'[CONQUESTSRV1] [CONQUESTSRV1] UPACS THREAD 2520: STARTED AT: Tue Jan 21 22:15:56 2014[CONQUESTSRV1] A-ASSOCIATE-RQ Packet Dump[CONQUESTSRV1] Calling Application Title : "CONQUESTSRV1 "[CONQUESTSRV1] Called Application Title : "CONQUESTSRV1 "[CONQUESTSRV1] Application Context : "1.2.840.10008.3.1.1.1", PDU length: 16384[CONQUESTSRV1] Number of Proposed Presentation Contexts: 1[CONQUESTSRV1] Presentation Context 0 "1.2.840.10008.5.1.4.1.2.2.1" 1[CONQUESTSRV1] Server Command := 0020[CONQUESTSRV1] Message ID := 001b[CONQUESTSRV1] 0000,0002 28 UI AffectedSOPClassUID "1.2.840.10008.5.1.4.1.2.2.1" [CONQUESTSRV1] 0000,0100 2 US CommandField 32 [CONQUESTSRV1] 0000,0110 2 US MessageID 27 [CONQUESTSRV1] 0000,0700 2 US Priority 0 [CONQUESTSRV1] 0000,0800 2 US DataSetType 258 [CONQUESTSRV1] 0002,0010 17 UI TransferSyntaxUID "1.2.840.10008.1.2" [CONQUESTSRV1] (StudyRootQuery) search level: IMAGE [CONQUESTSRV1] 0002,0010 17 UI TransferSyntaxUID "1.2.840.10008.1.2" [CONQUESTSRV1] 0008,0018 0 UI SOPInstanceUID (empty)[CONQUESTSRV1] 0008,0020 0 DA StudyDate (empty)[CONQUESTSRV1] 0008,0030 0 TM StudyTime (empty)[CONQUESTSRV1] 0008,0052 6 CS QueryRetrieveLevel "IMAGE " [CONQUESTSRV1] 0008,0060 0 CS Modality (empty)[CONQUESTSRV1] 0008,1030 0 LO StudyDescription (empty)[CONQUESTSRV1] 0008,103e 0 LO SeriesDescription (empty)[CONQUESTSRV1] 0010,0010 0 PN PatientName (empty)[CONQUESTSRV1] 0010,0020 6 LO PatientID "184152" [CONQUESTSRV1] 0010,0030 0 DA PatientBirthDate (empty)[CONQUESTSRV1] 0020,000d 0 UI StudyInstanceUID (empty)[CONQUESTSRV1] 0020,000e 52 UI SeriesInstanceUID "1.3.46.670589.30.1.6.1.116520970982.1387821732718.1" [CONQUESTSRV1] 0020,0011 0 IS SeriesNumber (empty)[CONQUESTSRV1] 0020,0013 0 IS ImageNumber (empty)[CONQUESTSRV1] Query On Image[CONQUESTSRV1] Issue Query on Columns: DICOMImages.SOPInstanc, DICOMImages.ImageNumbe, DICOMSeries.Modality, DICOMSeries.SeriesDesc, DICOMSeries.SeriesInst, DICOMSeries.SeriesNumb, DICOMStudies.StudyDate, DICOMStudies.StudyTime, DICOMStudies.StudyDescr, DICOMStudies.PatientNam, DICOMStudies.PatientID, DICOMStudies.PatientBir, DICOMStudies.StudyInsta[CONQUESTSRV1] Values: DICOMSeries.SeriesInst = '1.3.46.670589.30.1.6.1.116520970982.1387821732718.1' and DICOMStudies.PatientID = '184152' and DICOMSeries.StudyInsta = DICOMStudies.StudyInsta and DICOMImages.SeriesInst = DICOMSeries.SeriesInst[CONQUESTSRV1] Tables: DICOMImages, DICOMSeries, DICOMStudies[CONQUESTSRV1] Query Distinct Tables: DICOMImages, DICOMSeries, DICOMStudies[CONQUESTSRV1] Columns : DICOMImages.SOPInstanc, DICOMImages.ImageNumbe, DICOMSeries.Modality, DICOMSeries.SeriesDesc, DICOMSeries.SeriesInst, DICOMSeries.SeriesNumb, DICOMStudies.StudyDate, DICOMStudies.StudyTime, DICOMStudies.StudyDescr, DICOMStudies.PatientNam, DICOMStudies.PatientID, DICOMStudies.PatientBir, DICOMStudies.StudyInsta[CONQUESTSRV1] Where : DICOMSeries.SeriesInst = '1.3.46.670589.30.1.6.1.116520970982.1387821732718.1' and DICOMStudies.PatientID = '184152' and DICOMSeries.StudyInsta = DICOMStudies.StudyInsta and DICOMImages.SeriesInst = DICOMSeries.SeriesInst[CONQUESTSRV1] Order : (null)[CONQUESTSRV1] Records = 1[CONQUESTSRV1] First record of cleaned response:[CONQUESTSRV1] 0008,0018 52 UI SOPInstanceUID "1.3.46.670589.30.1.6.1.116520970982.1387821732640.2" [CONQUESTSRV1] 0008,0020 8 DA StudyDate "20131223" [CONQUESTSRV1] 0008,0030 14 TM StudyTime "160034.312000 " [CONQUESTSRV1] 0008,0060 2 CS Modality "CR" [CONQUESTSRV1] 0008,1030 14 LO StudyDescription "Coluna lombar " [CONQUESTSRV1] 0008,103e 2 LO SeriesDescription "AP" [CONQUESTSRV1] 0010,0010 14 PN PatientName ".RENATO BASTOS" [CONQUESTSRV1] 0010,0020 6 LO PatientID "184152" [CONQUESTSRV1] 0010,0030 0 DA PatientBirthDate (empty)[CONQUESTSRV1] 0020,000d 52 UI StudyInstanceUID "1.3.46.670589.30.1.6.1.116520970982.1387821468515.1" [CONQUESTSRV1] 0020,000e 52 UI SeriesInstanceUID "1.3.46.670589.30.1.6.1.116520970982.1387821732718.1" [CONQUESTSRV1] 0020,0011 2 IS SeriesNumber "1 " [CONQUESTSRV1] 0020,0013 2 IS ImageNumber "1 " [CONQUESTSRV1] C-Find (StudyRoot) located 1 records[CONQUESTSRV1] UPACS THREAD 2520: ENDED AT: Tue Jan 21 22:15:56 2014[CONQUESTSRV1] UPACS THREAD 2520: TOTAL RUNNING TIME: 0 SECONDS[CONQUESTSRV1] Connected by address: 020aa8c0[CONQUESTSRV1] Connected by address: 020aa8c0[CONQUESTSRV1] Testing transfer: '1.2.840.10008.1.2' against list #0 = '1.2.840.10008.1.2'[CONQUESTSRV1] Testing transfer: '1.2.840.10008.1.2' against list #0 = '1.2.840.10008.1.2'[CONQUESTSRV1] 0000,0002 18 UI AffectedSOPClassUID "1.2.840.10008.1.1" [CONQUESTSRV1] 0000,0100 2 US CommandField 48 [CONQUESTSRV1] 0000,0110 2 US MessageID 1 [CONQUESTSRV1] 0000,0800 2 US DataSetType 257 [CONQUESTSRV1] 0002,0010 17 UI TransferSyntaxUID "1.2.840.10008.1.2" [CONQUESTSRV1] 9999,0400 200 LO ConquestConsoleComma "wadorequest:1.3.46.670589.30.1.6.1.116520970982.1387821468515.1\\1.3.46.670589.30.1.6.1.116520970982.1387821732718.1\\1.3.46.670589.30.1.6.1.116520970982.1387821732640.2,0/0/0/70,256/256,,image/jpeg,,,," [CONQUESTSRV1] Query Tables: DICOMImages[CONQUESTSRV1] Columns : ObjectFile, DeviceName[CONQUESTSRV1] Where : SOPInstanc = '1.3.46.670589.30.1.6.1.116520970982.1387821732640.2' AND SeriesInst = '1.3.46.670589.30.1.6.1.116520970982.1387821732718.1'[CONQUESTSRV1] Order : (null)[CONQUESTSRV1] 0000,0002 18 UI AffectedSOPClassUID "1.2.840.10008.1.1" [CONQUESTSRV1] 0000,0100 2 US CommandField 48 [CONQUESTSRV1] 0000,0110 2 US MessageID 1 [CONQUESTSRV1] 0000,0800 2 US DataSetType 257 [CONQUESTSRV1] 0002,0010 17 UI TransferSyntaxUID "1.2.840.10008.1.2" [CONQUESTSRV1] 9999,0400 224 LO ConquestConsoleComma "wadorequest:1.3.46.670589.30.1.6.1.116520970982.1387821468515.1\\1.3.46.670589.30.1.6.1.116520970982.1387821732718.1\\1.3.46.670589.30.1.6.1.116520970982.1387821732640.2,0/0/0/0,0/0,,application/dicom,1.2.840.10008.1.2.4.90,,," [CONQUESTSRV1] Query Tables: DICOMImages[CONQUESTSRV1] Columns : ObjectFile, DeviceName[CONQUESTSRV1] Where : SOPInstanc = '1.3.46.670589.30.1.6.1.116520970982.1387821732640.2' AND SeriesInst = '1.3.46.670589.30.1.6.1.116520970982.1387821732718.1'[CONQUESTSRV1] Order : (null)[CONQUESTSRV1] Locating file:MAG0 184152\1.3.46.670589.30.1.6.1.116520970982.1387821732718.1_0001_000001_138782377104cd.dcm[CONQUESTSRV1] Locating file:MAG0 184152\1.3.46.670589.30.1.6.1.116520970982.1387821732718.1_0001_000001_138782377104cd.dcm[CONQUESTSRV1] Jasper compress started.[CONQUESTSRV1] JPEG2K Lossless[CONQUESTSRV1] , buffered data[CONQUESTSRV1] , planes[CONQUESTSRV1] , H = 1671, W = 1671, Bits = 12 in 16, Frames = 1, [CONQUESTSRV1] color = MONOCHROME2 [CONQUESTSRV1] Jasper compress time 2 seconds.[CONQUESTSRV1] [recompress]: recompressed with mode = jk (strip=0)


    and here is the log of java console:


    Any help will be appreciated.


    Thanks in advance,


    Luiz

    Mr Marcel,


    That´s ok.


    I solved the lines breaks and formating problem of the header opening in a new window with the next function:



    Luiz

    Mr Marcel,
    Thanks for sample.
    I solve my problem.


    Now, I need help on two things:
    1. I am now translating to Lua the piece of code of patientfinder, studyfinder, ....
    I was searching on manual and I have seen the syntax: patientfinder:srv|str|fmt|file List patients on server
    I look at dgate.cpp and did the translate to lua.
    I have tried many options.
    The log on server shows my code was executed on server. It find records but no returns are showing on webserver.
    Here is my code:

    Code
    1. command = string.format("patientfinder:%s|%s", dest, query)
    2. command = command.."|%s"
    3. HTML(servercommand(command))


    I have noted other commands sent to conquest server via servercommand has no response to web browser.


    Is there some tip to solve the problem?


    2. When I use your sample to download the header of a image, it is done, but I have no way to format the lines. Dgate.cpp use <pre>..</pre>.
    Do you know if exists a workaround to shows the line pre-formatted? It´s too hard look the window without line breaks.


    Regards,
    Luiz

    Mr Marcel,


    Sorry, but it didn´t work. No results to browser.
    My code:
    ss=CGI("slice")
    s = string.format("dump_header:%s,cgi", ss);
    HTML("<PRE>");
    HTML(servercommand(s))
    HTML("</PRE>");


    Log:
    [CONQUESTSRV1] 0000,0800 2 US DataSetType 257
    [CONQUESTSRV1] 0002,0010 17 UI TransferSyntaxUID "1.2.840.10008.1.2"
    [CONQUESTSRV1] 9999,0400 74 LO ConquestConsoleComma "dump_header:54823:1.3.46.670589.30.1.6.1.116520970982.1381927789484.2,cgi"
    [CONQUESTSRV1] Query Tables: DICOMImages
    [CONQUESTSRV1] Columns : ObjectFile, DeviceName
    [CONQUESTSRV1] Where : SOPInstanc = '1.3.46.670589.30.1.6.1.116520970982.1381927789484.2' AND ImagePat = '54823'
    [CONQUESTSRV1] Order : (null)
    [CONQUESTSRV1] Locating file:MAG0 54823\1.3.46.670589.30.1.6.1.116520970982.1381927790609.1_0002_000001_13819262550836.dcm



    Regards,
    Luiz