Preparing discharge reporting