Explorar el Código

Merge branch 'master' into dev-vj

Vijayakrishnan hace 4 años
padre
commit
8ea2b42755
Se han modificado 68 ficheros con 11 adiciones y 29 borrados
  1. 1 0
      app/Http/Controllers/NoteController.php
  2. 1 1
      public/js/mc.js
  3. 1 1
      resources/views/app/patient/canvas-sections/fancy/form.blade.php
  4. 1 1
      resources/views/app/patient/canvas-sections/fhx/form.blade.php
  5. 1 1
      resources/views/app/patient/canvas-sections/pmhx/form.blade.php
  6. 2 2
      resources/views/app/patient/canvas-sections/pshx/form.blade.php
  7. 1 1
      resources/views/app/patient/canvas-sections/sochx/form.blade.php
  8. 0 1
      resources/views/app/patient/note/note-section-list.blade.php
  9. 1 1
      resources/views/app/video/call.blade.php
  10. 1 1
      resources/views/layouts/template.blade.php
  11. 0 0
      storage/sections/impression_deleted/form.blade.php
  12. 0 0
      storage/sections/impression_deleted/processor.php
  13. 0 0
      storage/sections/impression_deleted/summary.php
  14. 0 0
      storage/sections/mental-functional_deleted/form.blade.php
  15. 0 0
      storage/sections/mental-functional_deleted/processor.php
  16. 0 0
      storage/sections/mental-functional_deleted/summary.php
  17. 0 0
      storage/sections/minor-procedures_deleted/form.blade.php
  18. 0 0
      storage/sections/minor-procedures_deleted/processor.php
  19. 0 0
      storage/sections/minor-procedures_deleted/summary.php
  20. 0 0
      storage/sections/mse_deleted/form.blade.php
  21. 0 0
      storage/sections/mse_deleted/processor.php
  22. 0 0
      storage/sections/mse_deleted/summary.php
  23. 0 0
      storage/sections/objective-speech-language_deleted/form.blade.php
  24. 0 0
      storage/sections/objective-speech-language_deleted/processor.php
  25. 0 0
      storage/sections/objective-speech-language_deleted/summary.php
  26. 0 0
      storage/sections/oral-mechanism-exam_deleted/form.blade.php
  27. 0 0
      storage/sections/oral-mechanism-exam_deleted/processor.php
  28. 0 0
      storage/sections/oral-mechanism-exam_deleted/summary.php
  29. 1 19
      storage/sections/physical-activity-assessment/form.blade.php
  30. 0 0
      storage/sections/pmhx_deleted_canvas/form.blade.php
  31. 0 0
      storage/sections/pmhx_deleted_canvas/processor.php
  32. 0 0
      storage/sections/pmhx_deleted_canvas/summary.php
  33. 0 0
      storage/sections/pragmatics_deleted/form.blade.php
  34. 0 0
      storage/sections/pragmatics_deleted/processor.php
  35. 0 0
      storage/sections/pragmatics_deleted/summary.php
  36. 0 0
      storage/sections/pshx_deleted_canvas/form.blade.php
  37. 0 0
      storage/sections/pshx_deleted_canvas/processor.php
  38. 0 0
      storage/sections/pshx_deleted_canvas/summary.php
  39. 0 0
      storage/sections/psych-impression_deleted/form.blade.php
  40. 0 0
      storage/sections/psych-impression_deleted/processor.php
  41. 0 0
      storage/sections/psych-impression_deleted/summary.php
  42. 0 0
      storage/sections/psychfhx_deleted/form.blade.php
  43. 0 0
      storage/sections/psychfhx_deleted/processor.php
  44. 0 0
      storage/sections/psychfhx_deleted/summary.php
  45. 0 0
      storage/sections/psychhx_deleted/form.blade.php
  46. 0 0
      storage/sections/psychhx_deleted/processor.php
  47. 0 0
      storage/sections/psychhx_deleted/summary.php
  48. 0 0
      storage/sections/psychshx_deleted/form.blade.php
  49. 0 0
      storage/sections/psychshx_deleted/processor.php
  50. 0 0
      storage/sections/psychshx_deleted/summary.php
  51. 0 0
      storage/sections/receptive-expressive-language_deleted/form.blade.php
  52. 0 0
      storage/sections/receptive-expressive-language_deleted/processor.php
  53. 0 0
      storage/sections/receptive-expressive-language_deleted/summary.php
  54. 0 0
      storage/sections/results_deleted/form.blade.php
  55. 0 0
      storage/sections/results_deleted/processor.php
  56. 0 0
      storage/sections/results_deleted/summary.php
  57. 0 0
      storage/sections/ros_deleted/deleted_form.blade.php
  58. 0 0
      storage/sections/ros_deleted/deleted_processor.php
  59. 0 0
      storage/sections/ros_deleted/deleted_summary.php
  60. 0 0
      storage/sections/speech-development_deleted/form.blade.php
  61. 0 0
      storage/sections/speech-development_deleted/processor.php
  62. 0 0
      storage/sections/speech-development_deleted/summary.php
  63. 0 0
      storage/sections/tests_deleted/form.blade.php
  64. 0 0
      storage/sections/tests_deleted/processor.php
  65. 0 0
      storage/sections/tests_deleted/summary.php
  66. 0 0
      storage/sections/voice_deleted/form.blade.php
  67. 0 0
      storage/sections/voice_deleted/processor.php
  68. 0 0
      storage/sections/voice_deleted/summary.php

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

@@ -83,6 +83,7 @@ class NoteController extends Controller
                 'key' => $sectionTemplate->internal_name,
                 'data' => $request->get('data')
             ];
+
             $response = $this->calljava($request, '/client/updateCanvasData', $data);
             //TODO: handle $response->success == false
 

+ 1 - 1
public/js/mc.js

@@ -349,6 +349,6 @@ function initPatientPresenceIndicator() {
                     }
                 }, 'json');
             }
-        }, 2500000);
+        }, 2500);
     }
 }

+ 1 - 1
resources/views/app/patient/canvas-sections/fancy/form.blade.php

@@ -30,7 +30,7 @@ $formID = rand(0, 100000);
                 watch: {
                     $data: {
                         handler: function(val, oldVal) {
-                            $(this.$el).closest('form').find('[name="canvasData"]').val(JSON.stringify({
+                            $(this.$el).closest('form').find('[name="data"]').val(JSON.stringify({
                                 count: this.count,
                                 unknown: this.unknown,
                                 items: this.cleanArray(this.items)

+ 1 - 1
resources/views/app/patient/canvas-sections/fhx/form.blade.php

@@ -10,7 +10,7 @@ if(!$contentData) {
 $formID = rand(0, 100000);
 ?>
 <div id="fhxSection">
-    <input type="hidden" name="data" value="">
+    <input type="hidden" name="data" value="{{json_encode($contentData)}}">
     <div class="border border-secondary rounded mb-2 p-2">
         <label class="my-0 d-flex align-items-center">
             <input type="checkbox" class="my-0 mr-2" v-model="unknown" name="unknown">

+ 1 - 1
resources/views/app/patient/canvas-sections/pmhx/form.blade.php

@@ -44,7 +44,7 @@ if(!$contentData) {
 $formID = rand(0, 100000);
 ?>
 <div id="pmhx_{{ $formID }}">
-    <input type="hidden" name="data" value="">
+    <input type="hidden" name="data" value="{{json_encode($contentData)}}">
     <div class="mb-3 d-flex align-items-start">
         <div class="width-100px mr-3">
             <label class="text-secondary mb-1">Blood Type</label>

+ 2 - 2
resources/views/app/patient/canvas-sections/pshx/form.blade.php

@@ -30,7 +30,7 @@ if(!$contentData) {
 $formID = rand(0, 100000);
 ?>
 <div id="pshx_{{ $formID }}">
-    <input type="hidden" name="data" value="">
+    <input type="hidden" name="data" value="{{json_encode($contentData)}}">
     <div class="row">
         <div class="col-12">
             <div class="font-weight-bold my-1">Common Surgeries</div>
@@ -167,7 +167,7 @@ $formID = rand(0, 100000);
                 watch: {
                     $data: {
                         handler: function(val, oldVal) {
-                            $(this.$el).closest('form').find('[name="canvasData"]').val(JSON.stringify({
+                            $(this.$el).closest('#pshx_{{ $formID }}').find('[name="data"]').val(JSON.stringify({
                                 common: this.cleanObject(this.common),
                                 customFields: this.customFields,
                                 comments: this.comments,

+ 1 - 1
resources/views/app/patient/canvas-sections/sochx/form.blade.php

@@ -33,7 +33,7 @@ if(!$contentData) {
 $formID = rand(0, 100000);
 ?>
 <div id="sochx_{{ $formID }}">
-    <input type="hidden" name="data" value="">
+    <input type="hidden" name="data" value="{{json_encode($contentData)}}">
     <div class="row">
         @for ($i = 0; $i < count($fields); $i++)
             <div class="col-md-3">

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

@@ -181,7 +181,6 @@ if ($latestSectionTS === 0 || $latestSectionTS < $sectionTS) {
 
             var _form = _section.find('form[processed]')[0];
             if(_form){
-                console.log("Form found: ", _form);
                 console.log("Form found. submitting normally");
                 $.post("/process_form_submit", $(_form).serialize(), function(resp) {
                     handleSubmitResponse(resp,_section, summaryContainer)

+ 1 - 1
resources/views/app/video/call.blade.php

@@ -547,7 +547,7 @@
                     this.refresh();
                     window.setInterval(function() {
                         self.refresh();
-                    }, 2500000);
+                    }, 2500);
                 },
                 methods: {
                     refresh: function() {

+ 1 - 1
resources/views/layouts/template.blade.php

@@ -255,7 +255,7 @@
                     $('.current-work').html(_data);
                     initFastLoad($('.current-work'));
                 });
-            }, 2500000);
+            }, 2500);
         });
     </script>
     <script>

+ 0 - 0
storage/sections/impression/form.blade.php → storage/sections/impression_deleted/form.blade.php


+ 0 - 0
storage/sections/impression/processor.php → storage/sections/impression_deleted/processor.php


+ 0 - 0
storage/sections/impression/summary.php → storage/sections/impression_deleted/summary.php


+ 0 - 0
storage/sections/mental-functional/form.blade.php → storage/sections/mental-functional_deleted/form.blade.php


+ 0 - 0
storage/sections/mental-functional/processor.php → storage/sections/mental-functional_deleted/processor.php


+ 0 - 0
storage/sections/mental-functional/summary.php → storage/sections/mental-functional_deleted/summary.php


+ 0 - 0
storage/sections/minor-procedures/form.blade.php → storage/sections/minor-procedures_deleted/form.blade.php


+ 0 - 0
storage/sections/minor-procedures/processor.php → storage/sections/minor-procedures_deleted/processor.php


+ 0 - 0
storage/sections/minor-procedures/summary.php → storage/sections/minor-procedures_deleted/summary.php


+ 0 - 0
storage/sections/mse/form.blade.php → storage/sections/mse_deleted/form.blade.php


+ 0 - 0
storage/sections/mse/processor.php → storage/sections/mse_deleted/processor.php


+ 0 - 0
storage/sections/mse/summary.php → storage/sections/mse_deleted/summary.php


+ 0 - 0
storage/sections/objective-speech-language/form.blade.php → storage/sections/objective-speech-language_deleted/form.blade.php


+ 0 - 0
storage/sections/objective-speech-language/processor.php → storage/sections/objective-speech-language_deleted/processor.php


+ 0 - 0
storage/sections/objective-speech-language/summary.php → storage/sections/objective-speech-language_deleted/summary.php


+ 0 - 0
storage/sections/oral-mechanism-exam/form.blade.php → storage/sections/oral-mechanism-exam_deleted/form.blade.php


+ 0 - 0
storage/sections/oral-mechanism-exam/processor.php → storage/sections/oral-mechanism-exam_deleted/processor.php


+ 0 - 0
storage/sections/oral-mechanism-exam/summary.php → storage/sections/oral-mechanism-exam_deleted/summary.php


+ 1 - 19
storage/sections/physical-activity-assessment/form.blade.php

@@ -9,7 +9,7 @@ if (!$contentData) {
 $formID = rand(0, 100000);
 
 ?>
-<form method="POST" action="/process_form_submit" onsubmit="return submitForm_NoteSection_{{ $formID }}(this);">
+<form processed method="POST" action="/process_form_submit" onsubmit="return submitForm_NoteSection_{{ $formID }}(this);">
     <?php if($section): ?>
     <input type="hidden" name="section_uid" value="<?= $section->uid?>">
     <?php else: ?>
@@ -805,26 +805,8 @@ $formID = rand(0, 100000);
             </label>
         </div>
     </div>
-
-    <div class="form-group m-0 d-flex">
-        <button class="btn btn-sm btn-primary mr-2">Done</button>
-        {{--<button class="btn btn-sm btn-default border" onclick="return cancelForm_NoteSection_{{ $formID }}(this)">Cancel</button>--}}
-    </div>
 </form>
 <script>
-    function submitForm_NoteSection_{{ $formID }}(_form) {
-        showMask();
-        $.post(_form.action, $(_form).serialize(), function (_data) {
-            fastReload();
-        });
-        return false;
-    }
-
-    function cancelForm_NoteSection_{{ $formID }}(_trigger) {
-        $(_trigger).closest('.note-section').toggleClass('edit');
-        return false;
-    }
-
     function onGemVChange_{{ $formID }}(_field) {
         let name = _field.name, span = $('span[field="' + _field.name + '"]');
         if (span.length) {

+ 0 - 0
storage/sections/pmhx/form.blade.php → storage/sections/pmhx_deleted_canvas/form.blade.php


+ 0 - 0
storage/sections/pmhx/processor.php → storage/sections/pmhx_deleted_canvas/processor.php


+ 0 - 0
storage/sections/pmhx/summary.php → storage/sections/pmhx_deleted_canvas/summary.php


+ 0 - 0
storage/sections/pragmatics/form.blade.php → storage/sections/pragmatics_deleted/form.blade.php


+ 0 - 0
storage/sections/pragmatics/processor.php → storage/sections/pragmatics_deleted/processor.php


+ 0 - 0
storage/sections/pragmatics/summary.php → storage/sections/pragmatics_deleted/summary.php


+ 0 - 0
storage/sections/pshx/form.blade.php → storage/sections/pshx_deleted_canvas/form.blade.php


+ 0 - 0
storage/sections/pshx/processor.php → storage/sections/pshx_deleted_canvas/processor.php


+ 0 - 0
storage/sections/pshx/summary.php → storage/sections/pshx_deleted_canvas/summary.php


+ 0 - 0
storage/sections/psych-impression/form.blade.php → storage/sections/psych-impression_deleted/form.blade.php


+ 0 - 0
storage/sections/psych-impression/processor.php → storage/sections/psych-impression_deleted/processor.php


+ 0 - 0
storage/sections/psych-impression/summary.php → storage/sections/psych-impression_deleted/summary.php


+ 0 - 0
storage/sections/psychfhx/form.blade.php → storage/sections/psychfhx_deleted/form.blade.php


+ 0 - 0
storage/sections/psychfhx/processor.php → storage/sections/psychfhx_deleted/processor.php


+ 0 - 0
storage/sections/psychfhx/summary.php → storage/sections/psychfhx_deleted/summary.php


+ 0 - 0
storage/sections/psychhx/form.blade.php → storage/sections/psychhx_deleted/form.blade.php


+ 0 - 0
storage/sections/psychhx/processor.php → storage/sections/psychhx_deleted/processor.php


+ 0 - 0
storage/sections/psychhx/summary.php → storage/sections/psychhx_deleted/summary.php


+ 0 - 0
storage/sections/psychshx/form.blade.php → storage/sections/psychshx_deleted/form.blade.php


+ 0 - 0
storage/sections/psychshx/processor.php → storage/sections/psychshx_deleted/processor.php


+ 0 - 0
storage/sections/psychshx/summary.php → storage/sections/psychshx_deleted/summary.php


+ 0 - 0
storage/sections/receptive-expressive-language/form.blade.php → storage/sections/receptive-expressive-language_deleted/form.blade.php


+ 0 - 0
storage/sections/receptive-expressive-language/processor.php → storage/sections/receptive-expressive-language_deleted/processor.php


+ 0 - 0
storage/sections/receptive-expressive-language/summary.php → storage/sections/receptive-expressive-language_deleted/summary.php


+ 0 - 0
storage/sections/results/form.blade.php → storage/sections/results_deleted/form.blade.php


+ 0 - 0
storage/sections/results/processor.php → storage/sections/results_deleted/processor.php


+ 0 - 0
storage/sections/results/summary.php → storage/sections/results_deleted/summary.php


+ 0 - 0
storage/sections/ros/deleted_form.blade.php → storage/sections/ros_deleted/deleted_form.blade.php


+ 0 - 0
storage/sections/ros/deleted_processor.php → storage/sections/ros_deleted/deleted_processor.php


+ 0 - 0
storage/sections/ros/deleted_summary.php → storage/sections/ros_deleted/deleted_summary.php


+ 0 - 0
storage/sections/speech-development/form.blade.php → storage/sections/speech-development_deleted/form.blade.php


+ 0 - 0
storage/sections/speech-development/processor.php → storage/sections/speech-development_deleted/processor.php


+ 0 - 0
storage/sections/speech-development/summary.php → storage/sections/speech-development_deleted/summary.php


+ 0 - 0
storage/sections/tests/form.blade.php → storage/sections/tests_deleted/form.blade.php


+ 0 - 0
storage/sections/tests/processor.php → storage/sections/tests_deleted/processor.php


+ 0 - 0
storage/sections/tests/summary.php → storage/sections/tests_deleted/summary.php


+ 0 - 0
storage/sections/voice/form.blade.php → storage/sections/voice_deleted/form.blade.php


+ 0 - 0
storage/sections/voice/processor.php → storage/sections/voice_deleted/processor.php


+ 0 - 0
storage/sections/voice/summary.php → storage/sections/voice_deleted/summary.php