Example #1
0
 /**
  * Returns all repetitions of Contract Organization (CDM-12).
  */
 public XON[] getContractOrganization()
 {
     XON[] ret = null;
     try {
         Type[] t = this.getField(12);
         ret = new XON[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (XON)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 Approving Regulatory Agency (ITM-16).
 ///</summary>
 public XON[] GetApprovingRegulatoryAgency()
 {
     XON[] ret = null;
     try {
         IType[] t = this.GetField(16);
         ret = new XON[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (XON)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 #3
0
 /// <summary> Returns all repetitions of Manufacturer/Distributor (PDC-1).</summary>
 public virtual XON[] getManufacturerDistributor()
 {
     XON[] ret = null;
     try
     {
         Type[] t = this.getField(1);
         ret = new XON[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (XON)t[i];
         }
     }
     catch (System.InvalidCastException)
     {
         throw new Exception();
     }
     catch (NuGenHL7Exception)
     {
         throw new Exception();
     }
     return(ret);
 }
Example #4
0
 /// <summary> Returns all repetitions of Organizational Location Relationship Value (LRL-5).</summary>
 public virtual XON[] getOrganizationalLocationRelationshipValue()
 {
     XON[] ret = null;
     try
     {
         Type[] t = this.getField(5);
         ret = new XON[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (XON)t[i];
         }
     }
     catch (System.InvalidCastException)
     {
         throw new Exception();
     }
     catch (NuGenHL7Exception)
     {
         throw new Exception();
     }
     return(ret);
 }
Example #5
0
 /// <summary> Returns all repetitions of Insured's Group Emp Name (IN1-11).</summary>
 public virtual XON[] getInsuredSGroupEmpName()
 {
     XON[] ret = null;
     try
     {
         Type[] t = this.getField(11);
         ret = new XON[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (XON)t[i];
         }
     }
     catch (System.InvalidCastException)
     {
         throw new Exception();
     }
     catch (NuGenHL7Exception)
     {
         throw new Exception();
     }
     return(ret);
 }
Example #6
0
 /// <summary> Returns all repetitions of Patient Primary Facility (PD1-3).</summary>
 public virtual XON[] getPatientPrimaryFacility()
 {
     XON[] ret = null;
     try
     {
         Type[] t = this.getField(3);
         ret = new XON[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (XON)t[i];
         }
     }
     catch (System.InvalidCastException)
     {
         throw new Exception();
     }
     catch (NuGenHL7Exception)
     {
         throw new Exception();
     }
     return(ret);
 }
Example #7
0
 public XdsOrganization(string organization)
 {
     _organization = DataType.Parse(new XON(), organization);
 }
Example #8
0
 public XdsOrganization(XON organization)
 {
     _organization = organization;
 }
Example #9
0
 /// <summary>
 /// Converts an <see cref="CX"/> instance to an <see cref="EntityIdentifier"/> instance.
 /// </summary>
 /// <param name="identifier">The identifier to be converted.</param>
 /// <returns>Returns the converted identifier.</returns>
 public static EntityIdentifier ToModel(this XON identifier)
 {
     return(new XON[] { identifier }.ToModel().FirstOrDefault());
 }