/** * Returns * MSA-1: "ACKNOWLEDGMENT CODE" - creates it if necessary */ public ID getACKNOWLEDGMENTCODE() { ID retVal = this.getTypedField(1, 0); return retVal; }
/** * Creates a new MSA segment */ public MSA(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
private void init(ModelClassFactory factory) { try { this.add(ID.class, true, 1, 2, new Object[]{ getMessage(), new Integer(8) }, "ACKNOWLEDGMENT CODE"); this.add(ST.class, true, 1, 20, new Object[]{ getMessage() }, "MESSAGE CONTROL ID"); this.add(ST.class, false, 1, 80, new Object[]{ getMessage() }, "TEXT MESSAGE"); this.add(NM.class, false, 1, 15, new Object[]{ getMessage() }, "EXPECTED SEQUENCE NUMBER"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(102) }, "DELAYED ACKNOWLEDGMENT TYPE"); } catch(HL7Exception e) { log.error("Unexpected error creating MSA - this is probably a bug in the source code generator.", e); } }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new ID(getMessage(), new Integer( 8 )); case 1: return new ST(getMessage()); case 2: return new ST(getMessage()); case 3: return new NM(getMessage()); case 4: return new ID(getMessage(), new Integer( 102 )); default: return null; } }
private void init(ModelClassFactory factory) { try { this.add(ID.class, true, 1, 2, new Object[]{ getMessage(), new Integer(8) }, "ACKNOWLEDGMENT CODE"); this.add(ST.class, true, 1, 20, new Object[]{ getMessage() }, "MESSAGE CONTROL ID"); this.add(ST.class, false, 1, 80, new Object[]{ getMessage() }, "TEXT MESSAGE"); this.add(NM.class, false, 1, 15, new Object[]{ getMessage() }, "EXPECTED SEQUENCE NUMBER"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(102) }, "DELAYED ACKNOWLEDGMENT TYPE"); } catch(HL7Exception e) { log.error("Unexpected error creating MSA - this is probably a bug in the source code generator.", e); } }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new ID(getMessage(), new Integer( 8 )); case 1: return new ST(getMessage()); case 2: return new ST(getMessage()); case 3: return new NM(getMessage()); case 4: return new ID(getMessage(), new Integer( 102 )); default: return null; } }
/** * Returns * MSA-1: "ACKNOWLEDGMENT CODE" - creates it if necessary */ public ID getMsa1_ACKNOWLEDGMENTCODE() { ID retVal = this.getTypedField(1, 0); return retVal; }
/** * Creates a new MSA segment */ public MSA(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
/** * Returns * MSA-5: "DELAYED ACKNOWLEDGMENT TYPE" - creates it if necessary */ public ID getDELAYEDACKNOWLEDGMENTTYPE() { ID retVal = this.getTypedField(5, 0); return retVal; }
/** * Returns * MSA-2: "MESSAGE CONTROL ID" - creates it if necessary */ public ST getMsa2_MESSAGECONTROLID() { ST retVal = this.getTypedField(2, 0); return retVal; }
/** * Returns * MSA-4: "EXPECTED SEQUENCE NUMBER" - creates it if necessary */ public NM getMsa4_EXPECTEDSEQUENCENUMBER() { NM retVal = this.getTypedField(4, 0); return retVal; }
/** * Returns * MSA-3: "TEXT MESSAGE" - creates it if necessary */ public ST getTEXTMESSAGE() { ST retVal = this.getTypedField(3, 0); return retVal; }
/** * Returns * MSA-5: "DELAYED ACKNOWLEDGMENT TYPE" - creates it if necessary */ public ID getMsa5_DELAYEDACKNOWLEDGMENTTYPE() { ID retVal = this.getTypedField(5, 0); return retVal; }
/** * Returns * MSA-2: "MESSAGE CONTROL ID" - creates it if necessary */ public ST getMsa2_MESSAGECONTROLID() { ST retVal = this.getTypedField(2, 0); return retVal; }
/** * Returns * MSA-4: "EXPECTED SEQUENCE NUMBER" - creates it if necessary */ public NM getEXPECTEDSEQUENCENUMBER() { NM retVal = this.getTypedField(4, 0); return retVal; }
/** * Returns * MSA-1: "ACKNOWLEDGMENT CODE" - creates it if necessary */ public ID getMsa1_ACKNOWLEDGMENTCODE() { ID retVal = this.getTypedField(1, 0); return retVal; }
/** * Returns * MSA-5: "DELAYED ACKNOWLEDGMENT TYPE" - creates it if necessary */ public ID getMsa5_DELAYEDACKNOWLEDGMENTTYPE() { ID retVal = this.getTypedField(5, 0); return retVal; }
/** * Returns * MSA-1: "ACKNOWLEDGMENT CODE" - creates it if necessary */ public ID getACKNOWLEDGMENTCODE() { ID retVal = this.getTypedField(1, 0); return retVal; }
/** * Returns * MSA-2: "MESSAGE CONTROL ID" - creates it if necessary */ public ST getMESSAGECONTROLID() { ST retVal = this.getTypedField(2, 0); return retVal; }
/** * Returns * MSA-3: "TEXT MESSAGE" - creates it if necessary */ public ST getTEXTMESSAGE() { ST retVal = this.getTypedField(3, 0); return retVal; }