Class HL7v2Message
- java.lang.Object
-
- org.apache.beam.sdk.io.gcp.healthcare.HL7v2Message
-
public class HL7v2Message extends java.lang.Object
The type HL7v2 message to wrap theMessage
model.
-
-
Constructor Summary
Constructors Constructor Description HL7v2Message(java.lang.String name, java.lang.String messageType, java.lang.String sendTime, java.lang.String createTime, java.lang.String data, java.lang.String sendFacility, @Nullable java.lang.String schematizedData, @Nullable java.util.Map<java.lang.String,java.lang.String> labels)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HL7v2Message
fromModel(com.google.api.services.healthcare.v1.model.Message msg)
From modelMessage
to hl7v2 message.java.lang.String
getCreateTime()
Gets create time.java.lang.String
getData()
Gets data.java.util.Map<java.lang.String,java.lang.String>
getLabels()
Gets labels.java.lang.String
getMessageType()
Gets message type.java.lang.String
getName()
Gets name.java.lang.String
getSchematizedData()
Gets schematized data.java.lang.String
getSendFacility()
Gets send facility.java.lang.String
getSendTime()
Gets send time.void
setSchematizedData(java.lang.String schematizedData)
com.google.api.services.healthcare.v1.model.Message
toModel()
To model message.java.lang.String
toString()
-
-
-
Constructor Detail
-
HL7v2Message
public HL7v2Message(java.lang.String name, java.lang.String messageType, java.lang.String sendTime, java.lang.String createTime, java.lang.String data, java.lang.String sendFacility, @Nullable java.lang.String schematizedData, @Nullable java.util.Map<java.lang.String,java.lang.String> labels)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
fromModel
public static HL7v2Message fromModel(com.google.api.services.healthcare.v1.model.Message msg)
From modelMessage
to hl7v2 message.- Parameters:
msg
- the model msg- Returns:
- the hl7v2 message
-
toModel
public com.google.api.services.healthcare.v1.model.Message toModel()
To model message.- Returns:
- the message
-
getName
public java.lang.String getName()
Gets name.- Returns:
- the name
-
getMessageType
public java.lang.String getMessageType()
Gets message type.- Returns:
- the message type
-
getSendTime
public java.lang.String getSendTime()
Gets send time.- Returns:
- the send time
-
getCreateTime
public java.lang.String getCreateTime()
Gets create time.- Returns:
- the create time
-
getData
public java.lang.String getData()
Gets data.- Returns:
- the data
-
getSendFacility
public java.lang.String getSendFacility()
Gets send facility.- Returns:
- the send facility
-
getSchematizedData
public java.lang.String getSchematizedData()
Gets schematized data.- Returns:
- the schematized data
-
setSchematizedData
public void setSchematizedData(java.lang.String schematizedData)
-
getLabels
public java.util.Map<java.lang.String,java.lang.String> getLabels()
Gets labels.- Returns:
- the labels
-
-