patients.blade.php 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. @extends ('layouts/template')
  2. @section('content')
  3. <div class="p-3 mcp-theme-1">
  4. <div class="card">
  5. <div class="card-header px-3 py-2 d-flex align-items-center">
  6. <strong class="mr-4">
  7. <i class="fas fa-user-injured"></i>
  8. Patients
  9. </strong>
  10. <select class="ml-auto max-width-300px form-control form-control-sm" onchange="fastLoad('/patients/' + this.value, true, false, false)">
  11. <option value="" {{ $filter === '' ? 'selected' : '' }}>All patients</option>
  12. <option value="not-yet-seen" {{ $filter === 'not-yet-seen' ? 'selected' : '' }}>Patients I have not seen yet</option>
  13. </select>
  14. </div>
  15. <div class="card-body p-0">
  16. <table class="table table-condensed p-0 m-0">
  17. <thead class="bg-light">
  18. <tr>
  19. <th class="px-3 border-0">#</th>
  20. <th class="border-0">Name</th>
  21. <th class="border-0">DOB</th>
  22. <th class="border-0">Sex</th>
  23. <th class="border-0">MCN</th>
  24. <th class="border-0">PCP</th>
  25. <th class="border-0">Assistant</th>
  26. <th class="border-0">Next E&M</th>
  27. </tr>
  28. </thead>
  29. <tbody>
  30. @foreach($patients as $patient)
  31. <tr>
  32. <td class="px-3">
  33. <a href="{{route('patients.view.dashboard', $patient)}}">
  34. {{$patient->chart_number}}
  35. </a>
  36. </td>
  37. <td>
  38. {{$patient->displayName()}}
  39. @if($patient->has_mcp_done_onboarding_visit !== 'YES')
  40. <span title="MCP Onboarding Visit Pending"><i class="fa fa-exclamation-triangle"></i></span>
  41. @endif
  42. </td>
  43. <td>{{ friendly_date_time($patient->dob, false) }}</td>
  44. <td>{{ $patient->sex === 'M' ? 'Male' : 'Female' }}</td>
  45. <td>
  46. @if($patient->was_medicare_validation_successful && $patient->is_part_b_primary == 'YES')
  47. <div>Valid MCN</div>
  48. @else
  49. @if($patient->mcn)
  50. <div>Invalid MCN</div>
  51. @else
  52. <div>No MCN Provided</div>
  53. @endif
  54. @endif
  55. </td>
  56. <td>
  57. {{ $patient->mcp ? $patient->mcp->displayName() : '-' }}
  58. </td>
  59. <td>
  60. {{ $patient->cm ? $patient->cm->displayName() : '-' }}
  61. </td>
  62. <td>
  63. {{$patient->next_appointment ? friendly_date_time($patient->next_appointment, false) : '-'}}
  64. </td>
  65. </tr>
  66. @endforeach
  67. </tbody>
  68. </table>
  69. </div>
  70. </div>
  71. </div>
  72. @endsection