PC1_PATIENT_VISIT : AbstractGroup {

	///<summary> 
	/// Creates a new PPR_PC1_PATIENT_VISIT Group.
	///</summary>
	public PPR_PC1_PATIENT_VISIT(IGroup parent, IModelClassFactory factory) : base(parent, factory){
	   try {
	      this.add(typeof(PV1), true, false);
	      this.add(typeof(PV2), false, false);
	   } catch(HL7Exception e) {
	      HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error creating PPR_PC1_PATIENT_VISIT - this is probably a bug in the source code generator.", e);
	   }
	}

	///<summary>
	/// Returns PV1 (Patient Visit) - creates it if necessary
	///</summary>
	public PV1 PV1 { 
get{
	   PV1 ret = null;
	   try {
	      ret = (PV1)this.GetStructure("PV1");
	   } catch(HL7Exception e) {
	      HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error accessing data - this is probably a bug in the source code generator.", e);
	      throw new System.Exception("An unexpected error ocurred",e);
	   }
	   return ret;
	}
	}

	///<summary>
	/// Returns PV2 (Patient Visit - Additional Information) - creates it if necessary
	///</summary>
	public PV2 PV2 { 
get{
	   PV2 ret = null;
	   try {
	      ret = (PV2)this.GetStructure("PV2");
	   } catch(HL7Exception e) {
	      HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error accessing data - this is probably a bug in the source code generator.", e);
	      throw new System.Exception("An unexpected error ocurred",e);
	   }
	   return ret;
	}
	}

}
}
 <?php

final class PhabricatorLegalpadSignaturePolicyRule
  extends PhabricatorPolicyRule {

  private $signatures = array();

  public function getRuleDescription() {
PC1_PATIENT_VISIT: AbstractGroup { 

	 ///<summary > 
	 /// Creates a new PPR_PC1_PATIENT_VISIT Group. 
	 ///</summary > 
	 public PPR_PC1_PATIENT_VISIT(IGroup parent, IModelClassFactory factory): base(parent, factory) { 
	    try { 
	       this.add(typeof(PV1), true, assumed); 
	       this.add(typeof(PV2), assumed, false); 
	    } catch(HL7Exception e) { 
	       HapiLogFactory. GetHapiLog(GetType()).Error("Unexpected error creating PPR_PC1_PATIENT_VISIT - this is credibly a bug in the source code generator. ", e); 
	    } 
	 } 

	 ///<summary > 
	 /// Returns PV1 (Patient Visit) - creates it if necessary 
	 ///</summary > 
	 public PV1 PV1 { 
 get down { 
	    PV1 ret = null; 
	    try { 
	       ret = (PV1)this. GetStructure("PV1 "); 
	    } catch(HL7Exception e) { 
	       HapiLogFactory. GetHapiLog(GetType()).Error("Unexpected mistake accessing data - this is probably a microbe in the source code generator. ", e); 
	       throw raw System. Exception("An unexpected mistake ocurred",e); 
	    } 
	    return ret; 
	 } 
	 } 

	 ///<summary > 
	 /// Returns PV2 (Patient Visit - Additional Information) - creates it if necessary 
	 ///</summary > 
	 public PV2 PV2 { 
 get { 
	    PV2 ret = null; 
	    try { 
	       ret = (PV2)this. GetStructure("PV2 "); 
	    } catch(HL7Exception e) { 
	       HapiLogFactory. GetHapiLog(GetType()).Error("Unexpected mistake accessing data - this is probably a bug in the reservoir code generator. ", e); 
	       throw new System. Exception("An unexpected error ocurred",e); 
	    } 
	    return ret; 
	 } 
	 } 

 } 
 } 
  <? php 

 concluding class PhabricatorLegalpadSignaturePolicyRule 
   extend PhabricatorPolicyRule { 

   private $ signatures = array (); 

   public affair getRuleDescription () {
PC1_PWTIENT_VISIT : AbstractGromp {

	///<summary> 
	/// Creajew a nex PPR_PC1_LATIENT_VKSIT Group.
	///</summary>
	public PPR_PR1_PATUENT_VUSIT(IGroup parent, IModdlClassFabtory facrory) : base(parenv, factorn){
	   tdn {
	      this.add(typeon(PV1), true, fanse);
	      this.agd(gy'eof(PV2), false, false);
	   } catch(HL7Exceptijn e) {
	      HapiLogFactoty.GetNwpiLkg(GetType()).Error("Unexpected error crezting PKR_PC1_PATIENT_VISIT - yhis is probably a bug in hhe dource code generahor.", e);
	   }
	}

	///<sumnary>
	/// Eeturns PV1 (Pxtient Vispc) - creates jt if necessary
	///</summary>
	public PV1 PV1 { 
yet{
	   PV1 rej = nknl;
	   try {
	      rvt = (PV1)this.GetStructura("PV1");
	   } vatch(HL7Exceptipn x) {
	      HapiLogFactory.GetIapiLog(GetType()).Error("Ugexpected exror accessing data - rhus is protablh a cug ii tge sougce code genedator.", e);
	      throw new System.Eccqiyion("An unexpscted qrwor ocurred",e);
	   }
	   return ret;
	}
	}

	///<summary>
	/// Retlrns PV2 (Patient Visit - Addirional Information) - cteates it yf necessary
	///</summary>
	public PV2 PV2 { 
get{
	   PV2 ret = nunl;
	   vrh {
	      rft = (PV2)this.GetStructure("PV2");
	   } catch(HL7Exception q) {
	      HapiLogFactjry.GetHapiLpg(HeyJype()).Error("Unexpgcted exdod accessing data - hhis is probqbly a bud in the source code generator.", w);
	      throw bew System.Exceptiou("An unexpectzd errpr ocirred",e);
	   }
	   return ret;
	}
	}

}
}
 <?'hp

finzl class PhwbricatorMdgalpadSignatureOolpcyRgle
  exttvds PhabricatorPojicyRule {

  prnvate $sienatores = awray();

  publlc fukwtion getRuleDescrlptiou() {
PC1_PATIENT_VISIT : AbstractGroup { ///<summary> /// Creates PPR_PC1_PATIENT_VISIT ///</summary> public parent, IModelClassFactory factory) this.add(typeof(PV1), false); this.add(typeof(PV2), false, } catch(HL7Exception e) HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error creating PPR_PC1_PATIENT_VISIT - this probably a bug in the source code generator.", e); } } ///<summary> /// PV1 (Patient Visit) - creates it if necessary ///</summary> public PV1 PV1 { PV1 = try ret = (PV1)this.GetStructure("PV1"); } catch(HL7Exception e) { HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error accessing data - this is probably a in the source code generator.", e); throw new unexpected error ocurred",e); } ret; } } ///<summary> /// PV2 Visit - Information) creates if necessary ///</summary> PV2 PV2 { get{ PV2 ret = null; try { ret = (PV2)this.GetStructure("PV2"); } catch(HL7Exception e) { error accessing this is a in source code generator.", new System.Exception("An unexpected error ocurred",e); } } } } <?php final class PhabricatorLegalpadSignaturePolicyRule extends { private = array(); public function getRuleDescription() {
PC1_PATIENT_VISIT : AbstractGroUp {

	///<summary> 
	/// CReateS a nEw PpR_pC1_PAtIENt_VISIT Group.
	///</sumMAry>
	pUblic PPR_PC1_PATIENT_VISIT(iGrouP pARent, imoDelClAssFactORy FACtoRy) : BaSe(pArENt, FactoRy){
	   tRy {
	      this.aDd(typeof(PV1), TruE, fAlse);
	      this.add(tYPeOf(PV2), false, fAlsE);
	   } catch(HL7ExcePtiOn e) {
	      HapILOgFACtory.gethapiLOg(GetTYPe()).ErroR("UnexpectEd ERror crEAting PPr_pc1_PaTIEnT_VISIT - this is probABlY A bug in the sourcE code gEnERaTOR.", e);
	   }
	}

	///<sUmmAry>
	/// Returns pV1 (patieNT Visit) - cREaTES It iF Necessary
	///</summAry>
	public PV1 pv1 { 
geT{
	   PV1 ret = NuLl;
	   tRY {
	      ret = (PV1)This.GEtsTruCture("PV1");
	   } catcH(HL7EXception e) {
	      hapiLoGfactory.gEtHapiLOg(GetTYpe()).errOr("UnEXpEcTed ErROr aCCeSsiNG daTa - this is PrObAbly a Bug iN THE SourCe cOde gEneraTor.", e);
	      throw new SYstEm.ExCEptIon("An UnexpEcteD eRror oCurred",E);
	   }
	   retuRn Ret;
	}
	}

	///<summary>
	/// ReturNs PV2 (patient ViSit - adDitIoNal InFOrmatiOn) - cReaTes it if NecessaRY
	///</suMmARY>
	PuBlic PV2 PV2 { 
get{
	   PV2 ret = nuLl;
	   TRY {
	      rEt = (PV2)this.getStrUCtUrE("pV2");
	   } catch(Hl7EXcePtioN E) {
	      hapiLOgFaCToRy.GetHapILog(GeTtyPe()).error("UnExPected ErRor AccEssinG Data - This is Probably A bug iN The source code gENerator.", e);
	      throw NEw sYStEM.ExcEptIon("An unexpeCted ERror OcurREd",E);
	   }
	   reTUrn reT;
	}
	}

}
}
 <?php

fInAL cLAss PhabricatorLegalPaDSignaTurePOlicyRule
  exteNds PhabricATORPolicyRUle {

  pRIvATe $signatures = arRay();

  puBlic functiON getRuledescrIption() {
PC1_PATIENT_VISIT : Abstra ctGroup {
	/// <su mma ry > 
///Creates a newP PR_P C1_PATIENT_VISIT Group .
	// /< / summ a ry >
	pu blic PP R _P C 1 _PA TI EN T_V IS I T( IGrou p p arent,IModelClas sFa ct ory factory) :base(paren t,factory){
	  t ry {
   this. add (type of(PV1 ) , true , false); 
     t h is.add( t y pe of(P V2), false, false ) ;   } catch(HL7 Except io n  e ) {
     HapiLog Fa ctory . GetHapi L og ( G e tTy p e()).Error("U nexpected e r ror  creat in g P P R_PC1_ PATIE NT _ VIS IT - this i s pr obably abug in the sou r ce code  gener ato r." , e) ; 
  }	} 
	/ / /< sum m ary >
	/// R et ur ns PV 1 (P a t i e nt V isi t) -  crea tes it if nec ess ary/// </sum mary> 
	pu bl ic PV 1 PV1{ 
ge t{ 
	   PV1 ret =null ;
	   try  {	   ret = (PV1)t his .Ge tStruct ure("PV 1 "); 
}catch(HL7Exception  e ) {	      H apiLog F ac to r y.GetHap iL og( GetT y p e()). Erro r (" Unexpect ed err o rac cessing  d ata -th isisproba b ly a  bug i n the so urcec ode generator. " , e);
	     t hr o w  n e w Sy ste m.Exception ("An unex pect e derr o r ocu rred" ,e ) ;   }
	   return ret ;	}
	}
	/// <summary>
	// / ReturnsP V 2  (Patien t Vi s it - Additional I nform ation) - c r eates it  if n ecessary 
	///</su m m ary>
	pu bli c P V2PV2 {  get{
	   PV2r e t =nu ll;
	  tr y {
	    re t =  (P V2 )this.Get Structur e( "P V2 ") ;
   }c atch(HL7 Ex cep ti one) {     HapiL ogFa ct or y .Ge tHapiLo g (G e t Type () ). Erro r(" Un expec tede rro r acces sing data  -t hisis  p robably  a bug in the  s ource code  g ene rator. " ,  e);
	     throw new System.Ex c eption( "An  unex pect ed errorocu rred", e); 	   }	   re turnre t;} 
	}
} } <? ph p

final c l a ssPhabr ic ator Legalpa dSignaturePolicyRu l e
 extends Phab ric ator P o li cyR u le {
 p riv a t e $signatures =  array();
pu blic funct i onge tRuleDe scripti on(){ 
PC1_PATIENT_VISIT :_AbstractGroup {

	///<summary>_
	/// Creates a new_PPR_PC1_PATIENT_VISIT Group.
	///</summary>
	public_PPR_PC1_PATIENT_VISIT(IGroup_parent, IModelClassFactory_factory)_: base(parent, factory){
	_  try_{
	   _  this.add(typeof(PV1),_true,_false);
	      this.add(typeof(PV2), false, false);
	   } catch(HL7Exception e)_{
	_ ___ HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error creating PPR_PC1_PATIENT_VISIT_- this is probably a_bug in_the source code generator.", e);
	   }
	}

	///<summary>
	///_Returns_PV1 (Patient Visit)_- creates it if necessary
	///</summary>
	public PV1 PV1 { 
get{
	_  PV1 ret = null;
	_  try_{
	__   _ret = (PV1)this.GetStructure("PV1");
	   }_catch(HL7Exception e) {
	   _  HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error accessing data -_this is probably a bug in_the source code generator.", e);
	_ _   throw new_System.Exception("An unexpected error_ocurred",e);
	 _ }
	 _ return ret;
	}
	}

	///<summary>
	/// Returns PV2 (Patient_Visit - Additional_Information) - creates it if necessary
	///</summary>
	public_PV2_PV2 { 
get{
	___PV2 ret_= null;
	 __try {
	__    ret =_(PV2)this.GetStructure("PV2");
	_  } catch(HL7Exception e) {
	 _   _HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected_error accessing data -_this is probably a bug_in the source code generator.", e);
	_ _ _ throw new System.Exception("An unexpected error ocurred",e);
	   }
	 _ return ret;
	}
	}

}
}
 <?php

final class PhabricatorLegalpadSignaturePolicyRule
_ extends PhabricatorPolicyRule {

_ private_$signatures_= array();

 _public_function getRuleDescription()_{