Get patient information

  • Hi, I am wondering if it is possible for 'conquest dicom' to send the patient's data (examination number, name, date of birth, date of examination) to another database after he received the examination from the station?

  • code

    ImportConverter0 = "\Conquest-DICOM-Server-master\lua\recordinfo.lua"


    dicom log:

    CONQUESTSRV1] *** Importconverter0.0 error: \Conquest-DICOM-Server-master\lua\recordinfo.lua

    [CONQUESTSRV1] Added file: c:\users\tk\desktop\conquest-dicom-server-master\data\0009703828\1.3.46.670589.5.2.10.2156913941.892665339.860724_0001_002000_14579035620000.dcm

    [CONQUESTSRV1] *** Importconverter0.0 error: \Conquest-DICOM-Server-master\lua\recordinfo.lua

    [CONQUESTSRV1] Added file: c:\users\tk\desktop\conquest-dicom-server-master\data\0009703828\1.3.46.670589.5.2.10.2156913941.892665339.860724_0001_003000_14579035620001.dcm

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    code:

    ImportConverter0 = lua "print(Data.PatientID)"


    dicom log:

    [CONQUESTSRV1] Added file: c:\users\tk\desktop\conquest-dicom-server-master\data\0009703828\1.3.46.670589.5.2.10.2156913941.892665339.860724_0001_003000_14579035620001.dcm

    [CONQUESTSRV1] 0009703828

    [CONQUESTSRV1] Added file: c:\users\tk\desktop\conquest-dicom-server-master\data\0009703828\1.3.46.670589.5.2.10.2156913941.892665339.860724_0001_002000_14579035620000.dcm

    [CONQUESTSRV1] 0009703828

    [CONQUESTSRV1] Added file: c:\users\tk\desktop\conquest-dicom-server-master\data\0009703828\1.3.46.670589.5.2.10.2156913941.892665339.860724_0001_003000_14579035620001.dcm


    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


    Is it possible to specify in the script that from is executed only once for one patient?

  • Hi,


    first:

    ImportConverter0 = lua/recordinfo.lua


    second:

    ImportConverter0 = process study after 10 by lua/recordinfo.lua("%VPatientID;%VSeriesInstanceUID")

    This will call recordinfo.lua with the information in variable command_line after 10s


    The filename of the script is defined from where dgate64.exe is.


    Marcel

  • dicom_ini:

    ImportConverter0 = lua\recordinfo.lua


    log_conquest:

    [CONQUESTSRV1] 0009703828

    [CONQUESTSRV1] Added file: c:\users\tk\desktop\conquest-dicom-server-master\data\0009703828\1.3.46.670589.5.2.10.2156913941.892665339.860724_0001_002000_14579035620000.dcm

    [CONQUESTSRV1] 0009703828

    [CONQUESTSRV1] Added file: c:\users\tk\desktop\conquest-dicom-server-master\data\0009703828\1.3.46.670589.5.2.10.2156913941.892665339.860724_0001_003000_14579035620001.dcm

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    dicom_ini:

    ImportConverter0 = process study by lua\recordinfo.lua


    log_conquest:

    [CONQUESTSRV1] Importconverter0.0: queued process stu - (single object of 0009703828) to lua\recordinfo.lua

    [CONQUESTSRV1] Added file: c:\users\tk\desktop\conquest-dicom-server-master\data\0009703828\1.3.46.670589.5.2.10.2156913941.892665339.860724_0001_002000_14579035620000.dcm

    [CONQUESTSRV1] Added file: c:\users\tk\desktop\conquest-dicom-server-master\data\0009703828\1.3.46.670589.5.2.10.2156913941.892665339.860724_0001_003000_14579035620001.dcm

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


    It is not necessary for me to output this data to the terminal, I do this for debugging, I just want that when the server receives a survey, it makes a record in the database, at the moment it makes a record after each new file

  • Untested.


    ImportConverter0 = process study after 10 by lua/recordinfo.lua("%VStudyInstanceUID")


    recordinfo.lua

    Code
    print(command_line)
    q=DicomObject:new()
    q.StudyInstanceUID=command_line
    q.PatientID=''
    r=dicomquery('CONQUESTSRV1', 'STUDY', q)
    print(r[0].PatientID)

    Sample lua scripts can be found in overview.lua or the windows manual.


    Marcel

Participate now!

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