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

feat: replace hashed_id with pseudo study uid #389

Merged
merged 22 commits into from
May 16, 2024

Conversation

peshence
Copy link
Contributor

@peshence peshence commented May 2, 2024

Replace linking variable

from: PatientID=hash(PatientID+AccesseionNumber)
to: StudyInstanceUID=generate_uid()

Database is queried to check if a UID was already assigned to this image (identified by patient id and accession number for now, but to be switched to StudyUID once OMOP ES starts serving that)

Failing imaging and system tests
sys tests - due to expecting a predetermined folder name based on hashing algorithm
img tests - internal errors, unclear
Copy link

codecov bot commented May 2, 2024

Codecov Report

Attention: Patch coverage is 98.31933% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 83.38%. Comparing base (ac4b9ad) to head (35819bf).

Files Patch % Lines
pixl_core/src/core/uploader/_orthanc.py 0.00% 1 Missing ⚠️
pixl_dcmd/src/pixl_dcmd/main.py 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #389      +/-   ##
==========================================
+ Coverage   83.17%   83.38%   +0.21%     
==========================================
  Files          80       80              
  Lines        3280     3304      +24     
==========================================
+ Hits         2728     2755      +27     
+ Misses        552      549       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@peshence peshence requested a review from a team May 3, 2024 15:45
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.

Ah great thanks for getting this in. Couple of small changes. I'd really like to the pseudo image identifiers that have already been run in production, imagine we can rename easily enough

pixl_core/tests/conftest.py Outdated Show resolved Hide resolved
pixl_dcmd/src/pixl_dcmd/_database.py Outdated Show resolved Hide resolved
pixl_dcmd/src/pixl_dcmd/_database.py Outdated Show resolved Hide resolved
pixl_dcmd/src/pixl_dcmd/_database.py Outdated Show resolved Hide resolved
pixl_dcmd/src/pixl_dcmd/_database.py Show resolved Hide resolved
pixl_dcmd/tests/test_main.py Outdated Show resolved Hide resolved
pixl_dcmd/tests/test_main.py Outdated Show resolved Hide resolved
pixl_export/src/pixl_export/main.py Outdated Show resolved Hide resolved
pixl_core/src/core/uploader/_orthanc.py Outdated Show resolved Hide resolved
test/system_test.py Outdated Show resolved Hide resolved
@peshence peshence merged commit 830738e into main May 16, 2024
10 checks passed
@peshence peshence deleted the peshence/250-pseudo-study-uid branch May 16, 2024 17:14
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.

3 participants