examples/clean_ehr_records: bugfix