Search in sources :

Example 1 with QnLoinc2HPOAnnotation

use of org.monarchinitiative.loinc2hpo.loinc.QnLoinc2HPOAnnotation in project loinc2hpo by monarch-initiative.

the class FhirObservationAnalyzerTest method getHPOFromInterpretation.

@Test
public void getHPOFromInterpretation() throws Exception {
    FhirObservationAnalyzer.setObservation(observation);
    Map<LoincId, UniversalLoinc2HPOAnnotation> testmap = new HashMap<>();
    LoincId loincId = new LoincId("15074-8");
    LoincScale loincScale = LoincScale.string2enum("Qn");
    TermId low = hpoTermMap.get("Hypoglycemia").getId();
    TermId normal = hpoTermMap.get("Abnormality of blood glucose concentration").getId();
    TermId hi = hpoTermMap.get("Hyperglycemia").getId();
    Loinc2HPOAnnotation test1 = new QnLoinc2HPOAnnotation(loincId, loincScale, low, normal, hi);
// testmap.put(loincId, test1);
// LabTestResultInHPO result = FhirObservationAnalyzer.getHPOFromInterpretation(FhirObservationAnalyzer.getObservation().getInterpretation(), testmap);
// System.out.println(result);
}
Also used : QnLoinc2HPOAnnotation(org.monarchinitiative.loinc2hpo.loinc.QnLoinc2HPOAnnotation) Loinc2HPOAnnotation(org.monarchinitiative.loinc2hpo.loinc.Loinc2HPOAnnotation) HashMap(java.util.HashMap) TermId(com.github.phenomics.ontolib.ontology.data.TermId) QnLoinc2HPOAnnotation(org.monarchinitiative.loinc2hpo.loinc.QnLoinc2HPOAnnotation) Test(org.junit.Test)

Aggregations

TermId (com.github.phenomics.ontolib.ontology.data.TermId)1 HashMap (java.util.HashMap)1 Test (org.junit.Test)1 Loinc2HPOAnnotation (org.monarchinitiative.loinc2hpo.loinc.Loinc2HPOAnnotation)1 QnLoinc2HPOAnnotation (org.monarchinitiative.loinc2hpo.loinc.QnLoinc2HPOAnnotation)1