Эх сурвалжийг харах

Omega - all wizard driven segments

Vijayakrishnan 3 жил өмнө
parent
commit
9c67577c26

+ 12 - 6
resources/views/app/patient/note/dashboard_script.blade.php

@@ -120,36 +120,42 @@
                         // TEMP: show wizard for allergies, rx, dx, goals
                         if(editParent.is('[data-segment-template-name="plan_allergies"]') ||
                             editParent.is('[data-segment-template-name="intake_allergies"]') ||
-                            editParent.is('[data-segment-template-name="allergies"]')) {
+                            editParent.is('[data-segment-template-name="allergies"]') ||
+                            editParent.is('[data-segment-template-name="omega_allergies"]')) {
                             $('.note-bottom-toolbar .allergies-center-trigger').trigger('click');
                             return false;
                         }
                         else if(editParent.is('[data-segment-template-name="plan_problems"]') ||
                             editParent.is('[data-segment-template-name="intake_problems"]') ||
-                            editParent.is('[data-segment-template-name="problems"]')) {
+                            editParent.is('[data-segment-template-name="problems"]') ||
+                            editParent.is('[data-segment-template-name="omega_problems"]')) {
                             $('.note-bottom-toolbar .problems-center-trigger').trigger('click');
                             return false;
                         }
                         else if(editParent.is('[data-segment-template-name="plan_medications"]') ||
                             editParent.is('[data-segment-template-name="intake_medications"]') ||
-                            editParent.is('[data-segment-template-name="medications"]')) {
+                            editParent.is('[data-segment-template-name="medications"]') ||
+                            editParent.is('[data-segment-template-name="omega_medications"]')) {
                             $('.note-bottom-toolbar .medications-center-trigger').trigger('click');
                             return false;
                         }
                         else if(editParent.is('[data-segment-template-name="plan_goals"]') ||
                             editParent.is('[data-segment-template-name="intake_goals"]') ||
-                            editParent.is('[data-segment-template-name="goals"]')) {
+                            editParent.is('[data-segment-template-name="goals"]') ||
+                            editParent.is('[data-segment-template-name="omega_goals"]')) {
                             $('.note-bottom-toolbar .goals-center-trigger').trigger('click');
                             return false;
                         }
                         else if(editParent.is('[data-segment-template-name="plan_care_team"]') ||
                             editParent.is('[data-segment-template-name="intake_care_team"]') ||
-                            editParent.is('[data-segment-template-name="care_team"]')) {
+                            editParent.is('[data-segment-template-name="care_team"]') ||
+                            editParent.is('[data-segment-template-name="omega_care_team"]')) {
                             $('.note-bottom-toolbar .careteam-center-trigger').trigger('click');
                             return false;
                         }
                         else if(editParent.is('[data-segment-template-name="plan_supplements"]') ||
-                            editParent.is('[data-segment-template-name="intake_supplements"]')) {
+                            editParent.is('[data-segment-template-name="intake_supplements"]') ||
+                            editParent.is('[data-segment-template-name="omega_supplements"]')) {
                             $('.note-bottom-toolbar .supplements-center-trigger').trigger('click');
                             return false;
                         }

+ 2 - 0
resources/views/app/patient/problems-center.blade.php

@@ -14,6 +14,7 @@ list($problems, $counts) = Point::getPointsOfCategoryExtended($patient, 'PROBLEM
 if(!@$summaryView) {
     $ccSegment = $note->getSegmentByInternalName('chief_complaint');
     $ccSegment = $ccSegment ?? $note->getSegmentByInternalName('mc_cc');
+    $ccSegment = $ccSegment ?? $note->getSegmentByInternalName('omega_cc');
     $favorites = $pro->favoritesByCategoryDecoded('problem');
     function isFavoriteProblem($_problem, $_favorites) {
         foreach($_favorites as $favorite) {
@@ -36,6 +37,7 @@ if(!@$summaryView) {
 
         <?php
         $segment = $note->getSegmentByInternalName('chief_complaint');
+        if(!$segment) $segment = $note->getSegmentByInternalName('omega_cc');
         $ccPoint = Point::where('added_in_note_id', $note->id)->where('category', 'CHIEF_COMPLAINT')->orderBy('id', 'DESC')->first();
         $parsed = null;
         if ($ccPoint && !!@$ccPoint->data) {

+ 0 - 1
resources/views/app/patient/segment-templates/omega_allergies/edit.blade.php

@@ -1 +0,0 @@
-<h1>omega_allergies</h1>

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

@@ -1 +1 @@
-<h1>omega_allergies</h1>
+@include('app.patient.allergies-center', ['patient' => $patient, 'note' => $note, 'summaryView' => true])

+ 0 - 1
resources/views/app/patient/segment-templates/omega_care_team/edit.blade.php

@@ -1 +0,0 @@
-<h1>omega_care_team</h1>

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

@@ -1 +1 @@
-<h1>omega_care_team</h1>
+@include('app.patient.careteam-center', ['patient' => $patient, 'note' => $note, 'summaryView' => true])

+ 0 - 1
resources/views/app/patient/segment-templates/omega_goals/edit.blade.php

@@ -1 +0,0 @@
-<h1>omega_goals</h1>

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

@@ -1 +1 @@
-<h1>omega_goals</h1>
+@include('app.patient.goals-center', ['patient' => $patient, 'note' => $note, 'summaryView' => true])

+ 0 - 1
resources/views/app/patient/segment-templates/omega_medications/edit.blade.php

@@ -1 +0,0 @@
-<h1>omega_medications</h1>

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

@@ -1 +1 @@
-<h1>omega_medications</h1>
+@include('app.patient.medications-center', ['patient' => $patient, 'note' => $note, 'summaryView' => true])

+ 0 - 1
resources/views/app/patient/segment-templates/omega_problems/edit.blade.php

@@ -1 +0,0 @@
-<h1>omega_problems</h1>

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

@@ -1 +1 @@
-<h1>omega_problems</h1>
+@include('app.patient.problems-center', ['patient' => $patient, 'note' => $note, 'summaryView' => true])

+ 4 - 1
resources/views/app/patient/segment-templates/omega_subjective_free_text/edit.blade.php

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

+ 3 - 1
resources/views/app/patient/segment-templates/omega_subjective_free_text/summary.blade.php

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