import { IFormField , IFormData } from '@client/forms' ; export function hasCaseOfDeathSectionTransformer ( transformedData , queryData , sectionId , field ) { if ( queryData . causeOfDeathMethod || queryData . causeOfDeath ) { transformedData [ sectionId ] [ field . name ] = true ; } else { transformedData [ sectionId ] [ field . name ] = false ; } return transformedData ; }