{"action":"created","comment":{"url":"https://api.github.com/repos/projectcypress/cypress/pulls/comments/77226470","id":77226470,"diff_hunk":"@@ -62,4 +62,9 @@ def display_field(field)\n   def coverage_for_measure(measure_id, sub_id, bundle_id)\n     QueryCache.where(measure_id: measure_id, sub_id: sub_id, bundle_id: bundle_id, test_id: nil).first['bonnie_coverage']\n   end\n+\n+  def hide_patient_calculation?\n+    # Hide measure calculation if it is a product test, Cypress is in ATL Mode and the current user is not an ATL or admin\n+    @product_test && ApplicationController.helpers.mode_atl? && (!current_user.user_role?('admin') && !current_user.user_role?('atl'))","path":"app/helpers/records_helper.rb","position":7,"original_position":7,"commit_id":"c326296a298ccedc9f6f8d83c2dc95eb5ea42b95","original_commit_id":"c326296a298ccedc9f6f8d83c2dc95eb5ea42b95","user":{"login":"ssayer","id":7733,"avatar_url":"https://avatars.githubusercontent.com/u/7733?v=3","gravatar_id":"","url":"https://api.github.com/users/ssayer","html_url":"https://github.com/ssayer","followers_url":"https://api.github.com/users/ssayer/followers","following_url":"https://api.github.com/users/ssayer/following{/other_user}","gists_url":"https://api.github.com/users/ssayer/gists{/gist_id}","starred_url":"https://api.github.com/users/ssayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssayer/subscriptions","organizations_url":"https://api.github.com/users/ssayer/orgs","repos_url":"https://api.github.com/users/ssayer/repos","events_url":"https://api.github.com/users/ssayer/events{/privacy}","received_events_url":"https://api.github.com/users/ssayer/received_events","type":"User","site_admin":false},"body":"product test should be explicitly passed, it's not good to rely on an instance variable outside the method. Also, is there a cleaner way to call/access ApplicationController.helpers.mode_atl?.","created_at":"2016-09-01T18:19:35Z","updated_at":"2016-09-01T18:19:35Z","html_url":"https://github.com/projectcypress/cypress/pull/698#discussion_r77226470","pull_request_url":"https://api.github.com/repos/projectcypress/cypress/pulls/698","_links":{"self":{"href":"https://api.github.com/repos/projectcypress/cypress/pulls/comments/77226470"},"html":{"href":"https://github.com/projectcypress/cypress/pull/698#discussion_r77226470"},"pull_request":{"href":"https://api.github.com/repos/projectcypress/cypress/pulls/698"}}},"pull_request":{"url":"https://api.github.com/repos/projectcypress/cypress/pulls/698","id":82434461,"html_url":"https://github.com/projectcypress/cypress/pull/698","diff_url":"https://github.com/projectcypress/cypress/pull/698.diff","patch_url":"https://github.com/projectcypress/cypress/pull/698.patch","issue_url":"https://api.github.com/repos/projectcypress/cypress/issues/698","number":698,"state":"open","locked":false,"title":"show measure calculation unless the list is for a product test, Cypre…","user":{"login":"dczulada","id":8173551,"avatar_url":"https://avatars.githubusercontent.com/u/8173551?v=3","gravatar_id":"","url":"https://api.github.com/users/dczulada","html_url":"https://github.com/dczulada","followers_url":"https://api.github.com/users/dczulada/followers","following_url":"https://api.github.com/users/dczulada/following{/other_user}","gists_url":"https://api.github.com/users/dczulada/gists{/gist_id}","starred_url":"https://api.github.com/users/dczulada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dczulada/subscriptions","organizations_url":"https://api.github.com/users/dczulada/orgs","repos_url":"https://api.github.com/users/dczulada/repos","events_url":"https://api.github.com/users/dczulada/events{/privacy}","received_events_url":"https://api.github.com/users/dczulada/received_events","type":"User","site_admin":false},"body":"…ss is in ATL Mode and the current user is not an ATL","created_at":"2016-08-23T20:24:27Z","updated_at":"2016-09-01T18:19:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d79dd93d2ad25da5405ffd3d22175df361559bc1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/projectcypress/cypress/pulls/698/commits","review_comments_url":"https://api.github.com/repos/projectcypress/cypress/pulls/698/comments","review_comment_url":"https://api.github.com/repos/projectcypress/cypress/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projectcypress/cypress/issues/698/comments","statuses_url":"https://api.github.com/repos/projectcypress/cypress/statuses/c326296a298ccedc9f6f8d83c2dc95eb5ea42b95","head":{"label":"projectcypress:view_patients","ref":"view_patients","sha":"c326296a298ccedc9f6f8d83c2dc95eb5ea42b95","user":{"login":"projectcypress","id":1188796,"avatar_url":"https://avatars.githubusercontent.com/u/1188796?v=3","gravatar_id":"","url":"https://api.github.com/users/projectcypress","html_url":"https://github.com/projectcypress","followers_url":"https://api.github.com/users/projectcypress/followers","following_url":"https://api.github.com/users/projectcypress/following{/other_user}","gists_url":"https://api.github.com/users/projectcypress/gists{/gist_id}","starred_url":"https://api.github.com/users/projectcypress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectcypress/subscriptions","organizations_url":"https://api.github.com/users/projectcypress/orgs","repos_url":"https://api.github.com/users/projectcypress/repos","events_url":"https://api.github.com/users/projectcypress/events{/privacy}","received_events_url":"https://api.github.com/users/projectcypress/received_events","type":"Organization","site_admin":false},"repo":{"id":2756704,"name":"cypress","full_name":"projectcypress/cypress","owner":{"login":"projectcypress","id":1188796,"avatar_url":"https://avatars.githubusercontent.com/u/1188796?v=3","gravatar_id":"","url":"https://api.github.com/users/projectcypress","html_url":"https://github.com/projectcypress","followers_url":"https://api.github.com/users/projectcypress/followers","following_url":"https://api.github.com/users/projectcypress/following{/other_user}","gists_url":"https://api.github.com/users/projectcypress/gists{/gist_id}","starred_url":"https://api.github.com/users/projectcypress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectcypress/subscriptions","organizations_url":"https://api.github.com/users/projectcypress/orgs","repos_url":"https://api.github.com/users/projectcypress/repos","events_url":"https://api.github.com/users/projectcypress/events{/privacy}","received_events_url":"https://api.github.com/users/projectcypress/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projectcypress/cypress","description":"An open source tool for testing Meaningful Use Clinical Quality measure calculation accuracy","fork":false,"url":"https://api.github.com/repos/projectcypress/cypress","forks_url":"https://api.github.com/repos/projectcypress/cypress/forks","keys_url":"https://api.github.com/repos/projectcypress/cypress/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projectcypress/cypress/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projectcypress/cypress/teams","hooks_url":"https://api.github.com/repos/projectcypress/cypress/hooks","issue_events_url":"https://api.github.com/repos/projectcypress/cypress/issues/events{/number}","events_url":"https://api.github.com/repos/projectcypress/cypress/events","assignees_url":"https://api.github.com/repos/projectcypress/cypress/assignees{/user}","branches_url":"https://api.github.com/repos/projectcypress/cypress/branches{/branch}","tags_url":"https://api.github.com/repos/projectcypress/cypress/tags","blobs_url":"https://api.github.com/repos/projectcypress/cypress/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projectcypress/cypress/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projectcypress/cypress/git/refs{/sha}","trees_url":"https://api.github.com/repos/projectcypress/cypress/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projectcypress/cypress/statuses/{sha}","languages_url":"https://api.github.com/repos/projectcypress/cypress/languages","stargazers_url":"https://api.github.com/repos/projectcypress/cypress/stargazers","contributors_url":"https://api.github.com/repos/projectcypress/cypress/contributors","subscribers_url":"https://api.github.com/repos/projectcypress/cypress/subscribers","subscription_url":"https://api.github.com/repos/projectcypress/cypress/subscription","commits_url":"https://api.github.com/repos/projectcypress/cypress/commits{/sha}","git_commits_url":"https://api.github.com/repos/projectcypress/cypress/git/commits{/sha}","comments_url":"https://api.github.com/repos/projectcypress/cypress/comments{/number}","issue_comment_url":"https://api.github.com/repos/projectcypress/cypress/issues/comments{/number}","contents_url":"https://api.github.com/repos/projectcypress/cypress/contents/{+path}","compare_url":"https://api.github.com/repos/projectcypress/cypress/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projectcypress/cypress/merges","archive_url":"https://api.github.com/repos/projectcypress/cypress/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projectcypress/cypress/downloads","issues_url":"https://api.github.com/repos/projectcypress/cypress/issues{/number}","pulls_url":"https://api.github.com/repos/projectcypress/cypress/pulls{/number}","milestones_url":"https://api.github.com/repos/projectcypress/cypress/milestones{/number}","notifications_url":"https://api.github.com/repos/projectcypress/cypress/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projectcypress/cypress/labels{/name}","releases_url":"https://api.github.com/repos/projectcypress/cypress/releases{/id}","deployments_url":"https://api.github.com/repos/projectcypress/cypress/deployments","created_at":"2011-11-11T15:51:53Z","updated_at":"2016-08-29T15:57:21Z","pushed_at":"2016-09-01T17:53:21Z","git_url":"git://github.com/projectcypress/cypress.git","ssh_url":"git@github.com:projectcypress/cypress.git","clone_url":"https://github.com/projectcypress/cypress.git","svn_url":"https://github.com/projectcypress/cypress","homepage":"http://www.projectcypress.org","size":32724,"stargazers_count":39,"watchers_count":39,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":48,"mirror_url":null,"open_issues_count":14,"forks":48,"open_issues":14,"watchers":39,"default_branch":"master"}},"base":{"label":"projectcypress:master","ref":"master","sha":"3c9ce92bb72e7b39b27ca5acf296d7838db51f0b","user":{"login":"projectcypress","id":1188796,"avatar_url":"https://avatars.githubusercontent.com/u/1188796?v=3","gravatar_id":"","url":"https://api.github.com/users/projectcypress","html_url":"https://github.com/projectcypress","followers_url":"https://api.github.com/users/projectcypress/followers","following_url":"https://api.github.com/users/projectcypress/following{/other_user}","gists_url":"https://api.github.com/users/projectcypress/gists{/gist_id}","starred_url":"https://api.github.com/users/projectcypress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectcypress/subscriptions","organizations_url":"https://api.github.com/users/projectcypress/orgs","repos_url":"https://api.github.com/users/projectcypress/repos","events_url":"https://api.github.com/users/projectcypress/events{/privacy}","received_events_url":"https://api.github.com/users/projectcypress/received_events","type":"Organization","site_admin":false},"repo":{"id":2756704,"name":"cypress","full_name":"projectcypress/cypress","owner":{"login":"projectcypress","id":1188796,"avatar_url":"https://avatars.githubusercontent.com/u/1188796?v=3","gravatar_id":"","url":"https://api.github.com/users/projectcypress","html_url":"https://github.com/projectcypress","followers_url":"https://api.github.com/users/projectcypress/followers","following_url":"https://api.github.com/users/projectcypress/following{/other_user}","gists_url":"https://api.github.com/users/projectcypress/gists{/gist_id}","starred_url":"https://api.github.com/users/projectcypress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectcypress/subscriptions","organizations_url":"https://api.github.com/users/projectcypress/orgs","repos_url":"https://api.github.com/users/projectcypress/repos","events_url":"https://api.github.com/users/projectcypress/events{/privacy}","received_events_url":"https://api.github.com/users/projectcypress/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projectcypress/cypress","description":"An open source tool for testing Meaningful Use Clinical Quality measure calculation accuracy","fork":false,"url":"https://api.github.com/repos/projectcypress/cypress","forks_url":"https://api.github.com/repos/projectcypress/cypress/forks","keys_url":"https://api.github.com/repos/projectcypress/cypress/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projectcypress/cypress/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projectcypress/cypress/teams","hooks_url":"https://api.github.com/repos/projectcypress/cypress/hooks","issue_events_url":"https://api.github.com/repos/projectcypress/cypress/issues/events{/number}","events_url":"https://api.github.com/repos/projectcypress/cypress/events","assignees_url":"https://api.github.com/repos/projectcypress/cypress/assignees{/user}","branches_url":"https://api.github.com/repos/projectcypress/cypress/branches{/branch}","tags_url":"https://api.github.com/repos/projectcypress/cypress/tags","blobs_url":"https://api.github.com/repos/projectcypress/cypress/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projectcypress/cypress/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projectcypress/cypress/git/refs{/sha}","trees_url":"https://api.github.com/repos/projectcypress/cypress/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projectcypress/cypress/statuses/{sha}","languages_url":"https://api.github.com/repos/projectcypress/cypress/languages","stargazers_url":"https://api.github.com/repos/projectcypress/cypress/stargazers","contributors_url":"https://api.github.com/repos/projectcypress/cypress/contributors","subscribers_url":"https://api.github.com/repos/projectcypress/cypress/subscribers","subscription_url":"https://api.github.com/repos/projectcypress/cypress/subscription","commits_url":"https://api.github.com/repos/projectcypress/cypress/commits{/sha}","git_commits_url":"https://api.github.com/repos/projectcypress/cypress/git/commits{/sha}","comments_url":"https://api.github.com/repos/projectcypress/cypress/comments{/number}","issue_comment_url":"https://api.github.com/repos/projectcypress/cypress/issues/comments{/number}","contents_url":"https://api.github.com/repos/projectcypress/cypress/contents/{+path}","compare_url":"https://api.github.com/repos/projectcypress/cypress/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projectcypress/cypress/merges","archive_url":"https://api.github.com/repos/projectcypress/cypress/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projectcypress/cypress/downloads","issues_url":"https://api.github.com/repos/projectcypress/cypress/issues{/number}","pulls_url":"https://api.github.com/repos/projectcypress/cypress/pulls{/number}","milestones_url":"https://api.github.com/repos/projectcypress/cypress/milestones{/number}","notifications_url":"https://api.github.com/repos/projectcypress/cypress/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projectcypress/cypress/labels{/name}","releases_url":"https://api.github.com/repos/projectcypress/cypress/releases{/id}","deployments_url":"https://api.github.com/repos/projectcypress/cypress/deployments","created_at":"2011-11-11T15:51:53Z","updated_at":"2016-08-29T15:57:21Z","pushed_at":"2016-09-01T17:53:21Z","git_url":"git://github.com/projectcypress/cypress.git","ssh_url":"git@github.com:projectcypress/cypress.git","clone_url":"https://github.com/projectcypress/cypress.git","svn_url":"https://github.com/projectcypress/cypress","homepage":"http://www.projectcypress.org","size":32724,"stargazers_count":39,"watchers_count":39,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":48,"mirror_url":null,"open_issues_count":14,"forks":48,"open_issues":14,"watchers":39,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projectcypress/cypress/pulls/698"},"html":{"href":"https://github.com/projectcypress/cypress/pull/698"},"issue":{"href":"https://api.github.com/repos/projectcypress/cypress/issues/698"},"comments":{"href":"https://api.github.com/repos/projectcypress/cypress/issues/698/comments"},"review_comments":{"href":"https://api.github.com/repos/projectcypress/cypress/pulls/698/comments"},"review_comment":{"href":"https://api.github.com/repos/projectcypress/cypress/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projectcypress/cypress/pulls/698/commits"},"statuses":{"href":"https://api.github.com/repos/projectcypress/cypress/statuses/c326296a298ccedc9f6f8d83c2dc95eb5ea42b95"}}}}
{"actor":{"display_login":"ssayer"}}