diff --git a/packages/esm-commons-lib/src/components/banner-tags/usePatientFamilyNames.ts b/packages/esm-commons-lib/src/components/banner-tags/usePatientFamilyNames.ts index 2a1e79835..f1c8c1acf 100644 --- a/packages/esm-commons-lib/src/components/banner-tags/usePatientFamilyNames.ts +++ b/packages/esm-commons-lib/src/components/banner-tags/usePatientFamilyNames.ts @@ -28,7 +28,10 @@ export const usePatientFamilyNames = (patientUuid: string) => { } const childRelationships = relationships - .filter((relationship) => relationship.relationshipType?.displayBIsToA === 'Child') + .filter( + (relationship) => + relationship.relationshipType?.displayBIsToA === 'Child' && relationship.personB?.uuid !== patientUuid, + ) .map((relationship) => relationship.personB?.display); setChildrenNames(childRelationships);