Open
Conversation
ICD 9 procedure codes do not look like they follow the convention outlined in https://cran.r-project.org/web/packages/pccc/vignettes/pccc-overview.html Codes < 10 should be front padded with "00" and codes < 100 should be padded with "0". But, e.g. code 06.4 (endocrine disorders) was listed as 064 (so matches 64.0 = circumcision). Will fix others in future commit
dewittpe
reviewed
Jan 6, 2026
|
|
||
| pc_neuromusc = {"0152","0153","0221","0222","0231","0232","0233","0234","0235","0239","0241", | ||
| "0242","0293","0371","0372","0379","0393","0397","0492"}; | ||
| pc_neuromusc = {"00152","00153","00221","00222","00231","00232","00233","00234","00235","00239","00241", |
Member
There was a problem hiding this comment.
ICD-9 Procedure codes are a maximum of four digits. 00152 is not a valid ICD-9 procedure code, 0152 is a valid code. specifically, this is 01.52 which is a Hemispherectomy.
dewittpe
reviewed
Jan 6, 2026
| "4432","4438","4439","4563","4581","4582","4583","4613","4622","4623","4632","4640","4641", | ||
| "4643","4697","504", "5051","5059","526","527","5280","5282","5283","5284","5285","5286", | ||
| "5471","9624","9636","9702"}; | ||
| pc_gi = {"0253","0254","04210","04211","04242","04281","04311","04319","04391","04399","04412", |
Member
There was a problem hiding this comment.
The leading zero for 253 is an error.
First, the compact ICD-9 procedure code 253 expands to 25.3 as the full code which is a "complete glossectomy" and maps to a gi issue.
a compact code of the form 0253 would expand to the full form of 02.53 which is not a known ICD-9 procedure code.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#41
Padded the ICD9 procedure codes (
src/pccc.cpp) in accordance with the documentation