Search in sources :

Example 16 with ShortCode

use of org.monarchinitiative.loinc2hpocore.codesystems.ShortCode in project loinc2hpo by monarch-initiative.

the class FhirOutcomeCodeTest method detected.

@Test
public void detected() {
    ShortCode pos = ShortCode.POS;
    String fhirDetected = "DET";
    assertEquals(pos, FhirOutcomeCode.fhir2shortcode(fhirDetected));
}
Also used : ShortCode(org.monarchinitiative.loinc2hpocore.codesystems.ShortCode) Test(org.junit.jupiter.api.Test)

Example 17 with ShortCode

use of org.monarchinitiative.loinc2hpocore.codesystems.ShortCode in project loinc2hpo by monarch-initiative.

the class FhirOutcomeCodeTest method negative.

@Test
public void negative() {
    ShortCode neg = ShortCode.NEG;
    String fhirNotDetected = "NEG";
    assertEquals(neg, FhirOutcomeCode.fhir2shortcode(fhirNotDetected));
}
Also used : ShortCode(org.monarchinitiative.loinc2hpocore.codesystems.ShortCode) Test(org.junit.jupiter.api.Test)

Aggregations

ShortCode (org.monarchinitiative.loinc2hpocore.codesystems.ShortCode)17 Test (org.junit.jupiter.api.Test)14 Outcome (org.monarchinitiative.loinc2hpocore.codesystems.Outcome)3 Collection (java.util.Collection)2 Coding (org.hl7.fhir.dstu3.model.Coding)1