def get_report_line(self, row): return '- {}: {} / {} - {}\r\n\r\n'.format( row['scad_id'], get_redcap_link('Clinic', row['scad_clinic_project_id'], row['scad_id']), get_redcap_link('Registry', row['scad_reg_project_id'], row['scadreg_id']), row['error_message'])
def get_report_line(self, row): return '- {}\r\n'.format( get_redcap_link( row['StudyNumber'] or 'Click Here', row['project_id'], row['StudyNumber'], ))
def get_report_lines(self, cursor): markdown = '' for p in cursor: markdown += "- **{}**\r\n".format(get_redcap_link( p['StudyNumber'], 28, p['StudyNumber'])) markdown += "\r\n\r\n".format() return markdown, cursor.rowcount
def get_report_line(self, row): missing_fields = [f for f in self.fields if row[f] == 1] return '- {}: ({})\r\n'.format( get_redcap_link( row['ID'], REDCAP_PROJECT_ID, row['ID'], ), ', '.join(missing_fields), )
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'], ), )
def get_report_lines(self, cursor): markdown = '' count = 0 for p in cursor: count += 1 markdown += "- **{}**\r\n".format(get_redcap_link( p['fast_id'], 43, p['fast_id'])) markdown += "\r\n\r\n".format() return markdown, count
def get_report_line(self, row): return '- {}\r\n'.format( get_redcap_link(row['record'], row['project_id'], row['record']))
def get_report_line(self, row): return '- {}: Baseline = {:%d %B %Y} ({} days ago)\r\n'.format( get_redcap_link(row['record'], row['project_id'], row['record']), row['baseline_date'], row['age'])
def get_report_line(self, row): return '- {}\r\n\r\n'.format( get_redcap_link( row['fast_id'], row["project_id"], row["record"]))