{"action":"created","comment":{"url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/pulls/comments/178011266","pull_request_review_id":107992753,"id":178011266,"diff_hunk":"@@ -114,21 +120,27 @@ angular.module('bahmni.common.patientSearch')\n             }\n         };\n \n-        $scope.forwardPatient = function (patient) {\n+        $scope.forwardPatient = function (patient, heading) {\n             var options = $.extend({}, $stateParams);\n+            $rootScope.patientAdmitLocationStatus = patient.Status;\n             $.extend(options, {\n                 patientUuid: patient.uuid,\n                 visitUuid: patient.activeVisitUuid || null,\n                 encounterUuid: $stateParams.encounterUuid || 'active',\n                 programUuid: patient.programUuid || null,\n                 enrollment: patient.enrollment || null,\n-                forwardUrl: patient.forwardUrl || null\n+                forwardUrl: patient.forwardUrl || null,\n+                dateEnrolled: patient.dateEnrolled || null\n             });\n-\n-            if (options.forwardUrl !== null) {\n-                $window.open(appService.getAppDescriptor().formatUrl(options.forwardUrl, options, true), '_blank');\n-            } else {\n-                $window.location = appService.getAppDescriptor().formatUrl($scope.search.searchType.forwardUrl, options, true);\n+            var link = options.forwardUrl ? {\n+                url: options.forwardUrl,\n+                newTab: true\n+            } : {url: $scope.search.searchType.forwardUrl, newTab: false};\n+            if ($scope.search.searchType.links) {\n+                link = _.find($scope.search.searchType.links, {linkColumn: heading}) || link;\n+            }\n+            if (link.url && link.url !== null) {","path":"ui/app/common/patient-search/controllers/patientsListController.js","position":75,"original_position":75,"commit_id":"745212f8669218aa71728f29c54d5f176083c1ac","original_commit_id":"745212f8669218aa71728f29c54d5f176083c1ac","user":{"login":"ShruthiPitta","id":2051920,"avatar_url":"https://avatars3.githubusercontent.com/u/2051920?v=4","gravatar_id":"","url":"https://api.github.com/users/ShruthiPitta","html_url":"https://github.com/ShruthiPitta","followers_url":"https://api.github.com/users/ShruthiPitta/followers","following_url":"https://api.github.com/users/ShruthiPitta/following{/other_user}","gists_url":"https://api.github.com/users/ShruthiPitta/gists{/gist_id}","starred_url":"https://api.github.com/users/ShruthiPitta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShruthiPitta/subscriptions","organizations_url":"https://api.github.com/users/ShruthiPitta/orgs","repos_url":"https://api.github.com/users/ShruthiPitta/repos","events_url":"https://api.github.com/users/ShruthiPitta/events{/privacy}","received_events_url":"https://api.github.com/users/ShruthiPitta/received_events","type":"User","site_admin":false},"body":"Not sure if we need link.url !== null?","created_at":"2018-03-29T10:10:13Z","updated_at":"2018-03-29T10:10:13Z","html_url":"https://github.com/Bahmni/openmrs-module-bahmniapps/pull/139#discussion_r178011266","pull_request_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/pulls/139","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/pulls/comments/178011266"},"html":{"href":"https://github.com/Bahmni/openmrs-module-bahmniapps/pull/139#discussion_r178011266"},"pull_request":{"href":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/pulls/139"}}},"pull_request":{"url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/pulls/139","id":174912773,"html_url":"https://github.com/Bahmni/openmrs-module-bahmniapps/pull/139","diff_url":"https://github.com/Bahmni/openmrs-module-bahmniapps/pull/139.diff","patch_url":"https://github.com/Bahmni/openmrs-module-bahmniapps/pull/139.patch","issue_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/issues/139","number":139,"state":"open","locked":false,"title":"BAH-489 | Created operation theatre module and adde…","user":{"login":"maharjunm","id":12825248,"avatar_url":"https://avatars2.githubusercontent.com/u/12825248?v=4","gravatar_id":"","url":"https://api.github.com/users/maharjunm","html_url":"https://github.com/maharjunm","followers_url":"https://api.github.com/users/maharjunm/followers","following_url":"https://api.github.com/users/maharjunm/following{/other_user}","gists_url":"https://api.github.com/users/maharjunm/gists{/gist_id}","starred_url":"https://api.github.com/users/maharjunm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maharjunm/subscriptions","organizations_url":"https://api.github.com/users/maharjunm/orgs","repos_url":"https://api.github.com/users/maharjunm/repos","events_url":"https://api.github.com/users/maharjunm/events{/privacy}","received_events_url":"https://api.github.com/users/maharjunm/received_events","type":"User","site_admin":false},"body":"…d common files what we need for ot module\r\n\r\nhttps://bahmni.atlassian.net/browse/BAH-489\r\n\r\nWe forked your repo and added our files and tested. Everything working fine. \r\nTwo common files changed as part of this. We added a method in `programService.js` file.\r\nPatientsListController.js in this file we added links and linkColumn code. we modified some code also. We checked other queues present in the programs module with the changes. everything working as expected. Added tests for the changed code and also for ot files.\r\n\r\nHere are the changed files list: \r\napp/ot --> new folder\r\nCommon/patient-search/controllers/PatientsListController.js\r\nCommon/patient-search/views/patientsList.html\r\nbower.json --> added angular-drag-drop\r\ncommon/domain/service/programService.js\r\nstyles/clinical/clinical.scss  —> added our OT module respective SCSS files\r\n/test/config/karma.conf.js\r\n/test/unit/ot/ --> new folder\r\nGruntfile.js --> added in urglify tasks\r\n\r\n\r\n\r\n","created_at":"2018-03-14T10:34:42Z","updated_at":"2018-03-29T10:10:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"df7f79e1eb3a2dcfaebd2564a094515f872e5e00","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/pulls/139/commits","review_comments_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/pulls/139/comments","review_comment_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/issues/139/comments","statuses_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/statuses/745212f8669218aa71728f29c54d5f176083c1ac","head":{"label":"maharjunm:operation-theatre","ref":"operation-theatre","sha":"745212f8669218aa71728f29c54d5f176083c1ac","user":{"login":"maharjunm","id":12825248,"avatar_url":"https://avatars2.githubusercontent.com/u/12825248?v=4","gravatar_id":"","url":"https://api.github.com/users/maharjunm","html_url":"https://github.com/maharjunm","followers_url":"https://api.github.com/users/maharjunm/followers","following_url":"https://api.github.com/users/maharjunm/following{/other_user}","gists_url":"https://api.github.com/users/maharjunm/gists{/gist_id}","starred_url":"https://api.github.com/users/maharjunm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maharjunm/subscriptions","organizations_url":"https://api.github.com/users/maharjunm/orgs","repos_url":"https://api.github.com/users/maharjunm/repos","events_url":"https://api.github.com/users/maharjunm/events{/privacy}","received_events_url":"https://api.github.com/users/maharjunm/received_events","type":"User","site_admin":false},"repo":{"id":124026877,"name":"openmrs-module-bahmniapps","full_name":"maharjunm/openmrs-module-bahmniapps","owner":{"login":"maharjunm","id":12825248,"avatar_url":"https://avatars2.githubusercontent.com/u/12825248?v=4","gravatar_id":"","url":"https://api.github.com/users/maharjunm","html_url":"https://github.com/maharjunm","followers_url":"https://api.github.com/users/maharjunm/followers","following_url":"https://api.github.com/users/maharjunm/following{/other_user}","gists_url":"https://api.github.com/users/maharjunm/gists{/gist_id}","starred_url":"https://api.github.com/users/maharjunm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maharjunm/subscriptions","organizations_url":"https://api.github.com/users/maharjunm/orgs","repos_url":"https://api.github.com/users/maharjunm/repos","events_url":"https://api.github.com/users/maharjunm/events{/privacy}","received_events_url":"https://api.github.com/users/maharjunm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maharjunm/openmrs-module-bahmniapps","description":"Angular.JS based UI application that is used by Clinicians and Patient care providers.","fork":true,"url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps","forks_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/forks","keys_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/teams","hooks_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/hooks","issue_events_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/issues/events{/number}","events_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/events","assignees_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/assignees{/user}","branches_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/branches{/branch}","tags_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/tags","blobs_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/git/refs{/sha}","trees_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/statuses/{sha}","languages_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/languages","stargazers_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/stargazers","contributors_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/contributors","subscribers_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/subscribers","subscription_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/subscription","commits_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/commits{/sha}","git_commits_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/git/commits{/sha}","comments_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/comments{/number}","issue_comment_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/issues/comments{/number}","contents_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/contents/{+path}","compare_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/merges","archive_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/downloads","issues_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/issues{/number}","pulls_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/pulls{/number}","milestones_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/milestones{/number}","notifications_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/labels{/name}","releases_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/releases{/id}","deployments_url":"https://api.github.com/repos/maharjunm/openmrs-module-bahmniapps/deployments","created_at":"2018-03-06T05:40:59Z","updated_at":"2018-03-06T05:41:03Z","pushed_at":"2018-03-14T10:22:47Z","git_url":"git://github.com/maharjunm/openmrs-module-bahmniapps.git","ssh_url":"git@github.com:maharjunm/openmrs-module-bahmniapps.git","clone_url":"https://github.com/maharjunm/openmrs-module-bahmniapps.git","svn_url":"https://github.com/maharjunm/openmrs-module-bahmniapps","homepage":"http://www.bahmni.org","size":23703,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Bahmni:master","ref":"master","sha":"dc25ab3610dc8fe4187d3ec1b00295f94cd127f3","user":{"login":"Bahmni","id":3725098,"avatar_url":"https://avatars0.githubusercontent.com/u/3725098?v=4","gravatar_id":"","url":"https://api.github.com/users/Bahmni","html_url":"https://github.com/Bahmni","followers_url":"https://api.github.com/users/Bahmni/followers","following_url":"https://api.github.com/users/Bahmni/following{/other_user}","gists_url":"https://api.github.com/users/Bahmni/gists{/gist_id}","starred_url":"https://api.github.com/users/Bahmni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bahmni/subscriptions","organizations_url":"https://api.github.com/users/Bahmni/orgs","repos_url":"https://api.github.com/users/Bahmni/repos","events_url":"https://api.github.com/users/Bahmni/events{/privacy}","received_events_url":"https://api.github.com/users/Bahmni/received_events","type":"Organization","site_admin":false},"repo":{"id":10353788,"name":"openmrs-module-bahmniapps","full_name":"Bahmni/openmrs-module-bahmniapps","owner":{"login":"Bahmni","id":3725098,"avatar_url":"https://avatars0.githubusercontent.com/u/3725098?v=4","gravatar_id":"","url":"https://api.github.com/users/Bahmni","html_url":"https://github.com/Bahmni","followers_url":"https://api.github.com/users/Bahmni/followers","following_url":"https://api.github.com/users/Bahmni/following{/other_user}","gists_url":"https://api.github.com/users/Bahmni/gists{/gist_id}","starred_url":"https://api.github.com/users/Bahmni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bahmni/subscriptions","organizations_url":"https://api.github.com/users/Bahmni/orgs","repos_url":"https://api.github.com/users/Bahmni/repos","events_url":"https://api.github.com/users/Bahmni/events{/privacy}","received_events_url":"https://api.github.com/users/Bahmni/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Bahmni/openmrs-module-bahmniapps","description":"Angular.JS based UI application that is used by Clinicians and Patient care providers.","fork":false,"url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps","forks_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/forks","keys_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/teams","hooks_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/hooks","issue_events_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/issues/events{/number}","events_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/events","assignees_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/assignees{/user}","branches_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/branches{/branch}","tags_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/tags","blobs_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/git/refs{/sha}","trees_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/statuses/{sha}","languages_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/languages","stargazers_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/stargazers","contributors_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/contributors","subscribers_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/subscribers","subscription_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/subscription","commits_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/commits{/sha}","git_commits_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/git/commits{/sha}","comments_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/comments{/number}","issue_comment_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/issues/comments{/number}","contents_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/contents/{+path}","compare_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/merges","archive_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/downloads","issues_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/issues{/number}","pulls_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/pulls{/number}","milestones_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/milestones{/number}","notifications_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/labels{/name}","releases_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/releases{/id}","deployments_url":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/deployments","created_at":"2013-05-29T06:57:42Z","updated_at":"2018-03-23T11:39:13Z","pushed_at":"2018-03-26T17:39:39Z","git_url":"git://github.com/Bahmni/openmrs-module-bahmniapps.git","ssh_url":"git@github.com:Bahmni/openmrs-module-bahmniapps.git","clone_url":"https://github.com/Bahmni/openmrs-module-bahmniapps.git","svn_url":"https://github.com/Bahmni/openmrs-module-bahmniapps","homepage":"http://www.bahmni.org","size":23713,"stargazers_count":66,"watchers_count":66,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":106,"mirror_url":null,"archived":false,"open_issues_count":20,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":106,"open_issues":20,"watchers":66,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/pulls/139"},"html":{"href":"https://github.com/Bahmni/openmrs-module-bahmniapps/pull/139"},"issue":{"href":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/issues/139"},"comments":{"href":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/issues/139/comments"},"review_comments":{"href":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/pulls/139/comments"},"review_comment":{"href":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/pulls/139/commits"},"statuses":{"href":"https://api.github.com/repos/Bahmni/openmrs-module-bahmniapps/statuses/745212f8669218aa71728f29c54d5f176083c1ac"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ShruthiPitta"}}