-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add configuration for DESPIAD project (#572)
* Add initial anonymisation config for ct * Add initial anonymisation config for pet * Add config for despiad * anonymnise all resources before notifying the export api this is because resources sharing the same StudyInstanceUID in Orthanc Raw will be combined into a single resource in Orthanc Anon. Previously, we would try to export each resource after anonymisation, but this meant other resources sharing the same StudyInstanceUID were not exported. * remove despaid.yaml from project config * generate label based on patient id and study count in xnat project * Use pseudo-anonymised StudyInstanceUID for xnat experiment label * Fix XNAT destination * remove changes related to grouping resources before notifying export api it's been addressed in another PR * remove duplicated tags * Add series_number_filters and allowed_manufacturers parameters to pixl project config * clarify docstring of _import_study_from_raw * Add min_instances_per_series parameter to project config In orthanc anon plugin, skip series that have few than min_instances_per_series instances * Keep study date and patient dob for despiad * Changes after reviewing the PET data for DESPIAD (#592) * Add Radiopharmaceutical Start DateTime to pet.yaml * remove blank lines from ct.yaml * remove tab from config file * filter series number by manufacturer also default to allowing no manufacturers * Add allowed_manufacturers for all test configs * Count number of instances skipped due to series having too few instances * move get_series_to_skip to dcmd * Add philips and carestream as allowed manufacturers for test project * Update description of project config in readme * Check _should_exclude_manufacurer before _should_exclude_series in case the manufacturer doesn't exist * filter out instance if manufacturer tag is missing * allow all manufacturers for existing projects * Add tests for PixlConfig.is_manufacturer_allowed and PixlConfig.is_series_number_excluded * Add more tests for _should_exclude_series * Add tests for test_should_exclude_manufacturer * Add tests for get_series_to_skip * Don't allow all manufacturers in the template config * Set min_instances to 2 for despiad * Only allow manufacturer GE MEDICAL SYSTEMS for DESPIAD * Keep Number of Time Slices attribute for PET * set 'pydicom.config.convert_wrong_length_to_UN = True' in dcmd * Add series filters to despiad config * Add series number and description filers for despiad * Use ints for series numbers to exclude * Update default config to exclude series with mip in their description * Add ^company as an allowed manufacturer when testing anonymisation * Use integers for series_number in tests * set min_instances_per_series to 2 by default * Set min_instances_per_series to 1 for testing --------- Co-authored-by: davecash75 <[email protected]>
- Loading branch information
1 parent
4af6ed0
commit 28db049
Showing
23 changed files
with
799 additions
and
45 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.