wip: adjust strict form data

person-relative: schema bind strict typed
person-contact: strict schema type
person-families: strict schema type
person-address-relative: strict schema type
patient: strict schema type
person-address: strict schema type
This commit is contained in:
Khafid Prayoga
2025-12-05 20:36:50 +07:00
parent 8754c7c062
commit 1f6ca8a7f9
10 changed files with 602 additions and 208 deletions
@@ -33,7 +33,12 @@ const canRead = true
<template>
<div>
<div v-if="canRead">Edit patient id: {{ route.params.id }}</div>
<div v-if="canRead">
<ContentPatientForm
:mode="'edit'"
:patient-id="route.params.id"
/>
</div>
<Error
v-else
:status-code="403"
+4 -1
View File
@@ -34,7 +34,10 @@ const callbackUrl = route.query['return-path'] as string | undefined
<template>
<div>
<div v-if="canRead">
<ContentPatientAdd :callback-url="callbackUrl" />
<ContentPatientForm
:mode="'add'"
:callback-url="callbackUrl"
/>
</div>
<Error
v-else