# startEhicScanner static method

1. @Deprecated('Use ScanbotSdkUi.startDocumentDataExtractor instead.')

Future<ResultWrapper<EuropeanHealthInsuranceCardRecognitionResult>> startEhicScanner(

1. HealthInsuranceCardScannerConfiguration config

)

Starts the European Health Insurance Card (EHIC) Scanner screen with the specified `config`.

Returns a EuropeanHealthInsuranceCardRecognitionResult wrapped in ResultWrapper.

Deprecated: Use ScanbotSdkUi.startDocumentDataExtractor instead.

## Implementation

    @Deprecated('Use ScanbotSdkUi.startDocumentDataExtractor instead.')
    static Future<ResultWrapper<EuropeanHealthInsuranceCardRecognitionResult>>
        startEhicScanner(HealthInsuranceCardScannerConfiguration config) async {
      try {
        var result =
            await _channel.invokeMethod('startEhicScanner', config.toJson());
        return ResultWrapper.fromJson(jsonDecode(result),
            fromJsonT: (data) =>
                EuropeanHealthInsuranceCardRecognitionResult.fromJson(
                    data as Map<String, dynamic>));
      } on PlatformException catch (e) {
        Logger.root.severe(e);
        return ResultWrapper.error(e.message ?? 'Unknown platform error');
      } on Exception catch (e) {
        return ResultWrapper.error(e.toString());
      }
    }