Skip to content

[Feature] Add Microsoft FHIR Server Integration #937

@tvandalovsky

Description

@tvandalovsky

Related to an existing integration?

No

Overview

We at HLS have been really liking Aspire and have built some code for hosting an Azure FHIR server container through Aspire. I would like to contribute this code to the CommunityToolkit to make testing an Azure FHIR Server locally easier.

Usage example

Something interesting about the FHIR server container is that it requires an MsSql container to run alongside it.

A possilble solution for this could be a "bring your own" sql server integration

var builder = DistributedApplication.CreateBuilder(args);

var fhir = builder.AddFhirServer("fhir")
    .WithPort(8080)
    .WithSqlServer(sqlServer);

builder
    .AddProject<Projects.Example>("example")
    .WithReference(fhir)
    .WaitFor(fhir)

or have the FhirServer extension be responsible for managing the sql server container itself under the hood.

var builder = DistributedApplication.CreateBuilder(args);

var fhir = builder.AddFhirServer("fhir")
    .WithPort(8080);

builder
    .AddProject<Projects.Example>("example")
    .WithReference(fhir)
    .WaitFor(fhir)

Links and References

HL7 FHIR Doc
Azure FHIR Server Github
Microsoft FHIR Server Doc

Help us help you

Any help would be appreciated but I can take a crack at putting out the first PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions