From 97d2b76ee32e99c3b30def8002152d70390ef9f0 Mon Sep 17 00:00:00 2001 From: Khafid Prayoga Date: Wed, 10 Dec 2025 20:30:34 +0700 Subject: [PATCH] refactor(person-relative): update schema and form components for family data - Change value format in radio-parents-input from '1'/'0' to 'yes'/'no' - Remove default labels from select-education and select-job components - Update schema to make fields optional and add new fields - Modify family-parents-form to use new schema and improve UI - Update patient form and models to align with schema changes --- .../app/patient/fields/select-education.vue | 2 +- .../app/patient/fields/select-job.vue | 4 +- .../app/person-relative/entry-form.vue | 4 +- .../app/person/family-parents-form.vue | 155 +++++++----------- .../app/person/fields/radio-parents-input.vue | 4 +- app/components/content/patient/add.vue | 2 +- app/components/content/patient/form.vue | 20 +-- .../content/surgery-report/entry.vue | 36 ++-- app/models/patient.ts | 13 +- app/schemas/person-relative.schema.ts | 22 ++- 10 files changed, 110 insertions(+), 152 deletions(-) diff --git a/app/components/app/patient/fields/select-education.vue b/app/components/app/patient/fields/select-education.vue index 848ed614..afe519aa 100644 --- a/app/components/app/patient/fields/select-education.vue +++ b/app/components/app/patient/fields/select-education.vue @@ -21,7 +21,6 @@ const props = defineProps<{ const { fieldName = 'education', - label = 'Pendidikan', placeholder = 'Pilih pendidikan terakhir', errors, class: containerClass, @@ -47,6 +46,7 @@ const educationOptions = [