From 76f30a17d84a7b421cd5af06b93ed8f4235a25cb Mon Sep 17 00:00:00 2001 From: Oliver Stolpe Date: Wed, 17 Jul 2024 10:28:58 +0200 Subject: [PATCH] feat: enable ignore case parameter for querying omim by name --- src/api/viguno/client.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/api/viguno/client.ts b/src/api/viguno/client.ts index 5e411a4..2418bc2 100644 --- a/src/api/viguno/client.ts +++ b/src/api/viguno/client.ts @@ -60,9 +60,10 @@ export class VigunoClient { */ async queryOmimTermsByName( query: string, - matchType: string = 'contains' + matchType: string = 'contains', + ignoreCase: boolean = true ): Promise { - 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' })