The RecordLinker is a service that links records from two datasets based on a set of common attributes. The service is designed to be used in a variety of public health contexts, such as linking patient records from different sources or linking records from different public health surveillance systems.
Create new modules, linkage/transformers.py and linkage/matchers.py, to store the functions referenced in the algorithms.py module.
Acceptance Criteria
[ ] A transformers.py module with the last4 and first4 functions defined
[ ] A matchers.py module with all eval* and feature* functions defined
[ ] The existing link.py and mpi.py module should be updated to use these new modules to import functions
Background / Context
This is not just about making the code reusable to test out the new schema, but also making it easier to read, and setting ourselves up for more flexibility in the future. When reading the algorithms.py module, its not obvious which are strings and what are references to function names. Furthermore, the strings that are references to functions, its not clear as to where those functions are defined. Moving the code to two modules, based on its use cases, will be the first step in clearing up some ambiguity around how its being used in the algorithm configuration.
Summary
Create new modules,
linkage/transformers.py
andlinkage/matchers.py
, to store the functions referenced in the algorithms.py module.Acceptance Criteria
Background / Context
This is not just about making the code reusable to test out the new schema, but also making it easier to read, and setting ourselves up for more flexibility in the future. When reading the algorithms.py module, its not obvious which are strings and what are references to function names. Furthermore, the strings that are references to functions, its not clear as to where those functions are defined. Moving the code to two modules, based on its use cases, will be the first step in clearing up some ambiguity around how its being used in the algorithm configuration.