-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathindex.html
185 lines (166 loc) · 6.49 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
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<html ng-app="myApp">
<head>
<meta http-equiv="Content-Language" content="en" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Snomed in 5 Minutes - JavaScript Examples</title>
<style type="text/css" media="all"></style>
<!-- Favicon -->
<link rel="icon" type="image/png" href="images/favicon.png" />
<!-- Bootstrap CSS -->
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<!-- Angular core and standard plugins -->
<script type="text/javascript"
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.3/angular.min.js"></script>
<!-- Angular/Boostrap UI -->
<script type="text/javascript"
src="https://angular-ui.github.io/bootstrap/ui-bootstrap-tpls-1.3.3.js"></script>
<!-- Angular application -->
<script src="app.js"></script>
<style>
.pre-xy-scrollable {
overflow: auto;
-ms-word-wrap: normal;
word-wrap: normal;
overflow-wrap: normal;
white-space: pre;
max-height: 400px;
max-width: 600px;
}
</style>
</head>
<body>
<!-- Javascript detection -->
<noscript>
<div class="alert alert-danger">You must have Javascript enabled to
use this sample website</div>
</noscript>
<div class="container-fluid" ng-controller="SimpleCtrl">
<h4 ng-show="errorMsg" class="alert alert-danger alert-error">
{{errorMsg}}
<span style="display: inline; float: right;">
<i class="glyphicon glyphicon-remove" ng-click="clearError()"></i>
</span>
</h4>
<h3>Snomed in 5 Minutes - Javascript Examples</h3>
<p>This tool provides a simple interface for performing the basic search
examples covered by this tutorial.</p>
<div class="row">
<!-- Make a spacer -->
<div class="col-md-1 col-xs-0"></div>
<div class="col-md-10 col-xs-12>">
<br />
<table class="table">
<tr>
<th class="col-md-12 col-xs-12">Perform Search</th>
</tr>
<!-- Find by query -->
<tr>
<td style="vertical-align: top">
<form>
<input autofocus ng-model="query1"
placeholder="e.g. heart attack" />
<button type="submit" class="btn btn-sm btn-primary"
ng-click="findByQuery(query1)">Find By Query</button>
<button ng-show="findByQueryUrl" class="btn btn-sm btn-warning"
ng-click="clear()">Clear</button>
</form>
<br />
<div ng-show="findByQueryUrl">
<div>URL:</div>
<pre class="pre-xy-scrollable" ng-bind="findByQueryUrl"></pre>
</div>
<div ng-show="findByQueryResult">
<div>JSON Result ({{findByQueryCt}}):</div>
<pre class="pre-xy-scrollable"
style="background-color: lightgray"
ng-bind="findByQueryResult"></pre>
</div>
</td>
</tr>
<!-- Find by description id -->
<tr>
<td style="vertical-align: top">
<form>
<input ng-model="query2" placeholder="e.g. 679406011" />
<button type="submit" class="btn btn-sm btn-primary"
ng-click="findByDescriptionId(query2)">Find By
Description Id</button>
<button ng-show="findByDescriptionIdUrl"
class="btn btn-sm btn-warning" ng-click="clear()">Clear</button>
</form>
<br />
<div ng-show="findByDescriptionIdUrl">
<div>URL:</div>
<pre class="pre-xy-scrollable" ng-bind="findByDescriptionIdUrl"></pre>
</div>
<div ng-show="findByDescriptionIdResult">
<div>JSON Result ({{findByDescriptionIdCt}}):</div>
<pre class="pre-xy-scrollable"
style="background-color: lightgray"
ng-bind="findByDescriptionIdResult"></pre>
</div>
</td>
</tr>
<!-- Find by concept id -->
<tr>
<td style="vertical-align: top">
<form>
<input ng-model="query3" placeholder="e.g. 109152007" />
<button type="submit" class="btn btn-sm btn-primary"
ng-click="findByConceptId(query3)">Find By Concept Id</button>
<button ng-show="findByConceptIdUrl"
class="btn btn-sm btn-warning" ng-click="clear()">Clear</button>
</form>
<br />
<div ng-show="findByConceptIdUrl">
<div>URL:</div>
<pre class="pre-xy-scrollable" ng-bind="findByConceptIdUrl"></pre>
</div>
<div ng-show="findByConceptIdResult">
<div>JSON Result: ({{findByConceptIdCt}})</div>
<pre class="pre-xy-scrollable"
style="background-color: lightgray"
ng-bind="findByConceptIdResult"></pre>
</div>
</td>
</tr>
<!-- Find by query with filter -->
<tr>
<td style="vertical-align: top">
<form>
<input ng-model="query4" placeholder="e.g. heart" /> <input
ng-model="query5" placeholder="e.g. procedure" />
<button type="submit" class="btn btn-sm btn-primary"
ng-click="findByQueryWithFilter(query4,query5)">Find
By Query With Fitler</button>
<button ng-show="findByQueryWithFilterUrl"
class="btn btn-sm btn-warning" ng-click="clear()">Clear</button>
</form>
<br />
<div ng-show="findByQueryWithFilterUrl">
<div>URL:</div>
<pre class="pre-xy-scrollable"
ng-bind="findByQueryWithFilterUrl"></pre>
</div>
<div ng-show="findByQueryWithFilterResult">
<div>JSON Result: ({{findByQueryWithFilterCt}})</div>
<pre class="pre-xy-scrollable"
style="background-color: lightgray"
ng-bind="findByQueryWithFilterResult"></pre>
</div>
</td>
</tr>
</table>
</div>
<!-- Make a spacer -->
<div class="col-md-1 col-xs-0"></div>
</div>
</div>
</body>
</html>