IotConnectorFhirDestinationArgs

data class IotConnectorFhirDestinationArgs(val fhirDestinationName: Output<String>? = null, val fhirMapping: Output<IotMappingPropertiesArgs>? = null, val fhirServiceResourceId: Output<String>? = null, val iotConnectorName: Output<String>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val resourceIdentityResolutionType: Output<Either<String, IotIdentityResolutionType>>? = null, val workspaceName: Output<String>? = null) : ConvertibleToJava<IotConnectorFhirDestinationArgs>

IoT Connector FHIR destination definition. Uses Azure REST API version 2024-03-31. In version 2.x of the Azure Native provider, it used API version 2023-02-28. Other available API versions: 2022-10-01-preview, 2022-12-01, 2023-02-28, 2023-09-06, 2023-11-01, 2023-12-01, 2024-03-01, 2025-03-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native healthcareapis [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

Create or update an Iot Connector FHIR destination

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var iotConnectorFhirDestination = new AzureNative.HealthcareApis.IotConnectorFhirDestination("iotConnectorFhirDestination", new()
{
FhirDestinationName = "dest1",
FhirMapping = new AzureNative.HealthcareApis.Inputs.IotMappingPropertiesArgs
{
Content = new Dictionary<string, object?>
{
["template"] = new[]
{
new Dictionary<string, object?>
{
["template"] = new Dictionary<string, object?>
{
["codes"] = new[]
{
new Dictionary<string, object?>
{
["code"] = "8867-4",
["display"] = "Heart rate",
["system"] = "http://loinc.org",
},
},
["periodInterval"] = 60,
["typeName"] = "heartrate",
["value"] = new Dictionary<string, object?>
{
["defaultPeriod"] = 5000,
["unit"] = "count/min",
["valueName"] = "hr",
["valueType"] = "SampledData",
},
},
["templateType"] = "CodeValueFhir",
},
},
["templateType"] = "CollectionFhirTemplate",
},
},
FhirServiceResourceId = "subscriptions/11111111-2222-3333-4444-555566667777/resourceGroups/myrg/providers/Microsoft.HealthcareApis/workspaces/myworkspace/fhirservices/myfhirservice",
IotConnectorName = "blue",
Location = "westus",
ResourceGroupName = "testRG",
ResourceIdentityResolutionType = AzureNative.HealthcareApis.IotIdentityResolutionType.Create,
WorkspaceName = "workspace1",
});
});
package main
import (
healthcareapis "github.com/pulumi/pulumi-azure-native-sdk/healthcareapis/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := healthcareapis.NewIotConnectorFhirDestination(ctx, "iotConnectorFhirDestination", &healthcareapis.IotConnectorFhirDestinationArgs{
FhirDestinationName: pulumi.String("dest1"),
FhirMapping: &healthcareapis.IotMappingPropertiesArgs{
Content: pulumi.Any(map[string]interface{}{
"template": []map[string]interface{}{
map[string]interface{}{
"template": map[string]interface{}{
"codes": []map[string]interface{}{
map[string]interface{}{
"code": "8867-4",
"display": "Heart rate",
"system": "http://loinc.org",
},
},
"periodInterval": 60,
"typeName": "heartrate",
"value": map[string]interface{}{
"defaultPeriod": 5000,
"unit": "count/min",
"valueName": "hr",
"valueType": "SampledData",
},
},
"templateType": "CodeValueFhir",
},
},
"templateType": "CollectionFhirTemplate",
}),
},
FhirServiceResourceId: pulumi.String("subscriptions/11111111-2222-3333-4444-555566667777/resourceGroups/myrg/providers/Microsoft.HealthcareApis/workspaces/myworkspace/fhirservices/myfhirservice"),
IotConnectorName: pulumi.String("blue"),
Location: pulumi.String("westus"),
ResourceGroupName: pulumi.String("testRG"),
ResourceIdentityResolutionType: pulumi.String(healthcareapis.IotIdentityResolutionTypeCreate),
WorkspaceName: pulumi.String("workspace1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.healthcareapis.IotConnectorFhirDestination;
import com.pulumi.azurenative.healthcareapis.IotConnectorFhirDestinationArgs;
import com.pulumi.azurenative.healthcareapis.inputs.IotMappingPropertiesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var iotConnectorFhirDestination = new IotConnectorFhirDestination("iotConnectorFhirDestination", IotConnectorFhirDestinationArgs.builder()
.fhirDestinationName("dest1")
.fhirMapping(IotMappingPropertiesArgs.builder()
.content(Map.ofEntries(
Map.entry("template", Map.ofEntries(
Map.entry("template", Map.ofEntries(
Map.entry("codes", Map.ofEntries(
Map.entry("code", "8867-4"),
Map.entry("display", "Heart rate"),
Map.entry("system", "http://loinc.org")
)),
Map.entry("periodInterval", 60),
Map.entry("typeName", "heartrate"),
Map.entry("value", Map.ofEntries(
Map.entry("defaultPeriod", 5000),
Map.entry("unit", "count/min"),
Map.entry("valueName", "hr"),
Map.entry("valueType", "SampledData")
))
)),
Map.entry("templateType", "CodeValueFhir")
)),
Map.entry("templateType", "CollectionFhirTemplate")
))
.build())
.fhirServiceResourceId("subscriptions/11111111-2222-3333-4444-555566667777/resourceGroups/myrg/providers/Microsoft.HealthcareApis/workspaces/myworkspace/fhirservices/myfhirservice")
.iotConnectorName("blue")
.location("westus")
.resourceGroupName("testRG")
.resourceIdentityResolutionType("Create")
.workspaceName("workspace1")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:healthcareapis:IotConnectorFhirDestination dest1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}/fhirdestinations/{fhirDestinationName}

Constructors

Link copied to clipboard
constructor(fhirDestinationName: Output<String>? = null, fhirMapping: Output<IotMappingPropertiesArgs>? = null, fhirServiceResourceId: Output<String>? = null, iotConnectorName: Output<String>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, resourceIdentityResolutionType: Output<Either<String, IotIdentityResolutionType>>? = null, workspaceName: Output<String>? = null)

Properties

Link copied to clipboard
val fhirDestinationName: Output<String>? = null

The name of IoT Connector FHIR destination resource.

Link copied to clipboard

FHIR Mappings

Link copied to clipboard
val fhirServiceResourceId: Output<String>? = null

Fully qualified resource id of the FHIR service to connect to.

Link copied to clipboard
val iotConnectorName: Output<String>? = null

The name of IoT Connector resource.

Link copied to clipboard
val location: Output<String>? = null

The resource location.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group that contains the service instance.

Link copied to clipboard

Determines how resource identity is resolved on the destination.

Link copied to clipboard
val workspaceName: Output<String>? = null

The name of workspace resource.

Functions

Link copied to clipboard
open override fun toJava(): IotConnectorFhirDestinationArgs