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

Create human readable name for session/experiment #508

Open
stefpiatek opened this issue Oct 2, 2024 — with Linear · 1 comment
Open

Create human readable name for session/experiment #508

stefpiatek opened this issue Oct 2, 2024 — with Linear · 1 comment
Assignees

Comments

Copy link
Contributor

stefpiatek commented Oct 2, 2024

Work out a sensible, unique (per project) name for the experiment or session.

"{patient_id}_{modality?}_{something_unique for patient}"

thoughts:

  • primary key of the Image row?
  • n of row in current patient in database?

Create a follow up issue for being able to manually configure this at a project level

@p-j-smith
Copy link
Contributor

After discussing with @HChughtai, the easiest approach for now is to continue using the StudyInstanceUID to set the experiment label. We can then rename experiments in XNAT using a custom script for each project.

Going forward, we could implement the same label generation as the XNAT Desktop Client:

f"{patient_id}_{modality}_{count}"

Note:

  • we probably can't base this off something in the PIXL DB as users may upload data outside of PIXL and we want to avoid clashes with experiment labels. So we will need to query XNAT for existing experiment labels for the project / subject
  • if there are multiple modalities in the DICOM study, we will create a label that includes all modalities

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

No branches or pull requests

3 participants