Closed sebastientourbier closed 7 months ago
Yes this is great - this way we have build-in compatibility with the Karnak route and consistent pseudonyms and shifts, and we just need to deactivate the depersonalisation step in Karnak.
A few questions
A few questions
1. The custom mappings would just be in the same JSON schema as the new_ids in PACSMAN? so we can validate directly and avoid errrors?
Yes, exactly :smiley:
2. how do we keep consistency with GPCR/de-ID API patient codes if we have custom codes ? Do we just not call the API?
Actually, Frederic received sometimes requests from researchers with their own custom mapping. In this scenario, he does not keep consistency with GPCR/de-ID API but instead uses the anonymize_dicoms
script of PACSMAN. Following his practices, the --mode custom
of get_pseudonyms
will not call the de-ID API but instead it will just take as input the custom mappings described in a CSV file and format it accordingly the same JSON schema as the new_ids in PACSMAN. It should also generate the day_shift
json. Both files will then be provided to our CTP DAT tool.
Following a discussion with Frederic, we would like to implement the current workflow that would fit all his needs in practice:
This would require the following code adjustments of
tml-ctp
:get_pseudonyms
scriptFor now, the PatientID is fixed and after running CTP DAT is changed randomly. The Date increment in randomly generated and the script is modified prior to running CTP DAT.