def num_existing_reports(ir_json_v6):
    """
    This returns the number of existing clinical reports (i.e. summary of findings) for a case
    This can be used to check that there aren't any existing clinical reports before submitting a new one,
    or to check that there is only one clinical report when submitting an exit questionnaire
    """
    return len(ir_json_v6.get("clinical_report"))