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(QPD.class, true, false); this.add(RDF.class, false, false); this.add(RCP.class, true, false); this.add(DSC.class, false, false); this.add(MSH.class, true, false); this.add(SFT.class, false, true); this.add(UAC.class, false, false); this.add(MSA.class, true, false); this.add(ERR.class, false, false); this.add(QAK.class, true, false); this.add(QPD.class, true, false); this.add(Hxx.class, true, false); this.add(DSC.class, false, false); } catch (HL7Exception e) { Log.e( Constants.TAG, "Unexpected error creating QBP_Qnn - this is probably a bug in the source code generator.", e); } }
/** * Creates a new instance of GenericMessage. * * @param factory class factory for contained structures */ public GenericMessage(ModelClassFactory factory) { super(factory); try { this.addNonstandardSegment("MSH"); } catch (HL7Exception e) { String message = "Unexpected error adding GenericSegment to GenericMessage."; Log.e(Constants.TAG, message); throw new Error(message); // TODO better throw RuntimeException } }
private void init(ModelClassFactory factory) { try { this.add(NM.class, true, 1, 3, new Object[] {getMessage()}, "Number of Columns per Row"); this.add(RCD.class, true, 0, 40, new Object[] {getMessage()}, "Column Description"); } catch (HL7Exception e) { Log.e( Constants.TAG, "Unexpected error creating RDF - this is probably a bug in the source code generator.", e); } }
private void init(ModelClassFactory factory) { try { this.add(SPM.class, true, false); this.add(OBX.class, false, true); } catch (HL7Exception e) { Log.e( Constants.TAG, "Unexpected error creating SSU_U03_SPECIMEN - this is probably a bug in the source code generator.", e); } }
private void init(ModelClassFactory factory) { try { this.add(RDF.class, true, false); this.add(RDT.class, false, true); } catch (HL7Exception e) { Log.e( Constants.TAG, "Unexpected error creating RTB_K13_ROW_DEFINITION - this is probably a bug in the source code generator.", e); } }
private void init(ModelClassFactory factory) { try { this.add(PV1.class, true, false); this.add(PV2.class, false, false); } catch (HL7Exception e) { Log.e( Constants.TAG, "Unexpected error creating OUL_R21_VISIT - this is probably a bug in the source code generator.", e); } }
private void init(ModelClassFactory factory) { try { this.add(SPM.class, false, false); this.add(TCC.class, true, true); } catch (HL7Exception e) { Log.e( Constants.TAG, "Unexpected error creating TCU_U10_TEST_CONFIGURATION - this is probably a bug in the source code generator.", e); } }
private void init(ModelClassFactory factory) { try { this.add(AIS.class, true, false); this.add(APR.class, false, false); } catch (HL7Exception e) { Log.e( Constants.TAG, "Unexpected error creating SQM_S25_SERVICE - this is probably a bug in the source code generator.", e); } }
private void init(ModelClassFactory factory) { try { this.add(OBX.class, true, false); this.add(NTE.class, false, true); this.add(VAR.class, false, true); } catch (HL7Exception e) { Log.e( Constants.TAG, "Unexpected error creating PRR_PC5_ORDER_OBSERVATION - this is probably a bug in the source code generator.", e); } }
private void init(ModelClassFactory factory) { try { this.add(SAC.class, true, false); this.add(INV.class, false, false); this.add(OUL_R23_ORDER.class, true, true); } catch (HL7Exception e) { Log.e( Constants.TAG, "Unexpected error creating OUL_R23_CONTAINER - this is probably a bug in the source code generator.", e); } }
private void init(ModelClassFactory factory) { try { this.add(OBR.class, true, false); this.add(ORC.class, false, false); this.add(NTE.class, false, true); this.add(ROL.class, false, true); this.add(OPU_R25_TIMING_QTY.class, false, true); this.add(OPU_R25_RESULT.class, true, true); } catch (HL7Exception e) { Log.e( Constants.TAG, "Unexpected error creating OPU_R25_ORDER - this is probably a bug in the source code generator.", e); } }
private void init(ModelClassFactory factory) { try { this.add(PID.class, true, false); this.add(PD1.class, false, false); this.add(NTE.class, false, true); this.add(OMP_O09_PATIENT_VISIT.class, false, false); this.add(OMP_O09_INSURANCE.class, false, true); this.add(GT1.class, false, false); this.add(AL1.class, false, true); } catch (HL7Exception e) { Log.e( Constants.TAG, "Unexpected error creating OMP_O09_PATIENT - this is probably a bug in the source code generator.", e); } }
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(NTE.class, false, true); this.add(ROL.class, true, true); this.add(OPL_O37_GUARANTOR.class, false, false); this.add(OPL_O37_ORDER.class, true, true); } catch (HL7Exception e) { Log.e( Constants.TAG, "Unexpected error creating OPL_O37 - this is probably a bug in the source code generator.", e); } }
private void init(ModelClassFactory factory) { try { this.add(MSH.class, true, false); this.add(SFT.class, false, true); this.add(UAC.class, false, true); this.add(IVC.class, true, false); this.add(CTD.class, true, true); this.add(LOC.class, false, true); this.add(ROL.class, false, true); this.add(EHC_E20_PAT_INFO.class, true, true); this.add(EHC_E20_PSL_ITEM_INFO.class, true, true); } catch (HL7Exception e) { Log.e( Constants.TAG, "Unexpected error creating EHC_E20 - this is probably a bug in the source code generator.", e); } }
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(EVN.class, true, false); this.add(PID.class, true, false); this.add(PD1.class, false, false); this.add(ROL.class, false, true); this.add(PV1.class, true, false); this.add(ROL.class, false, true); this.add(PV2.class, false, false); } catch (HL7Exception e) { Log.e( Constants.TAG, "Unexpected error creating ADT_A61 - this is probably a bug in the source code generator.", e); } }
/** * Returns a subclass of GenericMessage corresponding to a certain version. This is needed so that * version-specific segments can be added as the message is parsed. */ public static Class<? extends Message> getGenericMessageClass(String version) { if (!Version.supportsVersion(version)) throw new IllegalArgumentException("The version " + version + " is not recognized"); if ("2.1".equals(version)) { return V21.class; } if ("2.2".equals(version)) { return V22.class; } if ("2.3".equals(version)) { return V23.class; } if ("2.3.1".equals(version)) { return V231.class; } if ("2.4".equals(version)) { return V24.class; } if ("2.5.1".equals(version)) { return V25.class; } if ("2.5.1".equals(version)) { return V251.class; } if ("2.6".equals(version)) { return V26.class; } Log.d(Constants.TAG, "Unknown version for generic type {" + version + "}"); return UnknownVersion.class; }