# allowedCountries property

List<EuropeanHealthInsuranceCardIssuingCountry> allowedCountries
getter/setter pair

List of allowed countries for the EHIC. If:

- single country: validation rules for the given country are used starting from the first frame. If the country cannot be inferred or the inferred country doesn't match the given country, the result of recognize() will be IncompleteValidation.
- multiple countries: the country is inferred from the card number first. Until the country is detected, the document fields are not OCR'd and accumulated. Once the country is inferred, the field accumulation starts and the inferred country validation rules are applied. If the country cannot be inferred or the inferred country doesn't match any of the countries in the list, the result status will be IncompleteValidation.
- empty list: same as "multiple countries" with one additional detail.

If the country cannot be inferred within `maxCountryDetectionAttempts` successive frames in which the part of the card number that stores the country code was successfully OCR'd, then the country is inferred to be Unknown and no validation rules are applied. Field accumulation then proceeds normally. In this case recognize() can eventually return Success and the document will have a CountryType of Unknown.

## Implementation

    List<EuropeanHealthInsuranceCardIssuingCountry> allowedCountries;