|
@@ -12,15 +12,15 @@
|
|
|
</div>
|
|
|
<div class="card-body px-3 py-4">
|
|
|
<div class="row">
|
|
|
- <div class="col-3">
|
|
|
- <div class="mb-3 d-flex align-items-center">
|
|
|
+ <div class="col-2">
|
|
|
+ <div class="mb-2 d-flex align-items-center">
|
|
|
<label class="m-0 width-100px">Search</label>
|
|
|
<div class="flex-grow-1">
|
|
|
<input type="text" class="form-control form-control-sm min-width-unset"
|
|
|
fdb-med-suggest-search fdb-suggest-group="1">
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="mb-3 d-flex align-items-center">
|
|
|
+ <div class="mb-2 d-flex align-items-center">
|
|
|
<label class="m-0 width-100px">Route</label>
|
|
|
<div class="flex-grow-1">
|
|
|
<select class="form-control form-control-sm min-width-unset"
|
|
@@ -29,7 +29,7 @@
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="mb-3 d-flex align-items-center">
|
|
|
+ <div class="mb-2 d-flex align-items-center">
|
|
|
<label class="m-0 width-100px">Dosage</label>
|
|
|
<div class="flex-grow-1">
|
|
|
<select class="form-control form-control-sm min-width-unset"
|
|
@@ -38,7 +38,7 @@
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="mb-3 d-flex align-items-center">
|
|
|
+ <div class="mb-2 d-flex align-items-center">
|
|
|
<label class="m-0 width-100px">Strength</label>
|
|
|
<div class="flex-grow-1">
|
|
|
<select class="form-control form-control-sm min-width-unset"
|
|
@@ -48,10 +48,16 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="col-3 side-effects">
|
|
|
+ <div class="col-2 side-effects">
|
|
|
|
|
|
</div>
|
|
|
- <div class="col-3 geriatric-precautions">
|
|
|
+ <div class="col-2 geriatric-precautions">
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div class="col-2 indications">
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div class="col-2 contraindications">
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
@@ -162,6 +168,20 @@
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+ function fillIndications(_gcn_seqno) {
|
|
|
+ $('.indications').empty();
|
|
|
+ $.get('/fdb-indications?gcn-seq-no=' + _gcn_seqno, _data => {
|
|
|
+ $('.indications').html(_data);
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ function fillContraindications(_gcn_seqno) {
|
|
|
+ $('.contraindications').empty();
|
|
|
+ $.get('/fdb-contraindications?routed-med-id=' + _gcn_seqno, _data => {
|
|
|
+ $('.contraindications').html(_data);
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
addMCInitializer('fdb-pg', function() {
|
|
|
|
|
|
$('[fdb-med-suggest-search]:not([fdb-suggest-initialized])').each(function() {
|
|
@@ -266,6 +286,10 @@
|
|
|
$(document).on('change', '[fdb-med-suggest-strength]', function () {
|
|
|
fillSideEffects($(this).val());
|
|
|
fillGeriatricPrecautions($(this).val());
|
|
|
+ fillIndications($(this).val());
|
|
|
+
|
|
|
+ let routedMedID = $('[fdb-med-suggest-route][fdb-suggest-group='+$(this).attr('fdb-suggest-group')+']').val();
|
|
|
+ fillContraindications(routedMedID);
|
|
|
});
|
|
|
|
|
|
}, '#fdb-pg');
|