Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Maps, validates, and classifies medical codes across clinical terminologies.
68% 82%+14 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 15 of 22 without it.
If an ICD-10 code such as 'Z99.99' and its category prefix 'Z99' are both missing from the valid CMS lookup table, what boolean status and message should be returned?
The response includes the status message 'Unknown code'.
3 of 3 safety checks passed
Medical code mapping and classification: ICD-10-CM/PCS, CPT, SNOMED CT, HCPCS, LOINC, RxNorm. Covers code validation, cross-terminology mapping, HCC risk adjustment, and reimbursement modeling used in healthcare billing and clinical research.
hcc_map = {
"E11.9": "HCC 19", # Diabetes without complications
"I10": "HCC 134", # Essential hypertension
"N18.3": "HCC 138", # CKD stage 3
}
def calc_hcc(codes):
hccs = set()
for c in codes:
if c in hcc_map:
hccs.add(hcc_map[c])
return list(hccs)
print(calc_hcc(["E11.9", "I10"]))
valid_icd10 = set() # from official CMS file or lookup
def validate_code(code):
if code in valid_icd10:
return True, "Valid"
if code[:3] in valid_icd10:
return True, "Valid (category)"
return False, "Unknown code"
Next to this one in the catalogue, plus more from the same author.