當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Audit::_processedAudits方法代碼示例

本文整理匯總了PHP中Audit::_processedAudits方法的典型用法代碼示例。如果您正苦於以下問題:PHP Audit::_processedAudits方法的具體用法?PHP Audit::_processedAudits怎麽用?PHP Audit::_processedAudits使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Audit的用法示例。


在下文中一共展示了Audit::_processedAudits方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: pull


//.........這裏部分代碼省略.........
                             $rows = $db->fetchAll($sqlSelect);
                             if (count($rows) == 1) {
                                 $medication = new Medication();
                                 $medication->populateWithArray($rows[0]);
                                 $medicationId = $medication->medicationId;
                                 $auditId = Medication::getAuditId($medicationId);
                                 if ($auditId > 0) {
                                     $xmlMessage->Body->RefillRequest->PrescriberOrderNumber = $medicationId . '_' . $auditId;
                                     $rawMessage = $xmlMessage->asXML();
                                 }
                                 //trigger_error($sqlSelect->__toString());
                                 $medicationMatched = true;
                             }
                             $messageInfo = ' (Invalid/Missing PON';
                             if ($patientId > 0 && $medicationMatched) {
                                 $patient = new Patient();
                                 $patient->personId = $patientId;
                                 $patient->populate();
                                 $messageInfo .= ' - automatched to \'' . $patient->displayName . '\' MRN#' . $patient->recordNumber;
                             } else {
                                 $unresolved = 1;
                             }
                             $messageInfo .= ')';
                         }
                         $refillRequest = new MedicationRefillRequest();
                         $refillRequest->messageId = $messageId;
                         $refillRequest->medicationId = $medicationId;
                         $refillRequest->action = '';
                         $refillRequest->status = '';
                         $refillRequest->dateStart = '';
                         $refillRequest->details = 'Re: ' . $rxReferenceNumber;
                         $refillRequest->dateTime = date('Y-m-d H:i:s');
                         // disable audits autoprocess, this was set at CHProcessingDaemon
                         $processedAudits = Audit::$_processedAudits;
                         Audit::$_processedAudits = false;
                         $refillRequest->persist();
                         Audit::$_processedAudits = $processedAudits;
                         $messaging = new Messaging();
                         $messaging->messagingId = $messageId;
                         $messaging->populate();
                         $messaging->messageType = 'RefillRequest';
                         $messaging->objectId = $refillRequest->messageId;
                         $messaging->objectClass = 'MedicationRefillRequest';
                         $messaging->note = 'Refill request received - Re:' . $rxReferenceNumber . $messageInfo;
                         $messaging->auditId = $auditId;
                         $messaging->refills = (string) $message->refills;
                         $messaging->personId = $patientId;
                         $messaging->providerId = $providerId;
                         $messaging->unresolved = $unresolved;
                     } else {
                         if ($key == 'status') {
                             $relatesToMessageId = (string) $message->relatesToMessageId;
                             $messageId = (string) $message->messageId;
                             $code = (string) $message->code;
                             $description = (string) $message->description;
                             $messaging = new Messaging();
                             $messaging->messageType = 'Status';
                             $messaging->note = 'Status received for unknown messageId: ' . $relatesToMessageId;
                             $tmpMsg = new Messaging();
                             $tmpMsg->messagingId = $relatesToMessageId;
                             if ($tmpMsg->populate()) {
                                 // populate for newRx details
                                 $tmpMsg->status = 'Sent and Verified';
                                 $x = explode('(', $tmpMsg->note);
                                 $tmpMsg->note = 'newRx';
                                 if ($tmpMsg->objectClass == 'MedicationRefillResponse') {
開發者ID:dragonlet,項目名稱:clearhealth,代碼行數:67,代碼來源:ePrescribe.php


注:本文中的Audit::_processedAudits方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。