From a4f8e8a4450bf72b02e51a79e89a3477c7d5fcc5 Mon Sep 17 00:00:00 2001 From: DevSoftTech Server Date: Thu, 8 Oct 2026 09:54:40 +0530 Subject: [PATCH] feat(abdm): align modal hi_type values with standard ABDM HI Types --- app/Views/partials/abdm_hip_link_modal.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/app/Views/partials/abdm_hip_link_modal.php b/app/Views/partials/abdm_hip_link_modal.php index c0688af..d93746b 100644 --- a/app/Views/partials/abdm_hip_link_modal.php +++ b/app/Views/partials/abdm_hip_link_modal.php @@ -867,17 +867,17 @@ } else if (/^DOC-/i.test(ref)) { itemHiType = 'HealthDocumentRecord'; } else if (/^INVOICE-/i.test(ref)) { - itemHiType = 'InvoiceRecord'; + itemHiType = 'Invoice'; } else if (/^(?:LAB|RAD)-/i.test(ref)) { - itemHiType = 'DiagnosticReportRecord'; + itemHiType = 'DiagnosticReport'; } else if (/^IMM-/i.test(ref)) { itemHiType = 'ImmunizationRecord'; } else if (/^(?:DISCHARGE|IPD)-/i.test(ref)) { - itemHiType = 'DischargeSummaryRecord'; + itemHiType = 'DischargeSummary'; } else if (/^(?:PRESC|PRESCRIPTION)-/i.test(ref)) { - itemHiType = 'PrescriptionRecord'; + itemHiType = 'Prescription'; } else if (/^OPD-/i.test(ref)) { - itemHiType = 'OPConsultRecord'; + itemHiType = 'OPConsultation'; } if (!dominantHiType && itemHiType) { dominantHiType = itemHiType; @@ -1021,9 +1021,6 @@ } }); var hiTypeToSend = distinctTypes.length === 1 ? distinctTypes[0] : ''; - if (hiTypeToSend === 'OPConsultation') { - hiTypeToSend = 'OPConsultRecord'; - } // Step 2: Link Care Contexts csrf = getCsrfData();