/** * Creates a new PPR_PC1 message with DefaultModelClassFactory. */ public PPR_PC1() { this(new DefaultModelClassFactory()); }
/** * @see ca.uhn.hl7v2.parser.ModelClassFactory#getGroupClass(java.lang.String, java.lang.String) */ @SuppressWarnings("unchecked") public Class<? extends Group> getGroupClass(String theName, String theVersion) throws HL7Exception { return (Class<? extends Group>) findClass(theName, theVersion, "group"); }
/** * {@inheritDoc} */ @Override public Class<? extends Group> getGroupClass(String theName, String theVersion) throws HL7Exception { return super.getGroupClass(theName, myVersion); }
Map<String, String> eventMap = new DefaultModelClassFactory().getEventMapForVersion(version); if (StringUtil.isNotBlank(messageCode) && StringUtil.isNotBlank(messageTriggerEvent)) { String structure = eventMap.get(messageCode + "_" + messageTriggerEvent);
/** * Retrieves and instantiates a message class by looking in a specific java package for the * message type. * * @param theName The message structure type (e.g. "ADT_A01") * @param theVersion The HL7 version (e.g. "2.3.1") * @param isExplicit If false, the message structure is looked up using {@link 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. * @param 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 {@link #getMessageClass(String, String, boolean)} * @since 1.3 */ @SuppressWarnings("unchecked") public Class<? extends Message> getMessageClassInASpecificPackage(String theName, String theVersion, boolean isExplicit, String packageName) throws HL7Exception { if (!isExplicit) { theName = getMessageStructureForEvent(theName, Version.versionOf(theVersion)); } Class<? extends Message> mc = (Class<? extends Message>) findClassInASpecificPackage(theName, theVersion, "message", packageName); if (mc == null) { mc = GenericMessage.getGenericMessageClass(theVersion); } return mc; }
public Class<? extends Message> getMessageClass(String theName, String theVersion, boolean isExplicit) throws HL7Exception { if (!isExplicit) { theName = getMessageStructureForEvent(theName, Version.versionOf(theVersion)); Class<? extends Message> mc = (Class<? extends Message>) findClass(theName, theVersion, "message"); if (mc == null) mc = GenericMessage.getGenericMessageClass(theVersion);
/** * {@inheritDoc} */ @Override public Class<? extends Message> getMessageClass(String theName, String theVersion, boolean theIsExplicit) throws HL7Exception { if (myMessageClass != null) { return myMessageClass; } initVersionIfNeeded(); return super.getMessageClass(theName, myVersion, theIsExplicit); }
Map<String, String> eventMap = new DefaultModelClassFactory().getEventMapForVersion(version); if (StringUtil.isNotBlank(messageCode) && StringUtil.isNotBlank(messageTriggerEvent)) { String structure = eventMap.get(messageCode + "_" + messageTriggerEvent);
/** * Retrieves and instantiates a message class by looking in a specific java package for the * message type. * * @param theName The message structure type (e.g. "ADT_A01") * @param theVersion The HL7 version (e.g. "2.3.1") * @param isExplicit If false, the message structure is looked up using {@link 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. * @param 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 {@link #getMessageClass(String, String, boolean)} * @since 1.3 */ @SuppressWarnings("unchecked") public Class<? extends Message> getMessageClassInASpecificPackage(String theName, String theVersion, boolean isExplicit, String packageName) throws HL7Exception { if (!isExplicit) { theName = getMessageStructureForEvent(theName, Version.versionOf(theVersion)); } Class<? extends Message> mc = (Class<? extends Message>) findClassInASpecificPackage(theName, theVersion, "message", packageName); if (mc == null) { mc = GenericMessage.getGenericMessageClass(theVersion); } return mc; }
public Class<? extends Message> getMessageClass(String theName, String theVersion, boolean isExplicit) throws HL7Exception { if (!isExplicit) { theName = getMessageStructureForEvent(theName, Version.versionOf(theVersion)); Class<? extends Message> mc = (Class<? extends Message>) findClass(theName, theVersion, "message"); if (mc == null) mc = GenericMessage.getGenericMessageClass(theVersion);
/** * {@inheritDoc} */ @Override public Class<? extends Message> getMessageClass(String theName, String theVersion, boolean theIsExplicit) throws HL7Exception { if (myMessageClass != null) { return myMessageClass; } initVersionIfNeeded(); return super.getMessageClass(theName, myVersion, theIsExplicit); }
/** * Creates a new RSP_Z90 message with DefaultModelClassFactory. */ public RSP_Z90() { this(new DefaultModelClassFactory()); }
Map<String, String> evtMap = new DefaultModelClassFactory().getEventMapForVersion(Version.versionOf(theStructure.getMessage().getVersion())); if (evtMap.containsKey(struct)) { struct = evtMap.get(struct);
/** * @see ca.uhn.hl7v2.parser.ModelClassFactory#getTypeClass(java.lang.String, java.lang.String) */ @SuppressWarnings("unchecked") public Class<? extends Type> getTypeClass(String theName, String theVersion) throws HL7Exception { return (Class<? extends Type>) findClass(theName, theVersion, "datatype"); }
/** * {@inheritDoc} */ @Override public Class<? extends Group> getGroupClass(String theName, String theVersion) throws HL7Exception { return super.getGroupClass(theName, myVersion); }
/** * Creates a new BAR_P06 message with DefaultModelClassFactory. */ public BAR_P06() { this(new DefaultModelClassFactory()); }
Map<String, String> evtMap = new DefaultModelClassFactory().getEventMapForVersion(Version.versionOf(theStructure.getMessage().getVersion())); if (evtMap.containsKey(struct)) { struct = evtMap.get(struct);
/** * @see ca.uhn.hl7v2.parser.ModelClassFactory#getSegmentClass(java.lang.String, java.lang.String) */ @SuppressWarnings("unchecked") public Class<? extends Segment> getSegmentClass(String theName, String theVersion) throws HL7Exception { return (Class<? extends Segment>) findClass(theName, theVersion, "segment"); }
/** * Creates a new SPQ_Q08 message with DefaultModelClassFactory. */ public SPQ_Q08() { this(new DefaultModelClassFactory()); }
/** * @see ca.uhn.hl7v2.parser.ModelClassFactory#getTypeClass(java.lang.String, java.lang.String) */ @SuppressWarnings("unchecked") public Class<? extends Type> getTypeClass(String theName, String theVersion) throws HL7Exception { return (Class<? extends Type>) findClass(theName, theVersion, "datatype"); }