{"action":"created","issue":{"url":"https://api.github.com/repos/jackwasey/icd/issues/81","repository_url":"https://api.github.com/repos/jackwasey/icd","labels_url":"https://api.github.com/repos/jackwasey/icd/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/jackwasey/icd/issues/81/comments","events_url":"https://api.github.com/repos/jackwasey/icd/issues/81/events","html_url":"https://github.com/jackwasey/icd/issues/81","id":132438117,"number":81,"title":"add CPT codes","user":{"login":"rpietro","id":693031,"avatar_url":"https://avatars.githubusercontent.com/u/693031?v=3","gravatar_id":"","url":"https://api.github.com/users/rpietro","html_url":"https://github.com/rpietro","followers_url":"https://api.github.com/users/rpietro/followers","following_url":"https://api.github.com/users/rpietro/following{/other_user}","gists_url":"https://api.github.com/users/rpietro/gists{/gist_id}","starred_url":"https://api.github.com/users/rpietro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpietro/subscriptions","organizations_url":"https://api.github.com/users/rpietro/orgs","repos_url":"https://api.github.com/users/rpietro/repos","events_url":"https://api.github.com/users/rpietro/events{/privacy}","received_events_url":"https://api.github.com/users/rpietro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jackwasey/icd/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/jackwasey/icd/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jackwasey/icd/milestones/5","html_url":"https://github.com/jackwasey/icd/milestones/someday%20maybe","labels_url":"https://api.github.com/repos/jackwasey/icd/milestones/5/labels","id":712482,"number":5,"title":"someday maybe","description":null,"creator":{"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},"open_issues":13,"closed_issues":15,"state":"open","created_at":"2014-07-07T14:14:38Z","updated_at":"2016-04-24T10:10:01Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-02-09T14:46:21Z","updated_at":"2016-05-04T22:02:51Z","closed_at":null,"body":"congrats, this is an amazing package, incredibly useful. question: once the icd-10 port is on its way, is there any plan on expanding toward cpt codes, either here or with a separate package? this would be very useful for datasets such as Medicare where we often have to create validation rules regarding conflicting diagnostic & procedure codes.\r\n\r\nthanks"},"comment":{"url":"https://api.github.com/repos/jackwasey/icd/issues/comments/217017528","html_url":"https://github.com/jackwasey/icd/issues/81#issuecomment-217017528","issue_url":"https://api.github.com/repos/jackwasey/icd/issues/81","id":217017528,"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},"created_at":"2016-05-04T22:02:50Z","updated_at":"2016-05-04T22:02:50Z","body":"### Intro\r\nWas just looking into this a bit and I think it would be possible to incorporate working with CPT codes in the `icd` package, but not to distribute the CPTs. There are the CPT codes themselves (5 digit numeric), a short description, and a long description. Both short and long descriptions are copyright by the AMA.\r\n\r\n### Example\r\nCode 55801 resolves to:\r\n- short description: \"Removal of Prostate\"\r\n- long description: \"Prostatectomy, perineal, subtotal (including control of postoperative bleeding, vasectomy, meatotomy, urethral calibration and/or dilation, and internal urethrotomy)\"\r\n\r\n### AMA Rules\r\nThe codes and SHORT descriptions are distributed by CMS, but their data documents say any use has to be in accordance with the CMS/AMA agreement, which states:\r\n\r\n**End User Point and Click Agreement:**\r\n\r\nCPT codes, descriptions and other data only are copyright 2015 American Medical Association. All rights reserved. CPT is a registered trademark of the American Medical Association (AMA).\r\n\r\nYou, your employees and agents are authorized to use CPT only as contained in the following authorized materials of Centers for Medicare and Medicaid Services (CMS) internally within your organization within the United States for the sole use by yourself, employees and agents. Use is limited to use in Medicare, Medicaid or other programs administered by CMS. You agree to take all necessary steps to insure that your employees and agents abide by the terms of this agreement.\r\n\r\nAny use not authorized herein is prohibited, including by way of illustration and not by way of limitation, making copies of CPT for resale and/or license, transferring copies of CPT to any party not bound by this agreement, creating any modified or derivative work of CPT, or making any commercial use of CPT. License to use CPT for any use not authorized herein must be obtained through the AMA, CPT Intellectual Property Services, 515 N. State Street, Chicago, IL 60654. Applications are available at the AMA Web site, http://www.ama-assn.org/go/cpt.\r\n\r\n\r\n### Data\r\nThe listings for CPT codes and SHORT descriptions are available from CMS:\r\n(https://www.cms.gov/Medicare/Medicare-Fee-for-Service-Payment/PhysicianFeeSched/PFS-Relative-Value-Files.html). In the RVU16A file, they can be found in the first column of the PPRRVU16_V0122 file. The column is titled `HCPCS`. HCPCS codes come in two categories:\r\n- Level 1 codes are 5 digit numeric, and are CPT codes\r\n- Level 2 codes are 5 digit alphanumeric, developed by CMS to cover items not represented in CPT\r\n\r\nYou do need a license to purchase/distribute CPT codes (but NOT Level 2 HCPCS codes), and it wouldn't be feasible to distribute the CPTs with `icd`. License costs $15.50 per user.\r\n\r\n### Possible Solution\r\nWe could write code to parse the HCPCS (Levels I and II) from the CMS files, which are available. We would not include the data with the `icd` distribution, but instead have the end user download the files and run the function to create their own datasets, with the caveat that they must be licensed to use the codes. It seems there are no restrictions to code use if obtained from the CMS site, they just cannot be distributed.\r\n\r\n### AMA FAQ Notes\r\n(https://www.ama-assn.org/ama/pub/physician-resources/solutions-managing-your-practice/coding-billing-insurance/cpt/frequently-asked-questions.page?)\r\n\r\n**I am developing a product that will contain CPT codes. Do I need permission from the AMA?\r\n**\r\nYes. The AMA holds copyright in CPT and use or reprinting of CPT in any product or publication requires a license. To use CPT codes in a product that will be sold or distributed to others, please obtain a distribution license.\r\n\r\n**What is the fee for a distribution license?**\r\nThe royalty for the use for CPT material in an electronic or Internet product is $15.50 per user per product. Depending on the terms of the License Agreement, royalties are due either quarterly or semi-annually in arrears. Print publication royalty is $15.50 per distributed copy. No minimums or upfront fees are required. You will, however, need to purchase the CPT data file separately.\r\n"}}