Search in sources :

Example 6 with LoincCodeClass

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());
}
Also used : LoincCodeClass(org.monarchinitiative.loinc2hpo.util.LoincCodeClass) Test(org.junit.Test)

Example 7 with LoincCodeClass

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());
}
Also used : LoincCodeClass(org.monarchinitiative.loinc2hpo.util.LoincCodeClass) Test(org.junit.Test)

Example 8 with LoincCodeClass

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());
}
Also used : LoincCodeClass(org.monarchinitiative.loinc2hpo.util.LoincCodeClass) Test(org.junit.Test)

Example 9 with LoincCodeClass

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());
}
Also used : LoincCodeClass(org.monarchinitiative.loinc2hpo.util.LoincCodeClass) Test(org.junit.Test)

Example 10 with LoincCodeClass

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());
}
Also used : LoincCodeClass(org.monarchinitiative.loinc2hpo.util.LoincCodeClass) Test(org.junit.Test)

Aggregations

LoincCodeClass (org.monarchinitiative.loinc2hpo.util.LoincCodeClass)18 Test (org.junit.Test)17 FXML (javafx.fxml.FXML)1 HPO_Class_Found (org.monarchinitiative.loinc2hpo.util.HPO_Class_Found)1