sjoerdk / pimsclient

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow manual setting of pseudonym/identifier pairs

sjoerdk opened this issue · comments

pimsclient version: 0.5.1

Currently pimsclient can only send identifiers to PIMS to retrieve a pseudonym, or send in pseudonyms to retrieve identifiers.
This is enough for projects starting clean with PIMS.

For projects with existing data this is not sufficient however. These often require historic pseudonym/identifier pairs to be added to PIMS so that new data for historic patients will be pseudonymized consistently with already acquired data.

For this there needs to be a way to set manual pseudonym/identifier pairs in PIMS.
Special care needs to be taken to handle conflicts:

  • If a manual pseudonym is already present in PIMS but linked to a different identifier
  • If a manual identifier is already present but linked to a different pseudonym