num-codex / codex-processes-ap2

Business processes for the NUM CODEX project (AP2) as plugins for the HiGHmed Data Sharing Framework
Apache License 2.0
0 stars 0 forks source link

Implement Feasibility Obfuscation #25

Closed DiCanio closed 3 years ago

DiCanio commented 3 years ago

Feasibility counts returned from each site need to be get obfuscated. This ensures that for very low counts (<10) no further data can be inferred.

How to obfuscate? Given a feasibility count fc we can get the obfuscated feasibility count o_fc like so:

o_fc = (fc - (fc % 10) + 10)

This calculation is aligned with what has already been implemented for the aktin-broker. It can be seen here: https://github.com/num-codex/codex-deploy/blob/main/num-node/aktin-client/client-exec-scripts/call-flare.sh

When to obfuscate? Always, right before storing the measure report within the site's own FHIR store. However, it must be possible to disable obfuscation through a flag within the settings.