MWL entry update

  • Hi!,


    I am trying to test the MWL for updating an order from scheduled to completed using HL7 ORC tags. Have added ORC mappings in dicom.sql, the order.hl7 file and the same order with status updateorder.hl7 file. by loading the order file an entry is created into the worklist, by loading the updateorder file another entry is added. The concept im trying is that an order is sent via an HL7 file which is a new order and is added to the MWL with status scheduled, another HL7 file is loaded after procedure completion which changes the status of the order from scheduled to completed.



    wondering if I am doing something wrong, please advise.




    dicom.sql



    order.hl7

    Code
    MSH|^~\&|conquest|conquest|REC_APP|REC_FAC|200512301613||ORM^001|123456|P|2.0.0|||||
    PID|1670|1234567897|1|ID0005|Patient^05||2005.05.05|M|||||||||||||||||||
    PV1||||||||||||||||||||||||||||||||||||||||||||||||||
    ORC|NW||2005-9999||SC||||200512301613||||||200512301613529400||||
    OBR|S-05|RefPhy-05|0005|CR^Chest05|1.2.826.0.1.9876.2.404.20051230.2313529400.050505|200512301613529400|201903021205|SchAE-05|||||||||||||CR|||||||||||||||200512301613529400|



    orderupdate.hl7

    Code
    MSH|^~\&|conquest|conquest|REC_APP|REC_FAC|200512301613||ORM^001|123456|P|2.0.0|||||
    PID|1670|1234567897|1|ID0005|Patient^05||2005.05.05|M|||||||||||||||||||
    PV1||||||||||||||||||||||||||||||||||||||||||||||||||
    ORC|SC||2005-9999||CM||||200512301613||||||200512301613529400||||
    OBR|S-05|RefPhy-05|0005|CR^Chest05|1.2.826.0.1.9876.2.404.20051230.2313529400.050505|200512301613529400|201903021205|SchAE-05|||||||||||||CR|||||||||||||||200512301613529400|





    regards,

  • Hi,


    The HL7 code is quite dumb. You request will require a code change in dgate.cpp. Any worklist message is entered as follows, line 26452:


    DB.AddRecord(WorkListTableName, fields, values);


    This would need to be modified to e.g. first delete the existing record on accession number. The passed accession number can be caught close to line 26404.


    Marcel

Participate now!

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