public interface ModelClassFactory extends Serializable
Modifier and Type | Method and Description |
---|---|
Class<? extends Group> |
getGroupClass(String theName,
String theVersion) |
Class<? extends Message> |
getMessageClass(String theName,
String theVersion,
boolean isExplicit) |
Class<? extends Message> |
getMessageClassInASpecificPackage(String theName,
String theVersion,
boolean isExplicit,
String packageName)
Retrieves a message class by looking in a specific java package for the message type.
|
String |
getMessageStructureForEvent(String eventName,
Version version) |
Class<? extends Segment> |
getSegmentClass(String theName,
String theVersion) |
Class<? extends Type> |
getTypeClass(String theName,
String theVersion) |
Class<? extends Message> getMessageClass(String theName, String theVersion, boolean isExplicit) throws HL7Exception
theName
- name of messagetheVersion
- HL7 versionisExplicit
- true if the structure was specified explicitly in MSH-9-3, false if it was
inferred from MSH-9-1 and MSH-9-2. If false, a lookup may be performed to find an
alternate structure corresponding to that message type and event.HL7Exception
- if the version if not recognized or an appropriate class can not be
foundClass<? extends Message> getMessageClassInASpecificPackage(String theName, String theVersion, boolean isExplicit, String packageName) throws HL7Exception
theName
- The message structure type (e.g. "ADT_A01")theVersion
- The HL7 version (e.g. "2.3.1")isExplicit
- If false, the message structure is looked up using
Parser.getMessageStructureForEvent(String, String)
and converted to the
appropriate structure type. For example, "ADT_A04" would be converted to "ADT_A01"
because the A04 trigger uses the A01 message structure according to HL7.packageName
- The package name to use. Note that if the message type can't be found in
this package, HAPI will return the standard type returned by
getMessageClass(String, String, boolean)
HL7Exception
Class<? extends Group> getGroupClass(String theName, String theVersion) throws HL7Exception
theName
- name of grouptheVersion
- HL7 versionHL7Exception
- if the version if not recognized or an appropriate class can not be
foundClass<? extends Segment> getSegmentClass(String theName, String theVersion) throws HL7Exception
theName
- name of segmenttheVersion
- HL7 versionHL7Exception
- if the version if not recognized or an appropriate class can not be
foundClass<? extends Type> getTypeClass(String theName, String theVersion) throws HL7Exception
theName
- name of typetheVersion
- HL7 versionHL7Exception
- if the version if not recognized or an appropriate class can not be
foundString getMessageStructureForEvent(String eventName, Version version) throws HL7Exception
eventName
- event nameversion
- HL7 versionnull
if none
could be foundHL7Exception
- if the version is unknown or the message structure list is inaccessibleCopyright © 2001–2017 University Health Network. All rights reserved.