Base classes for an OpenEHR implementation