///<summary>Throws an exception if validation fails.</summary> private static string GenerateCCD(Patient pat,string referralReason) { EhrCCD ccd=new EhrCCD(); return ccd.GenerateCCD(pat,referralReason,true,true,true,true,true,true,true,true,true,true,true,true,null,DateTime.MinValue); }
///<summary>Generates a Clinical Summary XML document with an appropriate referral string. Sections can be included/excluded. Output is for the date specified, but only applied to specific sections. Throws an exception if validation fails.</summary> public static string GenerateClinicalSummary(Patient pat,bool hasAllergy,bool hasEncounter,bool hasFunctionalStatus,bool hasImmunization,bool hasMedication,bool hasPlanOfCare,bool hasProblem,bool hasProcedure,bool hasReferral,bool hasResult,bool hasSocialHistory,bool hasVitalSign,string instructions,DateTime date) { string referralReason="Summary of previous appointment requested."; EhrCCD ccd=new EhrCCD(); return ccd.GenerateCCD(pat,referralReason,hasAllergy,hasEncounter,hasFunctionalStatus,hasImmunization,hasMedication,hasPlanOfCare,hasProblem,hasProcedure,hasReferral,hasResult,hasSocialHistory,hasVitalSign,instructions,date); }