use of org.hl7.fhir.r5.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;
}
use of org.hl7.fhir.r5.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);
}
use of org.hl7.fhir.r5.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));
}
use of org.hl7.fhir.r5.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());
}
use of org.hl7.fhir.r5.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());
}
Aggregations