Crate mrn_generator

Source

Enums§

MrnGeneratorError
Procedure
Procedure types

Functions§

check_character_value
Character values according to tables in ISO 6346
check_remainder_value
Remainder values according to tables in ISO 6346
generate_random_mrn
Returns a valid MRN given a country code
is_mrn_valid
Returns None if MRN is valid, and correct last character if it’s invalid
match_procedure
Matches a procedure category code (optionally combined with another one) and returns the corresponding customs procedure
procecure_category_to_char
Maps procedure category to a corresponding character