Current DRM implementation uses inventory more often than necessary and the logic could mirror other pipelines instead. As such, four minor changes were made:
1-to-1 mapping between serial and inventory that should be used rather than comparing datetime in UCAM.
Removes use of inventory endpoints in __patient_id_from_ucam and __patient_id_from_inventory, which now mirrors other pipelines (for future refactors).
Removes unreachable IF statement
Removes now unused private method: __device_id_from_ucam
Testing
run the DRM pipeline locally from master and note the quantity of known and unknown records.
Delete the local DB
Switch to this branch and run it again and note the quantity of known/unknowns is the same.
Current DRM implementation uses inventory more often than necessary and the logic could mirror other pipelines instead. As such, four minor changes were made:
__patient_id_from_ucam
and__patient_id_from_inventory
, which now mirrors other pipelines (for future refactors).__device_id_from_ucam
Testing