Update util file for snomeds and polarity
@@ -208,7 +208,12 @@ public class CTAKESUtils {
for (int i = 0; i < mentions.size(); i++) {
if (mentions.get(i) instanceof UmlsConcept) {
UmlsConcept concept = (UmlsConcept) mentions.get(i);
+ sb.append("cui=");
sb.append(concept.getCui());
+ sb.append(",");
+ sb.append(concept.getCodingScheme());
+ sb.append("=");
+ sb.append(concept.getCode());
if (i < mentions.size() - 1) {
sb.append(",");
}
@@ -217,7 +222,8 @@ public class CTAKESUtils {
}
value = sb.toString();
} else if (property == CTAKESAnnotationProperty.POLARITY) {
- value = Integer.toString(annotation.getPolarity());
+ String polarity_pref = "POLARITY";
+ value = new StringBuilder(polarity_pref).append("=").append(Integer.toString(annotation.getPolarity())).toString();
}
return value;
}
