} else if ( structure instanceof ca.uhn.hl7v2.model.v24.segment.MSH ) { messageType = ( (ca.uhn.hl7v2.model.v24.segment.MSH) structure ).getMessageType().getMessageStructure().getValue(); } else if ( structure instanceof ca.uhn.hl7v2.model.v25.segment.MSH ) { messageType =
/** * Returns message type (component 1). This is a convenience method that saves you from * casting and handling an exception. */ public ID getMessageType() { return getTyped(0, ID.class); }
/** * Creates a new MSG type */ public MSG(Message message) { super(message); init(); }
mshSegment.getSendingApplication().getNamespaceID().setValue("TestSendingSystem"); mshSegment.getSequenceNumber().setValue("123"); mshSegment.getMessageType().getMessageType().setValue("ADT"); mshSegment.getMessageType().getTriggerEvent().setValue("A01"); mshSegment.getMessageType().getMessageStructure().setValue("ADT A01");
private void init() { data = new Type[3]; data[0] = new ID(getMessage(), 0); data[1] = new ID(getMessage(), 0); data[2] = new ID(getMessage(), 0); }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new ST(getMessage()); case 1: return new ST(getMessage()); case 2: return new HD(getMessage()); case 3: return new HD(getMessage()); case 4: return new HD(getMessage()); case 5: return new HD(getMessage()); case 6: return new TS(getMessage()); case 7: return new ST(getMessage()); case 8: return new MSG(getMessage()); case 9: return new ST(getMessage()); case 10: return new PT(getMessage()); case 11: return new VID(getMessage()); case 12: return new NM(getMessage()); case 13: return new ST(getMessage()); case 14: return new ID(getMessage(), new Integer( 155 )); case 15: return new ID(getMessage(), new Integer( 155 )); case 16: return new ID(getMessage(), new Integer( 399 )); case 17: return new ID(getMessage(), new Integer( 211 )); case 18: return new CE(getMessage()); case 19: return new ID(getMessage(), new Integer( 356 )); case 20: return new ID(getMessage(), new Integer( 449 )); default: return null; } }
private void init() { data = new Type[3]; data[0] = new ID(getMessage(), 0); data[1] = new ID(getMessage(), 0); data[2] = new ID(getMessage(), 0); }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new ST(getMessage()); case 1: return new ST(getMessage()); case 2: return new HD(getMessage()); case 3: return new HD(getMessage()); case 4: return new HD(getMessage()); case 5: return new HD(getMessage()); case 6: return new TS(getMessage()); case 7: return new ST(getMessage()); case 8: return new MSG(getMessage()); case 9: return new ST(getMessage()); case 10: return new PT(getMessage()); case 11: return new VID(getMessage()); case 12: return new NM(getMessage()); case 13: return new ST(getMessage()); case 14: return new ID(getMessage(), new Integer( 155 )); case 15: return new ID(getMessage(), new Integer( 155 )); case 16: return new ID(getMessage(), new Integer( 399 )); case 17: return new ID(getMessage(), new Integer( 211 )); case 18: return new CE(getMessage()); case 19: return new ID(getMessage(), new Integer( 356 )); case 20: return new ID(getMessage(), new Integer( 449 )); default: return null; } }
/** * Returns trigger event (component 2). This is a convenience method that saves you from * casting and handling an exception. */ public ID getMsg2_TriggerEvent() { return getTyped(1, ID.class); }
/** * Creates a new MSG type */ public MSG(Message message) { super(message); init(); }
/** * Returns message structure (component 3). This is a convenience method that saves you from * casting and handling an exception. */ public ID getMessageStructure() { return getTyped(2, ID.class); }
/** * Returns message structure (component 3). This is a convenience method that saves you from * casting and handling an exception. */ public ID getMsg3_MessageStructure() { return getTyped(2, ID.class); }
/** * Returns trigger event (component 2). This is a convenience method that saves you from * casting and handling an exception. */ public ID getMsg2_TriggerEvent() { return getTyped(1, ID.class); }
/** * Returns message type (component 1). This is a convenience method that saves you from * casting and handling an exception. */ public ID getMsg1_MessageType() { return getTyped(0, ID.class); }
/** * Returns message type (component 1). This is a convenience method that saves you from * casting and handling an exception. */ public ID getMessageType() { return getTyped(0, ID.class); }
/** * Returns message type (component 1). This is a convenience method that saves you from * casting and handling an exception. */ public ID getMsg1_MessageType() { return getTyped(0, ID.class); }
/** * Returns trigger event (component 2). This is a convenience method that saves you from * casting and handling an exception. */ public ID getTriggerEvent() { return getTyped(1, ID.class); }
/** * Returns message structure (component 3). This is a convenience method that saves you from * casting and handling an exception. */ public ID getMessageStructure() { return getTyped(2, ID.class); }
/** * Returns trigger event (component 2). This is a convenience method that saves you from * casting and handling an exception. */ public ID getTriggerEvent() { return getTyped(1, ID.class); }
/** * Returns message structure (component 3). This is a convenience method that saves you from * casting and handling an exception. */ public ID getMsg3_MessageStructure() { return getTyped(2, ID.class); }