|
@@ -601,18 +601,18 @@
|
|
|
|
|
|
<div class="d-flex align-items-baseline mb-3">
|
|
|
<span class="min-width-140px">CCM Reasons:</span>
|
|
|
- <div class="">
|
|
|
+ <div class="min-width-300px">
|
|
|
@if(!$patient->cmReasons || !count($patient->cmReasons))
|
|
|
<span class="text-secondary">None</span>
|
|
|
@else
|
|
|
<div>
|
|
|
@foreach($patient->cmReasons as $reason)
|
|
|
<div class="border-bottom pb-1 mb-1 d-flex align-items-start">
|
|
|
- <b class="width-90px">{{$reason->code}}</b>
|
|
|
- <span class="width-200px mr-3">{{$reason->description}}</span>
|
|
|
- <div moe>
|
|
|
- <a start show>Edit</a>
|
|
|
- <form url="/api/clientCmRmReason/updateBasic" class="mcp-theme-1">
|
|
|
+ <b class="min-width-70px">{{$reason->code}}</b>
|
|
|
+ <span class="max-width-200px mr-3">{{$reason->description}}</span>
|
|
|
+ <div moe relative class="ml-auto">
|
|
|
+ <a start show><i class="fa fa-pencil-alt"></i></a>
|
|
|
+ <form url="/api/clientCmRmReason/updateBasic" class="mcp-theme-1" right target='[data-non-segment-section="CM Setup"]'>
|
|
|
<input type="hidden" name="uid" value="{{$reason->uid}}">
|
|
|
<div class="mb-2">
|
|
|
<label class="text-sm mb-1 text-secondary">Code *</label>
|
|
@@ -632,14 +632,51 @@
|
|
|
</div>
|
|
|
</form>
|
|
|
</div>
|
|
|
+ <div moe relative class="ml-2">
|
|
|
+ <a start show><i class="fa fa-trash-alt text-danger on-hover-opaque"></i></a>
|
|
|
+ <form url="/api/clientCmRmReason/remove" class="mcp-theme-1" right target='[data-non-segment-section="CM Setup"]'>
|
|
|
+ <input type="hidden" name="uid" value="{{$reason->uid}}">
|
|
|
+ <p>Remove this CM reason?</p>
|
|
|
+ <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>
|
|
|
@endforeach
|
|
|
</div>
|
|
|
@endif
|
|
|
- <div>
|
|
|
+ <div class="d-flex align-items-baseline">
|
|
|
+ <div moe>
|
|
|
+ <a start show>+ Add From Dx</a>
|
|
|
+ <form url="/api/clientCmRmReason/create" class="mcp-theme-1" target='[data-non-segment-section="CM Setup"]'>
|
|
|
+ <input type="hidden" name="clientUid" value="{{$patient->uid}}">
|
|
|
+ <input type="hidden" name="cmOrRm" value="CM">
|
|
|
+ <input type="hidden" name="code" value="">
|
|
|
+ <input type="hidden" name="description" value="">
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="text-sm mb-1 text-secondary">Reason *</label>
|
|
|
+ <select type="text" class="form-control form-control-sm problem-select" name="problem" required>
|
|
|
+ <?php $problems = \App\Models\Point::getPointsOfCategory($patient, "PROBLEM"); ?>
|
|
|
+ <option value="">-- select --</option>
|
|
|
+ @foreach($problems as $problem)
|
|
|
+ @if(!!@($problem->data->icd))
|
|
|
+ <option value="{{$problem->uid}}" data-icd="{{$problem->data->icd}}" data-name="{{$problem->data->name}}">{{$problem->data->icd}} - {{$problem->data->name}}</option>
|
|
|
+ @endif
|
|
|
+ @endforeach
|
|
|
+ </select>
|
|
|
+ </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>
|
|
|
+ <span class="mx-2 text-secondary text-sm">|</span>
|
|
|
<div moe>
|
|
|
<a start show>+ Add</a>
|
|
|
- <form url="/api/clientCmRmReason/create" class="mcp-theme-1">
|
|
|
+ <form url="/api/clientCmRmReason/create" class="mcp-theme-1" target='[data-non-segment-section="CM Setup"]'>
|
|
|
<input type="hidden" name="clientUid" value="{{$patient->uid}}">
|
|
|
<input type="hidden" name="cmOrRm" value="CM">
|
|
|
<div class="mb-2">
|