+ {(!labs || labs.length === 0) && (
+
+ )}
+ {labs && labs.length > 0 && (
+
+
+
+ {t('labs.lab.type')} |
+ {t('labs.lab.requestedOn')} |
+ {t('labs.lab.status')} |
+
+
+
+ {labs.map((lab) => (
+ onTableRowClick(lab)} key={lab.id}>
+ {lab.type} |
+ {format(new Date(lab.requestedOn), 'yyyy-MM-dd hh:mm a')} |
+ {lab.status} |
+
+ ))}
+
+
+ )}
+
+ )
+}
+
+export default LabsTab
diff --git a/src/patients/view/ViewPatient.tsx b/src/patients/view/ViewPatient.tsx
index fab29a157c..6119142e0b 100644
--- a/src/patients/view/ViewPatient.tsx
+++ b/src/patients/view/ViewPatient.tsx
@@ -18,6 +18,7 @@ import RelatedPerson from '../related-persons/RelatedPersonTab'
import useAddBreadcrumbs from '../../breadcrumbs/useAddBreadcrumbs'
import AppointmentsList from '../appointments/AppointmentsList'
import Note from '../notes/NoteTab'
+import Labs from '../labs/LabsTab'
const getPatientCode = (p: Patient): string => {
if (p) {
@@ -113,6 +114,11 @@ const ViewPatient = () => {
label={t('patient.notes.label')}
onClick={() => history.push(`/patients/${patient.id}/notes`)}
/>
+