public boolean addSnomedId ( final Candidate candidate ) throws SQLException { final SnomedTerm result = findFromCuiAndDesc ( candidate . getCandidateCUI ( ) , candidate . getCandidatePreferred ( ) ) ; if ( result != null ) { candidate . setSnomedId ( result . snomedId ) ; candidate . setTermType ( result . termType ) ; return true ; } else { // TODO: log this somewhere? System . err . printf ( "WARNING! Could not find the SNOMED CT concept id for UMLS CUI: %s: '%s'\n" , candidate . getCandidateCUI ( ) , candidate . getCandidatePreferred ( ) ) ; return false ; } }
Tries to find this candidate in the SNOMED CT database and if found adds the SNOMED id and term type to the instance .