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:
No files matched your search
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user