forked from openemr/openemr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
diagnosis.php
43 lines (39 loc) · 1.62 KB
/
diagnosis.php
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
<?php
// Copyright (C) 2010-2011 Aron Racho <[email protected]>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
?>
<head>
<link rel="stylesheet" href="<?php css_src('rules.css') ?>" type="text/css">
<script language="javascript" src="../../../library/dialog.js"></script>
<script type="text/javascript">
// This invokes the find-code popup.
function sel_diagnosis() {
dlgopen('../../patient_file/encounter/find_code_popup.php', '_blank', 500, 400);
}
// This is for callback by the find-code popup.
// Aonly allows one entry.
function set_related(codetype, code, selector, codedesc) {
var f = document.forms[0];
var s = f.fld_value.value;
if (code) {
if (s.length > 0) s += ';';
s = codetype + ':' + code;
} else {
s = '';
}
f.fld_value.value = s;
}
</script>
</head>
<!-- diagnosis -->
<p class="row">
<span class="left_col colhead req" data-fld="fld_diagnosis"><?php echo out( $criteria->getTitle() ); ?></span>
<span class="end_col"><input id="fld_value" type="text" name="fld_value" class="field" onclick="sel_diagnosis()" value="<?php echo out( $criteria->getRequirements() ); ?>"></span>
</p>
<br/>
<!-- optional/required and inclusion/exclusion fields -->
<?php echo common_fields( array( "criteria" => $criteria) ); ?>