|
@@ -251,25 +251,22 @@
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="mb-2">
|
|
|
- <input type="date" class="if-visit-done form-control form-control-sm" disabled name="mcpOnboardingVisitDate" max="{{ date('Y-m-d') }}">
|
|
|
+ <input type="date" class="if-visit-done form-control form-control-sm" disabled
|
|
|
+ name="mcpOnboardingVisitDate" value="{{ date('Y-m-d') }}" max="{{ date('Y-m-d') }}">
|
|
|
</div>
|
|
|
<div class="mb-2">
|
|
|
<select name="mcpOnboardingVisitNoteUid" disabled
|
|
|
class="form-control form-control-sm if-visit-done"
|
|
|
- onchange="toggleVisibilityAsNeeded(this, '', 'if-note-outside-system')">
|
|
|
+ onchange="if(this.value === '-- create --') createNewNote('{{$patient->uid}}', '{{$pro->uid}}', '{{date('Y-m-d')}}');">
|
|
|
<option value="">-- Visit Note --</option>
|
|
|
@foreach ($notes as $note)
|
|
|
- @if(!empty($note->title))
|
|
|
- <option value="{{$note->uid}}">{{$note->title}}</option>
|
|
|
+ @if(!empty($note->title) && $note->client_id === $patient->id)
|
|
|
+ <option value="{{$note->uid}}">{{$note->title}} ({{friendly_date_time($note->effective_dateest, false)}})</option>
|
|
|
@endif
|
|
|
@endforeach
|
|
|
+ <option value="-- create --">-- Create Note --</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
- <div class="mb-2 if-note-outside-system">
|
|
|
- <textarea class="form-control form-control-sm"
|
|
|
- name="reasonOnboardingVisitNoteOutsideSystem"
|
|
|
- placeholder="Visit note outside the system reason"></textarea>
|
|
|
- </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>
|
|
@@ -277,6 +274,13 @@
|
|
|
</form>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ @else
|
|
|
+ <div class="text-dark d-flex align-items-center">
|
|
|
+ <span class="mr-2 text-secondary">
|
|
|
+ <i class="fa fa-check text-sm"></i>
|
|
|
+ MCP Onboarding Visit Completed
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
@endif
|
|
|
</section>
|
|
|
<section>
|