New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add CPT codes #81
Comments
Thanks very much. Always glad to hear it is being used. CPT codes would have a particular problem in their licensing arrangements. I am in favor of enabling use of any clinical codes, and will happily accept license friendly pull requests. This is a tricky area. Most likely I could never distribute CPT code lists themselves, but perhaps you would consider using an API available to licensed users. This would be hopeless for chewing through millions of rows, if we had to use an online API lookup every time. A work-around might be for licensed users to somehow add their credentials, then the CPT data could be downloaded all at once, or as-needed with caching. An alternative is to use existing CPT data files, and distribute code to parse it just for that licensed user, yet this may still be problematic for the license. Please do consider contributing. I'm unlikely to do this myself, as I have no need for it, but will support any work in this area. Meanwhile, ICD-10 is nearly finished. You made me reconsider whether I should call the new package 'icd' or something more general... |
Jack, great point. Based on what I saw from their license, an architecture As for the name, I haven't checked google in relation to your repo, but my Last, as far as contributing, my group is about to start a number of Thanks very much. Always glad to hear it is being used. CPT codes would Please do consider contributing. I'm unlikely to do this myself, as I have Meanwhile, ICD-10 is nearly finished. You made me reconsider whether I — |
That's great. I'd be very happy to work with you to accept pull requests. |
IntroWas just looking into this a bit and I think it would be possible to incorporate working with CPT codes in the ExampleCode 55801 resolves to:
AMA RulesThe 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: End User Point and Click Agreement: CPT 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). You, 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. Any 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. DataThe listings for CPT codes and SHORT descriptions are available from CMS:
You 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 Possible SolutionWe 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 AMA FAQ Notes*I am developing a product that will contain CPT codes. Do I need permission from the AMA? What is the fee for a distribution license? |
Thanks for this great background research. So we could include the Level 2 legitimately (this is public domain work from the government)? For the copyright material, one approach might be to use the Thanks again. |
We can include Level 2 codes no problem (public domain), but the codes are far less useful; they basically cover durable medical devices and equipment that isn't covered in the core CPT codes. I think if we're adding CPT, we add both Level 1/2, but level 2 alone is unlikely to be useful to anyone. I'll look into R.cache package and work on a branch in my fork. Did you like the general approach I used in the HCC functions? I would likely set up the data and functions in a similar fashion (with changes by year) |
@anobel hi - just looked back at this work you had done, and wondered if you had made any progress. I do see that the AMA copyright is re-asserted in the CMS web site files. I like your approach of having the user initiate a download of the files, via 'icd', e.g. with one-time prompt: "Download codes from CMS?" You'll see I already wrote code to download and unzip files to the source tree e.g. icd:::unzip_to_data_raw . We'd have to actually install to a location like |
My thought on this now is to leave 'icd' focussed on ICD-9, ICD-10 and (nearly released by WHO) ICD-11 codes. The comorbidity calculations are now incredibly fast using some matrix algebra tricks, and the guts can be applied to CPT codes which could be provided by another package. I doubt I'll have time to do this. |
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.
thanks
The text was updated successfully, but these errors were encountered: