Search in sources :

Example 11 with ShortCode

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

the class FhirOutcomeCodeTest method positive.

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

Example 12 with ShortCode

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

the class FhirOutcomeCodeTest method significantLow.

@Test
public void significantLow() {
    ShortCode low = ShortCode.L;
    String fhirOffScaleLow = "LU";
    assertEquals(low, FhirOutcomeCode.fhir2shortcode(fhirOffScaleLow));
}
Also used : ShortCode(org.monarchinitiative.loinc2hpocore.codesystems.ShortCode) Test(org.junit.jupiter.api.Test)

Example 13 with ShortCode

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

the class FhirOutcomeCodeTest method significantlyHigh.

@Test
public void significantlyHigh() {
    ShortCode high = ShortCode.H;
    String fhirOffScaleHigh = "HU";
    assertEquals(high, FhirOutcomeCode.fhir2shortcode(fhirOffScaleHigh));
}
Also used : ShortCode(org.monarchinitiative.loinc2hpocore.codesystems.ShortCode) Test(org.junit.jupiter.api.Test)

Example 14 with ShortCode

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

the class FhirOutcomeCodeTest method offScaleLow.

@Test
public void offScaleLow() {
    ShortCode low = ShortCode.L;
    String fhirOffScaleLow = "<";
    assertEquals(low, FhirOutcomeCode.fhir2shortcode(fhirOffScaleLow));
}
Also used : ShortCode(org.monarchinitiative.loinc2hpocore.codesystems.ShortCode) Test(org.junit.jupiter.api.Test)

Example 15 with ShortCode

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

the class FhirOutcomeCodeTest method offScaleHigh.

@Test
public void offScaleHigh() {
    ShortCode high = ShortCode.H;
    String fhirOffScaleHigh = ">";
    assertEquals(high, FhirOutcomeCode.fhir2shortcode(fhirOffScaleHigh));
}
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