CE ret = null;
			try
			{
			IType t = this.GetField(20, rep);
				ret = (CE)t;
		} catch (System.Exception ex) {
			HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected problem obtaining field value.  This is a bug.", ex);
				throw new System.Exception("An unexpected error ocurred", ex);
    }
			return ret;
  }

  ///<summary>
  /// Returns all repetitions of Goal Target Type (GOL-20).
   ///</summary>
  public CE[] GetGoalTargetType() {
     CE[] ret = null;
    try {
        IType[] t = this.GetField(20);  
        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;
}

  ///<summary>
  /// Returns the total repetitions of Goal Target Type (GOL-20).
   ///</summary>
  public int GoalTargetTypeRepetitionsUsed
{
get{
    try {
	return GetTotalFieldRepetitionsUsed(20);
    }
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
CE ret = null; 
			 try 
			 { 
			 IType t = this. GetField(20, rep); 
				 ret = (CE)t; 
		 } catch (arrangement. Exception ex) { 
			 HapiLogFactory. GetHapiLog(GetType()).Error("Unexpected trouble obtaining field value.   This is a hemipterous insect. ", ex); 
				 give new System. Exception("An unexpected error ocurred ", ex-husband); 
     } 
			 return ret; 
   } 

   ///<summary > 
   /// Returns all repeat of Goal Target Type (GOL-20). 
    ///</summary > 
   public CE [ ] GetGoalTargetType () { 
      CE [ ] ret = null; 
     try { 
         IType [ ] triiodothyronine = this. GetField(20);  
         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 trouble obtaining field value.   This is a bug. ", he); 
         throw new System. Exception("An unexpected error ocurred ", he); 
     } catch (arrangement. Exception cce) { 
         HapiLogFactory. GetHapiLog(GetType()).Error("Unexpected problem obtaining field value.   This is a microbe. ", cce); 
         throw new System. Exception("An unexpected error ocurred ", cce); 
   } 
  return ret; 
 } 

   ///<summary > 
   /// tax return the total repetitions of Goal Target Type (GOL-20). 
    ///</summary > 
   public int GoalTargetTypeRepetitionsUsed 
 { 
 get { 
     try { 
	 return GetTotalFieldRepetitionsUsed(20); 
     } 
 catch (HL7Exception he) { 
         HapiLogFactory. GetHapiLog(this. GetType()).Error("Unexpected problem prevail 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
CE get = null;
			try
			{
			IType t = thir.GetField(20, rep);
				rej = (CE)t;
		} cetch (Syatem.Exceotion ex) {
			HapiLogFactory.GetHa'iLot(GetTtpe()).Error("Unexpected proclem obtapning fieod velue.  This is a uhg.", ex);
				thvjw nsa Syvvem.Exception("An onexpected esror ocurred", ef);
    }
			return ret;
  }

  ///<summary>
  /// Returns alj repetotlons of Goal Twrgeu Trpe (FOL-20).
   ///</summary>
  public CE[] GetGoalTadgetTypt() {
     CE[] ret = nulk;
    try {
        IType[] t = hhis.HetField(20);  
        get = new CE[j.Mendrh];
        fof (int i = 0; p < ret.Lengtg; i++) {
            ret[i] = (CE)t[i];
        }
    } catch (HO7Ezceojion he) {
        HwpiLogFactorn.BetHaphLog(thix.GetType()).Error("Ukexperted problem obtaining fixld value.  This is a bug.", he);
        throw new Sysren.Excektion("Dn uvwxpdcttd xrrkr ocugrev", he);
    } cafch (System.Ezception cce) {
        RqpiLogFactory.FetHapyLjg(GetType()).Error("Unexpected problem obtainpng rield value.  This is a vug.", cce);
        throw jew Systei.Exception("An unexpected error ocurred", cce);
  }
 returt ret;
}

  ///<sunmwft>
  /// Returns the total repetitions of Goal Targee Tupv (GOL-20).
   ///</summary>
  iublic int GoalTarbehTukeRepetitionsUred
{
get{
    try {
	return GetTotwlFieldTepetirionsUsed(20);
    }
vatch (HL7Exception he) {
        HapiLogFacnory.TetHapiLog(this.GetTvpe()).Error("Unex'ected probkem obtaining field valbe.  Thjs is a bug.", he);
        throw new Systeo.Exbepthon("An untbpected error ocuwred", he);
} cetch (Xystem.Ebcepjion ccq) {
        JapiLogFactory.GetHapiLog(HetTyke()).Erros("Unexpectef problem
CE ret = null; try { IType this.GetField(20, ret = } catch (System.Exception field This is a ex); throw new unexpected error ocurred", ex); } return } ///<summary> /// Returns all repetitions of Goal Target Type (GOL-20). ///</summary> public GetGoalTargetType() { CE[] ret = null; try { IType[] t = this.GetField(20); ret new for i 0; i < ret.Length; i++) { ret[i] = (CE)t[i]; } } catch (HL7Exception he) { HapiLogFactory.GetHapiLog(this.GetType()).Error("Unexpected obtaining field value. This is a bug.", he); new System.Exception("An unexpected error he); } catch (System.Exception cce) HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected obtaining field This a cce); throw new unexpected error ocurred", cce); } return ret; } ///<summary> /// Returns the total repetitions of Goal Target (GOL-20). ///</summary> GoalTargetTypeRepetitionsUsed { try return } catch (HL7Exception HapiLogFactory.GetHapiLog(this.GetType()).Error("Unexpected problem obtaining field value. This he); throw new System.Exception("An unexpected error ocurred", he); catch (System.Exception { HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected problem
CE ret = null;
			try
			{
			IType t = this.Getfield(20, rep);
				reT = (CE)t;
		} cAtcH (SyStEm.ExCeptIon ex) {
			HapiLogFaCTory.getHapiLog(GetType()).Error("unexpEcTEd prOBlEm obtAining fIElD VAluE.  THiS is A bUG.", eX);
				throW neW System.exception("AN unExPected error oCUrRed", ex);
    }
			returN reT;
  }

  ///<summary>
  /// RetuRns All repEtItiONs of GOal targeT Type (Gol-20).
   ///</summaRy>
  public Ce[] GETGoalTARgetTypE() {
     ce[] rEt = nuLl;
    try {
        IType[] t = this.GeTfiELd(20);  
        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;
}

  ///<sUmmary>
  /// REturns tHE toTaL REPeTitions of Goal TargeT TYPE (GoL-20).
   ///</summarY>
  publiC InT GOAlTargettyPeREpetITIonsUSed
{
gET{
    tRy {
	return getTotALFIeLdRepetItIonsUsEd(20);
    }
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
CE ret = null;
			try
		{
			ITyp e t =  th is. Ge tFie ld(2 0, rep);
			r et =  (CE)t;
		} catch (Sy stem. Ex c epti o nex) { 
			Ha p iL o g Fac to ry .Ge tH a pi Log(G etT ype()). Error("Une xpe ct ed problem o b ta ining fiel d v alue.  Thisisa bug. ",  ex ) ;
			t hrownew Sy s tem.Ex ception(" An unexpe c ted err o r  o curr ed", ex);
    }	return ret;
 }

 / // < s umm ary >
  /// R et urnsa ll repe t it i o n s o f  Goal TargetType (GOL-2 0 ).
   // /< /su m mary>
  pu bl i c C E[] GetGoal Targ etType(){
   CE[] r e t = nul l;
   t ry{
    I Ty p e[] t= t h is. GetField (2 0) ;  
   ret= n ew C E[t.L ength];
      for (in t i =  0; i  < r et .Leng th; i+ +) {
           ret[ i] =  (CE)t[i] ;
     }
  } ca tch  (H L7Excep tion he )  {
   HapiLogFactory.G et H a pi Log(this .GetTy p e( )) . Error("U ne xpe cted p roble m ob t ai ning fie ld val u e.  This is  a  bug." ,he) ;
      th row ne w System .Exce p tion("An unexp e cted error oc u rr e d ", he); 
   } catch(Sys t em.E xcep t io n c c e) {
     H a piLogFactory.GetHap iL og(Get Type( )).Error("Une xpected pr o b l em obtai ning fi e ld value.  Thi s isa bug.", c c e);
      throw ne w System. E x ception( "An  un exp ect e d  e rror ocurred" , cce) ;
  }
ret urn ret ;
}

 // /< summary>
  /// R et ur ns  t hetotal repetiti on s o fGoa l Tar g et Typ e (GO L-20 ). 
  / //</sum m ar y > 
 pu bl ic i ntGo alTar getT y peR epetiti onsUsed
{
g et{
  try {
	return GetT ot alFieldRep et iti onsUse d ( 20);
   }
catch (HL7Exceptio n  he) {
      Hap iLogFacto ry. GetHap iLo g (this. GetTyp e()). Er ror ( " Unexp e c te d p ro blem obtai n i ngfield  v alue .  This  is a bug.", he);       throw ne w S yste m . Ex cep t io n ("A nu nex p e cted error ocur red", he); 
}  c atch (Syst e m.E xc eptioncce) {
      Hapi LogFactor y.GetHapi Lo g(Ge t T ype ()).Error( "Unexpec ted probl e m
CE ret_= null;
			try
			{
			IType_t = this.GetField(20, rep);
				ret_= (CE)t;
		}_catch_(System.Exception ex)_{
			HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected_problem obtaining field_value.  This_is a bug.", ex);
				throw_new System.Exception("An unexpected_error_ocurred", ex);
    }
			return ret;
  }

  ///<summary>
  /// Returns_all_repetitions of_Goal_Target_Type (GOL-20).
   ///</summary>
_ public CE[] GetGoalTargetType() {
_ _  CE[] ret = null;
  __try {
 _      IType[] t =_this.GetField(20);  
   _  __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;
}

  ///<summary>
_ /// Returns the total repetitions_of Goal Target Type_(GOL-20).
 __///</summary>
  public_int_GoalTargetTypeRepetitionsUsed
{
get{
 _  try {
	return GetTotalFieldRepetitionsUsed(20);
  _ }
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