|
@@ -90,10 +90,10 @@ $medications = $points;
|
|
|
|
|
|
<input type="hidden" name="data">
|
|
<input type="hidden" name="data">
|
|
|
|
|
|
- <input type="hidden" data-name="medId">
|
|
|
|
- <input type="hidden" data-name="routedMedId">
|
|
|
|
- <input type="hidden" data-name="routedDosageFormMedId">
|
|
|
|
- <input type="hidden" data-name="gcnSeqno">
|
|
|
|
|
|
+ <input type="hidden" data-name="medId" value="{{@$medication->data->medId}}">
|
|
|
|
+ <input type="hidden" data-name="routedMedId" value="{{@$medication->data->routedMedId}}">
|
|
|
|
+ <input type="hidden" data-name="routedDosageFormMedId" value="{{@$medication->data->routedDosageFormMedId}}">
|
|
|
|
+ <input type="hidden" data-name="gcnSeqno" value="{{@$medication->data->gcnSeqno}}">
|
|
|
|
|
|
<div class="mb-2">
|
|
<div class="mb-2">
|
|
<label class="text-sm text-secondary mb-1">Drug</label>
|
|
<label class="text-sm text-secondary mb-1">Drug</label>
|
|
@@ -367,8 +367,8 @@ $medications = $points;
|
|
$.post(form.attr('action'), form.serialize(), _data => {
|
|
$.post(form.attr('action'), form.serialize(), _data => {
|
|
if(!hasResponseError(_data)) {
|
|
if(!hasResponseError(_data)) {
|
|
hideMask();
|
|
hideMask();
|
|
- // TODO: update intake and plan meds
|
|
|
|
refreshDynamicStagPopup();
|
|
refreshDynamicStagPopup();
|
|
|
|
+ $('.visit-segment[data-segment-template-name="intake_medications"]').find('.refresh-segment').trigger('click');
|
|
}
|
|
}
|
|
}, 'json');
|
|
}, 'json');
|
|
return false;
|
|
return false;
|
|
@@ -421,8 +421,8 @@ $medications = $points;
|
|
$.post(form.attr('url'), form.serialize(), _data => {
|
|
$.post(form.attr('url'), form.serialize(), _data => {
|
|
if(!hasResponseError(_data)) {
|
|
if(!hasResponseError(_data)) {
|
|
hideMask();
|
|
hideMask();
|
|
- // TODO: update intake and plan meds
|
|
|
|
refreshDynamicStagPopup();
|
|
refreshDynamicStagPopup();
|
|
|
|
+ $('.visit-segment[data-segment-template-name="intake_medications"]').find('.refresh-segment').trigger('click');
|
|
}
|
|
}
|
|
}, 'json');
|
|
}, 'json');
|
|
return false;
|
|
return false;
|