Skip to content

Commit

Permalink
restore missing warning
Browse files Browse the repository at this point in the history
  • Loading branch information
yavyx committed Nov 18, 2024
1 parent 4ecf928 commit 7d9796b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/clinical_etl/mohschemav3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 7d9796b

Please sign in to comment.