Selaa lähdekoodia

note implementation

= 3 vuotta sitten
vanhempi
commit
800a5d8e5d
86 muutettua tiedostoa jossa 280 lisäystä ja 1 poistoa
  1. 23 0
      app/Http/Controllers/NoteController.php
  2. 7 0
      app/Models/Note.php
  3. 11 0
      app/Models/Point.php
  4. 5 0
      app/Models/Pro.php
  5. 22 0
      app/Models/Segment.php
  6. 11 0
      app/Models/SegmentTemplate.php
  7. 10 0
      app/Models/VisitTemplate.php
  8. 1 1
      resources/views/app/patient/note/dashboard.blade.php
  9. 3 0
      resources/views/app/patient/note/note-segment-list.blade.php
  10. 24 0
      resources/views/app/patient/note/segment.blade.php
  11. 55 0
      resources/views/app/patient/notes.blade.php
  12. 22 0
      resources/views/app/patient/segment-templates/chief_complaint/edit.php
  13. 12 0
      resources/views/app/patient/segment-templates/chief_complaint/summary.php
  14. 1 0
      resources/views/app/patient/segment-templates/history_family/edit.php
  15. 1 0
      resources/views/app/patient/segment-templates/history_family/summary.php
  16. 1 0
      resources/views/app/patient/segment-templates/history_screenings/edit.php
  17. 1 0
      resources/views/app/patient/segment-templates/history_screenings/summary.php
  18. 1 0
      resources/views/app/patient/segment-templates/history_social/edit.php
  19. 1 0
      resources/views/app/patient/segment-templates/history_social/summary.php
  20. 1 0
      resources/views/app/patient/segment-templates/history_surgical/edit.php
  21. 1 0
      resources/views/app/patient/segment-templates/history_surgical/summary.php
  22. 1 0
      resources/views/app/patient/segment-templates/intake_allergies/edit.php
  23. 1 0
      resources/views/app/patient/segment-templates/intake_allergies/summary.php
  24. 1 0
      resources/views/app/patient/segment-templates/intake_care_team/edit.php
  25. 1 0
      resources/views/app/patient/segment-templates/intake_care_team/summary.php
  26. 1 0
      resources/views/app/patient/segment-templates/intake_goals/edit.php
  27. 1 0
      resources/views/app/patient/segment-templates/intake_goals/summary.php
  28. 1 0
      resources/views/app/patient/segment-templates/intake_interventions/edit.php
  29. 1 0
      resources/views/app/patient/segment-templates/intake_interventions/summary.php
  30. 1 0
      resources/views/app/patient/segment-templates/intake_medications/edit.php
  31. 1 0
      resources/views/app/patient/segment-templates/intake_medications/summary.php
  32. 1 0
      resources/views/app/patient/segment-templates/intake_problems/edit.php
  33. 1 0
      resources/views/app/patient/segment-templates/intake_problems/summary.php
  34. 1 0
      resources/views/app/patient/segment-templates/lifestyle_general/edit.php
  35. 1 0
      resources/views/app/patient/segment-templates/lifestyle_general/summary.php
  36. 1 0
      resources/views/app/patient/segment-templates/lifestyle_nutrition/edit.php
  37. 1 0
      resources/views/app/patient/segment-templates/lifestyle_nutrition/summary.php
  38. 1 0
      resources/views/app/patient/segment-templates/lifestyle_physical_activity/edit.php
  39. 1 0
      resources/views/app/patient/segment-templates/lifestyle_physical_activity/summary.php
  40. 1 0
      resources/views/app/patient/segment-templates/lifestyle_sleep/edit.php
  41. 1 0
      resources/views/app/patient/segment-templates/lifestyle_sleep/summary.php
  42. 1 0
      resources/views/app/patient/segment-templates/lifestyle_social/edit.php
  43. 1 0
      resources/views/app/patient/segment-templates/lifestyle_social/summary.php
  44. 1 0
      resources/views/app/patient/segment-templates/lifestyle_stress/edit.php
  45. 1 0
      resources/views/app/patient/segment-templates/lifestyle_stress/summary.php
  46. 1 0
      resources/views/app/patient/segment-templates/lifestyle_substances/edit.php
  47. 1 0
      resources/views/app/patient/segment-templates/lifestyle_substances/summary.php
  48. 1 0
      resources/views/app/patient/segment-templates/medrisk_vigilence/edit.php
  49. 1 0
      resources/views/app/patient/segment-templates/medrisk_vigilence/summary.php
  50. 1 0
      resources/views/app/patient/segment-templates/metrics/edit.php
  51. 1 0
      resources/views/app/patient/segment-templates/metrics/summary.php
  52. 1 0
      resources/views/app/patient/segment-templates/objective_free_text/edit.php
  53. 1 0
      resources/views/app/patient/segment-templates/objective_free_text/summary.php
  54. 1 0
      resources/views/app/patient/segment-templates/objective_imaging/edit.php
  55. 1 0
      resources/views/app/patient/segment-templates/objective_imaging/summary.php
  56. 1 0
      resources/views/app/patient/segment-templates/objective_labs/edit.php
  57. 1 0
      resources/views/app/patient/segment-templates/objective_labs/summary.php
  58. 1 0
      resources/views/app/patient/segment-templates/objective_measurements/edit.php
  59. 1 0
      resources/views/app/patient/segment-templates/objective_measurements/summary.php
  60. 1 0
      resources/views/app/patient/segment-templates/objective_other_investigations/edit.php
  61. 1 0
      resources/views/app/patient/segment-templates/objective_other_investigations/summary.php
  62. 1 0
      resources/views/app/patient/segment-templates/past_medical_history/edit.php
  63. 1 0
      resources/views/app/patient/segment-templates/past_medical_history/summary.php
  64. 1 0
      resources/views/app/patient/segment-templates/plan_allergies/edit.php
  65. 1 0
      resources/views/app/patient/segment-templates/plan_allergies/summary.php
  66. 1 0
      resources/views/app/patient/segment-templates/plan_care_team/edit.php
  67. 1 0
      resources/views/app/patient/segment-templates/plan_care_team/summary.php
  68. 1 0
      resources/views/app/patient/segment-templates/plan_free_text/edit.php
  69. 1 0
      resources/views/app/patient/segment-templates/plan_free_text/summary.php
  70. 1 0
      resources/views/app/patient/segment-templates/plan_goals/edit.php
  71. 1 0
      resources/views/app/patient/segment-templates/plan_goals/summary.php
  72. 1 0
      resources/views/app/patient/segment-templates/plan_interventions/edit.php
  73. 1 0
      resources/views/app/patient/segment-templates/plan_interventions/summary.php
  74. 1 0
      resources/views/app/patient/segment-templates/plan_medications/edit.php
  75. 1 0
      resources/views/app/patient/segment-templates/plan_medications/summary.php
  76. 1 0
      resources/views/app/patient/segment-templates/plan_medrisk_education/edit.php
  77. 1 0
      resources/views/app/patient/segment-templates/plan_medrisk_education/summary.php
  78. 1 0
      resources/views/app/patient/segment-templates/plan_problems/edit.php
  79. 1 0
      resources/views/app/patient/segment-templates/plan_problems/summary.php
  80. 1 0
      resources/views/app/patient/segment-templates/ros/edit.php
  81. 1 0
      resources/views/app/patient/segment-templates/ros/summary.php
  82. 1 0
      resources/views/app/patient/segment-templates/subjective_general/edit.php
  83. 1 0
      resources/views/app/patient/segment-templates/subjective_general/summary.php
  84. 1 0
      resources/views/app/patient/segment-templates/vitals/edit.php
  85. 1 0
      resources/views/app/patient/segment-templates/vitals/summary.php
  86. 2 0
      routes/web.php

+ 23 - 0
app/Http/Controllers/NoteController.php

@@ -14,6 +14,8 @@ use App\Models\Note;
 use App\Models\Client;
 use App\Models\Section;
 use App\Models\SectionTemplate;
+use App\Models\Segment;
+use App\Models\SegmentTemplate;
 
 class NoteController extends Controller
 {
@@ -80,6 +82,27 @@ class NoteController extends Controller
             compact('patient', 'note', 'section', 'page'));
     }
 
+    public function getHtmlForSegment($segmentUid){
+        
+        $segment = Segment::where('uid', $segmentUid)->first();
+        $segmentTemplate = $segment->segmentTemplate;
+
+        ob_start();
+        include(resource_path('views/app/patient/segment-templates/' . $segmentTemplate->internal_name . '/summary.php'));
+        $summaryHtml = ob_get_contents();
+        ob_end_clean();
+
+        ob_start();
+        include(resource_path('views/app/patient/segment-templates/' . $segmentTemplate->internal_name . '/edit.php'));
+        $editHtml = ob_get_contents();
+        ob_end_clean();
+
+        return response()->json([
+            'summaryHtml' => $summaryHtml,
+            'editHtml' => $editHtml
+        ]);
+    }
+
     // JAVA ONLY
     // ... if hcpProId is passed, get from request
     public function getDefaultValueForSection($patientID, $sectionTemplateID)

+ 7 - 0
app/Models/Note.php

@@ -57,6 +57,13 @@ class Note extends Model
             ->orderBy('position_index', 'asc');
     }
 
+    public function segments()
+    {
+        return $this->hasMany(Segment::class, 'note_id', 'id')
+            ->where('is_active', true)
+            ->orderBy('position_index', 'asc');
+    }
+
     public function reasons()
     {
         return $this->hasMany(NoteReason::class, 'note_id', 'id');

+ 11 - 0
app/Models/Point.php

@@ -0,0 +1,11 @@
+<?php
+
+namespace App\Models;
+
+# use Illuminate\Database\Eloquent\Model;
+
+class Point extends Model
+{
+    protected $table = 'point';
+
+}

+ 5 - 0
app/Models/Pro.php

@@ -121,6 +121,11 @@ class Pro extends Model
             ->orderBy('position_index', 'asc');
     }
 
+    public function visitTemplates() {
+        //TODO: use visit access
+        return VisitTemplate::all();
+    }
+
     public function currentWork() {
         return ProClientWork::where('pro_id', $this->id)->where('is_active', true)->first();
     }

+ 22 - 0
app/Models/Segment.php

@@ -0,0 +1,22 @@
+<?php
+
+namespace App\Models;
+
+# use Illuminate\Database\Eloquent\Model;
+
+class Segment extends Model
+{
+    protected $table = 'segment';
+
+    public function segmentTemplate() {
+        return $this->hasOne(SegmentTemplate::class, 'id', 'segment_template_id');
+    }
+
+    public function note() {
+        return $this->hasOne(Note::class, 'id', 'note_id');
+    }
+
+    public function client() {
+        return $this->hasOne(Section::class, 'id', 'client_id');
+    }
+}

+ 11 - 0
app/Models/SegmentTemplate.php

@@ -0,0 +1,11 @@
+<?php
+
+namespace App\Models;
+
+# use Illuminate\Database\Eloquent\Model;
+
+class SegmentTemplate extends Model
+{
+    protected $table = 'segment_template';
+
+}

+ 10 - 0
app/Models/VisitTemplate.php

@@ -0,0 +1,10 @@
+<?php
+
+namespace App\Models;
+
+# use Illuminate\Database\Eloquent\Model;
+
+class VisitTemplate extends Model
+{
+    protected $table = 'visit_template';
+}

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

@@ -460,7 +460,7 @@
                         $latestSectionTS = 0;
                         ?>
                         <div class="{{ $note->is_signed_by_hcp ? 'note-signed-by-hcp' : '' }}">
-                        @include('app.patient.note.note-section-list')
+                            @include('app.patient.note.note-segment-list')
                         </div>
                     </div>
                 </div>

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

@@ -0,0 +1,3 @@
+@foreach($note->segments as $segment)
+@include('app.patient.note.segment')
+@endforeach

+ 24 - 0
resources/views/app/patient/note/segment.blade.php

@@ -0,0 +1,24 @@
+<div class="border">
+    {!! $segment->summary_html !!}
+    {!! $segment->edit_html !!}
+
+
+    <div moe>
+		<a href="" start show class="btn btn-sm btn-outline-primary">
+			Refresh
+		</a>
+		<form url="api/visit/updateSegmentHtml" class="mcp-theme-1">
+			<input type="hidden" name="segmentUid" value="<?= $segment->uid ?>">
+			<p>Are you sure?</p>
+			<div>
+				<button submit class="btn btn-sm btn-primary mr-2">
+					Submit
+				</button>
+				<button cancel class="btn btn-sm btn-default border">
+					Cancel
+				</button>
+			</div>
+		</form>
+	</div>
+
+</div>

+ 55 - 0
resources/views/app/patient/notes.blade.php

@@ -100,6 +100,61 @@
                     </div>
                 </form>
             </div>
+            <div moe>
+                <a start show class="py-0 mb-3">Add Visit</a>
+                <form url="/api/visit/create"
+                      redir="/patients/view/{{$patient->uid}}/notes/view/[data]"
+                      class="mcp-theme-1">
+                    <input type="hidden" name="clientUid" value="{{$patient->uid}}">
+                    @if($pro->is_hcp)
+                    <input type="hidden" name="hcpProUid" value="{{$pro->uid}}">
+                    @else
+                    <input type="hidden" name="naProUid" value="{{$pro->uid}}">
+                    @endif
+                    <input type="hidden" name="effectiveDate" value="{{date("Y-m-d")}}">
+                    <input type="hidden" name="effectiveTime" value="{{date("h:i")}}">
+                    <input type="text" class="form-control form-control-sm" placeholder="title" name="title" id="note-create-title" value="">
+                    <div class="form-group mb-2">
+                        <label for="" class="text-secondary text-sm mb-1">Note Template *</label>
+                        <select name="visitTemplateUid" class="form-control form-control-sm"
+                                onchange="$('#note-create-title').val($(this).find('option:selected').text())"
+                                required>
+                            <option value=""> --select--</option>
+                            @foreach($pro->visitTemplates() as $visitTemplate)
+                                <option value="{{$visitTemplate->uid}}">{{$visitTemplate->title}}</option>
+                            @endforeach
+                        </select>
+                    </div>
+                    <div class="mb-2">
+                        <label for="" class="text-secondary text-sm mb-1">New/Fu</label>
+                        <select name="newOrFuOrNa" class="form-control form-control-sm note-method-select" required>
+                            <option value="NEW">New</option>
+                            <option value="FU">Follow-Up</option>
+                        </select>
+                    </div>
+                    <div class="mb-2">
+                        <label for="" class="text-secondary text-sm mb-1">Method *</label>
+                        <select name="noteContactMethod" class="form-control form-control-sm note-method-select" required>
+                            <option value="AUDIO">Audio</option>
+                            <option value="VIDEO">Video</option>
+                            <option value="IN_CLINIC">In-Clinic</option>
+                            <option value="HOUSE_CALL">House Call</option>
+                        </select>
+                    </div>
+                    <div class="form-group if-in-clinic">
+                        <label for="" class="text-secondary text-sm mb-1">Location</label>
+                        <select name="hcpCompanyLocationUid" class="form-control">
+                            <option value=""></option>
+                            @foreach($pro->companyLocations() as $location)
+                                <option value="{{$location->uid}}">{{$location->line1}} {{$location->city}}</option>
+                            @endforeach
+                        </select>
+                    </div>
+                    <div class="form-group m-0">
+                        <button submit class="btn btn-primary btn-sm">submit</button>
+                    </div>
+                </form>
+            </div>
             <select class="ml-auto max-width-300px form-control form-control-sm"
                     onchange="fastLoad('/patients/view/{{$patient->uid}}/notes/' + this.value, true, false, false)">
                 <option value="active" {{ $filter === 'active' ? 'selected' : '' }}>Active notes</option>

+ 22 - 0
resources/views/app/patient/segment-templates/chief_complaint/edit.php

@@ -0,0 +1,22 @@
+<div>
+<h1>Edit for chief_complaint</h1>
+	<div moe>
+		<a href="" start show class="btn btn-primary font-weight-bold text-white">
+			Update
+		</a>
+		<form url="api/visitPoint/upsertNoteSingleton" class="mcp-theme-1">
+			<input type="hidden" name="segmentUid" value="<?= $segment->uid ?>">
+			<input type="hidden" name="category" value="CHIEF_COMPLAINT">
+			<input type="hidden" name="data">
+			<textarea name="additionReasonMemo" cols="30" rows="10" class="form-control"></textarea>
+			<div>
+				<button submit class="btn btn-sm btn-primary mr-2">
+					Submit
+				</button>
+				<button cancel class="btn btn-sm btn-default border">
+					Cancel
+				</button>
+			</div>
+		</form>
+	</div>
+</div>

+ 12 - 0
resources/views/app/patient/segment-templates/chief_complaint/summary.php

@@ -0,0 +1,12 @@
+<?php
+
+use App\Models\Point;
+
+$point = Point::where('added_in_segment_id', $segment->id)->where('category', 'CHIEF_COMPLAINT')->first();
+?>
+<div>
+	<h1>Summary for Chief Complaint</h1>
+	<div>
+		<?= $point->addition_reason_memo ?>
+	</div>
+</div>

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

@@ -0,0 +1 @@
+<h1>Edit for history_family</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/history_family/summary.php

@@ -0,0 +1 @@
+<h1>Summary for history_family</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for history_screenings</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/history_screenings/summary.php

@@ -0,0 +1 @@
+<h1>Summary for history_screenings</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for history_social</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/history_social/summary.php

@@ -0,0 +1 @@
+<h1>Summary for history_social</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for history_surgical</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/history_surgical/summary.php

@@ -0,0 +1 @@
+<h1>Summary for history_surgical</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for intake_allergies</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/intake_allergies/summary.php

@@ -0,0 +1 @@
+<h1>Summary for intake_allergies</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for intake_care_team</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/intake_care_team/summary.php

@@ -0,0 +1 @@
+<h1>Summary for intake_care_team</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for intake_goals</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/intake_goals/summary.php

@@ -0,0 +1 @@
+<h1>Summary for intake_goals</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for intake_interventions</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/intake_interventions/summary.php

@@ -0,0 +1 @@
+<h1>Summary for intake_interventions</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for intake_medications</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/intake_medications/summary.php

@@ -0,0 +1 @@
+<h1>Summary for intake_medications</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for intake_problems</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/intake_problems/summary.php

@@ -0,0 +1 @@
+<h1>Summary for intake_problems</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for lifestyle_general</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/lifestyle_general/summary.php

@@ -0,0 +1 @@
+<h1>Summary for lifestyle_general</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for lifestyle_nutrition</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/lifestyle_nutrition/summary.php

@@ -0,0 +1 @@
+<h1>Summary for lifestyle_nutrition</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for lifestyle_physical_activity</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/lifestyle_physical_activity/summary.php

@@ -0,0 +1 @@
+<h1>Summary for lifestyle_physical_activity</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for lifestyle_sleep</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/lifestyle_sleep/summary.php

@@ -0,0 +1 @@
+<h1>Summary for lifestyle_sleep</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for lifestyle_social</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/lifestyle_social/summary.php

@@ -0,0 +1 @@
+<h1>Summary for lifestyle_social</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for lifestyle_stress</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/lifestyle_stress/summary.php

@@ -0,0 +1 @@
+<h1>Summary for lifestyle_stress</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for lifestyle_substances</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/lifestyle_substances/summary.php

@@ -0,0 +1 @@
+<h1>Summary for lifestyle_substances</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for medrisk_vigilence</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/medrisk_vigilence/summary.php

@@ -0,0 +1 @@
+<h1>Summary for medrisk_vigilence</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for metrics</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/metrics/summary.php

@@ -0,0 +1 @@
+<h1>Summary for metrics</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for objective_free_text</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/objective_free_text/summary.php

@@ -0,0 +1 @@
+<h1>Summary for objective_free_text</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for objective_imaging</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/objective_imaging/summary.php

@@ -0,0 +1 @@
+<h1>Summary for objective_imaging</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for objective_labs</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/objective_labs/summary.php

@@ -0,0 +1 @@
+<h1>Summary for objective_labs</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for objective_measurements</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/objective_measurements/summary.php

@@ -0,0 +1 @@
+<h1>Summary for objective_measurements</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for objective_other_investigations</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/objective_other_investigations/summary.php

@@ -0,0 +1 @@
+<h1>Summary for objective_other_investigations</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for past_medical_history</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/past_medical_history/summary.php

@@ -0,0 +1 @@
+<h1>Summary for past_medical_history</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for plan_allergies</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/plan_allergies/summary.php

@@ -0,0 +1 @@
+<h1>Summary for plan_allergies</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for plan_care_team</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/plan_care_team/summary.php

@@ -0,0 +1 @@
+<h1>Summary for plan_care_team</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for plan_free_text</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/plan_free_text/summary.php

@@ -0,0 +1 @@
+<h1>Summary for plan_free_text</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for plan_goals</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/plan_goals/summary.php

@@ -0,0 +1 @@
+<h1>Summary for plan_goals</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for plan_interventions</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/plan_interventions/summary.php

@@ -0,0 +1 @@
+<h1>Summary for plan_interventions</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for plan_medications</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/plan_medications/summary.php

@@ -0,0 +1 @@
+<h1>Summary for plan_medications</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for plan_medrisk_education</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/plan_medrisk_education/summary.php

@@ -0,0 +1 @@
+<h1>Summary for plan_medrisk_education</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for plan_problems</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/plan_problems/summary.php

@@ -0,0 +1 @@
+<h1>Summary for plan_problems</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for ros</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/ros/summary.php

@@ -0,0 +1 @@
+<h1>Summary for ros</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for subjective_general</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/subjective_general/summary.php

@@ -0,0 +1 @@
+<h1>Summary for subjective_general</h1>

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

@@ -0,0 +1 @@
+<h1>Edit for vitals</h1>

+ 1 - 0
resources/views/app/patient/segment-templates/vitals/summary.php

@@ -0,0 +1 @@
+<h1>Summary for vitals</h1>

+ 2 - 0
routes/web.php

@@ -390,3 +390,5 @@ Route::middleware('pro.auth')->group(function () {
 Route::post("/process_form_submit", 'NoteController@processFormSubmit')->name('process_form_submit');
 Route::get("/get-default-section-data/{patientID}/{sectionTemplateID}", 'NoteController@getDefaultValueForSection')->name('get_default_section_data');
 
+Route::get("/get-segment-html/{segmentUid}", 'NoteController@getHtmlForSegment')->name('get_segment_html');
+