Skip to content

Ensure Error, when recipe var/func is missing #274

@samuelschuettler

Description

@samuelschuettler

Dear deid Team,
thank you for the great work you have put into this package.

We are looking to use this package to deidentify large amounts of clinical data for a research PACS.

We mostly use replace_identifiers()
Is there any way to make sure that all var:s and func:s are present when running this. At the moment we see that it just runs and does not replace values if the respective var: is not present.
Is there a way to make sure an error is thrown if this is the case.

Additional info:

  • using the current version of deid with Python 3.12
  • can provide MWE if that helps
  • would be willing to provide pull request if the feature does not exist and you are open to outside input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions