From f968f82d80b0098ee3661b38460f857d1b2a6c76 Mon Sep 17 00:00:00 2001
From: Tetiana <98550542+Nelliney@users.noreply.github.com>
Date: Fri, 15 Nov 2024 13:19:42 -0800
Subject: [PATCH] Add description to top of resource tab on patient view
(#4964)
Co-authored-by: Ino de Bruijn
---
src/shared/components/resources/ResourceTab.tsx | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/shared/components/resources/ResourceTab.tsx b/src/shared/components/resources/ResourceTab.tsx
index cef8680d1c4..1328d79b0f8 100644
--- a/src/shared/components/resources/ResourceTab.tsx
+++ b/src/shared/components/resources/ResourceTab.tsx
@@ -129,6 +129,9 @@ export default class ResourceTab extends React.Component<
{this.currentResourceDatum.sampleId
? this.currentResourceDatum.sampleId
: this.currentResourceDatum.patientId}
+ {this.currentResourceDatum.resourceDefinition
+ .description &&
+ ` | ${this.currentResourceDatum.resourceDefinition.description}`}