Search in sources :

Example 11 with UnsignedIntType

use of org.hl7.fhir.dstu2.model.UnsignedIntType in project org.hl7.fhir.core by hapifhir.

the class Appointment40_50 method convertAppointmentPriority.

private static CodeableConcept convertAppointmentPriority(UnsignedIntType src) {
    CodeableConcept tgt = src.hasValue() ? convertAppointmentPriorityToR5(src.getValue()) : new CodeableConcept();
    ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt);
    return tgt;
}
Also used : CodeableConcept(org.hl7.fhir.r5.model.CodeableConcept)

Example 12 with UnsignedIntType

use of org.hl7.fhir.dstu2.model.UnsignedIntType in project org.hl7.fhir.core by hapifhir.

the class RdfParser method composeUnsignedInt.

protected void composeUnsignedInt(Complex parent, String parentType, String name, UnsignedIntType value, int index) {
    if (value == null)
        return;
    Complex t = parent.predicate("fhir:" + parentType + "." + name);
    t.predicate("fhir:value", ttlLiteral(value.asStringValue()));
    composeElement(t, parentType, name, value, index);
}
Also used : Complex(org.hl7.fhir.r4.utils.formats.Turtle.Complex)

Example 13 with UnsignedIntType

use of org.hl7.fhir.dstu2.model.UnsignedIntType in project org.hl7.fhir.core by hapifhir.

the class UnsignedIntTypeNullTest method equalsShallow.

@Test
@DisplayName("Test null value equalsShallow()")
void equalsShallow() {
    UnsignedIntType nullUnsignedInt = new UnsignedIntType();
    UnsignedIntType validUnsignedInt = new UnsignedIntType("42");
    Assertions.assertFalse(nullUnsignedInt.equalsShallow(validUnsignedInt));
}
Also used : UnsignedIntType(org.hl7.fhir.r4b.model.UnsignedIntType) Test(org.junit.jupiter.api.Test) DisplayName(org.junit.jupiter.api.DisplayName)

Example 14 with UnsignedIntType

use of org.hl7.fhir.dstu2.model.UnsignedIntType in project org.hl7.fhir.core by hapifhir.

the class UnsignedIntTypeNullTest method typedCopy.

@Test
@DisplayName("Test null value typedCopy()")
void typedCopy() {
    UnsignedIntType nullUnsignedInt = new UnsignedIntType();
    UnsignedIntType copyUnsignedInt = (UnsignedIntType) nullUnsignedInt.typedCopy();
    Assertions.assertNull(copyUnsignedInt.getValue());
}
Also used : UnsignedIntType(org.hl7.fhir.r4b.model.UnsignedIntType) Test(org.junit.jupiter.api.Test) DisplayName(org.junit.jupiter.api.DisplayName)

Example 15 with UnsignedIntType

use of org.hl7.fhir.dstu2.model.UnsignedIntType in project org.hl7.fhir.core by hapifhir.

the class UnsignedIntTypeNullTest method copy.

@Test
@DisplayName("Test null value copy()")
void copy() {
    UnsignedIntType nullUnsignedInt = new UnsignedIntType();
    UnsignedIntType copyUnsignedInt = nullUnsignedInt.copy();
    Assertions.assertNull(copyUnsignedInt.getValue());
}
Also used : UnsignedIntType(org.hl7.fhir.r4b.model.UnsignedIntType) Test(org.junit.jupiter.api.Test) DisplayName(org.junit.jupiter.api.DisplayName)

Aggregations

Test (org.junit.jupiter.api.Test)14 UnsignedIntType (org.hl7.fhir.r4.model.UnsignedIntType)12 CodeableConcept (org.hl7.fhir.r4.model.CodeableConcept)10 Coding (org.hl7.fhir.r4.model.Coding)10 BenefitComponent (org.hl7.fhir.r4.model.ExplanationOfBenefit.BenefitComponent)10 UnsignedIntType (org.hl7.fhir.dstu3.model.UnsignedIntType)5 BenefitComponent (org.hl7.fhir.dstu3.model.ExplanationOfBenefit.BenefitComponent)4 BigDecimal (java.math.BigDecimal)3 UnsignedIntType (org.hl7.fhir.r4b.model.UnsignedIntType)3 CodeableConcept (org.hl7.fhir.r5.model.CodeableConcept)3 DisplayName (org.junit.jupiter.api.DisplayName)3 TemporalPrecisionEnum (ca.uhn.fhir.model.api.TemporalPrecisionEnum)2 IdDt (ca.uhn.fhir.model.primitive.IdDt)2 DataFormatException (ca.uhn.fhir.parser.DataFormatException)2 Constants (ca.uhn.fhir.rest.api.Constants)2 RequestDetails (ca.uhn.fhir.rest.api.server.RequestDetails)2 Strings (com.google.common.base.Strings)2 CcwCodebookMissingVariable (gov.cms.bfd.model.codebook.data.CcwCodebookMissingVariable)2 CcwCodebookVariable (gov.cms.bfd.model.codebook.data.CcwCodebookVariable)2 CcwCodebookInterface (gov.cms.bfd.model.codebook.model.CcwCodebookInterface)2