|
@@ -67,13 +67,15 @@
|
|
<form url="/api/visit/create"
|
|
<form url="/api/visit/create"
|
|
redir="/patients/view/{{$patient->uid}}/notes/view/[data]"
|
|
redir="/patients/view/{{$patient->uid}}/notes/view/[data]"
|
|
class="mcp-theme-1">
|
|
class="mcp-theme-1">
|
|
|
|
+ <?php $proVisitTemplates = $pro->visitTemplates(); ?>
|
|
<input type="hidden" name="clientUid" value="{{$patient->uid}}">
|
|
<input type="hidden" name="clientUid" value="{{$patient->uid}}">
|
|
@if($pro->isDefaultNA())
|
|
@if($pro->isDefaultNA())
|
|
<input type="hidden" name="naProUid" value="{{$pro->uid}}">
|
|
<input type="hidden" name="naProUid" value="{{$pro->uid}}">
|
|
@endif
|
|
@endif
|
|
<input type="hidden" name="effectiveDate" value="{{date("Y-m-d")}}">
|
|
<input type="hidden" name="effectiveDate" value="{{date("Y-m-d")}}">
|
|
<input type="hidden" name="effectiveTime" value="{{date("h:i")}}">
|
|
<input type="hidden" name="effectiveTime" value="{{date("h:i")}}">
|
|
- <input type="hidden" class="form-control form-control-sm" placeholder="title" name="title" id="note-create-title" value="Note">
|
|
|
|
|
|
+ <input type="hidden" class="form-control form-control-sm" placeholder="title"
|
|
|
|
+ name="title" id="note-create-title" value="{{count($proVisitTemplates) === 1 ? $proVisitTemplates->first()->title : 'Note'}}">
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
<label for="" class="text-secondary text-sm mb-1">HCP Pro *</label>
|
|
<label for="" class="text-secondary text-sm mb-1">HCP Pro *</label>
|
|
<select name="hcpProUid" class="form-control" provider-search required data-pro-uid="{{$pro->is_hcp ? $pro->uid : ''}}">
|
|
<select name="hcpProUid" class="form-control" provider-search required data-pro-uid="{{$pro->is_hcp ? $pro->uid : ''}}">
|
|
@@ -85,17 +87,23 @@
|
|
onchange="$('#note-create-title').val($(this).find('option:selected').text())"
|
|
onchange="$('#note-create-title').val($(this).find('option:selected').text())"
|
|
required>
|
|
required>
|
|
<option value=""> --select--</option>
|
|
<option value=""> --select--</option>
|
|
- @foreach($pro->visitTemplates() as $visitTemplate)
|
|
|
|
- <option value="{{$visitTemplate->uid}}">{{$visitTemplate->title}}</option>
|
|
|
|
|
|
+ @foreach($proVisitTemplates as $visitTemplate)
|
|
|
|
+ <option value="{{$visitTemplate->uid}}" {{count($proVisitTemplates) === 1 ? 'selected' : ''}}>{{$visitTemplate->title}}</option>
|
|
@endforeach
|
|
@endforeach
|
|
</select>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="mb-2">
|
|
<div class="mb-2">
|
|
- <label for="" class="text-secondary text-sm mb-1">New/Fu</label>
|
|
|
|
- <select name="newOrFuOrNa" class="form-control form-control-sm note-method-select" required>
|
|
|
|
- <option value="NEW">New</option>
|
|
|
|
- <option value="FU">Follow-Up</option>
|
|
|
|
- </select>
|
|
|
|
|
|
+ <label for="" class="text-secondary text-sm mb-1">New/Follow-up</label>
|
|
|
|
+ <div class="d-flex align-items-baseline py-1">
|
|
|
|
+ <label class="mr-3 my-0 d-inline-flex align-items-center c-pointer">
|
|
|
|
+ <input type="radio" name="newOrFuOrNa" value="NEW" required>
|
|
|
|
+ <span class="ml-1 text-dark">New</span>
|
|
|
|
+ </label>
|
|
|
|
+ <label class="my-0 d-inline-flex align-items-center c-pointer">
|
|
|
|
+ <input type="radio" name="newOrFuOrNa" value="FU" required>
|
|
|
|
+ <span class="ml-1 text-dark">Follow-Up</span>
|
|
|
|
+ </label>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div class="mb-2">
|
|
<div class="mb-2">
|
|
<label for="" class="text-secondary text-sm mb-1">Method *</label>
|
|
<label for="" class="text-secondary text-sm mb-1">Method *</label>
|