export function getDeathAgePeriod(legacyDeathAgePeriod) { switch (legacyDeathAgePeriod.toLowerCase()) { case 'yrs': { return 'Years'; } case 'mts': { return 'Months'; } case 'dys': { return 'Days'; } default: { return legacyDeathAgePeriod; } } }