- {[
- [
- `/patient/${patient.id}/investigation_reports`,
- "Investigation Summary",
- "align-alt",
- true,
- ],
+
+ {[
+ [
+ `/patient/${patient.id}/investigation_reports`,
+ "Investigation Summary",
+ "align-alt",
+ true,
+ ],
+ [
+ `/facility/${patient.facility}/patient/${patient.id}/consultation/${consultation?.id}/treatment-summary`,
+ "Treatment Summary",
+ "file-medical",
+ consultation?.id,
+ ],
+ ]
+ .concat(
+ enable_hcx
+ ? [
[
- `/facility/${patient.facility}/patient/${patient.id}/consultation/${consultation?.id}/treatment-summary`,
- "Treatment Summary",
- "file-medical",
+ `/facility/${patient.facility}/patient/${patient.id}/consultation/${consultation?.id}/claims`,
+ "Claims",
+ "copy-landscape",
consultation?.id,
],
]
- .concat(
- enable_hcx
- ? [
- [
- `/facility/${patient.facility}/patient/${patient.id}/consultation/${consultation?.id}/claims`,
- "Claims",
- "copy-landscape",
- consultation?.id,
- ],
- ]
- : []
- )
- .map(
- (action: any, i) =>
- action[3] && (
-
-
{
- if (
- consultation?.admitted &&
- !consultation?.current_bed &&
- i === 1
- ) {
- Notification.Error({
- msg: "Please assign a bed to the patient",
- });
- setOpen(true);
- }
- }}
- className="w-full"
- >
-
-
- {action[1]}
-
-
- {action?.[4]?.[0] && (
- <>
-
- {action[4][1]}
-
- >
- )}
-
- )
- )}
-
+ {enable_abdm &&
+ (patient.abha_number ? (
+ <>
+
+ {({ close }) => (
+ <>
+ {
+ close();
+ setShowABHAProfile(true);
+ }}
+ >
+
+ Show ABHA Profile
+
+ {
+ close();
+ setShowLinkCareContext(true);
+ }}
+ >
+
+ Link Care Context
+
+ >
+ )}
+
+ >
+ ) : (
+ <>
+
setShowLinkABHANumber(true)}
+ >
+
+
+ Link ABHA Number
+
-
-
- >
- )}
-
+ >
+ ))}
+