The endoscopy unit at Airedale Hospital has been awarded accreditation.