Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ingress Endpoint Implementation #319

Merged
merged 14 commits into from
Nov 24, 2021
Merged

Ingress Endpoint Implementation #319

merged 14 commits into from
Nov 24, 2021

Conversation

dixonwhitmire
Copy link
Member

@dixonwhitmire dixonwhitmire commented Nov 23, 2021

This PR adds /ingress and /ingress/upload endpoints to connect. The "ingress" endpoints are used to handle all supported health protocols/formats including ASC X12, DICOM, FHIR, and HL7 (C-CDA is slated for a future release). The "ingress" provide a single integration point which removes the need for separate endpoints for each format.

Changes include:

  • /ingress and /ingress/upload implementations
  • integration with linuxforhealth-edi for data validation support
  • updated Connect dependencies from "*" (any) versions to specific versions to align with best practices
  • updated LinuxForHealth transmission attributes field to support dictionary values rather than a string
  • realigned fixtures so that the existing X12 and FHIR routes use the same fixtures as ingress

I will create a new issue to support a configurable maximum request size for /ingress [POST]. The idea being that if a payload exceeds the size, clients would use /ingress/upload [POST] to upload the data message.

We will continue to store EDI message payloads within Kafka until #311 is implemented.

resolves #278 , #281 , #299

@dixonwhitmire dixonwhitmire linked an issue Nov 23, 2021 that may be closed by this pull request
with open(file_path, "r") as f:
return json.loads(f.read())
def fhir_resource(fhir_fixture) -> Dict:
return json.loads(fhir_fixture)

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice - a fixture based on a fixture...

Copy link

@ccorley ccorley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just one comment on the test naming we might want to change. Nice advancement with the test case parameterization!

Signed-off-by: Dixon Whitmire <[email protected]>
@dixonwhitmire dixonwhitmire linked an issue Nov 24, 2021 that may be closed by this pull request
@dixonwhitmire dixonwhitmire merged commit 3831f9c into LinuxForHealth:main Nov 24, 2021
@dixonwhitmire dixonwhitmire deleted the ingress-endpoint branch November 24, 2021 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create ingress endpoint Implement HL7v2 Route Implement X12 Route
2 participants