Characterization and management of technology-mediated adverse events in primary and community care