An Electronic Health Record Model for the Spatial Epidemiological Analysis of Clinical Data