Browse Source

Claim-lines prefill in note > create claim

Vijayakrishnan 4 years ago
parent
commit
e221edc14a
1 changed files with 9 additions and 0 deletions
  1. 9 0
      resources/views/app/patient/note/_create-claim.blade.php

+ 9 - 0
resources/views/app/patient/note/_create-claim.blade.php

@@ -163,10 +163,19 @@
                         fastReload();
                     }
                 }, 'json')
+            },
+            getPrefillValues: function() {
+                @if(@$note)
+                $.get('/api/note/generateClaimSuggestion/{{$note->uid}}', (_data) => {
+                    this.payload.lines.splice(0, 1);
+                    this.payload.lines = _data.data.lines;
+                }, 'json');
+                @endif
             }
         },
         mounted: function () {
             this.initICDAutoSuggest();
+            this.getPrefillValues();
         }
     })
 </script>