hsdp.CdrPractitioner
Explore with Pulumi AI
Provides a resource for creating Practitioner FHIR resources in CDR. This resource provides limited management of the Practioner resource.
Example Usage
The following example creates a FHIR Organisation and a Practitioner associated with it.
import * as pulumi from "@pulumi/pulumi";
import * as hsdp from "@pulumi/hsdp";
const sandbox = hsdp.getCdrFhirStore({
baseUrl: "https://cdr-stu3-sandbox.hsdp.io",
fhirOrgId: _var.root_org_id,
});
const hospital = new hsdp.CdrOrg("hospital", {
fhirStore: sandbox.then(sandbox => sandbox.endpoint),
orgId: _var.sub_org_id,
version: "r4",
partOf: _var.root_org_id,
purgeDelete: false,
});
const practitioner = new hsdp.CdrPractitioner("practitioner", {
fhirStore: hospital.fhirStore,
version: "r4",
identifiers: [{
system: "https://iam.hsdp.io",
value: "xx-xx",
use: "actual",
}],
names: [{
text: "Ron Swanson",
givens: ["Ron"],
family: "Swanson",
}],
});
import pulumi
import pulumi_hsdp as hsdp
sandbox = hsdp.get_cdr_fhir_store(base_url="https://cdr-stu3-sandbox.hsdp.io",
fhir_org_id=var["root_org_id"])
hospital = hsdp.CdrOrg("hospital",
fhir_store=sandbox.endpoint,
org_id=var["sub_org_id"],
version="r4",
part_of=var["root_org_id"],
purge_delete=False)
practitioner = hsdp.CdrPractitioner("practitioner",
fhir_store=hospital.fhir_store,
version="r4",
identifiers=[{
"system": "https://iam.hsdp.io",
"value": "xx-xx",
"use": "actual",
}],
names=[{
"text": "Ron Swanson",
"givens": ["Ron"],
"family": "Swanson",
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/hsdp/hsdp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
sandbox, err := hsdp.GetCdrFhirStore(ctx, &hsdp.GetCdrFhirStoreArgs{
BaseUrl: "https://cdr-stu3-sandbox.hsdp.io",
FhirOrgId: _var.Root_org_id,
}, nil)
if err != nil {
return err
}
hospital, err := hsdp.NewCdrOrg(ctx, "hospital", &hsdp.CdrOrgArgs{
FhirStore: pulumi.String(sandbox.Endpoint),
OrgId: pulumi.Any(_var.Sub_org_id),
Version: pulumi.String("r4"),
PartOf: pulumi.Any(_var.Root_org_id),
PurgeDelete: pulumi.Bool(false),
})
if err != nil {
return err
}
_, err = hsdp.NewCdrPractitioner(ctx, "practitioner", &hsdp.CdrPractitionerArgs{
FhirStore: hospital.FhirStore,
Version: pulumi.String("r4"),
Identifiers: hsdp.CdrPractitionerIdentifierArray{
&hsdp.CdrPractitionerIdentifierArgs{
System: pulumi.String("https://iam.hsdp.io"),
Value: pulumi.String("xx-xx"),
Use: pulumi.String("actual"),
},
},
Names: hsdp.CdrPractitionerNameArray{
&hsdp.CdrPractitionerNameArgs{
Text: pulumi.String("Ron Swanson"),
Givens: pulumi.StringArray{
pulumi.String("Ron"),
},
Family: pulumi.String("Swanson"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Hsdp = Pulumi.Hsdp;
return await Deployment.RunAsync(() =>
{
var sandbox = Hsdp.GetCdrFhirStore.Invoke(new()
{
BaseUrl = "https://cdr-stu3-sandbox.hsdp.io",
FhirOrgId = @var.Root_org_id,
});
var hospital = new Hsdp.CdrOrg("hospital", new()
{
FhirStore = sandbox.Apply(getCdrFhirStoreResult => getCdrFhirStoreResult.Endpoint),
OrgId = @var.Sub_org_id,
Version = "r4",
PartOf = @var.Root_org_id,
PurgeDelete = false,
});
var practitioner = new Hsdp.CdrPractitioner("practitioner", new()
{
FhirStore = hospital.FhirStore,
Version = "r4",
Identifiers = new[]
{
new Hsdp.Inputs.CdrPractitionerIdentifierArgs
{
System = "https://iam.hsdp.io",
Value = "xx-xx",
Use = "actual",
},
},
Names = new[]
{
new Hsdp.Inputs.CdrPractitionerNameArgs
{
Text = "Ron Swanson",
Givens = new[]
{
"Ron",
},
Family = "Swanson",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.hsdp.HsdpFunctions;
import com.pulumi.hsdp.inputs.GetCdrFhirStoreArgs;
import com.pulumi.hsdp.CdrOrg;
import com.pulumi.hsdp.CdrOrgArgs;
import com.pulumi.hsdp.CdrPractitioner;
import com.pulumi.hsdp.CdrPractitionerArgs;
import com.pulumi.hsdp.inputs.CdrPractitionerIdentifierArgs;
import com.pulumi.hsdp.inputs.CdrPractitionerNameArgs;
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) {
final var sandbox = HsdpFunctions.getCdrFhirStore(GetCdrFhirStoreArgs.builder()
.baseUrl("https://cdr-stu3-sandbox.hsdp.io")
.fhirOrgId(var_.root_org_id())
.build());
var hospital = new CdrOrg("hospital", CdrOrgArgs.builder()
.fhirStore(sandbox.applyValue(getCdrFhirStoreResult -> getCdrFhirStoreResult.endpoint()))
.orgId(var_.sub_org_id())
.version("r4")
.partOf(var_.root_org_id())
.purgeDelete(false)
.build());
var practitioner = new CdrPractitioner("practitioner", CdrPractitionerArgs.builder()
.fhirStore(hospital.fhirStore())
.version("r4")
.identifiers(CdrPractitionerIdentifierArgs.builder()
.system("https://iam.hsdp.io")
.value("xx-xx")
.use("actual")
.build())
.names(CdrPractitionerNameArgs.builder()
.text("Ron Swanson")
.givens("Ron")
.family("Swanson")
.build())
.build());
}
}
resources:
hospital:
type: hsdp:CdrOrg
properties:
fhirStore: ${sandbox.endpoint}
orgId: ${var.sub_org_id}
# Set up this org to use FHIR R4
version: r4
partOf: ${var.root_org_id}
purgeDelete: false
practitioner:
type: hsdp:CdrPractitioner
properties:
fhirStore: ${hospital.fhirStore}
version: r4
identifiers:
- system: https://iam.hsdp.io
value: xx-xx
use: actual
names:
- text: Ron Swanson
givens:
- Ron
family: Swanson
variables:
sandbox:
fn::invoke:
function: hsdp:getCdrFhirStore
arguments:
baseUrl: https://cdr-stu3-sandbox.hsdp.io
fhirOrgId: ${var.root_org_id}
Create CdrPractitioner Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CdrPractitioner(name: string, args: CdrPractitionerArgs, opts?: CustomResourceOptions);
@overload
def CdrPractitioner(resource_name: str,
args: CdrPractitionerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CdrPractitioner(resource_name: str,
opts: Optional[ResourceOptions] = None,
fhir_store: Optional[str] = None,
identifiers: Optional[Sequence[CdrPractitionerIdentifierArgs]] = None,
names: Optional[Sequence[CdrPractitionerNameArgs]] = None,
cdr_practitioner_id: Optional[str] = None,
soft_delete: Optional[bool] = None,
version: Optional[str] = None)
func NewCdrPractitioner(ctx *Context, name string, args CdrPractitionerArgs, opts ...ResourceOption) (*CdrPractitioner, error)
public CdrPractitioner(string name, CdrPractitionerArgs args, CustomResourceOptions? opts = null)
public CdrPractitioner(String name, CdrPractitionerArgs args)
public CdrPractitioner(String name, CdrPractitionerArgs args, CustomResourceOptions options)
type: hsdp:CdrPractitioner
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 CdrPractitionerArgs
- 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 CdrPractitionerArgs
- 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 CdrPractitionerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CdrPractitionerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CdrPractitionerArgs
- 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 cdrPractitionerResource = new Hsdp.CdrPractitioner("cdrPractitionerResource", new()
{
FhirStore = "string",
Identifiers = new[]
{
new Hsdp.Inputs.CdrPractitionerIdentifierArgs
{
System = "string",
Value = "string",
Use = "string",
},
},
Names = new[]
{
new Hsdp.Inputs.CdrPractitionerNameArgs
{
Family = "string",
Givens = new[]
{
"string",
},
Text = "string",
},
},
CdrPractitionerId = "string",
SoftDelete = false,
Version = "string",
});
example, err := hsdp.NewCdrPractitioner(ctx, "cdrPractitionerResource", &hsdp.CdrPractitionerArgs{
FhirStore: pulumi.String("string"),
Identifiers: hsdp.CdrPractitionerIdentifierArray{
&hsdp.CdrPractitionerIdentifierArgs{
System: pulumi.String("string"),
Value: pulumi.String("string"),
Use: pulumi.String("string"),
},
},
Names: hsdp.CdrPractitionerNameArray{
&hsdp.CdrPractitionerNameArgs{
Family: pulumi.String("string"),
Givens: pulumi.StringArray{
pulumi.String("string"),
},
Text: pulumi.String("string"),
},
},
CdrPractitionerId: pulumi.String("string"),
SoftDelete: pulumi.Bool(false),
Version: pulumi.String("string"),
})
var cdrPractitionerResource = new CdrPractitioner("cdrPractitionerResource", CdrPractitionerArgs.builder()
.fhirStore("string")
.identifiers(CdrPractitionerIdentifierArgs.builder()
.system("string")
.value("string")
.use("string")
.build())
.names(CdrPractitionerNameArgs.builder()
.family("string")
.givens("string")
.text("string")
.build())
.cdrPractitionerId("string")
.softDelete(false)
.version("string")
.build());
cdr_practitioner_resource = hsdp.CdrPractitioner("cdrPractitionerResource",
fhir_store="string",
identifiers=[{
"system": "string",
"value": "string",
"use": "string",
}],
names=[{
"family": "string",
"givens": ["string"],
"text": "string",
}],
cdr_practitioner_id="string",
soft_delete=False,
version="string")
const cdrPractitionerResource = new hsdp.CdrPractitioner("cdrPractitionerResource", {
fhirStore: "string",
identifiers: [{
system: "string",
value: "string",
use: "string",
}],
names: [{
family: "string",
givens: ["string"],
text: "string",
}],
cdrPractitionerId: "string",
softDelete: false,
version: "string",
});
type: hsdp:CdrPractitioner
properties:
cdrPractitionerId: string
fhirStore: string
identifiers:
- system: string
use: string
value: string
names:
- family: string
givens:
- string
text: string
softDelete: false
version: string
CdrPractitioner Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CdrPractitioner resource accepts the following input properties:
- Fhir
Store string - Identifiers
List<Cdr
Practitioner Identifier> - The FHIR identifier block
- Names
List<Cdr
Practitioner Name> - The FHIR name block
- Cdr
Practitioner stringId - The unique GUID of the practitioner in the CDR instance
- Soft
Delete bool - Version string
- The FHIR version to use. Options [
stu3
|r4
]. Default isstu3
- Fhir
Store string - Identifiers
[]Cdr
Practitioner Identifier Args - The FHIR identifier block
- Names
[]Cdr
Practitioner Name Args - The FHIR name block
- Cdr
Practitioner stringId - The unique GUID of the practitioner in the CDR instance
- Soft
Delete bool - Version string
- The FHIR version to use. Options [
stu3
|r4
]. Default isstu3
- fhir
Store String - identifiers
List<Cdr
Practitioner Identifier> - The FHIR identifier block
- names
List<Cdr
Practitioner Name> - The FHIR name block
- cdr
Practitioner StringId - The unique GUID of the practitioner in the CDR instance
- soft
Delete Boolean - version String
- The FHIR version to use. Options [
stu3
|r4
]. Default isstu3
- fhir
Store string - identifiers
Cdr
Practitioner Identifier[] - The FHIR identifier block
- names
Cdr
Practitioner Name[] - The FHIR name block
- cdr
Practitioner stringId - The unique GUID of the practitioner in the CDR instance
- soft
Delete boolean - version string
- The FHIR version to use. Options [
stu3
|r4
]. Default isstu3
- fhir_
store str - identifiers
Sequence[Cdr
Practitioner Identifier Args] - The FHIR identifier block
- names
Sequence[Cdr
Practitioner Name Args] - The FHIR name block
- cdr_
practitioner_ strid - The unique GUID of the practitioner in the CDR instance
- soft_
delete bool - version str
- The FHIR version to use. Options [
stu3
|r4
]. Default isstu3
- fhir
Store String - identifiers List<Property Map>
- The FHIR identifier block
- names List<Property Map>
- The FHIR name block
- cdr
Practitioner StringId - The unique GUID of the practitioner in the CDR instance
- soft
Delete Boolean - version String
- The FHIR version to use. Options [
stu3
|r4
]. Default isstu3
Outputs
All input properties are implicitly available as output properties. Additionally, the CdrPractitioner resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - Last update time
- Version
Id string - The version of the resource
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - Last update time
- Version
Id string - The version of the resource
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - Last update time
- version
Id String - The version of the resource
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated string - Last update time
- version
Id string - The version of the resource
- id str
- The provider-assigned unique ID for this managed resource.
- last_
updated str - Last update time
- version_
id str - The version of the resource
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - Last update time
- version
Id String - The version of the resource
Look up Existing CdrPractitioner Resource
Get an existing CdrPractitioner resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CdrPractitionerState, opts?: CustomResourceOptions): CdrPractitioner
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cdr_practitioner_id: Optional[str] = None,
fhir_store: Optional[str] = None,
identifiers: Optional[Sequence[CdrPractitionerIdentifierArgs]] = None,
last_updated: Optional[str] = None,
names: Optional[Sequence[CdrPractitionerNameArgs]] = None,
soft_delete: Optional[bool] = None,
version: Optional[str] = None,
version_id: Optional[str] = None) -> CdrPractitioner
func GetCdrPractitioner(ctx *Context, name string, id IDInput, state *CdrPractitionerState, opts ...ResourceOption) (*CdrPractitioner, error)
public static CdrPractitioner Get(string name, Input<string> id, CdrPractitionerState? state, CustomResourceOptions? opts = null)
public static CdrPractitioner get(String name, Output<String> id, CdrPractitionerState state, CustomResourceOptions options)
resources: _: type: hsdp:CdrPractitioner get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cdr
Practitioner stringId - The unique GUID of the practitioner in the CDR instance
- Fhir
Store string - Identifiers
List<Cdr
Practitioner Identifier> - The FHIR identifier block
- Last
Updated string - Last update time
- Names
List<Cdr
Practitioner Name> - The FHIR name block
- Soft
Delete bool - Version string
- The FHIR version to use. Options [
stu3
|r4
]. Default isstu3
- Version
Id string - The version of the resource
- Cdr
Practitioner stringId - The unique GUID of the practitioner in the CDR instance
- Fhir
Store string - Identifiers
[]Cdr
Practitioner Identifier Args - The FHIR identifier block
- Last
Updated string - Last update time
- Names
[]Cdr
Practitioner Name Args - The FHIR name block
- Soft
Delete bool - Version string
- The FHIR version to use. Options [
stu3
|r4
]. Default isstu3
- Version
Id string - The version of the resource
- cdr
Practitioner StringId - The unique GUID of the practitioner in the CDR instance
- fhir
Store String - identifiers
List<Cdr
Practitioner Identifier> - The FHIR identifier block
- last
Updated String - Last update time
- names
List<Cdr
Practitioner Name> - The FHIR name block
- soft
Delete Boolean - version String
- The FHIR version to use. Options [
stu3
|r4
]. Default isstu3
- version
Id String - The version of the resource
- cdr
Practitioner stringId - The unique GUID of the practitioner in the CDR instance
- fhir
Store string - identifiers
Cdr
Practitioner Identifier[] - The FHIR identifier block
- last
Updated string - Last update time
- names
Cdr
Practitioner Name[] - The FHIR name block
- soft
Delete boolean - version string
- The FHIR version to use. Options [
stu3
|r4
]. Default isstu3
- version
Id string - The version of the resource
- cdr_
practitioner_ strid - The unique GUID of the practitioner in the CDR instance
- fhir_
store str - identifiers
Sequence[Cdr
Practitioner Identifier Args] - The FHIR identifier block
- last_
updated str - Last update time
- names
Sequence[Cdr
Practitioner Name Args] - The FHIR name block
- soft_
delete bool - version str
- The FHIR version to use. Options [
stu3
|r4
]. Default isstu3
- version_
id str - The version of the resource
- cdr
Practitioner StringId - The unique GUID of the practitioner in the CDR instance
- fhir
Store String - identifiers List<Property Map>
- The FHIR identifier block
- last
Updated String - Last update time
- names List<Property Map>
- The FHIR name block
- soft
Delete Boolean - version String
- The FHIR version to use. Options [
stu3
|r4
]. Default isstu3
- version
Id String - The version of the resource
Supporting Types
CdrPractitionerIdentifier, CdrPractitionerIdentifierArgs
CdrPractitionerName, CdrPractitionerNameArgs
Import
Importing practitioners is currently not supported
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- hsdp philips-software/terraform-provider-hsdp
- License
- Notes
- This Pulumi package is based on the
hsdp
Terraform Provider.