Flag conflicting result cells before pooling review data
Two files can report a value for the same extraction key. Keep both source locations until a reviewer can reconcile the values. This synthetic file demonstrates a conflict and a second key where both sources agree.
study,arm,outcome,week,unit,value,source A,control,walk_distance,8,m,320,Paper Table 2 A,control,walk_distance,8,m,302,Appendix Table S3 B,control,walk_distance,8,m,310,Paper Table 2 B,control,walk_distance,8,m,310.0,Appendix Table S3 Save it as evidence.csv. The check groups by study, arm, outcome, week and unit, then compares the reported numeric values. Standardise units and decide which rows refer to the same outcome before relying on the check.
import csv from collections import defaultdict from decimal import Decimal by_result = defaultdict(list) key_fields = ("study", "arm", "outcome", "week", "unit") with open("evidence.csv", newline="", encoding="utf-8") as handle: for row in csv.DictReader(handle): value = row["value"].strip() if value: key = tuple(row[field].strip() for field in key_fields) by_result[key].append((Decimal(value), row["source"])) for key, observations in by_result.items(): if len({value for value, _ in observations}) > 1: details = " vs ".join(f"{value} ({source})" for value, source in observations) print(f"{'/'.join(key)}: {details}") On the sample this prints A/control/walk_distance/8/m: 320 (Paper Table 2) vs 302 (Appendix Table S3). The two forms of 310 compare equal. Check the source table’s headings, population and time point, then write down the chosen value and the reason. This check skips blanks and expects values expressed as plain decimals.
I work on RigorMed, an AI research workspace. Its evidence table example shows how source locators travel with a result.
The data are synthetic. I used AI assistance to draft this article, ran the example locally and checked the method against Cochrane Handbook chapter 5.
原文:https://www.a8q9.cn/en/article/flag-conflicting-result-cells-before-pooling-review-data-8d47e0.html