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.

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

2.3.4.1.2. Compositional grammar: Normative specification<br />

Table 20: ABNF definition of the <strong>SNOMED</strong> CT compositional grammar<br />

expression = concept *("+" concept) [":" ws refinements ]<br />

concept = ws conceptId ws ["|" ws term ws "|" ws]<br />

conceptId = sctId<br />

term = 1*nonwsnonpipe *( 1*SP 1*nonwsnonpipe )<br />

refinements = ( attributeSet *attributeGroup ) / 1*attributeGroup<br />

attributeGroup = "{" attributeSet "}" ws<br />

attributeSet = attribute *("," attribute)<br />

attribute = attributeName "=" attributeValue<br />

attributeName = ws attributeNameId ws ["|" ws term ws "|" ws]<br />

attributeValue = concept / (ws "("expression ")" ws)<br />

attributeNameId = sctId<br />

sctId = digitNonZero 5*17( digit )<br />

ws = *( SP / HTAB / CR / LF ) ; white space<br />

SP = %x20<br />

HTAB = %x09<br />

CR = %x0D<br />

LF = %x0A<br />

digit = %x30-39<br />

digitNonZero = %x31-39 ; digits 1 through 9, but excluding 0<br />

nonwsnonpipe = %x21-7B / %x7D-7E / UTF8-2 / UTF8-3 / UTF8-4<br />

UTF8-2 = %xC2-DF UTF8-tail<br />

UTF8-3 = %xE0 %xA0-BF UTF8-tail / %xE1-EC 2( UTF8-tail ) /<br />

%xED %x80-9F UTF8-tail / %xEE-EF 2( UTF8-tail )<br />

UTF8-4 = %xF0 %x90-BF 2( UTF8-tail ) / %xF1-F3 3( UTF8-tail ) /<br />

%xF4 %x80-8F 2( UTF8-tail )<br />

UTF8-tail = %x80-BF<br />

2.3.4.1.3. Informative comments<br />

Table 21: BNF representation of Compositional Grammar (detail)<br />

Expression = concept *( "+" concept) [ ":" ws refinements ]<br />

© 2002-2012 International Health Terminology Standards Development Organisation CVR #: 30363434

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

Saved successfully!

Ooh no, something went wrong!