{"action":"closed","number":87,"pull_request":{"url":"https://api.github.com/repos/jackwasey/icd/pulls/87","id":68135245,"html_url":"https://github.com/jackwasey/icd/pull/87","diff_url":"https://github.com/jackwasey/icd/pull/87.diff","patch_url":"https://github.com/jackwasey/icd/pull/87.patch","issue_url":"https://api.github.com/repos/jackwasey/icd/issues/87","number":87,"state":"closed","locked":false,"title":"Calculate Medicare Hierarchical Condition Categories HCC","user":{"login":"anobel","id":5186037,"avatar_url":"https://avatars.githubusercontent.com/u/5186037?v=3","gravatar_id":"","url":"https://api.github.com/users/anobel","html_url":"https://github.com/anobel","followers_url":"https://api.github.com/users/anobel/followers","following_url":"https://api.github.com/users/anobel/following{/other_user}","gists_url":"https://api.github.com/users/anobel/gists{/gist_id}","starred_url":"https://api.github.com/users/anobel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anobel/subscriptions","organizations_url":"https://api.github.com/users/anobel/orgs","repos_url":"https://api.github.com/users/anobel/repos","events_url":"https://api.github.com/users/anobel/events{/privacy}","received_events_url":"https://api.github.com/users/anobel/received_events","type":"User","site_admin":false},"body":"addresses issue #31 \r\n\r\n## New Function\r\n`icd_comorbid_cc` : assigns **CCs** and then applies hierarchy to generate **HCCs**. Slightly different than the current icd_comorbid functions in a few ways.\r\n\r\n- Uses crosswalk stored in a dataframe, as opposed to the generated comorbidity list mappings.\r\n- The imported dataframe has columns for year and icd version, as the mappings change over time. The function therefore needs a date input as well.\r\n- The CMS specification lists out each ICD, instead of the parent codes, so no expansion is done. I have not checked if all the children of each code are present, so I'm not sure it is wise to condense the ICD children to parents and back\r\n\r\n## New Data\r\nBecause we can't directly download the CMS data (stored in nested zip files, would be a headache to navigate through from within the function), saved the relevant files (crosswalks and SAS code) as plain text and parse it into data frames for use. The raw data, code for parsing 'parse-hcc.R', and final .RData objects all there. This is a also a bit different than the approach used for the other mappings, so I kept it separate from the `parse-comorbid.R` file.\r\n\r\n## To Do\r\n- Labels for HCCs have been included in the `mappingNames.R` file, but have not been assigned to any HCCs yet. Also need to manually create abbreviations (there are 189 HCCs!)","created_at":"2016-04-27T22:23:02Z","updated_at":"2016-08-31T15:39:24Z","closed_at":"2016-08-31T15:39:24Z","merged_at":"2016-08-31T15:39:24Z","merge_commit_sha":"a537470a128b3c10b179e30744dff6ecde51b00b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jackwasey/icd/pulls/87/commits","review_comments_url":"https://api.github.com/repos/jackwasey/icd/pulls/87/comments","review_comment_url":"https://api.github.com/repos/jackwasey/icd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jackwasey/icd/issues/87/comments","statuses_url":"https://api.github.com/repos/jackwasey/icd/statuses/a537470a128b3c10b179e30744dff6ecde51b00b","head":{"label":"anobel:master","ref":"master","sha":"a537470a128b3c10b179e30744dff6ecde51b00b","user":{"login":"anobel","id":5186037,"avatar_url":"https://avatars.githubusercontent.com/u/5186037?v=3","gravatar_id":"","url":"https://api.github.com/users/anobel","html_url":"https://github.com/anobel","followers_url":"https://api.github.com/users/anobel/followers","following_url":"https://api.github.com/users/anobel/following{/other_user}","gists_url":"https://api.github.com/users/anobel/gists{/gist_id}","starred_url":"https://api.github.com/users/anobel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anobel/subscriptions","organizations_url":"https://api.github.com/users/anobel/orgs","repos_url":"https://api.github.com/users/anobel/repos","events_url":"https://api.github.com/users/anobel/events{/privacy}","received_events_url":"https://api.github.com/users/anobel/received_events","type":"User","site_admin":false},"repo":{"id":56808497,"name":"icd","full_name":"anobel/icd","owner":{"login":"anobel","id":5186037,"avatar_url":"https://avatars.githubusercontent.com/u/5186037?v=3","gravatar_id":"","url":"https://api.github.com/users/anobel","html_url":"https://github.com/anobel","followers_url":"https://api.github.com/users/anobel/followers","following_url":"https://api.github.com/users/anobel/following{/other_user}","gists_url":"https://api.github.com/users/anobel/gists{/gist_id}","starred_url":"https://api.github.com/users/anobel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anobel/subscriptions","organizations_url":"https://api.github.com/users/anobel/orgs","repos_url":"https://api.github.com/users/anobel/repos","events_url":"https://api.github.com/users/anobel/events{/privacy}","received_events_url":"https://api.github.com/users/anobel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anobel/icd","description":"ICD-10 and ICD-9 comorbidities, manipulation and validation in R","fork":true,"url":"https://api.github.com/repos/anobel/icd","forks_url":"https://api.github.com/repos/anobel/icd/forks","keys_url":"https://api.github.com/repos/anobel/icd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anobel/icd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anobel/icd/teams","hooks_url":"https://api.github.com/repos/anobel/icd/hooks","issue_events_url":"https://api.github.com/repos/anobel/icd/issues/events{/number}","events_url":"https://api.github.com/repos/anobel/icd/events","assignees_url":"https://api.github.com/repos/anobel/icd/assignees{/user}","branches_url":"https://api.github.com/repos/anobel/icd/branches{/branch}","tags_url":"https://api.github.com/repos/anobel/icd/tags","blobs_url":"https://api.github.com/repos/anobel/icd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anobel/icd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anobel/icd/git/refs{/sha}","trees_url":"https://api.github.com/repos/anobel/icd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anobel/icd/statuses/{sha}","languages_url":"https://api.github.com/repos/anobel/icd/languages","stargazers_url":"https://api.github.com/repos/anobel/icd/stargazers","contributors_url":"https://api.github.com/repos/anobel/icd/contributors","subscribers_url":"https://api.github.com/repos/anobel/icd/subscribers","subscription_url":"https://api.github.com/repos/anobel/icd/subscription","commits_url":"https://api.github.com/repos/anobel/icd/commits{/sha}","git_commits_url":"https://api.github.com/repos/anobel/icd/git/commits{/sha}","comments_url":"https://api.github.com/repos/anobel/icd/comments{/number}","issue_comment_url":"https://api.github.com/repos/anobel/icd/issues/comments{/number}","contents_url":"https://api.github.com/repos/anobel/icd/contents/{+path}","compare_url":"https://api.github.com/repos/anobel/icd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anobel/icd/merges","archive_url":"https://api.github.com/repos/anobel/icd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anobel/icd/downloads","issues_url":"https://api.github.com/repos/anobel/icd/issues{/number}","pulls_url":"https://api.github.com/repos/anobel/icd/pulls{/number}","milestones_url":"https://api.github.com/repos/anobel/icd/milestones{/number}","notifications_url":"https://api.github.com/repos/anobel/icd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anobel/icd/labels{/name}","releases_url":"https://api.github.com/repos/anobel/icd/releases{/id}","deployments_url":"https://api.github.com/repos/anobel/icd/deployments","created_at":"2016-04-21T22:06:37Z","updated_at":"2016-04-21T22:06:39Z","pushed_at":"2016-08-31T01:30:43Z","git_url":"git://github.com/anobel/icd.git","ssh_url":"git@github.com:anobel/icd.git","clone_url":"https://github.com/anobel/icd.git","svn_url":"https://github.com/anobel/icd","homepage":"","size":29683,"stargazers_count":0,"watchers_count":0,"language":"R","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jackwasey:master","ref":"master","sha":"ffe01e548fa38c7a200087ce382dc4b4a6aefad7","user":{"login":"jackwasey","id":7832270,"avatar_url":"https://avatars.githubusercontent.com/u/7832270?v=3","gravatar_id":"","url":"https://api.github.com/users/jackwasey","html_url":"https://github.com/jackwasey","followers_url":"https://api.github.com/users/jackwasey/followers","following_url":"https://api.github.com/users/jackwasey/following{/other_user}","gists_url":"https://api.github.com/users/jackwasey/gists{/gist_id}","starred_url":"https://api.github.com/users/jackwasey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackwasey/subscriptions","organizations_url":"https://api.github.com/users/jackwasey/orgs","repos_url":"https://api.github.com/users/jackwasey/repos","events_url":"https://api.github.com/users/jackwasey/events{/privacy}","received_events_url":"https://api.github.com/users/jackwasey/received_events","type":"User","site_admin":false},"repo":{"id":21076445,"name":"icd","full_name":"jackwasey/icd","owner":{"login":"jackwasey","id":7832270,"avatar_url":"https://avatars.githubusercontent.com/u/7832270?v=3","gravatar_id":"","url":"https://api.github.com/users/jackwasey","html_url":"https://github.com/jackwasey","followers_url":"https://api.github.com/users/jackwasey/followers","following_url":"https://api.github.com/users/jackwasey/following{/other_user}","gists_url":"https://api.github.com/users/jackwasey/gists{/gist_id}","starred_url":"https://api.github.com/users/jackwasey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackwasey/subscriptions","organizations_url":"https://api.github.com/users/jackwasey/orgs","repos_url":"https://api.github.com/users/jackwasey/repos","events_url":"https://api.github.com/users/jackwasey/events{/privacy}","received_events_url":"https://api.github.com/users/jackwasey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jackwasey/icd","description":"ICD-10 and ICD-9 comorbidities, manipulation and validation in R","fork":false,"url":"https://api.github.com/repos/jackwasey/icd","forks_url":"https://api.github.com/repos/jackwasey/icd/forks","keys_url":"https://api.github.com/repos/jackwasey/icd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jackwasey/icd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jackwasey/icd/teams","hooks_url":"https://api.github.com/repos/jackwasey/icd/hooks","issue_events_url":"https://api.github.com/repos/jackwasey/icd/issues/events{/number}","events_url":"https://api.github.com/repos/jackwasey/icd/events","assignees_url":"https://api.github.com/repos/jackwasey/icd/assignees{/user}","branches_url":"https://api.github.com/repos/jackwasey/icd/branches{/branch}","tags_url":"https://api.github.com/repos/jackwasey/icd/tags","blobs_url":"https://api.github.com/repos/jackwasey/icd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jackwasey/icd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jackwasey/icd/git/refs{/sha}","trees_url":"https://api.github.com/repos/jackwasey/icd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jackwasey/icd/statuses/{sha}","languages_url":"https://api.github.com/repos/jackwasey/icd/languages","stargazers_url":"https://api.github.com/repos/jackwasey/icd/stargazers","contributors_url":"https://api.github.com/repos/jackwasey/icd/contributors","subscribers_url":"https://api.github.com/repos/jackwasey/icd/subscribers","subscription_url":"https://api.github.com/repos/jackwasey/icd/subscription","commits_url":"https://api.github.com/repos/jackwasey/icd/commits{/sha}","git_commits_url":"https://api.github.com/repos/jackwasey/icd/git/commits{/sha}","comments_url":"https://api.github.com/repos/jackwasey/icd/comments{/number}","issue_comment_url":"https://api.github.com/repos/jackwasey/icd/issues/comments{/number}","contents_url":"https://api.github.com/repos/jackwasey/icd/contents/{+path}","compare_url":"https://api.github.com/repos/jackwasey/icd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jackwasey/icd/merges","archive_url":"https://api.github.com/repos/jackwasey/icd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jackwasey/icd/downloads","issues_url":"https://api.github.com/repos/jackwasey/icd/issues{/number}","pulls_url":"https://api.github.com/repos/jackwasey/icd/pulls{/number}","milestones_url":"https://api.github.com/repos/jackwasey/icd/milestones{/number}","notifications_url":"https://api.github.com/repos/jackwasey/icd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jackwasey/icd/labels{/name}","releases_url":"https://api.github.com/repos/jackwasey/icd/releases{/id}","deployments_url":"https://api.github.com/repos/jackwasey/icd/deployments","created_at":"2014-06-21T18:59:03Z","updated_at":"2016-08-11T22:37:56Z","pushed_at":"2016-08-31T15:39:24Z","git_url":"git://github.com/jackwasey/icd.git","ssh_url":"git@github.com:jackwasey/icd.git","clone_url":"https://github.com/jackwasey/icd.git","svn_url":"https://github.com/jackwasey/icd","homepage":"https://jackwasey.github.io/icd/","size":33230,"stargazers_count":30,"watchers_count":30,"language":"R","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":18,"mirror_url":null,"open_issues_count":26,"forks":18,"open_issues":26,"watchers":30,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jackwasey/icd/pulls/87"},"html":{"href":"https://github.com/jackwasey/icd/pull/87"},"issue":{"href":"https://api.github.com/repos/jackwasey/icd/issues/87"},"comments":{"href":"https://api.github.com/repos/jackwasey/icd/issues/87/comments"},"review_comments":{"href":"https://api.github.com/repos/jackwasey/icd/pulls/87/comments"},"review_comment":{"href":"https://api.github.com/repos/jackwasey/icd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jackwasey/icd/pulls/87/commits"},"statuses":{"href":"https://api.github.com/repos/jackwasey/icd/statuses/a537470a128b3c10b179e30744dff6ecde51b00b"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jackwasey","id":7832270,"avatar_url":"https://avatars.githubusercontent.com/u/7832270?v=3","gravatar_id":"","url":"https://api.github.com/users/jackwasey","html_url":"https://github.com/jackwasey","followers_url":"https://api.github.com/users/jackwasey/followers","following_url":"https://api.github.com/users/jackwasey/following{/other_user}","gists_url":"https://api.github.com/users/jackwasey/gists{/gist_id}","starred_url":"https://api.github.com/users/jackwasey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackwasey/subscriptions","organizations_url":"https://api.github.com/users/jackwasey/orgs","repos_url":"https://api.github.com/users/jackwasey/repos","events_url":"https://api.github.com/users/jackwasey/events{/privacy}","received_events_url":"https://api.github.com/users/jackwasey/received_events","type":"User","site_admin":false},"comments":22,"review_comments":0,"commits":24,"additions":41438,"deletions":259,"changed_files":59}}
{"actor":{"display_login":"jackwasey"}}