Skip to content

Commit

Permalink
fix: SJIP-768 use regex to only use mondo code for filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
aperron-ferlab committed Apr 24, 2024
1 parent a7f3a32 commit 27ff97f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/endpoints/statistics/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,15 +274,7 @@ export const fetchTopDiagnosis = async (client: Client): Promise<Diagnosis[]> =>
terms: {
field: 'diagnosis.mondo_id_diagnosis',
size: 10,
exclude: [
'complete trisomy 21 (MONDO:0700030)',
'Down syndrome (MONDO:0008608)',
'mosaic translocation Down syndrome (MONDO:0700129)',
'mosaic trisomy 21 (MONDO:0700127)',
'partial segmental duplication (MONDO:0700130)',
'translocation Down syndrome (MONDO:0700128)',
'trisomy 21 (MONDO:0700126)',
],
exclude: '.*MONDO:(0700030|0008608|0700129|0700127|0700130|0700128|0700126).*',

This comment has been minimized.

Copy link
@celinepelletier

celinepelletier Apr 24, 2024

Member

❤️

},
},
},
Expand Down

0 comments on commit 27ff97f

Please sign in to comment.