some fixes to exporting clinicalstatements