- {t(head)} - | - ))} -
- |
- ||||||
---|---|---|---|---|---|---|---|
- {consent.patient_abha_object?.name}
- - ({consent.patient_abha}) - - |
-
- - {new Date( - consent.consent_artefacts?.[0]?.expiry ?? - consent.expiry, - ) < new Date() - ? t("consent__status__EXPIRED") - : t( - `consent__status__${ - consent.consent_artefacts?.[0]?.status ?? - consent.status - }`, - )} - | - -- {formatDateTime(consent.created_date)} - | - -
- {consent.status === "EXPIRED" ||
- new Date(
- consent.consent_artefacts?.[0]?.expiry ??
- consent.expiry,
- ) < new Date() ? (
- - {formatDateTime( - consent.consent_artefacts?.[0]?.expiry ?? - consent.expiry, - )} - - {t("expired_on")} - - - ) : consent.status === "REQUESTED" ? ( - "-" - ) : ( -- {formatDateTime(consent.modified_date)} - - {t(`${consent.status.toLowerCase()}_on`)} - - - )} - |
-
-
- {formatDateTime(
- consent.consent_artefacts?.[0]?.from_time ??
- consent.from_time,
- )}{" "}
- - {formatDateTime( - consent.consent_artefacts?.[0]?.to_time ?? - consent.to_time, - )} - |
-
- - {formatDateTime( - consent.consent_artefacts?.[0]?.expiry ?? - consent.expiry, - )} - | - -
-
- {(
- consent.consent_artefacts?.[0]?.hi_types ??
- consent.hi_types
- )?.map((hiType) => (
-
- {t(`consent__hi_type__${hiType}`)}
-
- ))}
-
- |
-
-
-
- new Date()
- ? "cursor-pointer text-primary-600 hover:text-primary-900"
- : "pointer-events-none cursor-not-allowed text-secondary-600 opacity-70",
- )}
- >
- {t("view")}
-
-
- |
-
- {t("no_records_found")} -
-- {t("created_on")} {dayjs(artefact.created_date).fromNow()} -
-- {t("expires_on")} {dayjs(artefact.expiry).fromNow()} -
-- {t("expires_on")} {dayjs(consent.expiry).fromNow()} -
-- {t("created_on")} {dayjs(consent.created_date).fromNow()} -
-- {t("modified_on")} {dayjs(consent.modified_date).fromNow()} -
-- {consent.status === "REQUESTED" - ? t("consent_request_waiting_approval") - : t("consent_request_rejected")} -
-- {t("no_records_found")} -
-- {t("raise_consent_request")} -
-
-
- {t("abha_number_exists_description")} -
-- {memory?.abhaNumber?.health_id} -
-- {t("mobile_number_different_from_aadhaar_mobile_number")} -
- -setHealthId(suggestion)} - className="cursor-pointer rounded-md bg-primary-400 px-2.5 py-1 text-xs text-white" - > - {suggestion} -
- ))} -- setCurrentAbhaLinkOption( - ABHA_LINK_OPTIONS[currentAbhaLinkOption].create - ? "link_with_otp" - : "create_with_aadhaar", - ) - } - className="cursor-pointer text-center text-sm text-blue-800" - > - {ABHA_LINK_OPTIONS[currentAbhaLinkOption].create - ? t("link_existing_abha_profile") - : t("create_new_abha_profile")} -
-- {t("try_different_abha_linking_option")} -
-