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

ehr-api becomes export-api; losing and gaining some features #370

Merged
merged 59 commits into from
Apr 30, 2024

Conversation

jeremyestein
Copy link
Contributor

@jeremyestein jeremyestein commented Apr 11, 2024

Fixes #321

DICOMWeb uploads are known not to work; this is being fixed in #381

Git hasn't detected some files as renames, so you may wish to do:
git difftool main:pixl_ehr/src/pixl_ehr/main.py jeremy/export-api:pixl_export/src/pixl_export/main.py
git difftool main:pixl_ehr/tests/test_ehr_processing.py jeremy/export-api:pixl_export/tests/test_export_processing.py
etc.

TODO:

  • Fix up various readmes
  • Check test coverage hasn't changed for the worse (maybe deleted tests could be reapplied somewhere else?)
  • Add test for anon->export API call
  • Do the tests I deleted related to the ehr_ tables need to be applied to the image table instead?
  • Find the "top level document for step naming" (see issue)
  • Work out what needs to be done with the radiology linker table
  • Convert remaining bits to loguru?
  • Rename _EHR_ env variables

…o better reflect what it

now does, and to match the API endpoint name.
ehr-api/export-api, plus a bit of config to get it working there.
Currently just moved into main module; will need organising
into modules and other fixes in due course.
checked manually and was obscuring errors, making debugging harder.
@jeremyestein jeremyestein requested a review from a team April 26, 2024 15:40
Copy link
Member

@milanmlft milanmlft left a comment

Choose a reason for hiding this comment

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

Looking great! 🚀
I think we just need to tweak the Uploader.upload_dicom_image() method a bit and make sure the Dicomweb uploader is still working.

cli/src/pixl_cli/_config.py Outdated Show resolved Hide resolved
pixl_export/src/pixl_export/main.py Show resolved Hide resolved
pixl_export/src/pixl_export/main.py Show resolved Hide resolved
@milanmlft
Copy link
Member

OK so I pushed some changes to update the DICOMweb uploader and its tests, which includes a rework done by @stefpiatek in #378. This will break core and system tests, but that's to be expected because I don't think the DicomWebUploader is working... Sorry about this, #379 shouldn't have been merged in after all 😞

Copy link
Contributor

@peshence peshence 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, mostly pointing out some docs that potentially need updating, feel free to resolve all of these as you see fit.

Nice work! 🚀

cli/src/pixl_cli/main.py Outdated Show resolved Hide resolved
orthanc/orthanc-anon/plugin/pixl.py Show resolved Hide resolved
orthanc/orthanc-anon/plugin/pixl.py Outdated Show resolved Hide resolved
orthanc/orthanc-anon/plugin/pixl.py Show resolved Hide resolved
pixl_core/README.md Outdated Show resolved Hide resolved
pixl_imaging/README.md Outdated Show resolved Hide resolved
test/docker-compose.yml Show resolved Hide resolved
Copy link
Contributor

@stefpiatek stefpiatek left a comment

Choose a reason for hiding this comment

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

Really nice to see us stripping away so much. Thanks for getting this in Jeremy. Some suggestions, think integration of dicomweb will take a bit and then worth switching over to loguru for export-api

docs/file_types/parquet_files.md Outdated Show resolved Hide resolved
pixl_export/src/pixl_export/_orthanc.py Outdated Show resolved Hide resolved
cli/src/pixl_cli/main.py Outdated Show resolved Hide resolved
cli/tests/test_populate.py Show resolved Hide resolved
pixl_core/src/core/uploader/_dicomweb.py Outdated Show resolved Hide resolved
pixl_export/src/pixl_export/main.py Outdated Show resolved Hide resolved
pixl_export/src/pixl_export/main.py Show resolved Hide resolved
pixl_export/tests/test_export_processing.py Outdated Show resolved Hide resolved
test/docker-compose.yml Show resolved Hide resolved
cli/src/pixl_cli/main.py Outdated Show resolved Hide resolved
@jeremyestein jeremyestein enabled auto-merge (squash) April 30, 2024 14:30
@jeremyestein jeremyestein merged commit 107c267 into main Apr 30, 2024
8 checks passed
@jeremyestein jeremyestein deleted the jeremy/export-api branch April 30, 2024 14:51
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.

Convert ehr api to export api
4 participants