Skip to content

feat: add MII pseudonymization interface as backend service#317

Open
trobanga wants to merge 1 commit intomiracum:masterfrom
trobanga:mii-pseudonymization-interface
Open

feat: add MII pseudonymization interface as backend service#317
trobanga wants to merge 1 commit intomiracum:masterfrom
trobanga:mii-pseudonymization-interface

Conversation

@trobanga
Copy link
Contributor

Introduce a new "Mii" pseudonymization service type that enables fhir-pseudonymizer to delegate pseudonymization and de-pseudonymization to an external service implementing the MII standardized FHIR pseudonymization interface.

  • Add MiiFhirClient implementing IPseudonymServiceClient
  • Add MiiConfig with URL, auth, and retry settings
  • Add DI registration with OAuth/Basic auth and Polly retry
  • Wire up as PseudonymizationServiceType.Mii in Startup


private static IHttpClientFactory CreateHttpClientFactory(HttpMessageHandler handler)
{
var client = new HttpClient(handler) { BaseAddress = testBaseAddress };

Check warning

Code scanning / CodeQL

Missing Dispose call on local IDisposable Warning test

Disposable 'HttpClient' is created but not disposed.
Comment on lines +168 to +176
new HttpResponseMessage
{
StatusCode = HttpStatusCode.OK,
Content = new StringContent(
responseContent,
new MediaTypeHeaderValue("application/json+fhir")
),
RequestMessage = new HttpRequestMessage(HttpMethod.Post, testBaseAddress),
}

Check warning

Code scanning / CodeQL

Missing Dispose call on local IDisposable Warning test

Disposable 'HttpResponseMessage' is created but not disposed.
Introduce a new "Mii" pseudonymization service type that enables
fhir-pseudonymizer to delegate pseudonymization and de-pseudonymization
to an external service implementing the MII standardized FHIR
pseudonymization interface.

- Add MiiFhirClient implementing IPseudonymServiceClient
- Add MiiConfig with URL, auth, and retry settings
- Add DI registration with OAuth/Basic auth and Polly retry
- Wire up as PseudonymizationServiceType.Mii in Startup
@trobanga trobanga force-pushed the mii-pseudonymization-interface branch from db0cf11 to 595052e Compare March 17, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant