|
@@ -68,7 +68,7 @@
|
|
|
import store from '../../../store'
|
|
|
import { computed, onMounted, reactive, ref, watchEffect } from 'vue'
|
|
|
import Cookies from 'js-cookie'
|
|
|
-import { getGhFee, hasDoneCovidAssessment } from '../../../api/appointment'
|
|
|
+import { getGhFee, hasValidCovidAssessment } from '../../../api/appointment'
|
|
|
import router from '../../../router'
|
|
|
export default {
|
|
|
name: 'AppointConfirm',
|
|
@@ -97,7 +97,7 @@ export default {
|
|
|
})
|
|
|
const confirmAppointment = () => {
|
|
|
if (Cookies.get('appointmentDeptCode') !== '1260000') {
|
|
|
- hasDoneCovidAssessment(data.appointment.patientId).then((res) => {
|
|
|
+ hasValidCovidAssessment(data.appointment.patientId).then((res) => {
|
|
|
if (res === 'no valid assessment') {
|
|
|
router.push('/assessments/covid/' + data.appointment.patientId)
|
|
|
} else {
|