LUA: Data.Modality is NIL after dicommove()

  • Hi


    I've been testing the new LUA features in version 1.4.16j. In one of the tests I forward the current data using the global LUA variable "Data" and dicommove(), but the contents of Data (eg. Data.Modality) is NIL after the call to dicommove:


    Code
    print("1) Data is", Data, "and modality is", Data.Modality)dicommove(myAet, accAet , Data)print("2) Data is", Data, "and modality is", Data.Modality)


    The code will print


    Code
    1) Data is userdata:01227958 and modality is RTPLAN
    2) Data is userdata:01227958 and modality is nil


    Can you please clarify or advice me how to forward the current dataset - should i use newdicomobject() and :Read() to re-create the current dataset?

  • Hi,


    the data object passed is the query data for the C-MOVE, not a data object. This should be created on the fly and is indeed currently (incorrectly) destroyed after the dicommove() function.


    This example works:


    AE = 'CONQUESTSRV1';
    b=newdicomobject();
    b.PatientName = 'HEAD EXP2';
    b.QueryRetrieveLevel = 'STUDY';
    dicommove('CONQUESTSRV1', AE, b);


    Marcel

Participate now!

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