diff --git a/app/components/app/encounter/entry-form.vue b/app/components/app/encounter/entry-form.vue index 25bdf9d8..9c24a0c6 100644 --- a/app/components/app/encounter/entry-form.vue +++ b/app/components/app/encounter/entry-form.vue @@ -1,354 +1,493 @@ diff --git a/app/components/app/patient/list-cfg.patient.ts b/app/components/app/patient/list-cfg.patient.ts new file mode 100644 index 00000000..3c77bfaa --- /dev/null +++ b/app/components/app/patient/list-cfg.patient.ts @@ -0,0 +1,41 @@ +import type { Config } from '~/components/pub/my-ui/data-table' +import { defineAsyncComponent } from 'vue' + +const SelectedRadio = defineAsyncComponent(() => import('~/components/pub/my-ui/data/select-radio.vue')) + +export interface PatientData { + id: string + identity: string + number: string + bpjs: string + name: string +} + +export const config: Config = { + cols: [{ width: 50 }, { width: 100 }, { width: 100 }, { width: 100 }, { width: 100 }], + + headers: [ + [{ label: '' }, { label: 'NO. KTP' }, { label: 'NO. RM' }, { label: 'NO. KARTU BPJS' }, { label: 'NAMA PASIEN' }], + ], + + keys: ['check', 'identity', 'number', 'bpjs', 'name'], + + delKeyNames: [ + { key: 'code', label: 'Kode' }, + { key: 'name', label: 'Nama' }, + ], + + parses: {}, + + components: { + check(rec, idx) { + return { + idx, + rec: { ...rec as object, menu: 'patient' }, + component: SelectedRadio, + } + }, + }, + + htmls: {}, +} diff --git a/app/components/app/patient/list-patient.vue b/app/components/app/patient/list-patient.vue new file mode 100644 index 00000000..2b9902f2 --- /dev/null +++ b/app/components/app/patient/list-patient.vue @@ -0,0 +1,38 @@ + + + diff --git a/app/components/app/patient/view-patient.vue b/app/components/app/patient/view-patient.vue new file mode 100644 index 00000000..e24554b7 --- /dev/null +++ b/app/components/app/patient/view-patient.vue @@ -0,0 +1,126 @@ + + + diff --git a/app/components/app/sep/entry-form.vue b/app/components/app/sep/entry-form.vue index e48d23ec..35956ad7 100644 --- a/app/components/app/sep/entry-form.vue +++ b/app/components/app/sep/entry-form.vue @@ -1,91 +1,245 @@