class R4CodeFhirToDhisTransformerUtils extends AbstractCodeFhirToDhisTransformerUtils {

    @Override
    public boolean containsCode( @Nullable ICompositeType codeableConcept, @Nullable String system, @Nonnull String code )
    {
        if ( codeableConcept == null )
        {
            return false;
        }
        return ((CodeableConcept) codeableConcept).getCoding().stream().anyMatch(
            coding -> Objects.equals( system, coding.getSystem() ) && code.equals( coding.getCode() ) );
    }

    public  R4CodeFhirToDhisTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext,
        @Nonnull CodeRepository codeRepository,
        @Nonnull SystemCodeRepository systemCodeRepository );

}