{"action":"created","comment":{"url":"https://api.github.com/repos/openemr/openemr/pulls/comments/75269898","id":75269898,"diff_hunk":"@@ -1,40 +0,0 @@\n-Submitted by Medical Information Integration, LLC July 2009\n-\n-Enhanced Search and Facility based Filters\n-\n-Changes:\n-\n-- Added enhanced search filter\n-This enhancement adds two selections to the left_nav.php \"Find\" tool.\n-1) Any - entering data in the search text field and clicking 'Any' will match what's has been entered against\n-any field in the patient data table it not listed as 'unused' in the layout table\n-2) Filter - entering date in the search text field and clicking 'Filter' brings up a popup window with a list\n-fields in the patient data table that are not listed as 'unused' in the layout table.  The user can then select\n-one or more fields that the search should compare to and the result will be filtered down to that.\n-\n-- Added patient search restriction to support multiple facilities using the same database instance but needing some\n-light restrictions on visibility.  Mostly this keeps clinic A from having to look at Clinic B's patient when\n-doing a name lookup, so it's easier to make sure they get the right patient.  \n-* The current patient_data table does not have an inherent way to assign a patient to a facility, so we used a configurable\n-user defined field (userlist3 in the example).  Then we created a cross reference using the \"Lists\" tool that has a map\n-of the facility id and name.  This allowed us to limit the selections to a subset of what is in the facility table.\n-We used the facility record ID as the List ID and entered an short title to match the internal clinic name.\n-* Search restrictions apply only to the default Name search at this time\n-* Facility is matched between the custom field identified below and the users default facility in the users table.\n-* Patients records that do not have a clinic ID in the indentified custom field are not restrictied\n-\n-- TO DO \n-* It could be enhanced to be more secure by adding a gacl role for access by user default facility.\n-* Filter check boxes should be persistent during a user session and ajax might be prettier than the popup window.\n-* Filter Search could use a \"whole words only\" option.  Right now a search for 'male' will match both males and females.\n-* Admin restrictions are based solely on the user name 'admin'.  This should be based on the gacl role of \"administrator\"\n- \n-Manual steps:\n-- To activate patient search restriction, you must add the following lines to interface/globals.php:\n-\n-// If these options are omitted, patient searches will not be restricted.\n-$GLOBALS['pt_restrict_field'] = \"userlist3\"; // Custom map to assigned facility ID#\n-$GLOBALS['pt_restrict_admin'] = true;        // Should the admin user be restricted as well\n-$GLOBALS['pt_restrict_by_id'] = false;       // Should lookup by ID (pubpid) be restricted ","path":"custom/readme_search.txt","position":38,"original_position":38,"commit_id":"67c4cd6e720ac4b1b1fd9adea1fd3e8a9b13abc5","original_commit_id":"67c4cd6e720ac4b1b1fd9adea1fd3e8a9b13abc5","user":{"login":"bradymiller","id":278968,"avatar_url":"https://avatars.githubusercontent.com/u/278968?v=3","gravatar_id":"","url":"https://api.github.com/users/bradymiller","html_url":"https://github.com/bradymiller","followers_url":"https://api.github.com/users/bradymiller/followers","following_url":"https://api.github.com/users/bradymiller/following{/other_user}","gists_url":"https://api.github.com/users/bradymiller/gists{/gist_id}","starred_url":"https://api.github.com/users/bradymiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradymiller/subscriptions","organizations_url":"https://api.github.com/users/bradymiller/orgs","repos_url":"https://api.github.com/users/bradymiller/repos","events_url":"https://api.github.com/users/bradymiller/events{/privacy}","received_events_url":"https://api.github.com/users/bradymiller/received_events","type":"User","site_admin":false},"body":"These globals are actually used in a spot in teh codebase not official globals. Guess the question becomes if these are even used???? If not, does it make sense to remove them.","created_at":"2016-08-18T08:48:07Z","updated_at":"2016-08-18T08:48:07Z","html_url":"https://github.com/openemr/openemr/pull/187#discussion_r75269898","pull_request_url":"https://api.github.com/repos/openemr/openemr/pulls/187","_links":{"self":{"href":"https://api.github.com/repos/openemr/openemr/pulls/comments/75269898"},"html":{"href":"https://github.com/openemr/openemr/pull/187#discussion_r75269898"},"pull_request":{"href":"https://api.github.com/repos/openemr/openemr/pulls/187"}}},"pull_request":{"url":"https://api.github.com/repos/openemr/openemr/pulls/187","id":81744730,"html_url":"https://github.com/openemr/openemr/pull/187","diff_url":"https://github.com/openemr/openemr/pull/187.diff","patch_url":"https://github.com/openemr/openemr/pull/187.patch","issue_url":"https://api.github.com/repos/openemr/openemr/issues/187","number":187,"state":"open","locked":false,"title":"Freeb removal","user":{"login":"Wakie87","id":975165,"avatar_url":"https://avatars.githubusercontent.com/u/975165?v=3","gravatar_id":"","url":"https://api.github.com/users/Wakie87","html_url":"https://github.com/Wakie87","followers_url":"https://api.github.com/users/Wakie87/followers","following_url":"https://api.github.com/users/Wakie87/following{/other_user}","gists_url":"https://api.github.com/users/Wakie87/gists{/gist_id}","starred_url":"https://api.github.com/users/Wakie87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wakie87/subscriptions","organizations_url":"https://api.github.com/users/Wakie87/orgs","repos_url":"https://api.github.com/users/Wakie87/repos","events_url":"https://api.github.com/users/Wakie87/events{/privacy}","received_events_url":"https://api.github.com/users/Wakie87/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-18T01:40:06Z","updated_at":"2016-08-18T08:48:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a79aa89d9a1b60485f2ba89b7edf63dff498503c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openemr/openemr/pulls/187/commits","review_comments_url":"https://api.github.com/repos/openemr/openemr/pulls/187/comments","review_comment_url":"https://api.github.com/repos/openemr/openemr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openemr/openemr/issues/187/comments","statuses_url":"https://api.github.com/repos/openemr/openemr/statuses/67c4cd6e720ac4b1b1fd9adea1fd3e8a9b13abc5","head":{"label":"Wakie87:freeb","ref":"freeb","sha":"67c4cd6e720ac4b1b1fd9adea1fd3e8a9b13abc5","user":{"login":"Wakie87","id":975165,"avatar_url":"https://avatars.githubusercontent.com/u/975165?v=3","gravatar_id":"","url":"https://api.github.com/users/Wakie87","html_url":"https://github.com/Wakie87","followers_url":"https://api.github.com/users/Wakie87/followers","following_url":"https://api.github.com/users/Wakie87/following{/other_user}","gists_url":"https://api.github.com/users/Wakie87/gists{/gist_id}","starred_url":"https://api.github.com/users/Wakie87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wakie87/subscriptions","organizations_url":"https://api.github.com/users/Wakie87/orgs","repos_url":"https://api.github.com/users/Wakie87/repos","events_url":"https://api.github.com/users/Wakie87/events{/privacy}","received_events_url":"https://api.github.com/users/Wakie87/received_events","type":"User","site_admin":false},"repo":{"id":3805236,"name":"openemr","full_name":"Wakie87/openemr","owner":{"login":"Wakie87","id":975165,"avatar_url":"https://avatars.githubusercontent.com/u/975165?v=3","gravatar_id":"","url":"https://api.github.com/users/Wakie87","html_url":"https://github.com/Wakie87","followers_url":"https://api.github.com/users/Wakie87/followers","following_url":"https://api.github.com/users/Wakie87/following{/other_user}","gists_url":"https://api.github.com/users/Wakie87/gists{/gist_id}","starred_url":"https://api.github.com/users/Wakie87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wakie87/subscriptions","organizations_url":"https://api.github.com/users/Wakie87/orgs","repos_url":"https://api.github.com/users/Wakie87/repos","events_url":"https://api.github.com/users/Wakie87/events{/privacy}","received_events_url":"https://api.github.com/users/Wakie87/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Wakie87/openemr","description":"Mirror of official OpenEMR Sourceforge repository","fork":true,"url":"https://api.github.com/repos/Wakie87/openemr","forks_url":"https://api.github.com/repos/Wakie87/openemr/forks","keys_url":"https://api.github.com/repos/Wakie87/openemr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wakie87/openemr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wakie87/openemr/teams","hooks_url":"https://api.github.com/repos/Wakie87/openemr/hooks","issue_events_url":"https://api.github.com/repos/Wakie87/openemr/issues/events{/number}","events_url":"https://api.github.com/repos/Wakie87/openemr/events","assignees_url":"https://api.github.com/repos/Wakie87/openemr/assignees{/user}","branches_url":"https://api.github.com/repos/Wakie87/openemr/branches{/branch}","tags_url":"https://api.github.com/repos/Wakie87/openemr/tags","blobs_url":"https://api.github.com/repos/Wakie87/openemr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wakie87/openemr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wakie87/openemr/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wakie87/openemr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wakie87/openemr/statuses/{sha}","languages_url":"https://api.github.com/repos/Wakie87/openemr/languages","stargazers_url":"https://api.github.com/repos/Wakie87/openemr/stargazers","contributors_url":"https://api.github.com/repos/Wakie87/openemr/contributors","subscribers_url":"https://api.github.com/repos/Wakie87/openemr/subscribers","subscription_url":"https://api.github.com/repos/Wakie87/openemr/subscription","commits_url":"https://api.github.com/repos/Wakie87/openemr/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wakie87/openemr/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wakie87/openemr/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wakie87/openemr/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wakie87/openemr/contents/{+path}","compare_url":"https://api.github.com/repos/Wakie87/openemr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wakie87/openemr/merges","archive_url":"https://api.github.com/repos/Wakie87/openemr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wakie87/openemr/downloads","issues_url":"https://api.github.com/repos/Wakie87/openemr/issues{/number}","pulls_url":"https://api.github.com/repos/Wakie87/openemr/pulls{/number}","milestones_url":"https://api.github.com/repos/Wakie87/openemr/milestones{/number}","notifications_url":"https://api.github.com/repos/Wakie87/openemr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wakie87/openemr/labels{/name}","releases_url":"https://api.github.com/repos/Wakie87/openemr/releases{/id}","deployments_url":"https://api.github.com/repos/Wakie87/openemr/deployments","created_at":"2012-03-23T04:18:11Z","updated_at":"2015-11-15T18:00:04Z","pushed_at":"2016-08-18T08:08:22Z","git_url":"git://github.com/Wakie87/openemr.git","ssh_url":"git@github.com:Wakie87/openemr.git","clone_url":"https://github.com/Wakie87/openemr.git","svn_url":"https://github.com/Wakie87/openemr","homepage":"http://open-emr.org/","size":301153,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"openemr:master","ref":"master","sha":"7d862336a6d34dbe05cb51e68b2c6d43a545ef1e","user":{"login":"openemr","id":283089,"avatar_url":"https://avatars.githubusercontent.com/u/283089?v=3","gravatar_id":"","url":"https://api.github.com/users/openemr","html_url":"https://github.com/openemr","followers_url":"https://api.github.com/users/openemr/followers","following_url":"https://api.github.com/users/openemr/following{/other_user}","gists_url":"https://api.github.com/users/openemr/gists{/gist_id}","starred_url":"https://api.github.com/users/openemr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openemr/subscriptions","organizations_url":"https://api.github.com/users/openemr/orgs","repos_url":"https://api.github.com/users/openemr/repos","events_url":"https://api.github.com/users/openemr/events{/privacy}","received_events_url":"https://api.github.com/users/openemr/received_events","type":"User","site_admin":false},"repo":{"id":679584,"name":"openemr","full_name":"openemr/openemr","owner":{"login":"openemr","id":283089,"avatar_url":"https://avatars.githubusercontent.com/u/283089?v=3","gravatar_id":"","url":"https://api.github.com/users/openemr","html_url":"https://github.com/openemr","followers_url":"https://api.github.com/users/openemr/followers","following_url":"https://api.github.com/users/openemr/following{/other_user}","gists_url":"https://api.github.com/users/openemr/gists{/gist_id}","starred_url":"https://api.github.com/users/openemr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openemr/subscriptions","organizations_url":"https://api.github.com/users/openemr/orgs","repos_url":"https://api.github.com/users/openemr/repos","events_url":"https://api.github.com/users/openemr/events{/privacy}","received_events_url":"https://api.github.com/users/openemr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/openemr/openemr","description":"Mirror of official OpenEMR Sourceforge repository","fork":false,"url":"https://api.github.com/repos/openemr/openemr","forks_url":"https://api.github.com/repos/openemr/openemr/forks","keys_url":"https://api.github.com/repos/openemr/openemr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openemr/openemr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openemr/openemr/teams","hooks_url":"https://api.github.com/repos/openemr/openemr/hooks","issue_events_url":"https://api.github.com/repos/openemr/openemr/issues/events{/number}","events_url":"https://api.github.com/repos/openemr/openemr/events","assignees_url":"https://api.github.com/repos/openemr/openemr/assignees{/user}","branches_url":"https://api.github.com/repos/openemr/openemr/branches{/branch}","tags_url":"https://api.github.com/repos/openemr/openemr/tags","blobs_url":"https://api.github.com/repos/openemr/openemr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openemr/openemr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openemr/openemr/git/refs{/sha}","trees_url":"https://api.github.com/repos/openemr/openemr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openemr/openemr/statuses/{sha}","languages_url":"https://api.github.com/repos/openemr/openemr/languages","stargazers_url":"https://api.github.com/repos/openemr/openemr/stargazers","contributors_url":"https://api.github.com/repos/openemr/openemr/contributors","subscribers_url":"https://api.github.com/repos/openemr/openemr/subscribers","subscription_url":"https://api.github.com/repos/openemr/openemr/subscription","commits_url":"https://api.github.com/repos/openemr/openemr/commits{/sha}","git_commits_url":"https://api.github.com/repos/openemr/openemr/git/commits{/sha}","comments_url":"https://api.github.com/repos/openemr/openemr/comments{/number}","issue_comment_url":"https://api.github.com/repos/openemr/openemr/issues/comments{/number}","contents_url":"https://api.github.com/repos/openemr/openemr/contents/{+path}","compare_url":"https://api.github.com/repos/openemr/openemr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openemr/openemr/merges","archive_url":"https://api.github.com/repos/openemr/openemr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openemr/openemr/downloads","issues_url":"https://api.github.com/repos/openemr/openemr/issues{/number}","pulls_url":"https://api.github.com/repos/openemr/openemr/pulls{/number}","milestones_url":"https://api.github.com/repos/openemr/openemr/milestones{/number}","notifications_url":"https://api.github.com/repos/openemr/openemr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openemr/openemr/labels{/name}","releases_url":"https://api.github.com/repos/openemr/openemr/releases{/id}","deployments_url":"https://api.github.com/repos/openemr/openemr/deployments","created_at":"2010-05-21T19:54:08Z","updated_at":"2016-08-17T15:57:38Z","pushed_at":"2016-08-18T08:29:50Z","git_url":"git://github.com/openemr/openemr.git","ssh_url":"git@github.com:openemr/openemr.git","clone_url":"https://github.com/openemr/openemr.git","svn_url":"https://github.com/openemr/openemr","homepage":"http://open-emr.org/","size":282171,"stargazers_count":296,"watchers_count":296,"language":"PHP","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":447,"mirror_url":null,"open_issues_count":45,"forks":447,"open_issues":45,"watchers":296,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openemr/openemr/pulls/187"},"html":{"href":"https://github.com/openemr/openemr/pull/187"},"issue":{"href":"https://api.github.com/repos/openemr/openemr/issues/187"},"comments":{"href":"https://api.github.com/repos/openemr/openemr/issues/187/comments"},"review_comments":{"href":"https://api.github.com/repos/openemr/openemr/pulls/187/comments"},"review_comment":{"href":"https://api.github.com/repos/openemr/openemr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openemr/openemr/pulls/187/commits"},"statuses":{"href":"https://api.github.com/repos/openemr/openemr/statuses/67c4cd6e720ac4b1b1fd9adea1fd3e8a9b13abc5"}}}}
{"actor":{"display_login":"bradymiller"}}