Snippet: Dissecting SNOMED-CT Codes
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)$
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)$