refactor to no longer rely on legacy EMR module (in the process fixing bug where radiology tab could not handle patient ids specified as uuids