Medical code validation
code_validateValidate ICD-10-CM, CPT, and HCPCS Level II codes for a specific date of service, applying effective and termination dates and returning validity, active status, warnings, and errors.
Instructions
Check that an ICD-10-CM, CPT or HCPCS Level II code exists and is valid on a date of service: termination and effective dates are applied, so a code deleted after that date still validates. dateOfService is YYYY-MM-DD (default today); asOf in the result is the date the code was judged for. Returns valid, active, warnings and errors.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "code_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Medical code to validate | |
| context | No | ||
| codeType | No | ||
| dateOfService | No | Date of service, YYYY-MM-DD (default today) | |
| date_of_service | No | Same as dateOfService (snake_case spelling) |