|
@@ -40,6 +40,110 @@
|
|
|
|
|
|
</form>
|
|
|
|
|
|
+ <?php $patient = $note->client; ?>
|
|
|
+
|
|
|
+ <div class="border rounded p-3 mb-3 max-width-500px">
|
|
|
+ <p><b>RPM Reasons</b></p>
|
|
|
+ <div class="max-width-500px">
|
|
|
+ @if(!$patient->rmReasons || !count($patient->rmReasons))
|
|
|
+ <span class="text-secondary d-block mb-2">None</span>
|
|
|
+ @else
|
|
|
+ <div>
|
|
|
+ @foreach($patient->rmReasons as $reason)
|
|
|
+ <div class="border-bottom pb-1 mb-1 d-flex align-items-start">
|
|
|
+ <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>
|
|
|
+ <input type="hidden" name="uid" value="{{$reason->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="text-sm mb-1 text-secondary">Code *</label>
|
|
|
+ <input type="text" class="form-control form-control-sm"
|
|
|
+ icd-autocomplete-code
|
|
|
+ name="code" value="{{$reason->code}}" required>
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="text-sm mb-1 text-secondary">Description</label>
|
|
|
+ <input type="text" class="form-control form-control-sm"
|
|
|
+ icd-autocomplete-description
|
|
|
+ name="description" value="{{$reason->description}}">
|
|
|
+ </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 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>
|
|
|
+ <input type="hidden" name="uid" value="{{$reason->uid}}">
|
|
|
+ <p>Remove this RM 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 class="d-flex align-items-baseline">
|
|
|
+ <div moe>
|
|
|
+ <a start show>+ Add From Dx</a>
|
|
|
+ <form url="/api/clientCmRmReason/create" class="mcp-theme-1">
|
|
|
+ <input type="hidden" name="clientUid" value="{{$patient->uid}}">
|
|
|
+ <input type="hidden" name="cmOrRm" value="RM">
|
|
|
+ <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 New</a>
|
|
|
+ <form url="/api/clientCmRmReason/create" class="mcp-theme-1">
|
|
|
+ <input type="hidden" name="clientUid" value="{{$patient->uid}}">
|
|
|
+ <input type="hidden" name="cmOrRm" value="RM">
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="text-sm mb-1 text-secondary">Code *</label>
|
|
|
+ <input type="text" class="form-control form-control-sm"
|
|
|
+ icd-autocomplete-code
|
|
|
+ name="code" value="" required>
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="text-sm mb-1 text-secondary">Description</label>
|
|
|
+ <input type="text" class="form-control form-control-sm"
|
|
|
+ icd-autocomplete-description
|
|
|
+ name="description" value="">
|
|
|
+ </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>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
<hr class="m-neg-3">
|
|
|
|
|
|
<div class="d-flex align-items-center justify-content-center">
|