Quellcode durchsuchen

Note UI updates

Vijayakrishnan vor 3 Jahren
Ursprung
Commit
4c89256525

+ 15 - 0
config/app.php

@@ -251,4 +251,19 @@ return [
 
     ],
 
+    'note_lhs_segments' => [
+        'informed_consent',
+        'vitals',
+        'chief_complaint',
+        'subjective_general',
+        'objective_free_text',
+        'plan_free_text',
+        'assessment_free_text',
+        'disclaimers'
+    ],
+
+    'note_rhs_segments' => [
+
+    ]
+
 ];

+ 1 - 1
resources/views/app/patient/note/dashboard.blade.php

@@ -531,7 +531,7 @@
                         $shortcuts = "";
                         $latestSectionTS = 0;
                         ?>
-                        <div class="{{ $note->is_signed_by_hcp ? 'note-signed-by-hcp' : '' }} flex-grow-1">
+                        <div class="{{ $note->is_signed_by_hcp ? 'note-signed-by-hcp' : '' }} w-50">
                             @if($isVisitTemplateBased && $doesVisitTemplateLayoutExist)
                                 @include($visitLayoutPath)
                             @elseif($isVisitTemplateBased && !$doesVisitTemplateUiConfigExist)

+ 1 - 1
resources/views/app/patient/note/note-segment-list.blade.php

@@ -23,7 +23,7 @@
             $previousHeading = $segment->heading;
         }
         ?>
-        <div class="{{$segment->segmentTemplate->internal_name === 'medrisk_vigilence' ? 'd-none' : ''}}">
+        <div class="{{in_array($segment->segmentTemplate->internal_name, config('app.note_lhs_segments')) ? '' : 'd-none'}}">
             @include('app.patient.note.segment')
         </div>
     @endforeach

+ 4 - 0
resources/views/app/patient/segment-templates/assessment_free_text/edit.blade.php

@@ -0,0 +1,4 @@
+<?php
+$category = 'ASSESSMENT_FREE_TEXT';
+$endPoint = 'upsertNoteSingleton';
+include resource_path('views/app/patient/segment-templates/_simple_text_segment/edit.php');

+ 3 - 0
resources/views/app/patient/segment-templates/assessment_free_text/summary.blade.php

@@ -0,0 +1,3 @@
+<?php
+$category = 'ASSESSMENT_FREE_TEXT';
+include resource_path('views/app/patient/segment-templates/_simple_text_segment/summary.php');