use of org.monarchinitiative.loinc2hpo.util.LoincCodeClass in project loinc2hpo by monarch-initiative.
the class LoincLongNameParserTest method testString11.
@Test
public void testString11() {
String name = "Appearance of Body fluid";
LoincCodeClass loinc = LoincLongNameParser.parse(name);
assertEquals("Appearance", loinc.getLoincParameter());
assertEquals("Body fluid", loinc.getLoincTissue());
assertEquals("", loinc.getLoincType());
assertEquals("", loinc.getLoincMethod());
}
use of org.monarchinitiative.loinc2hpo.util.LoincCodeClass in project loinc2hpo by monarch-initiative.
the class LoincLongNameParserTest method testString10.
@Test
public void testString10() {
String name = "Cholesterol in HDL [Presence] in Serum or Plasma";
LoincCodeClass loinc = LoincLongNameParser.parse(name);
assertEquals("Cholesterol in HDL", loinc.getLoincParameter());
assertEquals("Serum or Plasma", loinc.getLoincTissue());
assertEquals("Presence", loinc.getLoincType());
assertEquals("", loinc.getLoincMethod());
}
use of org.monarchinitiative.loinc2hpo.util.LoincCodeClass in project loinc2hpo by monarch-initiative.
the class LoincLongNameParserTest method testString9.
@Test
public void testString9() {
String name = "Thyrotropin [Units/volume] in Serum or Plasma by Detection limit <= 0.05 mIU/L";
LoincCodeClass loinc = LoincLongNameParser.parse(name);
assertEquals("Thyrotropin", loinc.getLoincParameter());
assertEquals("Serum or Plasma", loinc.getLoincTissue());
assertEquals("Units/volume", loinc.getLoincType());
assertEquals("Detection limit <= 0.05 mIU/L", loinc.getLoincMethod());
}
use of org.monarchinitiative.loinc2hpo.util.LoincCodeClass in project loinc2hpo by monarch-initiative.
the class LoincLongNameParserTest method testString6.
@Test
public void testString6() {
String name = "Fibrosis score";
LoincCodeClass loinc = LoincLongNameParser.parse(name);
assertEquals("Fibrosis score", loinc.getLoincParameter());
assertEquals("", loinc.getLoincTissue());
assertEquals("", loinc.getLoincType());
assertEquals("", loinc.getLoincMethod());
}
use of org.monarchinitiative.loinc2hpo.util.LoincCodeClass in project loinc2hpo by monarch-initiative.
the class LoincLongNameParserTest method testString12.
@Test
public void testString12() {
String name = "Human papilloma virus 16+18+31+33+35+39+45+51+52+56+58+59+68 DNA [Presence] in Cervix by Probe and signal amplification method";
LoincCodeClass loinc = LoincLongNameParser.parse(name);
assertEquals("Human papilloma virus 16+18+31+33+35+39+45+51+52+56+58+59+68 DNA", loinc.getLoincParameter());
assertEquals("Cervix", loinc.getLoincTissue());
assertEquals("Presence", loinc.getLoincType());
assertEquals("Probe and signal amplification method", loinc.getLoincMethod());
}
Aggregations