{"action":"created","comment":{"url":"https://api.github.com/repos/projecttacoma/bonnie/pulls/comments/48617308","id":48617308,"diff_hunk":"@@ -23,42 +23,39 @@ class Thorax.Views.ImportMeasure extends Thorax.Views.BonnieView\n       redirectRoute: currentRoute\n \n   events:\n-    rendered: -> \n+    rendered: ->\n       @$(\"option[value=\\\"#{eoc}\\\"]\").attr('selected','selected') for eoc in @model.get('episode_ids') if @model? && @model.get('episode_of_care') && @model.get('episode_ids')?\n       @$el.on 'hidden.bs.modal', -> @remove() unless $('#pleaseWaitDialog').is(':visible')\n-      @$(\"input[type=radio]:checked\").next().css(\"color\",\"white\")\n       @$('.date-picker').datepicker('setDate', moment().format('L'))\n       @$('.effective-date').hide()\n+      # set the inputs as checked if update\n+      if @model? and @model.get('episode_of_care') is true then @$('input[value=\"episode\"]').attr('checked', true) else @$('input[value=\"patient\"]').attr('checked', true)\n+      if @model? and @model.get('type') is 'eh' then @$('input[value=\"eh\"]').attr('checked', true) else @$('input[value=\"ep\"]').attr('checked', true)","path":"app/assets/javascripts/views/import_measure_view.js.coffee","position":13,"original_position":13,"commit_id":"a3734733fb5fa1c09daef843564c67288c374e6d","original_commit_id":"a3734733fb5fa1c09daef843564c67288c374e6d","user":{"login":"edeyoung","id":11574199,"avatar_url":"https://avatars.githubusercontent.com/u/11574199?v=3","gravatar_id":"","url":"https://api.github.com/users/edeyoung","html_url":"https://github.com/edeyoung","followers_url":"https://api.github.com/users/edeyoung/followers","following_url":"https://api.github.com/users/edeyoung/following{/other_user}","gists_url":"https://api.github.com/users/edeyoung/gists{/gist_id}","starred_url":"https://api.github.com/users/edeyoung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edeyoung/subscriptions","organizations_url":"https://api.github.com/users/edeyoung/orgs","repos_url":"https://api.github.com/users/edeyoung/repos","events_url":"https://api.github.com/users/edeyoung/events{/privacy}","received_events_url":"https://api.github.com/users/edeyoung/received_events","type":"User","site_admin":false},"body":"Can this be done in import_measure.hbs?","created_at":"2015-12-30T17:20:23Z","updated_at":"2015-12-30T17:20:23Z","html_url":"https://github.com/projecttacoma/bonnie/pull/461#discussion_r48617308","pull_request_url":"https://api.github.com/repos/projecttacoma/bonnie/pulls/461","_links":{"self":{"href":"https://api.github.com/repos/projecttacoma/bonnie/pulls/comments/48617308"},"html":{"href":"https://github.com/projecttacoma/bonnie/pull/461#discussion_r48617308"},"pull_request":{"href":"https://api.github.com/repos/projecttacoma/bonnie/pulls/461"}}},"pull_request":{"url":"https://api.github.com/repos/projecttacoma/bonnie/pulls/461","id":39624091,"html_url":"https://github.com/projecttacoma/bonnie/pull/461","diff_url":"https://github.com/projecttacoma/bonnie/pull/461.diff","patch_url":"https://github.com/projecttacoma/bonnie/pull/461.patch","issue_url":"https://api.github.com/repos/projecttacoma/bonnie/issues/461","number":461,"state":"open","locked":false,"title":"Allow users to change measure and calculation type","user":{"login":"thecristen","id":2136286,"avatar_url":"https://avatars.githubusercontent.com/u/2136286?v=3","gravatar_id":"","url":"https://api.github.com/users/thecristen","html_url":"https://github.com/thecristen","followers_url":"https://api.github.com/users/thecristen/followers","following_url":"https://api.github.com/users/thecristen/following{/other_user}","gists_url":"https://api.github.com/users/thecristen/gists{/gist_id}","starred_url":"https://api.github.com/users/thecristen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thecristen/subscriptions","organizations_url":"https://api.github.com/users/thecristen/orgs","repos_url":"https://api.github.com/users/thecristen/repos","events_url":"https://api.github.com/users/thecristen/events{/privacy}","received_events_url":"https://api.github.com/users/thecristen/received_events","type":"User","site_admin":false},"body":"## Story\r\n* https://www.pivotaltracker.com/story/show/91739674\r\n\r\n## Notes\r\n* *Major* refactoring on the measures controller, breaking out the create method","created_at":"2015-07-09T20:21:15Z","updated_at":"2015-12-30T17:20:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"18593a485d88d748b1a740d0dfeb18a9e84ac23c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/projecttacoma/bonnie/pulls/461/commits","review_comments_url":"https://api.github.com/repos/projecttacoma/bonnie/pulls/461/comments","review_comment_url":"https://api.github.com/repos/projecttacoma/bonnie/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projecttacoma/bonnie/issues/461/comments","statuses_url":"https://api.github.com/repos/projecttacoma/bonnie/statuses/a3734733fb5fa1c09daef843564c67288c374e6d","head":{"label":"projecttacoma:change_types","ref":"change_types","sha":"a3734733fb5fa1c09daef843564c67288c374e6d","user":{"login":"projecttacoma","id":5497023,"avatar_url":"https://avatars.githubusercontent.com/u/5497023?v=3","gravatar_id":"","url":"https://api.github.com/users/projecttacoma","html_url":"https://github.com/projecttacoma","followers_url":"https://api.github.com/users/projecttacoma/followers","following_url":"https://api.github.com/users/projecttacoma/following{/other_user}","gists_url":"https://api.github.com/users/projecttacoma/gists{/gist_id}","starred_url":"https://api.github.com/users/projecttacoma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecttacoma/subscriptions","organizations_url":"https://api.github.com/users/projecttacoma/orgs","repos_url":"https://api.github.com/users/projecttacoma/repos","events_url":"https://api.github.com/users/projecttacoma/events{/privacy}","received_events_url":"https://api.github.com/users/projecttacoma/received_events","type":"Organization","site_admin":false},"repo":{"id":12958279,"name":"bonnie","full_name":"projecttacoma/bonnie","owner":{"login":"projecttacoma","id":5497023,"avatar_url":"https://avatars.githubusercontent.com/u/5497023?v=3","gravatar_id":"","url":"https://api.github.com/users/projecttacoma","html_url":"https://github.com/projecttacoma","followers_url":"https://api.github.com/users/projecttacoma/followers","following_url":"https://api.github.com/users/projecttacoma/following{/other_user}","gists_url":"https://api.github.com/users/projecttacoma/gists{/gist_id}","starred_url":"https://api.github.com/users/projecttacoma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecttacoma/subscriptions","organizations_url":"https://api.github.com/users/projecttacoma/orgs","repos_url":"https://api.github.com/users/projecttacoma/repos","events_url":"https://api.github.com/users/projecttacoma/events{/privacy}","received_events_url":"https://api.github.com/users/projecttacoma/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projecttacoma/bonnie","description":"Clinical Quality Measure Testing Tool","fork":false,"url":"https://api.github.com/repos/projecttacoma/bonnie","forks_url":"https://api.github.com/repos/projecttacoma/bonnie/forks","keys_url":"https://api.github.com/repos/projecttacoma/bonnie/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projecttacoma/bonnie/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projecttacoma/bonnie/teams","hooks_url":"https://api.github.com/repos/projecttacoma/bonnie/hooks","issue_events_url":"https://api.github.com/repos/projecttacoma/bonnie/issues/events{/number}","events_url":"https://api.github.com/repos/projecttacoma/bonnie/events","assignees_url":"https://api.github.com/repos/projecttacoma/bonnie/assignees{/user}","branches_url":"https://api.github.com/repos/projecttacoma/bonnie/branches{/branch}","tags_url":"https://api.github.com/repos/projecttacoma/bonnie/tags","blobs_url":"https://api.github.com/repos/projecttacoma/bonnie/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projecttacoma/bonnie/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projecttacoma/bonnie/git/refs{/sha}","trees_url":"https://api.github.com/repos/projecttacoma/bonnie/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projecttacoma/bonnie/statuses/{sha}","languages_url":"https://api.github.com/repos/projecttacoma/bonnie/languages","stargazers_url":"https://api.github.com/repos/projecttacoma/bonnie/stargazers","contributors_url":"https://api.github.com/repos/projecttacoma/bonnie/contributors","subscribers_url":"https://api.github.com/repos/projecttacoma/bonnie/subscribers","subscription_url":"https://api.github.com/repos/projecttacoma/bonnie/subscription","commits_url":"https://api.github.com/repos/projecttacoma/bonnie/commits{/sha}","git_commits_url":"https://api.github.com/repos/projecttacoma/bonnie/git/commits{/sha}","comments_url":"https://api.github.com/repos/projecttacoma/bonnie/comments{/number}","issue_comment_url":"https://api.github.com/repos/projecttacoma/bonnie/issues/comments{/number}","contents_url":"https://api.github.com/repos/projecttacoma/bonnie/contents/{+path}","compare_url":"https://api.github.com/repos/projecttacoma/bonnie/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projecttacoma/bonnie/merges","archive_url":"https://api.github.com/repos/projecttacoma/bonnie/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projecttacoma/bonnie/downloads","issues_url":"https://api.github.com/repos/projecttacoma/bonnie/issues{/number}","pulls_url":"https://api.github.com/repos/projecttacoma/bonnie/pulls{/number}","milestones_url":"https://api.github.com/repos/projecttacoma/bonnie/milestones{/number}","notifications_url":"https://api.github.com/repos/projecttacoma/bonnie/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projecttacoma/bonnie/labels{/name}","releases_url":"https://api.github.com/repos/projecttacoma/bonnie/releases{/id}","created_at":"2013-09-19T20:11:14Z","updated_at":"2015-12-17T18:07:33Z","pushed_at":"2015-12-29T15:00:54Z","git_url":"git://github.com/projecttacoma/bonnie.git","ssh_url":"git@github.com:projecttacoma/bonnie.git","clone_url":"https://github.com/projecttacoma/bonnie.git","svn_url":"https://github.com/projecttacoma/bonnie","homepage":null,"size":44420,"stargazers_count":13,"watchers_count":13,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":6,"forks":16,"open_issues":6,"watchers":13,"default_branch":"master"}},"base":{"label":"projecttacoma:master","ref":"master","sha":"a01a21af3e3166768ae1991cdfdf2f30c639a511","user":{"login":"projecttacoma","id":5497023,"avatar_url":"https://avatars.githubusercontent.com/u/5497023?v=3","gravatar_id":"","url":"https://api.github.com/users/projecttacoma","html_url":"https://github.com/projecttacoma","followers_url":"https://api.github.com/users/projecttacoma/followers","following_url":"https://api.github.com/users/projecttacoma/following{/other_user}","gists_url":"https://api.github.com/users/projecttacoma/gists{/gist_id}","starred_url":"https://api.github.com/users/projecttacoma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecttacoma/subscriptions","organizations_url":"https://api.github.com/users/projecttacoma/orgs","repos_url":"https://api.github.com/users/projecttacoma/repos","events_url":"https://api.github.com/users/projecttacoma/events{/privacy}","received_events_url":"https://api.github.com/users/projecttacoma/received_events","type":"Organization","site_admin":false},"repo":{"id":12958279,"name":"bonnie","full_name":"projecttacoma/bonnie","owner":{"login":"projecttacoma","id":5497023,"avatar_url":"https://avatars.githubusercontent.com/u/5497023?v=3","gravatar_id":"","url":"https://api.github.com/users/projecttacoma","html_url":"https://github.com/projecttacoma","followers_url":"https://api.github.com/users/projecttacoma/followers","following_url":"https://api.github.com/users/projecttacoma/following{/other_user}","gists_url":"https://api.github.com/users/projecttacoma/gists{/gist_id}","starred_url":"https://api.github.com/users/projecttacoma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecttacoma/subscriptions","organizations_url":"https://api.github.com/users/projecttacoma/orgs","repos_url":"https://api.github.com/users/projecttacoma/repos","events_url":"https://api.github.com/users/projecttacoma/events{/privacy}","received_events_url":"https://api.github.com/users/projecttacoma/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projecttacoma/bonnie","description":"Clinical Quality Measure Testing Tool","fork":false,"url":"https://api.github.com/repos/projecttacoma/bonnie","forks_url":"https://api.github.com/repos/projecttacoma/bonnie/forks","keys_url":"https://api.github.com/repos/projecttacoma/bonnie/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projecttacoma/bonnie/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projecttacoma/bonnie/teams","hooks_url":"https://api.github.com/repos/projecttacoma/bonnie/hooks","issue_events_url":"https://api.github.com/repos/projecttacoma/bonnie/issues/events{/number}","events_url":"https://api.github.com/repos/projecttacoma/bonnie/events","assignees_url":"https://api.github.com/repos/projecttacoma/bonnie/assignees{/user}","branches_url":"https://api.github.com/repos/projecttacoma/bonnie/branches{/branch}","tags_url":"https://api.github.com/repos/projecttacoma/bonnie/tags","blobs_url":"https://api.github.com/repos/projecttacoma/bonnie/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projecttacoma/bonnie/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projecttacoma/bonnie/git/refs{/sha}","trees_url":"https://api.github.com/repos/projecttacoma/bonnie/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projecttacoma/bonnie/statuses/{sha}","languages_url":"https://api.github.com/repos/projecttacoma/bonnie/languages","stargazers_url":"https://api.github.com/repos/projecttacoma/bonnie/stargazers","contributors_url":"https://api.github.com/repos/projecttacoma/bonnie/contributors","subscribers_url":"https://api.github.com/repos/projecttacoma/bonnie/subscribers","subscription_url":"https://api.github.com/repos/projecttacoma/bonnie/subscription","commits_url":"https://api.github.com/repos/projecttacoma/bonnie/commits{/sha}","git_commits_url":"https://api.github.com/repos/projecttacoma/bonnie/git/commits{/sha}","comments_url":"https://api.github.com/repos/projecttacoma/bonnie/comments{/number}","issue_comment_url":"https://api.github.com/repos/projecttacoma/bonnie/issues/comments{/number}","contents_url":"https://api.github.com/repos/projecttacoma/bonnie/contents/{+path}","compare_url":"https://api.github.com/repos/projecttacoma/bonnie/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projecttacoma/bonnie/merges","archive_url":"https://api.github.com/repos/projecttacoma/bonnie/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projecttacoma/bonnie/downloads","issues_url":"https://api.github.com/repos/projecttacoma/bonnie/issues{/number}","pulls_url":"https://api.github.com/repos/projecttacoma/bonnie/pulls{/number}","milestones_url":"https://api.github.com/repos/projecttacoma/bonnie/milestones{/number}","notifications_url":"https://api.github.com/repos/projecttacoma/bonnie/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projecttacoma/bonnie/labels{/name}","releases_url":"https://api.github.com/repos/projecttacoma/bonnie/releases{/id}","created_at":"2013-09-19T20:11:14Z","updated_at":"2015-12-17T18:07:33Z","pushed_at":"2015-12-29T15:00:54Z","git_url":"git://github.com/projecttacoma/bonnie.git","ssh_url":"git@github.com:projecttacoma/bonnie.git","clone_url":"https://github.com/projecttacoma/bonnie.git","svn_url":"https://github.com/projecttacoma/bonnie","homepage":null,"size":44420,"stargazers_count":13,"watchers_count":13,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":6,"forks":16,"open_issues":6,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projecttacoma/bonnie/pulls/461"},"html":{"href":"https://github.com/projecttacoma/bonnie/pull/461"},"issue":{"href":"https://api.github.com/repos/projecttacoma/bonnie/issues/461"},"comments":{"href":"https://api.github.com/repos/projecttacoma/bonnie/issues/461/comments"},"review_comments":{"href":"https://api.github.com/repos/projecttacoma/bonnie/pulls/461/comments"},"review_comment":{"href":"https://api.github.com/repos/projecttacoma/bonnie/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projecttacoma/bonnie/pulls/461/commits"},"statuses":{"href":"https://api.github.com/repos/projecttacoma/bonnie/statuses/a3734733fb5fa1c09daef843564c67288c374e6d"}}}}