Search in sources :

Example 16 with LoincCodeClass

use of org.monarchinitiative.loinc2hpo.util.LoincCodeClass in project loinc2hpo by monarch-initiative.

the class LoincLongNameParserTest method testString7.

@Test
public void testString7() {
    String name = "Microalbumin [Mass/time] in 24 hour Urine by Detection limit <= 1.0 mg/L";
    LoincCodeClass loinc = LoincLongNameParser.parse(name);
    assertEquals("Microalbumin", loinc.getLoincParameter());
    assertEquals("24 hour Urine", loinc.getLoincTissue());
    assertEquals("Mass/time", loinc.getLoincType());
    assertEquals("Detection limit <= 1.0 mg/L", loinc.getLoincMethod());
}
Also used : LoincCodeClass(org.monarchinitiative.loinc2hpo.util.LoincCodeClass) Test(org.junit.Test)

Example 17 with LoincCodeClass

use of org.monarchinitiative.loinc2hpo.util.LoincCodeClass in project loinc2hpo by monarch-initiative.

the class LoincLongNameParserTest method testString5.

@Test
public void testString5() {
    String name = "Oxygen [Partial pressure] adjusted to patient's actual temperature in Arterial blood";
    LoincCodeClass loinc = LoincLongNameParser.parse(name);
    assertEquals("Oxygen adjusted to patient's actual temperature", loinc.getLoincParameter());
    assertEquals("Arterial blood", loinc.getLoincTissue());
    assertEquals("Partial pressure", loinc.getLoincType());
    assertEquals("", loinc.getLoincMethod());
}
Also used : LoincCodeClass(org.monarchinitiative.loinc2hpo.util.LoincCodeClass) Test(org.junit.Test)

Example 18 with LoincCodeClass

use of org.monarchinitiative.loinc2hpo.util.LoincCodeClass in project loinc2hpo by monarch-initiative.

the class LoincLongNameParserTest method testString17.

@Test
public void testString17() {
    String name = "Glucose [Mass/volume] in Serum or Plasma --45 minutes post 50 g lactose PO";
    LoincCodeClass loinc = LoincLongNameParser.parse(name);
    assertEquals("Glucose", loinc.getLoincParameter());
    assertEquals("Serum or Plasma", loinc.getLoincTissue());
    assertEquals("Mass/volume", loinc.getLoincType());
    assertEquals("", loinc.getLoincMethod());
}
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