?> <span id="<?php echo $side; ?> _sft_history_icon" class="sft-history-icon"> <img src="<?php echo $this->assetPath; ?> /img/icon_info.png" style="height:20px" /> </span> <div class="quicklook sft-history" style="display: none;"> <?php echo '<b>Previous SFT Measurements</b><br />'; echo '<dl style="margin-top: 0px; margin-bottom: 2px;">'; foreach ($past_sft as $previous) { echo '<dt>' . Helper::convertDate2NHS($previous['date']) . ' - ' . $previous['sft'] . 'µm</dt>'; } echo '</dl>'; ?> </div> <?php } ?> </div> </div> <?php echo $form->radioBoolean($element, $side . '_thickness_increase', array(), array('label' => 4, 'field' => 8)); echo $form->radioBoolean($element, $side . '_dry', array(), array('label' => 4, 'field' => 8)); ?>
<tr> <td class="priority"> <?php echo $message->urgent ? "!!" : ""; ?> </td> <td> <a href="<?php echo Yii::app()->createURL("/OphCoMessaging/default/view/", array('id' => $message->event_id)); ?> "><?php echo Helper::convertDate2NHS($message->getMessageDate()); ?> </a> </td> <td> <?php echo $message->event->episode->patient->hos_num; ?> </td> <td> <?php echo $message->event->episode->patient->getHSCICName(); ?> </td> <td> <?php echo $message->event->episode->patient->NHSDate('dob'); ?> </td> <td>
* @license http://www.gnu.org/licenses/gpl-3.0.html The GNU General Public License V3.0 */ ?> <tr class="history" data-ticket-id="<?php echo $ass->ticket->id; ?> "> <td><?php echo $ass->queue->name; ?> </td> <td> </td> <td> </td> <td><?php echo Helper::convertDate2NHS($ass->assignment_date); ?> </td> <td><?php echo $ass->assignment_firm->getNameAndSubspecialty(); ?> </td> <td><?php echo $ass->assignment_user->getFullName(); ?> </td> <td><?php echo $ass->report; ?> </td> <td><?php
/** * Appends information about the submission of the application to the $record. * * @param array $record * @param int $event_id */ protected function appendSubmissionValues(&$record, $event_id) { if (@$_GET['submission']) { $event = Event::model()->findByPk($event_id); $svc = new OphCoTherapyapplication_Processor($event); $record['submission_status'] = $svc->getApplicationStatus(); if ($record['submission_status'] == OphCoTherapyapplication_Processor::STATUS_SENT) { $most_recent = OphCoTherapyapplication_Email::model()->forEvent($event)->unarchived()->findAll(array('limit' => 1)); $record['submission_date'] = Helper::convertDate2NHS($most_recent[0]->created_date); } else { $record['submission_date'] = 'N/A'; } } }
/** * returns a standard allergy string for the patient * * @return string */ public function getAllergiesString() { if (!$this->hasAllergyStatus()) { return 'Patient allergy status is not known'; } if ($this->no_allergies_date) { return 'Patient has no known allergies (as of ' . Helper::convertDate2NHS($this->no_allergies_date) . ')'; } $allergies = array(); foreach ($this->allergies as $allergy) { $allergies[] = $allergy->name; } return 'Patient is allergic to: ' . implode(', ', $allergies); }
<th>Intervention</th> <th>Reason for stopping / Response acheived</th> <th>Comments</th> </tr> </thead> <tbody> <?php foreach ($exceptional->{$side . '_relevantinterventions'} as $relevantintervention) { ?> <tr> <td><?php echo Helper::convertDate2NHS($relevantintervention->start_date); ?> </td> <td><?php echo Helper::convertDate2NHS($relevantintervention->end_date); ?> </td> <td><?php echo $relevantintervention->getTreatmentName(); ?> </td> <td><?php echo Yii::app()->format->Ntext($relevantintervention->getStopReasonText()); ?> </td> <td><?php echo 'Start VA: ' . $relevantintervention->start_va . '<br />'; echo 'End VA: ' . $relevantintervention->end_va . '<br />'; if ($relevantintervention->comments) { echo Yii::app()->format->Ntext($relevantintervention->comments);
<br> <?php } ?> Service: <strong><?php echo $this->event->episode->firm->getSubspecialtyText(); ?> </strong> </div> <!-- Event dates --> <div class="large-4 column dates"> <?php echo $event_type; ?> Created: <strong><?php echo Helper::convertDate2NHS($this->event->created_date); ?> </strong> <br /> <?php echo $event_type; ?> Printed: <strong><?php echo Helper::convertDate2NHS(date('Y-m-d')); ?> </strong> </div> </div> </header>
/** * returns a standard risk string for the patient * * @return string */ public function getRisksString() { if (!$this->hasRiskStatus()) { return 'Patient risk status is not known'; } if ($this->no_risks_date) { return 'Patient has no known risks (as of ' . Helper::convertDate2NHS($this->no_risks_date) . ')'; } $risks = array(); foreach ($this->risks as $risk) { $risks[] = $risk->name; } return 'Patient has risks: ' . implode(', ', $risks); }
</a></td> <td <?php if ($ticket->priority) { ?> style="color: <?php echo $ticket->priority->colour; ?> "<?php } ?> ><?php echo $ticket->priority ? $ticket->priority->name : '-'; ?> </td> <td><?php echo Helper::convertDate2NHS($ticket->created_date); ?> </td> <td><?php echo $ticket->getTicketFirm(); ?> </td> <td><?php echo $ticket->user->getFullName(); ?> </td> <td><?php echo $ticket->report ? $ticket->report : '-'; ?> </td> <td class="forceNoWrap"><?php
<div class="large-6 column"> <h3 class="data-title"><?php echo $element->getAttributeLabel('patient_unavailables'); ?> </h3> <div class="data-value"> <?php if ($element->patient_unavailables) { foreach ($element->patient_unavailables as $unavailable) { ?> <div class="data-row"> <?php echo Helper::convertDate2NHS($unavailable->start_date); ?> to <?php echo Helper::convertDate2NHS($unavailable->end_date); ?> (<?php echo $unavailable->reason->name; ?> ). </div> <?php } } else { ?> No known availability restrictions. <?php } ?> </div>
<div class="large-2 column"> <?php echo CHtml::label('<strong>' . $operation->getAttributeLabel('referral_id') . ':</strong>', 'referral_id'); ?> </div> <?php if ($operation->canChangeReferral()) { ?> <div class="large-4 column "> <?php $html_options = array('options' => array(), 'empty' => '- No valid referral available -', 'nowrapper' => true); $choices = $this->getReferralChoices(); foreach ($choices as $choice) { if ($active_rtt = $choice->getActiveRTT()) { if (count($active_rtt) == 1) { $html_options['options'][(string) $choice->id] = array('data-clock-start' => Helper::convertDate2NHS($active_rtt[0]->clock_start), 'data-breach' => Helper::convertDate2NHS($active_rtt[0]->breach)); } } } echo CHtml::activedropDownList($operation, 'referral_id', CHtml::listData($this->getReferralChoices(), 'id', 'description'), $html_options, false, array('field' => 2)); ?> </div> <div class="large-4 column end"> <span id="rtt-info" class="rtt-info" style="display: none">Clock start - <span id="rtt-clock-start"></span> Breach - <span id="rtt-breach"></span></span> </div> <?php } else { ?> <div class="large-4 column end"> <?php
<td>NHS</td> </tr> </tbody> </table> <table class="d_overview"> <tbody> <tr> <td>SURGICAL FIRM:<?php echo htmlspecialchars($session->firmName, ENT_QUOTES); ?> </td> <td>ANAESTHETIST:</td> <td> </td> <td>DATE:</td> <td><?php echo Helper::convertDate2NHS($session->date); ?> </td> </tr> <tr> <td>COMMENTS: <?php echo CHtml::encode($session->comments); ?> </td> </tr> </tbody> </table> <table class="d_data"> <tbody> <tr> <th>HOSPT NO</th>
/** * Render sender address * @param string $address Lines delimited with \n */ public function FromAddress($address, $hide_date = false) { $this->setY(35); $this->MultiCell(0, 20, $address, 0, 'R'); if (!$hide_date) { $this->Cell(0, 10, Helper::convertDate2NHS(date('Y-m-d')), 0, 2, 'R'); } if ($this->body_start < $this->getY()) { $this->body_start = $this->getY(); } }
* (C) OpenEyes Foundation, 2011-2013 * This file is part of OpenEyes. * OpenEyes is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. * OpenEyes is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. * You should have received a copy of the GNU General Public License along with OpenEyes in a file titled COPYING. If not, see <http://www.gnu.org/licenses/>. * * @link http://www.openeyes.org.uk * * @author OpenEyes <*****@*****.**> * @copyright Copyright (c) 2008-2011, Moorfields Eye Hospital NHS Foundation Trust * @copyright Copyright (c) 2011-2013, OpenEyes Foundation * @license http://www.gnu.org/licenses/gpl-3.0.html The GNU General Public License V3.0 */ ?> <div>Already booked for this patient:</div> <ul class="duplicate-procedures"> <?php foreach ($matched_procedures as $id => $ops) { foreach ($ops as $op) { ?> <li><?php echo $op->eye->adjective . ' ' . $procs_by_id[$id]->term . ' - ' . Helper::convertDate2NHS($op->event->event_date); ?> </li> <?php } } ?> </ul> <div>Do you wish to continue?</div>
</div> <div class="large-5 column end"> <textarea id="operation_comments" name="Operation[comments_rtt]" rows=3 cols=50><?php echo CHtml::encode($_POST['Operation']['comments_rtt']); ?> </textarea> </div> </div> </div> <div class="field-row" style="margin-top: 1em"> <span id="dateSelected"> Date/Time currently selected: <span class="highlighted"> <?php echo Helper::convertDate2NHS($session['date']); ?> , <?php echo substr($session['start_time'], 0, 5) . ' - ' . substr($session['end_time'], 0, 5); ?> </span> </span> </div> <div class="field-row"> <button type="submit" class="secondary" id="confirm_slot">Confirm slot</button> <button type="button" class="warning" id="cancel_scheduling"><?php echo 'Cancel ' . ($reschedule ? 're-' : '') . 'scheduling'; ?> </button> </div>
<strong><?php echo $this->patient->contact->fullName; ?> </strong> <br /> <?php echo $this->patient->getLetterAddress(array('delimiter' => '<br/>')); ?> <br /> <br /> Hospital No: <strong><?php echo $this->patient->hos_num; ?> </strong> <br /> NHS No: <strong><?php echo $this->patient->nhsnum; ?> </strong> <br /> DOB: <strong><?php echo Helper::convertDate2NHS($this->patient->dob); ?> (<?php echo $this->patient->getAge(); ?> )</strong> </div> </div> </header>
<?php if ($element->referral) { echo $element->referral->getDescription(); } else { echo 'No Referral Set'; } ?> </div> <?php if ($rtt = $element->getRTT()) { ?> <div class="rtt-info">Clock Start - <?php echo Helper::convertDate2NHS($rtt->clock_start); ?> Breach: <?php echo Helper::convertDate2NHS($rtt->breach); ?> </div> <?php } ?> </div> <?php } ?> <div class="large-6 column"> <?php if (!empty($element->comments_rtt)) { ?> <h3 class="data-title">Operation RTT Comments</h3>
echo '</div>'; } ?> </div> </div> </div> </div> </div> <?php echo $form->textField($element, $side . '_batch_number', array(), array(), array('field' => 6)); ?> <?php if (!$element->getIsNewRecord()) { $expiry_date_params = array('minDate' => Helper::convertDate2NHS($element->created_date)); } else { $expiry_date_params = array('minDate' => 'yesterday'); } ?> <?php echo $form->datePicker($element, $side . '_batch_expiry_date', $expiry_date_params, array(), array('label' => $form->layoutColumns['label'], 'field' => 3)); ?> <?php echo $form->dropDownList($element, $side . '_injection_given_by_id', CHtml::listData(OphTrIntravitrealinjection_InjectionUser::model()->getUsers(), 'id', 'ReversedFullNameAndUserName'), array('empty' => '- Please select -'), false, array('field' => 6)); ?> <div id="div_<?php echo get_class($element);