|
@@ -1,7 +1,46 @@
|
|
|
|
+<?php
|
|
|
|
+$rmDisplayData = [
|
|
|
|
+ 'icd_1' => [
|
|
|
|
+ 'title' => 'ICD 1',
|
|
|
|
+ 'reason' => $record->rm_reason_icd1,
|
|
|
|
+ 'description' => $record->rm_reason_icd1description
|
|
|
|
+ ],
|
|
|
|
+ 'icd_2' => [
|
|
|
|
+ 'title' => 'ICD 2',
|
|
|
|
+ 'reason' => $record->rm_reason_icd2,
|
|
|
|
+ 'description' => $record->rm_reason_icd2description
|
|
|
|
+ ],
|
|
|
|
+ 'icd_3' => [
|
|
|
|
+ 'title' => 'ICD 3',
|
|
|
|
+ 'reason' => $record->rm_reason_icd3,
|
|
|
|
+ 'description' => $record->rm_reason_icd3description
|
|
|
|
+ ],
|
|
|
|
+ 'icd_4' => [
|
|
|
|
+ 'title' => 'ICD 4',
|
|
|
|
+ 'reason' => $record->rm_reason_icd4,
|
|
|
|
+ 'description' => $record->rm_reason_icd4description
|
|
|
|
+ ],
|
|
|
|
+];
|
|
|
|
+if($recordType === 'NOTE'){
|
|
|
|
+ $rmDisplayData['icd_1']['reason'] = $record->note_reason_icd1;
|
|
|
|
+ $rmDisplayData['icd_1']['description'] = $record->note_reason_icd1description;
|
|
|
|
+ $rmDisplayData['icd_2']['reason'] = $record->note_reason_icd2;
|
|
|
|
+ $rmDisplayData['icd_2']['description'] = $record->note_reason_icd2description;
|
|
|
|
+ $rmDisplayData['icd_3']['reason'] = $record->note_reason_icd3;
|
|
|
|
+ $rmDisplayData['icd_3']['description'] = $record->note_reason_icd3description;
|
|
|
|
+ $rmDisplayData['icd_4']['reason'] = $record->note_reason_icd4;
|
|
|
|
+ $rmDisplayData['icd_4']['description'] = $record->note_reason_icd4description;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+ $submitUrl = null;
|
|
|
|
+ if(@$recordType === 'CLIENT') $submitUrl = '/api/client/putRmReasons';
|
|
|
|
+ if(@$recordType === 'NOTE') $submitUrl = '/api/note/putReasons';
|
|
|
|
+ if(@$recordType === 'CARE_MONTH') $submitUrl = '/api/careMonth/putRmReasons';
|
|
|
|
+?>
|
|
<div moe>
|
|
<div moe>
|
|
<a start show><i class="fas fa-edit on-hover-opaque"></i></a>
|
|
<a start show><i class="fas fa-edit on-hover-opaque"></i></a>
|
|
- <form url="/api/client/putRmReasons" class="mcp-theme-1">
|
|
|
|
- <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
|
|
|
+ <form url="{{ $submitUrl }}" class="mcp-theme-1">
|
|
|
|
+ <input type="hidden" name="uid" value="{{$record->uid}}">
|
|
<div>
|
|
<div>
|
|
<table class="table table-sm table-bordered">
|
|
<table class="table table-sm table-bordered">
|
|
<thead class="bg-light">
|
|
<thead class="bg-light">
|
|
@@ -13,34 +52,34 @@
|
|
<tbody>
|
|
<tbody>
|
|
<tr>
|
|
<tr>
|
|
<td>
|
|
<td>
|
|
- <input type="text" class="icd-input" icd-autocomplete-code data-target="input[name=rmReasonIcd1Description]" name="rmReasonIcd1" value="{{ $patient->rm_reason_icd1 }}" placeholder="ICD 1" />
|
|
|
|
|
|
+ <input type="text" class="icd-input" icd-autocomplete-code data-target="input[name=reasonIcd1Description]" name="reasonIcd1" value="{{ $rmDisplayData['icd_1']['reason'] }}" placeholder="ICD 1" />
|
|
</td>
|
|
</td>
|
|
<td>
|
|
<td>
|
|
- <input id="" type="text" class="form-control form-control-sm" icd-autocomplete-description name="rmReasonIcd1Description" value="{{ $patient->rm_reason_icd1description }}">
|
|
|
|
|
|
+ <input id="" type="text" class="form-control form-control-sm" icd-autocomplete-description name="reasonIcd1Description" value="{{ $rmDisplayData['icd_1']['description'] }}">
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
<td>
|
|
<td>
|
|
- <input type="text" class="icd-input" icd-autocomplete-code name="rmReasonIcd2" data-target="input[name=rmReasonIcd2Description]" value="{{ $patient->rm_reason_icd2 }}" placeholder="ICD 2" />
|
|
|
|
|
|
+ <input type="text" class="icd-input" icd-autocomplete-code name="reasonIcd2" data-target="input[name=reasonIcd2Description]" value="{{ $rmDisplayData['icd_2']['reason'] }}" placeholder="ICD 2" />
|
|
</td>
|
|
</td>
|
|
<td>
|
|
<td>
|
|
- <input type="text" class="form-control form-control-sm" icd-autocomplete-description name="rmReasonIcd2Description" value="{{ $patient->rm_reason_icd2description }}">
|
|
|
|
|
|
+ <input type="text" class="form-control form-control-sm" icd-autocomplete-description name="reasonIcd2Description" value="{{ $rmDisplayData['icd_2']['description'] }}">
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
<td>
|
|
<td>
|
|
- <input type="text" class="icd-input" icd-autocomplete-code name="rmReasonIcd3" data-target="input[name=rmReasonIcd3Description]" value="{{ $patient->rm_reason_icd3 }}" placeholder="ICD 3" />
|
|
|
|
|
|
+ <input type="text" class="icd-input" icd-autocomplete-code name="reasonIcd3" data-target="input[name=reasonIcd3Description]" value="{{ $rmDisplayData['icd_3']['reason'] }}" placeholder="ICD 3" />
|
|
</td>
|
|
</td>
|
|
<td>
|
|
<td>
|
|
- <input type="text" class="form-control form-control-sm" icd-autocomplete-description name="rmReasonIcd3Description" value="{{ $patient->rm_reason_icd3description }}">
|
|
|
|
|
|
+ <input type="text" class="form-control form-control-sm" icd-autocomplete-description name="reasonIcd3Description" value="{{ $rmDisplayData['icd_3']['description'] }}">
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
<td>
|
|
<td>
|
|
- <input type="text" class="icd-input" icd-autocomplete-code name="rmReasonIcd4" data-target="input[name=rmReasonIcd4Description]" value="{{ $patient->rm_reason_icd4 }}" placeholder="ICD 4" />
|
|
|
|
|
|
+ <input type="text" class="icd-input" icd-autocomplete-code name="reasonIcd4" data-target="input[name=reasonIcd4Description]" value="{{ $rmDisplayData['icd_4']['reason'] }}" placeholder="ICD 4" />
|
|
</td>
|
|
</td>
|
|
<td>
|
|
<td>
|
|
- <input type="text" class="form-control form-control-sm" icd-autocomplete-description name="rmReasonIcd4Description" value="{{ $patient->rm_reason_icd4description }}">
|
|
|
|
|
|
+ <input type="text" class="form-control form-control-sm" icd-autocomplete-description name="reasonIcd4Description" value="{{ $rmDisplayData['icd_4']['description'] }}">
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
</tbody>
|
|
</tbody>
|
|
@@ -48,7 +87,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="mb-2">
|
|
<div class="mb-2">
|
|
<label class="font-weight-bold mb-1">RM Reason Memo:</label>
|
|
<label class="font-weight-bold mb-1">RM Reason Memo:</label>
|
|
- <input type="text" class="form-control form-control-sm" name="rmReasonMemo" value="{{ $patient->rm_reason_memo }}">
|
|
|
|
|
|
+ <input type="text" class="form-control form-control-sm" name="reasonMemo" value="{{ $recordType === 'NOTE' ? $record->note_reason_memo : $record->rm_reason_memo }}">
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
<button submit class="btn btn-sm btn-primary mr-1">Submit</button>
|
|
<button submit class="btn btn-sm btn-primary mr-1">Submit</button>
|