C# 15 union types applied to a prescribing model: a dispensing outcome that is exactly one of three cases, handlers the compiler keeps exhaustive, and fifteen experiments on what unions compile to, how they behave when empty, what they cost, how they serialise, and how they work with .NET 10 and C# 14 code.
Read more →Tag: C#
.NET 11 for Architects: What Changes a Design, and What Does Not
.NET 11 sorted by consequence: the two-year support window, the higher minimum CPU, behaviour that differs from .NET 10 on the same machine, Runtime Async in preview, and the library additions that let you delete a dependency. Each point backed by something that was run.
Read more →Multi-Region Active-Active on Azure for a .NET API: What Happens to the Write You Acknowledged
Routing two Azure regions is configuration. Deciding what happens to two writes to one record is design. Four write strategies compared on one simulated outage, what Cosmos DB does with a conflict, idempotent retries across regions, readiness probes for Front Door, and the global tier in Terraform.
Read more →Azure OpenAI Structured Outputs for Clinical Coding: Free Text to FHIR Condition and Observation, with a Human Review Step
A model proposes coded findings from a clinical note inside a strict JSON Schema whose enums are an approved code subset; code checks every proposal against the note; a clinician accepts or rejects; and only accepted items become FHIR Condition, Observation and Provenance resources. C# on .NET 10 and Python.
Read more →FHIR Validation in CI: Profiles, Terminology and IPS Checks That Fail the Build
A build gate for FHIR conformance: the HL7 validator behind a Python wrapper and the Firely .NET SDK check resources against the IPS profiles in GitHub Actions, with deliberately broken test data that proves the gate refuses what it should, and a clear account of what it cannot see without a terminology server.
Read more →FHIR Subscriptions and Events on Azure: Keeping Downstream Systems in Step
Azure Health Data Services announces FHIR changes through Event Grid, at least once and in no guaranteed order. An Azure Function on .NET 10 that keeps a downstream projection correct through duplicates, reordering, corrections and deletions with one version-guarded write.
Read more →