Example #1
0
File: SCH.cs Project: snosrap/nhapi
 /**
    * Returns all repetitions of Placer Contact Person (SCH-12).
    */
 public XCN[] getPlacerContactPerson()
 {
     XCN[] ret = null;
     try {
     Type[] t = this.getField(12);
     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;
 }
Example #2
0
File: TXA.cs Project: snosrap/nhapi
 /**
    * Returns all repetitions of Distributed Copies (Code and Name of Recipients) (TXA-23).
    */
 public XCN[] getDistributedCopiesCodeandNameofRecipients()
 {
     XCN[] ret = null;
     try {
     Type[] t = this.getField(23);
     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;
 }