-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
51 lines (38 loc) · 1.55 KB
/
index.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
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="css/bootstrap.css" >
<link rel="stylesheet" href="css/bootstrap-responsive.css">
<link rel="stylesheet" href="css/app.css" >
</head>
<body ng-app="hl7Viewer">
<div class="container">
<div ng-controller="HL7Controller">
<div class="hero-unit">
<h2>HL7 Message Viewer</h2>
<textarea class="field span11" ng-model="message" placeholder="Paste HL7 message here" id="message" rows=15 cols=175>{{message}} </textarea>
</div>
<div class="parse-unit">
<div ng-show="message.length">
<ul class="none">
<li ng-class="{'plus': !show, 'minus': show};" ng-repeat="segment in segments" ng-click="show = !show">
<span style="font-size: medium;">{{$index+1}}: {{segment}}</span>
<div ng-show="show" ng-init="show=0">
<table class="table table-condensed table-hover table-bordered">
<tr ng-repeat="field in parse(segment)">
<td >{{$index+1}}</td>
<td >{{fieldName(segment, $index+1)}}</td>
<td >{{field}}</td>
</tr>
</table>
</div>
</li>
</ul>
</div>
</div>
</div> <!--end contoller -->
</div>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
<script src="js/hl7.js"></script>
</body>
</html>