Skip match modal when ABHA already linked
This commit is contained in:
parent
7cb57b5b28
commit
ea1945d842
|
|
@ -1436,6 +1436,10 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.AbhaVerifyModal.open(identifier || '', lookupResponse || null, function(profile) {
|
window.AbhaVerifyModal.open(identifier || '', lookupResponse || null, function(profile) {
|
||||||
|
if (profile && profile.need_confirmation === false && Number(profile.patient_id || 0) > 0) {
|
||||||
|
showRegResult(profile);
|
||||||
|
return;
|
||||||
|
}
|
||||||
window.AbhaPatientMatchModal.open(profile, profile.candidates || [], function(finalResponse) {
|
window.AbhaPatientMatchModal.open(profile, profile.candidates || [], function(finalResponse) {
|
||||||
showRegResult(finalResponse);
|
showRegResult(finalResponse);
|
||||||
});
|
});
|
||||||
|
|
@ -1448,6 +1452,10 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.AbhaCreateModal.open(function(profile) {
|
window.AbhaCreateModal.open(function(profile) {
|
||||||
|
if (profile && profile.need_confirmation === false && Number(profile.patient_id || 0) > 0) {
|
||||||
|
if (typeof showRegResult === 'function') showRegResult(profile);
|
||||||
|
return;
|
||||||
|
}
|
||||||
window.AbhaPatientMatchModal.open(profile, profile.candidates || [], function(finalResponse) {
|
window.AbhaPatientMatchModal.open(profile, profile.candidates || [], function(finalResponse) {
|
||||||
if (typeof showRegResult === 'function') showRegResult(finalResponse);
|
if (typeof showRegResult === 'function') showRegResult(finalResponse);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user