diff --git a/src/clinical_etl/mohschemav3.py b/src/clinical_etl/mohschemav3.py index 26b20c5..a3ef2e8 100644 --- a/src/clinical_etl/mohschemav3.py +++ b/src/clinical_etl/mohschemav3.py @@ -285,6 +285,8 @@ def validate_donors(self, map_json): def validate_primary_diagnoses(self, map_json): if map_json["date_of_diagnosis"] is None: self.warn("NOTE: cannot calculate any date intervals for this patient without date_of_diagnosis") + if "clinical_tumour_staging_system" not in map_json and "pathological_tumour_staging_system" not in map_json: + self.warn("Either clinical_tumour_staging_system or pathological_staging_system is required") for prop in map_json: if prop == "clinical_tumour_staging_system": self.validate_staging_system(map_json, "clinical")