+ {head} + | + ))} ++ View + | +||||||
---|---|---|---|---|---|---|---|
+ {consent.patient_abha_object?.name}
+ + ({consent.patient_abha}) + + |
+
+ + {consent.status} + | + ++ {formatDateTime(consent.created_date)} + | + +
+ {`${consent.requester?.first_name} ${consent.requester?.last_name}`.trim()}
+ + ({consent.requester.username}) + + |
+
+
+ {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) => (
+
+ {hiType}
+
+ ))}
+
+ |
+
+
+
+ {consent.consent_artefacts?.map((artefact, i) =>
+ artefact.status === "GRANTED" ? (
+
+ View Artefact {i + 1}
+
+ ) : (
+
+ + Artefact {i + 1} + + ) + )} + |
+