pacsretrieve/pacsretrieve.py
def define_parameters(self):
        """
        Define the CLI arguments accepted by this plugin app.
        """

        # The space of input parameters is very straightforward
        #   1. The IP:port of the pfdcm service
        #   2. A 'msg' type string / dictionary to send to the service.

        # PACS settings
        self.add_argument(
            '--pfdcm',
            dest        = 'str_pfdcm',
            type        = str,
            default     = '',
            optional    = True,
            help        = 'The PACS Q/R intermediary service IP:port.')
        self.add_argument(
            '--msg',
            dest        = 'str_msg',
            type        = str,
            default     = '',
            optional    = True,
            help        = 'The actual complete JSON message to send to the Q/R intermediary service.')
        self.add_argument(
            '--indexList',
            dest        = 'str_indexList',
            type        = str,
            default     = '',
            optional    = True,
            help        = 'A comma separated list of indices into the priorHitsTable.')
        self.add_argument(
            '--priorHitsTable',
            dest        = 'str_priorHitsTable',
            type        = str,
            default     = '',
            optional    = True,
            help        = 'A JSON formatted file returned by a prior call to pacsquery.')
        self.add_argument(
            '--PatientID',
            dest        = 'str_patientID',
            type        = str,
            default     = '',
            optional    = True,
            help        = 'The PatientID to query.')
        self.add_argument(
            '--PACSservice',
            dest        = 'str_PACSservice',
            type        = str,
            default     = 'orthanc',
            optional    = True,
            help        = 'The PACS service to use. Note this a key to a lookup in "pfdcm".')
        self.add_argument(
            '--pullDirTemplate',
            dest        = 'str_pullDirTemplate',
            type        = str,
            default     = '%SeriesInstanceUID',
            optional    = True,
            help        = 'A template for directory names when pulled from "pfdcm".')
        self.add_argument(
            '--seriesSummaryKeys',
            dest        = 'str_seriesSummaryKeys',
            type        = str,
            default     = '',
            optional    = True,
            help        = 'If specified, generate a summary report for series based on a comma separated key list.')
        self.add_argument(
            '--seriesSummaryFile',
            dest        = 'str_seriesSummaryFile',
            type        = str,
            default     = '',
            optional    = True,
            help        = 'If specified, save (overwrite) a series summary report to passed file (in outputdir).')
        self.add_argument(
            '--studySummaryKeys',
            dest        = 'str_studySummaryKeys',
            type        = str,
            default     = '',
            optional    = True,
            help        = 'If specified, generate a summary report for study data based on a comma separated key list.')
        self.add_argument(
            '--studySummaryFile',
            dest        = 'str_studySummaryFile',
            type        = str,
            default     = '',
            optional    = True,
            help        = 'If specified, save (overwrite) a study summary report to passed file (in outputdir).')
        self.add_argument(
            '--numberOfHitsFile',
            dest        = 'str_numberOfHitsFile',
            type        = str,
            default     = '',
            optional    = True,
            help        = 'If specified, save (overwrite) the number of hits (in outputdir).')
        self.add_argument(
            '--resultFile',
            dest        = 'str_resultFile',
            type        = str,
            default     = '',
            optional    = True,
            help        = 'If specified, save (overwrite) all the hits to the passed file (in outputdir).')
        self.add_argument(
            '--man',
            dest        = 'str_man',
            type        = str,
            default     = '',
            optional    = True,
            help        = 'If specified, print help on the passed key entry. Use "entries" for all key list')
        self.add_argument(
            '--action',
            dest        = 'str_action',
            type        = str,
            default     = 'retrieve',
            optional    = True,
            help        = 'The action to perform. Default is "retrieve".')
        self.add_argument(
            '--pfurlQuiet',
            dest        = 'b_pfurlQuiet',
            type        = bool,
            default     = False,
            action      = 'store_true',
            optional    = True,
            help        = 'Silence pfurl noise.'),
        self.add_argument(
            '--serviceCallQuiet',
            dest        = 'b_serviceCallQuiet',
            type        = bool,
            default     = False,
            action      = 'store_true',
            optional    = True,
            help        = 'Silence service call comms.'),
        self.add_argument(
            '--jpgPreview',
            dest        = 'b_jpgPreview',
            type        = bool,
            default     = False,
            action      = 'store_true',
            optional    = True,
            help        = 'Generate a local jpg preview of received DICOM data.'),
        self.add_argument(
            '--version',
            dest        = 'b_version',
            type        = bool,
            default     = False,
            action      = 'store_true',
            optional    = True,
            help        = 'Show .')

        Define the CLI arguments accepted by this plugin app.
        
Define the CLI arguments accepted by this plugin app.
Define the CLI arguments accepted by this plugin app .
def define_parameters(self):
        self.add_argument(
            '--pfdcm',
            dest        = 'str_pfdcm',
            type        = str,
            default     = '',
            optional    = True,
            help        = 'The PACS Q/R intermediary service IP:port.')
        self.add_argument(
            '--msg',
            dest        = 'str_msg',
            type        = str,
            default     = '',
            optional    = True,
            help        = 'The actual complete JSON message to send to the Q/R intermediary service.')
        self.add_argument(
            '--indexList',
            dest        = 'str_indexList',
            type        = str,
            default     = '',
            optional    = True,
            help        = 'A comma separated list of indices into the priorHitsTable.')
        self.add_argument(
            '--priorHitsTable',
            dest        = 'str_priorHitsTable',
            type        = str,
            default     = '',
            optional    = True,
            help        = 'A JSON formatted file returned by a prior call to pacsquery.')
        self.add_argument(
            '--PatientID',
            dest        = 'str_patientID',
            type        = str,
            default     = '',
            optional    = True,
            help        = 'The PatientID to query.')
        self.add_argument(
            '--PACSservice',
            dest        = 'str_PACSservice',
            type        = str,
            default     = 'orthanc',
            optional    = True,
            help        = 'The PACS service to use. Note this a key to a lookup in "pfdcm".')
        self.add_argument(
            '--pullDirTemplate',
            dest        = 'str_pullDirTemplate',
            type        = str,
            default     = '%SeriesInstanceUID',
            optional    = True,
            help        = 'A template for directory names when pulled from "pfdcm".')
        self.add_argument(
            '--seriesSummaryKeys',
            dest        = 'str_seriesSummaryKeys',
            type        = str,
            default     = '',
            optional    = True,
            help        = 'If specified, generate a summary report for series based on a comma separated key list.')
        self.add_argument(
            '--seriesSummaryFile',
            dest        = 'str_seriesSummaryFile',
            type        = str,
            default     = '',
            optional    = True,
            help        = 'If specified, save (overwrite) a series summary report to passed file (in outputdir).')
        self.add_argument(
            '--studySummaryKeys',
            dest        = 'str_studySummaryKeys',
            type        = str,
            default     = '',
            optional    = True,
            help        = 'If specified, generate a summary report for study data based on a comma separated key list.')
        self.add_argument(
            '--studySummaryFile',
            dest        = 'str_studySummaryFile',
            type        = str,
            default     = '',
            optional    = True,
            help        = 'If specified, save (overwrite) a study summary report to passed file (in outputdir).')
        self.add_argument(
            '--numberOfHitsFile',
            dest        = 'str_numberOfHitsFile',
            type        = str,
            default     = '',
            optional    = True,
            help        = 'If specified, save (overwrite) the number of hits (in outputdir).')
        self.add_argument(
            '--resultFile',
            dest        = 'str_resultFile',
            type        = str,
            default     = '',
            optional    = True,
            help        = 'If specified, save (overwrite) all the hits to the passed file (in outputdir).')
        self.add_argument(
            '--man',
            dest        = 'str_man',
            type        = str,
            default     = '',
            optional    = True,
            help        = 'If specified, print help on the passed key entry. Use "entries" for all key list')
        self.add_argument(
            '--action',
            dest        = 'str_action',
            type        = str,
            default     = 'retrieve',
            optional    = True,
            help        = 'The action to perform. Default is "retrieve".')
        self.add_argument(
            '--pfurlQuiet',
            dest        = 'b_pfurlQuiet',
            type        = bool,
            default     = False,
            action      = 'store_true',
            optional    = True,
            help        = 'Silence pfurl noise.'),
        self.add_argument(
            '--serviceCallQuiet',
            dest        = 'b_serviceCallQuiet',
            type        = bool,
            default     = False,
            action      = 'store_true',
            optional    = True,
            help        = 'Silence service call comms.'),
        self.add_argument(
            '--jpgPreview',
            dest        = 'b_jpgPreview',
            type        = bool,
            default     = False,
            action      = 'store_true',
            optional    = True,
            help        = 'Generate a local jpg preview of received DICOM data.'),
        self.add_argument(
            '--version',
            dest        = 'b_version',
            type        = bool,
            default     = False,
            action      = 'store_true',
            optional    = True,
            help        = 'Show .')
def define_parameters ( self ) : self . add_argument ( '--pfdcm' , dest = 'str_pfdcm' , type = str , default = '' , optional = True , help = 'The PACS Q/R intermediary service IP:port.' ) self . add_argument ( '--msg' , dest = 'str_msg' , type = str , default = '' , optional = True , help = 'The actual complete JSON message to send to the Q/R intermediary service.' ) self . add_argument ( '--indexList' , dest = 'str_indexList' , type = str , default = '' , optional = True , help = 'A comma separated list of indices into the priorHitsTable.' ) self . add_argument ( '--priorHitsTable' , dest = 'str_priorHitsTable' , type = str , default = '' , optional = True , help = 'A JSON formatted file returned by a prior call to pacsquery.' ) self . add_argument ( '--PatientID' , dest = 'str_patientID' , type = str , default = '' , optional = True , help = 'The PatientID to query.' ) self . add_argument ( '--PACSservice' , dest = 'str_PACSservice' , type = str , default = 'orthanc' , optional = True , help = 'The PACS service to use. Note this a key to a lookup in "pfdcm".' ) self . add_argument ( '--pullDirTemplate' , dest = 'str_pullDirTemplate' , type = str , default = '%SeriesInstanceUID' , optional = True , help = 'A template for directory names when pulled from "pfdcm".' ) self . add_argument ( '--seriesSummaryKeys' , dest = 'str_seriesSummaryKeys' , type = str , default = '' , optional = True , help = 'If specified, generate a summary report for series based on a comma separated key list.' ) self . add_argument ( '--seriesSummaryFile' , dest = 'str_seriesSummaryFile' , type = str , default = '' , optional = True , help = 'If specified, save (overwrite) a series summary report to passed file (in outputdir).' ) self . add_argument ( '--studySummaryKeys' , dest = 'str_studySummaryKeys' , type = str , default = '' , optional = True , help = 'If specified, generate a summary report for study data based on a comma separated key list.' ) self . add_argument ( '--studySummaryFile' , dest = 'str_studySummaryFile' , type = str , default = '' , optional = True , help = 'If specified, save (overwrite) a study summary report to passed file (in outputdir).' ) self . add_argument ( '--numberOfHitsFile' , dest = 'str_numberOfHitsFile' , type = str , default = '' , optional = True , help = 'If specified, save (overwrite) the number of hits (in outputdir).' ) self . add_argument ( '--resultFile' , dest = 'str_resultFile' , type = str , default = '' , optional = True , help = 'If specified, save (overwrite) all the hits to the passed file (in outputdir).' ) self . add_argument ( '--man' , dest = 'str_man' , type = str , default = '' , optional = True , help = 'If specified, print help on the passed key entry. Use "entries" for all key list' ) self . add_argument ( '--action' , dest = 'str_action' , type = str , default = 'retrieve' , optional = True , help = 'The action to perform. Default is "retrieve".' ) self . add_argument ( '--pfurlQuiet' , dest = 'b_pfurlQuiet' , type = bool , default = False , action = 'store_true' , optional = True , help = 'Silence pfurl noise.' ) , self . add_argument ( '--serviceCallQuiet' , dest = 'b_serviceCallQuiet' , type = bool , default = False , action = 'store_true' , optional = True , help = 'Silence service call comms.' ) , self . add_argument ( '--jpgPreview' , dest = 'b_jpgPreview' , type = bool , default = False , action = 'store_true' , optional = True , help = 'Generate a local jpg preview of received DICOM data.' ) , self . add_argument ( '--version' , dest = 'b_version' , type = bool , default = False , action = 'store_true' , optional = True , help = 'Show .' )
Define the CLI arguments accepted by this plugin app.
Define the CLI arguments accepted by this plugin app .
"""
        Define the CLI arguments accepted by this plugin app.
        """ # The space of input parameters is very straightforward #   1. The IP:port of the pfdcm service #   2. A 'msg' type string / dictionary to send to the service. # PACS settings
self