Beispiel #1
0
 public static function getIVSedationMatch($sID)
 {
     //$sPath = __MYFOLDER_CHOICES__."/list-iv-sedation.cfg";
     //return raptor_datalayer_Choices::getListItem($sPath,$sID);
     $oLO = new ListOptions();
     //TODO -- Cache the instance!!!!!!
     $aValues = $oLO->getSedationOptions('IV', 'ANY');
     $aValues[''] = '';
     //Add empty option
     return raptor_datalayer_Choices::getListItemFromArray($aValues, $sID);
 }
 /**
  * @return structure good for ajax usage
  */
 public static function getAllOptionsOfModalityStructured($modality_abbr)
 {
     $oLO = new ListOptions();
     $hydration['oral'] = $oLO->getHydrationOptions('ORAL', $modality_abbr);
     $hydration['iv'] = $oLO->getHydrationOptions('IV', $modality_abbr);
     $sedation['oral'] = $oLO->getSedationOptions('ORAL', $modality_abbr);
     $sedation['iv'] = $oLO->getSedationOptions('IV', $modality_abbr);
     $contrast['enteric'] = $oLO->getContrastOptions('ENTERIC', $modality_abbr);
     $contrast['iv'] = $oLO->getContrastOptions('IV', $modality_abbr);
     $radioisotope['enteric'] = $oLO->getRadioisotopeOptions('ENTERIC', $modality_abbr);
     $radioisotope['iv'] = $oLO->getRadioisotopeOptions('IV', $modality_abbr);
     $radioisotope = -1;
     $consentreq = -1;
     $protocolnotes = -1;
     $examnotes = -1;
     $value = array('hydration' => $hydration, 'sedation' => $sedation, 'contrast' => $contrast, 'radioisotope' => $radioisotope, 'consentreq' => $consentreq, 'protocolnotes' => $protocolnotes, 'examnotes' => $examnotes);
     return $value;
 }