Tabnine Logo
Message.getFieldSeparatorValue
Code IndexAdd Tabnine to your IDE (free)

How to use
getFieldSeparatorValue
method
in
ca.uhn.hl7v2.model.Message

Best Java code snippets using ca.uhn.hl7v2.model.Message.getFieldSeparatorValue (Showing top 4 results out of 315)

origin: ca.uhn.hapi/hapi-base

public Character getFieldSeparatorValue() throws HL7Exception {
  return getDelegate().getFieldSeparatorValue();
}
origin: ca.uhn.hapi/hapi-osgi-base

public Character getFieldSeparatorValue() throws HL7Exception {
  return getDelegate().getFieldSeparatorValue();
}
origin: ca.uhn.hapi/hapi-base

/**
 * Returns an instance using the MSH-1 and MSH-2 values of the given message
 *
 * @param message the message
 * @return the encoding characters for this message
 * @throws HL7Exception If either MSH-1 or MSH-2 are not populated
 * @since 1.0
 */
public static EncodingCharacters getInstance(Message message) throws HL7Exception {
  final String encodingCharactersValue = message.getEncodingCharactersValue();
  if (encodingCharactersValue == null || encodingCharactersValue.length() == 0) {
    throw new HL7Exception("encoding characters not populated");
  }
  final Character fieldSeparatorValue = message.getFieldSeparatorValue();
  if (fieldSeparatorValue == null) {
    throw new HL7Exception("Field separator not populated");
  }
  return new EncodingCharacters(fieldSeparatorValue, encodingCharactersValue);
}
origin: ca.uhn.hapi/hapi-osgi-base

/**
 * Returns an instance using the MSH-1 and MSH-2 values of the given message
 *
 * @param message the message
 * @return the encoding characters for this message
 * @throws HL7Exception If either MSH-1 or MSH-2 are not populated
 * @since 1.0
 */
public static EncodingCharacters getInstance(Message message) throws HL7Exception {
  final String encodingCharactersValue = message.getEncodingCharactersValue();
  if (encodingCharactersValue == null || encodingCharactersValue.length() == 0) {
    throw new HL7Exception("encoding characters not populated");
  }
  final Character fieldSeparatorValue = message.getFieldSeparatorValue();
  if (fieldSeparatorValue == null) {
    throw new HL7Exception("Field separator not populated");
  }
  return new EncodingCharacters(fieldSeparatorValue, encodingCharactersValue);
}
ca.uhn.hl7v2.modelMessagegetFieldSeparatorValue

Javadoc

Convenience method which retrieves the field separator value from the first field of the first segment. Typically, the first segment is MSH, so this method will retrieve the value of MSH-1.

Popular methods of Message

  • get
  • getVersion
    Returns the version number of the HL7 version in which this message structure is defined (e.g. "2.4"
  • generateACK
    Generates and returns an ACK message which would be used to acknowledge this message successfully.
  • encode
    Encodes this message using the parser returned by #getParser()
  • getName
  • getParser
    Returns the parser to be used when parse/encode methods are called on this Message, as well as its c
  • addNonstandardSegment
  • getEncodingCharactersValue
    Convenience method which retrieves the encoding characters value from the second field of the first
  • getNames
  • parse
    Parses the string into this message using the parser returned by #getParser()
  • printStructure
    Prints a summary of the contents and structure of this message. This is useful for debugging purpos
  • setParser
    Sets the parser to be used when parse/encode methods are called on this Message, as well as its chil
  • printStructure,
  • setParser

Popular in Java

  • Creating JSON documents from java classes using gson
  • setRequestProperty (URLConnection)
  • getContentResolver (Context)
  • getSharedPreferences (Context)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • JOptionPane (javax.swing)
  • JTextField (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now