Skip to content

Commit

Permalink
feat: enable ignore case parameter for querying omim by name
Browse files Browse the repository at this point in the history
  • Loading branch information
stolpeo committed Jul 17, 2024
1 parent 6475981 commit 76f30a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/api/viguno/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,10 @@ export class VigunoClient {
*/
async queryOmimTermsByName(
query: string,
matchType: string = 'contains'
matchType: string = 'contains',
ignoreCase: boolean = true
): Promise<HpoOmimsResult> {
const url = `${this.apiBaseUrl}/hpo/omims?name=${query}&match=${matchType}`
const url = `${this.apiBaseUrl}/hpo/omims?name=${query}&match=${matchType}&ignore_case=${ignoreCase}`
const response = await fetch(url, {
method: 'GET'
})
Expand Down

0 comments on commit 76f30a1

Please sign in to comment.