@@ -39,8 +39,8 @@ class OverarchingDiseaseEpisodeMV(
3939 extent_episode_concept_id : so .Mapped [Optional [int ]] = so .mapped_column (sa .Integer , nullable = True )
4040 extent_episode_label : so .Mapped [Optional [str ]] = so .mapped_column (sa .String , nullable = True )
4141
42- extent_start_date : so .Mapped [Optional [date ]] = so .mapped_column (sa .Date , nullable = True )
43- extent_end_date : so .Mapped [Optional [date ]] = so .mapped_column (sa .Date , nullable = True )
42+ extent_episode_start_date : so .Mapped [Optional [date ]] = so .mapped_column (sa .Date , nullable = True )
43+ extent_episode_end_date : so .Mapped [Optional [date ]] = so .mapped_column (sa .Date , nullable = True )
4444
4545 def __repr__ (self ) -> str :
4646 if self .has_extent :
@@ -62,7 +62,7 @@ def disease_interval(self):
6262 def extent_interval (self ):
6363 if self .extent_episode_id is None :
6464 return None
65- return (self .extent_start_date , self .extent_end_date )
65+ return (self .extent_episode_start_date , self .extent_episode_end_date )
6666
6767@register_construct
6868class TreatmentRegimenCycleMV (
@@ -89,15 +89,15 @@ class TreatmentRegimenCycleMV(
8989 regimen_episode_concept_id : so .Mapped [int ] = so .mapped_column (sa .Integer )
9090 regimen_episode_label : so .Mapped [str ] = so .mapped_column (sa .String )
9191
92- regimen_start_date : so .Mapped [date ] = so .mapped_column (sa .Date )
93- regimen_end_date : so .Mapped [Optional [date ]] = so .mapped_column (sa .Date , nullable = True )
92+ regimen_episode_start_date : so .Mapped [date ] = so .mapped_column (sa .Date )
93+ regimen_episode_end_date : so .Mapped [Optional [date ]] = so .mapped_column (sa .Date , nullable = True )
9494
9595 cycle_episode_id : so .Mapped [Optional [int ]] = so .mapped_column (sa .Integer , nullable = True )
9696 cycle_episode_concept_id : so .Mapped [Optional [int ]] = so .mapped_column (sa .Integer , nullable = True )
9797 cycle_episode_label : so .Mapped [Optional [str ]] = so .mapped_column (sa .String , nullable = True )
9898
99- cycle_start_date : so .Mapped [Optional [date ]] = so .mapped_column (sa .Date , nullable = True )
100- cycle_end_date : so .Mapped [Optional [date ]] = so .mapped_column (sa .Date , nullable = True )
99+ cycle_episode_start_date : so .Mapped [Optional [date ]] = so .mapped_column (sa .Date , nullable = True )
100+ cycle_episode_end_date : so .Mapped [Optional [date ]] = so .mapped_column (sa .Date , nullable = True )
101101
102102
103103 def __repr__ (self ) -> str :
@@ -114,10 +114,10 @@ def has_cycle(self) -> bool:
114114
115115 @property
116116 def regimen_interval (self ):
117- return (self .regimen_start_date , self .regimen_end_date )
117+ return (self .regimen_episode_start_date , self .regimen_episode_end_date )
118118
119119 @property
120120 def cycle_interval (self ):
121121 if self .cycle_episode_id is None :
122122 return None
123- return (self .cycle_start_date , self .cycle_end_date )
123+ return (self .cycle_episode_start_date , self .cycle_episode_end_date )
0 commit comments