Constructs the API URL by appending valid parameters to the base URL based on the user query
If the user query is not correct return appropriate response
Example
User query : Male subjects suffering from adhd
Output : https://api.neurobagel.org/query/?sex=snomed:248153007&diagnosis=snomed:406506008&is_control=false
User query : subjects between age 2 to 7 with ocd and t2 weighted image modal
Output : https://api.neurobagel.org/query/?min_age=2.0&max_age=7.0&diagnosis=snomed:191736004&is_control=false&image_modal=nidm:T2Weighted
User query : Female healthy control subjects with parkinsons
Output : Subjects cannot both be healthy controls and have a diagnosis.
Example