Set PseudonymizationService=Mii to create pseudonyms using any backend that implements the
MII Pseudonymization Implementation Guide2026.1.0. The client uses the $pseudonymize and $de-pseudonymize operations. It sends and
reads the parameters context, original and pseudonym as Identifier values only. The
domain of a rule becomes the value of the context identifier.
Environment Variable
Description
Default
Mii__Url
The base URL of the MII pseudonymization service. Used if PseudonymizationService is set to Mii.
""
Mii__Retry__Count
The number of times a failed request is retried, with exponential backoff.
3
Mii__RequestTimeoutSeconds
How long a single request may take before it is cancelled and, if Mii__Retry__Count allows, retried.
20
When using the Mii service as a pseudonymization backend, you can optionally set the identifier systems used in the requests for each rule that uses the pseudonymize method. These can be set under a mii section inside the anonymization config. If a system is not set, the corresponding identifier is sent with only a value:
fhirPathRules:-path:nodesByType('Identifier').where(type.coding.where(system='http://terminology.hl7.org/CodeSystem/v2-0203' and code='MR').exists()).valuemethod:pseudonymize# the domain will be used as the value of the "context" identifierdomain:Transfer1mii:# the identifier system set on the "context" identifier (optional)contextSystem:https://fhir.example.com/identifiers/context# the identifier system set on the "original" identifier (optional)originalSystem:https://fhir.example.com/identifiers/patient-id