Skip to content

Commit 1281e92

Browse files
committed
Deploying to gh-pages from @ 322ecd5 🚀
1 parent 3c3e15a commit 1281e92

49 files changed

Lines changed: 175 additions & 58 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

404.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSE-text.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSE.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

articles/getting-started.html

Lines changed: 54 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

articles/getting-started.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,54 @@ similar <- client$search$similar(
172172
)
173173
```
174174

175+
## Bulk Search
176+
177+
Search for multiple queries in a single API call — much faster than
178+
individual requests when you have many terms to look up.
179+
180+
### Bulk Lexical Search
181+
182+
Execute up to 50 keyword searches at once:
183+
184+
``` r
185+
results <- client$search$bulk_basic(list(
186+
list(search_id = "q1", query = "diabetes mellitus"),
187+
list(search_id = "q2", query = "hypertension"),
188+
list(search_id = "q3", query = "aspirin")
189+
), defaults = list(vocabulary_ids = list("SNOMED"), page_size = 5))
190+
191+
# Each result is matched by search_id
192+
for (item in results$results) {
193+
cat(sprintf("%s: %d results\n", item$search_id, length(item$results)))
194+
}
195+
```
196+
197+
### Bulk Semantic Search
198+
199+
Execute up to 25 natural-language searches using neural embeddings:
200+
201+
``` r
202+
results <- client$search$bulk_semantic(list(
203+
list(search_id = "s1", query = "heart failure treatment options"),
204+
list(search_id = "s2", query = "type 2 diabetes medication")
205+
), defaults = list(threshold = 0.5, page_size = 10))
206+
207+
for (item in results$results) {
208+
cat(sprintf("%s: %d results\n", item$search_id,
209+
item$result_count %||% length(item$results)))
210+
}
211+
```
212+
213+
Defaults apply to all searches; per-search values override them:
214+
215+
``` r
216+
# Different domains per query, shared vocabulary filter
217+
results <- client$search$bulk_basic(list(
218+
list(search_id = "cond", query = "diabetes", domain_ids = list("Condition")),
219+
list(search_id = "drug", query = "metformin", domain_ids = list("Drug"))
220+
), defaults = list(vocabulary_ids = list("SNOMED", "RxNorm"), page_size = 5))
221+
```
222+
175223
## Autocomplete
176224

177225
Get suggestions for autocomplete:

articles/index.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

authors.html

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

authors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ Source:
1313
[`DESCRIPTION`](https://github.com/omopHub/omophub-R/blob/main/DESCRIPTION)
1414

1515
Chen A (2026). *omophub: R Client for the 'OMOPHub' Medical Vocabulary
16-
API*. R package version 1.4.0, <https://github.com/omopHub/omophub-R>.
16+
API*. R package version 1.5.0, <https://github.com/omopHub/omophub-R>.
1717

1818
@Manual{,
1919
title = {omophub: R Client for the 'OMOPHub' Medical Vocabulary API},
2020
author = {Alex Chen},
2121
year = {2026},
22-
note = {R package version 1.4.0},
22+
note = {R package version 1.5.0},
2323
url = {https://github.com/omopHub/omophub-R},
2424
}

index.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

news/index.html

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)