{"action":"created","comment":{"url":"https://api.github.com/repos/openemr/openemr/pulls/comments/74698504","id":74698504,"diff_hunk":"@@ -0,0 +1,75 @@\n+<?php\n+\n+namespace Patientvalidation\\Controller;\n+\n+use Zend\\InputFilter\\InputFilter;\n+use Zend\\Mvc\\Controller\\AbstractActionController;\n+use Application\\Listener\\Listener;\n+use Zend\\Mvc\\Controller\\ActionController;\n+use Zend\\View\\Model\\ViewModel;\n+\n+class BaseController extends AbstractActionController\n+{\n+    private $configParams = null;\n+\n+\n+\n+    public function __construct()\n+    {\n+        //load translation class\n+        $this->translate = new Listener();\n+    }\n+\n+\n+    protected function getLanguage(){\n+\n+        $sm = $this->getServiceLocator();\n+        $dbAdapter = $sm->get('Zend\\Db\\Adapter\\Adapter');\n+        $sql = new CustomSql($dbAdapter);\n+\n+        $lang = $sql->getCurrentLang();\n+\n+        return $lang;\n+    }","path":"interface/modules/zend_modules/module/Patientvalidation/src/Patientvalidation/Controller/BaseController.php","position":105,"original_position":33,"commit_id":"35cf52a3df4f1398aecdd25241b90668d5fbf834","original_commit_id":"3ac231990c0547c141dc014e0f0a1cbe57b9898f","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":"Are you using this function anywhere?","created_at":"2016-08-14T09:15:03Z","updated_at":"2016-08-14T09:15:03Z","html_url":"https://github.com/openemr/openemr/pull/166#discussion_r74698504","pull_request_url":"https://api.github.com/repos/openemr/openemr/pulls/166","_links":{"self":{"href":"https://api.github.com/repos/openemr/openemr/pulls/comments/74698504"},"html":{"href":"https://github.com/openemr/openemr/pull/166#discussion_r74698504"},"pull_request":{"href":"https://api.github.com/repos/openemr/openemr/pulls/166"}}},"pull_request":{"url":"https://api.github.com/repos/openemr/openemr/pulls/166","id":79539802,"html_url":"https://github.com/openemr/openemr/pull/166","diff_url":"https://github.com/openemr/openemr/pull/166.diff","patch_url":"https://github.com/openemr/openemr/pull/166.patch","issue_url":"https://api.github.com/repos/openemr/openemr/issues/166","number":166,"state":"open","locked":false,"title":"Dg/patient validation hook","user":{"login":"matrix-drorgo","id":18376627,"avatar_url":"https://avatars.githubusercontent.com/u/18376627?v=3","gravatar_id":"","url":"https://api.github.com/users/matrix-drorgo","html_url":"https://github.com/matrix-drorgo","followers_url":"https://api.github.com/users/matrix-drorgo/followers","following_url":"https://api.github.com/users/matrix-drorgo/following{/other_user}","gists_url":"https://api.github.com/users/matrix-drorgo/gists{/gist_id}","starred_url":"https://api.github.com/users/matrix-drorgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matrix-drorgo/subscriptions","organizations_url":"https://api.github.com/users/matrix-drorgo/orgs","repos_url":"https://api.github.com/users/matrix-drorgo/repos","events_url":"https://api.github.com/users/matrix-drorgo/events{/privacy}","received_events_url":"https://api.github.com/users/matrix-drorgo/received_events","type":"User","site_admin":false},"body":"This new feature will allow openemr system to validate patient . this feature uses zend module called Patientvallidation. With the use of this module we can validate patient in more then one way.\r\n\r\nto use this functionality we need to :\r\n1) manage the modules and activate Patientvalidation module.\r\n2) go to globals under administration screen and choose in New Patient Form - \"Mandatory or specified fields only, use patient validation hook\"\r\n\r\nI have modified the new and edit patient flow to find out if to use this functionality or not . If not I use the old functionality if yes I can check something on this patient and get after ajax call status o.k. or false for example.\r\n","created_at":"2016-08-01T09:34:12Z","updated_at":"2016-08-14T09:15:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ba4bd3263ff2c14bc15a6c241de81823af877f50","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openemr/openemr/pulls/166/commits","review_comments_url":"https://api.github.com/repos/openemr/openemr/pulls/166/comments","review_comment_url":"https://api.github.com/repos/openemr/openemr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openemr/openemr/issues/166/comments","statuses_url":"https://api.github.com/repos/openemr/openemr/statuses/35cf52a3df4f1398aecdd25241b90668d5fbf834","head":{"label":"matrix-israel:DG/PatientValidationHook","ref":"DG/PatientValidationHook","sha":"35cf52a3df4f1398aecdd25241b90668d5fbf834","user":{"login":"matrix-israel","id":17746552,"avatar_url":"https://avatars.githubusercontent.com/u/17746552?v=3","gravatar_id":"","url":"https://api.github.com/users/matrix-israel","html_url":"https://github.com/matrix-israel","followers_url":"https://api.github.com/users/matrix-israel/followers","following_url":"https://api.github.com/users/matrix-israel/following{/other_user}","gists_url":"https://api.github.com/users/matrix-israel/gists{/gist_id}","starred_url":"https://api.github.com/users/matrix-israel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matrix-israel/subscriptions","organizations_url":"https://api.github.com/users/matrix-israel/orgs","repos_url":"https://api.github.com/users/matrix-israel/repos","events_url":"https://api.github.com/users/matrix-israel/events{/privacy}","received_events_url":"https://api.github.com/users/matrix-israel/received_events","type":"Organization","site_admin":false},"repo":{"id":54314139,"name":"openemr","full_name":"matrix-israel/openemr","owner":{"login":"matrix-israel","id":17746552,"avatar_url":"https://avatars.githubusercontent.com/u/17746552?v=3","gravatar_id":"","url":"https://api.github.com/users/matrix-israel","html_url":"https://github.com/matrix-israel","followers_url":"https://api.github.com/users/matrix-israel/followers","following_url":"https://api.github.com/users/matrix-israel/following{/other_user}","gists_url":"https://api.github.com/users/matrix-israel/gists{/gist_id}","starred_url":"https://api.github.com/users/matrix-israel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matrix-israel/subscriptions","organizations_url":"https://api.github.com/users/matrix-israel/orgs","repos_url":"https://api.github.com/users/matrix-israel/repos","events_url":"https://api.github.com/users/matrix-israel/events{/privacy}","received_events_url":"https://api.github.com/users/matrix-israel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/matrix-israel/openemr","description":"Mirror of official OpenEMR Sourceforge repository","fork":true,"url":"https://api.github.com/repos/matrix-israel/openemr","forks_url":"https://api.github.com/repos/matrix-israel/openemr/forks","keys_url":"https://api.github.com/repos/matrix-israel/openemr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matrix-israel/openemr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matrix-israel/openemr/teams","hooks_url":"https://api.github.com/repos/matrix-israel/openemr/hooks","issue_events_url":"https://api.github.com/repos/matrix-israel/openemr/issues/events{/number}","events_url":"https://api.github.com/repos/matrix-israel/openemr/events","assignees_url":"https://api.github.com/repos/matrix-israel/openemr/assignees{/user}","branches_url":"https://api.github.com/repos/matrix-israel/openemr/branches{/branch}","tags_url":"https://api.github.com/repos/matrix-israel/openemr/tags","blobs_url":"https://api.github.com/repos/matrix-israel/openemr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matrix-israel/openemr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matrix-israel/openemr/git/refs{/sha}","trees_url":"https://api.github.com/repos/matrix-israel/openemr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matrix-israel/openemr/statuses/{sha}","languages_url":"https://api.github.com/repos/matrix-israel/openemr/languages","stargazers_url":"https://api.github.com/repos/matrix-israel/openemr/stargazers","contributors_url":"https://api.github.com/repos/matrix-israel/openemr/contributors","subscribers_url":"https://api.github.com/repos/matrix-israel/openemr/subscribers","subscription_url":"https://api.github.com/repos/matrix-israel/openemr/subscription","commits_url":"https://api.github.com/repos/matrix-israel/openemr/commits{/sha}","git_commits_url":"https://api.github.com/repos/matrix-israel/openemr/git/commits{/sha}","comments_url":"https://api.github.com/repos/matrix-israel/openemr/comments{/number}","issue_comment_url":"https://api.github.com/repos/matrix-israel/openemr/issues/comments{/number}","contents_url":"https://api.github.com/repos/matrix-israel/openemr/contents/{+path}","compare_url":"https://api.github.com/repos/matrix-israel/openemr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matrix-israel/openemr/merges","archive_url":"https://api.github.com/repos/matrix-israel/openemr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matrix-israel/openemr/downloads","issues_url":"https://api.github.com/repos/matrix-israel/openemr/issues{/number}","pulls_url":"https://api.github.com/repos/matrix-israel/openemr/pulls{/number}","milestones_url":"https://api.github.com/repos/matrix-israel/openemr/milestones{/number}","notifications_url":"https://api.github.com/repos/matrix-israel/openemr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matrix-israel/openemr/labels{/name}","releases_url":"https://api.github.com/repos/matrix-israel/openemr/releases{/id}","deployments_url":"https://api.github.com/repos/matrix-israel/openemr/deployments","created_at":"2016-03-20T11:32:59Z","updated_at":"2016-03-22T10:56:31Z","pushed_at":"2016-08-11T15:41:03Z","git_url":"git://github.com/matrix-israel/openemr.git","ssh_url":"git@github.com:matrix-israel/openemr.git","clone_url":"https://github.com/matrix-israel/openemr.git","svn_url":"https://github.com/matrix-israel/openemr","homepage":"http://open-emr.org/","size":258464,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"openemr:master","ref":"master","sha":"d2141c07c52a1cc941c0c09cc8ec67604efd265b","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-12T01:22:21Z","pushed_at":"2016-08-14T08:00:13Z","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":279982,"stargazers_count":295,"watchers_count":295,"language":"PHP","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":446,"mirror_url":null,"open_issues_count":47,"forks":446,"open_issues":47,"watchers":295,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openemr/openemr/pulls/166"},"html":{"href":"https://github.com/openemr/openemr/pull/166"},"issue":{"href":"https://api.github.com/repos/openemr/openemr/issues/166"},"comments":{"href":"https://api.github.com/repos/openemr/openemr/issues/166/comments"},"review_comments":{"href":"https://api.github.com/repos/openemr/openemr/pulls/166/comments"},"review_comment":{"href":"https://api.github.com/repos/openemr/openemr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openemr/openemr/pulls/166/commits"},"statuses":{"href":"https://api.github.com/repos/openemr/openemr/statuses/35cf52a3df4f1398aecdd25241b90668d5fbf834"}}}}
{"actor":{"display_login":"bradymiller"}}