1. Packages
  2. Google Cloud Native
  3. API Docs
  4. healthcare
  5. healthcare/v1beta1
  6. Message

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.healthcare/v1beta1.Message

Explore with Pulumi AI

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

Parses and stores an HL7v2 message. This method triggers an asynchronous notification to any Pub/Sub topic configured in Hl7V2Store.Hl7V2NotificationConfig, if the filtering matches the message. If an MLLP adapter is configured to listen to a Pub/Sub topic, the adapter transmits the message when a notification is received.

Create Message Resource

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

Constructor syntax

new Message(name: string, args: MessageArgs, opts?: CustomResourceOptions);
@overload
def Message(resource_name: str,
            args: MessageArgs,
            opts: Optional[ResourceOptions] = None)

@overload
def Message(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            dataset_id: Optional[str] = None,
            hl7_v2_store_id: Optional[str] = None,
            data: Optional[str] = None,
            labels: Optional[Mapping[str, str]] = None,
            location: Optional[str] = None,
            message_type: Optional[str] = None,
            name: Optional[str] = None,
            patient_ids: Optional[Sequence[PatientIdArgs]] = None,
            project: Optional[str] = None,
            schematized_data: Optional[SchematizedDataArgs] = None,
            send_facility: Optional[str] = None,
            send_time: Optional[str] = None)
func NewMessage(ctx *Context, name string, args MessageArgs, opts ...ResourceOption) (*Message, error)
public Message(string name, MessageArgs args, CustomResourceOptions? opts = null)
public Message(String name, MessageArgs args)
public Message(String name, MessageArgs args, CustomResourceOptions options)
type: google-native:healthcare/v1beta1:Message
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. MessageArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. MessageArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. MessageArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. MessageArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. MessageArgs
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 google_nativeMessageResource = new GoogleNative.Healthcare.V1Beta1.Message("google-nativeMessageResource", new()
{
    DatasetId = "string",
    Hl7V2StoreId = "string",
    Data = "string",
    Labels = 
    {
        { "string", "string" },
    },
    Location = "string",
    MessageType = "string",
    Name = "string",
    PatientIds = new[]
    {
        new GoogleNative.Healthcare.V1Beta1.Inputs.PatientIdArgs
        {
            Type = "string",
            Value = "string",
        },
    },
    Project = "string",
    SchematizedData = new GoogleNative.Healthcare.V1Beta1.Inputs.SchematizedDataArgs
    {
        Data = "string",
        Error = "string",
    },
    SendFacility = "string",
    SendTime = "string",
});
Copy
example, err := healthcarev1beta1.NewMessage(ctx, "google-nativeMessageResource", &healthcarev1beta1.MessageArgs{
	DatasetId:    pulumi.String("string"),
	Hl7V2StoreId: pulumi.String("string"),
	Data:         pulumi.String("string"),
	Labels: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Location:    pulumi.String("string"),
	MessageType: pulumi.String("string"),
	Name:        pulumi.String("string"),
	PatientIds: healthcare.PatientIdArray{
		&healthcare.PatientIdArgs{
			Type:  pulumi.String("string"),
			Value: pulumi.String("string"),
		},
	},
	Project: pulumi.String("string"),
	SchematizedData: &healthcare.SchematizedDataArgs{
		Data:  pulumi.String("string"),
		Error: pulumi.String("string"),
	},
	SendFacility: pulumi.String("string"),
	SendTime:     pulumi.String("string"),
})
Copy
var google_nativeMessageResource = new com.pulumi.googlenative.healthcare_v1beta1.Message("google-nativeMessageResource", com.pulumi.googlenative.healthcare_v1beta1.MessageArgs.builder()
    .datasetId("string")
    .hl7V2StoreId("string")
    .data("string")
    .labels(Map.of("string", "string"))
    .location("string")
    .messageType("string")
    .name("string")
    .patientIds(PatientIdArgs.builder()
        .type("string")
        .value("string")
        .build())
    .project("string")
    .schematizedData(SchematizedDataArgs.builder()
        .data("string")
        .error("string")
        .build())
    .sendFacility("string")
    .sendTime("string")
    .build());
Copy
google_native_message_resource = google_native.healthcare.v1beta1.Message("google-nativeMessageResource",
    dataset_id="string",
    hl7_v2_store_id="string",
    data="string",
    labels={
        "string": "string",
    },
    location="string",
    message_type="string",
    name="string",
    patient_ids=[{
        "type": "string",
        "value": "string",
    }],
    project="string",
    schematized_data={
        "data": "string",
        "error": "string",
    },
    send_facility="string",
    send_time="string")
Copy
const google_nativeMessageResource = new google_native.healthcare.v1beta1.Message("google-nativeMessageResource", {
    datasetId: "string",
    hl7V2StoreId: "string",
    data: "string",
    labels: {
        string: "string",
    },
    location: "string",
    messageType: "string",
    name: "string",
    patientIds: [{
        type: "string",
        value: "string",
    }],
    project: "string",
    schematizedData: {
        data: "string",
        error: "string",
    },
    sendFacility: "string",
    sendTime: "string",
});
Copy
type: google-native:healthcare/v1beta1:Message
properties:
    data: string
    datasetId: string
    hl7V2StoreId: string
    labels:
        string: string
    location: string
    messageType: string
    name: string
    patientIds:
        - type: string
          value: string
    project: string
    schematizedData:
        data: string
        error: string
    sendFacility: string
    sendTime: string
Copy

Message 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 Message resource accepts the following input properties:

DatasetId
This property is required.
Changes to this property will trigger replacement.
string
Hl7V2StoreId
This property is required.
Changes to this property will trigger replacement.
string
Data string
Raw message bytes.
Labels Dictionary<string, string>
User-supplied key-value pairs used to organize HL7v2 stores. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62} Label values are optional, must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a given store.
Location Changes to this property will trigger replacement. string
MessageType string
The message type for this message. MSH-9.1.
Name string
Resource name of the Message, of the form projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}. Assigned by the server.
PatientIds List<Pulumi.GoogleNative.Healthcare.V1Beta1.Inputs.PatientId>
All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this message.
Project Changes to this property will trigger replacement. string
SchematizedData Pulumi.GoogleNative.Healthcare.V1Beta1.Inputs.SchematizedData
The parsed version of the raw message data schematized according to this store's schemas and type definitions.
SendFacility string
The hospital that this message came from. MSH-4.
SendTime string
The datetime the sending application sent this message. MSH-7.
DatasetId
This property is required.
Changes to this property will trigger replacement.
string
Hl7V2StoreId
This property is required.
Changes to this property will trigger replacement.
string
Data string
Raw message bytes.
Labels map[string]string
User-supplied key-value pairs used to organize HL7v2 stores. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62} Label values are optional, must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a given store.
Location Changes to this property will trigger replacement. string
MessageType string
The message type for this message. MSH-9.1.
Name string
Resource name of the Message, of the form projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}. Assigned by the server.
PatientIds []PatientIdArgs
All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this message.
Project Changes to this property will trigger replacement. string
SchematizedData SchematizedDataArgs
The parsed version of the raw message data schematized according to this store's schemas and type definitions.
SendFacility string
The hospital that this message came from. MSH-4.
SendTime string
The datetime the sending application sent this message. MSH-7.
datasetId
This property is required.
Changes to this property will trigger replacement.
String
hl7V2StoreId
This property is required.
Changes to this property will trigger replacement.
String
data String
Raw message bytes.
labels Map<String,String>
User-supplied key-value pairs used to organize HL7v2 stores. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62} Label values are optional, must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a given store.
location Changes to this property will trigger replacement. String
messageType String
The message type for this message. MSH-9.1.
name String
Resource name of the Message, of the form projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}. Assigned by the server.
patientIds List<PatientId>
All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this message.
project Changes to this property will trigger replacement. String
schematizedData SchematizedData
The parsed version of the raw message data schematized according to this store's schemas and type definitions.
sendFacility String
The hospital that this message came from. MSH-4.
sendTime String
The datetime the sending application sent this message. MSH-7.
datasetId
This property is required.
Changes to this property will trigger replacement.
string
hl7V2StoreId
This property is required.
Changes to this property will trigger replacement.
string
data string
Raw message bytes.
labels {[key: string]: string}
User-supplied key-value pairs used to organize HL7v2 stores. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62} Label values are optional, must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a given store.
location Changes to this property will trigger replacement. string
messageType string
The message type for this message. MSH-9.1.
name string
Resource name of the Message, of the form projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}. Assigned by the server.
patientIds PatientId[]
All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this message.
project Changes to this property will trigger replacement. string
schematizedData SchematizedData
The parsed version of the raw message data schematized according to this store's schemas and type definitions.
sendFacility string
The hospital that this message came from. MSH-4.
sendTime string
The datetime the sending application sent this message. MSH-7.
dataset_id
This property is required.
Changes to this property will trigger replacement.
str
hl7_v2_store_id
This property is required.
Changes to this property will trigger replacement.
str
data str
Raw message bytes.
labels Mapping[str, str]
User-supplied key-value pairs used to organize HL7v2 stores. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62} Label values are optional, must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a given store.
location Changes to this property will trigger replacement. str
message_type str
The message type for this message. MSH-9.1.
name str
Resource name of the Message, of the form projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}. Assigned by the server.
patient_ids Sequence[PatientIdArgs]
All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this message.
project Changes to this property will trigger replacement. str
schematized_data SchematizedDataArgs
The parsed version of the raw message data schematized according to this store's schemas and type definitions.
send_facility str
The hospital that this message came from. MSH-4.
send_time str
The datetime the sending application sent this message. MSH-7.
datasetId
This property is required.
Changes to this property will trigger replacement.
String
hl7V2StoreId
This property is required.
Changes to this property will trigger replacement.
String
data String
Raw message bytes.
labels Map<String>
User-supplied key-value pairs used to organize HL7v2 stores. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62} Label values are optional, must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a given store.
location Changes to this property will trigger replacement. String
messageType String
The message type for this message. MSH-9.1.
name String
Resource name of the Message, of the form projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}. Assigned by the server.
patientIds List<Property Map>
All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this message.
project Changes to this property will trigger replacement. String
schematizedData Property Map
The parsed version of the raw message data schematized according to this store's schemas and type definitions.
sendFacility String
The hospital that this message came from. MSH-4.
sendTime String
The datetime the sending application sent this message. MSH-7.

Outputs

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

CreateTime string
The datetime when the message was created. Set by the server.
Id string
The provider-assigned unique ID for this managed resource.
ParsedData Pulumi.GoogleNative.Healthcare.V1Beta1.Outputs.ParsedDataResponse
The parsed version of the raw message data.
CreateTime string
The datetime when the message was created. Set by the server.
Id string
The provider-assigned unique ID for this managed resource.
ParsedData ParsedDataResponse
The parsed version of the raw message data.
createTime String
The datetime when the message was created. Set by the server.
id String
The provider-assigned unique ID for this managed resource.
parsedData ParsedDataResponse
The parsed version of the raw message data.
createTime string
The datetime when the message was created. Set by the server.
id string
The provider-assigned unique ID for this managed resource.
parsedData ParsedDataResponse
The parsed version of the raw message data.
create_time str
The datetime when the message was created. Set by the server.
id str
The provider-assigned unique ID for this managed resource.
parsed_data ParsedDataResponse
The parsed version of the raw message data.
createTime String
The datetime when the message was created. Set by the server.
id String
The provider-assigned unique ID for this managed resource.
parsedData Property Map
The parsed version of the raw message data.

Supporting Types

ParsedDataResponse
, ParsedDataResponseArgs

Segments This property is required. []SegmentResponse
segments This property is required. List<SegmentResponse>
segments This property is required. SegmentResponse[]
segments This property is required. Sequence[SegmentResponse]
segments This property is required. List<Property Map>

PatientId
, PatientIdArgs

Type string
ID type. For example, MRN or NHS.
Value string
The patient's unique identifier.
Type string
ID type. For example, MRN or NHS.
Value string
The patient's unique identifier.
type String
ID type. For example, MRN or NHS.
value String
The patient's unique identifier.
type string
ID type. For example, MRN or NHS.
value string
The patient's unique identifier.
type str
ID type. For example, MRN or NHS.
value str
The patient's unique identifier.
type String
ID type. For example, MRN or NHS.
value String
The patient's unique identifier.

PatientIdResponse
, PatientIdResponseArgs

Type This property is required. string
ID type. For example, MRN or NHS.
Value This property is required. string
The patient's unique identifier.
Type This property is required. string
ID type. For example, MRN or NHS.
Value This property is required. string
The patient's unique identifier.
type This property is required. String
ID type. For example, MRN or NHS.
value This property is required. String
The patient's unique identifier.
type This property is required. string
ID type. For example, MRN or NHS.
value This property is required. string
The patient's unique identifier.
type This property is required. str
ID type. For example, MRN or NHS.
value This property is required. str
The patient's unique identifier.
type This property is required. String
ID type. For example, MRN or NHS.
value This property is required. String
The patient's unique identifier.

SchematizedData
, SchematizedDataArgs

Data string
JSON output of the parser.
Error string
The error output of the parser.
Data string
JSON output of the parser.
Error string
The error output of the parser.
data String
JSON output of the parser.
error String
The error output of the parser.
data string
JSON output of the parser.
error string
The error output of the parser.
data str
JSON output of the parser.
error str
The error output of the parser.
data String
JSON output of the parser.
error String
The error output of the parser.

SchematizedDataResponse
, SchematizedDataResponseArgs

Data This property is required. string
JSON output of the parser.
Error This property is required. string
The error output of the parser.
Data This property is required. string
JSON output of the parser.
Error This property is required. string
The error output of the parser.
data This property is required. String
JSON output of the parser.
error This property is required. String
The error output of the parser.
data This property is required. string
JSON output of the parser.
error This property is required. string
The error output of the parser.
data This property is required. str
JSON output of the parser.
error This property is required. str
The error output of the parser.
data This property is required. String
JSON output of the parser.
error This property is required. String
The error output of the parser.

SegmentResponse
, SegmentResponseArgs

Fields This property is required. Dictionary<string, string>
A mapping from the positional location to the value. The key string uses zero-based indexes separated by dots to identify Fields, components and sub-components. A bracket notation is also used to identify different instances of a repeated field. Regex for key: (\d+)([\d+])?(.\d+)?(.\d+)? Examples of (key, value) pairs: * (0.1, "hemoglobin") denotes that the first component of Field 0 has the value "hemoglobin". * (1.1.2, "CBC") denotes that the second sub-component of the first component of Field 1 has the value "CBC". * (1[0].1, "HbA1c") denotes that the first component of the first Instance of Field 1, which is repeated, has the value "HbA1c".
SegmentId This property is required. string
A string that indicates the type of segment. For example, EVN or PID.
SetId This property is required. string
Set ID for segments that can be in a set. This can be empty if it's missing or isn't applicable.
Fields This property is required. map[string]string
A mapping from the positional location to the value. The key string uses zero-based indexes separated by dots to identify Fields, components and sub-components. A bracket notation is also used to identify different instances of a repeated field. Regex for key: (\d+)([\d+])?(.\d+)?(.\d+)? Examples of (key, value) pairs: * (0.1, "hemoglobin") denotes that the first component of Field 0 has the value "hemoglobin". * (1.1.2, "CBC") denotes that the second sub-component of the first component of Field 1 has the value "CBC". * (1[0].1, "HbA1c") denotes that the first component of the first Instance of Field 1, which is repeated, has the value "HbA1c".
SegmentId This property is required. string
A string that indicates the type of segment. For example, EVN or PID.
SetId This property is required. string
Set ID for segments that can be in a set. This can be empty if it's missing or isn't applicable.
fields This property is required. Map<String,String>
A mapping from the positional location to the value. The key string uses zero-based indexes separated by dots to identify Fields, components and sub-components. A bracket notation is also used to identify different instances of a repeated field. Regex for key: (\d+)([\d+])?(.\d+)?(.\d+)? Examples of (key, value) pairs: * (0.1, "hemoglobin") denotes that the first component of Field 0 has the value "hemoglobin". * (1.1.2, "CBC") denotes that the second sub-component of the first component of Field 1 has the value "CBC". * (1[0].1, "HbA1c") denotes that the first component of the first Instance of Field 1, which is repeated, has the value "HbA1c".
segmentId This property is required. String
A string that indicates the type of segment. For example, EVN or PID.
setId This property is required. String
Set ID for segments that can be in a set. This can be empty if it's missing or isn't applicable.
fields This property is required. {[key: string]: string}
A mapping from the positional location to the value. The key string uses zero-based indexes separated by dots to identify Fields, components and sub-components. A bracket notation is also used to identify different instances of a repeated field. Regex for key: (\d+)([\d+])?(.\d+)?(.\d+)? Examples of (key, value) pairs: * (0.1, "hemoglobin") denotes that the first component of Field 0 has the value "hemoglobin". * (1.1.2, "CBC") denotes that the second sub-component of the first component of Field 1 has the value "CBC". * (1[0].1, "HbA1c") denotes that the first component of the first Instance of Field 1, which is repeated, has the value "HbA1c".
segmentId This property is required. string
A string that indicates the type of segment. For example, EVN or PID.
setId This property is required. string
Set ID for segments that can be in a set. This can be empty if it's missing or isn't applicable.
fields This property is required. Mapping[str, str]
A mapping from the positional location to the value. The key string uses zero-based indexes separated by dots to identify Fields, components and sub-components. A bracket notation is also used to identify different instances of a repeated field. Regex for key: (\d+)([\d+])?(.\d+)?(.\d+)? Examples of (key, value) pairs: * (0.1, "hemoglobin") denotes that the first component of Field 0 has the value "hemoglobin". * (1.1.2, "CBC") denotes that the second sub-component of the first component of Field 1 has the value "CBC". * (1[0].1, "HbA1c") denotes that the first component of the first Instance of Field 1, which is repeated, has the value "HbA1c".
segment_id This property is required. str
A string that indicates the type of segment. For example, EVN or PID.
set_id This property is required. str
Set ID for segments that can be in a set. This can be empty if it's missing or isn't applicable.
fields This property is required. Map<String>
A mapping from the positional location to the value. The key string uses zero-based indexes separated by dots to identify Fields, components and sub-components. A bracket notation is also used to identify different instances of a repeated field. Regex for key: (\d+)([\d+])?(.\d+)?(.\d+)? Examples of (key, value) pairs: * (0.1, "hemoglobin") denotes that the first component of Field 0 has the value "hemoglobin". * (1.1.2, "CBC") denotes that the second sub-component of the first component of Field 1 has the value "CBC". * (1[0].1, "HbA1c") denotes that the first component of the first Instance of Field 1, which is repeated, has the value "HbA1c".
segmentId This property is required. String
A string that indicates the type of segment. For example, EVN or PID.
setId This property is required. String
Set ID for segments that can be in a set. This can be empty if it's missing or isn't applicable.

Package Details

Repository
Google Cloud Native pulumi/pulumi-google-native
License
Apache-2.0

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi