1. Packages
  2. Azure Native
  3. API Docs
  4. healthcareapis
  5. IotConnectorFhirDestination
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.33.0 published on Friday, Mar 22, 2024 by Pulumi

azure-native.healthcareapis.IotConnectorFhirDestination

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.33.0 published on Friday, Mar 22, 2024 by Pulumi

    IoT Connector FHIR destination definition. Azure REST API version: 2023-02-28. Prior API version in Azure Native 1.x: 2022-05-15.

    Other available API versions: 2023-09-06, 2023-11-01, 2023-12-01, 2024-03-01, 2024-03-31.

    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 = 
                {
                    { "template", new[]
                    {
                        
                        {
                            { "template", 
                            {
                                { "codes", new[]
                                {
                                    
                                    {
                                        { "code", "8867-4" },
                                        { "display", "Heart rate" },
                                        { "system", "http://loinc.org" },
                                    },
                                } },
                                { "periodInterval", 60 },
                                { "typeName", "heartrate" },
                                { "value", 
                                {
                                    { "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 = "Create",
            WorkspaceName = "workspace1",
        });
    
    });
    
    package main
    
    import (
    	"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{
    					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("Create"),
    			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 pulumi
    import pulumi_azure_native as azure_native
    
    iot_connector_fhir_destination = azure_native.healthcareapis.IotConnectorFhirDestination("iotConnectorFhirDestination",
        fhir_destination_name="dest1",
        fhir_mapping=azure_native.healthcareapis.IotMappingPropertiesArgs(
            content={
                "template": [{
                    "template": {
                        "codes": [{
                            "code": "8867-4",
                            "display": "Heart rate",
                            "system": "http://loinc.org",
                        }],
                        "periodInterval": 60,
                        "typeName": "heartrate",
                        "value": {
                            "defaultPeriod": 5000,
                            "unit": "count/min",
                            "valueName": "hr",
                            "valueType": "SampledData",
                        },
                    },
                    "templateType": "CodeValueFhir",
                }],
                "templateType": "CollectionFhirTemplate",
            },
        ),
        fhir_service_resource_id="subscriptions/11111111-2222-3333-4444-555566667777/resourceGroups/myrg/providers/Microsoft.HealthcareApis/workspaces/myworkspace/fhirservices/myfhirservice",
        iot_connector_name="blue",
        location="westus",
        resource_group_name="testRG",
        resource_identity_resolution_type="Create",
        workspace_name="workspace1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const iotConnectorFhirDestination = new azure_native.healthcareapis.IotConnectorFhirDestination("iotConnectorFhirDestination", {
        fhirDestinationName: "dest1",
        fhirMapping: {
            content: {
                template: [{
                    template: {
                        codes: [{
                            code: "8867-4",
                            display: "Heart rate",
                            system: "http://loinc.org",
                        }],
                        periodInterval: 60,
                        typeName: "heartrate",
                        value: {
                            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: "Create",
        workspaceName: "workspace1",
    });
    
    resources:
      iotConnectorFhirDestination:
        type: azure-native:healthcareapis:IotConnectorFhirDestination
        properties:
          fhirDestinationName: dest1
          fhirMapping:
            content:
              template:
                - template:
                    codes:
                      - code: 8867-4
                        display: Heart rate
                        system: http://loinc.org
                    periodInterval: 60
                    typeName: heartrate
                    value:
                      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: Create
          workspaceName: workspace1
    

    Create IotConnectorFhirDestination Resource

    new IotConnectorFhirDestination(name: string, args: IotConnectorFhirDestinationArgs, opts?: CustomResourceOptions);
    @overload
    def IotConnectorFhirDestination(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    fhir_destination_name: Optional[str] = None,
                                    fhir_mapping: Optional[IotMappingPropertiesArgs] = None,
                                    fhir_service_resource_id: Optional[str] = None,
                                    iot_connector_name: Optional[str] = None,
                                    location: Optional[str] = None,
                                    resource_group_name: Optional[str] = None,
                                    resource_identity_resolution_type: Optional[Union[str, IotIdentityResolutionType]] = None,
                                    workspace_name: Optional[str] = None)
    @overload
    def IotConnectorFhirDestination(resource_name: str,
                                    args: IotConnectorFhirDestinationArgs,
                                    opts: Optional[ResourceOptions] = None)
    func NewIotConnectorFhirDestination(ctx *Context, name string, args IotConnectorFhirDestinationArgs, opts ...ResourceOption) (*IotConnectorFhirDestination, error)
    public IotConnectorFhirDestination(string name, IotConnectorFhirDestinationArgs args, CustomResourceOptions? opts = null)
    public IotConnectorFhirDestination(String name, IotConnectorFhirDestinationArgs args)
    public IotConnectorFhirDestination(String name, IotConnectorFhirDestinationArgs args, CustomResourceOptions options)
    
    type: azure-native:healthcareapis:IotConnectorFhirDestination
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args IotConnectorFhirDestinationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args IotConnectorFhirDestinationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args IotConnectorFhirDestinationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IotConnectorFhirDestinationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IotConnectorFhirDestinationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    IotConnectorFhirDestination Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The IotConnectorFhirDestination resource accepts the following input properties:

    FhirMapping Pulumi.AzureNative.HealthcareApis.Inputs.IotMappingProperties
    FHIR Mappings
    FhirServiceResourceId string
    Fully qualified resource id of the FHIR service to connect to.
    IotConnectorName string
    The name of IoT Connector resource.
    ResourceGroupName string
    The name of the resource group that contains the service instance.
    ResourceIdentityResolutionType string | Pulumi.AzureNative.HealthcareApis.IotIdentityResolutionType
    Determines how resource identity is resolved on the destination.
    WorkspaceName string
    The name of workspace resource.
    FhirDestinationName string
    The name of IoT Connector FHIR destination resource.
    Location string
    The resource location.
    FhirMapping IotMappingPropertiesArgs
    FHIR Mappings
    FhirServiceResourceId string
    Fully qualified resource id of the FHIR service to connect to.
    IotConnectorName string
    The name of IoT Connector resource.
    ResourceGroupName string
    The name of the resource group that contains the service instance.
    ResourceIdentityResolutionType string | IotIdentityResolutionType
    Determines how resource identity is resolved on the destination.
    WorkspaceName string
    The name of workspace resource.
    FhirDestinationName string
    The name of IoT Connector FHIR destination resource.
    Location string
    The resource location.
    fhirMapping IotMappingProperties
    FHIR Mappings
    fhirServiceResourceId String
    Fully qualified resource id of the FHIR service to connect to.
    iotConnectorName String
    The name of IoT Connector resource.
    resourceGroupName String
    The name of the resource group that contains the service instance.
    resourceIdentityResolutionType String | IotIdentityResolutionType
    Determines how resource identity is resolved on the destination.
    workspaceName String
    The name of workspace resource.
    fhirDestinationName String
    The name of IoT Connector FHIR destination resource.
    location String
    The resource location.
    fhirMapping IotMappingProperties
    FHIR Mappings
    fhirServiceResourceId string
    Fully qualified resource id of the FHIR service to connect to.
    iotConnectorName string
    The name of IoT Connector resource.
    resourceGroupName string
    The name of the resource group that contains the service instance.
    resourceIdentityResolutionType string | IotIdentityResolutionType
    Determines how resource identity is resolved on the destination.
    workspaceName string
    The name of workspace resource.
    fhirDestinationName string
    The name of IoT Connector FHIR destination resource.
    location string
    The resource location.
    fhir_mapping IotMappingPropertiesArgs
    FHIR Mappings
    fhir_service_resource_id str
    Fully qualified resource id of the FHIR service to connect to.
    iot_connector_name str
    The name of IoT Connector resource.
    resource_group_name str
    The name of the resource group that contains the service instance.
    resource_identity_resolution_type str | IotIdentityResolutionType
    Determines how resource identity is resolved on the destination.
    workspace_name str
    The name of workspace resource.
    fhir_destination_name str
    The name of IoT Connector FHIR destination resource.
    location str
    The resource location.
    fhirMapping Property Map
    FHIR Mappings
    fhirServiceResourceId String
    Fully qualified resource id of the FHIR service to connect to.
    iotConnectorName String
    The name of IoT Connector resource.
    resourceGroupName String
    The name of the resource group that contains the service instance.
    resourceIdentityResolutionType String | "Create" | "Lookup"
    Determines how resource identity is resolved on the destination.
    workspaceName String
    The name of workspace resource.
    fhirDestinationName String
    The name of IoT Connector FHIR destination resource.
    location String
    The resource location.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the IotConnectorFhirDestination resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The resource name.
    SystemData Pulumi.AzureNative.HealthcareApis.Outputs.SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    Type string
    The resource type.
    Etag string
    An etag associated with the resource, used for optimistic concurrency when editing it.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The resource name.
    SystemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    Type string
    The resource type.
    Etag string
    An etag associated with the resource, used for optimistic concurrency when editing it.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The resource name.
    systemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    type String
    The resource type.
    etag String
    An etag associated with the resource, used for optimistic concurrency when editing it.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The resource name.
    systemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    type string
    The resource type.
    etag string
    An etag associated with the resource, used for optimistic concurrency when editing it.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The resource name.
    system_data SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    type str
    The resource type.
    etag str
    An etag associated with the resource, used for optimistic concurrency when editing it.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The resource name.
    systemData Property Map
    Metadata pertaining to creation and last modification of the resource.
    type String
    The resource type.
    etag String
    An etag associated with the resource, used for optimistic concurrency when editing it.

    Supporting Types

    IotIdentityResolutionType, IotIdentityResolutionTypeArgs

    Create
    Create
    Lookup
    Lookup
    IotIdentityResolutionTypeCreate
    Create
    IotIdentityResolutionTypeLookup
    Lookup
    Create
    Create
    Lookup
    Lookup
    Create
    Create
    Lookup
    Lookup
    CREATE
    Create
    LOOKUP
    Lookup
    "Create"
    Create
    "Lookup"
    Lookup

    IotMappingProperties, IotMappingPropertiesArgs

    Content object
    The mapping.
    Content interface{}
    The mapping.
    content Object
    The mapping.
    content any
    The mapping.
    content Any
    The mapping.
    content Any
    The mapping.

    IotMappingPropertiesResponse, IotMappingPropertiesResponseArgs

    Content object
    The mapping.
    Content interface{}
    The mapping.
    content Object
    The mapping.
    content any
    The mapping.
    content Any
    The mapping.
    content Any
    The mapping.

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    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} 
    

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.33.0 published on Friday, Mar 22, 2024 by Pulumi