diff --git a/app/components/app/patient/_common/select-dob.vue b/app/components/app/patient/_common/select-dob.vue deleted file mode 100644 index eee11acc..00000000 --- a/app/components/app/patient/_common/select-dob.vue +++ /dev/null @@ -1,140 +0,0 @@ - - - diff --git a/app/components/app/patient/entry-form.vue b/app/components/app/patient/entry-form.vue index a83189c2..c2e187a5 100644 --- a/app/components/app/patient/entry-form.vue +++ b/app/components/app/patient/entry-form.vue @@ -1,64 +1,121 @@ diff --git a/app/components/app/patient/fields/index.ts b/app/components/app/patient/fields/index.ts new file mode 100644 index 00000000..a55d6e58 --- /dev/null +++ b/app/components/app/patient/fields/index.ts @@ -0,0 +1,16 @@ +export { default as InputFile } from './input-file.vue' +export { default as InputName } from './input-name.vue' +export { default as RadioCommunicationBarrier } from './radio-communication-barrier.vue' +export { default as RadioDisability } from './radio-disability.vue' +export { default as RadioGender } from './radio-gender.vue' +export { default as RadioNationality } from './radio-nationality.vue' +export { default as RadioNewborn } from './radio-newborn.vue' +export { default as SelectDisability } from './select-disability.vue' +export { default as SelectDob } from './select-dob.vue' +export { default as SelectEducation } from './select-education.vue' +export { default as SelectEthnicity } from './select-ethnicity.vue' +export { default as SelectGender } from './select-gender.vue' +export { default as SelectJob } from './select-job.vue' +export { default as SelectLang } from './select-lang.vue' +export { default as SelectMaritalStatus } from './select-marital-status.vue' +export { default as SelectReligion } from './select-religion.vue' diff --git a/app/components/app/patient/_common/input-file.vue b/app/components/app/patient/fields/input-file.vue similarity index 100% rename from app/components/app/patient/_common/input-file.vue rename to app/components/app/patient/fields/input-file.vue diff --git a/app/components/app/patient/_common/input-name.vue b/app/components/app/patient/fields/input-name.vue similarity index 95% rename from app/components/app/patient/_common/input-name.vue rename to app/components/app/patient/fields/input-name.vue index db9005f1..14a27e63 100644 --- a/app/components/app/patient/_common/input-name.vue +++ b/app/components/app/patient/fields/input-name.vue @@ -17,6 +17,7 @@ defineProps<{ labelClass?: string maxLength?: number isRequired?: boolean + isDisabled?: boolean }>() @@ -40,6 +41,7 @@ defineProps<{ () const { @@ -28,8 +29,8 @@ const { } = props const genderOptions = [ - { label: 'Ya', value: 'YA' }, - { label: 'Tidak', value: 'TIDAK' }, + { label: 'Ya', value: 'yes' }, + { label: 'Tidak', value: 'no' }, ] @@ -46,7 +47,7 @@ const genderOptions = [ :id="fieldName" :errors="errors" class="pt-0.5" - > + >
() const { @@ -27,9 +28,9 @@ const { labelClass, } = props -const dissabilityOptions = [ - { label: 'Ya', value: 'YA' }, - { label: 'Tidak', value: 'TIDAK' }, +const disabilityOptions = [ + { label: 'Ya', value: 'yes' }, + { label: 'Tidak', value: 'no' }, ] @@ -55,28 +56,31 @@ const dissabilityOptions = [
() const { @@ -55,6 +56,7 @@ const nationalityOptions = [
() const { @@ -28,13 +29,16 @@ const { } = props const newbornOptions = [ - { label: 'Ya', value: 'YA' }, - { label: 'Tidak', value: 'TIDAK' }, + { label: 'Ya', value: 'yes' }, + { label: 'Tidak', value: 'no' }, ]