Add MeSH triples.

This commit is contained in:
Jim Balhoff 2023-02-13 14:24:49 -05:00
parent a547458274
commit d67470a6e1
1 changed files with 4 additions and 0 deletions

View File

@ -545,8 +545,12 @@ public class TurtleParser extends ParserBase {
} else if ("http://loinc.org".equals(system)) { } else if ("http://loinc.org".equals(system)) {
t.prefix("loinc", "https://loinc.org/rdf/"); t.prefix("loinc", "https://loinc.org/rdf/");
t.linkedPredicate("a", "loinc:"+urlescape(code).toUpperCase(), null, null); t.linkedPredicate("a", "loinc:"+urlescape(code).toUpperCase(), null, null);
} else if ("https://www.nlm.nih.gov/mesh".equals(system)) {
t.prefix("mesh", "http://id.nlm.nih.gov/mesh/");
t.linkedPredicate("a", "mesh:"+urlescape(code), null, null);
} }
} }
private void generateLinkedPredicate(Complex t, String code) throws FHIRException { private void generateLinkedPredicate(Complex t, String code) throws FHIRException {
Expression expression = SnomedExpressions.parse(code); Expression expression = SnomedExpressions.parse(code);