feat(sep): add service vclaim dpjp
This commit is contained in:
@@ -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"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user