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:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user