/** * @see parent::getSpec() */ function getSpec() { $spec = parent::getSpec(); $spec->table = 'operations'; $spec->key = 'operation_id'; $spec->measureable = true; $spec->events = array("dhe" => array("reference1" => array("CSejour", "sejour_id"), "reference2" => array("CPatient", "sejour_id.patient_id")), "checklist" => array("reference1" => array("CSejour", "sejour_id"), "reference2" => array("CPatient", "sejour_id.patient_id")), "preop" => array("reference1" => array("CSejour", "sejour_id"), "reference2" => array("CPatient", "sejour_id.patient_id")), "perop" => array("reference1" => array("CSejour", "sejour_id"), "reference2" => array("CPatient", "sejour_id.patient_id")), "liaison" => array("reference1" => array("CSejour", "sejour_id"), "reference2" => array("CPatient", "sejour_id.patient_id")), "entree_reveil" => array("reference1" => array("CSejour", "sejour_id"), "reference2" => array("CPatient", "sejour_id.patient_id")), "sortie_reveil" => array("reference1" => array("CSejour", "sejour_id"), "reference2" => array("CPatient", "sejour_id.patient_id")), "fin_intervention" => array("auto" => true, "reference1" => array("CSejour", "sejour_id"), "reference2" => array("CPatient", "sejour_id.patient_id"))); return $spec; }
/** * Initialize the class specifications * * @return CMbFieldSpec */ function getSpec() { $spec = parent::getSpec(); $spec->table = "devis_codage"; $spec->key = "devis_codage_id"; return $spec; }