Nosocomial infections are a great source of concern for healthcare organizations. The spatial layout of hospitals and the movements of patients play significant roles in the spread of outbreaks. However, the existing models are ad-hoc for a specific hospital and research topic. This work shows the design of a data model to study the spread of infections among hospital patients. Its spatial dimension describes the hospital layout with several levels of detail, and the temporal dimension describes everything that happens to the patients in the form of events, which can relate to the spatial dimension. The model is meant to be sufficiently general to fit any hospital layout and to be used for different epidemiological research topics. We proved the model's suitability by defining six queries based on patients' movements and contacts that could assist in several epidemiological research tasks, such as discovering potential transmission routes. The model was implemented as an RDF* knowledge graph, and the queries were in SPARQL*. Finally, we designed two experiments in which two outbreaks of Clostridium difficile were analyzed using several queries (four in the first experiment and two in the second) on a knowledge graph (105,000 nodes, 185,000 edges) with synthetic data.