@@ -29,7 +29,7 @@ def resolve_snomed() -> None:
2929 """Resolve a SNOMED CT code directly to its OMOP concept."""
3030 print ("=== 1. SNOMED Direct Resolution ===" )
3131
32- client = omophub .OMOPHub (api_key = "oh_your_api_key" )
32+ client = omophub .OMOPHub ()
3333 try :
3434 result = client .fhir .resolve (
3535 system = "http://snomed.info/sct" ,
@@ -57,7 +57,7 @@ def resolve_icd10_mapped() -> None:
5757 """Resolve a non-standard ICD-10-CM code — automatically traverses Maps to."""
5858 print ("\n === 2. ICD-10-CM → SNOMED Mapping ===" )
5959
60- client = omophub .OMOPHub (api_key = "oh_your_api_key" )
60+ client = omophub .OMOPHub ()
6161 try :
6262 result = client .fhir .resolve (
6363 system = "http://hl7.org/fhir/sid/icd-10-cm" ,
@@ -89,7 +89,7 @@ def resolve_loinc() -> None:
8989 """Resolve a LOINC lab code to the OMOP measurement table."""
9090 print ("\n === 3. LOINC → Measurement ===" )
9191
92- client = omophub .OMOPHub (api_key = "oh_your_api_key" )
92+ client = omophub .OMOPHub ()
9393 try :
9494 result = client .fhir .resolve (
9595 system = "http://loinc.org" ,
@@ -116,7 +116,7 @@ def resolve_rxnorm() -> None:
116116 """Resolve an RxNorm drug code to the OMOP drug_exposure table."""
117117 print ("\n === 4. RxNorm → Drug Exposure ===" )
118118
119- client = omophub .OMOPHub (api_key = "oh_your_api_key" )
119+ client = omophub .OMOPHub ()
120120 try :
121121 result = client .fhir .resolve (
122122 system = "http://www.nlm.nih.gov/research/umls/rxnorm" ,
@@ -141,7 +141,7 @@ def resolve_text_only() -> None:
141141 """Resolve using only display text — triggers BioLORD semantic search."""
142142 print ("\n === 5. Text-Only Semantic Fallback ===" )
143143
144- client = omophub .OMOPHub (api_key = "oh_your_api_key" )
144+ client = omophub .OMOPHub ()
145145 try :
146146 # No system or code — just natural language text
147147 result = client .fhir .resolve (
@@ -168,7 +168,7 @@ def resolve_vocabulary_id_bypass() -> None:
168168 """Use vocabulary_id directly when you already know the OMOP vocabulary."""
169169 print ("\n === 6. Vocabulary ID Bypass ===" )
170170
171- client = omophub .OMOPHub (api_key = "oh_your_api_key" )
171+ client = omophub .OMOPHub ()
172172 try :
173173 # Skip URI resolution — go straight to the vocabulary
174174 result = client .fhir .resolve (
@@ -193,7 +193,7 @@ def resolve_with_recommendations() -> None:
193193 """Get Phoebe-recommended related concepts alongside the resolution."""
194194 print ("\n === 7. With Phoebe Recommendations ===" )
195195
196- client = omophub .OMOPHub (api_key = "oh_your_api_key" )
196+ client = omophub .OMOPHub ()
197197 try :
198198 result = client .fhir .resolve (
199199 system = "http://snomed.info/sct" ,
@@ -225,7 +225,7 @@ def resolve_with_quality() -> None:
225225 """Get a mapping quality signal to triage which resolutions need review."""
226226 print ("\n === 8. With Mapping Quality ===" )
227227
228- client = omophub .OMOPHub (api_key = "oh_your_api_key" )
228+ client = omophub .OMOPHub ()
229229 try :
230230 # Direct SNOMED match → "high" quality
231231 result = client .fhir .resolve (
@@ -273,7 +273,7 @@ def resolve_batch() -> None:
273273 """Resolve multiple codings in a single call with per-item error reporting."""
274274 print ("\n === 9. Batch Resolution ===" )
275275
276- client = omophub .OMOPHub (api_key = "oh_your_api_key" )
276+ client = omophub .OMOPHub ()
277277 try :
278278 result = client .fhir .resolve_batch (
279279 [
@@ -324,7 +324,7 @@ def resolve_codeable_concept() -> None:
324324 """Resolve a CodeableConcept with multiple codings — SNOMED wins by preference."""
325325 print ("\n === 10. CodeableConcept Resolution ===" )
326326
327- client = omophub .OMOPHub (api_key = "oh_your_api_key" )
327+ client = omophub .OMOPHub ()
328328 try :
329329 result = client .fhir .resolve_codeable_concept (
330330 coding = [
@@ -382,7 +382,7 @@ def resolve_codeable_concept_text_fallback() -> None:
382382 """When no structured coding resolves, fall back to the text field."""
383383 print ("\n === 11. CodeableConcept Text Fallback ===" )
384384
385- client = omophub .OMOPHub (api_key = "oh_your_api_key" )
385+ client = omophub .OMOPHub ()
386386 try :
387387 result = client .fhir .resolve_codeable_concept (
388388 coding = [
@@ -420,7 +420,7 @@ async def async_resolve() -> None:
420420 """Demonstrate async FHIR resolution with concurrent requests."""
421421 print ("\n === 12. Async FHIR Resolution ===" )
422422
423- async with omophub .AsyncOMOPHub (api_key = "oh_your_api_key" ) as client :
423+ async with omophub .AsyncOMOPHub () as client :
424424 # Single resolve
425425 result = await client .fhir .resolve (
426426 system = "http://snomed.info/sct" ,
@@ -463,7 +463,7 @@ def error_handling_examples() -> None:
463463 """Demonstrate error responses from the FHIR resolver."""
464464 print ("\n === Error Handling Examples ===" )
465465
466- client = omophub .OMOPHub (api_key = "oh_your_api_key" )
466+ client = omophub .OMOPHub ()
467467 try :
468468 # Unknown code system URI → 400 with suggestion
469469 print (" Typo in URI:" )
0 commit comments