{"action":"created","comment":{"url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/pulls/comments/226492567","pull_request_review_id":166329135,"id":226492567,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNjQ5MjU2Nw==","diff_hunk":"@@ -0,0 +1,415 @@\n+<?php\n+/**\n+ * interface/reports/claims_viewer.php List number of documents.\n+ *\n+ * LICENSE: This program is free software; you can redistribute it and/or\n+ * modify it under the terms of the GNU General Public License\n+ * as published by the Free Software Foundation; either version 3\n+ * of the License, or (at your option) any later version.\n+ * This program is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n+ * GNU General Public License for more details.\n+ * You should have received a copy of the GNU General Public License\n+ * along with this program. If not, see <http://opensource.org/licenses/mpl-license.php>;.\n+ * Copyright (c) 2018 Growlingflea Software <daniel@growlingflea.com>\n+ * File adapted for user activity log.\n+ * @package LibreEHR\n+ * @author  Daniel Pflieger daniel@growlingflea.com daniel@mi-squared.com\n+ */\n+ $fake_register_globals=false;\n+ $sanitize_all_escapes=true;\n+\n+require_once(\"../globals.php\");\n+require_once(\"$srcdir/sql.inc\");\n+require_once(\"$srcdir/formatting.inc.php\");\n+require_once(\"$srcdir/vendor/libreehr/Framework/DataTable/DataTable.php\");\n+require_once( \"reports_controllers/AppointmentsController.php\");\n+\n+$form_from_date = isset($_POST['form_from_date']) ?  $_POST['form_from_date'] : date($DateFormat);\n+$form_to_date = isset($_POST['form_to_date']) ?  $_POST['form_to_date'] : date($DateFormat);\n+\n+//if date is i m/d/y we need to fix it for queries\n+$to_date =prepareDateBeforeSave($form_to_date) ;\n+$from_date = prepareDateBeforeSave($form_from_date);\n+?>\n+<html>\n+<head>\n+<?php html_header_show();?>\n+<title><?php xl('User Activity Report','e'); ?></title>\n+<link rel=\"stylesheet\" href=\"<?php echo $css_header;?>\" type=\"text/css\">\n+<style type=\"text/css\">\n+@import \"<?php echo $GLOBALS['webroot'] ?>/assets/js/datatables/media/css/demo_page.css\";\n+@import \"<?php echo $GLOBALS['webroot'] ?>/assets/js/datatables/media/css/demo_table.css\";\n+@import \"<?php echo $GLOBALS['webroot'] ?>/assets/css/jquery-ui-1-12-1/jquery-ui.css\";\n+\n+.mytopdiv { float: left; margin-right: 1em; }\n+</style>\n+\n+<script type=\"text/javascript\" src=\"<?php echo $GLOBALS['webroot'] ?>/assets/js/datatables/media/js/jquery.js\"></script>\n+<script type=\"text/javascript\" src=\"<?php echo $GLOBALS['webroot'] ?>/assets/js/datatables/media/js/jquery.dataTables.min.js\"></script>\n+<script type=\"text/javascript\" src=\"<?php echo $GLOBALS['webroot'] ?>/assets/js/jquery-min-3-3-1/index.js\"></script>","path":"interface/reports/username_report.php","position":51,"original_position":51,"commit_id":"abcd87aa227c5873d8f709b569471cf34d5e2eb9","original_commit_id":"abcd87aa227c5873d8f709b569471cf34d5e2eb9","user":{"login":"growlingflea","id":8116478,"node_id":"MDQ6VXNlcjgxMTY0Nzg=","avatar_url":"https://avatars2.githubusercontent.com/u/8116478?v=4","gravatar_id":"","url":"https://api.github.com/users/growlingflea","html_url":"https://github.com/growlingflea","followers_url":"https://api.github.com/users/growlingflea/followers","following_url":"https://api.github.com/users/growlingflea/following{/other_user}","gists_url":"https://api.github.com/users/growlingflea/gists{/gist_id}","starred_url":"https://api.github.com/users/growlingflea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/growlingflea/subscriptions","organizations_url":"https://api.github.com/users/growlingflea/orgs","repos_url":"https://api.github.com/users/growlingflea/repos","events_url":"https://api.github.com/users/growlingflea/events{/privacy}","received_events_url":"https://api.github.com/users/growlingflea/received_events","type":"User","site_admin":false},"body":"Done","created_at":"2018-10-18T23:05:56Z","updated_at":"2018-10-18T23:05:56Z","html_url":"https://github.com/LibreHealthIO/lh-ehr/pull/1257#discussion_r226492567","pull_request_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/pulls/1257","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/LibreHealthIO/lh-ehr/pulls/comments/226492567"},"html":{"href":"https://github.com/LibreHealthIO/lh-ehr/pull/1257#discussion_r226492567"},"pull_request":{"href":"https://api.github.com/repos/LibreHealthIO/lh-ehr/pulls/1257"}},"in_reply_to_id":226056629},"pull_request":{"url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/pulls/1257","id":223015346,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzMDE1MzQ2","html_url":"https://github.com/LibreHealthIO/lh-ehr/pull/1257","diff_url":"https://github.com/LibreHealthIO/lh-ehr/pull/1257.diff","patch_url":"https://github.com/LibreHealthIO/lh-ehr/pull/1257.patch","issue_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/issues/1257","number":1257,"state":"open","locked":false,"title":"The User activity report reports user activity by pulling data from t…","user":{"login":"growlingflea","id":8116478,"node_id":"MDQ6VXNlcjgxMTY0Nzg=","avatar_url":"https://avatars2.githubusercontent.com/u/8116478?v=4","gravatar_id":"","url":"https://api.github.com/users/growlingflea","html_url":"https://github.com/growlingflea","followers_url":"https://api.github.com/users/growlingflea/followers","following_url":"https://api.github.com/users/growlingflea/following{/other_user}","gists_url":"https://api.github.com/users/growlingflea/gists{/gist_id}","starred_url":"https://api.github.com/users/growlingflea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/growlingflea/subscriptions","organizations_url":"https://api.github.com/users/growlingflea/orgs","repos_url":"https://api.github.com/users/growlingflea/repos","events_url":"https://api.github.com/users/growlingflea/events{/privacy}","received_events_url":"https://api.github.com/users/growlingflea/received_events","type":"User","site_admin":false},"body":"Activity report uses the log table.  The user can see the total sum of time each active user was logged in, show the approximate time of each session (log in to log out, or log in to the last activity before the following login), and sum of sessions given a time period.  Full seaching capability of each column available, using datatables capabilities.\r\n\r\nOther reports are Demographic, Lab Procedure and Diagnosis filters for research using the same datatables backend and report/ajax model ","created_at":"2018-10-15T19:23:33Z","updated_at":"2018-10-18T23:05:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4dc45c868ade925f1ff43839ef49b35e04455b97","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/pulls/1257/commits","review_comments_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/pulls/1257/comments","review_comment_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/issues/1257/comments","statuses_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/statuses/abcd87aa227c5873d8f709b569471cf34d5e2eb9","head":{"label":"growlingflea:nhanes-user-report-and-demographic-analysis","ref":"nhanes-user-report-and-demographic-analysis","sha":"abcd87aa227c5873d8f709b569471cf34d5e2eb9","user":{"login":"growlingflea","id":8116478,"node_id":"MDQ6VXNlcjgxMTY0Nzg=","avatar_url":"https://avatars2.githubusercontent.com/u/8116478?v=4","gravatar_id":"","url":"https://api.github.com/users/growlingflea","html_url":"https://github.com/growlingflea","followers_url":"https://api.github.com/users/growlingflea/followers","following_url":"https://api.github.com/users/growlingflea/following{/other_user}","gists_url":"https://api.github.com/users/growlingflea/gists{/gist_id}","starred_url":"https://api.github.com/users/growlingflea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/growlingflea/subscriptions","organizations_url":"https://api.github.com/users/growlingflea/orgs","repos_url":"https://api.github.com/users/growlingflea/repos","events_url":"https://api.github.com/users/growlingflea/events{/privacy}","received_events_url":"https://api.github.com/users/growlingflea/received_events","type":"User","site_admin":false},"repo":{"id":64781476,"node_id":"MDEwOlJlcG9zaXRvcnk2NDc4MTQ3Ng==","name":"LibreEHR","full_name":"growlingflea/LibreEHR","private":false,"owner":{"login":"growlingflea","id":8116478,"node_id":"MDQ6VXNlcjgxMTY0Nzg=","avatar_url":"https://avatars2.githubusercontent.com/u/8116478?v=4","gravatar_id":"","url":"https://api.github.com/users/growlingflea","html_url":"https://github.com/growlingflea","followers_url":"https://api.github.com/users/growlingflea/followers","following_url":"https://api.github.com/users/growlingflea/following{/other_user}","gists_url":"https://api.github.com/users/growlingflea/gists{/gist_id}","starred_url":"https://api.github.com/users/growlingflea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/growlingflea/subscriptions","organizations_url":"https://api.github.com/users/growlingflea/orgs","repos_url":"https://api.github.com/users/growlingflea/repos","events_url":"https://api.github.com/users/growlingflea/events{/privacy}","received_events_url":"https://api.github.com/users/growlingflea/received_events","type":"User","site_admin":false},"html_url":"https://github.com/growlingflea/LibreEHR","description":"LibreEHR - Free Open Source Electronic Health Records based on OpenEMR","fork":true,"url":"https://api.github.com/repos/growlingflea/LibreEHR","forks_url":"https://api.github.com/repos/growlingflea/LibreEHR/forks","keys_url":"https://api.github.com/repos/growlingflea/LibreEHR/keys{/key_id}","collaborators_url":"https://api.github.com/repos/growlingflea/LibreEHR/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/growlingflea/LibreEHR/teams","hooks_url":"https://api.github.com/repos/growlingflea/LibreEHR/hooks","issue_events_url":"https://api.github.com/repos/growlingflea/LibreEHR/issues/events{/number}","events_url":"https://api.github.com/repos/growlingflea/LibreEHR/events","assignees_url":"https://api.github.com/repos/growlingflea/LibreEHR/assignees{/user}","branches_url":"https://api.github.com/repos/growlingflea/LibreEHR/branches{/branch}","tags_url":"https://api.github.com/repos/growlingflea/LibreEHR/tags","blobs_url":"https://api.github.com/repos/growlingflea/LibreEHR/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/growlingflea/LibreEHR/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/growlingflea/LibreEHR/git/refs{/sha}","trees_url":"https://api.github.com/repos/growlingflea/LibreEHR/git/trees{/sha}","statuses_url":"https://api.github.com/repos/growlingflea/LibreEHR/statuses/{sha}","languages_url":"https://api.github.com/repos/growlingflea/LibreEHR/languages","stargazers_url":"https://api.github.com/repos/growlingflea/LibreEHR/stargazers","contributors_url":"https://api.github.com/repos/growlingflea/LibreEHR/contributors","subscribers_url":"https://api.github.com/repos/growlingflea/LibreEHR/subscribers","subscription_url":"https://api.github.com/repos/growlingflea/LibreEHR/subscription","commits_url":"https://api.github.com/repos/growlingflea/LibreEHR/commits{/sha}","git_commits_url":"https://api.github.com/repos/growlingflea/LibreEHR/git/commits{/sha}","comments_url":"https://api.github.com/repos/growlingflea/LibreEHR/comments{/number}","issue_comment_url":"https://api.github.com/repos/growlingflea/LibreEHR/issues/comments{/number}","contents_url":"https://api.github.com/repos/growlingflea/LibreEHR/contents/{+path}","compare_url":"https://api.github.com/repos/growlingflea/LibreEHR/compare/{base}...{head}","merges_url":"https://api.github.com/repos/growlingflea/LibreEHR/merges","archive_url":"https://api.github.com/repos/growlingflea/LibreEHR/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/growlingflea/LibreEHR/downloads","issues_url":"https://api.github.com/repos/growlingflea/LibreEHR/issues{/number}","pulls_url":"https://api.github.com/repos/growlingflea/LibreEHR/pulls{/number}","milestones_url":"https://api.github.com/repos/growlingflea/LibreEHR/milestones{/number}","notifications_url":"https://api.github.com/repos/growlingflea/LibreEHR/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/growlingflea/LibreEHR/labels{/name}","releases_url":"https://api.github.com/repos/growlingflea/LibreEHR/releases{/id}","deployments_url":"https://api.github.com/repos/growlingflea/LibreEHR/deployments","created_at":"2016-08-02T18:20:51Z","updated_at":"2018-09-06T23:49:56Z","pushed_at":"2018-10-14T22:02:01Z","git_url":"git://github.com/growlingflea/LibreEHR.git","ssh_url":"git@github.com:growlingflea/LibreEHR.git","clone_url":"https://github.com/growlingflea/LibreEHR.git","svn_url":"https://github.com/growlingflea/LibreEHR","homepage":null,"size":226570,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"LibreHealthIO:master","ref":"master","sha":"b01616806bcec943c99861b5442140e2b7893c65","user":{"login":"LibreHealthIO","id":19714529,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5NzE0NTI5","avatar_url":"https://avatars3.githubusercontent.com/u/19714529?v=4","gravatar_id":"","url":"https://api.github.com/users/LibreHealthIO","html_url":"https://github.com/LibreHealthIO","followers_url":"https://api.github.com/users/LibreHealthIO/followers","following_url":"https://api.github.com/users/LibreHealthIO/following{/other_user}","gists_url":"https://api.github.com/users/LibreHealthIO/gists{/gist_id}","starred_url":"https://api.github.com/users/LibreHealthIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LibreHealthIO/subscriptions","organizations_url":"https://api.github.com/users/LibreHealthIO/orgs","repos_url":"https://api.github.com/users/LibreHealthIO/repos","events_url":"https://api.github.com/users/LibreHealthIO/events{/privacy}","received_events_url":"https://api.github.com/users/LibreHealthIO/received_events","type":"Organization","site_admin":false},"repo":{"id":63452821,"node_id":"MDEwOlJlcG9zaXRvcnk2MzQ1MjgyMQ==","name":"lh-ehr","full_name":"LibreHealthIO/lh-ehr","private":false,"owner":{"login":"LibreHealthIO","id":19714529,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5NzE0NTI5","avatar_url":"https://avatars3.githubusercontent.com/u/19714529?v=4","gravatar_id":"","url":"https://api.github.com/users/LibreHealthIO","html_url":"https://github.com/LibreHealthIO","followers_url":"https://api.github.com/users/LibreHealthIO/followers","following_url":"https://api.github.com/users/LibreHealthIO/following{/other_user}","gists_url":"https://api.github.com/users/LibreHealthIO/gists{/gist_id}","starred_url":"https://api.github.com/users/LibreHealthIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LibreHealthIO/subscriptions","organizations_url":"https://api.github.com/users/LibreHealthIO/orgs","repos_url":"https://api.github.com/users/LibreHealthIO/repos","events_url":"https://api.github.com/users/LibreHealthIO/events{/privacy}","received_events_url":"https://api.github.com/users/LibreHealthIO/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/LibreHealthIO/lh-ehr","description":"LibreHealth EHR - Free Open Source Electronic Health Records","fork":false,"url":"https://api.github.com/repos/LibreHealthIO/lh-ehr","forks_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/forks","keys_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/teams","hooks_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/hooks","issue_events_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/issues/events{/number}","events_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/events","assignees_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/assignees{/user}","branches_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/branches{/branch}","tags_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/tags","blobs_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/git/refs{/sha}","trees_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/statuses/{sha}","languages_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/languages","stargazers_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/stargazers","contributors_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/contributors","subscribers_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/subscribers","subscription_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/subscription","commits_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/commits{/sha}","git_commits_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/git/commits{/sha}","comments_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/comments{/number}","issue_comment_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/issues/comments{/number}","contents_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/contents/{+path}","compare_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/merges","archive_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/downloads","issues_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/issues{/number}","pulls_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/pulls{/number}","milestones_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/milestones{/number}","notifications_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/labels{/name}","releases_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/releases{/id}","deployments_url":"https://api.github.com/repos/LibreHealthIO/lh-ehr/deployments","created_at":"2016-07-15T21:50:55Z","updated_at":"2018-10-18T13:55:23Z","pushed_at":"2018-10-18T20:29:45Z","git_url":"git://github.com/LibreHealthIO/lh-ehr.git","ssh_url":"git@github.com:LibreHealthIO/lh-ehr.git","clone_url":"https://github.com/LibreHealthIO/lh-ehr.git","svn_url":"https://github.com/LibreHealthIO/lh-ehr","homepage":"","size":279718,"stargazers_count":78,"watchers_count":78,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":110,"mirror_url":null,"archived":false,"open_issues_count":136,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":110,"open_issues":136,"watchers":78,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LibreHealthIO/lh-ehr/pulls/1257"},"html":{"href":"https://github.com/LibreHealthIO/lh-ehr/pull/1257"},"issue":{"href":"https://api.github.com/repos/LibreHealthIO/lh-ehr/issues/1257"},"comments":{"href":"https://api.github.com/repos/LibreHealthIO/lh-ehr/issues/1257/comments"},"review_comments":{"href":"https://api.github.com/repos/LibreHealthIO/lh-ehr/pulls/1257/comments"},"review_comment":{"href":"https://api.github.com/repos/LibreHealthIO/lh-ehr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LibreHealthIO/lh-ehr/pulls/1257/commits"},"statuses":{"href":"https://api.github.com/repos/LibreHealthIO/lh-ehr/statuses/abcd87aa227c5873d8f709b569471cf34d5e2eb9"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"growlingflea"}}