Hallo everyone, We are aiming at integrating post-coordinated SNOMED CT-terms into a version of cTAKES. For this to happen we need to access the concepts (SNOMED CT-terms) which cTAKES generates as default. As for now we've worked out of the process-function in the file AbstractJCasTermAnnotator.java. Here we try to access the CollectionMap allConceptsMap, which to our understanding include all the concepts generated by cTAKES (is this correct?). We are able to get the keys and the one of the collections using the following:
System.out.println(allConceptsMap.keySet()); System.out.println(allConceptsMap.getCollection(key)); Which result in the following: [30193, 30705, 16658, 231749, 678226, 4057, 3263723, 262926, 1963703, 3263722] [org.apache.ctakes.dictionary.lookup2.concept.DefaultConcept@6fe7b7eb] Our main question is how to access this: [org.apache.ctakes.dictionary.lookup2.concept.DefaultConcept@6fe7b7eb] in order to obtain preferred terms and CUI codes? One of our concerns is that we either figure out the type of the at concepts and collections. We have also given the CAS a try, but didn't quite understand it. Thanks you in advance! Best regard Thea Mentz and Johanne Krogsgaard [cid:image001.png@01D72D31.1D32E0C0]