コード例 #1
0
 public PatientProfileTable()
 {
     this.Columns.Add(
         new TableColumn <PatientProfileSummary, string>(SR.ColumnMRN,
                                                         delegate(PatientProfileSummary profile) { return(MrnFormat.Format(profile.Mrn)); }, 1.0f));
     this.Columns.Add(
         new TableColumn <PatientProfileSummary, string>(SR.ColumnPatientName,
                                                         delegate(PatientProfileSummary profile) { return(PersonNameFormat.Format(profile.Name)); }, 2.0f));
     this.Columns.Add(
         new TableColumn <PatientProfileSummary, string>(SR.ColumnHealthcardNumber,
                                                         delegate(PatientProfileSummary profile) { return(HealthcardFormat.Format(profile.Healthcard)); }, 1.0f));
     this.Columns.Add(
         new DateTableColumn <PatientProfileSummary>(SR.ColumnDateOfBirth,
                                                     delegate(PatientProfileSummary profile) { return(profile.DateOfBirth); }, 1.0f));
     this.Columns.Add(
         new TableColumn <PatientProfileSummary, string>(SR.ColumnSex,
                                                         delegate(PatientProfileSummary profile) { return(profile.Sex.Value); }, 0.5f));
 }
コード例 #2
0
            /// <summary>
            /// Formats the specified healthcard (must be a JSML encoded <see cref="HealthcardDetail"/> object).
            /// </summary>
            /// <param name="jsml"></param>
            /// <returns></returns>
            public string FormatHealthcard(string jsml)
            {
                var healthcardDetail = JsmlSerializer.Deserialize <HealthcardDetail>(jsml);

                return(healthcardDetail == null ? "" : HealthcardFormat.Format(healthcardDetail));
            }
コード例 #3
0
        public ReconciliationCandidateTable()
        {
            this.Columns.Add(
                new TableColumn <ReconciliationCandidateTableEntry, bool>(SR.ColumnAbbreviationReconciliation,
                                                                          delegate(ReconciliationCandidateTableEntry item) { return(item.Checked); },
                                                                          delegate(ReconciliationCandidateTableEntry item, bool value) { item.Checked = value; }, 0.5f));
            this.Columns.Add(
                new TableColumn <ReconciliationCandidateTableEntry, string>(SR.ColumnScore,
                                                                            delegate(ReconciliationCandidateTableEntry item) { return(item.ReconciliationCandidate.Score.ToString()); }, 1.0f));
            this.Columns.Add(
                new TableColumn <ReconciliationCandidateTableEntry, string>(SR.ColumnSite,
                                                                            delegate(ReconciliationCandidateTableEntry item) { return(item.ReconciliationCandidate.PatientProfile.Mrn.AssigningAuthority.Code); }, 0.5f));
            this.Columns.Add(
                new TableColumn <ReconciliationCandidateTableEntry, string>(SR.ColumnMRN,
                                                                            delegate(ReconciliationCandidateTableEntry item) { return(item.ReconciliationCandidate.PatientProfile.Mrn.Id); }, 1.0f));
            this.Columns.Add(
                new TableColumn <ReconciliationCandidateTableEntry, string>(SR.ColumnName,
                                                                            delegate(ReconciliationCandidateTableEntry item) { return(PersonNameFormat.Format(item.ReconciliationCandidate.PatientProfile.Name)); }, 2.0f));
            this.Columns.Add(
                new TableColumn <ReconciliationCandidateTableEntry, string>(SR.ColumnHealthcardNumber,
                                                                            delegate(ReconciliationCandidateTableEntry item) { return(HealthcardFormat.Format(item.ReconciliationCandidate.PatientProfile.Healthcard)); }, 1.0f));

            DateTimeTableColumn <ReconciliationCandidateTableEntry> dateOfBirthColumn =
                new DateTimeTableColumn <ReconciliationCandidateTableEntry>(SR.ColumnDateOfBirth,
                                                                            delegate(ReconciliationCandidateTableEntry item) { return(item.ReconciliationCandidate.PatientProfile.DateOfBirth); }, 1.0f);

            this.Columns.Add(dateOfBirthColumn);

            this.Columns.Add(
                new TableColumn <ReconciliationCandidateTableEntry, string>(SR.ColumnSex,
                                                                            delegate(ReconciliationCandidateTableEntry item) { return(item.ReconciliationCandidate.PatientProfile.Sex.Value); }, 0.5f));
        }