Example #1
0
  ///<summary>
  /// Returns all repetitions of Prior Patient ID - Internal (MRG-1).
   ///</summary>
  public CX[] GetPriorPatientIDInternal() {
     CX[] ret = null;
    try {
        IType[] t = this.GetField(1);  
        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;
}
Example #2
0
 /// <summary>
 /// Returns all repetitions of Patient ID (Internal ID) (PID-3).
 /// 
 /// </summary>
 public CX[] GetPatientIDInternalID()
 {
   CX[] cxArray;
   try
   {
     IType[] field = this.GetField(3);
     cxArray = new CX[field.Length];
     for (int index = 0; index < cxArray.Length; ++index)
       cxArray[index] = (CX) field[index];
   }
   catch (HL7Exception ex)
   {
     HapiLogFactory.GetHapiLog(this.GetType()).Error((object) "Unexpected problem obtaining field value.  This is a bug.", (Exception) ex);
     throw new Exception("An unexpected error ocurred", (Exception) ex);
   }
   catch (Exception ex)
   {
     HapiLogFactory.GetHapiLog(this.GetType()).Error((object) "Unexpected problem obtaining field value.  This is a bug.", ex);
     throw new Exception("An unexpected error ocurred", ex);
   }
   return cxArray;
 }