|
@@ -29,6 +29,7 @@ $ccSegment = $note->getSegmentByInternalName('chief_complaint');
|
|
<div class="mt-3 p-3 border-top min-height-500px" id="problems-center-{{$note->id}}">
|
|
<div class="mt-3 p-3 border-top min-height-500px" id="problems-center-{{$note->id}}">
|
|
<div>
|
|
<div>
|
|
|
|
|
|
|
|
+ @if($patient->core_note_id !== $note->id)
|
|
<div class="d-flex align-items-baseline">
|
|
<div class="d-flex align-items-baseline">
|
|
<div class="mb-2 font-weight-bold font-size-14 text-secondary">Chief Complaint</div>
|
|
<div class="mb-2 font-weight-bold font-size-14 text-secondary">Chief Complaint</div>
|
|
<span class="mx-2 text-secondary">|</span>
|
|
<span class="mx-2 text-secondary">|</span>
|
|
@@ -37,12 +38,15 @@ $ccSegment = $note->getSegmentByInternalName('chief_complaint');
|
|
<textarea rows="3" readonly class="cc-readonly form-control form-control-sm mb-0 bg-light"><?= $ccSegment && @$ccSegment->summary_html ? trim(strip_tags($ccSegment->summary_html)) : '' ?></textarea>
|
|
<textarea rows="3" readonly class="cc-readonly form-control form-control-sm mb-0 bg-light"><?= $ccSegment && @$ccSegment->summary_html ? trim(strip_tags($ccSegment->summary_html)) : '' ?></textarea>
|
|
|
|
|
|
<hr class="m-neg-3 my-3">
|
|
<hr class="m-neg-3 my-3">
|
|
|
|
+ @endif
|
|
|
|
|
|
<div class="mb-2 font-weight-bold font-size-14 text-secondary">Problems</div>
|
|
<div class="mb-2 font-weight-bold font-size-14 text-secondary">Problems</div>
|
|
<table class="table table-sm table-bordered table-striped mb-0 bg-white mb-2">
|
|
<table class="table table-sm table-bordered table-striped mb-0 bg-white mb-2">
|
|
<thead>
|
|
<thead>
|
|
<tr class="">
|
|
<tr class="">
|
|
|
|
+ @if($patient->core_note_id !== $note->id)
|
|
<th class="border-bottom-0 text-secondary text-center width-30px">Rel.</th>
|
|
<th class="border-bottom-0 text-secondary text-center width-30px">Rel.</th>
|
|
|
|
+ @endif
|
|
<th class="border-bottom-0 text-secondary">Name</th>
|
|
<th class="border-bottom-0 text-secondary">Name</th>
|
|
<th class="border-bottom-0 text-secondary">Active?</th>
|
|
<th class="border-bottom-0 text-secondary">Active?</th>
|
|
<th class="border-bottom-0 text-secondary">Edit</th>
|
|
<th class="border-bottom-0 text-secondary">Edit</th>
|
|
@@ -63,6 +67,7 @@ $ccSegment = $note->getSegmentByInternalName('chief_complaint');
|
|
<?php $prevRowRemoved = $problem->is_removed; ?>
|
|
<?php $prevRowRemoved = $problem->is_removed; ?>
|
|
<?php $rel = $problem->relevanceToNote($note); ?>
|
|
<?php $rel = $problem->relevanceToNote($note); ?>
|
|
<tr class="">
|
|
<tr class="">
|
|
|
|
+ @if($patient->core_note_id !== $note->id)
|
|
<td class="text-center">
|
|
<td class="text-center">
|
|
<a href="#" class="toggle-relevance"
|
|
<a href="#" class="toggle-relevance"
|
|
data-relevant="{{$rel ? '1' : '0'}}"
|
|
data-relevant="{{$rel ? '1' : '0'}}"
|
|
@@ -76,6 +81,7 @@ $ccSegment = $note->getSegmentByInternalName('chief_complaint');
|
|
@endif
|
|
@endif
|
|
</a>
|
|
</a>
|
|
</td>
|
|
</td>
|
|
|
|
+ @endif
|
|
<td>
|
|
<td>
|
|
<div class="d-flex align-items-baseline">
|
|
<div class="d-flex align-items-baseline">
|
|
@if($problem->is_removed)
|
|
@if($problem->is_removed)
|
|
@@ -85,8 +91,14 @@ $ccSegment = $note->getSegmentByInternalName('chief_complaint');
|
|
@endif
|
|
@endif
|
|
<div>
|
|
<div>
|
|
<b><?= !!@($problem->data->name) ? @($problem->data->name) : '-' ?></b>
|
|
<b><?= !!@($problem->data->name) ? @($problem->data->name) : '-' ?></b>
|
|
- @if(!$problem->is_removed && $problem->added_in_note_id === $note->id)
|
|
|
|
- <div class="mt-1 text-sm text-secondary">Added during this visit
|
|
|
|
|
|
+ @if($problem->added_in_note_id === $note->id)
|
|
|
|
+ <div class="mt-1 text-sm text-secondary">
|
|
|
|
+ Added
|
|
|
|
+ @if($patient->core_note_id !== $note->id)
|
|
|
|
+ during this visit
|
|
|
|
+ @else
|
|
|
|
+ from the patient's chart
|
|
|
|
+ @endif
|
|
@if($problem->addition_reason_category === 'ON_INTAKE')
|
|
@if($problem->addition_reason_category === 'ON_INTAKE')
|
|
(existing)
|
|
(existing)
|
|
@elseif($problem->addition_reason_category === 'DURING_VISIT')
|
|
@elseif($problem->addition_reason_category === 'DURING_VISIT')
|
|
@@ -95,7 +107,14 @@ $ccSegment = $note->getSegmentByInternalName('chief_complaint');
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endif
|
|
@if($problem->is_removed && $problem->removed_in_note_id === $note->id)
|
|
@if($problem->is_removed && $problem->removed_in_note_id === $note->id)
|
|
- <div class="mt-1 text-sm text-secondary">Removed during this visit</div>
|
|
|
|
|
|
+ <div class="mt-1 text-sm text-secondary">
|
|
|
|
+ Removed
|
|
|
|
+ @if($patient->core_note_id !== $note->id)
|
|
|
|
+ during this visit
|
|
|
|
+ @else
|
|
|
|
+ from the patient's chart
|
|
|
|
+ @endif
|
|
|
|
+ </div>
|
|
@endif
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -161,7 +180,11 @@ $ccSegment = $note->getSegmentByInternalName('chief_complaint');
|
|
<p class="mb-1 font-weight-bold">
|
|
<p class="mb-1 font-weight-bold">
|
|
{{ @$problem->data->name }}
|
|
{{ @$problem->data->name }}
|
|
</p>
|
|
</p>
|
|
- <div class="text-secondary text-sm">Clinical details cannot be modified since the problem was added prior to this visit.</div>
|
|
|
|
|
|
+ @if($patient->core_note_id !== $note->id)
|
|
|
|
+ <div class="text-secondary text-sm">Clinical details cannot be modified since the problem was added prior to this visit.</div>
|
|
|
|
+ @else
|
|
|
|
+ <div class="text-secondary text-sm">Clinical details cannot be modified since the problem was added on a previous visit.</div>
|
|
|
|
+ @endif
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@endif
|
|
@endif
|