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);
}
Aggregations