Skip to content

Commit fc82673

Browse files
committed
Deploying to gh-pages from @ 2c18aae 🚀
1 parent 2917e2e commit fc82673

59 files changed

Lines changed: 1135 additions & 115 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: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

articles/getting-started.html

Lines changed: 59 additions & 3 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: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,60 @@ tryCatch(
326326
)
327327
```
328328

329+
## FHIR-to-OMOP Resolution
330+
331+
The FHIR resolver translates FHIR coded values to OMOP standard concepts
332+
in a single call — handling URI mapping, code lookup, `Maps to`
333+
traversal, and CDM target table assignment automatically.
334+
335+
### Single Coding
336+
337+
``` r
338+
result <- client$fhir$resolve(
339+
system = "http://snomed.info/sct",
340+
code = "44054006",
341+
resource_type = "Condition"
342+
)
343+
cat(result$resolution$standard_concept$concept_name)
344+
cat(result$resolution$target_table) # "condition_occurrence"
345+
cat(result$resolution$mapping_type) # "direct"
346+
```
347+
348+
### Non-Standard Code (Automatic Maps-to Traversal)
349+
350+
``` r
351+
result <- client$fhir$resolve(
352+
system = "http://hl7.org/fhir/sid/icd-10-cm",
353+
code = "E11.9"
354+
)
355+
cat(result$resolution$mapping_type) # "mapped"
356+
cat(result$resolution$standard_concept$vocabulary_id) # "SNOMED"
357+
```
358+
359+
### Batch Resolution
360+
361+
``` r
362+
batch <- client$fhir$resolve_batch(list(
363+
list(system = "http://snomed.info/sct", code = "44054006"),
364+
list(system = "http://loinc.org", code = "2339-0")
365+
))
366+
cat(sprintf("Resolved: %d/%d\n", batch$summary$resolved, batch$summary$total))
367+
```
368+
369+
### CodeableConcept with Vocabulary Preference
370+
371+
``` r
372+
result <- client$fhir$resolve_codeable_concept(
373+
coding = list(
374+
list(system = "http://snomed.info/sct", code = "44054006"),
375+
list(system = "http://hl7.org/fhir/sid/icd-10-cm", code = "E11.9")
376+
),
377+
resource_type = "Condition"
378+
)
379+
# SNOMED wins over ICD-10-CM per OHDSI preference
380+
cat(result$best_match$resolution$source_concept$vocabulary_id) # "SNOMED"
381+
```
382+
329383
## Further Resources
330384

331385
- [OMOPHub API Documentation](https://docs.omophub.com)

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: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

authors.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
## Citation
1111

1212
Source:
13-
[`DESCRIPTION`](https://github.com/omopHub/omophub-R/blob/v1.5.0/DESCRIPTION)
13+
[`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.5.0, <https://github.com/omopHub/omophub-R>.
16+
API*. R package version 1.6.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.5.0},
22+
note = {R package version 1.6.0},
2323
url = {https://github.com/omopHub/omophub-R},
2424
}

0 commit comments

Comments
 (0)