Skip to content

Add configuration for DESPIAD project #572

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

Merged
merged 53 commits into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
54eb64f
Add initial anonymisation config for ct
p-j-smith Dec 12, 2024
2730317
Add initial anonymisation config for pet
p-j-smith Dec 12, 2024
ff2a8c3
Add config for despiad
p-j-smith Dec 12, 2024
f20d5b8
anonymnise all resources before notifying the export api
p-j-smith Dec 12, 2024
d13b916
remove despaid.yaml from project config
p-j-smith Dec 12, 2024
6097314
Merge branch 'main' into paul/despiad-config
p-j-smith Dec 12, 2024
8a4a793
Merge branch 'main' into paul/despiad-config
p-j-smith Dec 16, 2024
01bf793
generate label based on patient id and study count in xnat project
p-j-smith Dec 17, 2024
5a47136
Use pseudo-anonymised StudyInstanceUID for xnat experiment label
p-j-smith Dec 17, 2024
28f92a6
Fix XNAT destination
p-j-smith Dec 17, 2024
901eaf1
Merge branch 'main' into paul/despiad-config
p-j-smith Dec 19, 2024
4fd226a
remove changes related to grouping resources before notifying export api
p-j-smith Dec 19, 2024
c2fcbe4
remove duplicated tags
p-j-smith Dec 19, 2024
5d3c69d
Add series_number_filters and allowed_manufacturers parameters to pix…
p-j-smith Jan 2, 2025
32dd84f
clarify docstring of _import_study_from_raw
p-j-smith Jan 6, 2025
7867eff
Add min_instances_per_series parameter to project config
p-j-smith Jan 6, 2025
7215191
Merge branch 'main' into paul/despiad-config
p-j-smith Jan 6, 2025
70d6794
Merge branch 'main' into paul/despiad-config
p-j-smith Jan 7, 2025
0b90ddf
Merge branch 'main' into paul/despiad-config
p-j-smith Jan 8, 2025
4cd4c7e
Keep study date and patient dob for despiad
p-j-smith Jan 8, 2025
397c6b1
Changes after reviewing the PET data for DESPIAD (#592)
davecash75 Jan 13, 2025
b6bcb3c
Add Radiopharmaceutical Start DateTime to pet.yaml
p-j-smith Jan 13, 2025
ffeb70d
remove blank lines from ct.yaml
p-j-smith Jan 13, 2025
f6095a8
remove tab from config file
p-j-smith Jan 13, 2025
b231a60
filter series number by manufacturer
p-j-smith Jan 14, 2025
5a9c52e
Add allowed_manufacturers for all test configs
p-j-smith Jan 14, 2025
f7d94e1
Count number of instances skipped due to series having too few instances
p-j-smith Jan 15, 2025
1891df0
move get_series_to_skip to dcmd
p-j-smith Jan 15, 2025
9597559
Add philips and carestream as allowed manufacturers for test project
p-j-smith Jan 15, 2025
855f82d
Merge branch 'main' into paul/despiad-config
p-j-smith Jan 15, 2025
5ea6418
Update description of project config in readme
p-j-smith Jan 15, 2025
aa170a6
Check _should_exclude_manufacurer before _should_exclude_series
p-j-smith Jan 21, 2025
f1eed49
filter out instance if manufacturer tag is missing
p-j-smith Jan 21, 2025
46d2109
allow all manufacturers for existing projects
p-j-smith Jan 21, 2025
09748bf
Merge branch 'main' into paul/despiad-config
p-j-smith Jan 21, 2025
5d4232f
Merge branch 'main' into paul/despiad-config
p-j-smith Jan 27, 2025
b6872b9
Add tests for PixlConfig.is_manufacturer_allowed and PixlConfig.is_se…
p-j-smith Jan 27, 2025
6b707cb
Add more tests for _should_exclude_series
p-j-smith Jan 27, 2025
a7c5917
Add tests for test_should_exclude_manufacturer
p-j-smith Jan 27, 2025
7527b62
Add tests for get_series_to_skip
p-j-smith Jan 28, 2025
4f59e79
Don't allow all manufacturers in the template config
p-j-smith Jan 28, 2025
48b3fd7
Set min_instances to 2 for despiad
p-j-smith Jan 28, 2025
332e648
Only allow manufacturer GE MEDICAL SYSTEMS for DESPIAD
p-j-smith Jan 29, 2025
ee5eb87
Keep Number of Time Slices attribute for PET
p-j-smith Jan 29, 2025
2084bdb
set 'pydicom.config.convert_wrong_length_to_UN = True' in dcmd
p-j-smith Jan 30, 2025
fadc695
Add series filters to despiad config
p-j-smith Jan 30, 2025
c1bfc73
Add series number and description filers for despiad
p-j-smith Jan 30, 2025
ad91125
Use ints for series numbers to exclude
p-j-smith Jan 30, 2025
fe18df1
Update default config to exclude series with mip in their description
p-j-smith Jan 30, 2025
9b749e6
Add ^company as an allowed manufacturer when testing anonymisation
p-j-smith Feb 4, 2025
eb4ee95
Use integers for series_number in tests
p-j-smith Feb 4, 2025
ecb04ce
set min_instances_per_series to 2 by default
p-j-smith Feb 4, 2025
caf101a
Set min_instances_per_series to 1 for testing
p-j-smith Feb 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions projects/configs/despiad.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright (c) 2024 University College London Hospitals NHS Foundation Trust
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

project:
name: "despiad"
modalities:
- "CT"
- "PT"

tag_operation_files:
base:
- "base.yaml"
- "ct.yaml"
- "pet.yaml"
manufacturer_overrides: []

series_filters: []

destination:
dicom: "none"
parquet: "none"
18 changes: 18 additions & 0 deletions projects/configs/tag-operations/ct.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (c) University College London Hospitals NHS Foundation Trust
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

- name: Conversion Type
group: 0x0008
element: 0x0064
op: keep
150 changes: 150 additions & 0 deletions projects/configs/tag-operations/pet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
# Copyright (c) University College London Hospitals NHS Foundation Trust
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

- name: Series Date
group: 0x0008
element: 0x0021
op: replace
- name: Acquisition Date
group: 0x0008
element: 0x0022
op: replace
- name: Series Time
group: 0x0008
element: 0x0031
op: replace
- name: Acquisition Time
group: 0x0008
element: 0x0032
op: replace
- name: Code Value
group: 0x0008
element: 0x0100
op: keep
- name: Coding Scheme Designator
group: 0x0008
element: 0x0102
op: keep
- name: Code Meaning
group: 0x0008
element: 0x0104
op: keep
- name: Mapping Resource
group: 0x0008
element: 0x0105
op: keep
- name: Context Group Version
group: 0x0008
element: 0x0106
op: keep
- name: Context Identifier
group: 0x0008
element: 0x010f
op: keep
- name: Radiopharmaceutical
group: 0x0018
element: 0x0031
op: keep
- name: Slice Thickness
group: 0x0018
element: 0x0050
op: keep
- name: Radiopharmaceutical Start Time
group: 0x0018
element: 0x1072
op: keep
- name: Radionuclide Total Dose
group: 0x0018
element: 0x1074
op: keep
- name: Radionuclide Half Life
group: 0x0018
element: 0x1075
op: keep
- name: Radionuclide Positron Fraction
group: 0x0018
element: 0x1076
op: keep
- name: Radiopharmaceutical Start DateTime
group: 0x0018
element: 0x1078
op: keep
- name: Collimator Type
group: 0x0018
element: 0x1181
op: keep
- name: Actual Frame Duration
group: 0x0018
element: 0x1242
op: keep
- name: Corrected Image
group: 0x0028
element: 0x0051
op: keep
- name: Radiopharmaceutical Information Sequence
group: 0x0054
element: 0x0016
op: keep
- name: Number of Slices
group: 0x0054
element: 0x0081
op: keep
- name: Radionuclide Code Sequence
group: 0x0054
element: 0x0300
op: keep
- name: Radiopharmaceutical Code Sequence
group: 0x0054
element: 0x0304
op: keep
- name: Patient Orientation Code Sequence
group: 0x0054
element: 0x0410
op: keep
- name: Patient Orientation Modifier Code Sequence
group: 0x0054
element: 0x0412
op: keep
- name: Patient Gantry Relationship Code Sequence
group: 0x0054
element: 0x0414
op: keep
- name: Series Type
group: 0x0054
element: 0x1000
op: keep
- name: Units
group: 0x0054
element: 0x1001
op: keep
- name: Counts Source
group: 0x0054
element: 0x1002
op: keep
- name: Decay Correction
group: 0x0054
element: 0x1102
op: keep
- name: Frame Reference Time
group: 0x0054
element: 0x1300
op: keep
- name: Decay Factor
group: 0x0054
element: 0x1321
op: keep
- name: Image Index
group: 0x0054
element: 0x1330
op: keep