Implement integration gateway base architecture#125
Merged
jenniferjiangkells merged 33 commits intomainfrom Jun 5, 2025
Merged
Implement integration gateway base architecture#125jenniferjiangkells merged 33 commits intomainfrom
jenniferjiangkells merged 33 commits intomainfrom
Conversation
…to feature/integration-gateway
adamkells
reviewed
May 22, 2025
Contributor
adamkells
left a comment
There was a problem hiding this comment.
Looks good to me. I left a few comments, mostly to gain some clarifications for my own understanding. But overall it looks really good.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Addresses #105 and #107 as part of the Integration layer milestone
New Features
HealthChainAPI(gateway/api) - wraps FastAPI to provide healthcare-specific integrations, replaces theServicemodule.gateway/protocols) - use cases in the previous sandbox module (cdsandclindoc) are refactored asGatewaymodules, which provide a consistent interface for handling different protocols through the decorator pattern for handler registration.EventDispatcher(gateway/events) - wrapsfastapi-eventsand provides basic functionality for publishing events.sandbox/and deprecated@hc.apidecorator as service is now handled byHealthChainAPI. The sandbox is only used to configure EHR clients now.FHIRGatewayimplements basic FHIR routes and client but is a work in progress.Technical Implementation
EventDispatcheris implemented as a mixin toBaseGatewayCore Modules
BaseGateway: The central abstraction for all protocol gateway implementationsEventDispatcherMixin: A reusable mixin that provides event dispatchingHealthChainAPI: FastAPI wrapper for healthcare gateway registrationFHIRGateway: FHIR REST API protocol (WIP)CDSHooksGateway: CDS Hooks protocolNoteReaderGateway: SOAP/CDA protocolUsage Examples
Updated sandbox usage:
Breaking Changes
@hc.apiis deprecated in sandbox@hc.sadboxdecorator must take in api url argumentDocumentation TODOs (for release)