feat(patient): add callback url support for patient creation

Add callback URL parameter to redirect after successful patient creation. The URL can be passed via 'return-path' query parameter and will include the created patient's ID. This enables seamless integration with external systems that need to handle post-creation flows.
This commit is contained in:
Khafid Prayoga
2025-10-09 20:21:06 +07:00
parent 33f17e54b1
commit bd4a269fad
2 changed files with 25 additions and 4 deletions

No files matched your search

+2 -1
View File
@@ -28,12 +28,13 @@ if (!hasAccess) {
// Define permission-based computed properties
const canRead = hasReadAccess(roleAccess)
const callbackUrl = route.query['return-path'] as string | undefined
</script>
<template>
<div>
<div v-if="canRead">
<ContentPatientEntry />
<ContentPatientEntry :callback-url="callbackUrl" />
</div>
<Error
v-else