From 3c8091bd29a837ac444f81f618e3f4bff500c8cc Mon Sep 17 00:00:00 2001 From: Abishaa Vengadeswaran <38211976+vabishaa@users.noreply.github.com> Date: Fri, 5 Apr 2024 17:03:32 +0200 Subject: [PATCH] #53 - Change query of monitoring service - remove level 2 connection of resource CHD7 - include Orphacode 635 in the default monitoring query - remove sex filter in the default monitoring query --- .../search/v1/handler/BeaconIndividualsQueryHandler.java | 7 +++++-- src/main/resources/static/resources.txt | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/ejprarediseases/vpdpbackend/search/v1/handler/BeaconIndividualsQueryHandler.java b/src/main/java/org/ejprarediseases/vpdpbackend/search/v1/handler/BeaconIndividualsQueryHandler.java index 0174eb9..4064aea 100644 --- a/src/main/java/org/ejprarediseases/vpdpbackend/search/v1/handler/BeaconIndividualsQueryHandler.java +++ b/src/main/java/org/ejprarediseases/vpdpbackend/search/v1/handler/BeaconIndividualsQueryHandler.java @@ -119,9 +119,12 @@ private static BeaconRequestBodyQuerySection getDefaultQuerySection() { BeaconRequestBodyQuerySection querySection = new BeaconRequestBodyQuerySection(); List filters = new ArrayList<>(); BeaconRequestBodyOntologyFilter filter = new BeaconRequestBodyOntologyFilter(); - filter.setId(Collections.singletonList("Orphanet_730")); + List ids = new ArrayList<>(); + ids.add("Orphanet_730"); + ids.add("Orphanet_635"); + filter.setId(ids); filters.add(filter); - filters.add(buildSexFilter(Arrays.asList(Sex.values()))); + //filters.add(buildSexFilter(Arrays.asList(Sex.values()))); filters.add(buildMinAgeFilter(0)); filters.add(buildMaxAgeFilter(100)); filters.add(buildMinSymptomOnsetFilter(0)); diff --git a/src/main/resources/static/resources.txt b/src/main/resources/static/resources.txt index 3144f58..53e884a 100644 --- a/src/main/resources/static/resources.txt +++ b/src/main/resources/static/resources.txt @@ -344,7 +344,7 @@ }, { "resourceName": "CHD7", - "resourceAddress": "https://mutatiedatabases.molgeniscloud.org/api/beacon/individuals", + "resourceAddress": "", "resourceHomePage": "", "email": "abishaa.vengadeswaran@ejprd-project.eu", "resourceDescription": "", @@ -357,7 +357,7 @@ "specsURL": "", "logo": "", "resourceContentType": "", - "queryable": true, + "queryable": false, "queryType": ["BEACON_INDIVIDUALS"], "theme": [] },