Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions src/pccc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,33 +65,33 @@ codes::codes(int v)
dx_transplant = {"99680","99681","99682","99683","99684","99685","99686","99687","99688","99689",
"V421","V422","V426","V427","V4281","V4282","V4283","V4284","V432","V4585","V5391"};

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",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

"00242","00293","00371","00372","00379","00393","00397","00492"};

pc_cvd = {"0050","0051","0053","0054","0055","0057","1751","1752","3581","3582","3583",
"3584","3741","3751","3752","3753","3754","3755","3760","3761","3763","3765","3766",
"3767","3768","3771","3772","3774","3776","3779","3780","3781","3782","3783","3785",
"3786","3787","3789","3794","3795","3796","3797","3798","3981","3982","3983","3984",
"3985","8945","8946","8947","8948","8949"};
pc_cvd = {"00050","00051","00053","00054","00055","00057","01751","01752","03581","03582","03583",
"03584","03741","03751","03752","03753","03754","03755","03760","03761","03763","03765","03766",
"03767","03768","03771","03772","03774","03776","03779","03780","03781","03782","03783","03785",
"03786","03787","03789","03794","03795","03796","03797","03798","03981","03982","03983","03984",
"03985","08945","08946","08947","08948","08949"};

pc_respiratory = {"303","304","3121","3129","3141","3174","3241","3249","3250","3259","3321",
"3350","3351","3352","336", "3485","9655","9723"};
pc_respiratory = {"0303","0304","03121","03129","03141","03174","03241","03249","03250","03259","03321",
"03350","03351","03352","0336", "03485","09655","09723"};

pc_renal = {"3895","3927","3942","3993","3994","3995","5498","5502","5503","5504","5512",
"5551","5552","5553","5554","5561","5569","5593","5594","5597","5641","5642","5651","5652",
"5661","5662","5671","5672","5673","5674","5675","5679","5721","5722","5771","5779","5993",
"5994","8607","9645","9646","9647"};
pc_renal = {"03895","03927","03942","03993","03994","03995","05498","05502","05503","05504","05512",
"05551","05552","05553","05554","05561","05569","05593","05594","05597","05641","05642","05651","05652",
"05661","05662","05671","05672","05673","05674","05675","05679","05721","05722","05771","05779","05993",
"05994","08607","09645","09646","09647"};

pc_gi = {"253","254","4210","4211","4242","4281","4311","4319","4391","4399","4412",
"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",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

"04432","04438","04439","04563","04581","04582","04583","04613","04622","04623","04632","04640","04641",
"04643","04697","0505", "05051","05059","0526","0527","05280","05282","05283","05284","05285","05286",
"05471","09624","09636","09702"};

pc_hemato_immu = {"4100","4101","4102","4103","4104","4105","4106","4107","4108","4109","415",
"4194"};
pc_hemato_immu = {"04100","04101","04102","04103","04104","04105","04106","04107","04108","04109","0415",
"04194"};

pc_metabolic = {"064","0652","0681","073","0764","0765","0768","0769","6241","645","6551",
"6553","6561","6563","6841","6849","6851","6859","6861","6869","6871","6879","8606"};
pc_metabolic = {"0064","00652","00681","0073","00764","00765","00768","00769","06241","0645","06551",
"06553","06561","06563","06841","06849","06851","06859","06861","06869","06871","06879","08606"};

pc_fixed_metabolic = {"624"};

Expand All @@ -110,9 +110,9 @@ codes::codes(int v)
"8107","8108","8109","8130","8131","8132","8133","8134","8135","8136","8137","8138","8139",
"8451"};

pc_transplant = {"3751","3350","3351","3352","336", "5561","5569","4697","5051","5059","5280","5282",
"5283","5284","5285","5286","4100","4101","4102","4103","4104","4105","4106","4107","4108",
"4109","4194","0091","0092","0093"};
pc_transplant = {"03751","03350","03351","03352","0336", "05561","05569","04697","05051","05059","05280","05282",
"05283","05284","05285","05286","04100","04101","04102","04103","04104","04105","04106","04107","04108",
"04109","04194","00091","00092","00093"};

} else if (version == 10) {
dx_neuromusc = {"E75","F71","F72","F73","F842","G111","G112","G114","G118",
Expand Down