feat(sep): add service vclaim dpjp

This commit is contained in:
riefive
2025-10-20 10:25:34 +07:00
parent 65b6de2e6f
commit a95bdfcdb4
6 changed files with 75 additions and 6 deletions
+1
View File
@@ -141,6 +141,7 @@ const onSubmit = handleSubmit((values) => {
</div>
<Block
v-if="!isLoading"
labelSize="thin"
class="!pt-0"
:colCount="3"
@@ -0,0 +1,35 @@
import type { Config } from '~/components/pub/my-ui/data-table'
import { defineAsyncComponent } from 'vue'
// const RadioGroup = defineAsyncComponent(() => 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: {},
}
+5
View File
@@ -0,0 +1,5 @@
<script lang="ts"></script>
<template>
<div></div>
</template>
@@ -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
}>()
+11 -6
View File
@@ -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)
},
)
})
</script>
@@ -194,6 +198,7 @@ onMounted(() => {
SEP
</div>
<AppSepEntryForm
:is-loading="isPatientsLoading"
:patient="selectedPatientObject"
@event="handleEvent"
/>
+9
View File
@@ -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)
}