diff --git a/containers/ecr-viewer/src/app/tests/services/ecrMetadataService.test.ts b/containers/ecr-viewer/src/app/tests/services/ecrMetadataService.test.ts
index 9ed3caaad8..fc750191f4 100644
--- a/containers/ecr-viewer/src/app/tests/services/ecrMetadataService.test.ts
+++ b/containers/ecr-viewer/src/app/tests/services/ecrMetadataService.test.ts
@@ -33,7 +33,6 @@ describe("Evaluate Ecr Metadata", () => {
{ title: "EHR Manufacturer Model Name", value: "Epic - Version 10.1" },
{
title: "EHR Software Name",
- toolTip: "EHR system used by the sending provider.",
value: "Epic - Version 10.1",
},
]);
diff --git a/containers/ecr-viewer/src/app/tests/utils.test.tsx b/containers/ecr-viewer/src/app/tests/utils.test.tsx
index ca93dd2c8b..0a3b479270 100644
--- a/containers/ecr-viewer/src/app/tests/utils.test.tsx
+++ b/containers/ecr-viewer/src/app/tests/utils.test.tsx
@@ -559,7 +559,7 @@ describe("Utils", () => {
expect(tip.textContent).toInclude("Test child");
});
it("should make a tooltip", () => {
- render(
);
+ render(
Item Title);
const tip = screen.getByTestId("triggerElement");
expect(tip.className).toInclude("short-tooltip");
expect(tip.textContent).toInclude("Item Title");
@@ -567,7 +567,7 @@ describe("Utils", () => {
it("should not make the tool tip short if the tip has more than 100 character", () => {
const toolTip =
"1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890";
- render(
);
+ render(
Item Title);
const tip = screen.getByTestId("triggerElement");
expect(tip.className).not.toInclude("short-tooltip");
});
diff --git a/containers/ecr-viewer/src/app/view-data/component-utils.tsx b/containers/ecr-viewer/src/app/view-data/component-utils.tsx
index 1d805edb29..3577d4b781 100644
--- a/containers/ecr-viewer/src/app/view-data/component-utils.tsx
+++ b/containers/ecr-viewer/src/app/view-data/component-utils.tsx
@@ -1,6 +1,7 @@
import React, { ReactNode } from "react";
import classNames from "classnames";
import { toKebabCase } from "../services/formatService";
+import { ToolTipElement } from "./components/ToolTipElement";
type AccordionSectionProps = {
children: ReactNode;
@@ -34,6 +35,7 @@ interface AccordionSubSectionProps {
title: string;
className?: string;
idPrefix?: string;
+ toolTip?: string;
children: React.ReactNode;
}
@@ -43,6 +45,7 @@ interface AccordionSubSectionProps {
* @param props.children - The children elements.
* @param [props.className] - Additional CSS classes for customization.
* @param [props.idPrefix] - Optional prefix for the ID.
+ * @param [props.toolTip] - Optional content for a tooltip.
* @param [props.title] - The title of the subsection.
* @returns React element representing the AccordionSubSection component.
*/
@@ -50,11 +53,14 @@ export const AccordionSubSection = ({
title,
className,
idPrefix = "",
+ toolTip,
children,
}: AccordionSubSectionProps) => {
return (
-
{title}
+
+ {title}
+
{children}
);
diff --git a/containers/ecr-viewer/src/app/view-data/components/DataDisplay.tsx b/containers/ecr-viewer/src/app/view-data/components/DataDisplay.tsx
index 3993f82ab0..a22bab09c4 100644
--- a/containers/ecr-viewer/src/app/view-data/components/DataDisplay.tsx
+++ b/containers/ecr-viewer/src/app/view-data/components/DataDisplay.tsx
@@ -41,7 +41,7 @@ export const DataDisplay: React.FC<{
-
+ {item.title}
+ >
+ Reportable Condition
+
|
+ >
+ RCKMS Rule Summary
+
|
+ >
+ Jurisdiction Sent eCR
+
|