Skip to content

Logo Logo

Test De-id Profile Using the FW De-id Command

Introduction

To avoid uploading personally identifiable information (PII), use the Flywheel Command-Line Interface to test your de-id profile on your computer before you upload it.

This article explains how to use the fw deid test command to test your de-id profile.

Before you Begin

Instruction Steps

  1. Open a plain text editor such as TextEdit, Notepad, or Sublime.
  2. Copy and paste the following command into the editor:
fw deid test <SRC> <PROFILE> <PATH> [optional flags] 
  1. Replace the placeholders with your information:

  2. SRC: The path to the folder to test. This data should be the same or similar to the data you want to upload to Flywheel.

  3. PROFILE: The path to file containing the de-id profile
  4. PATH: The path to save test results to on the current machine
  5. Optional flags:
  6. [--session LABEL]
  7. [--subject LABEL]

Example:

fw deid test ~/Documents/TestData ~/Documents/deid_profile.yaml ~/Documents/DeIDLogs --subject deidTest
  1. Open the Terminal or Windows Command Prompt

  2. Copy and paste your command into Terminal or Windows Command Prompt and hit enter.

  3. The Flywheel CLI scans your files.

deidtestexample.png

  1. Once complete, review the log file named deid_log.csv. This gives you a preview of how the DICOM fields would change after de-identification.

Example:

deid_logExample.png

  1. Adjust your de-id profile until the log file shows that your data will be sufficiently de-identified on upload.

Next Steps

Add your de-id profile to a Flywheel project to automatically de-identify new data or use the CLI to upload data.