use of org.monarchinitiative.loinc2hpo.util.LoincCodeClass in project loinc2hpo by monarch-initiative.
the class LoincLongNameParserTest method testString2.
@Test
public void testString2() {
String name = "Erythrocyte distribution width [Ratio] by Automated count";
LoincCodeClass loinc = LoincLongNameParser.parse(name);
assertEquals("Erythrocyte distribution width", loinc.getLoincParameter());
assertEquals("", loinc.getLoincTissue());
assertEquals("Ratio", loinc.getLoincType());
assertEquals("Automated count", loinc.getLoincMethod());
}
use of org.monarchinitiative.loinc2hpo.util.LoincCodeClass in project loinc2hpo by monarch-initiative.
the class LoincLongNameParserTest method testString1.
@Test
public void testString1() {
String name = "Potassium [Moles/volume] in Serum or Plasma";
LoincCodeClass loinc = LoincLongNameParser.parse(name);
assertEquals("Potassium", loinc.getLoincParameter());
assertEquals("Serum or Plasma", loinc.getLoincTissue());
assertEquals("Moles/volume", loinc.getLoincType());
assertEquals("", loinc.getLoincMethod());
System.out.println(loinc.keysInLoinParameter().peek());
}
use of org.monarchinitiative.loinc2hpo.util.LoincCodeClass in project loinc2hpo by monarch-initiative.
the class LoincLongNameParserTest method testString4.
@Test
public void testString4() {
String name = "CD3 cells/100 cells in Blood";
LoincCodeClass loinc = LoincLongNameParser.parse(name);
assertEquals("CD3 cells/100 cells", loinc.getLoincParameter());
assertEquals("Blood", 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 testString8.
@Test
public void testString8() {
String name = "Anion gap 3 in Serum or Plasma";
LoincCodeClass loinc = LoincLongNameParser.parse(name);
assertEquals("Anion gap 3", loinc.getLoincParameter());
assertEquals("Serum or Plasma", 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 testString16.
@Test
public void testString16() {
String name = "Fungus identified in Unspecified specimen by Sticky tape for environmental fungus";
LoincCodeClass loinc = LoincLongNameParser.parse(name);
assertEquals("Fungus identified", loinc.getLoincParameter());
assertEquals("Unspecified specimen", loinc.getLoincTissue());
assertEquals("Sticky tape for environmental fungus", loinc.getLoincMethod());
assertEquals("", loinc.getLoincType());
}
Aggregations