Project-MONAI / MONAILabel

MONAI Label is an intelligent open source image labeling and learning tool.
https://docs.monai.io/projects/label
Apache License 2.0
565 stars 185 forks source link

MONAILabel Inference Label export to external PACS systems #1650

Open kenbutcher opened 3 months ago

kenbutcher commented 3 months ago

Xnat-MONAILabel workflow development

Could we add the ability for MOANILabel to push dicom images to other PACS by providing an AEtitle, IP address and port number? This will allow us to send inference labels (dicom SEG) and secondary capture images directly to the PACS (rather than via Xnat).

AHarouni commented 3 months ago

We could use storescu to send dicoms then add function in the xnat.py datastore in save_label function to check on passed in parameters from the request. if ip,port, aetitle is available we could send the dicomsec and secondary capture as

        send2pacsIP = label_info.get('params',{}).get("send2pacsIP", "")
        send2pacsPORT = label_info.get('params',{}).get("send2pacsPORT", "")
        send2pacsAETitle = label_info.get('params',{}).get("send2pacsAETitle", "")
        if send2pacsIP and send2pacsPORT:
            storescu_send_file(tmpDcmSegpath, send2pacsIP, send2pacsPORT,send2pacsAETitle)