Currently the entity(hospital) field is a string. It should be mapped to a entity in the entity table.