09.04.2013 Views

SNOMED CT® Release Format 1 (RF1) Guide - ihtsdo

SNOMED CT® Release Format 1 (RF1) Guide - ihtsdo

SNOMED CT® Release Format 1 (RF1) Guide - ihtsdo

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

92 | <strong>SNOMED</strong> CT <strong>Release</strong> <strong>Format</strong> 1 (<strong>RF1</strong>) <strong>Guide</strong> July 2012<br />

2.3.7.2.4. Example encoding<br />

Table 27: UTF-8 Encoding Example<br />

Character<br />

Unicode<br />

Bytes<br />

0053<br />

S<br />

01010011<br />

0043<br />

C<br />

01000011<br />

2.3.7.3. Check-digit Computation<br />

0054<br />

T<br />

01010100<br />

11000010<br />

®<br />

00AE<br />

10101110<br />

11101111<br />

2462<br />

10111111<br />

10111111<br />

The SCTID (See Component features - Identifiers (2.1.1.4.2)) includes a check-digit, which is generated using<br />

Verhoeff's dihedral check. This section explains the algorithm used and includes sample source code for<br />

generating and checking the check-digit in Java Script and Microsoft Visual Basic.<br />

2.3.7.3.1. Verhoeff's Dihedral Group D5 Check<br />

The mathematical description of this technique may appear complex but in practice it can be reduced to a<br />

pair of two-dimensional arrays, a single dimensional inverse array and a simple computational procedure.<br />

These three arrays are shown in the following tables.<br />

• The first array contains the result of “Dihedral D5” multiplication;<br />

• The second array consists of 8 rows of which two are defined while the rest are derived by applying the<br />

following formula: F(i, j) = F(i - 1, F(1, j));<br />

• The third array consists of a single row containing the inverse of the Dihedral D5 array it identifies the<br />

location of all the zero values in the first array.<br />

Table 28: Results of Dihedral D5 multiplication<br />

0<br />

1<br />

2<br />

3<br />

4<br />

5<br />

6<br />

7<br />

8<br />

0<br />

0<br />

1<br />

2<br />

3<br />

4<br />

5<br />

6<br />

7<br />

8<br />

1<br />

1<br />

2<br />

3<br />

4<br />

0<br />

9<br />

5<br />

6<br />

7<br />

2<br />

2<br />

3<br />

4<br />

0<br />

1<br />

8<br />

9<br />

5<br />

6<br />

© 2002-2012 International Health Terminology Standards Development Organisation CVR #: 30363434<br />

3<br />

3<br />

4<br />

0<br />

1<br />

2<br />

7<br />

8<br />

9<br />

5<br />

4<br />

4<br />

0<br />

1<br />

2<br />

3<br />

6<br />

7<br />

8<br />

9<br />

5<br />

5<br />

6<br />

7<br />

8<br />

9<br />

0<br />

1<br />

2<br />

3<br />

6<br />

6<br />

7<br />

8<br />

9<br />

5<br />

4<br />

0<br />

1<br />

2<br />

7<br />

7<br />

8<br />

9<br />

5<br />

6<br />

3<br />

4<br />

0<br />

1<br />

8<br />

8<br />

9<br />

5<br />

6<br />

7<br />

2<br />

3<br />

4<br />

0<br />

9<br />

9<br />

5<br />

6<br />

7<br />

8<br />

1<br />

2<br />

3<br />

4

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!