use of org.hl7.fhir.dstu3.model.Observation in project loinc2hpo by monarch-initiative.
the class ObservationWithCodedValueTest method testEcoliBloodCulture.
@Test
public void testEcoliBloodCulture() {
Observation ecoliObservation = ecoliNoInterpretationBloodCulture();
Uberobservation uberobservation = new ObservationDtu3(ecoliObservation);
LoincId loincId = new LoincId("600-7");
Optional<LoincId> loincOpt = uberobservation.getLoincId();
assertTrue(loincOpt.isPresent());
assertEquals(loincId, loincOpt.get());
Optional<Outcome> outcomeOpt = uberobservation.getOutcome();
assertTrue(outcomeOpt.isPresent());
Outcome outcome = outcomeOpt.get();
assertTrue(outcome.isNominal());
assertEquals("112283007:http://snomed.info/sct:Escherichia coli", outcome.getOutcome());
}
Aggregations