class Dstu3ImmunizationFhirToDhisTransformerUtils extends AbstractImmunizationFhirToDhisTransformerUtils {

    @Override
    public int getMaxDoseSequence( @Nullable IDomainResource immunization ) throws TransformerException
    {
        if ( immunization == null )
        {
            return 0;
        }
        return ((Immunization) immunization).getVaccinationProtocol().stream().map( Immunization.ImmunizationVaccinationProtocolComponent::getDoseSequence )
            .max( Comparator.naturalOrder() ).orElse( 0 );
    }

    public  Dstu3ImmunizationFhirToDhisTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext );

}