|
@@ -159,7 +159,79 @@
|
|
|
@include('app.patient.note.note-segment-list-resolve')
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="overflow-auto min-width-200px width-200px" style="max-height: calc(100vh - 260px);">
|
|
|
+ <div class="overflow-auto min-width-250px width-250px" style="max-height: calc(100vh - 260px);">
|
|
|
+ <div class="p-2 border-bottom">
|
|
|
+ <div class="font-weight-bold">ICDs</div>
|
|
|
+ <div moe="">
|
|
|
+ <form show url="/api/note/putReasons" class="mcp-theme-1" hook="onICDUpdate-{{$note->uid}}">
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
+ <div>
|
|
|
+ <table class="table table-sm table-bordered mb-2">
|
|
|
+ <thead class="bg-light">
|
|
|
+ <tr>
|
|
|
+ <th class="border-bottom-0">ICD</th>
|
|
|
+ <th class="border-bottom-0">Desc.</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <td class="p-0">
|
|
|
+ <input icd-autocomplete-code type="text" class="rounded-0 border-0 shadow-none icd-input width-70px pr-0 min-width-unset"
|
|
|
+ name="reasonIcd1" placeholder="ICD 1" value="{{@$note->note_reason_icd1}}" autocomplete="off">
|
|
|
+ </td>
|
|
|
+ <td class="p-0">
|
|
|
+ <input icd-autocomplete-description type="text" class="rounded-0 border-0 shadow-none form-control form-control-sm min-width-unset"
|
|
|
+ name="reasonIcd1Description" value="{{@$note->note_reason_icd1description}}"
|
|
|
+ title="{{@$note->note_reason_icd1description}}">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="p-0">
|
|
|
+ <input icd-autocomplete-code type="text" class="rounded-0 border-0 shadow-none icd-input width-70px pr-0 min-width-unset"
|
|
|
+ name="reasonIcd2" placeholder="ICD 1" value="{{@$note->note_reason_icd2}}" autocomplete="off">
|
|
|
+ </td>
|
|
|
+ <td class="p-0">
|
|
|
+ <input icd-autocomplete-description type="text" class="rounded-0 border-0 shadow-none form-control form-control-sm min-width-unset"
|
|
|
+ name="reasonIcd2Description" value="{{@$note->note_reason_icd2description}}"
|
|
|
+ title="{{@$note->note_reason_icd2description}}">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="p-0">
|
|
|
+ <input icd-autocomplete-code type="text" class="rounded-0 border-0 shadow-none icd-input width-70px pr-0 min-width-unset"
|
|
|
+ name="reasonIcd3" placeholder="ICD 1" value="{{@$note->note_reason_icd3}}" autocomplete="off">
|
|
|
+ </td>
|
|
|
+ <td class="p-0">
|
|
|
+ <input icd-autocomplete-description type="text" class="rounded-0 border-0 shadow-none form-control form-control-sm min-width-unset"
|
|
|
+ name="reasonIcd3Description" value="{{@$note->note_reason_icd3description}}"
|
|
|
+ title="{{@$note->note_reason_icd3description}}">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="p-0">
|
|
|
+ <input icd-autocomplete-code type="text" class="rounded-0 border-0 shadow-none icd-input width-70px pr-0 min-width-unset"
|
|
|
+ name="reasonIcd4" placeholder="ICD 1" value="{{@$note->note_reason_icd4}}" autocomplete="off">
|
|
|
+ </td>
|
|
|
+ <td class="p-0">
|
|
|
+ <input icd-autocomplete-description type="text" class="rounded-0 border-0 shadow-none form-control form-control-sm min-width-unset"
|
|
|
+ name="reasonIcd4Description" value="{{@$note->note_reason_icd4description}}"
|
|
|
+ title="{{@$note->note_reason_icd4description}}">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="text-secondary mb-1">Reason Memo:</label>
|
|
|
+ <input type="text" class="form-control form-control-sm min-width-unset" name="reasonMemo" value="{{@$note->note_reason_memo}}">
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <button submit="" class="btn btn-sm btn-primary mr-1">Submit</button>
|
|
|
+ <button cancel="" class="btn btn-sm btn-default border">Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
@include('app.patient.note.rhs-sidebar')
|
|
|
</div>
|
|
|
</div>
|
|
@@ -231,7 +303,7 @@
|
|
|
function init() {
|
|
|
let parentSegment = $('#note-resolve-{{$note->uid}}');
|
|
|
// __initRTEs(parentSegment.find('[note-rte]:not(.ql-container)'));
|
|
|
-
|
|
|
+ runMCInitializer('icd-autocomplete');
|
|
|
parentSegment.find('.btn-apply-override')
|
|
|
.off('click.apply-override')
|
|
|
.on('click.apply-override', function() {
|
|
@@ -239,7 +311,7 @@
|
|
|
$.post('/api/segment/proposeSegmentSummarySuggestion', {
|
|
|
uid: $(this).attr('data-segment-uid'),
|
|
|
proposedSuggestedSummaryHtml: html,
|
|
|
- autoAccept: 1
|
|
|
+ autoAccept: true
|
|
|
}, _data => {
|
|
|
if(!hasResponseError(_data)) {
|
|
|
toastr.success('Updated');
|
|
@@ -249,6 +321,9 @@
|
|
|
});
|
|
|
}
|
|
|
addMCInitializer('note-resolve-{{$note->uid}}', init, '#note-resolve-{{$note->uid}}');
|
|
|
+ addMCHook('onICDUpdate-{{$note->uid}}', function() {
|
|
|
+ toastr.success('ICDs updated');
|
|
|
+ });
|
|
|
}).call(window);
|
|
|
</script>
|
|
|
@endsection
|