-
Notifications
You must be signed in to change notification settings - Fork 36
SNOMED
Pascal Pfiffner edited this page Apr 27, 2016
·
1 revision
Holds one SNOMED concept. Its properties and methods:
Property, uses SNOMEDLookup().lookup_code_meaning(self.code)
to lazily fetch the concept's term.
cpt = SNOMEDConcept('215350009')
print('SNOMED code "{0}": {1}'.format(cpt.code, cpt.term))
A method to check whether the concept has the given concept as a (direct or indirect) parent. This looks at the 'isa' relationship (concept 116680003).
cpt = SNOMEDConcept('315004001')
for other in ['128462008', '363346000', '55342001', '215350009']:
print('SNOMED code "{0}" refines "{1}": {2}'
.format(cpt.code, other, cpt.isa(other)))
The importer requires the Release Format 2 (RF2) files, but works with both international and US releases.