Implementation of REST API to get clinical diagnoses of collection protocol