Esempio n. 1
0
 public OperationAuditData(string operation, CompositeIdentifierDetail mrn, PersonNameDetail name, string accessionNumber, string procedureName)
 {
     this.Operation = operation;
     this.Patient   = new PatientAuditData(mrn, name);
     this.Order     = new OrderAuditData(accessionNumber);
     this.Procedure = new ProcedureAuditData(procedureName);
 }
Esempio n. 2
0
 public PatientAuditData(CompositeIdentifierDetail mrn, PersonNameDetail name)
 {
     Mrn  = string.Format("{0} {1}", mrn.AssigningAuthority.Code, mrn.Id);
     Name = string.IsNullOrEmpty(name.MiddleName) ?
            string.Format("{0}, {1}", name.FamilyName, name.GivenName)
                         : string.Format("{0}, {1} {2}", name.FamilyName, name.GivenName, name.MiddleName);
 }
Esempio n. 3
0
 public RegistrationWorklistItemSummary(
     EntityRef procedureRef,
     EntityRef orderRef,
     EntityRef patientRef,
     EntityRef profileRef,
     CompositeIdentifierDetail mrn,
     PersonNameDetail name,
     string accessionNumber,
     EnumValueInfo orderPriority,
     EnumValueInfo patientClass,
     string diagnosticServiceName,
     string procedureName,
     bool procedurePortable,
     EnumValueInfo procedureLaterality,
     DateTime?time)
     : base(
         null,
         procedureRef,
         orderRef,
         patientRef,
         profileRef,
         mrn,
         name,
         accessionNumber,
         orderPriority,
         patientClass,
         diagnosticServiceName,
         procedureName,
         procedurePortable,
         procedureLaterality,
         null,
         time
         )
 {
 }
		public RegistrationWorklistItemSummary(
			EntityRef procedureRef,
			EntityRef orderRef,
			EntityRef patientRef,
			EntityRef profileRef,
			CompositeIdentifierDetail mrn,
			PersonNameDetail name,
			string accessionNumber,
			EnumValueInfo orderPriority,
			EnumValueInfo patientClass,
			string diagnosticServiceName,
			string procedureName,
			bool procedurePortable,
			EnumValueInfo procedureLaterality,
			DateTime? time)
			:base(
				null,
				procedureRef,
				orderRef,
				patientRef,
				profileRef,
				mrn,
				name,
				accessionNumber,
				orderPriority,
				patientClass,
				diagnosticServiceName,
				procedureName,
				procedurePortable,
				procedureLaterality,
				null,
				time
			)
		{
		}
Esempio n. 5
0
 public void UpdatePersonName(PersonNameDetail detail, PersonName personName)
 {
     personName.FamilyName = TrimDetail(detail.FamilyName);
     personName.GivenName  = TrimDetail(detail.GivenName);
     personName.MiddleName = TrimDetail(detail.MiddleName);
     personName.Prefix     = TrimDetail(detail.Prefix);
     personName.Suffix     = TrimDetail(detail.Suffix);
     personName.Degree     = TrimDetail(detail.Degree);
 }
Esempio n. 6
0
        public PatientBiographyDocument(PatientProfileSummary patientProfile, IDesktopWindow window)
            : base(patientProfile.PatientRef, window)
        {
            Platform.CheckForNullReference(patientProfile.PatientRef, "PatientRef");
            Platform.CheckForNullReference(patientProfile.PatientProfileRef, "PatientProfileRef");

            _patientRef  = patientProfile.PatientRef;
            _profileRef  = patientProfile.PatientProfileRef;
            _patientName = patientProfile.Name;
            _mrn         = patientProfile.Mrn;
        }
Esempio n. 7
0
        public PatientBiographyDocument(WorklistItemSummaryBase worklistItem, IDesktopWindow window)
            : base(worklistItem.PatientRef, window)
        {
            Platform.CheckForNullReference(worklistItem.PatientRef, "PatientRef");
            Platform.CheckForNullReference(worklistItem.PatientProfileRef, "PatientProfileRef");
            // the worklist item may not have an OrderRef (may represent just a patient)

            _patientRef  = worklistItem.PatientRef;
            _profileRef  = worklistItem.PatientProfileRef;
            _patientName = worklistItem.PatientName;
            _mrn         = worklistItem.Mrn;

            _orderRef = worklistItem.OrderRef;
        }
Esempio n. 8
0
        /// <summary>
        /// Formats the specified person name according to the specified format string.
        /// </summary>
        /// <remarks>
        /// Valid format specifiers are as follows:
        ///     %F - full family name
        ///     %f - family name initial
        ///     %G - full given name
        ///     %g - given name initial
        ///     %M - full middle name
        ///     %m - middle initial
        /// </remarks>
        /// <param name="pn"></param>
        /// <param name="format"></param>
        /// <returns></returns>
        public static string Format(PersonNameDetail pn, string format)
        {
            // G g F f M m
            string result = format;

            result = result.Replace("%G", pn.GivenName == null ? "" : pn.GivenName);
            result = result.Replace("%g", pn.GivenName == null || pn.GivenName.Length == 0 ? "" : pn.GivenName.Substring(0, 1));
            result = result.Replace("%F", pn.FamilyName == null ? "" : pn.FamilyName);
            result = result.Replace("%f", pn.FamilyName == null || pn.FamilyName.Length == 0 ? "" : pn.FamilyName.Substring(0, 1));
            result = result.Replace("%M", pn.MiddleName == null ? "" : pn.MiddleName);
            result = result.Replace("%m", pn.MiddleName == null || pn.MiddleName.Length == 0 ? "" : pn.MiddleName.Substring(0, 1));

            return(result.Trim());
        }
Esempio n. 9
0
        public PersonNameDetail CreatePersonNameDetail(PersonName personName)
        {
            if (personName == null)
            {
                return(new PersonNameDetail());
            }

            PersonNameDetail detail = new PersonNameDetail();

            detail.FamilyName = personName.FamilyName;
            detail.GivenName  = personName.GivenName;
            detail.MiddleName = personName.MiddleName;
            detail.Prefix     = personName.Prefix;
            detail.Suffix     = personName.Suffix;
            detail.Degree     = personName.Degree;
            return(detail);
        }
 public ReportingWorklistItemSummary(
     EntityRef procedureStepRef,
     EntityRef procedureRef,
     EntityRef orderRef,
     EntityRef patientRef,
     EntityRef profileRef,
     EntityRef reportRef,
     CompositeIdentifierDetail mrn,
     PersonNameDetail name,
     string accessionNumber,
     EnumValueInfo orderPriority,
     EnumValueInfo patientClass,
     string diagnosticServiceName,
     string procedureName,
     bool procedurePortable,
     bool hasErrors,
     EnumValueInfo procedureLaterality,
     string procedureStepName,
     DateTime? time,
     EnumValueInfo activityStatus,
     int reportPartIndex)
     : base(
         procedureStepRef,
         procedureRef,
         orderRef,
         patientRef,
         profileRef,
         mrn,
         name,
         accessionNumber,
         orderPriority,
         patientClass,
         diagnosticServiceName,
         procedureName,
         procedurePortable,
         procedureLaterality,
         procedureStepName,
         time
     )
 {
     this.ReportRef = reportRef;
     this.ActivityStatus = activityStatus;
     this.ReportPartIndex = reportPartIndex;
     this.HasErrors = hasErrors;
 }
Esempio n. 11
0
 public ReportingWorklistItemSummary(
     EntityRef procedureStepRef,
     EntityRef procedureRef,
     EntityRef orderRef,
     EntityRef patientRef,
     EntityRef profileRef,
     EntityRef reportRef,
     CompositeIdentifierDetail mrn,
     PersonNameDetail name,
     string accessionNumber,
     EnumValueInfo orderPriority,
     EnumValueInfo patientClass,
     string diagnosticServiceName,
     string procedureName,
     bool procedurePortable,
     bool hasErrors,
     EnumValueInfo procedureLaterality,
     string procedureStepName,
     DateTime?time,
     EnumValueInfo activityStatus,
     int reportPartIndex)
     : base(
         procedureStepRef,
         procedureRef,
         orderRef,
         patientRef,
         profileRef,
         mrn,
         name,
         accessionNumber,
         orderPriority,
         patientClass,
         diagnosticServiceName,
         procedureName,
         procedurePortable,
         procedureLaterality,
         procedureStepName,
         time
         )
 {
     this.ReportRef       = reportRef;
     this.ActivityStatus  = activityStatus;
     this.ReportPartIndex = reportPartIndex;
     this.HasErrors       = hasErrors;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="noteRef"></param>
 /// <param name="orderRef"></param>
 /// <param name="patientRef"></param>
 /// <param name="patientProfileRef"></param>
 /// <param name="mrn"></param>
 /// <param name="patientName"></param>
 /// <param name="dateOfBirth"></param>
 /// <param name="accessionNumber"></param>
 /// <param name="diagnosticServiceName"></param>
 /// <param name="category"></param>
 /// <param name="urgent"></param>
 /// <param name="postTime"></param>
 /// <param name="author"></param>
 /// <param name="onBehalfOfGroup"></param>
 /// <param name="isAcknowledged"></param>
 /// <param name="staffRecipients"></param>
 /// <param name="groupRecipients"></param>
 public OrderNoteboxItemSummary(
     EntityRef noteRef,
     EntityRef orderRef,
     EntityRef patientRef,
     EntityRef patientProfileRef,
     CompositeIdentifierDetail mrn,
     PersonNameDetail patientName,
     DateTime?dateOfBirth,
     string accessionNumber,
     string diagnosticServiceName,
     string category,
     bool urgent,
     DateTime?postTime,
     StaffSummary author,
     StaffGroupSummary onBehalfOfGroup,
     bool isAcknowledged,
     List <StaffSummary> staffRecipients,
     List <StaffGroupSummary> groupRecipients)
 {
     NoteRef           = noteRef;
     OrderRef          = orderRef;
     PatientRef        = patientRef;
     PatientProfileRef = patientProfileRef;
     Mrn                   = mrn;
     PatientName           = patientName;
     DateOfBirth           = dateOfBirth;
     AccessionNumber       = accessionNumber;
     DiagnosticServiceName = diagnosticServiceName;
     Category              = category;
     Urgent                = urgent;
     PostTime              = postTime;
     Author                = author;
     OnBehalfOfGroup       = onBehalfOfGroup;
     IsAcknowledged        = isAcknowledged;
     StaffRecipients       = staffRecipients;
     GroupRecipients       = groupRecipients;
 }
Esempio n. 13
0
 public OperationAuditData(string operation, CompositeIdentifierDetail mrn, PersonNameDetail name)
 {
     this.Operation = operation;
     this.Patient   = new PatientAuditData(mrn, name);
 }
Esempio n. 14
0
 public OpenWorkspaceOperationAuditData(string workspace, CompositeIdentifierDetail mrn, PersonNameDetail name)
     : base(AuditHelper.Operations.DocumentWorkspaceOpen, mrn, name)
 {
     this.Workspace = workspace;
 }
Esempio n. 15
0
 public PreviewOperationAuditData(string folderSystem, CompositeIdentifierDetail mrn, PersonNameDetail name, string accessionNumber)
     : base(AuditHelper.Operations.FolderItemPreview, mrn, name, accessionNumber)
 {
     this.FolderSystem = folderSystem;
 }
Esempio n. 16
0
 /// <summary>
 /// Formats the person name according to the default person name format as specified in <see cref="FormatSettings"/>
 /// </summary>
 /// <param name="pn"></param>
 /// <returns></returns>
 public static string Format(PersonNameDetail pn)
 {
     return(Format(pn, FormatSettings.Default.PersonNameDefaultFormat));
 }