本文整理汇总了PHP中CMbArray类的典型用法代码示例。如果您正苦于以下问题:PHP CMbArray类的具体用法?PHP CMbArray怎么用?PHP CMbArray使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CMbArray类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: getFormHtmlElement
/**
* @see parent::getFormHtmlElement()
*/
function getFormHtmlElement($object, $params, $value, $className)
{
$maxLength = 10;
CMbArray::defaultValue($params, "size", $maxLength);
CMbArray::defaultValue($params, "maxlength", $maxLength);
return $this->getFormElementText($object, $params, $value, $className);
}
开发者ID:fbone,项目名称:mediboard4,代码行数:10,代码来源:CBirthDateSpec.class.php
示例2: fillOtherSegments
/**
* Fill other identifiers
*
* @param array &$data Datas
* @param array $ufs UF
* @param CHL7v2Event $event Event
*
* @return null
*/
function fillOtherSegments(&$data, $ufs = array(), CHL7v2Event $event)
{
// ZBE-8: Ward of care responsibility in the period starting with this movement (XON) (optional)
$uf_type = $event->_receiver->_configs["build_ZBE_8"];
/** @var CUniteFonctionnelle $uf_soins */
$uf_soins = isset($ufs[$uf_type]) ? $ufs[$uf_type] : null;
if (isset($uf_soins->_id)) {
$data[] = array(array($uf_soins->libelle, null, null, null, null, $this->getAssigningAuthority("mediboard"), "UF", null, null, $uf_soins->code));
} else {
$data[] = null;
}
// ZBE-9: Nature of this movement (CWE)
// S - Changement de responsabilité de soins uniquement
// H - Changement de responsabilité d'hébergement soins uniquement
// M - Changement de responsabilité médicale uniquement
// L - Changement de lit uniquement
// D - Changement de prise en charge médico-administrative laissant les responsabilités et la localisation du patient inchangées
// (ex : changement de tarif du séjour en unité de soins)
// SM - Changement de responsabilité soins + médicale
// SH - Changement de responsabilité soins + hébergement
// MH - Changement de responsabilité hébergement + médicale
// LD - Changement de prise en charge médico-administrative et de lit, laissant les responsabilités inchangées
// HMS - Changement conjoint des trois responsabilités.
/* @todo Voir comment gérer ceci... */
// Changement d'UF médicale
if (CMbArray::in($event->code, "Z80 Z81 Z82 Z83")) {
$data[] = "M";
} elseif (CMbArray::in($event->code, "Z84 Z85 Z86 Z87")) {
$data[] = "S";
} else {
$data[] = "HMS";
}
}
开发者ID:fbone,项目名称:mediboard4,代码行数:42,代码来源:CHL7v2SegmentZBE_FR.class.php
示例3: getSymbolChar
/**
* Get an HTML representation of the symbol char
*
* @return string The HTML symbol char
*/
function getSymbolChar()
{
$this->completeField("symbol", "show_points", "display");
if (!$this->show_points && $this->display != "points") {
return null;
}
return CMbArray::get(self::$_symbol_chars, $this->symbol);
}
开发者ID:fbone,项目名称:mediboard4,代码行数:13,代码来源:CSupervisionGraphAxis.class.php
示例4: getNameClass
/**
* Retourne le nom de la classe
*
* @return mixed|string
*/
function getNameClass()
{
$name = get_class($this);
$name = substr($name, 4);
if (get_class($this) === "CCDA_base_cs") {
$name = CMbArray::get(explode("_", $name), 1);
}
return $name;
}
开发者ID:fbone,项目名称:mediboard4,代码行数:14,代码来源:CCDA_Datatype_Voc.class.php
示例5: getFormHtmlElement
/**
* @see parent::getFormHtmlElement()
*/
function getFormHtmlElement($object, $params, $value, $className)
{
$field = CMbString::htmlSpecialChars($this->fieldName);
$value = CMbString::htmlSpecialChars($value);
$class = CMbString::htmlSpecialChars("{$className} {$this->prop}");
$form = CMbArray::extract($params, "form");
$extra = CMbArray::makeXmlAttributes($params);
return "<input type=\"tel\" name=\"{$field}\" value=\"{$value}\" class=\"{$class} styled-element\" {$extra} />";
}
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:12,代码来源:CPhoneSpec.class.php
示例6: updateFormFields
/**
* @see parent::updateFormFields()
*/
function updateFormFields()
{
$this->_query_params_get = $get = json_decode($this->query_params_get, true);
$this->_query_params_post = $post = json_decode($this->query_params_post, true);
$this->_session_data = $session = json_decode($this->session_data, true);
$get = is_array($get) ? $get : array();
$post = is_array($post) ? $post : array();
$this->_module = CValue::first(CMbArray::extract($get, "m"), CMbArray::extract($post, "m"));
$this->_action = CValue::first(CMbArray::extract($get, "tab"), CMbArray::extract($get, "a"), CMbArray::extract($post, "dosql"));
}
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:13,代码来源:CLongRequestLog.class.php
示例7: getSpecWithClassName
/**
* Returns a spec object for an object's field from a class name
*
* @param string $class The class name
* @param string $field The field name
* @param string $prop The prop string serializing the spec object options
*
* @throws Exception
* @return CMbFieldSpec
*/
static function getSpecWithClassName($class, $field, $prop)
{
$spec_class = "CMbFieldSpec";
// Get Spec type
$first_space = strpos($prop, " ");
$spec_type = $first_space === false ? $prop : substr($prop, 0, $first_space);
// Get spec class
if ($spec_type && null == ($spec_class = CMbArray::get(self::$classes, $spec_type))) {
throw new Exception("Invalid spec '{$prop}' for field '{$class}::{$field}'");
}
return new $spec_class($class, $field, $prop);
}
开发者ID:fbone,项目名称:mediboard4,代码行数:22,代码来源:CMbFieldSpecFact.class.php
示例8: deleteContentAndUpdateExchange
/**
* Delete content and update exchange
*
* @param CContentTabular $content_tabular Content tabular
* @param int $type_content_id Content ID
* @param date $date_max Date max
* @param int $max Max exchange
*
* @return int
*/
function deleteContentAndUpdateExchange(CContentTabular $content_tabular, $type_content_id, $date_max, $max)
{
$ds = $content_tabular->_spec->ds;
// Récupère les content Tabulé
$query = "SELECT cx.content_id\r\n FROM content_tabular AS cx, exchange_hl7v2 AS ec\r\n WHERE ec.`date_production` < '{$date_max}'\r\n AND ec.{$type_content_id} = cx.content_id\r\n LIMIT {$max};";
$ids = CMbArray::pluck($ds->loadList($query), "content_id");
// Suppression du contenu Tabulé
$query = "DELETE FROM content_tabular\r\n WHERE content_id " . CSQLDataSource::prepareIn($ids);
$ds->exec($query);
// Mise à jour des échanges
$query = "UPDATE exchange_hl7v2\r\n SET `{$type_content_id}` = NULL \r\n WHERE `{$type_content_id}` " . CSQLDataSource::prepareIn($ids);
$ds->exec($query);
$count = $ds->affectedRows();
return $count;
}
开发者ID:fbone,项目名称:mediboard4,代码行数:25,代码来源:ajax_purge_exchange.php
示例9: getValue
/**
* @see parent::getValue()
*/
function getValue($object, $smarty = null, $params = array())
{
if ($smarty) {
include_once $smarty->_get_plugin_filepath('modifier', 'date_format');
}
$propValue = $object->{$this->fieldName};
$format = CMbArray::extract($params, "format", CAppUI::conf("datetime"));
if ($format === "relative") {
$relative = CMbDate::relative($propValue, CMbDT::dateTime());
return $relative["count"] . " " . CAppUI::tr($relative["unit"] . ($relative["count"] > 1 ? "s" : ""));
}
$date = CMbArray::extract($params, "date");
if ($date && CMbDT::date($propValue) == $date) {
$format = CAppUI::conf("time");
}
return $propValue && $propValue != "0000-00-00 00:00:00" ? smarty_modifier_date_format($propValue, $format) : "";
}
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:20,代码来源:CDateTimeSpec.class.php
示例10: addAudiogramme
function addAudiogramme($values, $value_name, $title, $mark_color, $mark_type, $mark_file = null, $line = true)
{
$frequences = CExamAudio::$frequences;
$root = CAppUI::conf("root_dir");
$image_file = "{$root}/images/icons/{$mark_file}";
// Empty plot case
$datay = $values;
CMbArray::removeValue("", $datay);
if (!count($datay)) {
return;
}
$words = explode(" ", $this->title->t);
$cote = $words[1];
$labels = array();
$jscalls = array();
// Remove empty values to connect distant points
$datax = array();
$datay = array();
foreach ($values as $key => $value) {
if ($value !== "" && $value !== null) {
$frequence = $frequences[$key];
$jstitle = strtr($title, "\n", " ");
$labels[] = "Modifier la valeur {$value}dB pour {$jstitle} à {$frequence}";
$jscalls[] = "javascript:changeTonalValue('{$cote}','{$value_name}',{$key})";
$datay[] = -intval($value);
$datax[] = "{$key}";
// Needs to be a string when null
}
}
$p1 = new LinePlot($datay, $datax);
$p1->mark->SetType($mark_type, $image_file, 1.0);
$this->Add($p1);
// Create the first line
$p1->SetColor($mark_color);
$p1->SetCenter();
$p1->SetLegend($title);
$p1->SetWeight($line ? 1 : -10);
$p1->SetCSIMTargets($jscalls, $labels);
// Marks
$p1->mark->SetColor($mark_color);
$p1->mark->SetFillColor("{$mark_color}@0.6");
$p1->mark->SetWidth(4);
}
开发者ID:fbone,项目名称:mediboard4,代码行数:43,代码来源:inc_graph_audio_tonal.php
示例11: update
function update($newValues = array(), $keepOld = true)
{
$newValues = array_map_recursive('stripslashes', $newValues);
if ($keepOld) {
$this->load();
$newValues = CMbArray::mergeRecursive($this->values, $newValues);
}
if (!count($newValues)) {
if (is_file($this->targetPath)) {
unlink($this->targetPath);
}
return;
}
$this->values = $newValues;
// Throws many E_STRICT errors
$config = @new Config();
@$config->parseConfig($this->values, $this->configType, $this->options);
return @$config->writeConfig($this->targetPath, $this->configType, $this->options);
}
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:19,代码来源:CMbConfig.class.php
示例12: loadAllSalutations
/**
* Load all salutation from a given class
*
* @param string $object_class Target object class
* @param integer|null $object_id Target object ID
* @param int $perm Permission needed on owners
* @param integer|null $owner_id Specific owner ID
*
* @return CSalutation[]
*/
static function loadAllSalutations($object_class, $object_id = null, $perm = PERM_EDIT, $owner_id = null)
{
if (!$owner_id) {
$users = new CMediusers();
$users = $users->loadListWithPerms($perm, array('actif' => "= '1'"));
$user_ids = $users ? CMbArray::pluck($users, '_id') : array(CMediusers::get()->_id);
unset($users);
} else {
$user_ids = array($owner_id);
}
/** @var CSalutation $salutation */
$salutation = new self();
$ds = $salutation->_spec->ds;
$where = array('owner_id' => $ds->prepareIn($user_ids), 'object_class' => $ds->prepare('= ?', $object_class));
if ($object_id) {
$where['object_id'] = $ds->prepare('= ?', $object_id);
}
return $salutation->loadList($where);
}
开发者ID:fbone,项目名称:mediboard4,代码行数:29,代码来源:CSalutation.class.php
示例13: build
/**
* Build event
*
* @param CMbObject $object Object
*
* @see parent::build()
*
* @return void
*/
function build($object)
{
// Traitement sur le mbObject
$this->object = $object;
$this->last_log = $object->loadLastLog();
// Récupération de la version HL7 en fonction du receiver et de la transaction
$this->version = CAppUI::conf("hl7 default_version");
if ($version = CMbArray::get($this->_receiver->_configs, $this->transaction . "_HL7_version")) {
$this->version = $version;
}
// Génération de l'échange
$this->generateExchange();
$terminator = $this->getSegmentTerminator($this->_receiver->_configs["ER7_segment_terminator"]);
// Création du message HL7
$message = new CHL7v2Message($this->version);
$message->segmentTerminator = $terminator;
$message->name = $this->msg_codes;
$this->message = $message;
}
开发者ID:fbone,项目名称:mediboard4,代码行数:28,代码来源:CHL7v2Event.class.php
示例14: getFormHtmlElement
/**
* @see parent::getFormHtmlElement()
*/
function getFormHtmlElement($object, $params, $value, $className)
{
$field = CMbString::htmlSpecialChars($this->fieldName);
$form = CMbArray::extract($params, "form");
$extra = CMbArray::makeXmlAttributes($params);
$readonly = CMbArray::extract($params, "readonly");
$default_color = $this->default ? $this->default : "ffffff";
$reset_value = $this->notNull ? $default_color : "";
$bg_reset = $reset_value ? "#{$reset_value}" : "transparent";
$value = !$value && ($this->notNull || $this->default) ? $default_color : $value;
$sHtml = "\n <input type=\"text\" class=\"color_picker\" name=\"{$field}\" value=\"{$value}\" {$extra} />\n <button type=\"button\" onclick=\"var elem = \$(this).previous('input'); \$V(elem, '{$reset_value}', true); elem.setStyle({backgroundColor: '{$bg_reset}'});\" class='cancel notext'></button>\n ";
if ($form && !$readonly) {
$js_params = "{}";
if (!$this->notNull) {
$js_params = "{required:false}";
}
$sHtml .= "<script type=\"text/javascript\">\n Main.add(function(){\n var _e = getForm('" . $form . "').elements['" . $field . "'];\n new jscolor.color(_e, {$js_params});\n })\n </script>";
}
return $sHtml;
}
开发者ID:fbone,项目名称:mediboard4,代码行数:23,代码来源:CColorSpec.class.php
示例15: addAudiogramme
function addAudiogramme($values, $mark_color)
{
$pressions = CExamAudio::$pressions;
// Empty plot case
$datay = $values;
CMbArray::removeValue("", $datay);
if (!count($datay)) {
return;
}
$title = $this->title->t;
$words = explode(" ", $title);
$cote = $words[1];
$labels = array();
$jscalls = array();
// Remove empty values to connect distant points
$datax = array();
$datay = array();
foreach ($values as $key => $value) {
if ($value !== "" && $value !== null) {
$pression = $pressions[$key];
$jstitle = strtr($title, "\n", " ");
$labels[] = "Modifier l'admittance {$value} ml pour {$jstitle} à la pression {$pression} mm H²0";
$jscalls[] = "javascript:changeTympanValue('{$cote}',{$key})";
$datay[] = $value;
$datax[] = "{$key}";
// Needs to be a string when null
}
}
$p1 = new LinePlot($datay, $datax);
// Create the first line
$p1->SetColor($mark_color);
$p1->SetCenter();
$p1->SetWeight(1);
$p1->SetCSIMTargets($jscalls, $labels);
// Marks
$p1->mark->SetType(MARK_FILLEDCIRCLE);
$p1->mark->SetColor($mark_color);
$p1->mark->SetFillColor("{$mark_color}@0.6");
$p1->mark->SetWidth(4);
$this->Add($p1);
}
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:41,代码来源:inc_graph_audio_tympan.php
示例16: doStore
function doStore()
{
parent::doStore();
if (CModule::getActive("dPprescription") && !$this->_old->_id) {
$p_to_c = new CPrescriptionProtocoleToConcept();
$count_p_to_c = $p_to_c->countList();
if ($count_p_to_c > 0) {
/** @var CExObject $ex_object */
$ex_object = $this->_obj;
$all_fields = $ex_object->loadRefExClass()->loadRefsAllFields();
$bool_concept_ids = array();
foreach ($all_fields as $_field) {
if (strpos($_field->prop, "bool") === 0 && $_field->concept_id && $ex_object->{$_field->name} == "1") {
$bool_concept_ids[] = $_field->concept_id;
}
}
$bool_concept_ids = array_unique($bool_concept_ids);
$where = array("concept_id" => $p_to_c->getDS()->prepareIn($bool_concept_ids));
$protocole_ids = array_values(CMbArray::pluck($p_to_c->loadList($where), "protocole_id"));
if (count($protocole_ids)) {
/** @var CSejour $sejour */
$sejour = $ex_object->getReferenceObject("CSejour");
if ($sejour && $sejour->_id) {
$prescription = $sejour->loadRefPrescriptionSejour();
if (!$prescription->_id) {
$prescription = new CPrescription();
$prescription->object_id = $sejour->_id;
$prescription->object_class = $sejour->_class;
$prescription->type = "sejour";
if ($msg = $prescription->store()) {
CAppUI::setMsg($msg, UI_MSG_WARNING);
}
}
$ops_ids = implode("-", CMbArray::pluck($sejour->loadRefsOperations(array("annulee" => "= '0'")), "operation_id"));
CAppUI::callbackAjax("window.opener.ExObject.checkOpsBeforeProtocole", $protocole_ids, $prescription->_id, $sejour->_id, $ops_ids);
}
}
}
}
}
开发者ID:fbone,项目名称:mediboard4,代码行数:40,代码来源:do_ex_object_aed.php
示例17: loadTriggeredData
/**
* Load trigger data
*
* @return void
*/
function loadTriggeredData()
{
$triggers = $this->loadBackRefs("ex_triggers");
$this->_triggered_data = array();
if (!count($triggers)) {
return;
}
$keys = CMbArray::pluck($triggers, "trigger_value");
$values = CMbArray::pluck($triggers, "ex_class_triggered_id");
$this->_triggered_data = array_combine($keys, $values);
}
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:16,代码来源:CExClassField.class.php
示例18: handle
/**
* Handle event
*
* @param CHL7Acknowledgment $ack Acknowledgement
* @param CPatient $newPatient Person
* @param array $data Nodes data
*
* @return null|string
*/
function handle(CHL7Acknowledgment $ack, CPatient $newPatient, $data)
{
// Traitement du message des erreurs
$comment = $warning = "";
$exchange_hl7v2 = $this->_ref_exchange_hl7v2;
$exchange_hl7v2->_ref_sender->loadConfigValues();
$sender = $exchange_hl7v2->_ref_sender;
foreach ($data["merge"] as $_data_merge) {
$data = $_data_merge;
$mbPatient = new CPatient();
$mbPatientElimine = new CPatient();
$patientPI = CValue::read($data['personIdentifiers'], "PI");
$patientRI = CValue::read($data['personIdentifiers'], "RI");
$patientEliminePI = CValue::read($data['personElimineIdentifiers'], "PI");
$patientElimineRI = CValue::read($data['personElimineIdentifiers'], "RI");
// Acquittement d'erreur : identifiants RI et PI non fournis
if (!$patientRI && !$patientPI || !$patientElimineRI && !$patientEliminePI) {
return $exchange_hl7v2->setAckAR($ack, "E100", null, $newPatient);
}
$idexPatient = CIdSante400::getMatch("CPatient", $sender->_tag_patient, $patientPI);
if ($mbPatient->load($patientRI)) {
if ($idexPatient->object_id && $mbPatient->_id != $idexPatient->object_id) {
$comment = "L'identifiant source fait référence au patient : {$idexPatient->object_id}";
$comment .= " et l'identifiant cible au patient : {$mbPatient->_id}.";
return $exchange_hl7v2->setAckAR($ack, "E130", $comment, $newPatient);
}
}
if (!$mbPatient->_id) {
$mbPatient->load($idexPatient->object_id);
}
$idexPatientElimine = CIdSante400::getMatch("CPatient", $sender->_tag_patient, $patientEliminePI);
if ($mbPatientElimine->load($patientElimineRI)) {
if ($idexPatientElimine->object_id && $mbPatientElimine->_id != $idexPatientElimine->object_id) {
$comment = "L'identifiant source fait référence au patient : {$idexPatientElimine->object_id}";
$comment .= "et l'identifiant cible au patient : {$mbPatientElimine->_id}.";
return $exchange_hl7v2->setAckAR($ack, "E131", $comment, $newPatient);
}
}
if (!$mbPatientElimine->_id) {
$mbPatientElimine->load($idexPatientElimine->object_id);
}
if (!$mbPatient->_id || !$mbPatientElimine->_id) {
$comment = !$mbPatient->_id ? "Le patient {$mbPatient->_id} est inconnu dans Mediboard." : "Le patient {$mbPatientElimine->_id} est inconnu dans Mediboard.";
return $exchange_hl7v2->setAckAR($ack, "E120", $comment, $newPatient);
}
// Passage en trash de l'IPP du patient a éliminer
$newPatient->trashIPP($idexPatientElimine);
if ($mbPatient->_id == $mbPatientElimine->_id) {
return $exchange_hl7v2->setAckAA($ack, "I104", null, $newPatient);
}
$patientsElimine_array = array($mbPatientElimine);
$first_patient_id = $mbPatient->_id;
$checkMerge = $mbPatient->checkMerge($patientsElimine_array);
// Erreur sur le check du merge
if ($checkMerge) {
$comment = "La fusion de ces deux patients n'est pas possible à cause des problèmes suivants : {$checkMerge}";
return $exchange_hl7v2->setAckAR($ack, "E121", $comment, $newPatient);
}
$mbPatientElimine_id = $mbPatientElimine->_id;
/** @todo mergePlainFields resets the _id */
$mbPatient->_id = $first_patient_id;
// Notifier les autres destinataires
$mbPatient->_eai_sender_guid = $sender->_guid;
$mbPatient->_merging = CMbArray::pluck($patientsElimine_array, "_id");
if ($msg = $mbPatient->merge($patientsElimine_array)) {
return $exchange_hl7v2->setAckAR($ack, "E103", $msg, $mbPatient);
}
$mbPatient->_mbPatientElimine_id = $mbPatientElimine_id;
$comment = CEAIPatient::getComment($mbPatient, $mbPatientElimine);
}
return $exchange_hl7v2->setAckAA($ack, "I103", $comment, $mbPatient);
}
开发者ID:fbone,项目名称:mediboard4,代码行数:81,代码来源:CHL7v2MergePersons.class.php
示例19: build
/**
* @see parent::build
*/
function build(CHPrimSanteEvent $event)
{
parent::build($event);
$patient = $this->patient;
$sejour = $this->sejour;
$actor = isset($event->_sender->_id) ? $event->_sender : $event->_receiver;
$group = $actor->loadRefGroup();
$patient->loadIPP($group->_id);
// P-1: type segment - P(par défaut) (ST)
// P-2: rang segment - (NM)
$data[] = "1";
// P-3: Patient ID (SPEC) (optional)
$data[] = array(array($patient->_IPP, $patient->_patient_elimine ? $patient->_patient_elimine->_IPP : null, $patient->_patient_elimine ? "FU" : null));
// P-4: Patient ID (ST) (optional)
$data[] = null;
// P-5: sejour ID (ST) (optional)
$data[] = null;
// P-6: Nom patient (PN) (optional)
$data[] = array(array($patient->_p_last_name, $patient->_p_first_name, $patient->prenom_2, $patient->civilite));
// P-7: Nom de naissance (ST) (optional)
$data[] = $patient->_p_maiden_name;
// P-8: Date de naissance (TS) (optional)
$data[] = $patient->_p_birth_date;
// P-9: Sexe (ID) (optional)
$data[] = CMbString::upper($patient->sexe);
// P-10: race (forbidden)
$data[] = null;
$address = explode("\n", $patient->_p_street_address, 1);
// P-11: adresse (AD) (optional)
$data[] = array(array(CMbArray::get($address, 0), str_replace("\n", " ", CMbArray::get($address, 1)), $patient->_p_city, null, $patient->_p_postal_code, $patient->pays_insee));
// P-12: INS (version 2.3) (optional)
$data[] = null;
// P-13: téléphone (TN) (optional) (repeatable)
$data[] = array($patient->_p_phone_number, $patient->_p_mobile_phone_number);
// P-14: Médecins (CNA) (optional) (repeatable)
$data[] = null;
// P-15: Traitement local 1 (ST) (optional)
$data[] = null;
// P-16: Traitement local 2 (ST) (optional)
$data[] = null;
// P-17: Taille (CQ) (optional)
$data[] = null;
// P-18: Poids (CQ) (optional)
$data[] = null;
// P-19: Diagnostic (CE) (optional) (repeatable)
$data[] = null;
// P-20: Traitement (ST) (optional) (repeatable)
$data[] = null;
// P-21: Régime (ST) (optional)
$data[] = null;
// P-22: Commentaire 1 (ST) (optional)
$data[] = null;
// P-23: Commentaire 2 (ST) (optional)
$data[] = null;
// P-24: Date de mouvement (TS) (optional) (repeatable)
$data[] = null;
// P-25: Statut de l'admission (ID) (optional)
$data[] = null;
// P-26: Localisation (SPEC) (optional)
$data[] = null;
// P-27: classification diagnostic (CE) (optional)
$data[] = null;
// P-28: Religion (forbidden)
$data[] = null;
// P-29: Situation maritale (ID) (optional)
$data[] = $this->getMaritalStatus($patient->situation_famille);
// P-30: Précauton à prendre (ID) (optional)
$data[] = null;
// P-31: Langue (ST) (optional)
$data[] = null;
// P-32: Statut de confidentialité (ID) (optional)
$data[] = null;
// P-33: Date de dernière modification (TS) (optional)
$data[] = null;
// P-34: Date de décès (TS) (optional)
$data[] = null;
$this->fill($data);
}
开发者ID:fbone,项目名称:mediboard4,代码行数:81,代码来源:CHPrimSanteSegmentP.class.php
示例20: getCategoriesTree
/**
* Get categories tree
*
* @param bool $operation see operations
*
* @return array
*/
static function getCategoriesTree($operation = false)
{
$object = new self();
$target_classes = CDailyCheckList::getNonHASClasses($operation);
$targets = array();
$by_class = array();
foreach ($target_classes as $_class) {
if ($_class != "COperation") {
/** @var CSalle|CBlocOperatoire $_object */
$_object = new $_class();
//$_targets = $_object->loadGroupList();
$_targets = $_object->loadList();
array_unshift($_targets, $_object);
$targets[$_class] = array_combine(CMbArray::pluck($_targets, "_id"), $_targets);
}
$where = array("target_class" => "= '{$_class}'");
if ($_class == "COperation") {
$where["list_type_id"] = ' IS NOT NULL';
}
/** @var CDailyCheckItemCategory[] $_list */
$_list = $object->loadList($where, "target_id+0, title");
// target_id+0 to have NULL at the beginning
$by_object = array();
foreach ($_list as $_category) {
$_key = $_category->target_id ? $_category->target_id : "all";
$by_object[$_key][$_category->_id] = $_category;
}
$by_class[$_class] = $by_object;
}
return array($targets, $by_class);
}
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:38,代码来源:CDailyCheckItemCategory.class.php
注:本文中的CMbArray类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论