-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcsiroProject.html
382 lines (284 loc) · 15.7 KB
/
csiroProject.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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
<!DOCTYPE html>
<html>
<head lang="en">
<base href="/" />
<meta charset="UTF-8">
<script src="js/libs/angular.min1-5.js"></script>
<script src="js/libs/ui-bootstrap-tpls-2.0.1.min.js"></script>
<script src="js/libs/moment.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css"/>
<link rel="stylesheet" type="text/css" href="css/main.css"/>
<script src="js/libs/angular-sanitize.js"></script>
<script src="js/libs/firebase.js"></script>
<script src="js/libs/angularfire.min.js"></script>
<script>
angular.module("sampleApp",['ui.bootstrap','ngStorage','firebase']).config(function($locationProvider) {
// enable html5Mode for pushstate ('#'-less URLs)
$locationProvider.html5Mode(true);
$locationProvider.hashPrefix('!');
});
angular.module("sampleApp").constant("moment", moment);
angular.module("sampleApp")
.controller('csiroCtrl',
function ($scope,$uibModal,$http,modalService,$timeout,$firebaseObject,appConfigSvc,$location) {
console.log(location.host)
//will update the config. We don't care if manually entered servers are lost or the default servers changed
if (appConfigSvc.checkConfigVersion()) {
alert('The config was updated. You can continue.')
};
firebase.auth().onAuthStateChanged(function(user) {
if (user) {
$scope.user = user;
console.log(user)
} else {
delete $scope.user
}
});
$scope.login=function(){
$uibModal.open({
backdrop: 'static', //means can't close by clicking on the backdrop.
keyboard: false, //same as above.
templateUrl: 'modalTemplates/login.html',
controller: 'loginCtrl'
})
};
$scope.logout=function(){
firebase.auth().signOut().then(function() {
delete $scope.user;
modalService.showModal({}, {bodyText: 'You have been logged out of clinFHIR'})
}, function(error) {
modalService.showModal({}, {bodyText: 'Sorry, there was an error logging out - please try again'})
});
};
let appRoot = location.host;
//set the servers to the ones used by the csiro project.
appConfigSvc.setServerType('conformance','http://home.clinfhir.com:8030/baseDstu3/');
appConfigSvc.setServerType('data','http://home.clinfhir.com:8030/baseDstu3/'); //set the data server to the same as the conformance for the comments
appConfigSvc.setServerType('terminology',"https://primarycare.ontoserver.csiro.au/fhir/");
//$scope.uberModel = "http://clinfhir.com/logicalModeller.html#9xmtt";
//$scope.commonModel = "http://clinfhir.com/logicalModeller.html#f5jor";
$scope.taskManager = "/taskManager.html"
$scope.uberModel = "/logicalModeller.html#$$$CsiroUberModel";
$scope.commonModel = "/logicalModeller.html#$$$CsiroCommon";
$scope.testModel = "/logicalModeller.html#$$$ConditionTest";
//$scope.taskManager = "/taskManager.html";
}
)
</script>
<script>
var config = {
apiKey: "AIzaSyBNMohLbPiSKwpGwfARopdeW_6LLXujcUo",
authDomain: "clinfhir.firebaseapp.com",
databaseURL: "https://clinfhir.firebaseio.com",
storageBucket: ""
};
// console.log(firebase)
if (firebase) {
firebase.initializeApp(config);
}
</script>
<style>
.myForm {
padding: 8px;
}
.taskListScroll {
height: 900px;
overflow-y: scroll;
}
</style>
<script src="js/taskManagerCtl.js"></script>
<script src="js/modalDialogSvc.js"></script>
<script src="js/appConfigSvc.js"></script>
<script src="js/libs/ngStorage.min.js"></script>
<script src="js/filters.js"></script>
<script src="js/loginCtrl.js"></script>
<title>CSIRO Project</title>
</head>
<body style="padding: 8px;padding-top: 80px" >
<div ng-app="sampleApp" ng-controller="csiroCtrl" class="container-fluid">
<nav ng-hide="startupParams.hideNav" class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container-fluid">
<div class="col-md-7 col-sm-7">
<span>
<a class="navbar-brand" href="#" ng-click="showVersion()">
Tooling to support the Primary Care DataSet project
</a>
</span>
</div>
<div class="col-md-2 col-sm-2">
<form class="navbar-form navbar-left">
<img ng-show="showWaiting" src="css/ajax_loader_blue_32.gif"/>
</form>
</div>
<div class="col-md-3 col-sm-3">
<div class="nav navbar-form navbar-right" ng-hide="user">
<span style="font-size:1.8em; cursor: pointer"uib-popover="Click to log in"
popover-placement="left"
popover-trigger="'mouseenter'">
<div ng-click="login()">
<i class="glyphicon glyphicon-log-in"></i>
</div>
</span>
</div>
<div class="nav navbar-form navbar-right" ng-show="user">
<span style="font-size:1.8em; cursor: pointer"
uib-popover="Current user: {{user.email}}. Click to log out"
popover-placement="left"
popover-trigger="'mouseenter'">
<div href="#" ng-click="logout()"> <i class="glyphicon glyphicon-log-out"></i></div>
</span>
</div>
</div>
</div>
</nav>
<div class="row">
<div class="col-md-6">
<table class="table">
<tr>
<td colspan="2">
<h4>Links</h4>
</td>
</tr>
<tr>
<td width = "20%">
<a target="_blank" href="https://docs.google.com/presentation/d/1bIFjSjDuMmuxNXPLuc-YerzBuJJYNx9gFC5EgJeizF0/edit?usp=sharing">
Summary presentation
</a>
</td>
<td>
An overview of the Logical Modeller in review mode. Also describes the comments and notes
</td>
</tr>
<tr>
<td colspan="2">
<h4>Models</h4>
</td>
</tr>
<tr>
<td><a target="_blank" ng-href="{{commonModel}}">Common model</a></td>
<td>
This is the current version of the common model which describes the information to be included in the extract.
The view is read-only, but there is the ability to add comments, which will be used as the contents
of the model are discussed. The comments can be viewed in the model itself, and also through the
<a target="_blank" ng-href="{{uberModel}}">Comments viewer</a> (see below).
<p>
</p>
</td>
</tr>
<tr>
<td><a target="_blank" ng-href="{{uberModel}}">Uber model</a></td>
<td>
This is the original 'uber' model that contained an aggregate of all the elements that could
appear in the extract based on all reporting requirements. The
<a target="_blank" ng-href="{{commonModel}}">common model</a> above contains a subset
of those elements - the ones that are usually available - and useful. This model serves as a
repository of all these 'possible' elements so they can be reviewed at a later date.
</td>
</tr>
<tr>
<td><a target="_blank" ng-href="{{testModel}}">Test model</a></td>
<td>
This is a test model to practice making comments & notes without effecting the real models. There
is no editor set on the model - which means that you can edit the model directly, but it's very likely that any
changes will be overwritten by other users. (You can always create your own model if you want - just set
the editor property in the 'Model' tab to make it read-only to others).
</td>
</tr>
<tr>
<td colspan="2">
<h4>Tools</h4>
</td>
</tr>
<!--
<tr>
<td><a target="_blank" ng-href="{{taskManager}}">Comments viewer</a></td>
<td>
<p>Any logged in user can add a comment to an element in the model to record suggestions for updating such as:</p>
<ul>
<li>A change to the documentation</li>
<li>Additions / Changes to the ValueSet for a coded elements</li>
<li>Changes to multiplicity (if the element can repeat></li>
</ul>
<p>These comments can be viewed in the model itself (select any element and the comments are shown to the right)
and also in a specialized application - the Task viewer. This application treats the comments as if each
one was a task that needs to be resolved - accepted or rejected. </p>
<p>It's really intended for an administrator, but useful for an individual to see what the resolution
to their comment was.</p>
</td>
</tr>
-->
<tr>
<td><a target="_blank" href="validateSample.html">Validator</a></td>
<td>
This allows a sample resource (in XML or Json) to be validated
</td>
</tr>
<tr>
<td><a target="_blank" href="bundleVisualizer.html">Bundle Visualizer</a></td>
<td>
Validates and displays the contents of a Bundle in various ways including a document view
</td>
</tr>
<tr>
<td><a target="_blank" href="https://ontoserver.csiro.au/shrimp/vs.html?fhir=https%3A%2F%2Fprimarycare.ontoserver.csiro.au%2Ffhir">ValueSets</a></td>
<td>
The shrimp browser that has a list of all the ValueSets used by the project.
</td>
</tr>
</table>
</div>
<div class="col-md-6">
<h4>FAQ</h4>
<uib-accordion >
<div uib-accordion-group class="panel-default" heading="Log in to the application">
<p>It's possible to view the model and associated comments without logging in, but to add a new comment - or make a note against
a comment then you do need to log in. Logins are shared across applications so you can log in to
any of them and it will be remembered for the others. There's an icon to the top right ( <i class="glyphicon glyphicon-log-in"></i> )
that will display the login box.</p>
<ul>
<li>If you've logged in before then enter your email and password and click login.</li>
<li>For a new login, enter your email and a password then click the login button. You will get a prompt
about creating a new account.</li>
</ul>
<p>Once you've logged in, your login will be remembered in the browser. To log out, click the
logout ( <i class="glyphicon glyphicon-log-out"></i> ) icon.</p>
</div>
<div uib-accordion-group class="panel-default" heading="Add a comment to a particular element in the model">
To add a comment to an element in the model, select the element in the tree, then click the 'add comment'
link that appears in the detail pane to the right (about half way down the page). A dialog box will
appear into which you can add the comment.
<p>There's an image in <a target="_blank" href="https://docs.google.com/presentation/d/1bIFjSjDuMmuxNXPLuc-YerzBuJJYNx9gFC5EgJeizF0/edit?usp=sharing">
the Summary presentation
</a></p>
</div>
<div uib-accordion-group class="panel-default" heading="Add a note to an existing comment">
To add a note against an element, select the element, then click the edit icon ( <i class="glyphicon glyphicon-edit"></i> ) against the
comment. A dialog box will
appear into which you can add the comment.
<p>There's an image in <a target="_blank" href="https://docs.google.com/presentation/d/1bIFjSjDuMmuxNXPLuc-YerzBuJJYNx9gFC5EgJeizF0/edit?usp=sharing">
the Summary presentation</a></p>
</div>
<div uib-accordion-group class="panel-default" heading="View the existing comments and notes for an element">
Each comment and the notes against it can be viewed individually using the edit option (click the
edit icon - <i class="glyphicon glyphicon-edit"></i> - against a comment, and a dialog appears with the comment and any notes.
</div>
<div uib-accordion-group class="panel-default" heading="View all the existing comments and notes for the model">
Select the 'Model' tab to the upper right. A sub-tab will be displayed with a 'Comments' tab. Selecting that
will list all the comments.
</div>
<div uib-accordion-group class="panel-default" heading="Add a comment to the model">
<p>This is useful if you want to make a comment about the model that is not related
to a specific element.</p>
<ul>
<li>If you're wanting to suggest an additional element, then select the 'parent' element
where the new one would logically fit, and add a new comment there.</li>
<li>To just make a comment about the model overall, select the topmost element
(eg CsiroCommon) and add the comment there.</li>
</ul>
</div>
</uib-accordion>
</div>
</div>
</div>
</body>
</html>