3 * Patient data template.
6 * @author Robert Down <robertdown@live.com>
7 * @author Kevin Yeh <kevin.y@integralemr.com>
8 * @author Brady Miller <brady.g.miller@gmail.com>
9 * @link http://www.open-emr.org
10 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
11 * @copyright Copyright (c) 2016 Kevin Yeh <kevin.y@integralemr.com>
12 * @copyright Copyright (c) 2016 Brady Miller <brady.g.miller@gmail.com>
13 * @copyright Copyright (c) 2017 Robert Down <robertdown@live.com>
16 <script type
="text/html" id
="patient-data-template">
18 <span
class="patientDataColumn">
19 <span style
="float:left;"><a data
-bind
="click: viewPtFinder" href
="#" class="btn btn-default btn-sm">
20 <i
class="fa fa-search" aria
-hidden
="true"></i
>
22 <div
class="patientInfo">
23 <?php
echo xlt("Patient"); ?
>:
24 <!-- ko
if: patient
-->
25 <a
class="ptName" data
-bind
="click:refreshPatient,with: patient" href
="#">
26 <span data
-bind
="text: pname()"></span
>
27 (<span data
-bind
="text: pubpid"></span
>)
30 <!-- ko ifnot
: patient
-->
31 <?php
echo xlt("None");?
>
33 <!-- ko
if: patient
-->
34 <a
class="btn btn-xs btn-link" href
="#" data
-bind
="click:clearPatient" title
="<?php echo xla("Clear
") ?>">
35 <i
class="fa fa-times"></i
>
39 <div
class="patientInfo">
40 <!-- ko
if: patient
-->
41 <span data
-bind
="text:patient().str_dob()"></span
>
45 <span
class="patientDataColumn">
46 <!-- ko
if: patient
-->
47 <!-- ko with
: patient
-->
48 <a
class="btn btn-xs btn-link" data
-bind
="click: clickNewEncounter" href
="#" title
="<?php echo xla("New Encounter
");?>">
49 <i
class="fa fa-plus"></i
>
51 <div
class="patientCurrentEncounter">
52 <span
><?php
echo xlt("Open Encounter"); ?
>:</span
>
53 <!-- ko
if:selectedEncounter() -->
54 <a data
-bind
="click: refreshEncounter" href
="#">
55 <span data
-bind
="text:selectedEncounter().date()"></span
>
56 (<span data
-bind
="text:selectedEncounter().id()"></span
>)
59 <!-- ko
if:!selectedEncounter() -->
60 <?php
echo xlt("None") ?
>
63 <!-- ko
if: encounterArray().length
> 0 -->
65 <div
class="btn-group dropdown">
66 <button
class="btn btn-default btn-sm dropdown-toggle"
67 type
="button" id
="pastEncounters"
68 data
-toggle
="dropdown"
71 <?php
echo xlt("View Past Encounters"); ?
> 
;
72 (<span data
-bind
="text:encounterArray().length"></span
>)
73 <span
class="caret"></span
>
75 <ul
class="dropdown-menu" aria
-labelledby
="pastEncounters">
76 <!-- ko
foreach:encounterArray
-->
77 <li style
="display: inline-flex;">
78 <a href
="#" data
-bind
="click:chooseEncounterEvent">
79 <span data
-bind
="text:date"></span
>
80 <span data
-bind
="text:category"></span
>
82 <a href
="#" data
-bind
="click:reviewEncounterEvent">
83 <i
class="fa fa-rotate-left"></i
> 
;<?php
echo xlt("Review");?
>
94 <!-- ko with
: user
-->
95 <!-- ko
if:messages() -->
96 <span
class="messagesColumn">
97 <a
class="btn btn-default" href
="#" data
-bind
="click: viewMessages" title
="<?php echo xla("View Messages
");?>">
98 <i
class="fa fa-envelope"></i
> 
;<span style
="display:inline" data
-bind
="text: messages()"></span
>