Exemple #1
0
    def get_report_line(self, row):
        if row['civicrm_case_id'] and row['civicrm_contact_id']:
            link = get_case_link(row['bioresource_id'], row["civicrm_case_id"],
                                 row["civicrm_contact_id"])
        else:
            link = get_contact_id_search_link(row["bioresource_id"],
                                              row["bioresource_id"])

        return '- {} Consent Date: {}\r\n'.format(link, row['consent_date']
                                                  or '')
Exemple #2
0
 def get_report_line(self, row):
     return '- {}; {}\r\n'.format(
         get_redcap_link(
             row['record'],
             9,
             row['record'],
         ),
         get_contact_id_search_link(
             'CiviCRM',
             row['record'],
         ),
     )
Exemple #3
0
    def get_report_line(self, row):
        errors = []

        if row["system_number_missing"] == 1:
            errors.append('UHL System number not found')

        if row["nhs_number_mismatch"] == 1:
            errors.append(
                'NHS Number mismatch (Study=\'{}\'; PMI=\'{}\')'.format(
                    row['study_nhs_number'], row['pmi_nhs_number']))

        if row["date_of_birth_mismatch"] == 1:
            errors.append('DOB mismatch (Study=\'{}\'; PMI=\'{}\')'.format(
                row['study_date_of_birth'], row['pmi_date_of_birth']))

        return '- {}: {}\n'.format(
            get_contact_id_search_link(row["StudyID"], row["StudyID"]),
            '; '.join(errors))
Exemple #4
0
 def get_report_line(self, row):
     return "- **{}**\r\n".format(
         get_contact_id_search_link(row['scad_id'], row['scad_id']))
Exemple #5
0
 def get_report_line(self, row):
     return '- {}\r\n'.format(
         get_contact_id_search_link(
             row["bioresource_id"],
             row["bioresource_id"],
         ))
Exemple #6
0
 def get_report_line(self, row):
     return '- {} {}\r\n'.format(
         get_contact_id_search_link(row['bioresource_id'],
                                    row['bioresource_id']),
         '{:%d-%b-%Y}'.format(row['consent_date'])
         if row['consent_date'] else '')
 def get_report_line(self, row):
     return '- {}\r\n'.format(
         get_contact_id_search_link(row['StudyNumber'], row['StudyNumber']))