Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.healthcare/v1.Message
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
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/v1:Message
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 MessageArgs
- 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 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 string
- The unique name of the resource.
- args MessageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MessageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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 messageResource = new GoogleNative.Healthcare.V1.Message("messageResource", new()
{
DatasetId = "string",
Hl7V2StoreId = "string",
Data = "string",
Labels =
{
{ "string", "string" },
},
Location = "string",
MessageType = "string",
Name = "string",
PatientIds = new[]
{
new GoogleNative.Healthcare.V1.Inputs.PatientIdArgs
{
Type = "string",
Value = "string",
},
},
Project = "string",
SchematizedData = new GoogleNative.Healthcare.V1.Inputs.SchematizedDataArgs
{
Data = "string",
Error = "string",
},
SendFacility = "string",
SendTime = "string",
});
example, err := healthcare.NewMessage(ctx, "messageResource", &healthcare.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"),
})
var messageResource = new Message("messageResource", 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());
message_resource = google_native.healthcare.v1.Message("messageResource",
dataset_id="string",
hl7_v2_store_id="string",
data="string",
labels={
"string": "string",
},
location="string",
message_type="string",
name="string",
patient_ids=[google_native.healthcare.v1.PatientIdArgs(
type="string",
value="string",
)],
project="string",
schematized_data=google_native.healthcare.v1.SchematizedDataArgs(
data="string",
error="string",
),
send_facility="string",
send_time="string")
const messageResource = new google_native.healthcare.v1.Message("messageResource", {
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",
});
type: google-native:healthcare/v1: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
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
The Message resource accepts the following input properties:
- Dataset
Id string - Hl7V2Store
Id 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 string
- Message
Type 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. - Patient
Ids List<Pulumi.Google Native. Healthcare. V1. Inputs. Patient Id> - All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this message.
- Project string
- Schematized
Data Pulumi.Google Native. Healthcare. V1. Inputs. Schematized Data - The parsed version of the raw message data schematized according to this store's schemas and type definitions.
- Send
Facility string - The hospital that this message came from. MSH-4.
- Send
Time string - The datetime the sending application sent this message. MSH-7.
- Dataset
Id string - Hl7V2Store
Id 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 string
- Message
Type 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. - Patient
Ids []PatientId Args - All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this message.
- Project string
- Schematized
Data SchematizedData Args - The parsed version of the raw message data schematized according to this store's schemas and type definitions.
- Send
Facility string - The hospital that this message came from. MSH-4.
- Send
Time string - The datetime the sending application sent this message. MSH-7.
- dataset
Id String - hl7V2Store
Id 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 String
- message
Type 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. - patient
Ids List<PatientId> - All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this message.
- project String
- schematized
Data SchematizedData - The parsed version of the raw message data schematized according to this store's schemas and type definitions.
- send
Facility String - The hospital that this message came from. MSH-4.
- send
Time String - The datetime the sending application sent this message. MSH-7.
- dataset
Id string - hl7V2Store
Id 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 string
- message
Type 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. - patient
Ids PatientId[] - All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this message.
- project string
- schematized
Data SchematizedData - The parsed version of the raw message data schematized according to this store's schemas and type definitions.
- send
Facility string - The hospital that this message came from. MSH-4.
- send
Time string - The datetime the sending application sent this message. MSH-7.
- dataset_
id str - hl7_
v2_ strstore_ id - 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 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[PatientId Args] - All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this message.
- project str
- schematized_
data SchematizedData Args - 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.
- dataset
Id String - hl7V2Store
Id 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 String
- message
Type 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. - patient
Ids List<Property Map> - All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this message.
- project String
- schematized
Data Property Map - The parsed version of the raw message data schematized according to this store's schemas and type definitions.
- send
Facility String - The hospital that this message came from. MSH-4.
- send
Time 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:
- Create
Time string - The datetime when the message was created. Set by the server.
- Id string
- The provider-assigned unique ID for this managed resource.
- Parsed
Data Pulumi.Google Native. Healthcare. V1. Outputs. Parsed Data Response - The parsed version of the raw message data.
- Create
Time string - The datetime when the message was created. Set by the server.
- Id string
- The provider-assigned unique ID for this managed resource.
- Parsed
Data ParsedData Response - The parsed version of the raw message data.
- create
Time String - The datetime when the message was created. Set by the server.
- id String
- The provider-assigned unique ID for this managed resource.
- parsed
Data ParsedData Response - The parsed version of the raw message data.
- create
Time string - The datetime when the message was created. Set by the server.
- id string
- The provider-assigned unique ID for this managed resource.
- parsed
Data ParsedData Response - 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 ParsedData Response - The parsed version of the raw message data.
- create
Time String - The datetime when the message was created. Set by the server.
- id String
- The provider-assigned unique ID for this managed resource.
- parsed
Data Property Map - The parsed version of the raw message data.
Supporting Types
ParsedDataResponse, ParsedDataResponseArgs
PatientId, PatientIdArgs
PatientIdResponse, PatientIdResponseArgs
SchematizedData, SchematizedDataArgs
SchematizedDataResponse, SchematizedDataResponseArgs
SegmentResponse, SegmentResponseArgs
- Fields 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".
- Segment
Id string - A string that indicates the type of segment. For example, EVN or PID.
- Set
Id string - Set ID for segments that can be in a set. This can be empty if it's missing or isn't applicable.
- Fields 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".
- Segment
Id string - A string that indicates the type of segment. For example, EVN or PID.
- Set
Id string - Set ID for segments that can be in a set. This can be empty if it's missing or isn't applicable.
- fields 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".
- segment
Id String - A string that indicates the type of segment. For example, EVN or PID.
- set
Id String - Set ID for segments that can be in a set. This can be empty if it's missing or isn't applicable.
- fields {[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".
- segment
Id string - A string that indicates the type of segment. For example, EVN or PID.
- set
Id string - Set ID for segments that can be in a set. This can be empty if it's missing or isn't applicable.
- fields 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 str - A string that indicates the type of segment. For example, EVN or PID.
- set_
id str - Set ID for segments that can be in a set. This can be empty if it's missing or isn't applicable.
- fields 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".
- segment
Id String - A string that indicates the type of segment. For example, EVN or PID.
- set
Id 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.