|
@@ -197,7 +197,7 @@
|
|
</ol>
|
|
</ol>
|
|
|
|
|
|
<button>Save</button>
|
|
<button>Save</button>
|
|
- <button>Sign & Submit</button>
|
|
|
|
|
|
+ <button id="sign-and-submit">Sign & Submit</button>
|
|
</section>
|
|
</section>
|
|
|
|
|
|
<style>
|
|
<style>
|
|
@@ -257,6 +257,22 @@
|
|
newInput.focus()
|
|
newInput.focus()
|
|
})
|
|
})
|
|
)
|
|
)
|
|
|
|
+
|
|
|
|
+ $('#sign-and-submit').off('click.sign').on('click.sign', function() {
|
|
|
|
+ $.post('/api/client/updateMcpOnboardingVisitInfo', {
|
|
|
|
+ uid: '{{$patient->uid}}',
|
|
|
|
+ hasMcpDoneOnboardingVisit: 'YES',
|
|
|
|
+ mcpOnboardingVisitDate: '{{date('Y-m-d')}}',
|
|
|
|
+ }, function(_data) {
|
|
|
|
+ if (!_data.success) {
|
|
|
|
+ toastr.error(_data.message);
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ fastLoad('/patients/view/{{$patient->uid}}', true, false);
|
|
|
|
+ }
|
|
|
|
+ }, 'json');
|
|
|
|
+ return false;
|
|
|
|
+ });
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
@endsection
|
|
@endsection
|