Uses of Class
ca.uhn.hl7v2.HL7Exception

Packages that use HL7Exception
ca.uhn.hl7v2   
ca.uhn.hl7v2.app   
ca.uhn.hl7v2.conf.check   
ca.uhn.hl7v2.model   
ca.uhn.hl7v2.parser   
ca.uhn.hl7v2.preparser   
ca.uhn.hl7v2.protocol   
ca.uhn.hl7v2.protocol.impl   
ca.uhn.hl7v2.util   
ca.uhn.hl7v2.validation   
ca.uhn.hl7v2.validation.app   
 

Uses of HL7Exception in ca.uhn.hl7v2
 

Subclasses of HL7Exception in ca.uhn.hl7v2
 class UndefinedTableException
          Thrown when a lookup table is not known to a TableRepository.
 class UnknownValueException
          Thrown when a table value can not be found by a TableRepository.
 

Methods in ca.uhn.hl7v2 that throw HL7Exception
static void Test.main(java.lang.String[] args)
           
 void HL7Exception.populate(Segment errorSegment, java.lang.String theJdbcUrl)
          Populates the given error segment with information from this Exception.
 

Uses of HL7Exception in ca.uhn.hl7v2.app
 

Methods in ca.uhn.hl7v2.app that throw HL7Exception
 Connection ConnectionHub.attach(java.lang.String host, int port, Parser parser, java.lang.Class<? extends LowerLayerProtocol> llpClass)
          Returns a Connection to the given address, opening this Connection if necessary.
 void TestPanel.encodeInbound()
          Encodes the message that is currently displayed in the tree into a traditionally encoded message string and displays in the inbound message text box.
 void TestPanel.encodeOutbound()
          Encodes the message that is currently displayed in the outbound tree into a traditionally encoded message string and displays in a new window.
static void DefaultApplication.fillResponseHeader(Segment inbound, Segment outbound)
          Populates certain required fields in a response message header, using information from the corresponding inbound message.
 void HL7Service.loadApplicationsFromFile(java.io.File f)
          A convenience method for registering applications (using registerApplication() ) with this service.
static java.lang.String Responder.logAndMakeErrorMessage(java.lang.Exception e, Segment inHeader, Parser p, java.lang.String encoding)
          Logs the given exception and creates an error message to send to the remote system.
static Message DefaultApplication.makeACK(Segment inboundHeader)
          Creates an ACK message with the minimum required information from an inbound message.
 void TestPanel.parseOutbound()
          Attempts to parse the contents of the outbound message text box into a message object and display in the outbound message tree.
 Message Application.processMessage(Message in)
          Uses the contents of the message for whatever purpose the Application has for this message, and returns an appropriate response message.
protected  java.lang.String Responder.processMessage(java.lang.String incomingMessageString)
          Processes an incoming message string and returns the response message string.
 Message Initiator.sendAndReceive(Message out)
          Sends a message to a responder system, receives the reply, and returns the reply as a Message object.
 void TestPanel.sendAndRecieve()
          Sends the message that is currently displayed in the outbound tree to the remote system that is currently connected.
 

Constructors in ca.uhn.hl7v2.app that throw HL7Exception
TestPanel()
          Creates a new instance of TestPanel
 

Uses of HL7Exception in ca.uhn.hl7v2.conf.check
 

Subclasses of HL7Exception in ca.uhn.hl7v2.conf.check
 class ProfileNotFollowedException
          An exception indicating that some message contents don't reflect a static profile.
 class ProfileNotHL7CompliantException
          An exception indicating that a static profile doesn't correspond to HL7 rules.
 class XElementPresentException
          An element that a profile defines as "not used" (X) is present in the message.
 

Methods in ca.uhn.hl7v2.conf.check that return HL7Exception
protected  HL7Exception DefaultValidator.testCardinality(int reps, int min, int max, java.lang.String usage, java.lang.String name)
          Checks cardinality and creates an appropriate exception if out of bounds.
 HL7Exception[] DefaultValidator.testComponent(Type type, Component profile, java.lang.String profileID)
           
 HL7Exception[] DefaultValidator.testField(Type type, Field profile, boolean escape, java.lang.String profileID)
           
 HL7Exception[] DefaultValidator.testGroup(Group group, AbstractSegmentContainer profile, java.lang.String profileID)
          Tests a group against a group section of a profile.
 HL7Exception DefaultValidator.testLength(Type type, int maxLength)
          Tests whether the given type falls within a maximum length.
 HL7Exception[] DefaultValidator.testSegment(Segment segment, Seg profile, java.lang.String profileID)
          Tests a segment against a segment section of a profile.
 HL7Exception[] DefaultValidator.testStructure(Structure s, ProfileStructure profile, java.lang.String profileID)
          Tests a structure (segment or group) against the corresponding part of a profile.
 HL7Exception[] DefaultValidator.testType(Type type, AbstractComponent profile, java.lang.String encoded, java.lang.String profileID)
          Tests a Type against the corresponding section of a profile.
 HL7Exception[] Validator.validate(Message message, StaticDef profile)
          Validates the given message against the given static definition from a conformance profile.
 HL7Exception[] DefaultValidator.validate(Message message, StaticDef profile)
           
 

Methods in ca.uhn.hl7v2.conf.check that throw HL7Exception
 HL7Exception[] Validator.validate(Message message, StaticDef profile)
          Validates the given message against the given static definition from a conformance profile.
 HL7Exception[] DefaultValidator.validate(Message message, StaticDef profile)
           
 

Uses of HL7Exception in ca.uhn.hl7v2.model
 

Subclasses of HL7Exception in ca.uhn.hl7v2.model
 class DataTypeException
          Represents a problem with the validity of a data type, such as an attempt to set the value of a primitive type to something invalid for that type.
 

Methods in ca.uhn.hl7v2.model with parameters of type HL7Exception
 Message Message.generateACK(java.lang.String theAcknowldegementCode, HL7Exception theException)
           Generates and returns an ACK message which would be used to acknowledge this message successfully.
 Message AbstractMessage.generateACK(java.lang.String theAcknowledgementCode, HL7Exception theException)
           Generates and returns an ACK message which would be used to acknowledge this message successfully.
 

Methods in ca.uhn.hl7v2.model that throw HL7Exception
protected  java.lang.String AbstractGroup.add(java.lang.Class<? extends Structure> c, boolean required, boolean repeating)
          Adds a new Structure (group or segment) to this Group.
protected  java.lang.String AbstractGroup.add(java.lang.Class<? extends Structure> c, boolean required, boolean repeating, int index)
          Adds a new Structure (group or segment) to this Group.
protected  void AbstractSegment.add(java.lang.Class<? extends Type> c, boolean required, int maxReps, int length, java.lang.Object[] constructorArgs)
          Deprecated. Use AbstractSegment.add(Class, boolean, int, int, Object[], String)
protected  void AbstractSegment.add(java.lang.Class<? extends Type> c, boolean required, int maxReps, int length, java.lang.Object[] constructorArgs, java.lang.String name)
          Adds a field to the segment.
 java.lang.String Group.addNonstandardSegment(java.lang.String name)
          Expands the group definition to include a segment that is not defined by HL7 to be part of this group (eg an unregistered Z segment).
 java.lang.String AbstractGroup.addNonstandardSegment(java.lang.String name)
          Expands the group definition to include a segment that is not defined by HL7 to be part of this group (eg an unregistered Z segment).
 java.lang.String Group.addNonstandardSegment(java.lang.String name, int theIndex)
          Expands the group definition to include a segment that is not defined by HL7 to be part of this group (eg an unregistered Z segment).
 java.lang.String AbstractGroup.addNonstandardSegment(java.lang.String theName, int theIndex)
           
 int AbstractGroup.currentReps(java.lang.String name)
          Returns the number of existing repetitions of the named structure.
 java.lang.String Segment.encode()
          Encodes this message using the parser returned by Message.getParser()
 java.lang.String Type.encode()
          Encodes this message using the parser returned by #getParser()
 java.lang.String Message.encode()
          Encodes this message using the parser returned by Message.getParser()
 java.lang.String Varies.encode()
          Encodes this message using the parser returned by #getParser()
 java.lang.String AbstractType.encode()
          Encodes this message using the parser returned by #getParser()
 java.lang.String AbstractSegment.encode()
          Encodes this message using the parser returned by Message.getParser()
 java.lang.String AbstractMessage.encode()
          Encodes this message using the parser returned by Message.getParser()
 java.lang.String AbstractPrimitive.encode()
          Encodes this message using the parser returned by #getParser()
static void Varies.fixOBX5(Segment segment, ModelClassFactory factory)
          Sets the data type of field 5 in the given OBX segment to the value of OBX-2.
 Message Message.generateACK()
           Generates and returns an ACK message which would be used to acknowledge this message successfully, with an MSA-1 code of "AA".
 Message AbstractMessage.generateACK()
           Generates and returns an ACK message which would be used to acknowledge this message successfully, with an MSA-1 code of "AA".
 Message Message.generateACK(java.lang.String theAcknowldegementCode, HL7Exception theException)
           Generates and returns an ACK message which would be used to acknowledge this message successfully.
 Message AbstractMessage.generateACK(java.lang.String theAcknowledgementCode, HL7Exception theException)
           Generates and returns an ACK message which would be used to acknowledge this message successfully.
 Structure Group.get(java.lang.String name)
          Returns the named structure.
 Structure AbstractGroup.get(java.lang.String name)
          Returns the named structure.
 Structure Group.get(java.lang.String name, int rep)
          Returns a particular repetition of the named Structure.
 Structure AbstractGroup.get(java.lang.String name, int rep)
          Returns a particular repetition of the named Structure.
 Structure[] Group.getAll(java.lang.String name)
          Returns an array of Structure objects by name.
 Structure[] AbstractGroup.getAll(java.lang.String name)
          Returns an array of Structure objects by name.
 java.lang.String Message.getEncodingCharactersValue()
          Convenience method which retrieves the encoding characters value from the second field of the first segment.
 java.lang.String AbstractMessage.getEncodingCharactersValue()
          Convenience method which retrieves the encoding characters value from the second field of the first segment.
 Type[] Segment.getField(int number)
          Returns the array of Fields at the specified index.
 Type[] AbstractSegment.getField(int number)
          Returns an array of Field objects at the specified location in the segment.
 Type Segment.getField(int number, int rep)
          Returns a specific repetition of field at the specified index.
 Type AbstractSegment.getField(int number, int rep)
          Returns a specific repetition of field at the specified index.
 java.lang.Character Message.getFieldSeparatorValue()
          Convenience method which retrieves the field separator value from the first field of the first segment.
 java.lang.Character AbstractMessage.getFieldSeparatorValue()
          Convenience method which retrieves the field separator value from the first field of the first segment.
 int Segment.getLength(int number)
          Returns the maximum length of the field at the given index, in characters.
 int AbstractSegment.getLength(int number)
          Returns the maximum length of the field at the given index, in characters - fields are numbered from 1.
 int Segment.getMaxCardinality(int number)
          Returns the maximum number of repetitions of this field that are allowed.
 int AbstractSegment.getMaxCardinality(int number)
          Returns the number of repetitions of this field that are allowed.
protected  Type AbstractSegment.insertRepetition(int fieldNum, int index)
          Inserts a repetition of a given Field into repetitions of that field by name.
 Structure AbstractGroup.insertRepetition(java.lang.String name, int index)
          Inserts a repetition of a given Structure into repetitions of that structure by name.
protected  void AbstractGroup.insertRepetition(Structure structure, int index)
          Inserts a repetition of a given Structure into repetitions of that structure by name.
 boolean Group.isRepeating(java.lang.String name)
          Returns true if the named structure is repeating.
 boolean AbstractGroup.isRepeating(java.lang.String name)
          Returns true if the named structure is required.
 boolean Segment.isRequired(int number)
          Returns true if the field at the given index is required, false otherwise.
 boolean AbstractSegment.isRequired(int number)
          Returns true if the given field is required in this segment - fields are numbered from 1.
 boolean Group.isRequired(java.lang.String name)
          Returns true if the named structure is required.
 boolean AbstractGroup.isRequired(java.lang.String name)
          Returns true if the named structure is required.
 void Segment.parse(java.lang.String string)
          Parses the string into this segment using the parser returned by Message.getParser()
 void Type.parse(java.lang.String string)
          Parses the string into this message using the parser returned by #getParser()
 void Message.parse(java.lang.String string)
          Parses the string into this message using the parser returned by Message.getParser()
 void Varies.parse(java.lang.String string)
          Parses the string into this message using the parser returned by #getParser()
 void AbstractType.parse(java.lang.String string)
          Parses the string into this message using the parser returned by #getParser()
 void AbstractSegment.parse(java.lang.String string)
          Parses the string into this segment using the parser returned by Message.getParser()
 void AbstractMessage.parse(java.lang.String string)
          Parses the string into this message using the parser returned by Message.getParser()
 void AbstractPrimitive.parse(java.lang.String string)
          Parses the string into this message using the parser returned by #getParser()
protected  Type AbstractSegment.removeRepetition(int fieldNum, int index)
          Removes a repetition of a given field by name.
 Structure AbstractGroup.removeRepetition(java.lang.String name, int index)
          Removes a repetition of a given Structure objects by name.
 

Uses of HL7Exception in ca.uhn.hl7v2.parser
 

Subclasses of HL7Exception in ca.uhn.hl7v2.parser
 class EncodingNotSupportedException
          Represents a problem where a Parser does not support a particular HL7 encoding.
 

Methods in ca.uhn.hl7v2.parser that throw HL7Exception
protected abstract  java.lang.String Parser.doEncode(Message source)
          Called by encode(Message) to perform implementation-specific encoding work.
protected  java.lang.String PipeParser.doEncode(Message source)
          Formats a Message object into an HL7 message string using this parser's default encoding ("VB").
protected  java.lang.String XMLParser.doEncode(Message source)
          Formats a Message object into an HL7 message string using this parser's default encoding (XML encoding).
protected  java.lang.String GenericParser.doEncode(Message source)
          Formats a Message object into an HL7 message string using this parser's default encoding.
protected  java.lang.String FastParser.doEncode(Message source)
           
protected  java.lang.String OldPipeParser.doEncode(Message source)
          Deprecated. Formats a Message object into an HL7 message string using this parser's default encoding ("VB").
protected abstract  java.lang.String Parser.doEncode(Message source, java.lang.String encoding)
          Called by encode(Message, String) to perform implementation-specific encoding work.
protected  java.lang.String PipeParser.doEncode(Message source, java.lang.String encoding)
          Formats a Message object into an HL7 message string using the given encoding.
protected  java.lang.String XMLParser.doEncode(Message source, java.lang.String encoding)
          Formats a Message object into an HL7 message string using the given encoding.
protected  java.lang.String GenericParser.doEncode(Message source, java.lang.String encoding)
          Formats a Message object into an HL7 message string using the given encoding.
protected  java.lang.String FastParser.doEncode(Message source, java.lang.String encoding)
           
protected  java.lang.String OldPipeParser.doEncode(Message source, java.lang.String encoding)
          Deprecated. Formats a Message object into an HL7 message string using the given encoding.
abstract  java.lang.String Parser.doEncode(Segment structure, EncodingCharacters encodingCharacters)
          Encodes a particular segment and returns the encoded structure
 java.lang.String PipeParser.doEncode(Segment structure, EncodingCharacters encodingCharacters)
          Encodes a particular segment and returns the encoded structure
 java.lang.String XMLParser.doEncode(Segment structure, EncodingCharacters encodingCharacters)
          Throws unsupported operation exception
 java.lang.String GenericParser.doEncode(Segment structure, EncodingCharacters encodingCharacters)
          Encodes a particular segment and returns the encoded structure
 java.lang.String FastParser.doEncode(Segment structure, EncodingCharacters encodingCharacters)
          Not supported, throws UnsupportedOperationException
 java.lang.String OldPipeParser.doEncode(Segment structure, EncodingCharacters encodingCharacters)
          Deprecated. Encodes a particular segment and returns the encoded structure
abstract  java.lang.String Parser.doEncode(Type type, EncodingCharacters encodingCharacters)
          Encodes a particular type and returns the encoded structure
 java.lang.String PipeParser.doEncode(Type type, EncodingCharacters encodingCharacters)
          Encodes a particular type and returns the encoded structure
 java.lang.String XMLParser.doEncode(Type type, EncodingCharacters encodingCharacters)
          Throws unsupported operation exception
 java.lang.String GenericParser.doEncode(Type type, EncodingCharacters encodingCharacters)
          Encodes a particular type and returns the encoded structure
 java.lang.String FastParser.doEncode(Type type, EncodingCharacters encodingCharacters)
          Not supported, throws UnsupportedOperationException
 java.lang.String OldPipeParser.doEncode(Type type, EncodingCharacters encodingCharacters)
          Deprecated. Encodes a particular type and returns the encoded structure
protected abstract  Message Parser.doParse(java.lang.String message, java.lang.String version)
          Called by parse() to perform implementation-specific parsing work.
protected  Message PipeParser.doParse(java.lang.String message, java.lang.String version)
          Parses a message string and returns the corresponding Message object.
protected  Message XMLParser.doParse(java.lang.String message, java.lang.String version)
          Parses a message string and returns the corresponding Message object.
protected  Message GenericParser.doParse(java.lang.String message, java.lang.String version)
          Parses a message string and returns the corresponding Message object.
protected  Message FastParser.doParse(java.lang.String message, java.lang.String version)
           
protected  Message OldPipeParser.doParse(java.lang.String message, java.lang.String version)
          Deprecated. Parses a message string and returns the corresponding Message object.
static java.lang.String PipeParser.encode(Group source, EncodingCharacters encodingChars)
          Returns given group serialized as a pipe-encoded string - this method is called by encode(Message source, String encoding).
static java.lang.String OldPipeParser.encode(Group source, EncodingCharacters encodingChars)
          Deprecated. Returns given group serialized as a pipe-encoded string - this method is called by encode(Message source, String encoding).
 java.lang.String Parser.encode(Message source)
          Formats a Message object into an HL7 message string using this parser's default encoding.
 java.lang.String PipeParser.encode(Message source)
          Formats a Message object into an HL7 message string using this parser's default encoding.
 java.lang.String Parser.encode(Message source, java.lang.String encoding)
          Formats a Message object into an HL7 message string using the given encoding.
 boolean XMLParser.encode(Segment segmentObject, org.w3c.dom.Element segmentElement)
          Populates the given Element with data from the given Segment, by inserting Elements corresponding to the Segment's fields, their components, etc.
abstract  org.w3c.dom.Document XMLParser.encodeDocument(Message source)
          Creates an XML Document that corresponds to the given Message object.
 org.w3c.dom.Document DefaultXMLParser.encodeDocument(Message source)
          Creates an XML Document that corresponds to the given Message object.
protected  java.lang.Class<?> CustomModelClassFactory.findClass(java.lang.String subpackage, java.lang.String name, java.lang.String version)
          Finds appropriate classes to be loaded for the given structure/type
abstract  Segment Parser.getCriticalResponseData(java.lang.String message)
          Returns a minimal amount of data from a message string, including only the data needed to send a response to the remote system.
 Segment PipeParser.getCriticalResponseData(java.lang.String message)
           Returns a minimal amount of data from a message string, including only the data needed to send a response to the remote system.
 Segment XMLParser.getCriticalResponseData(java.lang.String message)
          Returns a minimal amount of data from a message string, including only the data needed to send a response to the remote system.
 Segment GenericParser.getCriticalResponseData(java.lang.String message)
          Returns a minimal amount of data from a message string, including only the data needed to send a response to the remote system.
 Segment FastParser.getCriticalResponseData(java.lang.String message)
           
 Segment OldPipeParser.getCriticalResponseData(java.lang.String message)
          Deprecated. Returns a minimal amount of data from a message string, including only the data needed to send a response to the remote system.
 java.lang.Class<? extends Group> ModelClassFactory.getGroupClass(java.lang.String theName, java.lang.String theVersion)
           
 java.lang.Class<? extends Group> DefaultModelClassFactory.getGroupClass(java.lang.String theName, java.lang.String theVersion)
           
 java.lang.Class<? extends Group> CustomModelClassFactory.getGroupClass(java.lang.String name, java.lang.String version)
          
 java.lang.Class<? extends Group> CanonicalModelClassFactory.getGroupClass(java.lang.String theName, java.lang.String theVersion)
          
static EncodingCharacters EncodingCharacters.getInstance(Message message)
          Returns an instance using the MSH-1 and MSH-2 values of the given message
 java.lang.Class<? extends Message> ModelClassFactory.getMessageClass(java.lang.String theName, java.lang.String theVersion, boolean isExplicit)
           
 java.lang.Class<? extends Message> DefaultModelClassFactory.getMessageClass(java.lang.String theName, java.lang.String theVersion, boolean isExplicit)
          Attempts to return the message class corresponding to the given name, by searching through default and user-defined (as per packageList()) packages.
 java.lang.Class<? extends Message> CustomModelClassFactory.getMessageClass(java.lang.String name, java.lang.String version, boolean isExplicit)
          
 java.lang.Class<? extends Message> CanonicalModelClassFactory.getMessageClass(java.lang.String theName, java.lang.String theVersion, boolean theIsExplicit)
          Attempts to return the message class corresponding to the given name, by searching through default and user-defined (as per packageList()) packages.
 java.lang.String PipeParser.getMessageStructure(java.lang.String message)
          Deprecated. this method should not be public
 java.lang.String OldPipeParser.getMessageStructure(java.lang.String message)
          Deprecated. this method should not be public
static java.lang.String Parser.getMessageStructureForEvent(java.lang.String name, java.lang.String version)
          Given a concatenation of message type and event (e.g.
 java.lang.Class<? extends Segment> ModelClassFactory.getSegmentClass(java.lang.String theName, java.lang.String theVersion)
           
 java.lang.Class<? extends Segment> DefaultModelClassFactory.getSegmentClass(java.lang.String theName, java.lang.String theVersion)
           
 java.lang.Class<? extends Segment> CustomModelClassFactory.getSegmentClass(java.lang.String name, java.lang.String version)
          
 java.lang.Class<? extends Segment> CanonicalModelClassFactory.getSegmentClass(java.lang.String theName, java.lang.String theVersion)
          
 java.lang.Class<? extends Type> ModelClassFactory.getTypeClass(java.lang.String theName, java.lang.String theVersion)
           
 java.lang.Class<? extends Type> DefaultModelClassFactory.getTypeClass(java.lang.String theName, java.lang.String theVersion)
           
 java.lang.Class<? extends Type> CustomModelClassFactory.getTypeClass(java.lang.String name, java.lang.String version)
          
 java.lang.Class<? extends Type> CanonicalModelClassFactory.getTypeClass(java.lang.String theName, java.lang.String theVersion)
          
abstract  java.lang.String Parser.getVersion(java.lang.String message)
          Returns the version ID (MSH-12) from the given message, without fully parsing the message.
 java.lang.String PipeParser.getVersion(java.lang.String message)
          Returns the version ID (MSH-12) from the given message, without fully parsing the message.
 java.lang.String XMLParser.getVersion(java.lang.String message)
           
 java.lang.String GenericParser.getVersion(java.lang.String message)
          Returns the version ID (MSH-12) from the given message, without fully parsing the message.
 java.lang.String FastParser.getVersion(java.lang.String message)
           
 java.lang.String OldPipeParser.getVersion(java.lang.String message)
          Deprecated. Returns the version ID (MSH-12) from the given message, without fully parsing the message.
static java.lang.String DefaultModelClassFactory.getVersionPackageName(java.lang.String ver)
          Returns the package name for model elements of the given version - e.g.
static java.lang.String DefaultModelClassFactory.getVersionPackagePath(java.lang.String ver)
          Returns the path to the base package for model elements of the given version - e.g.
protected  Message Parser.instantiateMessage(java.lang.String theName, java.lang.String theVersion, boolean isExplicit)
          Note that the validation context of the resulting message is set to this parser's validation context.
static java.util.Map FastParser.loadEventGuideMap(java.net.URL theMapURL)
          Loads a parsing guide map (as required for FastParser instantiation).
static Segment Parser.makeControlMSH(java.lang.String version, ModelClassFactory factory)
          Creates a version-specific MSH object and returns it as a version-independent MSH interface.
static java.lang.String[] DefaultModelClassFactory.packageList(java.lang.String version)
          Lists all the packages (user-definable) where classes for standard and custom messages may be found.
abstract  void Parser.parse(Message message, java.lang.String string)
          Parses a particular message and returns the encoded structure
 void PipeParser.parse(Message message, java.lang.String string)
           
 void XMLParser.parse(Message message, java.lang.String string)
          Throws unsupported operation exception
 void GenericParser.parse(Message message, java.lang.String string)
           
 void FastParser.parse(Message message, java.lang.String string)
          Not supported, throws UnsupportedOperationException
 void OldPipeParser.parse(Message message, java.lang.String string)
          Deprecated.  
 void XMLParser.parse(Segment segmentObject, org.w3c.dom.Element segmentElement)
          Populates the given Segment object with data from the given XML Element.
abstract  void Parser.parse(Segment segment, java.lang.String string, EncodingCharacters encodingCharacters)
          Parses a particular segment and returns the encoded structure
 void PipeParser.parse(Segment destination, java.lang.String segment, EncodingCharacters encodingChars)
          Parses a segment string and populates the given Segment object.
 void XMLParser.parse(Segment segment, java.lang.String string, EncodingCharacters encodingCharacters)
          Throws unsupported operation exception
 void GenericParser.parse(Segment segment, java.lang.String string, EncodingCharacters encodingCharacters)
          Parses a particular segment and returns the encoded structure
 void FastParser.parse(Segment segment, java.lang.String string, EncodingCharacters encodingCharacters)
          Not supported, throws UnsupportedOperationException
 void OldPipeParser.parse(Segment destination, java.lang.String segment, EncodingCharacters encodingChars)
          Deprecated. Parses a segment string and populates the given Segment object.
 void PipeParser.parse(Segment destination, java.lang.String segment, EncodingCharacters encodingChars, java.lang.Integer theRepetition)
          Parses a segment string and populates the given Segment object.
 Message Parser.parse(java.lang.String message)
          Parses a message string and returns the corresponding Message object.
 Message PipeParser.parse(java.lang.String message)
          Parses a message string and returns the corresponding Message object.
abstract  void Parser.parse(Type type, java.lang.String string, EncodingCharacters encodingCharacters)
          Parses a particular type and returns the encoded structure
 void PipeParser.parse(Type destinationField, java.lang.String data, EncodingCharacters encodingCharacters)
          Fills a field with values from an unparsed string representing the field.
 void XMLParser.parse(Type type, java.lang.String string, EncodingCharacters encodingCharacters)
          Throws unsupported operation exception
 void GenericParser.parse(Type type, java.lang.String string, EncodingCharacters encodingCharacters)
          Parses a particular type and returns the encoded structure
 void FastParser.parse(Type type, java.lang.String string, EncodingCharacters encodingCharacters)
          Not supported, throws UnsupportedOperationException
 void OldPipeParser.parse(Type destinationField, java.lang.String data, EncodingCharacters encodingCharacters)
          Deprecated. Fills a field with values from an unparsed string representing the field.
abstract  Message XMLParser.parseDocument(org.w3c.dom.Document XMLMessage, java.lang.String version)
          Creates and populates a Message object from an XML Document that contains an XML-encoded HL7 message.
 Message DefaultXMLParser.parseDocument(org.w3c.dom.Document XMLMessage, java.lang.String version)
          Creates and populates a Message object from an XML Document that contains an XML-encoded HL7 message.
protected  java.lang.String XMLParser.parseLeaf(java.lang.String message, java.lang.String tagName, int startAt)
          Attempts to retrieve the value of a leaf tag without using DOM or SAX.
 int MessagePointer.setSegment(java.lang.String segment)
          Deprecated. Parses the given String, which must contain a single traditionally encoded message segment, by forwarding it to child GroupPointers and SegmentPointers until one of them succeeds.
abstract  int Pointer.setSegment(java.lang.String segment, boolean correctOrder)
          Parses the given String, which must contain a single traditionally encoded message segment, into the current repetition of the message Structure underlying this Pointer.
 int SegmentPointer.setSegment(java.lang.String segment, boolean correctOrder)
          Deprecated. Parses the given String, which must contain a single traditionally encoded message segment, into the current repetition of the message Structure underlying this Pointer.
 int GroupPointer.setSegment(java.lang.String segment, boolean orderedCorrectly)
          Deprecated. Parses the given String, which must contain a single traditionally encoded message segment, into the current repetition of the message Group underlying this Pointer by forwarding it to each of it's children until one of them succeeds.
 

Constructors in ca.uhn.hl7v2.parser that throw HL7Exception
GroupPointer(PipeParser parser, Group parent, int position, EncodingCharacters encodingChars)
          Deprecated. Creates new GroupPointer
MessagePointer(PipeParser parser, Message message, EncodingCharacters encodingChars)
          Deprecated. Creates new GroupPointer
SegmentPointer(PipeParser parser, Group parent, int position, EncodingCharacters encodingChars)
          Deprecated. Creates new SegmentPointer
 

Uses of HL7Exception in ca.uhn.hl7v2.preparser
 

Methods in ca.uhn.hl7v2.preparser that throw HL7Exception
static java.lang.String[] PreParser.getFields(java.lang.String theMessageText, java.lang.String[] thePathSpecs)
          Extracts selected fields from a message.
static boolean XML.parseMessage(java.util.Properties props, java.lang.String message, java.util.Collection msgMask)
          parse message according to our HL7 XML handler, and dump the data found to props.
 

Uses of HL7Exception in ca.uhn.hl7v2.protocol
 

Subclasses of HL7Exception in ca.uhn.hl7v2.protocol
 class TransportException
          Represents a problem that has occured during transport of a message string to / from some other server.
 

Methods in ca.uhn.hl7v2.protocol that throw HL7Exception
 void Processor.cycle(boolean expectingAck)
          Performs a single iteration of the receiving-side of the HL7 original mode or enhanced mode processing rules (see HL7 Standard v2.5 Chapter 2; the choice of rules is determined by message values).
 void SafeStorage.discard(Transportable theMessage)
          If the given message exists in the store, it is removed.
 Message ReceivingApplication.processMessage(Message theMessage, java.util.Map theMetadata)
          Uses the contents of the message for whatever purpose the application has for this message, and returns an appropriate response message.
 Transportable ApplicationRouter.processMessage(Transportable theMessage)
          Attempts to route the given message to the associated Application and obtain a response.
 Transportable Processor.receive(java.lang.String theAckId, long theTimeoutMillis)
          Gets the message with the given acknowledgement ID from the incoming message list.
 Transportable[] SafeStorage.restore()
          Returns all messages that have been stored.
 void Processor.send(Transportable theMessage, int maxRetries, long retryIntervalMillis)
          Sends a message to a remote system via an underlying TransportLayer.
 Message Initiator.sendAndReceive(Message theMessage)
          Encodes a message, sends it to a remote system, awaits the response, parses it, and returns it.
 void SafeStorage.store(Transportable theMessage)
          Stores a message so that it can be reliably retrieved and sent to the proper application, even if this service is restarted in the mean time.
 

Uses of HL7Exception in ca.uhn.hl7v2.protocol.impl
 

Methods in ca.uhn.hl7v2.protocol.impl that throw HL7Exception
static void ParseChecker.checkParse(java.lang.String originalMessageText, Message parsedMessage, Parser parser)
          Encodes the given message and compares it to the given string.
 void ProcessorImpl.cycle(boolean expectingAck)
           
 void NullSafeStorage.discard(Transportable theMessage)
          Does nothing.
static java.util.Map MetadataExtractor.getFields(Message theMessage, java.util.List theTerserPaths)
           
static void ApplicationLoader.loadApplications(ApplicationRouter theRouter, java.net.URL theSource)
          A convenience method for binding applications to an ApplicationRouter Information about bindings is read from a file at a specified URL.
 Message AppWrapper.processMessage(Message theMessage, java.util.Map theMetadata)
           
 Transportable ApplicationRouterImpl.processMessage(Transportable theMessage)
           
 Transportable ProcessorImpl.receive(java.lang.String theAckId, long theTimeoutMillis)
           
 Transportable[] NullSafeStorage.restore()
          Returns an empty array.
 void ProcessorImpl.send(Transportable theMessage, int maxRetries, long retryIntervalMillis)
           
 Message InitiatorImpl.sendAndReceive(Message theMessage)
           
 void NullSafeStorage.store(Transportable theMessage)
          Does nothing.
static AcceptAcknowledger.AcceptACK AcceptAcknowledger.validate(ProcessorContext theContext, Transportable theMessage)
          Validates the given message against our accept validators, attempts to commit the message to safe storage, and returns an ACK message indicating acceptance or rejection at the accept level (see enhanced mode processing rules in HL7 chapter 2, v2.5).
 

Uses of HL7Exception in ca.uhn.hl7v2.util
 

Methods in ca.uhn.hl7v2.util that return HL7Exception
static HL7Exception ParseTester.parsesCorrectly(java.lang.String context, java.lang.String message)
          Checks whether the given message parses correctly with a GenericParser.
 HL7Exception[] ParseTester.testAll()
          Tests all remaining messages available from the currrent source.
 HL7Exception[] ParseTester.testAll(java.io.File source)
          Sets the source reader to point to the given file, and tests all the messages therein (if a directory, processes all contained files recursively).
 

Methods in ca.uhn.hl7v2.util that throw HL7Exception
static void DeepCopy.copy(Segment from, Segment to)
          Copies contents from the source segment to the destination segment.
 void MessageNavigator.drillDown(int rep)
          Drills down into the group at the CURRENT location.
 void MessageNavigator.drillDown(int childNumber, int rep)
          Drills down into the group at the given index within the current group -- ie sets the location pointer to the first structure within the child
static boolean EncodedMessageComparator.equivalent(java.lang.String message1, java.lang.String message2)
          Compares two HL7 messages to see if they are equivalent (in terms of their HL7 meaning).
 Group SegmentFinder.findGroup(java.lang.String namePattern, int rep)
          As findSegment(), but will only return a group.
 Segment SegmentFinder.findSegment(java.lang.String namePattern, int rep)
          Returns the first segment with a name that matches the given pattern, in a depth-first search.
static java.lang.String Terser.get(Segment segment, int field, int rep, int component, int subcomponent)
          Returns the string value of the Primitive at the given location.
 java.lang.String Terser.get(java.lang.String spec)
          Gets the string value of the field specified.
 Structure[] MessageNavigator.getCurrentChildReps()
          Returns the array of structures at the current location.
 Structure MessageNavigator.getCurrentStructure(int rep)
          Returns the given rep of the structure at the current location.
 Group SegmentFinder.getGroup(java.lang.String namePattern, int rep)
          As getSegment() but will only return a group.
static int[] Terser.getIndices(java.lang.String spec)
          Given a Terser path, returns an array containing field num, field rep, component, and subcomponent.
static CodeMapper CodeMapper.getInstance()
          Returns a singleton instance of CodeMapper.
static java.lang.String CodeMapper.getInt(java.lang.String interfaceName, int hl7Table, java.lang.String localCode)
          A convenience method that returns an interface code from an underlying CodeMapper instance by calling CodeMapper.getInstance().getInterfaceCode(...)
abstract  java.lang.String CodeMapper.getInterfaceCode(java.lang.String interfaceName, int hl7Table, java.lang.String localCode)
          Returns the interface code for the given local code, for use in the context of the given interface.
 java.lang.String FileCodeMapper.getInterfaceCode(java.lang.String interfaceName, int hl7Table, java.lang.String localCode)
          Returns the interface code for the given local code, for use in the context of the given interface.
static java.lang.String CodeMapper.getLocal(java.lang.String interfaceName, int hl7Table, java.lang.String interfaceCode)
          A convenience method that returns a local code from an underlying CodeMapper instance by calling CodeMapper.getInstance().getLocalCode(...)
abstract  java.lang.String CodeMapper.getLocalCode(java.lang.String interfaceName, int hl7Table, java.lang.String interfaceCode)
          Returns the local code for the given interface code as it appears in the given interface.
 java.lang.String FileCodeMapper.getLocalCode(java.lang.String interfaceName, int hl7Table, java.lang.String interfaceCode)
          Returns the local code for the given interface code as it appears in the given interface.
 Segment Terser.getSegment(java.lang.String segSpec)
          Returns the segment specified in the given segment_path_spec.
 Segment SegmentFinder.getSegment(java.lang.String namePattern, int rep)
          Returns the first segment with a name matching the given pattern that is a sibling of the structure at the current location.
static Message ReflectionUtil.instantiateMessage(java.lang.Class<? extends Message> theType, ModelClassFactory theModelClassFactory)
           
 void MessageNavigator.iterate(boolean segmentsOnly, boolean loop)
          Iterates through the message tree to the next segment/group location (regardless of whether an instance of the segment exists).
static boolean MessageIterator.matchExistsAfterPosition(MessageIterator.Position pos, java.lang.String name, boolean firstDescendentsOnly, boolean upToFirstRequired)
          A match exists for the given name somewhere after the given position (in the normal serialization order).
 boolean MessageQuery.Result.next()
          Advances to the next "row" of data if one is available.
 void MessageNavigator.nextChild()
          Moves to the next sibling of the current location.
abstract  void CodeMapper.refreshCache()
          If values are cached in such a way that they are not guaranteed to be current, a call to this method refreshes the values.
 void FileCodeMapper.refreshCache()
          If values are cached in such a way that they are not guaranteed to be current, a call to this method refreshes the values.
static void Terser.set(Segment segment, int field, int rep, int component, int subcomponent, java.lang.String value)
          Sets the string value of the Primitive at the given location.
 void Terser.set(java.lang.String spec, java.lang.String value)
          Sets the string value of the field specified.
 void MessageNavigator.toChild(int child)
          Moves to the sibling of the current location at the specified index.
 

Constructors in ca.uhn.hl7v2.util that throw HL7Exception
FileCodeMapper()
          Creates a new instance of FileCodeMapper.
 

Uses of HL7Exception in ca.uhn.hl7v2.validation
 

Methods in ca.uhn.hl7v2.validation that throw HL7Exception
 boolean MessageValidator.validate(Message message)
           
 boolean MessageValidator.validate(java.lang.String message, boolean isXML, java.lang.String version)
           
 

Uses of HL7Exception in ca.uhn.hl7v2.validation.app
 

Methods in ca.uhn.hl7v2.validation.app that return HL7Exception
abstract  HL7Exception[] TestApplication.test(Message in)
          Tests the message in some way (as defined by implementing class).
 HL7Exception[] ProfileTestApplication.test(Message in)
          Tests the message against a profile or profiles.
 HL7Exception[] MultiTestApplication.test(Message in)
          Tests the message by passing it to all test apps that have been registered using addTest().
 

Methods in ca.uhn.hl7v2.validation.app that throw HL7Exception
 Message TestApplication.processMessage(Message in)
          Calls test(Message in), routes resulting exceptions to configured destinations, and returns an ack (which should not normally be used since the test app is intended to operate in parallel with system-to-system communication).
abstract  HL7Exception[] TestApplication.test(Message in)
          Tests the message in some way (as defined by implementing class).
 HL7Exception[] ProfileTestApplication.test(Message in)
          Tests the message against a profile or profiles.
 HL7Exception[] MultiTestApplication.test(Message in)
          Tests the message by passing it to all test apps that have been registered using addTest().
 



Copyright © 2001-2011 University Health Network. All Rights Reserved.