Browse Source

Post-submit inline ajax-load for Dx, care-team, vitals & allergies

Vijayakrishnan Krishnan 4 years ago
parent
commit
83ac77b7a1

+ 3 - 1
resources/views/app/patient/partials/allergies.blade.php

@@ -1,6 +1,8 @@
 <?php $infoLines = json_decode($patient->info_lines);?>
 <?php $infoLines = !$infoLines ? [] : $infoLines; ?>
-<div class="<?= !@$selectable ? 'mt-2' : 'border-bottom' ?> pb-1">
+<div moe-parent
+     url="/embed/{{ $patient->uid }}/allergies/{{ @$selectable ? 1 : 0 }}"
+     class="<?= !@$selectable ? 'mt-2' : 'border-bottom' ?> pb-1">
     <div class="d-flex align-items-center mb-2 py-2 <?= @$selectable ? 'px-2' : 'border-top' ?> border-bottom">
 
         @if(!@$selectable)

+ 3 - 1
resources/views/app/patient/partials/care-team.blade.php

@@ -1,6 +1,8 @@
 <?php $infoLines = json_decode($patient->info_lines);?>
 <?php $infoLines = !$infoLines ? [] : $infoLines; ?>
-<div class="<?= !@$selectable ? 'mt-4' : 'border-bottom' ?> pb-1">
+<div moe-parent
+     url="/embed/{{ $patient->uid }}/care-team/{{ @$selectable ? 1 : 0 }}"
+     class="<?= !@$selectable ? 'mt-4' : 'border-bottom' ?> pb-1">
     <div class="d-flex align-items-center mb-2 py-2 <?= @$selectable ? 'px-2' : 'border-top' ?> border-bottom">
 
         @if(!@$selectable)

+ 3 - 1
resources/views/app/patient/partials/dx.blade.php

@@ -1,6 +1,8 @@
 <?php $infoLines = json_decode($patient->info_lines);?>
 <?php $infoLines = !$infoLines ? [] : $infoLines; ?>
-<div class="<?= !@$selectable ? 'mt-2' : 'border-bottom' ?> pb-1">
+<div moe-parent
+     url="/embed/{{ $patient->uid }}/dx/{{ @$selectable ? 1 : 0 }}"
+     class="<?= !@$selectable ? 'mt-2' : 'border-bottom' ?> pb-1">
     <div class="d-flex align-items-center mb-2 py-2 <?= @$selectable ? 'px-2' : 'border-top' ?> border-bottom">
 
         @if(!@$selectable)

+ 3 - 1
resources/views/app/patient/partials/vitals.blade.php

@@ -34,7 +34,9 @@ foreach($patient->measurements as $measurement) {
 
 ?>
 
-<div class="<?= !@$selectable ? 'mt-2' : 'border-bottom' ?> pb-1">
+<div moe-parent
+     url="/embed/{{ $patient->uid }}/vitals/{{ @$selectable ? 1 : 0 }}"
+     class="<?= !@$selectable ? 'mt-2' : 'border-bottom' ?> pb-1">
     <div class="d-flex align-items-center mb-2 py-2 <?= @$selectable ? 'px-2' : 'border-top' ?> border-bottom">
 
         @if(!@$selectable)