Project

General

Profile

« Previous | Next » 

Revision 2a5a697a

Added by Benjamin Dauvergne about 13 years ago

scripts: use PatientRecord.display_name to initialize Event.title in import_rs.py

View differences:

scripts/import_rs.py
act_type=row['act_type'],
old_rs_id=row['id'],
room=Room(id=1),
title=row['libelle'],
title=row['enfant'].display_name,
description=row['texte'])
row['event'] = event
events.append(event)
......
act_type=row['act_type'],
old_rr_id=row['id'],
room=Room(id=1),
title=row['libelle'],
title=row['enfant'].display_name,
description=row['texte'],
recurrence_periodicity=row['recurrence_periodicity'],
recurrence_end_date=row['end_date'])
......
act_type=row['act_type'],
old_rs_id=row['id'],
room=Room(id=1),
title=row['libelle'],
title=row['enfant'].display_name,
description=row['texte'],
exception_to=event,
exception_date=row['date'])

Also available in: Unified diff