# startEhicScanner static method

Future<HealthInsuranceCardRecognitionResult> startEhicScanner(

1. HealthInsuranceScannerConfiguration config

)

Starts the Ready-to-Use EHIC Scanner UI as full-screen modal UI dialog. The EHIC Scanner is able to recognize and parse data from the backside of European Health Insurance Cards.

## Implementation

    static Future<HealthInsuranceCardRecognitionResult> startEhicScanner(
        HealthInsuranceScannerConfiguration config) async {
      try {
        var result = await _invoke('startEhicScanner', config.toJson());
        if (_wasCanceled(result)) {
          return HealthInsuranceCardRecognitionResult.canceled();
        }
        return HealthInsuranceCardRecognitionResult.fromJson(jsonDecode(result));
      } catch (e) {
        Logger.root.severe(e);
        return HealthInsuranceCardRecognitionResult(
            <HealthInsuranceCardField>[], null);
      }
    }