# Found at http://informatics.mayo.edu/informatics_pages/standards/lexGrid/ldapBackend/schema/TerminologyServiceAttributes.schema
# Next attrubute    1.3.6.1.4.1.2114.108.1.6.107
#
# NOTE: attributes that are used in distinguished names cannot be case sensitived

#  Attributes taken from the core schema
# RFC1274 + RFC2247
#
# These are in here to prevent dependence on core.schema if not needed
#   Used in DN
attributetype ( 0.9.2342.19200300.100.1.25
	NAME ( 'dc' 'domainComponent' )
	DESC 'RFC1274/2247: domain component'
	EQUALITY caseIgnoreIA5Match
	SUBSTR caseIgnoreIA5SubstringsMatch
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )

attributetype ( 2.5.4.13 NAME 'description'
	EQUALITY caseIgnoreMatch
	SUBSTR caseIgnoreSubstringsMatch
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )

attributetype ( 2.5.4.20 NAME 'telephoneNumber'
	EQUALITY telephoneNumberMatch
	SUBSTR telephoneNumberSubstringsMatch
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.50{32} )

attributetype ( 2.5.4.34 NAME 'seeAlso' SUP distinguishedName )

attributetype ( 2.5.4.4 NAME ( 'sn' 'surname' ) SUP name )

objectclass ( 2.5.6.6 NAME 'person' SUP top STRUCTURAL
	MUST ( sn $ cn )
	MAY ( userPassword $ telephoneNumber $ seeAlso $ description ) )


# TerminologyService Attributes

# The local identifier of the coding scheme being defined
#
# Used in DN
attributetype (1.3.6.1.4.1.2114.108.1.6.4
	NAME ('codingScheme')
	DESC 'The local identifier of the coding scheme being defined'
	SUP  localName
	SINGLE-VALUE)

# The official URN of the coding scheme or value set
#
attributetype (1.3.6.1.4.1.2114.108.1.6.5
	NAME 'registeredName'
	DESC 'The URN of a coding scheme or value set'
	SUP  URN
	SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.99
	NAME 'sourceCodingScheme'
	DESC 'The local name of the coding scheme for a source concept'
	SUP  localName
	SINGLE-VALUE)


#   Used in DN
attributetype (1.3.6.1.4.1.2114.108.1.6.6
	NAME 'conceptCode'
	DESC 'The unique code for a concept defined in a coding scheme'
	SUP  tsCaseIgnoreIA5String
	SINGLE-VALUE)


# A source identifier should (ideally) reference an external entity or concept
attributetype (1.3.6.1.4.1.2114.108.1.6.8
	NAME 'source'
	DESC 'A local name for a book, publication, person or other citation'
	SUP  localName)
	
attributetype (1.3.6.1.4.1.2114.108.1.6.85
	NAME 'supportedSource'
	DESC 'A source used in the definition of a coding scheme'
	SUP  URNMap)

attributetype (1.3.6.1.4.1.2114.108.1.6.9
	NAME 'presentationFormat'
	DESC 'The local name of a format of a presentation'
	SUP  localName
	SINGLE-VALUE)

# Presentation format should be drawn from the Mime type code system
# URN:ISO:2.16.840.1.113883.6.10# unless otherwise specified
attributetype (1.3.6.1.4.1.2114.108.1.6.57
	NAME 'supportedFormat'
	DESC 'A presentationFormat that is used in the definition of coding scheme'
	SUP  URNMap)

attributetype (1.3.6.1.4.1.2114.108.1.6.10
	NAME 'language'
	DESC 'A local name for a spoken or written language'
	SUP  localName
	SINGLE-VALUE)

# Language should be drawn from the ISO 2 character language codes code system
# URN:ISO:2.16.1# unless otherwise specified
attributetype (1.3.6.1.4.1.2114.108.1.6.56
	NAME 'supportedLanguage'
	DESC 'A language that is at least partially represented in the coding scheme'
	SUP  URNMap)

attributetype (1.3.6.1.4.1.2114.108.1.6.11
	NAME 'defaultLanguage'
	DESC 'The language to use unless otherwise specified'
	SUP  language
	SINGLE-VALUE)

# The name of a role, relationship or association used in a code system
#   Used in DN
attributetype (1.3.6.1.4.1.2114.108.1.6.12
	NAME 'association'
	DESC 'The local name of an association'
	SUP  localName
	SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.60
	NAME 'supportedAssociation'
	DESC 'An association used in the coding scheme'
	SUP  URNMap)

attributetype (1.3.6.1.4.1.2114.108.1.6.41
	NAME 'associationQualifier'
	DESC 'A modifier that qualifies the nature of an association'
	SUP  localName
	SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.61
	NAME 'supportedAssociationQualifier'
	DESC 'An association qualifier supported by a coding scheme'
	SUP  URNMap)


#
# UsageContext - The code that identifies a context in which a presentation applies
attributetype (1.3.6.1.4.1.2114.108.1.6.13
	NAME 'usageContext'
	DESC 'The identifier of a context in which a presentation applies'
	SUP  localName)

attributetype (1.3.6.1.4.1.2114.108.1.6.58
	NAME 'supportedContext'
	DESC 'A usage context supported by a coding scheme'
	SUP  URNMap)

attributetype (1.3.6.1.4.1.2114.108.1.6.14
	NAME 'pickText'
	DESC 'The text associated with a pick list entry'
	SUP  tsCaseSensitiveDirectoryString
	SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.15
	NAME 'isDefault'
	DESC 'True if the selection is the default for the given circumstances'
	SUP  tsBoolean
	SINGLE-VALUE)


#   Used in DN
attributetype (1.3.6.1.4.1.2114.108.1.6.16
	NAME 'releaseId'
	DESC 'The unique name of a system release'
	SUP  tsCaseIgnoreIA5String
	SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.17
	NAME 'isLatest'
	DESC 'True if this version of the entity is the latest that is represented in the service'
	SUP  tsBoolean
	SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.18
	NAME 'isComplete'
	DESC 'True if a particular version of a coding scheme is completely represented in a service'
	SUP  tsBoolean
	SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.19
	NAME 'isPreferred'
	DESC 'True if the form is preferred'
	SUP  tsBoolean
	SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.20
	NAME 'text'
	DESC 'Text associated with an annotation, comment, etc'
	SUP  tsCaseIgnoreDirectoryString
	SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.21
	NAME 'entityDescription'
	DESC 'The textual description of an entity'
	SUP tsCaseIgnoreDirectoryString
	SINGLE-VALUE)


attributetype (1.3.6.1.4.1.2114.108.1.6.24
	NAME 'matchIfNoContext'
	DESC 'True if the list entry matches if no context is supplied'
	SUP tsBoolean
	SINGLE-VALUE)


#   Used in DN
attributetype (1.3.6.1.4.1.2114.108.1.6.25
	NAME 'sourceConcept'
	DESC 'The concept code for the source side of an association'
	SUP  conceptCode
	SINGLE-VALUE)


#   Used in DN
attributetype (1.3.6.1.4.1.2114.108.1.6.26
	NAME 'targetConcept'
	DESC 'The concept code for the target side of an association'
    SUP  conceptCode
	SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.27
	NAME 'entryOrder'
	DESC 'Positive integer that defines a list order'
	SUP  tsInteger
	SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.28
	NAME 'blob'
	DESC 'Any binary block of data'
	SUP tsOctetString
	SINGLE-VALUE)

# possible values EXACT, BROADER, NARROWER, APPROX
# Should really be derived from its own coding scheme...
attributetype (1.3.6.1.4.1.2114.108.1.6.29
	NAME 'degreeOfFidelity'
	DESC 'How closely a term approximates the meaning of a concept'
	SUP conceptCode
	SINGLE-VALUE)

# possible values ABBR, ACRONYM, STANDARD, PREFIX and SUFFIX
attributetype (1.3.6.1.4.1.2114.108.1.6.30
	NAME 'representationalForm'
	DESC 'The way that a phrase represents a concept'
	SUP  localName
	SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.31
	NAME 'targetCodingScheme'
	DESC 'The coding scheme from which a target concept is drawn'
	SUP  localName
	SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.32
	NAME 'isNative'
	DESC 'True if the coding scheme is the default one represented by the service'
	SUP  tsBoolean
	SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.33
	NAME 'isTransitive'
	DESC 'True if the association is transitive'
	SUP  tsBoolean
	SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.34
	NAME 'isSymmetric'
	DESC 'True if the association is symmetric'
	SUP  tsBoolean
	SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.35
	NAME 'forwardName'
	DESC 'Name of the forward relation'
	SUP  tsCaseIgnoreIA5String
	SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.36
	NAME 'reverseName'
	DESC 'Name of the inverse relation'
	SUP  tsCaseIgnoreIA5String
	SINGLE-VALUE)


#   Used in DN
attributetype (1.3.6.1.4.1.2114.108.1.6.37
	NAME 'valueDomain'
	DESC 'The name of a value domain'
	SUP  tsCaseIgnoreIA5String
	SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.39
	NAME 'defaultCodingScheme'
	DESC 'The URN of a default coding scheme'
	SUP  registeredName
	SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.40
	NAME 'releaseOrder'
	DESC 'A positive integer that defines the relative order of a release'
	SUP  tsInteger
	SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.42
	NAME 'firstVersion'
	DESC 'True means that entity was introduced in the current version'
	SUP  tsBoolean
	SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.43
	NAME 'lastVersion'
	DESC 'True means that this is the last version in which this entity was valid'
	SUP  tsBoolean
	SINGLE-VALUE)
	
attributetype (1.3.6.1.4.1.2114.108.1.6.46
	NAME 'approxNumConcepts'
	DESC 'Approximate number of concepts in version for list_concepts purposes'
	SINGLE-VALUE
	SUP  tsInteger)
	
attributetype (1.3.6.1.4.1.2114.108.1.6.47
	NAME 'translationAssociation'
	DESC 'If present, which association can be used to translate codes to the target scheme'
	SUP  association
	SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.48
	NAME 'isReflexive'
	DESC 'True if the association is reflexive'
	SUP  tsBoolean
	SINGLE-VALUE)

#   Used in DN
attributetype (1.3.6.1.4.1.2114.108.1.6.49
	NAME 'service'
	DESC 'The name of a service'
	SUP  tsCaseIgnoreIA5String
	SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.50
	NAME 'releaseDate'
	DESC 'The date time of a release'
	SUP tsCaseIgnoreIA5String
	SINGLE-VALUE)

#   Used in DN
attributetype (1.3.6.1.4.1.2114.108.1.6.51
	NAME 'property'
	DESC 'A property identifier'
	SUP  localName
	SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.59
    NAME 'supportedProperty'
	DESC 'A property that is supported by a coding scheme'
	SUP  URNMap)

#   Used in DN
attributetype (1.3.6.1.4.1.2114.108.1.6.52
	NAME 'version'
	DESC 'A version identifier'
	SUP  tsCaseIgnoreIA5String
	SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.53
	NAME 'isActive'
	DESC 'True means that entity is active'
	SUP  tsBoolean
	SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.54
	NAME 'formalName'
	DESC 'The official name of a coding scheme'
	SUP  tsCaseIgnoreIA5String
	SINGLE-VALUE)

#   Used in DN
attributetype (1.3.6.1.4.1.2114.108.1.6.55
	NAME 'link'
	DESC 'A reference link to another object'
	SUP  tsCaseIgnoreIA5String
	SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.67
	NAME 'versionOrder'
	DESC 'A positive integer that defines the relative order of a value domain version'
	SUP  tsInteger
	SINGLE-VALUE)


attributetype (1.3.6.1.4.1.2114.108.1.6.77
	NAME 'hl7ReleaseVersion'
	DESC 'Particular version of HL7 release'
	SUP  tsCaseIgnoreIA5String
	SINGLE-VALUE)


attributetype (1.3.6.1.4.1.2114.108.1.6.80
	NAME 'modVersion'
	DESC 'Version in which the entity was modified (cumulative)'
	SUP  version)
	
attributetype (1.3.6.1.4.1.2114.108.1.6.65
	NAME 'releaseAgency'
	DESC 'agency responsible for a release'
	SUP  URN
	SINGLE-VALUE)
	
attributetype (1.3.6.1.4.1.2114.108.1.6.81
	NAME 'representsVersion'
	DESC 'Coding scheme version currently represented by a coding scheme or value domain version represented by a value domain'
	SUP  version
	SINGLE-VALUE)
	
attributetype (1.3.6.1.4.1.2114.108.1.6.82
	NAME 'isTranslationAssociation'
	DESC 'TRUE means that the association translates between one coding scheme and another'
	SUP  tsBoolean
	SINGLE-VALUE)
	
attributetype (1.3.6.1.4.1.2114.108.1.6.83
	NAME 'conceptStatus'
	DESC 'Status of a concept (Proposed, Active, Retired, Replaced, Deleted)'
	SUP  localName
	SINGLE-VALUE)
	
attributetype (1.3.6.1.4.1.2114.108.1.6.96
    NAME 'supportedConceptStatus'
    DESC 'Concept status supported by the code system'
    SUP  URNMap)

attributetype (1.3.6.1.4.1.2114.108.1.6.89
	NAME 'copyright'
	DESC 'A copyright notice associated with an entity'
	SUP tsCaseIgnoreDirectoryString
	SINGLE-VALUE)
	
#   Used in DN
attributetype (1.3.6.1.4.1.2114.108.1.6.90
	NAME ('propertyId' 'definitionId' 'commentId' 'presentationId' 'instructionId')
	DESC 'the unique identifier of a property'
	SUP  tsCaseIgnoreIA5String
	SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.91
	NAME 'isFunctional'
	DESC 'True if the association is a function (in the OWL definition of the property)'
	SUP  tsBoolean
	SINGLE-VALUE)
	
attributetype (1.3.6.1.4.1.2114.108.1.6.92
	NAME 'isReverseFunctional'
	DESC 'True if the association is an inverse function (in the OWL definition of the property)'
	SUP  tsBoolean
	SINGLE-VALUE)
	
attributetype (1.3.6.1.4.1.2114.108.1.6.93
	NAME 'isAnonymous'
	DESC 'True means that the codedEntry is anonymous and the name is strictly internal'
	SUP  tsBoolean
	SINGLE-VALUE)

#

attributetype (1.3.6.1.4.1.2114.108.1.6.94
	NAME 'dataType'
	DESC 'The data type of a textual value.  Usually an rdf data type code.'
	SUP  localName
 	SINGLE-VALUE)

# Default coding scheme "http://www.w3.org/2001/XMLSchema"
attributetype (1.3.6.1.4.1.2114.108.1.6.97
    NAME 'supportedDataType'
    DESC 'A data type that is supported by a code scheme'
    SUP URNMap)
	
attributetype (1.3.6.1.4.1.2114.108.1.6.100
    NAME 'supportedCodingScheme'
    DESC 'An external coding scheme that is referenced in an association'
    SUP URNMap)
	
attributetype (1.3.6.1.4.1.2114.108.1.6.101
    NAME 'supportedRepresentationalForm'
    DESC 'A representational form (e.g. acronym, eponym) used in the code system'
    SUP URNMap)
	
attributetype (1.3.6.1.4.1.2114.108.1.6.95
	NAME 'dataValue'
	DESC 'A data value'
	SUP  tsCaseIgnoreDirectoryString
	SINGLE-VALUE)
	
attributetype (1.3.6.1.4.1.2114.108.1.6.98
	NAME 'associationQualifierValue'
	DESC 'A data value used in an association qualifier'
	SUP  tsCaseIgnoreDirectoryString
	SINGLE-VALUE)
	
attributetype (1.3.6.1.4.1.2114.108.1.6.102
    NAME 'id'
    DESC 'An arbitrary id for things that arent otherwise nameable'
    SUP tsCaseIgnoreIA5String
    SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.103
    NAME 'releaseURN'
    DESC 'The URN of a system release'
    SUP URN
    SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.86
	NAME 'representsRelease'
	DESC 'System release represented by a particular entity'
	SUP  releaseURN
	SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.104
    NAME 'isAntiTransitive'
    DESC 'True means that association is antiTransitive - (x R y) & (y R z) -> !(x R z)'
    SUP tsBoolean
    SINGLE-VALUE)
    
    
attributetype (1.3.6.1.4.1.2114.108.1.6.105
    NAME 'isAntiReflexive'
    DESC 'True means that association is antiReflexive - for any x in domain or range -> !(x R x)'
    SUP tsBoolean
    SINGLE-VALUE)

attributetype (1.3.6.1.4.1.2114.108.1.6.106
    NAME 'isAntiSymmetric'
    DESC 'True means that association is antiSymmetric - (x R y) -> !(y R x)'
    SUP tsBoolean
    SINGLE-VALUE)
