/** * Return idex type if it's special (e.g. Idex/...) * * @param CIdSante400 $idex Idex * * @return string|null */ function getSpecialIdex(CIdSante400 $idex) { if (CModule::getActive("mvsante")) { return CMVSante::getSpecialIdex($idex); } return null; }
/** * Return idex type if it's special (e.g. IPP/...) * * @param CIdSante400 $idex Idex * * @return string|null */ function getSpecialIdex(CIdSante400 $idex) { // L'identifiant externe est l'IPP if ($idex->tag == self::getTagIPP()) { return "IPP"; } if (CModule::getActive("mvsante")) { return CMVSante::getSpecialIdex($idex); } return null; }
/** * Get PV2.45 : operation * * @param CInteropReceiver $receiver Receiver * @param CSejour $sejour Admit * * @return array|null */ function getPV245(CInteropReceiver $receiver, CSejour $sejour) { $operation = $sejour->loadRefFirstOperation(); $operation->loadRefPlageOp(); $value = null; if (!empty($receiver->_configs["build_PV2_45"])) { $value = $receiver->_configs["build_PV2_45"]; } // Advance Directive Code switch ($value) { // Transmission de l'intervention case 'operation': if (!$operation) { return null; } $datetime = CHL7v2::getDateTime($operation->_datetime); $type_anesth = new CIdSante400(); if ($operation->type_anesth) { $tag_hl7 = $receiver->_tag_hl7; $type_anesth = CIdSante400::getMatch("CTypeAnesth", $tag_hl7, null, $operation->type_anesth); } $idex_chir = CIdSante400::getMatchFor($operation->loadRefChir(), $receiver->_tag_mediuser); $anesth = $operation->loadRefAnesth(); $idex_anesth = new CIdSante400(); if ($anesth->_id) { $idex_anesth = CIdSante400::getMatchFor($anesth, $receiver->_tag_mediuser); } $libelle = $operation->libelle; $PV2_45_2 = ""; // Datetime if ($datetime) { $PV2_45_2 .= "{$datetime}"; } $PV2_45_2 .= "#"; // Type anesth if ($type_anesth->id400) { $PV2_45_2 .= "{$type_anesth->id400}"; } $PV2_45_2 .= "#"; // Idex chir if ($idex_chir->id400) { $PV2_45_2 .= "{$idex_chir->id400}"; } $PV2_45_2 .= "#"; // Idex anesth if ($idex_anesth->id400) { $PV2_45_2 .= "{$idex_anesth->id400}"; } $PV2_45_2 .= "#"; // Libelle if ($libelle) { $PV2_45_2 .= "{$libelle}"; } if (CModule::getActive("mvsante")) { $PV2_45_2 .= CMVSante::getPV245($receiver, $sejour, $operation); } return array(array(null, $PV2_45_2)); default: return null; } }