Commit 1c9ccfe
Fix issues in examples (#19)
* Add FHIR resolver example script
- Introduced a new script `fhir_resolver.py` that demonstrates FHIR-to-OMOP concept resolution using the OMOPHub SDK.
- The script includes examples for resolving SNOMED, ICD-10-CM, LOINC, RxNorm codes, and text-only semantic searches.
- Added functionality for direct standard lookups, non-standard code mapping, and Phoebe recommendations.
- Supports batch resolution and asynchronous usage for improved performance.
* Implement FHIR type interoperability and client helpers
- Added support for FHIR type interoperability in the resolver, allowing acceptance of various Coding-like inputs (dicts, TypedDicts, and objects with .system/.code attributes).
- Introduced new FHIR type definitions (`Coding`, `CodeableConcept`) and runtime-checkable protocols (`CodingLike`, `CodeableConceptLike`) for structural matching.
- Implemented FHIR client interop helpers to configure external libraries (`fhirpy`, `fhir.resources`) with OMOPHub's FHIR Terminology Service.
- Enhanced `Fhir.resolve`, `Fhir.resolve_batch`, and `Fhir.resolve_codeable_concept` methods to accept mixed input types.
- Updated documentation and examples to reflect new functionalities and usage patterns.
- Added comprehensive unit and integration tests to validate new features and ensure compatibility.
* Refactor examples to remove hardcoded API keys
- Updated example scripts.
- Adjusted search and resolution methods in examples to reflect the new API response structures, ensuring consistency across examples.
- Improved documentation and comments in example scripts for clarity and better user guidance.
* Add aiohappyeyeballs and update aiohttp dependencies in uv.lock (#17)
- Added new package `aiohappyeyeballs` version 2.6.2 with source and wheel details.
- Updated `aiohttp` to version 3.13.5, including its dependencies and corresponding source and wheel information.
- Enhanced package management for improved compatibility and functionality.
Co-authored-by: alex-omophub <sdk@omophub.com>
* v1.71. prep
* Update search examples to reflect new API response structures
- Adjusted the `basic_search`, `filtered_search`, and `bulk_lexical_search` functions to handle the updated response format from the `client.search` methods, ensuring that results are accessed correctly from the returned dictionaries.
- Enhanced comments in the code to clarify the structure of the responses and improve overall documentation for better user understanding.
* Refactor search examples to streamline API response handling
- Updated `basic_search`, `filtered_search`, and `bulk_lexical_search` functions to directly access results from the `client.search` methods, simplifying the code structure.
- Enhanced comments to clarify the response formats and improve documentation for better user understanding.
---------
Co-authored-by: alex-omophub <sdk@omophub.com>1 parent cc2d882 commit 1c9ccfe
0 file changed
0 commit comments