Ejemplo n.º 1
0
 /**
  * Creates a new RDS_O01_ORDER Group.
  */
 public RDS_O01_ORDER(Group parent, ModelClassFactory factory) : base(parent, factory)
 {
     try
     {
         this.add(typeof(ORC), true, false);
         this.add(typeof(RDS_O01_ORDER_DETAIL), false, false);
         this.add(typeof(RDS_O01_ENCODING), false, false);
         this.add(typeof(RXD), true, false);
         this.add(typeof(RXR), true, true);
         this.add(typeof(RXC), false, true);
         this.add(typeof(RDS_O01_OBSERVATION), false, true);
     }
     catch (HL7Exception e)
     {
         HapiLogFactory.getHapiLog(GetType()).error("Unexpected error creating RDS_O01_ORDER - this is probably a bug in the source code generator.", e);
     }
 }
Ejemplo n.º 2
0
 /**
  * Creates a new DFT_P11_FINANCIAL Group.
  */
 public DFT_P11_FINANCIAL(Group parent, ModelClassFactory factory) : base(parent, factory)
 {
     try
     {
         this.add(typeof(FT1), true, false);
         this.add(typeof(DFT_P11_FINANCIAL_PROCEDURE), false, true);
         this.add(typeof(DFT_P11_FINANCIAL_COMMON_ORDER), false, true);
         this.add(typeof(DG1), false, true);
         this.add(typeof(DRG), false, false);
         this.add(typeof(GT1), false, true);
         this.add(typeof(DFT_P11_FINANCIAL_INSURANCE), false, true);
     }
     catch (HL7Exception e)
     {
         HapiLogFactory.getHapiLog(GetType()).error("Unexpected error creating DFT_P11_FINANCIAL - this is probably a bug in the source code generator.", e);
     }
 }
Ejemplo n.º 3
0
 private void init(ModelClassFactory factory)
 {
     try
     {
         this.add(typeof(MSH), true, false);
         this.add(typeof(MSA), true, false);
         this.add(typeof(ERR), false, false);
         this.add(typeof(QAK), true, false);
         this.add(typeof(QPD), true, false);
         this.add(typeof(RTB_K13_ROW_DEFINITION), false, false);
         this.add(typeof(DSC), false, false);
     }
     catch (HL7Exception e)
     {
         HapiLogFactory.getHapiLog(GetType()).error("Unexpected error creating RTB_K13 - this is probably a bug in the source code generator.", e);
     }
 }
Ejemplo n.º 4
0
 private void init(ModelClassFactory factory)
 {
     try {
         this.add(typeof(MSH), true, false);
         this.add(typeof(SFT), false, true);
         this.add(typeof(MSA), true, false);
         this.add(typeof(ERR), false, true);
         this.add(typeof(QAK), false, false);
         this.add(typeof(QRD), true, false);
         this.add(typeof(QRF), false, false);
         this.add(typeof(MFI), true, false);
         this.add(typeof(MFR_M07_MF_QUERY), true, true);
         this.add(typeof(DSC), false, false);
     } catch (HL7Exception e) {
         HapiLogFactory.getHapiLog(GetType()).error("Unexpected error creating MFR_M07 - this is probably a bug in the source code generator.", e);
     }
 }
Ejemplo n.º 5
0
        /**
         * Creates a OBR (OBSERVATION REQUEST) segment object that belongs to the given
         * message.
         */
        public OBR(Group parent, ModelClassFactory factory) : base(parent, factory)
        {
            Message message = Message;

            try {
                this.add(typeof(SI), false, 1, 4, new System.Object[] { message }, "Set ID - Observation Request");
                this.add(typeof(CM_PLACER), false, 1, 75, new System.Object[] { message }, "Placer Order Number");
                this.add(typeof(CM_FILLER), false, 1, 75, new System.Object[] { message }, "Filler Order Number");
                this.add(typeof(CE), true, 1, 200, new System.Object[] { message }, "Universal Service ID");
                this.add(typeof(ID), false, 1, 2, new System.Object[] { message, 0 }, "Priority (not used)");
                this.add(typeof(TS), false, 1, 26, new System.Object[] { message }, "Requested date / time (not used)");
                this.add(typeof(TS), false, 1, 26, new System.Object[] { message }, "Observation date / time");
                this.add(typeof(TS), false, 1, 26, new System.Object[] { message }, "Observation end date / time");
                this.add(typeof(CQ_QUANTITY), false, 1, 20, new System.Object[] { message }, "Collection Volume");
                this.add(typeof(CN_PERSON), false, 0, 60, new System.Object[] { message }, "Collector Identifier");
                this.add(typeof(ID), false, 1, 1, new System.Object[] { message, 65 }, "Specimen action code");
                this.add(typeof(CE), false, 1, 60, new System.Object[] { message }, "Danger Code");
                this.add(typeof(ST), false, 1, 300, new System.Object[] { message }, "Relevant clinical information");
                this.add(typeof(TS), false, 1, 26, new System.Object[] { message }, "Specimen received date / time");
                this.add(typeof(CM_SPS), false, 1, 300, new System.Object[] { message }, "Specimen source");
                this.add(typeof(CN_PERSON), false, 1, 80, new System.Object[] { message }, "Ordering Provider");
                this.add(typeof(TN), false, 2, 40, new System.Object[] { message }, "Order Callback Phone Number");
                this.add(typeof(ST), false, 1, 60, new System.Object[] { message }, "Placer field 1");
                this.add(typeof(ST), false, 1, 60, new System.Object[] { message }, "Placer field 2");
                this.add(typeof(ST), false, 1, 60, new System.Object[] { message }, "Filler Field 1");
                this.add(typeof(ST), false, 1, 60, new System.Object[] { message }, "Filler Field 2");
                this.add(typeof(TS), false, 1, 26, new System.Object[] { message }, "Results report / status change - date / time");
                this.add(typeof(CM_MOC), false, 1, 40, new System.Object[] { message }, "Charge to Practice");
                this.add(typeof(ID), false, 1, 10, new System.Object[] { message, 74 }, "Diagnostic service section ID");
                this.add(typeof(ID), false, 1, 1, new System.Object[] { message, 123 }, "Result Status");
                this.add(typeof(CM_PARENT_RESULT), false, 1, 200, new System.Object[] { message }, "Parent Result");
                this.add(typeof(TQ), false, 0, 200, new System.Object[] { message }, "Quantity / timing");
                this.add(typeof(CN_PERSON), false, 5, 150, new System.Object[] { message }, "Result Copies To");
                this.add(typeof(CM_EIP), false, 1, 150, new System.Object[] { message }, "Parent Number");
                this.add(typeof(ID), false, 1, 20, new System.Object[] { message, 124 }, "Transportation Mode");
                this.add(typeof(CE), false, 0, 300, new System.Object[] { message }, "Reason for Study");
                this.add(typeof(CM_NDL), false, 1, 60, new System.Object[] { message }, "Principal Result Interpreter");
                this.add(typeof(CM_NDL), false, 0, 60, new System.Object[] { message }, "Assistant Result Interpreter");
                this.add(typeof(CM_NDL), false, 0, 60, new System.Object[] { message }, "Technician");
                this.add(typeof(CM_NDL), false, 0, 60, new System.Object[] { message }, "Transcriptionist");
                this.add(typeof(TS), false, 1, 26, new System.Object[] { message }, "Scheduled date / time");
            } catch (HL7Exception he) {
                HapiLogFactory.getHapiLog(GetType()).error("Can't instantiate " + this.getStructureName(), he);
            }
        }
Ejemplo n.º 6
0
        /**
         * Creates a LOC (Location Identification) segment object that belongs to the given
         * message.
         */
        public LOC(Group parent, ModelClassFactory factory) : base(parent, factory)
        {
            Message message = Message;

            try {
                this.add(typeof(PL), true, 1, 200, new System.Object[] { message }, "Primary Key Value - LOC");
                this.add(typeof(ST), false, 1, 48, new System.Object[] { message }, "Location Description");
                this.add(typeof(IS), true, 0, 2, new System.Object[] { message, 260 }, "Location Type - LOC");
                this.add(typeof(XON), false, 0, 250, new System.Object[] { message }, "Organization Name - LOC");
                this.add(typeof(XAD), false, 0, 250, new System.Object[] { message }, "Location Address");
                this.add(typeof(XTN), false, 0, 250, new System.Object[] { message }, "Location Phone");
                this.add(typeof(CE), false, 0, 250, new System.Object[] { message }, "License Number");
                this.add(typeof(IS), false, 0, 3, new System.Object[] { message, 261 }, "Location Equipment");
                this.add(typeof(IS), false, 1, 1, new System.Object[] { message, 442 }, "Location Service Code");
            } catch (HL7Exception he) {
                HapiLogFactory.getHapiLog(GetType()).error("Can't instantiate " + this.getStructureName(), he);
            }
        }
Ejemplo n.º 7
0
        /**
         * Creates a NSC (STATUS CHANGE) segment object that belongs to the given
         * message.
         */
        public NSC(Group parent, ModelClassFactory factory) : base(parent, factory)
        {
            Message message = Message;

            try {
                this.add(typeof(ID), true, 1, 4, new System.Object[] { message, 0 }, "NETWORK CHANGE TYPE");
                this.add(typeof(ST), false, 1, 30, new System.Object[] { message }, "CURRENT CPU");
                this.add(typeof(ST), false, 1, 30, new System.Object[] { message }, "CURRENT FILESERVER");
                this.add(typeof(ST), false, 1, 30, new System.Object[] { message }, "CURRENT APPLICATION");
                this.add(typeof(ST), false, 1, 30, new System.Object[] { message }, "CURRENT FACILITY");
                this.add(typeof(ST), false, 1, 30, new System.Object[] { message }, "NEW CPU");
                this.add(typeof(ST), false, 1, 30, new System.Object[] { message }, "NEW FILESERVER");
                this.add(typeof(ST), false, 1, 30, new System.Object[] { message }, "NEW APPLICATION");
                this.add(typeof(ST), false, 1, 30, new System.Object[] { message }, "NEW FACILITY");
            } catch (HL7Exception he) {
                HapiLogFactory.getHapiLog(GetType()).error("Can't instantiate " + this.getStructureName(), he);
            }
        }
Ejemplo n.º 8
0
 private void init(ModelClassFactory factory)
 {
     try
     {
         this.add(typeof(MSH), true, false);
         this.add(typeof(MSA), true, false);
         this.add(typeof(ERR), false, false);
         this.add(typeof(NTE), false, true);
         this.add(typeof(QRD), true, false);
         this.add(typeof(QRF), false, false);
         this.add(typeof(OSR_Q06_RESPONSE), false, false);
         this.add(typeof(DSC), false, false);
     }
     catch (HL7Exception e)
     {
         HapiLogFactory.getHapiLog(GetType()).error("Unexpected error creating OSR_Q06 - this is probably a bug in the source code generator.", e);
     }
 }
Ejemplo n.º 9
0
 /**
  * Creates a new PPV_PCA_GOAL Group.
  */
 public PPV_PCA_GOAL(Group parent, ModelClassFactory factory) : base(parent, factory)
 {
     try
     {
         this.add(typeof(GOL), true, false);
         this.add(typeof(NTE), false, true);
         this.add(typeof(VAR), false, true);
         this.add(typeof(PPV_PCA_GOAL_ROLE), false, true);
         this.add(typeof(PPV_PCA_GOAL_PATHWAY), false, true);
         this.add(typeof(PPV_PCA_GOAL_OBSERVATION), false, true);
         this.add(typeof(PPV_PCA_PROBLEM), false, true);
         this.add(typeof(PPV_PCA_ORDER), false, true);
     }
     catch (HL7Exception e)
     {
         HapiLogFactory.getHapiLog(GetType()).error("Unexpected error creating PPV_PCA_GOAL - this is probably a bug in the source code generator.", e);
     }
 }
Ejemplo n.º 10
0
 private void init(ModelClassFactory factory)
 {
     try
     {
         this.add(typeof(MSH), true, false);
         this.add(typeof(QRD), true, false);
         this.add(typeof(QRF), false, false);
         this.add(typeof(RQC_I05_PROVIDER), true, true);
         this.add(typeof(PID), true, false);
         this.add(typeof(NK1), false, true);
         this.add(typeof(GT1), false, true);
         this.add(typeof(NTE), false, true);
     }
     catch (HL7Exception e)
     {
         HapiLogFactory.getHapiLog(GetType()).error("Unexpected error creating RQC_I05 - this is probably a bug in the source code generator.", e);
     }
 }
Ejemplo n.º 11
0
        /**
         * Creates a IPC (Imaging Procedure Control Segment) segment object that belongs to the given
         * message.
         */
        public IPC(Group parent, ModelClassFactory factory) : base(parent, factory)
        {
            Message message = Message;

            try {
                this.add(typeof(EI), true, 1, 80, new System.Object[] { message }, "Accession Identifier");
                this.add(typeof(EI), true, 1, 22, new System.Object[] { message }, "Requested Procedure ID");
                this.add(typeof(EI), true, 1, 70, new System.Object[] { message }, "Study Instance UID");
                this.add(typeof(EI), true, 1, 22, new System.Object[] { message }, "Scheduled Procedure Step ID");
                this.add(typeof(CE), false, 1, 16, new System.Object[] { message }, "Modality");
                this.add(typeof(CE), false, 0, 250, new System.Object[] { message }, "Protocol Code");
                this.add(typeof(EI), false, 1, 22, new System.Object[] { message }, "Scheduled Station Name");
                this.add(typeof(CE), false, 0, 250, new System.Object[] { message }, "Scheduled Procedure Step Location");
                this.add(typeof(ST), false, 1, 16, new System.Object[] { message }, "Scheduled AE Title");
            } catch (HL7Exception he) {
                HapiLogFactory.getHapiLog(GetType()).error("Can't instantiate " + this.getStructureName(), he);
            }
        }
Ejemplo n.º 12
0
 private void init(ModelClassFactory factory)
 {
     try
     {
         this.add(typeof(MSH), true, false);
         this.add(typeof(EVN), true, false);
         this.add(typeof(STF), true, false);
         this.add(typeof(PRA), false, true);
         this.add(typeof(ORG), false, true);
         this.add(typeof(AFF), false, true);
         this.add(typeof(LAN), false, true);
         this.add(typeof(EDU), false, true);
     }
     catch (HL7Exception e)
     {
         HapiLogFactory.getHapiLog(GetType()).error("Unexpected error creating PMU_B01 - this is probably a bug in the source code generator.", e);
     }
 }
Ejemplo n.º 13
0
        /**
         * Creates a RXC (Pharmacy/Treatment Component Order) segment object that belongs to the given
         * message.
         */
        public RXC(Group parent, ModelClassFactory factory) : base(parent, factory)
        {
            Message message = Message;

            try {
                this.add(typeof(ID), true, 1, 1, new System.Object[] { message, 166 }, "RX Component Type");
                this.add(typeof(CE), true, 1, 250, new System.Object[] { message }, "Component Code");
                this.add(typeof(NM), true, 1, 20, new System.Object[] { message }, "Component Amount");
                this.add(typeof(CE), true, 1, 250, new System.Object[] { message }, "Component Units");
                this.add(typeof(NM), false, 1, 20, new System.Object[] { message }, "Component Strength");
                this.add(typeof(CE), false, 1, 250, new System.Object[] { message }, "Component Strength Units");
                this.add(typeof(CE), false, 0, 250, new System.Object[] { message }, "Supplementary Code");
                this.add(typeof(NM), false, 1, 5, new System.Object[] { message }, "Component Drug Strength Volume");
                this.add(typeof(CWE), false, 1, 250, new System.Object[] { message }, "Component Drug Strength Volume Units");
            } catch (HL7Exception he) {
                HapiLogFactory.getHapiLog(GetType()).error("Can't instantiate " + this.getStructureName(), he);
            }
        }
Ejemplo n.º 14
0
        /**
         * Creates a PV2 (PATIENT VISIT - additional information) segment object that belongs to the given
         * message.
         */
        public PV2(Group parent, ModelClassFactory factory) : base(parent, factory)
        {
            Message message = Message;

            try {
                this.add(typeof(CM_INTERNAL_LOCATION), false, 1, 12, new System.Object[] { message }, "Prior Pending Location");
                this.add(typeof(CE), false, 1, 60, new System.Object[] { message }, "Accommodation Code");
                this.add(typeof(CE), false, 1, 60, new System.Object[] { message }, "Admit Reason");
                this.add(typeof(CE), false, 1, 60, new System.Object[] { message }, "Transfer Reason");
                this.add(typeof(ST), false, 0, 25, new System.Object[] { message }, "Patient Valuables");
                this.add(typeof(ST), false, 1, 25, new System.Object[] { message }, "Patient Valuables Location");
                this.add(typeof(ID), false, 1, 2, new System.Object[] { message, 130 }, "Visit User Code");
                this.add(typeof(DT), false, 1, 8, new System.Object[] { message }, "Expected Admit Date");
                this.add(typeof(DT), false, 1, 8, new System.Object[] { message }, "Expected Discharge Date");
            } catch (HL7Exception he) {
                HapiLogFactory.getHapiLog(GetType()).error("Can't instantiate " + this.getStructureName(), he);
            }
        }
Ejemplo n.º 15
0
        /**
         * Creates a NSC (STATUS CHANGE) segment object that belongs to the given
         * message.
         */
        public NSC(Group parent, ModelClassFactory factory) : base(parent, factory)
        {
            Message message = Message;

            try {
                this.add(typeof(ID), true, 1, 4, new System.Object[] { message, 0 }, "Network Change Type");
                this.add(typeof(ST), false, 1, 30, new System.Object[] { message }, "Current CPU");
                this.add(typeof(ST), false, 1, 30, new System.Object[] { message }, "Current Fileserver");
                this.add(typeof(ST), false, 1, 30, new System.Object[] { message }, "Current Application");
                this.add(typeof(ST), false, 1, 30, new System.Object[] { message }, "Current Facility");
                this.add(typeof(ST), false, 1, 30, new System.Object[] { message }, "New CPU");
                this.add(typeof(ST), false, 1, 30, new System.Object[] { message }, "New Fileserver");
                this.add(typeof(ST), false, 1, 30, new System.Object[] { message }, "New Application");
                this.add(typeof(ST), false, 1, 30, new System.Object[] { message }, "New Facility");
            } catch (HL7Exception he) {
                HapiLogFactory.getHapiLog(GetType()).error("Can't instantiate " + this.getStructureName(), he);
            }
        }
Ejemplo n.º 16
0
        /**
         * Creates a PRD (Provider Data) segment object that belongs to the given
         * message.
         */
        public PRD(Group parent, ModelClassFactory factory) : base(parent, factory)
        {
            Message message = Message;

            try {
                this.add(typeof(CE), true, 0, 200, new System.Object[] { message }, "Provider Role");
                this.add(typeof(XPN), false, 0, 106, new System.Object[] { message }, "Provider Name");
                this.add(typeof(XAD), false, 0, 60, new System.Object[] { message }, "Provider Address");
                this.add(typeof(PL), false, 1, 60, new System.Object[] { message }, "Provider Location");
                this.add(typeof(XTN), false, 0, 100, new System.Object[] { message }, "Provider Communication Information");
                this.add(typeof(CE), false, 1, 200, new System.Object[] { message }, "Preferred Method Of Contact");
                this.add(typeof(PI), false, 0, 100, new System.Object[] { message }, "Provider Identifiers");
                this.add(typeof(TS), false, 1, 26, new System.Object[] { message }, "Effective Start Date of Provider Role");
                this.add(typeof(TS), false, 1, 26, new System.Object[] { message }, "Effective End Date of Provider Role");
            } catch (HL7Exception he) {
                HapiLogFactory.getHapiLog(GetType()).error("Can't instantiate " + this.getStructureName(), he);
            }
        }
Ejemplo n.º 17
0
        /**
         * Creates a PDA (Patient Death and Autopsy) segment object that belongs to the given
         * message.
         */
        public PDA(Group parent, ModelClassFactory factory) : base(parent, factory)
        {
            Message message = Message;

            try {
                this.add(typeof(CE), false, 0, 250, new System.Object[] { message }, "Death Cause Code");
                this.add(typeof(PL), false, 1, 80, new System.Object[] { message }, "Death Location");
                this.add(typeof(ID), false, 1, 1, new System.Object[] { message, 136 }, "Death Certified Indicator");
                this.add(typeof(TS), false, 1, 26, new System.Object[] { message }, "Death Certificate Signed Date/Time");
                this.add(typeof(XCN), false, 1, 250, new System.Object[] { message }, "Death Certified By");
                this.add(typeof(ID), false, 1, 1, new System.Object[] { message, 136 }, "Autopsy Indicator");
                this.add(typeof(DR), false, 1, 53, new System.Object[] { message }, "Autopsy Start and End Date/Time");
                this.add(typeof(XCN), false, 1, 250, new System.Object[] { message }, "Autopsy Performed By");
                this.add(typeof(ID), false, 1, 1, new System.Object[] { message, 136 }, "Coroner Indicator");
            } catch (HL7Exception he) {
                HapiLogFactory.getHapiLog(GetType()).error("Can't instantiate " + this.getStructureName(), he);
            }
        }
Ejemplo n.º 18
0
 private void init(ModelClassFactory factory)
 {
     try
     {
         this.add(typeof(MSH), true, false);
         this.add(typeof(EVN), true, false);
         this.add(typeof(PID), true, false);
         this.add(typeof(PD1), false, false);
         this.add(typeof(PV1), true, false);
         this.add(typeof(PV2), false, false);
         this.add(typeof(DB1), false, true);
         this.add(typeof(OBX), false, true);
     }
     catch (HL7Exception e)
     {
         HapiLogFactory.getHapiLog(GetType()).error("Unexpected error creating ADT_A32 - this is probably a bug in the source code generator.", e);
     }
 }
Ejemplo n.º 19
0
        /**
         * Creates a URS (Unsolicited Selection) segment object that belongs to the given
         * message.
         */
        public URS(Group parent, ModelClassFactory factory) : base(parent, factory)
        {
            Message message = Message;

            try {
                this.add(typeof(ST), true, 0, 20, new System.Object[] { message }, "R/U Where Subject Definition");
                this.add(typeof(TS), false, 1, 26, new System.Object[] { message }, "R/U When Data Start Date/Time");
                this.add(typeof(TS), false, 1, 26, new System.Object[] { message }, "R/U When Data End Date/Time");
                this.add(typeof(ST), false, 0, 20, new System.Object[] { message }, "R/U What User Qualifier");
                this.add(typeof(ST), false, 0, 20, new System.Object[] { message }, "R/U Other Results Subject Definition");
                this.add(typeof(ID), false, 0, 12, new System.Object[] { message, 156 }, "R/U Which Date/Time Qualifier");
                this.add(typeof(ID), false, 0, 12, new System.Object[] { message, 157 }, "R/U Which Date/Time Status Qualifier");
                this.add(typeof(ID), false, 0, 12, new System.Object[] { message, 158 }, "R/U Date/Time Selection Qualifier");
                this.add(typeof(TQ), false, 1, 60, new System.Object[] { message }, "R/U Quantity/Timing Qualifier");
            } catch (HL7Exception he) {
                HapiLogFactory.getHapiLog(GetType()).error("Can't instantiate " + this.getStructureName(), he);
            }
        }
Ejemplo n.º 20
0
 /**
  * Returns all repetitions of R/U Where Subject Definition (URS-1).
  */
 public ST[] getRUWhereSubjectDefinition()
 {
     ST[] ret = null;
     try {
         Type[] t = this.getField(1);
         ret = new ST[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (ST)t[i];
         }
     } catch (HL7Exception he) {
         HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value.  This is a bug.", he);
         throw new System.Exception("An unexpected error ocurred", he);
     } catch (System.Exception cce) {
         HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value.  This is a bug.", cce);
         throw new System.Exception("An unexpected error ocurred", cce);
     }
     return(ret);
 }
Ejemplo n.º 21
0
 /**
  * Returns all repetitions of R/U Date/Time Selection Qualifier (URS-8).
  */
 public ID[] getRUDateTimeSelectionQualifier()
 {
     ID[] ret = null;
     try {
         Type[] t = this.getField(8);
         ret = new ID[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (ID)t[i];
         }
     } catch (HL7Exception he) {
         HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value.  This is a bug.", he);
         throw new System.Exception("An unexpected error ocurred", he);
     } catch (System.Exception cce) {
         HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value.  This is a bug.", cce);
         throw new System.Exception("An unexpected error ocurred", cce);
     }
     return(ret);
 }
Ejemplo n.º 22
0
 /**
  * Returns all repetitions of Primary Key Value - MFE (MFE-4).
  */
 public Varies[] getPrimaryKeyValueMFE()
 {
     Varies[] ret = null;
     try {
         Type[] t = this.getField(4);
         ret = new Varies[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (Varies)t[i];
         }
     } catch (HL7Exception he) {
         HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value.  This is a bug.", he);
         throw new System.Exception("An unexpected error ocurred", he);
     } catch (System.Exception cce) {
         HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value.  This is a bug.", cce);
         throw new System.Exception("An unexpected error ocurred", cce);
     }
     return(ret);
 }
Ejemplo n.º 23
0
        /**
         * Creates a DRG (Diagnosis Related Group) segment object that belongs to the given
         * message.
         */
        public DRG(Group parent, ModelClassFactory factory) : base(parent, factory)
        {
            Message message = Message;

            try {
                this.add(typeof(CE), false, 1, 4, new System.Object[] { message }, "Diagnostic Related Group");
                this.add(typeof(TS), false, 1, 26, new System.Object[] { message }, "DRG Assigned Date/Time");
                this.add(typeof(ID), false, 1, 2, new System.Object[] { message, 136 }, "DRG Approval Indicator");
                this.add(typeof(IS), false, 1, 2, new System.Object[] { message, 56 }, "DRG Grouper Review Code");
                this.add(typeof(CE), false, 1, 60, new System.Object[] { message }, "Outlier Type");
                this.add(typeof(NM), false, 1, 3, new System.Object[] { message }, "Outlier Days");
                this.add(typeof(CP), false, 1, 12, new System.Object[] { message }, "Outlier Cost");
                this.add(typeof(IS), false, 1, 1, new System.Object[] { message, 229 }, "DRG Payor");
                this.add(typeof(CP), false, 1, 9, new System.Object[] { message }, "Outlier Reimbursement");
                this.add(typeof(ID), false, 1, 1, new System.Object[] { message, 136 }, "Confidential Indicator");
            } catch (HL7Exception he) {
                HapiLogFactory.getHapiLog(GetType()).error("Can't instantiate " + this.getStructureName(), he);
            }
        }
Ejemplo n.º 24
0
 /**
  * Returns all repetitions of Substance Expiration Date (RXA-16).
  */
 public TS[] getSubstanceExpirationDate()
 {
     TS[] ret = null;
     try {
         Type[] t = this.getField(16);
         ret = new TS[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (TS)t[i];
         }
     } catch (HL7Exception he) {
         HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value.  This is a bug.", he);
         throw new System.Exception("An unexpected error ocurred", he);
     } catch (System.Exception cce) {
         HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value.  This is a bug.", cce);
         throw new System.Exception("An unexpected error ocurred", cce);
     }
     return(ret);
 }
Ejemplo n.º 25
0
 /**
  * Returns all repetitions of Substance/Treatment Refusal Reason (RXA-18).
  */
 public CE[] getSubstanceTreatmentRefusalReason()
 {
     CE[] ret = null;
     try {
         Type[] t = this.getField(18);
         ret = new CE[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (CE)t[i];
         }
     } catch (HL7Exception he) {
         HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value.  This is a bug.", he);
         throw new System.Exception("An unexpected error ocurred", he);
     } catch (System.Exception cce) {
         HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value.  This is a bug.", cce);
         throw new System.Exception("An unexpected error ocurred", cce);
     }
     return(ret);
 }
Ejemplo n.º 26
0
 /**
  * Returns all repetitions of Administering Provider (RXA-10).
  */
 public XCN[] getAdministeringProvider()
 {
     XCN[] ret = null;
     try {
         Type[] t = this.getField(10);
         ret = new XCN[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (XCN)t[i];
         }
     } catch (HL7Exception he) {
         HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value.  This is a bug.", he);
         throw new System.Exception("An unexpected error ocurred", he);
     } catch (System.Exception cce) {
         HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value.  This is a bug.", cce);
         throw new System.Exception("An unexpected error ocurred", cce);
     }
     return(ret);
 }
Ejemplo n.º 27
0
 /**
  * Returns all repetitions of Assistant Result Interpreter (OBR-33).
  */
 public CM_NDL[] getAssistantResultInterpreter()
 {
     CM_NDL[] ret = null;
     try {
         Type[] t = this.getField(33);
         ret = new CM_NDL[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (CM_NDL)t[i];
         }
     } catch (HL7Exception he) {
         HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value.  This is a bug.", he);
         throw new System.Exception("An unexpected error ocurred", he);
     } catch (System.Exception cce) {
         HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value.  This is a bug.", cce);
         throw new System.Exception("An unexpected error ocurred", cce);
     }
     return(ret);
 }
Ejemplo n.º 28
0
 /**
  * Returns all repetitions of Result Copies To (OBR-28).
  */
 public CN_PERSON[] getResultCopiesTo()
 {
     CN_PERSON[] ret = null;
     try {
         Type[] t = this.getField(28);
         ret = new CN_PERSON[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (CN_PERSON)t[i];
         }
     } catch (HL7Exception he) {
         HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value.  This is a bug.", he);
         throw new System.Exception("An unexpected error ocurred", he);
     } catch (System.Exception cce) {
         HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value.  This is a bug.", cce);
         throw new System.Exception("An unexpected error ocurred", cce);
     }
     return(ret);
 }
Ejemplo n.º 29
0
 /**
  * Returns all repetitions of Disabled person identifier (DB1-3).
  */
 public CX[] getDisabledPersonIdentifier()
 {
     CX[] ret = null;
     try {
         Type[] t = this.getField(3);
         ret = new CX[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (CX)t[i];
         }
     } catch (HL7Exception he) {
         HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value.  This is a bug.", he);
         throw new System.Exception("An unexpected error ocurred", he);
     } catch (System.Exception cce) {
         HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value.  This is a bug.", cce);
         throw new System.Exception("An unexpected error ocurred", cce);
     }
     return(ret);
 }
Ejemplo n.º 30
0
 /**
  * Returns all repetitions of Order Callback Phone Number (OBR-17).
  */
 public TN[] getOrderCallbackPhoneNumber()
 {
     TN[] ret = null;
     try {
         Type[] t = this.getField(17);
         ret = new TN[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (TN)t[i];
         }
     } catch (HL7Exception he) {
         HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value.  This is a bug.", he);
         throw new System.Exception("An unexpected error ocurred", he);
     } catch (System.Exception cce) {
         HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value.  This is a bug.", cce);
         throw new System.Exception("An unexpected error ocurred", cce);
     }
     return(ret);
 }