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
			)
		{
		}
Exemplo n.º 2
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);
 }
Exemplo n.º 3
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);
 }
Exemplo n.º 4
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
         )
 {
 }
Exemplo n.º 5
0
        /// <summary>
        /// Formats the MRN number according to the specified format string.
        /// </summary>
        /// <remarks>
        /// Valid format specifiers are as follows:
        ///     %N - number
        ///     %A - assigning authority
        /// </remarks>
        /// <param name="mrn"></param>
        /// <param name="format"></param>
        /// <returns></returns>
        public static string Format(CompositeIdentifierDetail mrn, string format)
        {
            string result = format;

            result = result.Replace("%N", mrn.Id ?? "");
            result = result.Replace("%A", mrn.AssigningAuthority == null ? "" : mrn.AssigningAuthority.Code);
            return(result.Trim());
        }
Exemplo 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;
        }
Exemplo 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;
        }
 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;
 }
Exemplo n.º 9
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;
 }
Exemplo n.º 11
0
 public OperationAuditData(string operation, CompositeIdentifierDetail mrn, PersonNameDetail name)
 {
     this.Operation = operation;
     this.Patient   = new PatientAuditData(mrn, name);
 }
Exemplo n.º 12
0
 public OpenWorkspaceOperationAuditData(string workspace, CompositeIdentifierDetail mrn, PersonNameDetail name)
     : base(AuditHelper.Operations.DocumentWorkspaceOpen, mrn, name)
 {
     this.Workspace = workspace;
 }
Exemplo n.º 13
0
 public PreviewOperationAuditData(string folderSystem, CompositeIdentifierDetail mrn, PersonNameDetail name, string accessionNumber)
     : base(AuditHelper.Operations.FolderItemPreview, mrn, name, accessionNumber)
 {
     this.FolderSystem = folderSystem;
 }
Exemplo n.º 14
0
 /// <summary>
 /// Formats the MRN according to the default format as specified in <see cref="FormatSettings"/>
 /// </summary>
 /// <param name="mrn"></param>
 /// <returns></returns>
 public static string Format(CompositeIdentifierDetail mrn)
 {
     return(Format(mrn, FormatSettings.Default.MrnDefaultFormat));
 }
Exemplo n.º 15
0
 /// <summary>
 /// Formats the MRN according to the default format as specified in <see cref="FormatSettings"/>
 /// </summary>
 /// <param name="vn"></param>
 /// <returns></returns>
 public static string Format(CompositeIdentifierDetail vn)
 {
     return(Format(vn, FormatSettings.Default.VisitNumberDefaultFormat));
 }