@staticmethod
def _report_specified_fields(specified_fields, nrows, nsample):
    """Transform the data objects to report objects

        Parameters
        ----------
        specified_fields : dict
            Dictionary with a `~pywhip.reporters.SpecificationErrorHandler`
            object for each field-specification combination.
        nrows : int
            Total rows of the current document working with, used to calculate
            passed rows as well
        nsample : int
            Number of samples (ordered on the number of rows) to retain for
            reporting purposes
        """
    for field, rules in specified_fields.items():
        for rule, error_report in rules.items():
            specified_fields[field][rule] = specified_fields[field][rule
                ].build_error_report(nrows, nsample)
    return specified_fields
