import { formatDate } from '../../../utils/dateUtils'; /** Who a submission went to, with the birth date that tells two people of one name apart. */ export const attachedPatientLabel = (name: string, birthDate?: string): string => birthDate ? `${name} (born ${formatDate(birthDate)})` : name;