3 * Copyright (C) 2016 Kevin Yeh <kevin.y@integralemr.com>
5 * LICENSE: This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 3
8 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
17 * @author Robert Down <robertdown@live.com>
18 * @author Kevin Yeh <kevin.y@integralemr.com>
19 * @link http://www.open-emr.org
23 <script type
="text/html" id
="patient-data-template">
25 <span
class="patientDataColumn">
26 <div
class="patientInfo">
27 <?php
echo xlt("Patient"); ?
>:
28 <!-- ko
if: patient
-->
29 <a
class="ptName" data
-bind
="click:refreshPatient,with: patient" href
="#">
30 <span data
-bind
="text: pname()"></span
>(<span data
-bind
="text: pubpid"></span
>)
33 <!-- ko ifnot
: patient
-->
34 <?php
echo xlt("None");?
>
36 <!-- ko
if: patient
-->
37 <strong
><a href
="#" class="clear" data
-bind
="click:clearPatient" title
="<?php echo xlt("Clear
") ?>">
38 <i
class="fa fa-times"></i
>
42 <div
class="patientInfo">
43 <!-- ko
if: patient
-->
44 <span data
-bind
="text:patient().str_dob()"></span
>
48 <span
class="patientDataColumn">
50 <!-- ko
if: patient
-->
51 <!-- ko with
: patient
-->
53 <span
>Selected Encounter
:</span
>
54 <!-- ko
if:selectedEncounter() -->
55 <span data
-bind
="text:selectedEncounter().date()"></span
>
56 (<span data
-bind
="text:selectedEncounter().id()"></span
>)
58 <!-- ko
if:!selectedEncounter() -->
59 <?php
echo xlt("None") ?
>
65 <span
class="patientDataColumn patientEncountersColumn">
66 <!-- ko
if: patient
-->
67 <!-- ko with
: patient
-->
69 <span
class="patientEncounterList" >
70 <div data
-bind
="click: clickNewEncounter"><?php
echo xlt("New Encounter");?
></div
>
71 <div data
-bind
="click: clickEncounterList"><?php
echo xlt("Past Encounter List");?
>
72 (<span data
-bind
="text:encounterArray().length"></span
>)
74 <table
class="encounters">
76 <!-- ko
foreach:encounterArray
-->
78 <td data
-bind
="click: chooseEncounterEvent">
79 <span data
-bind
="text:date"></span
>
80 <span data
-bind
="text:category"></span
>
82 <td
class="review" data
-bind
="click: reviewEncounterEvent">Review