filenamesyntax help

  • Hi, Mr Marcel,


    I am having a problem with filenamesyntax, with conquest server 1417 alpha.


    Searching the forum, I find a setup to filenamesyntax and I´d like to use it.
    Here is it, with some changes to my needs:
    FileNameSyntax = lua:dofile('makefilename.lua')


    The makefilename.lua coding is:
    local n = Data.PatientID
    -- process n here
    if not n then
    n = strsub(n,1,16)
    end
    return os.date('%Y\\') .. os.date('%m\\') .. n ..'\\' .. Data.SOPInstanceUID .. '.dcm'


    But, when I use this script, the GUI configuration change the setup of the images named on disk from dcm(standard format) to V2(allow NKI compression).


    I´d like to stay using dcm(standard format) to images named on disk, and not V2(allow NKI compression). Is it possible when using this script?


    Best Regards,
    Luiz

  • Hi, Here is:


    # This file contains configuration information for the DICOM server
    # Do not edit unless you know what you are doing


    [sscscp]
    MicroPACS = sscscp
    Edition = Personal


    # Network configuration: server name and TCP/IP port#
    MyACRNema = CONQUESTSRV1
    TCPPort = 5678


    # Reference to other files: known dicom servers; database layout; sops
    ACRNemaMap = acrnema.map
    kFactorFile = dicom.sql
    SOPClassList = dgatesop.lst


    # Host(ignored), name, username and password for ODBC data source
    SQLHost = localhost
    SQLServer = dicom_dsn
    Username = SYSDBA
    Password = masterkey
    DoubleBackSlashToDB = 0
    UseEscapeStringConstants = 0


    # Configure database
    TruncateFieldNames = 10
    MaxFieldLength = 254
    MaxFileNameLength = 255
    FixPhilips = 0
    FixKodak = 0
    KeepAlive = 0
    LargeFileSizeKB = 4096
    PrintSquareLandscape = 0
    UseKpacsDecompression = 1
    ZipTime = 05:
    UIDPrefix = 1.2.826.0.1.3680043.2.135.734282.51546671
    EnableReadAheadThread = 1
    PatientQuerySortOrder =
    StudyQuerySortOrder =
    SeriesQuerySortOrder =
    ImageQuerySortOrder =
    EnableComputedFields = 1
    IndexDBF = 1
    PackDBF = 0
    LongQueryDBF = 1000
    TCPIPTimeOut = 300
    FailHoldOff = 60
    RetryDelay = 100
    RetryForwardFailed = 0
    ImportExportDragAndDrop = 0
    QueueSize = 128
    WorkListMode = 0
    WorkListReturnsISO_IR_100 = 1
    DebugLevel = 0
    Prefetcher = 0
    LRUSort =
    AllowTruncate =
    DecompressNon16BitsJpeg = 1
    UseBuiltInJPEG = 1
    LossyQuality = 95
    IgnoreOutOfMemoryErrors = 0
    NoDICOMCheck = 0
    PadAEWithZeros = 0
    FileNameSyntax = lua:dofile('makefilename.lua')


    # Configuration of compression for incoming images and archival
    DroppedFileCompression = un
    IncomingCompression = un
    ArchiveCompression = as


    # Names of the database tables
    PatientTableName = DICOMPatients
    StudyTableName = DICOMStudies
    SeriesTableName = DICOMSeries
    ImageTableName = DICOMImages
    DMarkTableName = DICOMAccessUpdates
    RegisteredMOPDeviceTable = RegisteredMOPIDs
    UIDToMOPIDTable = UIDToMOPID
    UIDToCDRIDTable = UIDToCDRID


    # Banner and host for debug information
    PACSName = CONQUESTSRV1
    OperatorConsole = 127.0.0.1


    # Configure email of error messages
    MailHost =
    MailPort = smtp
    MailSignon =
    MailFromName =
    MailRcptName1 =
    MailCollectTime = 1
    MailWaitTime = 10


    # Configuration of disk(s) to store images
    MAGDeviceThreshhold = 0
    MAGDeviceFullThreshHold = 30
    IgnoreMAGDeviceThreshold = 0
    MAGDevices = 1
    MAGDevice0 = C:\dicomserver\data\
    NightlyCleanThreshhold = 0

  • Hi,


    you dicom.ini looks OK. You are sure the lua file gets called? Also, be aware that conquest will not easily change filenames of files already in the system. I.e., you may have to delete the patient and send the images anew to make the change.


    Marcel

  • Hi, Mr Marcel,


    I am sure that lua file is called.


    The problem is only in the GUI form interface.


    If I use FileNameSyntax = lua:dofile('makefilename.lua'), the GUI form interface change the setup on "GUI form configuration" to V2(allow NKI compression).


    I can change the configuration back clicking on "imagens on disk are named" to dcm(standard format). But, when I shutdown conquest and restart it, the GUI form configuration comes back to V2(allow NKI compression). The setup is not saved.


    Best Regards,
    Luiz

Participate now!

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