diff --git a/app/components/app/sep/entry-form.vue b/app/components/app/sep/entry-form.vue index 93da9ef3..e2580b62 100644 --- a/app/components/app/sep/entry-form.vue +++ b/app/components/app/sep/entry-form.vue @@ -141,6 +141,7 @@ const onSubmit = handleSubmit((values) => { import('~/components/pub/ui/radio-group/RadioGroup.vue')) +// const RadioGroupItem = defineAsyncComponent(() => import('~/components/pub/ui/radio-group/RadioGroupItem.vue')) +const action = defineAsyncComponent(() => import('~/components/pub/my-ui/data/dropdown-action-dud.vue')) + +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: { + action(rec, idx) { + return { + idx, + rec: rec as object, + component: action, + } + }, + }, + + htmls: {}, +} diff --git a/app/components/app/sep/list-patient.vue b/app/components/app/sep/list-patient.vue new file mode 100644 index 00000000..cb678433 --- /dev/null +++ b/app/components/app/sep/list-patient.vue @@ -0,0 +1,5 @@ + + + diff --git a/app/components/app/sep/table-history-sep.vue b/app/components/app/sep/table-history-sep.vue index bfe00e51..a6b0aeb2 100644 --- a/app/components/app/sep/table-history-sep.vue +++ b/app/components/app/sep/table-history-sep.vue @@ -22,6 +22,20 @@ const props = defineProps<{ }> }>() +// { +// "diagnosa": "string", +// "jnsPelayanan": "string", +// "kelasRawat": "string", +// "namaPeserta": "string", +// "noKartu": "string", +// "noSep": "string", +// "noRujukan": "string", +// "poli": "string", +// "ppkPelayanan": "string", +// "tglPlgSep": "2025-10-20", +// "tglSep": "2025-10-20" +// } + const emit = defineEmits<{ (e: 'update:open', value: boolean): void }>() diff --git a/app/components/content/sep/entry.vue b/app/components/content/sep/entry.vue index e3cd96ab..d5aa6f95 100644 --- a/app/components/content/sep/entry.vue +++ b/app/components/content/sep/entry.vue @@ -10,6 +10,7 @@ import { getPatientDetail, getPatients } from '~/services/patient.service' import { getList as getProvinceList } from '~/services/vclaim-region-province.service' import { getList as getCityList } from '~/services/vclaim-region-city.service' import { getList as getDistrictList } from '~/services/vclaim-region-district.service' +import { getList as getDoctorList } from '~/services/vclaim-doctor.service' import { getList as getDiagnoseReferralList } from '~/services/vclaim-diagnose-referral.service' import { getList as geMonitoringVisitList } from '~/services/vclaim-monitoring-visit.service' import { getList as getMonitoringHistoryList } from '~/services/vclaim-monitoring-history.service' @@ -122,6 +123,7 @@ const histories = [ function handleSavePatient() { const getPatient = async () => { + isPatientsLoading.value = true try { const result = await getPatientDetail(Number(selectedPatient.value)) if (result && result.success && result.body && result.body.data) { @@ -131,6 +133,7 @@ function handleSavePatient() { } catch (err) { console.error('Failed to fetch patient:', err) } + isPatientsLoading.value = false } getPatient() } @@ -170,17 +173,18 @@ onMounted(() => { getDistrictList({ city: '0187' }).then((value) => { console.log('value:', value) }) + getDoctorList({ 'jenis-pelayanan': 1, 'tgl-pelayanan': new Date().toISOString().substring(0, 19), 'kode-spesialis': 0 }).then((value) => { + console.log('value:', value) + }) getDiagnoseReferralList().then((value) => { console.log('value:', value) }) - geMonitoringVisitList({ tglpelayanan: '2025-10-10', jnspelayanan: 1}).then((value) => { + geMonitoringVisitList({ tglpelayanan: '2025-10-10', jnspelayanan: 1 }).then((value) => { + console.log('value:', value) + }) + getMonitoringHistoryList({ nop: '0002078925513', tglawal: '2025-07-20', tglakhir: '2025-10-10' }).then((value) => { console.log('value:', value) }) - getMonitoringHistoryList({ nop: '0002078925513', tglawal: '2025-07-20', tglakhir: '2025-10-10' }).then( - (value) => { - console.log('value:', value) - }, - ) }) @@ -194,6 +198,7 @@ onMounted(() => { SEP diff --git a/app/services/vclaim-doctor.service.ts b/app/services/vclaim-doctor.service.ts new file mode 100644 index 00000000..d27f2767 --- /dev/null +++ b/app/services/vclaim-doctor.service.ts @@ -0,0 +1,9 @@ +// Base +import * as base from './_crud-base' + +const path = '/api/vclaim/dokter-dpjp' +const name = 'doctor-attending' + +export function getList(params: any = null) { + return base.getList(path, params, name) +}