/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new CK(getMessage()); case 1: return new CK(getMessage()); case 2: return new CK(getMessage()); default: return null; } }
private void init(ModelClassFactory factory) { try { this.add(CK.class, true, 1, 16, new Object[]{ getMessage() }, "PRIOR PATIENT ID - INTERNAL"); this.add(CK.class, false, 1, 16, new Object[]{ getMessage() }, "PRIOR ALTERNATE PATIENT ID"); this.add(CK.class, false, 1, 20, new Object[]{ getMessage() }, "PRIOR PATIENT ACCOUNT NUMBER"); } catch(HL7Exception e) { log.error("Unexpected error creating MRG - this is probably a bug in the source code generator.", e); } }
private void init(ModelClassFactory factory) { try { this.add(CK.class, true, 1, 16, new Object[]{ getMessage() }, "PRIOR PATIENT ID - INTERNAL"); this.add(CK.class, false, 1, 16, new Object[]{ getMessage() }, "PRIOR ALTERNATE PATIENT ID"); this.add(CK.class, false, 1, 20, new Object[]{ getMessage() }, "PRIOR PATIENT ACCOUNT NUMBER"); } catch(HL7Exception e) { log.error("Unexpected error creating MRG - this is probably a bug in the source code generator.", e); } }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new CK(getMessage()); case 1: return new CK(getMessage()); case 2: return new CK(getMessage()); default: return null; } }