|
@@ -10,30 +10,38 @@
|
|
|
<span class="mx-2 text-secondary">|</span>
|
|
|
<div moe>
|
|
|
<a start show class="py-0 mb-3">Add</a>
|
|
|
- <form url="/api/note/create" class="mcp-theme-1"
|
|
|
- redir="patients/view/{{ $patient->uid }}/notes/view/[data]">
|
|
|
+
|
|
|
+
|
|
|
+ <form url="/api/note/createUsingTemplate"
|
|
|
+ redir="/patients/view/{{$patient->uid}}/notes/view/[data]"
|
|
|
+ class="mcp-theme-1">
|
|
|
<input type="hidden" name="clientUid" value="{{$patient->uid}}">
|
|
|
- <div class="form-group">
|
|
|
+ <input type="hidden" name="effectiveDateEST" value="{{date("Y-m-d")}}">
|
|
|
+ <input type="hidden" name="effectiveTime" value="{{date("h:i")}}">
|
|
|
+ <input type="hidden" name="title" id="note-create-title" value="">
|
|
|
+ <div class="form-group mb-2">
|
|
|
<label for="" class="text-secondary text-sm mb-1">Pro *</label>
|
|
|
<select name="hcpProUid" class="form-control" provider-search required data-pro-uid="{{$pro->is_hcp ? $pro->uid : ''}}">
|
|
|
</select>
|
|
|
</div>
|
|
|
- <input type="hidden" name="effectiveDateEST" value="{{ date('Y-m-d') }}">
|
|
|
- <div class="form-group">
|
|
|
- <label for="" class="text-secondary text-sm mb-1">Type *</label>
|
|
|
- <select name="newOrFuOrNa" class="form-control">
|
|
|
- <option value="NEW">New Patient</option>
|
|
|
- <option value="FU" {{$pro->is_hcp && $patient->hasNewNoteForPro($pro) ? 'selected' : ''}}>Follow Up</option>
|
|
|
- <option value="NA">N/A</option>
|
|
|
+ <div class="form-group mb-2">
|
|
|
+ <label for="" class="text-secondary text-sm mb-1">Note Template *</label>
|
|
|
+ <select name="noteTemplateUid" class="form-control form-control-sm"
|
|
|
+ onchange="$('#note-create-title').val($(this).find('option:selected').text())"
|
|
|
+ required>
|
|
|
+ <option value=""> --select--</option>
|
|
|
+ @foreach($pro->noteTemplates as $noteTemplate)
|
|
|
+ <?php $nT = $noteTemplate->template(); ?>
|
|
|
+ <option value="{{$nT->uid}}">{{$nT->title}}</option>
|
|
|
+ @endforeach
|
|
|
</select>
|
|
|
</div>
|
|
|
- <div class="form-group">
|
|
|
+ <div class="mb-2">
|
|
|
<label for="" class="text-secondary text-sm mb-1">Method *</label>
|
|
|
- <select name="method" class="form-control note-method-select" required>
|
|
|
- <option value="">-- select --</option>
|
|
|
- <option value="VIDEO">Video</option>
|
|
|
+ <select name="method" class="form-control form-control-sm note-method-select" required>
|
|
|
<option value="AUDIO">Audio</option>
|
|
|
- <option value="IN_CLINIC">In Clinic</option>
|
|
|
+ <option value="VIDEO">Video</option>
|
|
|
+ <option value="IN_CLINIC">In-Clinic</option>
|
|
|
<option value="HOUSE_CALL">House Call</option>
|
|
|
</select>
|
|
|
</div>
|
|
@@ -46,15 +54,14 @@
|
|
|
@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 class="form-group m-0">
|
|
|
+ <button submit class="btn btn-primary btn-sm">submit</button>
|
|
|
</div>
|
|
|
</form>
|
|
|
</div>
|
|
|
<span class="mx-2 text-secondary">|</span>
|
|
|
<div moe>
|
|
|
- <a start show class="py-0 mb-3">Add Visit</a>
|
|
|
+ <a start show class="py-0 mb-3 text-info font-weight-bold">Add Visit</a>
|
|
|
<form url="/api/visit/create"
|
|
|
redir="/patients/view/{{$patient->uid}}/notes/view/[data]"
|
|
|
class="mcp-theme-1">
|
|
@@ -166,9 +173,12 @@
|
|
|
@foreach ($records as $note)
|
|
|
<tr class="{{ $note->is_cancelled ? 'cancelled-item always-clickable' : '' }}">
|
|
|
<td class="px-2">
|
|
|
- <span class="font-weight-bold">
|
|
|
+ <a href="/patients/view/{{ $patient->uid }}/notes/view/{{ $note->uid }}" class="font-weight-bold">
|
|
|
{{ friendly_date_time($note->effective_dateest, false) }}
|
|
|
- </span>
|
|
|
+ </a>
|
|
|
+ @if(!!$note->visitTemplate)
|
|
|
+ <span class="text-info font-weight-bold">*</span>
|
|
|
+ @endif
|
|
|
<span class="ml-1">{{ $note->is_cancelled ? '[cancelled]' : '' }}</span>
|
|
|
</td>
|
|
|
<td class="px-2">
|