Class HL7v2Message


  • public class HL7v2Message
    extends java.lang.Object
    The type HL7v2 message to wrap the Message 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)  
    • 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 class java.lang.Object
      • fromModel

        public static HL7v2Message fromModel​(com.google.api.services.healthcare.v1.model.Message msg)
        From model Message 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