hello,
I just want to create token table so that i can store my patient portal tokens their. how to create token table. in functions.php file i found below commented code :
$strQuery = "SELECT token FROM tokens WHERE user_id = " . $userId;
$result = $db->get_row($strQuery);
$query = "UPDATE medmasterusers SET emr='$emr' WHERE id = $userId";
$result = $db->query($query);
if (!empty($password)) {
$query2 = "UPDATE medmasterusers SET password_with_token='{$password}' WHERE id= {$userId}";
$db->query($query2);
}
but i am not able to find token table in openemr. I am working on protal so i need that table..
please guide me.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How can we generate OpenEMR API token? Is there any UI or setup steps?
Hi Bijay,
We do not have any specific UI in openemr to generate API token.
Please refer to this Link
Give us more details on what exactly your looking and if the above link does not have answers for your question.
Thanks,
ViSolve OpenEMR Support Team
ViSolve
Last edit: ViSolve 2016-09-21
hello,
I just want to create token table so that i can store my patient portal tokens their. how to create token table. in functions.php file i found below commented code :
$strQuery = "SELECT token FROM tokens WHERE user_id = " . $userId;
$result = $db->get_row($strQuery);
$query = "UPDATE
medmasterusers
SETemr
='$emr' WHERE id = $userId";$result = $db->query($query);
if (!empty($password)) {
$query2 = "UPDATE
medmasterusers
SETpassword_with_token
='{$password}' WHEREid
= {$userId}";$db->query($query2);
}
Hi satyajit,
Suggest posting this on our new forum at https://community.open-emr.org as we recently migrated away from this sourceforge forum.
thanks,
-brady (ie. the forum police)
OpenEMR