@Test public void hasDayPrecisionNull() { Assert.assertTrue( utils.hasDayPrecision( null ) ); }
@Override public boolean hasDayPrecision( @Nullable IPrimitiveType<Date> dateTime ) { if ( dateTime == null ) { return true; } return (((BaseDateTimeType) dateTime).getPrecision().ordinal() >= TemporalPrecisionEnum.DAY.ordinal()); }
Dstu3DateTimeFhirToDhisTransformerUtils extends AbstractDateTimeFhirToDhisTransformerUtils { @Override public boolean hasDayPrecision( @Nullable IPrimitiveType<Date> dateTime ) { if ( dateTime == null ) { return true; } return (((BaseDateTimeType) dateTime).getPrecision().ordinal() >= TemporalPrecisionEnum.DAY.ordinal()); } }
Dstu3DateTimeFhirToDhisTransformerUtils extends AbstractDateTimeFhirToDhisTransformerUtils { @Override public boolean hasDayPrecision( @Nullable IPrimitiveType<Date> dateTime ) { if ( dateTime == null ) { return true; } return (((BaseDateTimeType) dateTime).getPrecision().ordinal() >= TemporalPrecisionEnum.DAY.ordinal()); } Dstu3DateTimeFhirToDhisTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext ); }
Dstu3DateTimeFhirToDhisTransformerUtils extends AbstractDateTimeFhirToDhisTransformerUtils { @Override public boolean hasDayPrecision( @Nullable IPrimitiveType<Date> dateTime ) { if ( dateTime == null ) { return true; } return (((BaseDateTimeType) dateTime).getPrecision().ordinal() >= TemporalPrecisionEnum.DAY.ordinal()); } Dstu3DateTimeFhirToDhisTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext ); @Nonnull @Override Set<FhirVersion> getFhirVersions(); @Override boolean hasDayPrecision( @Nullable IPrimitiveType<Date> dateTime ); @Override boolean isValidNow( @Nullable ICompositeType period ); }
Dstu3DateTimeFhirToDhisTransformerUtils extends AbstractDateTimeFhirToDhisTransformerUtils { @Override public boolean hasDayPrecision( @Nullable IPrimitiveType<Date> dateTime ) { if ( dateTime == null ) { return true; } return (((BaseDateTimeType) dateTime).getPrecision().ordinal() >= TemporalPrecisionEnum.DAY.ordinal()); } Dstu3DateTimeFhirToDhisTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext ); @Nonnull @Override Set<FhirVersion> getFhirVersions(); @Override boolean hasDayPrecision( @Nullable IPrimitiveType<Date> dateTime ); @Override boolean isValidNow( @Nullable ICompositeType period );  }