function __construct() { if (!isset($this->OfficeNotes)) { $this->OfficeNotes = MatchaModel::setSenchaModel('App.model.miscellaneous.OfficeNotes'); } return; }
/** * @param stdClass $params * @return array */ public function updateRolePerm($params) { if ($this->arp == null) { $this->arp = MatchaModel::setSenchaModel('App.model.administration.AclRolePermissions'); } if (is_array($params)) { foreach ($params as $param) { $this->saveRolePerm('front_office', $param->perm_key, $param->{'role-front_office'}); $this->saveRolePerm('auditor', $param->perm_key, $param->{'role-auditor'}); $this->saveRolePerm('clinician', $param->perm_key, $param->{'role-clinician'}); $this->saveRolePerm('physician', $param->perm_key, $param->{'role-physician'}); $this->saveRolePerm('administrator', $param->perm_key, $param->{'role-administrator'}); $this->saveRolePerm('emergencyaccess', $param->perm_key, $param->{'role-emergencyaccess'}); $this->saveRolePerm('referrer', $param->perm_key, $param->{'role-referrer'}); } return $params; } $this->saveRolePerm('front_office', $params->perm_key, $params->{'role-front_office'}); $this->saveRolePerm('auditor', $params->perm_key, $params->{'role-auditor'}); $this->saveRolePerm('clinician', $params->perm_key, $params->{'role-clinician'}); $this->saveRolePerm('physician', $params->perm_key, $params->{'role-physician'}); $this->saveRolePerm('administrator', $params->perm_key, $params->{'role-administrator'}); $this->saveRolePerm('emergencyaccess', $params->perm_key, $params->{'role-emergencyaccess'}); $this->saveRolePerm('referrer', $params->perm_key, $params->{'role-referrer'}); return $params; }
function __construct() { $this->conn = Matcha::getConn(); if (!isset($this->s)) { $this->s = MatchaModel::setSenchaModel('App.model.patient.EncounterService'); } }
function __construct() { if ($this->a == NULL) { $this->a = MatchaModel::setSenchaModel('App.model.miscellaneous.Amendment'); } $this->a->setOrFilterProperties(['assigned_to_uid']); }
function getProviderCredentializationModel() { if (!isset($this->pc)) { $this->pc = MatchaModel::setSenchaModel('App.model.administration.ProviderCredentialization'); } return $this->pc; }
function __construct() { $this->fp = MatchaModel::setSenchaModel('App.model.administration.FloorPlans'); $this->fpz = MatchaModel::setSenchaModel('App.model.administration.FloorPlanZones'); $this->patient = new Patient(); $this->pool = new PoolArea(); }
function __construct() { if (!isset($this->m)) { $this->m = MatchaModel::setSenchaModel('App.model.patient.Medications'); } $this->m->setOrFilterProperties(['id']); }
function __construct() { $this->acl = new ACL(); if (!isset($this->u)) { $this->u = MatchaModel::setSenchaModel('App.model.administration.User'); } }
function __construct() { if (!isset($this->d)) { $this->d = MatchaModel::setSenchaModel('App.model.patient.PatientDocuments'); } $this->encrypt = isset($_SESSION['globals']['enable_document_encryption']) && $_SESSION['globals']['enable_document_encryption']; }
function __construct() { if (!isset($this->v)) { $this->v = MatchaModel::setSenchaModel('App.model.patient.Vitals'); } $this->User = new User(); }
function setInstructionModel() { if (isset($this->i)) { return $this->i; } return $this->i = MatchaModel::setSenchaModel('App.model.administration.MedicationInstruction'); }
function __construct() { $this->modulesDir = ROOT . '/modules/'; if (!isset($this->m)) { $this->m = MatchaModel::setSenchaModel('App.model.administration.Modules'); } $this->setNewModules(); }
function __construct() { parent::__construct(); if ($this->voucher == NULL) { $this->voucher = MatchaModel::setSenchaModel('App.model.account.Voucher'); } return; }
/** * Set Model App.model.patient.PatientsOrders */ private function setModel() { if (!isset($this->s)) { $this->s = MatchaModel::setSenchaModel('App.model.patient.PatientSocialHistory'); } if (!isset($this->ss)) { $this->ss = MatchaModel::setSenchaModel('App.model.patient.SmokeStatus'); } }
function __construct() { if (!isset($this->p)) { $this->p = MatchaModel::setSenchaModel('App.model.administration.TemplatePanel'); } if (!isset($this->i)) { $this->i = MatchaModel::setSenchaModel('App.model.administration.TemplatePanelTemplate'); } }
function __construct() { $this->conn = Matcha::getConn(); $this->db = new MatchaHelper(); if (!isset($this->LO)) { $this->LO = MatchaModel::setSenchaModel('App.model.administration.LabObservations'); } return; }
function __construct() { if (!isset($this->r)) { $this->r = MatchaModel::setSenchaModel('App.model.administration.ReferringProvider'); } if (!isset($this->f)) { $this->f = MatchaModel::setSenchaModel('App.model.administration.ReferringProviderFacility'); } }
function __construct() { $this->conn = Matcha::getConn(); $this->db = new MatchaHelper(); // if($this->LP == null) $this->LO = MatchaModel::setSenchaModel('App.model.administration.LabPanels'); if ($this->LO == null) { $this->LO = MatchaModel::setSenchaModel('App.model.administration.LabObservations'); } return; }
/** * @return array */ public static function getGlobalsArray() { if (self::$g == null) { self::$g = MatchaModel::setSenchaModel('App.model.administration.Globals'); } $gs = array(); foreach (self::$g->load()->all() as $g) { $gs[$g['gl_name']] = $g['gl_value']; } return $gs; }
function __construct() { if (!isset($this->ic)) { $this->ic = MatchaModel::setSenchaModel('App.model.administration.InsuranceCompany'); } if (!isset($this->in)) { $this->in = MatchaModel::setSenchaModel('App.model.administration.InsuranceNumber'); } if (!isset($this->pi)) { $this->pi = MatchaModel::setSenchaModel('App.model.patient.Insurance'); } }
function __construct() { $this->r = MatchaModel::setSenchaModel('App.model.administration.DecisionSupportRule'); $this->rc = MatchaModel::setSenchaModel('App.model.administration.DecisionSupportRuleConcept'); $this->Orders = new Orders(); $this->Vitals = new Vitals(); $this->Allergies = new Allergies(); $this->Medications = new Medications(); $this->Procedures = new Procedures(); $this->SocialHistory = new SocialHistory(); $this->ActiveProblems = new ActiveProblems(); }
public function start(stdClass $params) { $server = MatchaModel::setSenchaModel('App.model.administration.HL7Server'); $data = new stdClass(); $data->id = $params->id; $data->token = $params->token = md5(time()); $server->save($data); $cmd = 'php -f "' . ROOT . '/lib/HL7/HL7Server.php" -- "' . $params->ip . '" ' . $params->port . ' "' . ROOT . '/dataProvider" "HL7Server" "Process" "default" "' . $params->token . '"'; if (substr(php_uname(), 0, 7) == "Windows") { pclose(popen("start /B " . $cmd, "r")); } else { exec($cmd . " > /dev/null &"); } sleep(2); return $this->status($params); }
/** * @brief MatchaHelper constructor. * @details This method starts the connection with mysql server using * $_SESSION values * during the login process. * * @author Gino Rivera (Certun) <*****@*****.**> * @version Vega 1.0 * */ function __construct() { self::$__freeze = false; // Connect to the database // This is compatible with the old methods if (defined('site_db_type')) { self::connect(array('host' => site_db_host, 'port' => site_db_port, 'name' => site_db_database, 'user' => site_db_username, 'pass' => site_db_password, 'app' => ROOT . '/app')); } self::$__secretKey = site_aes_key; MatchaAudit::$__audit = true; MatchaAudit::$hookTable = 'audit_transaction_log'; MatchaAudit::$hookClass = 'MatchaHelper'; MatchaAudit::$hookMethod = 'storeAudit'; MatchaModel::setSenchaModel('App.model.administration.TransactionLog'); MatchaModel::setSenchaModel('App.model.administration.AuditLog'); }
public static function setModels() { if (self::$U == null) { self::$U = MatchaModel::setSenchaModel('App.model.administration.User'); } if (self::$AR == null) { self::$AR = MatchaModel::setSenchaModel('App.model.administration.AclRoles'); } if (self::$AP == null) { self::$AP = MatchaModel::setSenchaModel('App.model.administration.AclPermissions'); } if (self::$ARP == null) { self::$ARP = MatchaModel::setSenchaModel('App.model.administration.AclRolePermissions'); } if (self::$AUP == null) { self::$AUP = MatchaModel::setSenchaModel('App.model.administration.AclUserPermissions'); } }
function __construct() { $this->db = new MatchaHelper(); if (!isset($this->p)) { $this->p = MatchaModel::setSenchaModel('App.model.patient.Patient'); } if (!isset($this->a)) { $this->a = MatchaModel::setSenchaModel('App.model.patient.Allergies'); } if (!isset($this->i)) { $this->i = MatchaModel::setSenchaModel('App.model.patient.PatientImmunization'); } $this->laboratories = new Laboratories(); $this->rxnorm = new Rxnorm(); $this->services = new Services(); $this->diagnosis = new DiagnosisCodes(); $this->immunizations = new Immunizations(); return; }
public function updateMessage(stdClass $params) { if ($this->Messages == null) { $this->Messages = MatchaModel::setSenchaModel('App.model.messages.Messages'); } $this->Messages->save($params); }
function __construct() { if (!isset($this->s)) { $this->s = MatchaModel::setSenchaModel('App.model.administration.Specialty'); } }
/** * Set Model App.model.patient.PatientsOrderObservation */ private function setObservations() { if (!isset($this->b)) { $this->b = MatchaModel::setSenchaModel('App.model.patient.PatientsOrderObservation'); } }
/** * @return MatchaCUP */ public function setPatientEncounterModel() { if ($this->e == null) { $this->e = MatchaModel::setSenchaModel('App.model.patient.Encounter'); } return $this->e; }
public function getEncounterEventHistory($params) { $this->EncounterHistory = MatchaModel::setSenchaModel('App.model.administration.AuditLog'); return $this->EncounterHistory->load($params)->all(); }