Uses of Class
ca.uhn.hl7v2.HL7Exception
Packages that use HL7Exception
Package
Description
-
Uses of HL7Exception in ca.uhn.hl7v2
Methods in ca.uhn.hl7v2 that throw HL7ExceptionModifier and TypeMethodDescriptionConstruct a new HL7 Client which will connect to an external TCP server for the purpose of sending messages (and receiving responses).Construct a new HL7 two-port client which will connect to an external TCP server for the purpose of sending messages (and receiving responses).DefaultHapiContext.newLazyClient(String host, int port, boolean tls) DefaultHapiContext.newLazyClient(String host, int outboundPort, int inboundPort, boolean tls) HapiContext.newLazyClient(String host, int port, boolean tls) Construct a new HL7 Client which will connect to an external TCP server for the purpose of sending messages (and receiving responses).HapiContext.newLazyClient(String host, int outboundPort, int inboundPort, boolean tls) Construct a new HL7 two-port client which will connect to an external TCP server for the purpose of sending messages (and receiving responses).<T extends Message>
TDefaultHapiContext.newMessage(Class<T> clazz) DefaultHapiContext.newMessage(String eventType, String triggerEvent, Version version) <T extends Message>
THapiContext.newMessage(Class<T> clazz) Creates a new message of the provided message structure class, without further initializing the messageHapiContext.newMessage(String eventType, String triggerEvent, Version version) Creates a new message of the given event type, trigger and version, and initializes the message headerAbstractHL7Exception.populateResponse(Message emptyResponse, AcknowledgmentCode acknowledgmentCode, int repetition) Populates the generated response based on this exception. -
Uses of HL7Exception in ca.uhn.hl7v2.app
Subclasses of HL7Exception in ca.uhn.hl7v2.appMethods in ca.uhn.hl7v2.app that throw HL7ExceptionModifier and TypeMethodDescriptionConnectionHub.attach(ca.uhn.hl7v2.app.ConnectionData data) ConnectionHub.attach(DefaultHapiContext hapiContext, String host, int port, boolean tls) ConnectionHub.attach(DefaultHapiContext hapiContext, String host, int outboundPort, int inboundPort, boolean tls) Returns a Connection to the given address, opening this Connection if necessary.ConnectionHub.attach(String host, int outboundPort, int inboundPort, Parser parser, LowerLayerProtocol llp, boolean tls) ConnectionHub.attach(String host, int outboundPort, int inboundPort, Parser parser, LowerLayerProtocol llp, boolean tls, SocketFactory socketFactory) ConnectionHub.attach(String host, int outboundPort, int inboundPort, Parser parser, Class<? extends LowerLayerProtocol> llpClass) ConnectionHub.attach(String host, int outboundPort, int inboundPort, Parser parser, Class<? extends LowerLayerProtocol> llpClass, boolean tls) ConnectionHub.attach(String host, int port, Parser parser, LowerLayerProtocol llp) ConnectionHub.attach(String host, int port, Parser parser, LowerLayerProtocol llp, boolean tls) ConnectionHub.attach(String host, int port, Parser parser, LowerLayerProtocol llp, boolean tls, SocketFactory socketFactory) ConnectionHub.attach(String host, int port, Parser parser, Class<? extends LowerLayerProtocol> llpClass) ConnectionHub.attach(String host, int port, Parser parser, Class<? extends LowerLayerProtocol> llpClass, boolean tls) ConnectionHub.attachLazily(DefaultHapiContext hapiContext, String host, int port, boolean tls) ConnectionHub.attachLazily(DefaultHapiContext hapiContext, String host, int outboundPort, int inboundPort, boolean tls) ConnectionHub.attachLazily(String host, int port, boolean tls) Returns a Connection to the given address, opening this Connection if necessary.ConnectionHub.attachLazily(String host, int outboundPort, int inboundPort, boolean tls) ConnectionHub.attachLazily(String host, int outboundPort, int inboundPort, Parser parser, LowerLayerProtocol llp, boolean tls) ConnectionHub.attachLazily(String host, int outboundPort, int inboundPort, Parser parser, LowerLayerProtocol llp, boolean tls, SocketFactory socketFactory) ConnectionHub.attachLazily(String host, int outboundPort, int inboundPort, Parser parser, Class<? extends LowerLayerProtocol> llpClass) ConnectionHub.attachLazily(String host, int outboundPort, int inboundPort, Parser parser, Class<? extends LowerLayerProtocol> llpClass, boolean tls) ConnectionHub.attachLazily(String host, int port, Parser parser, LowerLayerProtocol llp) ConnectionHub.attachLazily(String host, int port, Parser parser, LowerLayerProtocol llp, boolean tls) ConnectionHub.attachLazily(String host, int port, Parser parser, LowerLayerProtocol llp, boolean tls, SocketFactory socketFactory) voidHL7Service.loadApplicationsFromFile(File f) A convenience method for registering applications (usingregisterApplication()) with this service.static MessageDeprecated.static MessageDeprecated.Application.processMessage(T in) Uses the contents of the message for whatever purpose the Application has for this message, and returns an appropriate response message.ActiveInitiator.sendAndReceive(Message out) Sends a message to a responder system, receives the reply, and returns the reply as a Message object.Initiator.sendAndReceive(Message outgoing) Sends a message to a server and waits for the response -
Uses of HL7Exception in ca.uhn.hl7v2.conf.check
Subclasses of HL7Exception in ca.uhn.hl7v2.conf.checkModifier and TypeClassDescriptionclassAn exception indicating that some message contents don't reflect a static profile.classAn exception indicating that a static profile doesn't correspond to HL7 rules.classAn element that a profile defines as "not used" (X) is present in the message.Methods in ca.uhn.hl7v2.conf.check that return HL7ExceptionModifier and TypeMethodDescriptionprotected HL7ExceptionDefaultValidator.testCardinality(int reps, int min, int max, String usage, String name, List<HL7Exception> exList) Checks cardinality and creates an appropriate exception if out of bounds.DefaultValidator.testLength(Type type, int maxLength) Tests whether the given type falls within a maximum length.Validates the given message against the given static definition from a conformance profile.Methods in ca.uhn.hl7v2.conf.check that return types with arguments of type HL7ExceptionModifier and TypeMethodDescriptionprotected List<HL7Exception>DefaultValidator.doTestComponent(Type type, Component profile, String profileID, boolean theValidateChildren) protected List<HL7Exception>DefaultValidator.doTestField(Type type, Field profile, boolean escape, String profileID, boolean theValidateChildren) protected List<HL7Exception>DefaultValidator.doTestGroup(Group group, AbstractSegmentContainer profile, String profileID, boolean theValidateChildren) protected List<HL7Exception>DefaultValidator.doTestSegment(Segment segment, Seg profile, String profileID, boolean theValidateChildren) DefaultValidator.testComponent(Type type, Component profile, String profileID) Tests a group against a group section of a profile.DefaultValidator.testSegment(Segment segment, Seg profile, String profileID) Tests a segment against a segment section of a profile.DefaultValidator.testStructure(Structure s, ProfileStructure profile, String profileID) Tests a structure (segment or group) against the corresponding part of a profile.DefaultValidator.testType(Type type, AbstractComponent<?> profile, String encoded, String profileID) Tests a Type against the corresponding section of a profile.Method parameters in ca.uhn.hl7v2.conf.check with type arguments of type HL7ExceptionModifier and TypeMethodDescriptionprotected voidDefaultValidator.addTableTestResult(String profileID, String codeSystem, String value, List<HL7Exception> exList) protected voidDefaultValidator.checkConstantValue(String value, String encoded, List<HL7Exception> exList) protected voidDefaultValidator.checkDataType(String dataType, Type type, List<HL7Exception> exList) protected voidDefaultValidator.checkEventType(String evType, StaticDef profile, List<HL7Exception> exList) protected voidDefaultValidator.checkExtraComponents(Composite comp, int numInProfile, List<HL7Exception> exList) Tests for extra components (ie any not defined in the profile)protected voidDefaultValidator.checkLength(long length, String name, String encoded, List<HL7Exception> exList) protected voidDefaultValidator.checkMessageStructure(String msgStruct, StaticDef profile, List<HL7Exception> exList) protected voidDefaultValidator.checkMessageType(String msgType, StaticDef profile, List<HL7Exception> exList) protected HL7ExceptionDefaultValidator.testCardinality(int reps, int min, int max, String usage, String name, List<HL7Exception> exList) Checks cardinality and creates an appropriate exception if out of bounds.protected voidDefaultValidator.testTypeAgainstTable(Type type, AbstractComponent<?> profile, String profileID, List<HL7Exception> exList) Tests table values for ID, IS, and CE types.protected voidTests an element against the corresponding usage code.protected voidDefaultValidator.testValueAgainstTable(String profileID, String codeSystem, String value, List<HL7Exception> exList) Methods in ca.uhn.hl7v2.conf.check that throw HL7ExceptionModifier and TypeMethodDescriptionprotected List<HL7Exception>DefaultValidator.doTestComponent(Type type, Component profile, String profileID, boolean theValidateChildren) protected List<HL7Exception>DefaultValidator.doTestField(Type type, Field profile, boolean escape, String profileID, boolean theValidateChildren) DefaultValidator.testComponent(Type type, Component profile, String profileID) Validates the given message against the given static definition from a conformance profile. -
Uses of HL7Exception in ca.uhn.hl7v2.model
Subclasses of HL7Exception in ca.uhn.hl7v2.modelModifier and TypeClassDescriptionclassRepresents 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 HL7ExceptionModifier and TypeMethodDescriptionAbstractMessage.generateACK(AcknowledgmentCode theAcknowledgementCode, HL7Exception theException) Generates and returns an ACK message which would be used to acknowledge this message successfully.AbstractMessage.generateACK(String theAcknowledgementCode, HL7Exception theException) Deprecated.Message.generateACK(AcknowledgmentCode theAcknowlegementCode, HL7Exception theException) Generates and returns an ACK message which would be used to acknowledge this message successfully.Message.generateACK(String theAcknowldegementCode, HL7Exception theException) Deprecated.Methods in ca.uhn.hl7v2.model that throw HL7ExceptionModifier and TypeMethodDescriptionbooleanAbstractComposite.accept(MessageVisitor visitor, Location location) booleanAbstractGroup.accept(MessageVisitor visitor, Location location) Iterates over the contained structures and calls the visitor for each of them.booleanAbstractMessage.accept(MessageVisitor visitor, Location location) booleanAbstractPrimitive.accept(MessageVisitor visitor, Location location) booleanAbstractSegment.accept(MessageVisitor visitor, Location location) Iterates over the contained fields and calls the visitor for each of them.booleanField.accept(MessageVisitor visitor, Location currentLocation) booleanVaries.accept(MessageVisitor visitor, Location currentLocation) booleanVisitable.accept(MessageVisitor visitor, Location currentLocation) Callback method for the visitor.protected StringAdds a new Structure (group or segment) to this Group.protected StringAbstractGroup.add(Class<? extends Structure> c, boolean required, boolean repeating, boolean choiceElement) Adds a new Structure (group or segment) to this Group.protected StringAdds a new Structure (group or segment) to this Group.protected voidAbstractSegment.add(Class<? extends Type> c, boolean required, int maxReps, int length, Object[] constructorArgs) Deprecated.protected voidAbstractSegment.add(Class<? extends Type> c, boolean required, int maxReps, int length, Object[] constructorArgs, String name) Adds a field to the segment.AbstractGroup.addNonstandardSegment(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).AbstractGroup.addNonstandardSegment(String theName, int theIndex) Group.addNonstandardSegment(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).Group.addNonstandardSegment(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).AbstractMessage.copy()intAbstractGroup.currentReps(String name) Returns the number of existing repetitions of the named structure.AbstractMessage.encode()Encodes this message using the parser returned byMessage.getParser()AbstractPrimitive.encode()Encodes this type using HL7 encoding.AbstractSegment.encode()Encodes this message using the parser returned byMessage.getParser()AbstractType.encode()Encodes this type using HL7 encoding.Message.encode()Encodes this message using the parser returned byMessage.getParser()Segment.encode()Encodes this message using the parser returned byMessage.getParser()Type.encode()Encodes this type using HL7 encoding.Varies.encode()Encodes this type using HL7 encoding.booleanbooleanbooleanbooleanbooleanbooleanLeaves a compositebooleanLeaves a field.booleanLeaves a group (or message)booleanLeaves a messagebooleanLeaves a segmentbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanAbstractMessage.fillResponseHeader(Message out, AcknowledgmentCode code) Populates certain required fields in a response message header, using information from the corresponding inbound message.static voidVaries.fixOBX5(Segment segment, ModelClassFactory factory) Deprecated.use FixOBX5#fixOBX5static voidVaries.fixOBX5(Segment segment, ModelClassFactory factory, ParserConfiguration parserConfiguration) Deprecated.use FixOBX5#fixOBX5AbstractMessage.generateACK()Generates and returns an ACK message which would be used to acknowledge this message successfully, with an MSA-1 code of "AA".AbstractMessage.generateACK(AcknowledgmentCode theAcknowledgementCode, HL7Exception theException) Generates and returns an ACK message which would be used to acknowledge this message successfully.AbstractMessage.generateACK(String theAcknowledgementCode, HL7Exception theException) Deprecated.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.generateACK(AcknowledgmentCode theAcknowlegementCode, HL7Exception theException) Generates and returns an ACK message which would be used to acknowledge this message successfully.Message.generateACK(String theAcknowldegementCode, HL7Exception theException) Deprecated.Returns the named structure.Returns a particular repetition of the named Structure.Returns the named structure.Returns a particular repetition of the named Structure.Returns an array of Structure objects by name.Returns an array of Structure objects by name.AbstractGroup.getAllAsList(String name, Class<T> theType) Returns a list containing all existing repetitions of the structure identified by nameAbstractMessage.getEncodingCharactersValue()Convenience method which retrieves the encoding characters value from the second field of the first segment.Message.getEncodingCharactersValue()Convenience method which retrieves the encoding characters value from the second field of the first segment.Type[]AbstractSegment.getField(int number) Returns an array of Field objects at the specified location in the segment.AbstractSegment.getField(int number, int rep) Returns a specific repetition of field at the specified index.Type[]Segment.getField(int number) Returns the array of Fields at the specified index.Segment.getField(int number, int rep) Returns a specific repetition of field at the specified index.intAbstractGroup.getFieldNumForName(String name) Given a child structure name, returns the child index (which is 1-indexed, meaning that the first child is at index 1AbstractMessage.getFieldSeparatorValue()Convenience method which retrieves the field separator value from the first field of the first segment.Message.getFieldSeparatorValue()Convenience method which retrieves the field separator value from the first field of the first segment.intAbstractSegment.getLength(int number) Returns the maximum length of the field at the given index, in characters - fields are numbered from 1.intSegment.getLength(int number) Returns the maximum length of the field at the given index, in characters.intAbstractSegment.getMaxCardinality(int number) Returns the number of repetitions of this field that are allowed.intSegment.getMaxCardinality(int number) Returns the maximum number of repetitions of this field that are allowed.voidAbstractMessage.initQuickstart(String messageCode, String messageTriggerEvent, String processingId) Quickly initializes this message with common values in the first (MSH) segment.protected StringAbstractGroup.insert(Class<? extends Structure> c, boolean required, boolean repeating, boolean choiceElement, int index, String name) protected StringAbstractGroup.insert(Class<? extends Structure> c, boolean required, boolean repeating, int index, String name) Inserts the given structure into this group, at the indicated index number.AbstractGroup.insertRepetition(String name, int index) Inserts a repetition of a given Structure into repetitions of that structure by name.protected voidAbstractGroup.insertRepetition(String name, Structure structure, int index) Inserts a repetition of a given Structure into repetitions of that structure by name.AbstractSegment.insertRepetition(int fieldNum, int index) Inserts a repetition of a given Field into repetitions of that field by name.booleanAbstractGroup.isChoiceElement(String theName) Returns true if the named structure is a "choice element".booleanGroup.isChoiceElement(String name) Returns true if the named structure is a "choice element".booleanAbstractComposite.isEmpty()booleanAbstractGroup.isEmpty()Returns true if this Visitable has actual contentbooleanAbstractPrimitive.isEmpty()booleanAbstractSegment.isEmpty()booleanAbstractType.isEmpty()Returns true if this Visitable has actual contentbooleanExtraComponents.isEmpty()Returns true if extra components are emptybooleanVaries.isEmpty()Returns true if this Visitable has actual contentbooleanVisitable.isEmpty()Returns true if this Visitable has actual contentbooleanReturns true if the named structure is a groupbooleanReturns true if the named structure is a group.booleanAbstractGroup.isRepeating(String name) Returns true if the named structure is required.booleanGroup.isRepeating(String name) Returns true if the named structure is repeating.booleanAbstractGroup.isRequired(String name) Returns true if the named structure is required.booleanAbstractSegment.isRequired(int number) Returns true if the given field is required in this segment - fields are numbered from 1.booleanGroup.isRequired(String name) Returns true if the named structure is required.booleanSegment.isRequired(int number) Returns true if the field at the given index is required, false otherwise.voidParses the string into this message using the parser returned byMessage.getParser()voidParses the string into this type and replaces the current contents with the parsed value.voidParses the string into this segment using the parser returned byMessage.getParser()voidParses the string into this type and replaces the current contents with the parsed value.voidParses the string into this message using the parser returned byMessage.getParser()voidParses the string into this segment using the parser returned byMessage.getParser()voidParses the string into this type and replaces the current contents with the parsed value.voidParses the string into this type and replaces the current contents with the parsed value.AbstractMessage.printStructure()Prints a summary of the contents and structure of this message.AbstractMessage.printStructure(boolean includeEmptyElements) Prints the message structure in a similar way toAbstractMessage.printStructure()but optionally excludes elements with no contents.Message.printStructure()Prints a summary of the contents and structure of this message.AbstractGroup.removeRepetition(String name, int index) Removes a repetition of a given Structure objects by name.AbstractSegment.removeRepetition(int fieldNum, int index) Removes a repetition of a given field by name.booleanbooleanbooleanbooleanbooleanbooleanEnters a compositebooleanEnters a field.booleanEnters a group (or message)booleanEnters a messagebooleanEnters a segmentfinal booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanprotected StructureAbstractGroup.tryToInstantiateStructure(Class<? extends Structure> c, String name) Attempts to create an instance of the given class and return it as a Structure.static MessageUnmodifiable.unmodifiableMessage(HapiContext context, String s) Parses the string to anUnmodifiable.UnmodifiableMessageusing the specific HapiContext.booleanbooleanVisits a primitivebooleanstatic <T extends MessageVisitor>
TLets a visitor visit a message of parts thereof.booleanprotected voidAbstractGroup.visitNestedStructures(MessageVisitor visitor, Location location) -
Uses of HL7Exception in ca.uhn.hl7v2.model.primitive
Methods in ca.uhn.hl7v2.model.primitive that throw HL7Exception -
Uses of HL7Exception in ca.uhn.hl7v2.parser
Subclasses of HL7Exception in ca.uhn.hl7v2.parserModifier and TypeClassDescriptionclassRepresents a problem where a Parser does not support a particular HL7 encoding.Methods in ca.uhn.hl7v2.parser that throw HL7ExceptionModifier and TypeMethodDescriptionprotected voidParser.applySuperStructureName(Message theMessage) protected voidXMLParser.assertNamespaceURI(String ns) static voidParser.assertVersionExists(String version) LikeParser.validVersion(String)but throws an HL7Exception insteadprotected StringFormats a Message object into an HL7 message string using this parser's default encoding.protected StringFormats a Message object into an HL7 message string using the given encoding.GenericParser.doEncode(Segment structure, EncodingCharacters encodingCharacters) Encodes a particular segment and returns the encoded structureGenericParser.doEncode(Type type, EncodingCharacters encodingCharacters) Encodes a particular type and returns the encoded structureprotected abstract StringCalled by encode(Message) to perform implementation-specific encoding work.protected abstract StringCalled by encode(Message, String) to perform implementation-specific encoding work.abstract StringParser.doEncode(Segment structure, EncodingCharacters encodingCharacters) Encodes a particular segment and returns the encoded structureabstract StringParser.doEncode(Type type, EncodingCharacters encodingCharacters) Encodes a particular type and returns the encoded structureprotected StringFormats a Message object into an HL7 message string using this parser's default encoding ("VB").protected StringFormats a Message object into an HL7 message string using the given encoding.protected StringFormats a Message object into an HL7 message string using this parser's default encoding (XML encoding).protected StringFormats a Message object into an HL7 message string using the given encoding.protected MessageParses a message string and returns the corresponding Message object.protected abstract MessageCalled by parse() to perform implementation-specific parsing work.protected MessageParses a message string and returns the corresponding Message object.protected MessageParses a message string and returns the corresponding Message object.protected MessageGenericParser.doParseForSpecificPackage(String theMessage, String theVersion, String thePackageName) protected abstract MessageParser.doParseForSpecificPackage(String message, String version, String packageName) Attempt the parse a message using a specific model packageprotected MessagePipeParser.doParseForSpecificPackage(String message, String version, String packageName) Attempt the parse a message using a specific model packageFormats a Message object into an HL7 message string using this parser's default encoding.Formats a Message object into an HL7 message string using the given encoding.static StringPipeParser.encode(Group source, EncodingCharacters encodingChars) Returns given group serialized as a pipe-encoded string - this method is called by encode(Message source, String encoding).Formats a Message object into an HL7 message string using this parser's default encoding.booleanPopulates the given Element with data from the given Segment, by inserting Elements corresponding to the Segment's fields, their components, etc.DefaultXMLParser.encodeDocument(Message source) Creates an XML Document that corresponds to the given Message object.abstract DocumentXMLParser.encodeDocument(Message source) Creates an XML Document that corresponds to the given Message object.static voidFixFieldDataType.fix(Segment segment, int typeField, int dataField, String defaultType, String invalidType, ModelClassFactory factory, ParserConfiguration parserConfiguration) A more generic version of the task of adapting a varies field to a given typestatic voidFixFieldDataType.fixMFE4(Segment segment, ModelClassFactory factory, ParserConfiguration parserConfiguration) Sets the data type of field 4 in the given MFE segment to the value of MFE-5.static voidFixFieldDataType.fixOBX5(Segment segment, ModelClassFactory factory, ParserConfiguration parserConfiguration) Sets the data type of field 5 in the given OBX segment to the value of OBX-2.GenericParser.getCriticalResponseData(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.abstract SegmentParser.getCriticalResponseData(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.PipeParser.getCriticalResponseData(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.XMLParser.getCriticalResponseData(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.AbstractModelClassFactory.getEventMapForVersion(Version version) Returns the event map for a given HL7 version.CanonicalModelClassFactory.getGroupClass(String theName, String theVersion) CustomModelClassFactory.getGroupClass(String name, String version) DefaultModelClassFactory.getGroupClass(String theName, String theVersion) ModelClassFactory.getGroupClass(String theName, String theVersion) static EncodingCharactersEncodingCharacters.getInstance(Message message) Returns an instance using the MSH-1 and MSH-2 values of the given messageCanonicalModelClassFactory.getMessageClass(String theName, 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.CustomModelClassFactory.getMessageClass(String name, String version, boolean isExplicit) DefaultModelClassFactory.getMessageClass(String theName, 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.ModelClassFactory.getMessageClass(String theName, String theVersion, boolean isExplicit) CustomModelClassFactory.getMessageClassInASpecificPackage(String theName, String theVersion, boolean theIsExplicit, String thePackageName) DefaultModelClassFactory.getMessageClassInASpecificPackage(String theName, String theVersion, boolean isExplicit, String packageName) Retrieves and instantiates a message class by looking in a specific java package for the message type.ModelClassFactory.getMessageClassInASpecificPackage(String theName, String theVersion, boolean isExplicit, String packageName) Retrieves a message class by looking in a specific java package for the message type.PipeParser.getMessageStructure(String message) Deprecated.this method should not be publicAbstractModelClassFactory.getMessageStructureForEvent(String name, Version version) CustomModelClassFactory.getMessageStructureForEvent(String eventName, Version version) Looks up its own event map.DefaultModelClassFactory.getMessageStructureForEvent(String name, Version version) Returns the event structure.ModelClassFactory.getMessageStructureForEvent(String eventName, Version version) Parser.getMessageStructureForEvent(String name, String version) Deprecated.CanonicalModelClassFactory.getSegmentClass(String theName, String theVersion) CustomModelClassFactory.getSegmentClass(String name, String version) DefaultModelClassFactory.getSegmentClass(String theName, String theVersion) ModelClassFactory.getSegmentClass(String theName, String theVersion) CanonicalModelClassFactory.getTypeClass(String theName, String theVersion) CustomModelClassFactory.getTypeClass(String name, String version) DefaultModelClassFactory.getTypeClass(String theName, String theVersion) ModelClassFactory.getTypeClass(String theName, String theVersion) GenericParser.getVersion(String message) Returns the version ID (MSH-12) from the given message, without fully parsing the message.abstract StringParser.getVersion(String message) Returns the version ID (MSH-12) from the given message, without fully parsing the message.PipeParser.getVersion(String message) Returns the version ID (MSH-12) from the given message, without fully parsing the message.XMLParser.getVersion(String message) static StringDefaultModelClassFactory.getVersionPackageName(String ver) Returns the package name for model elements of the given version - e.g.static StringDefaultModelClassFactory.getVersionPackagePath(String ver) Returns the path to the base package for model elements of the given version - e.g.protected MessageParser.instantiateMessage(String theName, String theVersion, boolean isExplicit) Note that the validation context of the resulting message is set to this parser's validation context.protected MessageParser.instantiateMessageInASpecificPackage(String theName, String theVersion, boolean isExplicit, String packageName) Instantiate a message type using a specific package namestatic voidstatic SegmentParser.makeControlMSH(String version, ModelClassFactory factory) Creates a version-specific MSH object and returns it as a version-independent MSH interface.voidParses a particular message and returns the encoded structurevoidvoidGenericParser.parse(Segment segment, String string, EncodingCharacters encodingCharacters) Parses a particular segment and returns the encoded structurevoidGenericParser.parse(Type type, String string, EncodingCharacters encodingCharacters) Parses a particular type and returns the encoded structureParses a message string and returns the corresponding Message object.abstract voidParses a particular message and returns the encoded structureabstract voidParser.parse(Segment segment, String string, EncodingCharacters encodingCharacters) Parses a particular segment and returns the encoded structureabstract voidParser.parse(Type type, String string, EncodingCharacters encodingCharacters) Parses a particular type and returns the encoded structureParses a message string and returns the corresponding Message object.voidvoidPipeParser.parse(Segment destination, String segment, EncodingCharacters encodingChars) Parses a segment string and populates the given Segment object.voidPipeParser.parse(Segment destination, String segment, EncodingCharacters encodingChars, int theRepetition) Parses a segment string and populates the given Segment object.voidPipeParser.parse(Type destinationField, String data, EncodingCharacters encodingCharacters) Fills a field with values from an unparsed string representing the field.Parses a message string and returns the corresponding Message object.voidPopulates the given Segment object with data from the given XML Element.voidPopulates the given Type object with data from the given XML Element.DefaultXMLParser.parseDocument(Document xmlMessage, String version) Creates and populates a Message object from an XML Document that contains an XML-encoded HL7 message.abstract MessageXMLParser.parseDocument(Document xmlMessage, String version) Creates and populates a Message object from an XML Document that contains an XML-encoded HL7 message.Parser.parseForSpecificPackage(String message, String packageName) Parse a message using a specific model package instead of the default, usingModelClassFactory.getMessageClassInASpecificPackage(String, String, boolean, String).protected static StringAttempts to retrieve the value of a leaf tag without using DOM or SAX.protected DocumentXMLParser.parseStringIntoDocument(String message) Parses a string containing an XML document into a Document object. -
Uses of HL7Exception in ca.uhn.hl7v2.preparser
Methods in ca.uhn.hl7v2.preparser that throw HL7ExceptionModifier and TypeMethodDescriptionstatic String[]Extracts selected fields from a message.static booleanXML.parseMessage(Properties props, String message, Collection<DatumPath> 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.protocolModifier and TypeClassDescriptionclassRepresents a problem that has occured during transport of a message string to / from some other server.Methods in ca.uhn.hl7v2.protocol that throw HL7ExceptionModifier and TypeMethodDescriptionvoidProcessor.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).ApplicationRouter.processMessage(Transportable theMessage) Attempts to route the given message to the associatedApplicationand obtain a response.ApplicationWrapper.processMessage(Message theMessage, Map<String, Object> theMetadata) Uses the contents of the message for whatever purpose the application has for this message, and returns an appropriate response message.ReceivingApplication.processMessage(T theMessage, Map<String, Object> theMetadata) Uses the contents of the message for whatever purpose the application has for this message, and returns an appropriate response message.Gets the message with the given acknowledgement ID from the incoming message list.voidProcessor.send(Transportable theMessage, int maxRetries, long retryIntervalMillis) Sends a message to a remote system via an underlyingTransportLayer.Initiator.sendAndReceive(Message theMessage) Encodes a message, sends it to a remote system, awaits the response, parses it, and returns it.voidSafeStorage.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 HL7ExceptionModifier and TypeMethodDescriptionstatic voidParseChecker.checkParse(String originalMessageText, Message parsedMessage, Parser parser) Encodes the given message and compares it to the given string.voidProcessorImpl.cycle(boolean expectingAck) static voidApplicationLoader.loadApplications(ApplicationRouter theRouter, URL theSource) A convenience method for binding applications to anApplicationRouterInformation about bindings is read from a file at a specified URL.ApplicationRouterImpl.logAndMakeErrorMessage(Exception e, Segment inHeader, Parser p, String encoding) Logs the given exception and creates an error message to send to the remote system.ApplicationRouterImpl.processMessage(Transportable theMessage) AppWrapper.processMessage(Message theMessage, Map<String, Object> theMetadata) voidProcessorImpl.send(Transportable theMessage, int maxRetries, long retryIntervalMillis) InitiatorImpl.sendAndReceive(Message theMessage) static AcceptAcknowledger.AcceptACKAcceptAcknowledger.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 throw HL7ExceptionModifier and TypeMethodDescriptionstatic voidCopies contents from the source segment to the destination segment.voidMessageNavigator.drillDown(int rep) Drills down into the group at the CURRENT location.voidMessageNavigator.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 childstatic booleanEncodedMessageComparator.equivalent(String message1, String message2) Compares two HL7 messages to see if they are equivalent (in terms of their HL7 meaning).As findSegment(), but will only return a group.SegmentFinder.findSegment(String namePattern, int rep) Returns the first segment with a name that matches the given pattern, in a depth-first search.static StringReturns the string value of the Primitive at the given location.Gets the string value of the field specified.MessageNavigator.getCurrentChildReps()Returns the array of structures at the current location.MessageNavigator.getCurrentStructure(int rep) Returns the given rep of the structure at the current location.As getSegment() but will only return a group.static int[]Terser.getIndices(String spec) Given a Terser path, returns an array containing field num, field rep, component, and subcomponent.static CodeMapperCodeMapper.getInstance()Returns a singleton instance of CodeMapper.static StringA convenience method that returns an interface code from an underlying CodeMapper instance by callingCodeMapper.getInstance().getInterfaceCode(...)abstract StringCodeMapper.getInterfaceCode(String interfaceName, int hl7Table, String localCode) Returns the interface code for the given local code, for use in the context of the given interface.FileCodeMapper.getInterfaceCode(String interfaceName, int hl7Table, String localCode) Returns the interface code for the given local code, for use in the context of the given interface.static StringA convenience method that returns a local code from an underlying CodeMapper instance by callingCodeMapper.getInstance().getLocalCode(...)abstract StringCodeMapper.getLocalCode(String interfaceName, int hl7Table, String interfaceCode) Returns the local code for the given interface code as it appears in the given interface.FileCodeMapper.getLocalCode(String interfaceName, int hl7Table, String interfaceCode) Returns the local code for the given interface code as it appears in the given interface.SegmentFinder.getSegment(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.Terser.getSegment(String segSpec) Returns the segment specified in the given segment_path_spec.static <T> TReflectionUtil.instantiate(Class<T> theType) static <T extends Message>
TReflectionUtil.instantiateMessage(Class<T> theType, ModelClassFactory theModelClassFactory) static <T extends Structure>
TReflectionUtil.instantiateStructure(Class<T> theType, Group parent, ModelClassFactory theModelClassFactory) 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 booleanMessageIterator.matchExistsAfterPosition(MessageIterator.Position pos, String name, boolean firstDescendentsOnly, boolean upToFirstRequired) A match exists for the given name somewhere after the given position (in the normal serialization order).booleanMessageQuery.Result.next()Advances to the next "row" of data if one is available.voidMessageNavigator.nextChild()Moves to the next sibling of the current location.abstract voidCodeMapper.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.voidFileCodeMapper.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 voidSets the string value of the Primitive at the given location.static voidvoidSets the string value of the field specified.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 -
Uses of HL7Exception in ca.uhn.hl7v2.validation
Methods in ca.uhn.hl7v2.validation with parameters of type HL7ExceptionModifier and TypeMethodDescriptionstatic ValidationExceptionValidationException.fromHL7Exception(HL7Exception e) Methods in ca.uhn.hl7v2.validation that throw HL7ExceptionModifier and TypeMethodDescriptionprotected MessageRespondingValidationExceptionHandler.generateResponseMessage(Object request) Generates an empty response message.protected voidRespondingValidationExceptionHandler.populateResponseMessage(Message response) Populates the generated response based on the collectedValidationExceptions.ReportingValidationExceptionHandler.result()If the validation failed, throws Exception or returnsfalse, depending on {linkReportingValidationExceptionHandler.throwFirstException.final MessageRespondingValidationExceptionHandler.result()Returns the generated response message.ValidationExceptionHandler.result()Returns an overall validation result based on an aggregation of all exceptions thrown during the validation process.CallsAbstractValidator.initializeHandler()to obtain a default instance of aValidationExceptionHandlerbefore starting the validation.AbstractValidator.validate(Message message, ValidationExceptionHandler<R> handler) CallsAbstractValidator.initializeHandler()to obtain a default instance of aValidationExceptionHandlerbefore starting the validation.AbstractValidator.validate(String message, boolean isXML, String version, ValidationExceptionHandler<R> handler) Validates aMessageValidator.validate(Message message, ValidationExceptionHandler<R> handler) Validates aMessageusing a customValidationExceptionHandler.Validates a String representing an encoded messageValidator.validate(String message, boolean isXML, String version, ValidationExceptionHandler<R> handler) Validates a String representing an encoded message. -
Uses of HL7Exception in ca.uhn.hl7v2.validation.builder
Methods in ca.uhn.hl7v2.validation.builder that throw HL7Exception -
Uses of HL7Exception in ca.uhn.hl7v2.validation.impl
Methods in ca.uhn.hl7v2.validation.impl that throw HL7ExceptionModifier and TypeMethodDescriptionstatic ValidationRuleBuilderValidationContextFactory.customBuilder(String ruleBuilderClassName) static ValidationContextValidationContextFactory.customValidation(String contextClassName) static ValidationContextValidationContextFactory.fromBuilder(String ruleBuilderClassName) static ValidationContextValidationContextFactory.getContext()Returns a singletonValidationContext, creating it if necessary.
Message.generateACK()