/// <summary>
        /// Gets the variables available to the print template.
        /// </summary>
        /// <returns></returns>
        private Dictionary <string, object> GetVariables()
        {
            var variables = new Dictionary <string, object>();

            var procedure      = _report.Procedures.First();
            var order          = procedure.Order;
            var patientProfile = procedure.PatientProfile;

            // letterhead
            variables["Letterhead"] = new LetterheadFacade();

            // patient
            variables["Patient"] = new PatientFacade(patientProfile);

            // recipient
            variables["Recipient"] = new PractitionerFacade(_recipient.Practitioner, _recipient);

            // order
            variables["AccessionNumber"]      = order.AccessionNumber;
            variables["OrderingPractitioner"] = new PractitionerFacade(order.OrderingPractitioner, null);

            // procedures
            variables["Procedures"] = new ProceduresFacade(_report.Procedures);

            // report
            variables["ReportParts"] = new ReportPartsFacade(_report.Parts);

            return(variables);
        }
Beispiel #2
0
		/// <summary>
		/// Gets the variables available to the print template.
		/// </summary>
		/// <returns></returns>
		private Dictionary<string, object> GetVariables()
		{
			var variables = new Dictionary<string, object>();

			var procedure = _report.Procedures.First();
			var order = procedure.Order;
			var patientProfile = procedure.PatientProfile;

			// letterhead
			variables["Letterhead"] = new LetterheadFacade();

			// patient
			variables["Patient"] = new PatientFacade(patientProfile);

			// recipient
			variables["Recipient"] = new PractitionerFacade(_recipient.Practitioner, _recipient);

			// order
			variables["AccessionNumber"] = order.AccessionNumber;
			variables["OrderingPractitioner"] = new PractitionerFacade(order.OrderingPractitioner, null);

			// procedures
			variables["Procedures"] = new ProceduresFacade(_report.Procedures);

			// report
			variables["ReportParts"] = new ReportPartsFacade(_report.Parts);

			return variables;
		}