Question
Muhammad Waseem · Aug 11

Validation of ICD-10-AM Codes

Hi,

I want to check the validity of ICD-10-AM before sending in FHIR resource. 

Can we validate ICD-10-AM code?

Thanks

Product version: IRIS 2021.1
00
1 0 2 57
Log in or sign up to continue

Hey Muhammad.

When you say validation, what exactly do you mean?

If you are interested in making sure it matches the format of ICD-10-AM codes, then you could use pattern matching to ensure it fits the expected format. At first glance, it looks to be 1 Letter + 2 Numbers + 1 period + 1 or 2 numbers. The pattern match for this would be "1A2N1"."1.2N"

For example:

USER> Set ICD10 = "K76.3"
USER> If ICD10?1A2N1"."1.2N {Write "This is ICD10"} else {write "This is not ICD10"}
This is ICD10

If you are looking to actually make sure the code is a real ICD10 code, then you would need to be able to query a data source that contains a full list of valid codes. If this is the direction you're looking to go in, then you may want to look into FHIR based terminology services to be able to query your codes against to see if they're valid? But I'm not familiar with the practicality or cost of something like that.

(ps - I have linked to the temporary documentation, however I'm not sure how long that will exist)

Thanks Julian Matthews.

Yes I am looking to actually make sure the code is a real ICD10 code