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

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

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

origin: ca.uhn.hapi/hapi-osgi-base

private Message instantiateACK() throws HL7Exception {
  ModelClassFactory mcf = getParser() != null ? 
      getParser().getFactory() : 
      new DefaultModelClassFactory();
  Version version = Version.versionOf(getVersion());
  Message out = null;
  if (version != null && version.available()) {
    Class<? extends Message> clazz = mcf.getMessageClass("ACK", version.getVersion(), false);
    if (clazz != null) {
      out = ReflectionUtil.instantiateMessage(clazz, mcf);
    }
  }
  if (out == null) {
    out = new GenericMessage.UnknownVersion(mcf);
  }
  
  if (out instanceof GenericMessage) {
    if (!ArrayUtil.contains(out.getNames(), "MSA")) {
      out.addNonstandardSegment("MSA");
    }
    if (!ArrayUtil.contains(out.getNames(), "ERR")) {
      out.addNonstandardSegment("ERR");
    }
  }
  
  return out;
}
origin: ca.uhn.hapi/hapi-base

private Message instantiateACK() throws HL7Exception {
  ModelClassFactory mcf = getParser() != null ? 
      getParser().getFactory() : 
      new DefaultModelClassFactory();
  Version version = Version.versionOf(getVersion());
  Message out = null;
  if (version != null && version.available()) {
    Class<? extends Message> clazz = mcf.getMessageClass("ACK", version.getVersion(), false);
    if (clazz != null) {
      out = ReflectionUtil.instantiateMessage(clazz, mcf);
    }
  }
  if (out == null) {
    out = new GenericMessage.UnknownVersion(mcf);
  }
  
  if (out instanceof GenericMessage) {
    if (!ArrayUtil.contains(out.getNames(), "MSA")) {
      out.addNonstandardSegment("MSA");
    }
    if (!ArrayUtil.contains(out.getNames(), "ERR")) {
      out.addNonstandardSegment("ERR");
    }
  }
  
  return out;
}
ca.uhn.hl7v2.modelMessagegetNames

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
  • getFieldSeparatorValue
    Convenience method which retrieves the field separator value from the first field of the first segme
  • 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
  • getContentResolver (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • setContentView (Activity)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Join (org.hibernate.mapping)
  • 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