private void init(ModelClassFactory factory) { try { this.add(MSH.class, true, false); this.add(SFT.class, false, true); this.add(UAC.class, false, false); this.add(ORU_R01_PATIENT_RESULT.class, true, true); this.add(DSC.class, false, false); } catch(HL7Exception e) { log.error("Unexpected error creating ORU_R01 - this is probably a bug in the source code generator.", e); } }
/** * <p> * Returns a non-modifiable List containing all current existing repetitions of SFT. * <p> * <p> * Note that unlike {@link #getSFT()}, this method will not create any reps * if none are already present, so an empty list may be returned. * </p> * */ public java.util.List<SFT> getSFTAll() throws HL7Exception { return getAllAsList("SFT", SFT.class); }
/** * <p> * Returns the number of existing repetitions of PATIENT_RESULT * </p> * */ public int getPATIENT_RESULTReps() { return getReps("PATIENT_RESULT"); }
/** * <p> * Returns * the first repetition of * SFT (Software Segment) - creates it if necessary * </p> * * */ public SFT getSFT() { return getTyped("SFT", SFT.class); }
/** * Creates a new ORU_R01 message with custom ModelClassFactory. */ public ORU_R01(ModelClassFactory factory) { super(factory); init(factory); }
+ "OBX|||||Sample Value\r"; ORU_R01 msg = new ORU_R01(); try { msg.parse(string); } catch (Exception e) { e.printStackTrace(); msg = new ORU_R01(); msg.parse(string); + "OBX||BAD|||Sample Value\r"; msg = new ORU_R01(); try { msg.parse(string); } catch (Exception e) { e.printStackTrace(); msg = new ORU_R01(); msg.parse(string);
/** * <p> * Returns * MSH (Message Header) - creates it if necessary * </p> * * */ public MSH getMSH() { return getTyped("MSH", MSH.class); }
/** * Creates a new ORU_R01 message with custom ModelClassFactory. */ public ORU_R01(ModelClassFactory factory) { super(factory); init(factory); }
/** * <p> * Returns * the first repetition of * SFT (Software Segment) - creates it if necessary * </p> * * */ public SFT getSFT() { return getTyped("SFT", SFT.class); }
/** * <p> * Returns a non-modifiable List containing all current existing repetitions of SFT. * <p> * <p> * Note that unlike {@link #getSFT()}, this method will not create any reps * if none are already present, so an empty list may be returned. * </p> * */ public java.util.List<SFT> getSFTAll() throws HL7Exception { return getAllAsList("SFT", SFT.class); }
/** * <p> * Returns the number of existing repetitions of PATIENT_RESULT * </p> * */ public int getPATIENT_RESULTReps() { return getReps("PATIENT_RESULT"); }
private void init(ModelClassFactory factory) { try { this.add(MSH.class, true, false); this.add(SFT.class, false, true); this.add(UAC.class, false, false); this.add(ORU_R01_PATIENT_RESULT.class, true, true); this.add(DSC.class, false, false); } catch(HL7Exception e) { log.error("Unexpected error creating ORU_R01 - this is probably a bug in the source code generator.", e); } }
/** * <p> * Returns * UAC (User Authentication Credential Segment) - creates it if necessary * </p> * * */ public UAC getUAC() { return getTyped("UAC", UAC.class); }
/** * <p> * Returns a non-modifiable List containing all current existing repetitions of PATIENT_RESULT. * <p> * <p> * Note that unlike {@link #getPATIENT_RESULT()}, this method will not create any reps * if none are already present, so an empty list may be returned. * </p> * */ public java.util.List<ORU_R01_PATIENT_RESULT> getPATIENT_RESULTAll() throws HL7Exception { return getAllAsList("PATIENT_RESULT", ORU_R01_PATIENT_RESULT.class); }
/** * <p> * Returns the number of existing repetitions of SFT * </p> * */ public int getSFTReps() { return getReps("SFT"); }
/** * <p> * Returns * DSC (Continuation Pointer) - creates it if necessary * </p> * * */ public DSC getDSC() { return getTyped("DSC", DSC.class); }
/** * <p> * Returns a non-modifiable List containing all current existing repetitions of PATIENT_RESULT. * <p> * <p> * Note that unlike {@link #getPATIENT_RESULT()}, this method will not create any reps * if none are already present, so an empty list may be returned. * </p> * */ public java.util.List<ORU_R01_PATIENT_RESULT> getPATIENT_RESULTAll() throws HL7Exception { return getAllAsList("PATIENT_RESULT", ORU_R01_PATIENT_RESULT.class); }
/** * <p> * Returns the number of existing repetitions of SFT * </p> * */ public int getSFTReps() { return getReps("SFT"); }
/** * <p> * Returns * MSH (Message Header) - creates it if necessary * </p> * * */ public MSH getMSH() { return getTyped("MSH", MSH.class); }
/** * <p> * Returns * UAC (User Authentication Credential Segment) - creates it if necessary * </p> * * */ public UAC getUAC() { return getTyped("UAC", UAC.class); }