class R4DateTimeFhirToDhisTransformerUtils extends AbstractDateTimeFhirToDhisTransformerUtils {

    @Override
    public boolean isValidNow( @Nullable ICompositeType period )
    {
        if ( period == null )
        {
            return true;
        }

        final Period p = (Period) period;
        final Date now = new Date();
        // start will be ignored since there may be no further notification about that event
        return (p.getEnd() == null) || !now.after( p.getEnd() );
    }

    public  R4DateTimeFhirToDhisTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext );

}