Skip to content

Commit c7120fe

Browse files
committed
removed the logic for bounding the event time stamps
1 parent 73d6f2b commit c7120fe

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/cehrbert/data_generators/hf_data_generator/meds_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ def create_dataset_from_meds_reader(
187187
LOG.info("The include_auxiliary_token: %s", data_args.include_auxiliary_token)
188188
LOG.info("The include_demographic_prompt: %s", data_args.include_demographic_prompt)
189189
LOG.info("The meds_exclude_tables: %s", "\n".join(data_args.meds_exclude_tables))
190+
LOG.info("The disconnect_problem_list_events: %s", data_args.disconnect_problem_list_events)
190191

191192
train_dataset = _create_cehrbert_data_from_meds(
192193
data_args=data_args,

src/cehrbert/data_generators/hf_data_generator/patient_block.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,6 @@ def _convert_event(self, event) -> List[Event]:
260260
numeric_value = getattr(event, "numeric_value", None)
261261
unit = getattr(event, "unit", None)
262262

263-
# We need to bound the event time within the visit start and end
264-
time = max(time, self.block_start_time)
265-
time = min(time, self.block_end_time)
266-
267263
if numeric_value is None and text_value is not None:
268264
conversion_rule = self.conversion.get_text_event_to_numeric_events_rule(code)
269265
if conversion_rule:

0 commit comments

Comments
 (0)