浏览代码

Claim-lines prefill in note > create claim

Vijayakrishnan 4 年之前
父节点
当前提交
e221edc14a
共有 1 个文件被更改,包括 9 次插入0 次删除
  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>