Two people have been taken to hospital after emergency services attended a care home in Dorset.