/** * Query PACS on image. * * The query is built based on the $this->command_param. * * @return Array well formated array output based on the input parameters. * returns null is nothing was found for given command parmeters. * * @snippet test.pacs.class.php testQueryImage() */ public function queryImage() { if ($this->user_aet != null) { // build the command // dcmtk findcsu binaries // -xi: proposed transmission transfer syntaxes: // propose implicit VR little endian TS only $command = DICOM_DCMTK_FINDSCU . ' -xi'; $command .= ' -S'; $command .= ' -aec ' . $this->user_aec; $command .= ' -aet ' . $this->user_aet; // add base parameters $this->addParameter('QueryRetrieveLevel', 'IMAGE'); $this->addParameter('StudyInstanceUID', ''); $this->addParameter('SeriesInstanceUID', ''); PACS::_parseParam($this->command_param, $command); $this->_finishCommand($command); return $this->_executeAndFormat($command); } return null; }