Explorar o código

Typical day/ls - no impression and plan

Vijayakrishnan %!s(int64=3) %!d(string=hai) anos
pai
achega
41a62d8cae

+ 0 - 14
resources/views/app/patient/module-specific-summary-renderers/typical_day_lifestyle/subjective.blade.php

@@ -40,24 +40,10 @@ use App\Models\Segment;
 
                     @if(@$contentData["lines"] && count($contentData["lines"]))
                         <table class="table table-sm table-bordered mb-3">
-                            <thead class="bg-light">
-                            <tr>
-                                <th class="border-bottom-0 text-secondary">Subjective</th>
-                                <th class="border-bottom-0 text-secondary w-50">Impression & Plan</th>
-                            </tr>
-                            </thead>
                             <tbody>
                             @foreach(@$contentData["lines"] as $line)
                                 <tr>
                                     <td><pre class="m-0">{{$line['S']}}&nbsp;</pre></td>
-                                    <td>
-                                        <div class="d-flex align-items-baseline">
-                                            @if(@$line['I'])
-                                                <b class="mr-2">{{$line['I']}}</b>
-                                            @endif
-                                            <pre class="m-0">{{$line['P']}}&nbsp;</pre>
-                                        </div>
-                                    </td>
                                 </tr>
                             @endforeach
                             </tbody>

+ 3 - 15
resources/views/app/patient/segment-templates/typical_day_lifestyle/edit.blade.php

@@ -31,7 +31,7 @@ if ($point->lastChildReview && $point->lastChildReview->data) {
 }
 ?>
 
-<div visit-moe no-auto-save close-on-save close-on-cancel class="d-block p-3" id="typical_day_lifestyle-{{$note->id}}">
+<div visit-moe no-auto-save close-on-save close-on-cancel class="d-block" id="typical_day_lifestyle-{{$note->id}}">
     <form show url="/api/visitPoint/upsertChildReview" class="mcp-theme-1 frm-upsert-review-typical-day-ls">
         <input type="hidden" name="uid" value="<?= $point->uid ?>">
         <input type="hidden" name="noteUid" value="<?= $note->uid ?>">
@@ -41,21 +41,11 @@ if ($point->lastChildReview && $point->lastChildReview->data) {
         <p class="mb-2 font-weight-bold">Typical Day</p>
 
         <table class="table table-sm table-bordered mb-2 stag-sheet allow-row-addition mb-3" lines>
-            <thead class="bg-light">
-            <tr>
-                <th class="border-bottom-0 text-secondary width-30px"></th>
-                <th class="border-bottom-0 text-secondary">Subjective</th>
-                <th class="border-bottom-0 text-secondary width-100px">Impression</th>
-                <th class="border-bottom-0 text-secondary w-50">Plan</th>
-            </tr>
-            </thead>
             <tbody>
                 @foreach(@$contentData["lines"] as $line)
                     <tr>
-                        <td class="align-middle text-center bg-light"><a href="#" class="delete-line"><i class="fa fa-trash-alt on-hover-opaque text-danger"></i></a></td>
+                        <td class="align-middle text-center bg-light width-30px"><a href="#" class="delete-line"><i class="fa fa-trash-alt on-hover-opaque text-danger"></i></a></td>
                         <td><textarea rows="1" key="S">{{@$line['S']}}</textarea></td>
-                        <td><textarea rows="1" key="I">{{@$line['I']}}</textarea></td>
-                        <td><textarea rows="1" key="P">{{@$line['P']}}</textarea></td>
                     </tr>
                 @endforeach
             </tbody>
@@ -139,9 +129,7 @@ if ($point->lastChildReview && $point->lastChildReview->data) {
 
             function newRow() {
                 return $('<tr><td class="align-middle text-center bg-light"><a href="#" class="delete-line"><i class="fa fa-trash-alt on-hover-opaque text-danger"></i></a></td>' +
-                    '<td><textarea rows="1" key="S"></textarea></td>' +
-                    '<td><textarea rows="1" key="I"></textarea></td>' +
-                    '<td><textarea rows="1" key="P"></textarea></td></tr>');
+                    '<td><textarea rows="1" key="S"></textarea></td></tr>');
             }
 
             function createAndMoveToNextRowInput(_td) {

+ 0 - 7
resources/views/app/patient/segment-templates/typical_day_lifestyle/log.blade.php

@@ -17,17 +17,10 @@ if($point) {
                 <p class="mb-2 font-weight-bold">Typical Day</p>
                 @if(@$contentData["lines"] && count($contentData["lines"]))
                     <table class="table table-sm table-bordered mb-3">
-                        <thead class="bg-light">
-                        <tr>
-                            <th class="border-bottom-0 text-secondary">Subjective</th>
-                            <th class="border-bottom-0 text-secondary w-50">Impression & Plan</th>
-                        </tr>
-                        </thead>
                         <tbody>
                         @foreach(@$contentData["lines"] as $line)
                             <tr>
                                 <td><pre class="m-0">{{$line['S']}}</pre></td>
-                                <td><pre class="m-0">{{$line['P']}}</pre></td>
                             </tr>
                         @endforeach
                         </tbody>

+ 1 - 15
resources/views/app/patient/segment-templates/typical_day_lifestyle/summary.blade.php

@@ -35,7 +35,7 @@ if ($point->lastChildReview && $point->lastChildReview->data) {
 $hasTypicalDayData = false;
 if(@$contentData["lines"] && count($contentData["lines"])) {
     foreach(@$contentData["lines"] as $line) {
-        if(!!@$line['S'] && (!!@$line['I'] || !!@$line['P'])) {
+        if(!!@$line['S']) {
             $hasTypicalDayData = true;
             break;
         }
@@ -56,25 +56,11 @@ $hasDailyAggregates = (
     @if($hasTypicalDayData)
         <div class="mb-1 font-weight-bold">Typical Day</div>
         <table class="table table-sm table-bordered mb-3">
-            <thead class="bg-light">
-            <tr>
-                <th class="border-bottom-0 text-secondary">Subjective</th>
-                <th class="border-bottom-0 text-secondary w-50">Impression & Plan</th>
-            </tr>
-            </thead>
             <tbody>
             @foreach(@$contentData["lines"] as $line)
                 @if($line['S'])
                 <tr>
                     <td><pre class="m-0">{{$line['S']}}&nbsp;</pre></td>
-                    <td>
-                        <div class="d-flex align-items-baseline">
-                            @if(@$line['I'])
-                                <b class="mr-2">{{$line['I']}}</b>
-                            @endif
-                            <pre class="m-0">{{$line['P']}}&nbsp;</pre>
-                        </div>
-                    </td>
                 </tr>
                 @endif
             @endforeach