|
@@ -43,8 +43,10 @@
|
|
|
{{-- appointments --}}
|
|
|
@include('app/patient/partials/appointments')
|
|
|
|
|
|
+ <?php $hasAllergiesInCanvas = $patient->hasDataInCanvas('allergies'); ?>
|
|
|
+
|
|
|
{{-- canvas based allergies --}}
|
|
|
- @if($isOldClient)
|
|
|
+ @if($isOldClient && $hasAllergiesInCanvas)
|
|
|
<div class="pt-2 mt-2 border-top">
|
|
|
<div class="d-flex align-items-center pb-2">
|
|
|
<h6 class="my-0 font-weight-bold text-secondary">Allergies</h6>
|
|
@@ -59,8 +61,10 @@
|
|
|
<!-- allergies - point -->
|
|
|
@include('app.patient.point-based-partials.allergies')
|
|
|
|
|
|
+ <?php $hasRxInCanvas = $patient->hasDataInCanvas('rx'); ?>
|
|
|
+
|
|
|
{{-- canvas based rx --}}
|
|
|
- @if($isOldClient)
|
|
|
+ @if($isOldClient && $hasRxInCanvas)
|
|
|
<div class="pt-2 mt-2 border-top">
|
|
|
<div class="d-flex align-items-center pb-2">
|
|
|
<h6 class="my-0 font-weight-bold text-secondary">Current Medications</h6>
|
|
@@ -196,8 +200,10 @@
|
|
|
{{-- vitals --}}
|
|
|
{{--@include('app/patient/partials/vitals')--}}
|
|
|
|
|
|
+ <?php $hasVitalsInCanvas = $patient->hasDataInCanvas('vitals'); ?>
|
|
|
+
|
|
|
{{-- canvas based vitals --}}
|
|
|
- @if($isOldClient)
|
|
|
+ @if($isOldClient && $hasVitalsInCanvas)
|
|
|
<div class="pt-2 border-top">
|
|
|
<div class="d-flex align-items-center pb-2">
|
|
|
<h6 class="my-0 font-weight-bold text-secondary">Vitals</h6>
|
|
@@ -220,7 +226,7 @@
|
|
|
</span>
|
|
|
@endif
|
|
|
</h6>
|
|
|
- @if($isOldClient)
|
|
|
+ @if($isOldClient && $hasVitalsInCanvas)
|
|
|
<div class="px-2 font-weight-bold alert alert-info text-sm my-0 ml-2 py-1">New</div>
|
|
|
@endif
|
|
|
</div>
|
|
@@ -236,6 +242,8 @@
|
|
|
</div>
|
|
|
<div class="col-6">
|
|
|
|
|
|
+ <?php $hasDxInCanvas = $patient->hasDataInCanvas('dx'); ?>
|
|
|
+
|
|
|
{{-- canvas based dx --}}
|
|
|
@if($isOldClient)
|
|
|
<div class="pt-2 mb-2 border-top">
|
|
@@ -252,8 +260,10 @@
|
|
|
<!-- probs - point -->
|
|
|
@include('app.patient.point-based-partials.dx')
|
|
|
|
|
|
+ <?php $hasCareTeamInCanvas = $patient->hasDataInCanvas('care-team'); ?>
|
|
|
+
|
|
|
{{-- canvas based careteam --}}
|
|
|
- @if($isOldClient)
|
|
|
+ @if($isOldClient && $hasCareTeamInCanvas)
|
|
|
<div class="pt-2 mt-2 border-top">
|
|
|
<div class="d-flex align-items-center pb-2">
|
|
|
<h6 class="my-0 font-weight-bold text-secondary">Care Team</h6>
|
|
@@ -268,8 +278,10 @@
|
|
|
<!-- careteam - point -->
|
|
|
@include('app.patient.point-based-partials.care-team')
|
|
|
|
|
|
+ <?php $hasPmhxInCanvas = $patient->hasDataInCanvas('pmhx'); ?>
|
|
|
+
|
|
|
{{-- history_medical --}}
|
|
|
- @if($isOldClient)
|
|
|
+ @if($isOldClient && $hasPmhxInCanvas)
|
|
|
<div class="pt-2 mt-2 border-top">
|
|
|
<div class="d-flex align-items-center pb-2">
|
|
|
<h6 class="my-0 font-weight-bold text-secondary">Medical History</h6>
|
|
@@ -284,8 +296,10 @@
|
|
|
<!-- pmhx - point -->
|
|
|
@include('app.patient.point-based-partials.pmhx')
|
|
|
|
|
|
+ <?php $hasPshxInCanvas = $patient->hasDataInCanvas('pshx'); ?>
|
|
|
+
|
|
|
{{-- history_surgical --}}
|
|
|
- @if($isOldClient)
|
|
|
+ @if($isOldClient && $hasPshxInCanvas)
|
|
|
<div class="mt-2 border-top pt-2">
|
|
|
<div class="d-flex align-items-center pb-2">
|
|
|
<h6 class="my-0 font-weight-bold text-secondary">Surgical History</h6>
|
|
@@ -300,8 +314,10 @@
|
|
|
<!-- pshx - point -->
|
|
|
@include('app.patient.point-based-partials.shx')
|
|
|
|
|
|
+ <?php $hasFhxInCanvas = $patient->hasDataInCanvas('fhx'); ?>
|
|
|
+
|
|
|
{{-- history_family --}}
|
|
|
- @if($isOldClient)
|
|
|
+ @if($isOldClient && $hasFhxInCanvas)
|
|
|
<div class="mt-2 border-top pt-2">
|
|
|
<div class="d-flex align-items-center pb-2">
|
|
|
<h6 class="my-0 font-weight-bold text-secondary">Family History</h6>
|
|
@@ -316,8 +332,10 @@
|
|
|
<!-- fhx - point -->
|
|
|
@include('app.patient.point-based-partials.fhx')
|
|
|
|
|
|
+ <?php $hasSochxInCanvas = $patient->hasDataInCanvas('sochx'); ?>
|
|
|
+
|
|
|
{{-- history_social --}}
|
|
|
- @if($isOldClient)
|
|
|
+ @if($isOldClient && $hasSochxInCanvas)
|
|
|
<div class="mt-2 border-top pt-2">
|
|
|
<div class="d-flex align-items-center pb-2">
|
|
|
<h6 class="my-0 font-weight-bold text-secondary">Social History</h6>
|