-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathNotes.html
108 lines (93 loc) · 2.63 KB
/
Notes.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<htmlform>
<macros>
paperFormId = (Fill this in)
headerColor =#009d8e
fontOnHeaderColor = white
</macros>
<script type="text/javascript">
$j(function(){
$j('.type').hide();
});
</script>
<style>
.section {
border: 1px solid $headerColor;
padding: 2px;
text-align: left;
margin-bottom: 1em;
}
.sectionHeader {
background-color: $headerColor;
color: $fontOnHeaderColor;
display: block;
padding: 2px;
font-weight: bold;
}
table.baseline-aligned td {
vertical-align: baseline;
}
td.lookup {
background-color:yellow;
}
</style>
<span style="float:right">Paper Form ID: $paperFormId</span>
<h2>Additional Information</h2>
<section headerLabel="1. Encounter Details">
<table class="baseline-aligned">
<tr>
<td>Date:</td>
<td><encounterDate default="today"/></td>
<td><pre> </pre></td>
<td>Location:</td>
<td><encounterLocation default="Unknown Location" /></td>
<td><pre> </pre></td>
<td>Provider:</td>
<td><encounterProvider default="currentUser" role="Provider" /></td>
<td><pre> </pre></td>
<td class="type">Type:</td>
<td class="type"><encounterType default="NOTES" /></td>
</tr>
</table>
</section>
<section headerLabel="2. Patient Information">
<table class="baseline-aligned">
<tr>
<td>Name:</td>
<td><lookup class="value" expression="patient.personName"/></td>
<td><pre> </pre></td>
<td>Manual ID:</td>
<td><lookup class="value" complexExpression="#foreach( $patId in $patientIdentifiers.get('Old Identification Number') ) $patId #end "/></td>
<td><pre> </pre></td>
<td>Auto ID:</td>
<td><lookup class="value" complexExpression="#foreach( $patId in $patientIdentifiers.get('OpenMRS Identification Number') ) $patId #end"/></td>
<td><pre> </pre></td>
<td>Gender:</td>
<td><lookup class="value" expression="patient.gender"/></td>
</tr>
</table>
</section>
<section headerLabel="3. Additional Information">
<table class="baseline-aligned">
<tr>
<th style="background-color: #696969; color: #ffffff;">Notes</th>
</tr>
<tr>
<td><obs conceptId="159395" cols="170" rows="10" /></td>
</tr>
</table>
<table class="baseline-aligned">
<tr>
<th style="background-color: #696969; color: #ffffff;">Previous Notes</th>
</tr>
<tr>
<ifMode mode="ENTER">
<td class="lookup">
<lookup complexExpression="#foreach($obs in $fn.allObs(159395))
$obs.valueText <br > [#Date: $obs.obsDatetime] <hr > <br > #end" class="value"/>
</td>
</ifMode>
</tr>
</table>
</section>
<submit/>
</htmlform>