Esempio n. 1
0
<?php

/**
 * $Id: httpreq_list_diags.php 19374 2013-06-01 12:56:17Z mytto $
 *
 * @package    Mediboard
 * @subpackage PMSI
 * @author     SARL OpenXtrem <*****@*****.**>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision: 19374 $
 */
CCanDo::checkEdit();
$sejour_id = CValue::getOrSession("sejour_id");
$sejour = new CSejour();
$sejour->load($sejour_id);
$sejour->loadRefDossierMedical()->updateFormFields();
$patient = $sejour->loadRefPatient();
$patient->loadRefDossierMedical()->updateFormFields();
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("patient", $sejour->_ref_patient);
$smarty->assign("sejour", $sejour);
$smarty->display("inc_list_diags.tpl");
Esempio n. 2
0
<?php

/**
 * $Id: httpreq_diagnostic.php 19357 2013-05-30 14:24:19Z mytto $
 *
 * @package    Mediboard
 * @subpackage PMSI
 * @author     SARL OpenXtrem <*****@*****.**>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision: 19357 $
 */
$sejour_id = CValue::getOrSession("sejour_id");
$modeDAS = CValue::getOrSession("modeDAS", 1);
$sejour = new CSejour();
$sejour->load($sejour_id);
$sejour->loadExtDiagnostics();
$sejour->loadRefDossierMedical();
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("sejour", $sejour);
$smarty->assign("modeDAS", $modeDAS);
$smarty->display("inc_diagnostic.tpl");
Esempio n. 3
0
            }
            if (isset($_POST["cmca_uf_code"])) {
                $object->code_uf = $_POST["cmca_uf_code"];
            }
            if (isset($_POST["cmca_uf_libelle"])) {
                $object->libelle_uf = $_POST["cmca_uf_libelle"];
            }
        }
        break;
    case "CSejour":
        $object = new CSejour();
        // Chargement du séjour et génération du document
        $sejour_id = CValue::post("mb_sejour_id", CValue::getOrSession("object_id"));
        if ($object->load($sejour_id)) {
            $object->loadRefs();
            $object->loadRefDossierMedical();
            $object->loadNDA();
            $NDA = $object->_NDA;
            $object->_ref_patient->loadIPP();
            $IPP = $object->_ref_patient->_IPP;
            if (isset($_POST["sc_patient_id"])) {
                $object->_ref_patient->_IPP = $_POST["sc_patient_id"];
            }
            if (isset($_POST["sc_venue_id"])) {
                $object->_NDA = $_POST["sc_venue_id"];
            }
        }
        break;
}
// Facturation de l'opération où du séjour
$object->facture = 1;
if (CModule::getActive("dPprescription")) {
    CPrescription::$_load_lite = true;
}
$sejour->loadRefGrossesse();
$sejour->loadRefPraticien();
$prescription_sejour = $sejour->loadRefPrescriptionSejour();
$sejour->loadJourOp($date);
$prescription_sejour->loadJourOp($date);
$prescription_sejour->loadRefCurrentPraticien();
$prescription_sejour->loadLinesElementImportant();
$patient = $sejour->loadRefPatient();
$patient->countINS();
$patient->loadRefsNotes();
$sejour->loadRefsOperations();
$sejour->loadRefCurrAffectation();
$dossier_medical_sejour = $sejour->loadRefDossierMedical();
if ($dossier_medical_sejour->_id) {
    $dossier_medical_sejour->loadRefsAllergies();
    $dossier_medical_sejour->loadRefsAntecedents();
    $dossier_medical_sejour->countAntecedents(false);
    $dossier_medical_sejour->countAllergies();
}
$patient->loadRefPhotoIdentite();
$dossier_medical_patient = $patient->loadRefDossierMedical();
$patient->loadRefLatestConstantes(null, array("poids", "taille"));
if ($dossier_medical_patient->_id) {
    $dossier_medical_patient->loadRefsAllergies();
    $dossier_medical_patient->loadRefsAntecedents();
    $dossier_medical_patient->countAntecedents(false);
    $dossier_medical_patient->countAllergies();
}
Esempio n. 5
0
 /**
  * @see parent::fillTemplate()
  */
 function fillTemplate(&$template)
 {
     $this->loadRefsFwd();
     $this->_ref_consultation->fillTemplate($template);
     $this->fillLimitedTemplate($template);
     $this->_ref_operation->fillLimitedTemplate($template);
     $this->_ref_sejour->fillLimitedTemplate($template);
     // Dossier médical
     $this->_ref_sejour->loadRefDossierMedical()->fillTemplate($template, "Sejour");
     if (CModule::getActive("dPprescription")) {
         $sejour = $this->_ref_sejour;
         $sejour->loadRefsPrescriptions();
         $prescription = isset($sejour->_ref_prescriptions["pre_admission"]) ? $sejour->_ref_prescriptions["pre_admission"] : new CPrescription();
         $prescription->type = "pre_admission";
         $prescription->fillLimitedTemplate($template);
         $prescription = isset($sejour->_ref_prescriptions["sejour"]) ? $sejour->_ref_prescriptions["sejour"] : new CPrescription();
         $prescription->type = "sejour";
         $prescription->fillLimitedTemplate($template);
         $prescription = isset($sejour->_ref_prescriptions["sortie"]) ? $sejour->_ref_prescriptions["sortie"] : new CPrescription();
         $prescription->type = "sortie";
         $prescription->fillLimitedTemplate($template);
     }
 }
Esempio n. 6
0
 * @package    Mediboard
 * @subpackage PMSI
 * @author     SARL OpenXtrem <*****@*****.**>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision: $
 */
CCanDo::checkEdit();
// Chargement du séjour et des ses actes
$sejour = new CSejour();
$sejour->load(CValue::get("sejour_id"));
$sejour->loadRefPatient();
$sejour->loadRefPraticien();
$sejour->loadRefsActes();
$sejour->canDo();
$sejour->countExchanges();
$sejour->loadRefDossierMedical()->loadComplete();
$sejour->_ref_patient->loadRefDossierMedical()->loadComplete();
// Chargement des interventions et de leurs actes
foreach ($sejour->loadRefsOperations() as $_op) {
    $_op->loadRefPatient();
    $_op->loadRefAnesth()->loadRefFunction();
    $_op->loadRefPraticien()->loadRefFunction();
    $_op->loadRefPlageOp();
    $_op->loadRefSalle();
    $_op->loadRefsActes();
    $_op->canDo();
    $_op->countExchanges();
    $_op->loadRefsConsultAnesth()->loadRefConsultation()->loadRefPlageConsult();
}
// Chargement des consultations et de leurs actes
foreach ($sejour->loadRefsConsultations() as $_consult) {
 /**
  * Ajout des diagnostics
  *
  * @param DOMNode $elParent Node
  * @param CSejour $mbSejour Séjour
  *
  * @return void
  */
 function addDiagnosticsEtat(DOMNode $elParent, CSejour $mbSejour)
 {
     $send_only_das_diags = CAppUI::conf("hprimxml send_only_das_diags");
     $this->addDiagnosticEtat($elParent, strtoupper($mbSejour->DP), $send_only_das_diags ? "ds" : "dp");
     if ($mbSejour->DR) {
         $this->addDiagnosticEtat($elParent, strtoupper($mbSejour->DR), $send_only_das_diags ? "ds" : "dr");
     }
     $mbSejour->loadRefDossierMedical();
     $codes_cim = $mbSejour->_ref_dossier_medical->_codes_cim;
     if (count($codes_cim) <= 0) {
         return;
     }
     foreach ($codes_cim as $_diag_significatif) {
         $this->addDiagnosticEtat($elParent, strtoupper($_diag_significatif), "ds");
     }
 }