Editing existing lab (procedure_provider) records #376

Open
mdsupport opened this Issue Dec 7, 2016 · 2 comments

Projects

None yet

2 participants

@mdsupport
Contributor

Has anyone tried to edit procedure provider records that were added before this commit? Unless the users have been set up to match previously entered pp names, you could magically have new lab name in orders module.

@mdsupport
Contributor
mdsupport commented Dec 7, 2016 edited

Here are the curious lines (74-78):

$org_qry = "SELECT organization FROM users WHERE id = ?";
$org_res = sqlQuery($org_qry, array($_POST['form_name']));
$org_name = $org_res['organization'];
$sets =
"name = '" .add_escape_custom($org_name). "', " .

If syncing the name is important for MU2, it should be done when source (users table) is updated. EMR cannot assume that an administrator will do this update manually.

If it not important, the name should be a text field for manual changes.

@bradymiller bradymiller self-assigned this Dec 7, 2016
@bradymiller
Member

Sounds like I may of brought in some mapping madness. I'll need to find where that's used downstream in the MU2 stuff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment