Snippet: Dissecting SNOMED-CT Codes

Date posted: Post reading time: 1 minute or less

Simple Regex for dissecting SNOMED-CT Codes into their subparts, useful for validation.

^(?&<Code>(?<ItemID>\d+?)(?:(?<Namespace>\d{7})(?=1))?(?<PartitionID>\d{2}))(?<CheckDigit>\d)$

Regular expression visualization