1. Packages
  2. Azure Native v1
  3. API Docs
  4. healthcareapis
  5. IotConnectorFhirDestination
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.healthcareapis.IotConnectorFhirDestination

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    IoT Connector FHIR destination definition. API Version: 2022-05-15.

    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 (
    	healthcareapis "github.com/pulumi/pulumi-azure-native-sdk/healthcareapis"
    	"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 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(Map.of("content", Map.ofEntries(
                    Map.entry("template", IotMappingPropertiesArgs.builder()
                        .template(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
                        .templateType("CodeValueFhir")
                        .build()),
                    Map.entry("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")
                .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

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new IotConnectorFhirDestination(name: string, args: IotConnectorFhirDestinationArgs, opts?: CustomResourceOptions);
    @overload
    def IotConnectorFhirDestination(resource_name: str,
                                    args: IotConnectorFhirDestinationArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def IotConnectorFhirDestination(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    fhir_mapping: Optional[IotMappingPropertiesArgs] = None,
                                    fhir_service_resource_id: Optional[str] = None,
                                    iot_connector_name: Optional[str] = None,
                                    resource_group_name: Optional[str] = None,
                                    resource_identity_resolution_type: Optional[Union[str, IotIdentityResolutionType]] = None,
                                    workspace_name: Optional[str] = None,
                                    fhir_destination_name: Optional[str] = None,
                                    location: Optional[str] = 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.
    
    

    Parameters

    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.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var iotConnectorFhirDestinationResource = new AzureNative.Healthcareapis.IotConnectorFhirDestination("iotConnectorFhirDestinationResource", new()
    {
        FhirMapping = 
        {
            { "content", "any" },
        },
        FhirServiceResourceId = "string",
        IotConnectorName = "string",
        ResourceGroupName = "string",
        ResourceIdentityResolutionType = "string",
        WorkspaceName = "string",
        FhirDestinationName = "string",
        Location = "string",
    });
    
    example, err := healthcareapis.NewIotConnectorFhirDestination(ctx, "iotConnectorFhirDestinationResource", &healthcareapis.IotConnectorFhirDestinationArgs{
    	FhirMapping: map[string]interface{}{
    		"content": "any",
    	},
    	FhirServiceResourceId:          "string",
    	IotConnectorName:               "string",
    	ResourceGroupName:              "string",
    	ResourceIdentityResolutionType: "string",
    	WorkspaceName:                  "string",
    	FhirDestinationName:            "string",
    	Location:                       "string",
    })
    
    var iotConnectorFhirDestinationResource = new IotConnectorFhirDestination("iotConnectorFhirDestinationResource", IotConnectorFhirDestinationArgs.builder()
        .fhirMapping(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .fhirServiceResourceId("string")
        .iotConnectorName("string")
        .resourceGroupName("string")
        .resourceIdentityResolutionType("string")
        .workspaceName("string")
        .fhirDestinationName("string")
        .location("string")
        .build());
    
    iot_connector_fhir_destination_resource = azure_native.healthcareapis.IotConnectorFhirDestination("iotConnectorFhirDestinationResource",
        fhir_mapping={
            content: any,
        },
        fhir_service_resource_id=string,
        iot_connector_name=string,
        resource_group_name=string,
        resource_identity_resolution_type=string,
        workspace_name=string,
        fhir_destination_name=string,
        location=string)
    
    const iotConnectorFhirDestinationResource = new azure_native.healthcareapis.IotConnectorFhirDestination("iotConnectorFhirDestinationResource", {
        fhirMapping: {
            content: "any",
        },
        fhirServiceResourceId: "string",
        iotConnectorName: "string",
        resourceGroupName: "string",
        resourceIdentityResolutionType: "string",
        workspaceName: "string",
        fhirDestinationName: "string",
        location: "string",
    });
    
    type: azure-native:healthcareapis:IotConnectorFhirDestination
    properties:
        fhirDestinationName: string
        fhirMapping:
            content: any
        fhirServiceResourceId: string
        iotConnectorName: string
        location: string
        resourceGroupName: string
        resourceIdentityResolutionType: string
        workspaceName: string
    

    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/subid/resourceGroups/testRG/providers/Microsoft.HealthcareApis/workspaces/workspace1/iotconnectors/blue/fhirdestinations/dest1 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi