lab2godata: matching to existing lab records creates an error
Opened this issue · 0 comments
AmyMikhail commented
Problem statement:
Attempting to create matches for the example sequencing data on R13 (which was previously working) is now failing with an error (the lab lookup table is not being created).
Proposed solution:
The lab lookup table has three components derived from three API requests:
- Existing lab records in Go.Data that fall within the selected date window
- Identifiers (first name, surname, date of birth, age and document ID numbers) for cases that fall within the date window
- Identifiers (first name, surname, date of birth, age and document ID numbers) for contacts that fall within the date window
The table may not be created properly when one of the components is null (for example if there are no contacts). This needs further investigation as it should be handled by rbindlist(Filter(is.data.frame(), ...))
but some aspect of this is not working properly.