Fig. 1

Differences in data-complexity in community-acquired infections versus hospital-acquired infections. (A) Treatment courses in community-acquired infections (CAI) usually consist of sequential building blocks that can be easily assembled. (B1) Treatment courses in already hospitalized patients are often more complex and need to be thoroughly filtered to remove non-related prescriptions. Examples: B1. A prescription registered as prophylaxis has to be removed to prevent inclusion as starting point of the treatment course. (B2). An unlabelled prescription directly initiated after treatment has to be removed as it is a prophylactic prescription (duration > 28 days). B3. A non-related prophylactic prescription but started during HAI treatment has to be removed. Coloured blocks represent different types of antibiotics e.g. meropenem, ceftriaxone, ciprofloxacin