private void SetPrimaryScreeningCode() { if (this.m_PanelSetOrder.PanelSetOrderCPTCodeCollection.Exists("88175", 1) == false && this.m_PanelSetOrder.PanelSetOrderCPTCodeCollection.Exists("88142", 1) == false) { YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology panelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology) this.m_PanelSetOrder; YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology panelOrderCytology = panelSetOrderCytology.GetPrimaryScreening(); YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrderByOrderTarget(this.m_PanelSetOrder.OrderedOnId); YellowstonePathology.Business.Billing.Model.CptCode cptCode = null; if (panelOrderCytology.ImagerError == false) { cptCode = new YellowstonePathology.Business.Billing.Model.CptCodeDefinition.CPT88175(); } else { cptCode = new YellowstonePathology.Business.Billing.Model.CptCodeDefinition.CPT88142(); cptCode.Modifier = "52"; } YellowstonePathology.Business.Test.PanelSetOrderCPTCode panelSetOrderCPTCode = this.m_PanelSetOrder.PanelSetOrderCPTCodeCollection.GetNextItem(this.m_PanelSetOrder.ReportNo); panelSetOrderCPTCode.Quantity = 1; panelSetOrderCPTCode.CPTCode = cptCode.Code; panelSetOrderCPTCode.CodeType = cptCode.CodeType.ToString(); panelSetOrderCPTCode.Modifier = cptCode.Modifier; panelSetOrderCPTCode.CodeableDescription = "Primary Screening (" + panelOrderCytology.ScreenedByName + ")"; panelSetOrderCPTCode.CodeableType = "CytologyPrimaryScreening"; panelSetOrderCPTCode.EntryType = YellowstonePathology.Business.Billing.Model.PanelSetOrderCPTCodeEntryType.SystemGenerated; panelSetOrderCPTCode.SpecimenOrderId = specimenOrder.SpecimenOrderId; panelSetOrderCPTCode.ClientId = this.m_AccessionOrder.ClientId; this.m_PanelSetOrder.PanelSetOrderCPTCodeCollection.Add(panelSetOrderCPTCode); } }
public override bool IsRequired(Business.Test.AccessionOrder accessionOrder) { bool result = false; YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest panelSetThinPrep = new YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest(); if (accessionOrder.PanelSetOrderCollection.Exists(panelSetThinPrep.PanelSetId) == true) { YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology panelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetThinPrep.PanelSetId); if (panelSetOrderCytology.Final == true) { if (YellowstonePathology.Business.Cytology.Model.CytologyResultCode.IsResultCodeNormal(panelSetOrderCytology.ResultCode) == true || YellowstonePathology.Business.Cytology.Model.CytologyResultCode.IsResultCodeReactive(panelSetOrderCytology.ResultCode) == true) { if (YellowstonePathology.Business.Cytology.Model.CytologyResultCode.IsResultCodeTZoneAbsent(panelSetOrderCytology.ResultCode) == true) { if (accessionOrder.PBirthdate < DateTime.Today.AddYears(-30)) { result = true; } } } } } return(result); }
public override bool IsRequired(Business.Test.AccessionOrder accessionOrder) { bool result = false; YellowstonePathology.Business.Test.HPV.HPVTest panelSetHPV = new YellowstonePathology.Business.Test.HPV.HPVTest(); YellowstonePathology.Business.Test.HPV1618.HPV1618Test panelSetHPV1618 = new YellowstonePathology.Business.Test.HPV1618.HPV1618Test(); YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest panelSetThinPrepPap = new YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest(); if (accessionOrder.PanelSetOrderCollection.Exists(panelSetThinPrepPap.PanelSetId) == true) { YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology panelsetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetThinPrepPap.PanelSetId); if (panelsetOrderCytology.Final == true) { string papResultCode = panelsetOrderCytology.ResultCode; if (YellowstonePathology.Business.Cytology.Model.CytologyResultCode.IsResultCodeNormal(papResultCode) == true || YellowstonePathology.Business.Cytology.Model.CytologyResultCode.IsResultCodeReactive(papResultCode) == true) { if (accessionOrder.PanelSetOrderCollection.Exists(panelSetHPV.PanelSetId) == true) { YellowstonePathology.Business.Test.HPV.HPVTestOrder hpvTestOrder = (YellowstonePathology.Business.Test.HPV.HPVTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetHPV.PanelSetId); if (hpvTestOrder.ResultCode == YellowstonePathology.Business.Test.HPV.HPVResult.OveralResultCodePositive) { result = true; } } } } } return(result); }
public override bool IsRequired(Business.Test.AccessionOrder accessionOrder) { bool result = false; if (accessionOrder.PanelSetOrderCollection.Exists(15) == true) { YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology panelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(15); if (panelSetOrderCytology.Final == true) { if (YellowstonePathology.Business.Cytology.Model.CytologyResultCode.IsDiagnosisAscusLsil(panelSetOrderCytology.ResultCode) == true) { result = true; YellowstonePathology.Business.Domain.PatientHistory patientHistory = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPatientHistory(accessionOrder.PatientId); Nullable <DateTime> dateOfLastHPV = patientHistory.GetDateOfPreviousHpv(accessionOrder.AccessionDate.Value); if (dateOfLastHPV.HasValue == true) { if (dateOfLastHPV >= DateTime.Today.AddDays(-330)) { List <string> priorResults = patientHistory.GetPriorHPVResult(accessionOrder.MasterAccessionNo, DateTime.Today.AddDays(-330)); foreach (string hpvResult in priorResults) { if (hpvResult == YellowstonePathology.Business.Test.HPV.HPVResult.OveralResultCodePositive) { result = false; break; } } } } } } } return(result); }
public override bool IsRequired(Business.Test.AccessionOrder accessionOrder) { bool result = false; YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest panelSetThinPrep = new YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest(); if (accessionOrder.PanelSetOrderCollection.Exists(panelSetThinPrep.PanelSetId) == true) { YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology panelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetThinPrep.PanelSetId); if (panelSetOrderCytology.Final == true) { if (YellowstonePathology.Business.Cytology.Model.CytologyResultCode.IsDiagnosisAscusAgusLsilHsil(panelSetOrderCytology.ResultCode) == true) { if (accessionOrder.PBirthdate < DateTime.Today.AddYears(-20)) { YellowstonePathology.Business.Domain.PatientHistory patientHistory = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPatientHistory(accessionOrder.PatientId); Nullable <DateTime> dateOfLastHPV = patientHistory.GetDateOfPreviousHpv(accessionOrder.AccessionDate.Value); if (dateOfLastHPV.HasValue == true) { if (dateOfLastHPV < DateTime.Today.AddDays(-330)) { result = true; } } else { result = true; } } } } } return(result); }
public void Execute(YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology panelOrderCytology, YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology panelSetOrderCytology, YellowstonePathology.Business.Rules.ExecutionStatus executionStatus) { this.m_PanelSetOrderCytology = panelSetOrderCytology; this.m_PanelOrderCytology = panelOrderCytology; this.m_ExecutionStatus = executionStatus; this.m_Rule.Execute(executionStatus); }
public void Execute(YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology panelOrderCytology, YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology panelSetOrderCytology, YellowstonePathology.Business.Rules.ExecutionStatus executionStatus) { this.m_PanelSetOrderCytology = panelSetOrderCytology; this.m_PanelOrderCytology = panelOrderCytology; this.m_ExecutionStatus = executionStatus; this.m_Rule.Execute(executionStatus); }
public void SetAccessionOrder(YellowstonePathology.Business.Search.CytologyScreeningSearchResult searchResult) { this.m_AccessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(searchResult.MasterAccessionNo, this.m_Writer); this.m_PanelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(searchResult.ReportNo); this.m_SpecimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrderByOrderTarget(this.m_PanelSetOrderCytology.OrderedOnId); this.DataLoaded(); }
public void Execute(YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology panelOrderToFinal, YellowstonePathology.Business.Rules.ExecutionStatus executionStatus) { this.m_ExecutionStatus = executionStatus; this.m_AccessionOrder = accessionOrder; this.m_PanelOrderToFinal = panelOrderToFinal; this.m_PanelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_PanelOrderToFinal.ReportNo); this.m_Rule.Execute(executionStatus); }
public void Execute(YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology cytologyPanelOrderToUnfinal, YellowstonePathology.Business.Test.AccessionOrder cytologyAccessionOrder, YellowstonePathology.Business.Rules.ExecutionStatus executionStatus) { this.m_CytologyAccessionOrder = cytologyAccessionOrder; this.m_PanelOrderToUnfinal = cytologyPanelOrderToUnfinal; this.m_PanelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)this.m_CytologyAccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_PanelOrderToUnfinal.ReportNo); this.m_ExecutionStatus = executionStatus; this.m_Rule.Execute(executionStatus); }
public WomensHealthProfilePage(YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder womensHealthProfileTestOrder, YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder, System.Windows.Visibility backButtonVisibility) : base(womensHealthProfileTestOrder, accessionOrder) { this.m_AccessionOrder = accessionOrder; this.m_HPVReflexOrderCollection = YellowstonePathology.Business.Client.Model.ReflexOrderCollection.GetHPVRequisitionReflexOrders(); this.m_HPVStandingOrderCollection = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetHPVStandingOrders(); this.m_HPV1618ReflexOrderCollection = YellowstonePathology.Business.Client.Model.ReflexOrderCollection.GetHPV1618ReflexOrders(); this.m_HPV1618StandingOrderCollection = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetHPV1618StandingOrders(); this.m_ClientOrder = clientOrder; this.m_WomensHealthProfileTestOrder = womensHealthProfileTestOrder; this.m_SystemIdentity = Business.User.SystemIdentity.Instance; this.m_BackButtonVisibility = backButtonVisibility; this.m_Physician = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianByPhysicianId(this.m_AccessionOrder.PhysicianId); this.m_PanelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(15); this.m_AuditCollection = new Business.Audit.Model.IsWHPAllDoneAuditCollection(this.m_AccessionOrder); this.m_AuditCollection.Run(); if (string.IsNullOrEmpty(accessionOrder.PatientId) == false) { YellowstonePathology.Business.Domain.PatientHistory patientHistory = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPatientHistory(accessionOrder.PatientId); this.m_DateOfLastHPV = patientHistory.GetDateOfPreviousHpv(this.m_AccessionOrder.AccessionDate.Value); } YellowstonePathology.Business.Client.Model.StandingOrder standingOrder = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetByStandingOrderCode(this.m_WomensHealthProfileTestOrder.HPVStandingOrderCode); this.m_HPVStandingOrderDescription = standingOrder.ToString(); InitializeComponent(); this.DataContext = this; this.m_ParentWindow = Window.GetWindow(this); this.m_ControlsNotDisabledOnFinal.Add(this.ButtonClose); this.m_ControlsNotDisabledOnFinal.Add(this.ButtonBack); this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockShowDocument); this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockUnfinalize); this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockNext); this.m_ControlsNotEnabledOnUnFinal.Add(this.CheckBoxAccepted); this.m_ControlsNotEnabledOnUnFinal.Add(this.CheckBoxFinal); this.m_ControlsNotEnabledOnUnFinal.Add(this.ComboBoxStandingOrderDescription); this.m_ControlsNotEnabledOnUnFinal.Add(this.TextBlockLastHPVDate); this.m_ControlsNotEnabledOnUnFinal.Add(this.TextBlockPatientAge); this.m_ControlsNotEnabledOnUnFinal.Add(this.TextBlockScreeningImpression); this.m_ControlsNotEnabledOnUnFinal.Add(this.TextBlockStandingOrderDescription); this.m_ControlsNotEnabledOnUnFinal.Add(this.TextBoxAcceptedBy); this.m_ControlsNotEnabledOnUnFinal.Add(this.TextBoxAcceptedTime); this.m_ControlsNotEnabledOnUnFinal.Add(this.TextBoxFinalTime); this.m_ControlsNotEnabledOnUnFinal.Add(this.TextBoxSignaure); }
private void LoadDataByAliquotOrderId(string aliquotOrderId) { string masterAccessionNo = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetMasterAccessionNoFromAliquotOrderId(aliquotOrderId); this.m_AccessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(masterAccessionNo, this.m_Writer); YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrderByOrderTarget(aliquotOrderId); this.m_PanelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(15, specimenOrder.SpecimenOrderId, true); this.LoadData(); }
private void SetResults() { YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology panelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_PanelOrderToSet.ReportNo); YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology panelOrderResult = (YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology)panelSetOrderCytology.PanelOrderCollection[0]; this.m_PanelOrderToSet.ScreeningImpression = panelOrderResult.ScreeningImpression; this.m_PanelOrderToSet.SpecimenAdequacy = panelOrderResult.SpecimenAdequacy; this.m_PanelOrderToSet.OtherConditions = panelOrderResult.OtherConditions; this.m_PanelOrderToSet.ReportComment = panelOrderResult.ReportComment; this.m_PanelOrderToSet.ResultCode = panelOrderResult.ResultCode; }
public ThinPrepPapWordDocument(Business.Test.AccessionOrder accessionOrder, Business.Test.PanelSetOrder panelSetOrder, YellowstonePathology.Business.Document.ReportSaveModeEnum reportSaveMode) { this.m_AccessionOrder = accessionOrder; this.m_PanelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)panelSetOrder; this.m_ReportSaveEnum = reportSaveMode; this.m_NativeDocumentFormat = YellowstonePathology.Business.Document.NativeDocumentFormatEnum.Word; this.m_ReportXml = new XmlDocument(); this.m_NameSpaceManager = new XmlNamespaceManager(m_ReportXml.NameTable); this.m_NameSpaceManager.AddNamespace("w", "http://schemas.microsoft.com/office/word/2003/wordml"); }
public ThinPrepPapWordDocument(Business.Test.AccessionOrder accessionOrder, Business.Test.PanelSetOrder panelSetOrder, YellowstonePathology.Business.Document.ReportSaveModeEnum reportSaveMode) { this.m_AccessionOrder = accessionOrder; this.m_PanelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)panelSetOrder; this.m_ReportSaveEnum = reportSaveMode; this.m_NativeDocumentFormat = YellowstonePathology.Business.Document.NativeDocumentFormatEnum.Word; this.m_ReportXml = new XmlDocument(); this.m_NameSpaceManager = new XmlNamespaceManager(m_ReportXml.NameTable); this.m_NameSpaceManager.AddNamespace("w", "http://schemas.microsoft.com/office/word/2003/wordml"); }
public CanFinalizeCytologyPanelOrderAudit(YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology panelOrderToFinal, YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology panelSetOrderCytology, YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.User.SystemIdentity systemIdentity, YellowstonePathology.Business.Rules.ExecutionStatus executionStatus) { this.m_PanelOrderToFinal = panelOrderToFinal; this.m_PanelSetOrderCytology = panelSetOrderCytology; this.m_AccessionOrder = accessionOrder; this.m_SystemIdentity = systemIdentity; this.m_ExecutionStatus = executionStatus; }
public void Execute(YellowstonePathology.Business.Interface.IPanelOrder panelOrderToDelete, YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.Rules.ExecutionStatus executionStatus, YellowstonePathology.Business.User.SystemIdentity systemIdentity) { this.m_ExecutionStatus = executionStatus; this.m_AccessionOrder = accessionOrder; this.m_PanelOrderToDelete = panelOrderToDelete; this.m_PanelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_PanelOrderToDelete.ReportNo); this.m_CurrentUser = systemIdentity.User; this.m_Rule.Execute(executionStatus); }
public CanFinalizeCytologyPanelOrderAudit(YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology panelOrderToFinal, YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology panelSetOrderCytology, YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.User.SystemIdentity systemIdentity, YellowstonePathology.Business.Rules.ExecutionStatus executionStatus) { this.m_PanelOrderToFinal = panelOrderToFinal; this.m_PanelSetOrderCytology = panelSetOrderCytology; this.m_AccessionOrder = accessionOrder; this.m_SystemIdentity = systemIdentity; this.m_ExecutionStatus = executionStatus; }
public void Execute(YellowstonePathology.Business.Interface.IPanelOrder panelOrderToDelete, YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.Rules.ExecutionStatus executionStatus, YellowstonePathology.Business.User.SystemIdentity systemIdentity) { this.m_ExecutionStatus = executionStatus; this.m_AccessionOrder = accessionOrder; this.m_PanelOrderToDelete = panelOrderToDelete; this.m_PanelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_PanelOrderToDelete.ReportNo); this.m_CurrentUser = systemIdentity.User; this.m_Rule.Execute(executionStatus); }
public void Execute(string screeningType, YellowstonePathology.Business.Test.AccessionOrder cytologyAccessionOrder, YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology initiatingPanelOrder, ProcessingModeEnum processingMode, YellowstonePathology.Business.Rules.ExecutionStatus executionStatus) { this.m_ScreeningType = screeningType; this.m_CytologyAccessionOrder = cytologyAccessionOrder; this.m_InitiatingPanelOrder = initiatingPanelOrder; this.m_PanelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)cytologyAccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(initiatingPanelOrder.ReportNo); this.m_ProcessingMode = processingMode; this.m_ExecutionStatus = executionStatus; this.m_Rule.Execute(this.m_ExecutionStatus); }
public void Execute(string screeningType, YellowstonePathology.Business.Test.AccessionOrder cytologyAccessionOrder, YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology initiatingPanelOrder, ProcessingModeEnum processingMode, YellowstonePathology.Business.Rules.ExecutionStatus executionStatus) { this.m_ScreeningType = screeningType; this.m_CytologyAccessionOrder = cytologyAccessionOrder; this.m_InitiatingPanelOrder = initiatingPanelOrder; this.m_PanelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)cytologyAccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(initiatingPanelOrder.ReportNo); this.m_ProcessingMode = processingMode; this.m_ExecutionStatus = executionStatus; this.m_Rule.Execute(this.m_ExecutionStatus); }
public override string ToResultString(YellowstonePathology.Business.Test.AccessionOrder accessionOrder) { StringBuilder result = new StringBuilder(); YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest panelSetThinPrepPap = new YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest(); YellowstonePathology.Business.Test.HPV.HPVTest panelSetHPV = new YellowstonePathology.Business.Test.HPV.HPVTest(); YellowstonePathology.Business.Test.HPV1618.HPV1618Test panelSetHPV1618 = new YellowstonePathology.Business.Test.HPV1618.HPV1618Test(); YellowstonePathology.Business.Test.NGCT.NGCTTest panelSetNGCT = new YellowstonePathology.Business.Test.NGCT.NGCTTest(); YellowstonePathology.Business.Test.Trichomonas.TrichomonasTest panelSetTrichomonas = new YellowstonePathology.Business.Test.Trichomonas.TrichomonasTest(); if (accessionOrder.PanelSetOrderCollection.Exists(panelSetThinPrepPap.PanelSetId) == true) { YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology panelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetThinPrepPap.PanelSetId); result.AppendLine(panelSetOrderCytology.ToResultString(accessionOrder)); result.AppendLine(); } if (accessionOrder.PanelSetOrderCollection.Exists(panelSetHPV.PanelSetId) == true) { YellowstonePathology.Business.Test.HPV.HPVTestOrder hpvTestOrder = (YellowstonePathology.Business.Test.HPV.HPVTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetHPV.PanelSetId); result.AppendLine(hpvTestOrder.ToResultString(accessionOrder)); result.AppendLine(); } if (accessionOrder.PanelSetOrderCollection.Exists(panelSetHPV1618.PanelSetId) == true) { YellowstonePathology.Business.Test.HPV1618.PanelSetOrderHPV1618 panelSetOrderHPV1618 = (YellowstonePathology.Business.Test.HPV1618.PanelSetOrderHPV1618)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetHPV1618.PanelSetId); result.AppendLine(panelSetOrderHPV1618.ToResultString(accessionOrder)); result.AppendLine(); } if (accessionOrder.PanelSetOrderCollection.Exists(panelSetNGCT.PanelSetId) == true) { YellowstonePathology.Business.Test.NGCT.NGCTTestOrder panelSetOrderNGCT = (YellowstonePathology.Business.Test.NGCT.NGCTTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetNGCT.PanelSetId); result.AppendLine(panelSetOrderNGCT.ToResultString(accessionOrder)); result.AppendLine(); } if (accessionOrder.PanelSetOrderCollection.Exists(panelSetTrichomonas.PanelSetId) == true) { YellowstonePathology.Business.Test.Trichomonas.TrichomonasTestOrder reportOrderTrichomonas = (YellowstonePathology.Business.Test.Trichomonas.TrichomonasTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetTrichomonas.PanelSetId); result.AppendLine(reportOrderTrichomonas.ToResultString(accessionOrder)); result.AppendLine(); } return(result.ToString()); }
public WomensHealthProfilePage(YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder womensHealthProfileTestOrder, YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder, System.Windows.Visibility backButtonVisibility) : base(womensHealthProfileTestOrder, accessionOrder) { this.m_AccessionOrder = accessionOrder; this.m_HPVReflexOrderCollection = YellowstonePathology.Business.Client.Model.ReflexOrderCollection.GetHPVRequisitionReflexOrders(); this.m_HPVStandingOrderCollection = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetHPVStandingOrders(); this.m_HPV1618ReflexOrderCollection = YellowstonePathology.Business.Client.Model.ReflexOrderCollection.GetHPV1618ReflexOrders(); this.m_HPV1618StandingOrderCollection = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetHPV1618StandingOrders(); this.m_ClientOrder = clientOrder; this.m_WomensHealthProfileTestOrder = womensHealthProfileTestOrder; this.m_SystemIdentity = Business.User.SystemIdentity.Instance; this.m_BackButtonVisibility = backButtonVisibility; this.m_Physician = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianByPhysicianId(this.m_AccessionOrder.PhysicianId); this.m_PanelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(15); this.m_AuditCollection = new Business.Audit.Model.IsWHPAllDoneAuditCollection(this.m_AccessionOrder); this.m_AuditCollection.Run(); if (string.IsNullOrEmpty(accessionOrder.PatientId) == false) { YellowstonePathology.Business.Domain.PatientHistory patientHistory = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPatientHistory(accessionOrder.PatientId); this.m_DateOfLastHPV = patientHistory.GetDateOfPreviousHpv(this.m_AccessionOrder.AccessionDate.Value); } YellowstonePathology.Business.Client.Model.StandingOrder standingOrder = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetByStandingOrderCode(this.m_WomensHealthProfileTestOrder.HPVStandingOrderCode); this.m_HPVStandingOrderDescription = standingOrder.ToString(); InitializeComponent(); this.DataContext = this; this.m_ParentWindow = Window.GetWindow(this); this.m_ControlsNotDisabledOnFinal.Add(this.ButtonClose); this.m_ControlsNotDisabledOnFinal.Add(this.ButtonBack); this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockShowDocument); this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockUnfinalize); this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockNext); }
private bool ShowWomensHealthProfilePage() { bool result = false; if (this.m_AccessionOrder.PanelSetOrderCollection.HasWomensHealthProfileOrder() == true) { YellowstonePathology.Business.Domain.Physician physician = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianByPhysicianId(this.m_AccessionOrder.PhysicianId); YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology panelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(15); YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullClientOrderByClientOrderId(this.m_AccessionOrder.ClientOrderId, this.m_Window); WomensHealthProfilePage womensHealthProfilePage = new WomensHealthProfilePage(this.m_AccessionOrder, clientOrder, System.Windows.Visibility.Visible); womensHealthProfilePage.Finished += new WomensHealthProfilePage.FinishedEventHandler(WomensHealthProfilePage_Finished); womensHealthProfilePage.Back += new WomensHealthProfilePage.BackEventHandler(WomensHealthProfilePage_Back); this.m_PageNavigator.Navigate(womensHealthProfilePage); result = true; } return(result); }
public override bool IsRequired(Business.Test.AccessionOrder accessionOrder) { bool result = false; YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest panelSetThinPrep = new YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest(); if (accessionOrder.PanelSetOrderCollection.Exists(panelSetThinPrep.PanelSetId) == true) { YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology panelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetThinPrep.PanelSetId); if (panelSetOrderCytology.Final == true) { if (YellowstonePathology.Business.Cytology.Model.CytologyResultCode.IsDiagnosisASCUS(panelSetOrderCytology.ResultCode) == true) { result = true; } } } return(result); }
private void LoadDataByReportNo(string reportNo) { string masterAccessionNo = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetMasterAccessionNoFromReportNo(reportNo); if (string.IsNullOrEmpty(masterAccessionNo) == false) { this.m_AccessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(masterAccessionNo, this.m_Writer); if (this.m_AccessionOrder != null) { this.m_PanelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportNo); } this.LoadData(); } else { MessageBox.Show("Case not found."); } }
public void Assign() { this.m_CytologyAccessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(this.m_MasterAccessionNo, this.m_Writer); this.m_PanelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)this.m_CytologyAccessionOrder.PanelSetOrderCollection.GetPAP(); this.m_PanelSetOrderCytology.AssignedToId = this.m_AssignedToId; foreach (YellowstonePathology.Business.Interface.IPanelOrder panelOrder in this.m_PanelSetOrderCytology.PanelOrderCollection) { Type objectType = panelOrder.GetType(); if (typeof(YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology).IsAssignableFrom(objectType) == true) { YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology cytologyPanelOrder = (YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology)panelOrder; if (cytologyPanelOrder.Accepted == false) { cytologyPanelOrder.AssignedToId = this.m_AssignedToId; } } } }
public void Assign() { this.m_CytologyAccessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(this.m_MasterAccessionNo, this.m_Writer); this.m_PanelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology) this.m_CytologyAccessionOrder.PanelSetOrderCollection.GetPAP(); this.m_PanelSetOrderCytology.AssignedToId = this.m_AssignedToId; foreach (YellowstonePathology.Business.Interface.IPanelOrder panelOrder in this.m_PanelSetOrderCytology.PanelOrderCollection) { Type objectType = panelOrder.GetType(); if (typeof(YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology).IsAssignableFrom(objectType) == true) { YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology cytologyPanelOrder = (YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology)panelOrder; if (cytologyPanelOrder.Accepted == false) { cytologyPanelOrder.AssignedToId = this.m_AssignedToId; } } } }
public override bool IsRequired(Business.Test.AccessionOrder accessionOrder) { bool result = false; YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest panelSetThinPrep = new YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest(); if (accessionOrder.PanelSetOrderCollection.Exists(panelSetThinPrep.PanelSetId) == true) { YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology panelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetThinPrep.PanelSetId); if (panelSetOrderCytology.Final == true) { if (accessionOrder.PBirthdate >= DateTime.Today.AddYears(-29) && accessionOrder.PBirthdate <= DateTime.Today.AddYears(-21)) { if (YellowstonePathology.Business.Cytology.Model.CytologyResultCode.IsDiagnosisGreaterThanThree(panelSetOrderCytology.ResultCode) == true) { result = true; } } } } return(result); }
public override bool SatisfiesCondition(YellowstonePathology.Business.Test.AccessionOrder accessionOrder) { bool result = false; YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest panelSetThinPrep = new YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest(); if (accessionOrder.PanelSetOrderCollection.Exists(panelSetThinPrep.PanelSetId) == true) { YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology panelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetThinPrep.PanelSetId); if (panelSetOrderCytology.Final == true) { if (YellowstonePathology.Business.Cytology.Model.CytologyResultCode.IsResultCodeNormal(panelSetOrderCytology.ResultCode) == true || YellowstonePathology.Business.Cytology.Model.CytologyResultCode.IsResultCodeReactive(panelSetOrderCytology.ResultCode) == true) { if (YellowstonePathology.Business.Cytology.Model.CytologyResultCode.IsResultCodeTZoneAbsent(panelSetOrderCytology.ResultCode) == true) { result = true; } } } } return(result); }
public WomensHealthProfilePage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder, System.Windows.Visibility backButtonVisibility) { this.m_AccessionOrder = accessionOrder; this.m_HPVReflexOrderCollection = YellowstonePathology.Business.Client.Model.ReflexOrderCollection.GetHPVRequisitionReflexOrders(); this.m_HPVStandingOrderCollection = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetHPVStandingOrders(); this.m_HPV1618ReflexOrderCollection = YellowstonePathology.Business.Client.Model.ReflexOrderCollection.GetHPV1618ReflexOrders(); this.m_HPV1618StandingOrderCollection = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetHPV1618StandingOrders(); this.m_ClientOrder = clientOrder; this.m_WomensHealthProfileTestOrder = (YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(116); this.m_SystemIdentity = Business.User.SystemIdentity.Instance; this.m_BackButtonVisibility = backButtonVisibility; this.m_Physician = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianByPhysicianId(this.m_AccessionOrder.PhysicianId); this.m_PanelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(15); this.m_AuditCollection = new Business.Audit.Model.IsWHPAllDoneAuditCollection(this.m_AccessionOrder); this.m_AuditCollection.Run(); if (string.IsNullOrEmpty(accessionOrder.PatientId) == false) { YellowstonePathology.Business.Domain.PatientHistory patientHistory = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPatientHistory(accessionOrder.PatientId); this.m_DateOfLastHPV = patientHistory.GetDateOfPreviousHpv(this.m_AccessionOrder.AccessionDate.Value); } YellowstonePathology.Business.Client.Model.StandingOrder standingOrder = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetByStandingOrderCode(this.m_WomensHealthProfileTestOrder.HPVStandingOrderCode); this.m_HPVStandingOrderDescription = standingOrder.ToString(); InitializeComponent(); this.DataContext = this; this.m_ParentWindow = Window.GetWindow(this); }
public void SelectAppropriatePanel() { YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology panelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology) this.m_CytologyUI.AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(15); if (this.m_SystemIdentity.User.IsUserInRole(Business.User.SystemUserRoleDescriptionEnum.Pathologist) == true) { if (panelSetOrderCytology.PanelOrderCollection.HasPathologistReview() == true) { int index = 0; YellowstonePathology.Business.Test.PanelOrder pathologistReviewPanel = panelSetOrderCytology.PanelOrderCollection.GetPathologistReview(); foreach (YellowstonePathology.Business.Test.PanelOrder panelOrder in panelSetOrderCytology.PanelOrderCollection) { if (panelOrder.PanelOrderId == pathologistReviewPanel.PanelOrderId) { this.ListBoxResults.SelectedIndex = index; } index += 1; } } } else if (this.m_SystemIdentity.User.IsUserInRole(Business.User.SystemUserRoleDescriptionEnum.Cytotech) == true) { int index = 0; YellowstonePathology.Business.Test.PanelOrder cytotechScreeningPanel = panelSetOrderCytology.PanelOrderCollection.GetPrimaryScreening(); foreach (YellowstonePathology.Business.Test.PanelOrder panelOrder in panelSetOrderCytology.PanelOrderCollection) { if (panelOrder.PanelOrderId == cytotechScreeningPanel.PanelOrderId) { this.ListBoxResults.SelectedIndex = index; } index += 1; } } else { this.ListBoxResults.SelectedIndex = -1; } }
private void SetData() { if (this.m_HasThinPrepPap == true) { YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology panelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_PanelSetThinPrepPap.PanelSetId); this.m_Method.Append("Thin Prep Pap: " + panelSetOrderCytology.Method); this.m_References.Append("Thin Prep Pap: " + panelSetOrderCytology.References); } if (this.m_HasHighRiskHPV == true) { YellowstonePathology.Business.Test.HPV.HPVTestOrder hpvTestOrder = (YellowstonePathology.Business.Test.HPV.HPVTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_PanelSetHPV.PanelSetId); if (this.m_HasThinPrepPap == true) { this.m_Method.AppendLine(); this.m_Method.AppendLine(); this.m_References.AppendLine(); this.m_References.AppendLine(); } this.m_Method.AppendLine("High Risk HPV: " + hpvTestOrder.TestInformation); this.m_References.AppendLine("High Risk HPV: " + hpvTestOrder.References); } }
public override void ToXml(XElement document) { YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology panelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo); YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = this.m_AccessionOrder.AmendmentCollection.GetAmendmentsForReport(this.m_ReportNo); this.AddNextObxElementBeaker("Report No", this.m_ReportNo, document, "F"); this.AddNextObxElementBeaker("Epithelial Cell Description", panelSetOrderCytology.ScreeningImpression.ToUpper(), document, "F"); string otherConditions = panelSetOrderCytology.OtherConditions; if (string.IsNullOrEmpty(otherConditions) == true) { otherConditions = "None."; } this.AddNextObxElementBeaker("Other Conditions", otherConditions, document, "F"); YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(panelSetOrderCytology.OrderedOn, panelSetOrderCytology.OrderedOnId); this.AddNextObxElementBeaker("Specimen Description", specimenOrder.Description, document, "F"); this.AddNextObxElementBeaker("Specimen Adequacy", panelSetOrderCytology.SpecimenAdequacy, document, "F"); if (string.IsNullOrEmpty(panelSetOrderCytology.ReportComment) == false) { this.AddNextObxElementBeaker("Comment", panelSetOrderCytology.ReportComment, document, "F"); } this.AddNextObxElementBeaker("Finaled By", panelSetOrderCytology.Signature, document, "F"); if (panelSetOrderCytology.FinalTime.HasValue == true) { this.AddNextObxElementBeaker("E-signed ", panelSetOrderCytology.FinalTime.Value.ToString("MM/dd/yyyy HH:mm"), document, "F"); } if (amendmentCollection.Count != 0) { StringBuilder amendments = new StringBuilder(); foreach (YellowstonePathology.Business.Amendment.Model.Amendment amendment in amendmentCollection) { if (amendment.Final == true) { amendments.AppendLine(amendment.AmendmentType + ": " + amendment.AmendmentDate.Value.ToString("MM/dd/yyyy")); amendments.AppendLine(amendment.Text); if (amendment.RequirePathologistSignature == true) { amendments.AppendLine("Signature: " + amendment.PathologistSignature); amendments.AppendLine("E-signed " + amendment.FinalTime.Value.ToString("MM/dd/yyyy HH:mm")); } } } amendments.AppendLine(); this.AddNextObxElementBeaker("Amendments", amendments.ToString(), document, "F"); } this.AddNextObxElementBeaker("Screening Method", panelSetOrderCytology.Method, document, "F"); this.AddNextObxElementBeaker("References", panelSetOrderCytology.ReportReferences, document, "F"); string disclaimer = "This Pap test is only a screening test. A negative result does not definitively rule out the presence of disease. Women should, therefore, in consultation with their physician, have this test performed at mutually agreed intervals."; this.AddNextObxElementBeaker("ASR", disclaimer, document, "F"); string locationPerformed = panelSetOrderCytology.GetLocationPerformedComment(); this.AddNextObxElementBeaker("Location Performed", locationPerformed, document, "F"); }
public void Execute(YellowstonePathology.Business.User.SystemUser userPerformingFinal, YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology panelOrderToFinal, YellowstonePathology.Business.Rules.ExecutionStatus executionStatus) { this.m_UserPerformingFinal = userPerformingFinal; this.m_ExecutionStatus = executionStatus; this.m_AccessionOrder = accessionOrder; this.m_PanelOrderToFinal = panelOrderToFinal; this.m_PanelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_PanelOrderToFinal.ReportNo); this.m_Rule.Execute(executionStatus); }
public override void ToXml(XElement document) { YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology panelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo); this.AddCompanyHeader(document); this.AddBlankNteElement(document); this.AddNextNteElement("Thin Prep Pap Report", document); this.AddNextNteElement("Report #: " + panelSetOrderCytology.ReportNo, document); this.AddBlankNteElement(document); this.AddNextNteElement("Epithelial Cell Description:", document); this.AddNextNteElement(panelSetOrderCytology.ScreeningImpression, document); this.AddBlankNteElement(document); YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(panelSetOrderCytology.OrderedOn, panelSetOrderCytology.OrderedOnId); this.AddNextNteElement("Specimen Description:", document); this.AddNextNteElement(specimenOrder.Description, document); this.AddBlankNteElement(document); this.AddNextNteElement("Specimen Source:", document); this.AddNextNteElement(specimenOrder.SpecimenSource, document); this.AddBlankNteElement(document); this.AddNextNteElement("Specimen Adequacy:", document); this.AddNextNteElement(panelSetOrderCytology.SpecimenAdequacy, document); this.AddBlankNteElement(document); this.AddNextNteElement("Report Comment:", document); this.AddNextNteElement(panelSetOrderCytology.ReportComment, document); this.AddBlankNteElement(document); this.AddNextNteElement("Other Conditions:", document); string otherConditions = panelSetOrderCytology.OtherConditions; if (string.IsNullOrEmpty(otherConditions) == true) { otherConditions = "None."; } this.AddNextNteElement(otherConditions, document); this.AddBlankNteElement(document); bool hpvHasBeenOrdered = this.m_AccessionOrder.PanelSetOrderCollection.Exists(14); string additionalTestingComment = string.Empty; if (hpvHasBeenOrdered == true) { additionalTestingComment = YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapWordDocument.HPVHasBeenOrderedComment; } else { additionalTestingComment = YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapWordDocument.NoAdditionalTestingOrderedComment; } this.AddNextNteElement("Additional Testing:", document); this.AddNextNteElement(additionalTestingComment, document); this.AddBlankNteElement(document); this.AddNextNteElement("Finaled By: ", document); this.AddNextNteElement(panelSetOrderCytology.Signature, document); if (panelSetOrderCytology.FinalDate.HasValue == true) { this.AddNextNteElement("*** E-Signed " + panelSetOrderCytology.FinalTime.Value.ToString("MM/dd/yyyy HH:mm") + " ***", document); } this.AddBlankNteElement(document); this.AddNextNteElement("Specimen: ThinPrep fluid", document); this.AddBlankNteElement(document); this.AddNextNteElement("Screening Method: ", document); this.AddNextNteElement(panelSetOrderCytology.Method, document); this.AddBlankNteElement(document); this.AddNextNteElement("References: ", document); this.AddNextNteElement(panelSetOrderCytology.References, document); this.AddBlankNteElement(document); string disclaimer = "This Pap test is only a screening test. A negative result does not definitively rule out the presence of disease. Women should, therefore, in consultation with their physician, have this test performed at mutually agreed intervals."; this.AddNextNteElement(disclaimer, document); this.AddBlankNteElement(document); }
public void LoadDataByReportNo(string reportNo) { string masterAccessionNo = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetMasterAccessionNoFromReportNo(reportNo); if(string.IsNullOrEmpty(masterAccessionNo) == false) { this.m_AccessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(masterAccessionNo, this.m_Writer); if (this.m_AccessionOrder != null) { this.m_PanelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportNo); } this.LoadData(); } else { MessageBox.Show("Case not found."); } }
public override void ToXml(XElement document) { WomensHealthProfileTestOrder womensHealthProfileTestOrder = (WomensHealthProfileTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo); WomensHealthProfileResult womensHealthProfileResult = new WomensHealthProfileResult(this.m_AccessionOrder); YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = this.m_AccessionOrder.AmendmentCollection.GetAmendmentsForReport(this.m_ReportNo); ThinPrepPap.ThinPrepPapTest thinPrepPapTest = new ThinPrepPap.ThinPrepPapTest(); bool hasPap = this.m_AccessionOrder.PanelSetOrderCollection.Exists(thinPrepPapTest.PanelSetId); this.AddNextObxElementBeaker("Report No: ", this.m_ReportNo, document, "F"); if (hasPap == true) { StringBuilder papTest = new StringBuilder(); YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology panelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(15); if (string.IsNullOrEmpty(panelSetOrderCytology.ScreeningImpression) == false) { papTest.AppendLine("Epithelial Cell Description: " + panelSetOrderCytology.ScreeningImpression); } papTest.AppendLine("Specimen Adequacy: " + panelSetOrderCytology.SpecimenAdequacy); if (string.IsNullOrEmpty(panelSetOrderCytology.OtherConditions) == false) { papTest.AppendLine("Other Conditions: " + panelSetOrderCytology.OtherConditions); } if (string.IsNullOrEmpty(panelSetOrderCytology.ReportComment) == false) { papTest.AppendLine("Comment: " + panelSetOrderCytology.ReportComment); } YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology screeningPanelOrder = null; YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology reviewPanelOrder = null; foreach (YellowstonePathology.Business.Interface.IPanelOrder panelOrder in panelSetOrderCytology.PanelOrders) { Type objectType = panelOrder.GetType(); if (typeof(YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology).IsAssignableFrom(objectType) == true) { YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology cytologyPanelOrder = (YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology)panelOrder; if (cytologyPanelOrder.PanelId == 38) { if (cytologyPanelOrder.ScreeningType == "Primary Screening") { screeningPanelOrder = cytologyPanelOrder; } else if (cytologyPanelOrder.ScreeningType == "Pathologist Review") { reviewPanelOrder = cytologyPanelOrder; } else if (cytologyPanelOrder.ScreeningType == "Cytotech Review") { if (reviewPanelOrder == null || reviewPanelOrder.ScreeningType != "Pathologist Review") { reviewPanelOrder = cytologyPanelOrder; } } } } } YellowstonePathology.Business.User.SystemUser systemUser = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetSystemUserById(screeningPanelOrder.ScreenedById); if (string.IsNullOrEmpty(systemUser.Signature) == false) { papTest.AppendLine("Screened By: " + systemUser.Signature); } string cytoTechFinal = YellowstonePathology.Business.Helper.DateTimeExtensions.DateStringFromNullable(screeningPanelOrder.AcceptedDate); papTest.AppendLine("E-Signed " + cytoTechFinal); if (reviewPanelOrder != null) { string reviewedBy = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetSystemUserById(reviewPanelOrder.ScreenedById).Signature; string reviewedByFinal = YellowstonePathology.Business.Helper.DateTimeExtensions.DateStringFromNullable(reviewPanelOrder.AcceptedDate); if (reviewedBy.IndexOf("MD") >= 0) { papTest.AppendLine("Interpreted By: " + reviewedBy + " " + reviewedByFinal); } else { papTest.AppendLine("Reviewed By: " + reviewedBy + " " + reviewedByFinal); } } this.AddNextObxElementBeaker("PAP TEST RESULT: ", papTest.ToString(), document, "F"); } if (amendmentCollection.Count != 0) { StringBuilder amendments = new StringBuilder(); foreach (YellowstonePathology.Business.Amendment.Model.Amendment amendment in amendmentCollection) { if (amendment.Final == true) { amendments.AppendLine(amendment.AmendmentType + ": " + amendment.AmendmentDate.Value.ToString("MM/dd/yyyy")); amendments.AppendLine(amendment.Text); if (amendment.RequirePathologistSignature == true) { amendments.AppendLine("Signature: " + amendment.PathologistSignature); amendments.AppendLine("E-signed " + amendment.FinalTime.Value.ToString("MM/dd/yyyy HH:mm")); } } } amendments.AppendLine(); this.AddNextObxElementBeaker("Amendments", amendments.ToString(), document, "F"); } StringBuilder testsPerformed = new StringBuilder(); YellowstonePathology.Business.Test.HPV.HPVTest panelSetHPV = new YellowstonePathology.Business.Test.HPV.HPVTest(); YellowstonePathology.Business.Test.HPV1618.HPV1618Test panelSetHPV1618 = new YellowstonePathology.Business.Test.HPV1618.HPV1618Test(); YellowstonePathology.Business.Test.NGCT.NGCTTest panelSetNGCT = new YellowstonePathology.Business.Test.NGCT.NGCTTest(); YellowstonePathology.Business.Test.Trichomonas.TrichomonasTest panelSetTrichomonas = new YellowstonePathology.Business.Test.Trichomonas.TrichomonasTest(); if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(panelSetHPV.PanelSetId) == false && this.m_AccessionOrder.PanelSetOrderCollection.Exists(panelSetHPV1618.PanelSetId) == false && this.m_AccessionOrder.PanelSetOrderCollection.Exists(panelSetNGCT.PanelSetId) == false && this.m_AccessionOrder.PanelSetOrderCollection.Exists(panelSetTrichomonas.PanelSetId) == false) { testsPerformed.AppendLine("No tests performed"); } else { if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(panelSetHPV.PanelSetId) == true) { YellowstonePathology.Business.Test.HPV.HPVTestOrder hpvTestOrder = (YellowstonePathology.Business.Test.HPV.HPVTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetHPV.PanelSetId); testsPerformed.AppendLine("High Risk HPV: " + hpvTestOrder.Result); testsPerformed.AppendLine("Reference: Negative"); string hpvFinal = YellowstonePathology.Business.Helper.DateTimeExtensions.DateStringFromNullable(hpvTestOrder.FinalDate); testsPerformed.AppendLine("Date Finalized: " + hpvFinal); } if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(panelSetHPV1618.PanelSetId) == true) { YellowstonePathology.Business.Test.HPV1618.PanelSetOrderHPV1618 panelSetOrderHPV1618 = (YellowstonePathology.Business.Test.HPV1618.PanelSetOrderHPV1618) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetHPV1618.PanelSetId); testsPerformed.AppendLine("HPV type 16: " + panelSetOrderHPV1618.HPV16Result); testsPerformed.AppendLine("Reference: Negative"); testsPerformed.AppendLine("HPV type 18: " + panelSetOrderHPV1618.HPV18Result); testsPerformed.AppendLine("Reference: Negative"); string hpvFinal = YellowstonePathology.Business.Helper.DateTimeExtensions.DateStringFromNullable(panelSetOrderHPV1618.FinalDate); testsPerformed.AppendLine("Date Finalized: " + hpvFinal); } if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(panelSetNGCT.PanelSetId) == true) { //testsPerformed.AppendLine("Chlamydia Gonorrhea Screening"); YellowstonePathology.Business.Test.NGCT.NGCTTestOrder panelSetOrderNGCT = (YellowstonePathology.Business.Test.NGCT.NGCTTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetNGCT.PanelSetId); testsPerformed.AppendLine("Chlamydia trachomatis: " + panelSetOrderNGCT.ChlamydiaTrachomatisResult); testsPerformed.AppendLine("Reference: Negative"); testsPerformed.AppendLine("Neisseria gonorrhoeae: " + panelSetOrderNGCT.NeisseriaGonorrhoeaeResult); testsPerformed.AppendLine("Reference: Negative"); string hpvFinal = YellowstonePathology.Business.Helper.DateTimeExtensions.DateStringFromNullable(panelSetOrderNGCT.FinalDate); testsPerformed.AppendLine("Date Finalized: " + hpvFinal); } if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(panelSetTrichomonas.PanelSetId) == true) { //testsPerformed.AppendLine("Trichomonas Screening"); YellowstonePathology.Business.Test.Trichomonas.TrichomonasTestOrder reportOrderTrichomonas = (YellowstonePathology.Business.Test.Trichomonas.TrichomonasTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetTrichomonas.PanelSetId); testsPerformed.AppendLine("Trichomonas vaginalis: " + reportOrderTrichomonas.Result); testsPerformed.AppendLine("Reference: Negative"); string hpvFinal = YellowstonePathology.Business.Helper.DateTimeExtensions.DateStringFromNullable(reportOrderTrichomonas.FinalDate); testsPerformed.AppendLine("Date Finalized: " + hpvFinal); } } this.AddNextObxElementBeaker("CURRENT MOLECULAR TEST SUMMARY", testsPerformed.ToString(), document, "F"); this.AddNextObxElementBeaker("Specimen Description: ", "Thin Prep Fluid", document, "F"); this.AddNextObxElementBeaker("Specimen Source: ", this.m_AccessionOrder.SpecimenOrderCollection[0].SpecimenSource, document, "F"); string collectionDateTimeString = this.m_AccessionOrder.SpecimenOrderCollection[0].GetCollectionDateTimeString(); this.AddNextObxElementBeaker("Collection Date/Time: ", collectionDateTimeString, document, "F"); this.AddNextObxElementBeaker("Clinical History: ", this.m_AccessionOrder.ClinicalHistory, document, "F"); this.AddNextObxElementBeaker("Method: ", womensHealthProfileResult.Method, document, "F"); this.AddNextObxElementBeaker("References: ", womensHealthProfileResult.References, document, "F"); string locationPerformed = womensHealthProfileTestOrder.GetLocationPerformedComment(); this.AddNextObxElementBeaker("Location Performed: ", locationPerformed, document, "F"); StringBuilder priorTests = new StringBuilder(); YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest panelSetThinPrepPap = new YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest(); DateTime cutoffDate = this.m_AccessionOrder.AccessionDate.Value.AddYears(-5); YellowstonePathology.Business.Domain.PatientHistory patientHistory = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPatientHistory(this.m_AccessionOrder.PatientId); YellowstonePathology.Business.Domain.PatientHistory priorPapRelatedHistory = patientHistory.GetPriorPapRelatedHistory(this.m_AccessionOrder.MasterAccessionNo, cutoffDate); if (priorPapRelatedHistory.Count == 0) { priorTests.AppendLine("No prior tests performed"); } else { foreach (YellowstonePathology.Business.Domain.PatientHistoryResult patientHistoryResult in priorPapRelatedHistory) { YellowstonePathology.Business.Test.AccessionOrder accessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.GetAccessionOrderByMasterAccessionNo(patientHistoryResult.MasterAccessionNo); foreach (YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder in accessionOrder.PanelSetOrderCollection) { string reportNo = null; string result = null; if (panelSetOrder.PanelSetId == panelSetThinPrepPap.PanelSetId || panelSetOrder.PanelSetId == panelSetHPV.PanelSetId || panelSetOrder.PanelSetId == panelSetHPV1618.PanelSetId || panelSetOrder.PanelSetId == panelSetNGCT.PanelSetId || panelSetOrder.PanelSetId == panelSetTrichomonas.PanelSetId) { reportNo = panelSetOrder.ReportNo; string finaldate = YellowstonePathology.Business.Helper.DateTimeExtensions.DateStringFromNullable(panelSetOrder.FinalDate); result = panelSetOrder.GetResultWithTestName(); priorTests.AppendLine("Test: " + panelSetOrder.PanelSetName + " Report No: " + reportNo + " Result: " + result + " Final Date: " + finaldate); } } } } this.AddNextObxElementBeaker("PRIOR PAP AND GYN MOLECULAR TESTS", priorTests.ToString(), document, "F"); }
public void SetAccessionOrder(YellowstonePathology.Business.Search.CytologyScreeningSearchResult searchResult) { this.m_AccessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(searchResult.MasterAccessionNo, this.m_Writer); this.m_PanelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(searchResult.ReportNo); this.m_SpecimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrderByOrderTarget(this.m_PanelSetOrderCytology.OrderedOnId); this.DataLoaded(); }
public override void ToXml(XElement document) { WomensHealthProfileTestOrder womensHealthProfileTestOrder = (WomensHealthProfileTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo); WomensHealthProfileResult womensHealthProfileResult = new WomensHealthProfileResult(this.m_AccessionOrder); ThinPrepPap.ThinPrepPapTest thinPrepPapTest = new ThinPrepPap.ThinPrepPapTest(); bool hasPap = this.m_AccessionOrder.PanelSetOrderCollection.Exists(thinPrepPapTest.PanelSetId); this.AddCompanyHeader(document); this.AddBlankNteElement(document); this.AddNextNteElement("Women's Health Profile", document); this.AddNextNteElement("Report #: " + womensHealthProfileTestOrder.ReportNo, document); this.AddBlankNteElement(document); if (hasPap == true) { this.AddNextNteElement("PAP TEST RESULT: ", document); YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology panelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(15); if (string.IsNullOrEmpty(panelSetOrderCytology.ScreeningImpression) == false) { this.AddNextNteElement("Epithelial Cell Description: ", document); this.AddNextNteElement(panelSetOrderCytology.ScreeningImpression, document); this.AddBlankNteElement(document); } this.AddNextNteElement("Specimen Adequacy:", document); this.AddNextNteElement(panelSetOrderCytology.SpecimenAdequacy, document); this.AddBlankNteElement(document); if (string.IsNullOrEmpty(panelSetOrderCytology.OtherConditions) == false) { this.AddNextNteElement("Other Conditions:", document); this.AddNextNteElement(panelSetOrderCytology.OtherConditions, document); this.AddBlankNteElement(document); } if (string.IsNullOrEmpty(panelSetOrderCytology.ReportComment) == false) { this.AddNextNteElement("Comment:", document); this.AddNextNteElement(panelSetOrderCytology.ReportComment, document); this.AddBlankNteElement(document); } YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology screeningPanelOrder = null; YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology reviewPanelOrder = null; foreach (YellowstonePathology.Business.Interface.IPanelOrder panelOrder in panelSetOrderCytology.PanelOrders) { Type objectType = panelOrder.GetType(); if (typeof(YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology).IsAssignableFrom(objectType) == true) { YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology cytologyPanelOrder = (YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology)panelOrder; if (cytologyPanelOrder.PanelId == 38) { if (cytologyPanelOrder.ScreeningType == "Primary Screening") { screeningPanelOrder = cytologyPanelOrder; } else if (cytologyPanelOrder.ScreeningType == "Pathologist Review") { reviewPanelOrder = cytologyPanelOrder; } else if (cytologyPanelOrder.ScreeningType == "Cytotech Review") { if (reviewPanelOrder == null || reviewPanelOrder.ScreeningType != "Pathologist Review") { reviewPanelOrder = cytologyPanelOrder; } } } } } YellowstonePathology.Business.User.SystemUser systemUser = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetSystemUserById(screeningPanelOrder.ScreenedById); if (string.IsNullOrEmpty(systemUser.Signature) == false) { this.AddNextNteElement("Screened By: " + systemUser.Signature, document); } string cytoTechFinal = YellowstonePathology.Business.Helper.DateTimeExtensions.DateAndTimeStringFromNullable(screeningPanelOrder.AcceptedTime); this.AddNextNteElement("*** E-Signed " + cytoTechFinal + " ***", document); this.AddBlankNteElement(document); if (reviewPanelOrder != null) { string reviewedBy = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetSystemUserById(reviewPanelOrder.ScreenedById).Signature; string reviewedByFinal = YellowstonePathology.Business.Helper.DateTimeExtensions.DateStringFromNullable(reviewPanelOrder.AcceptedDate); if (reviewedBy.IndexOf("MD") >= 0) { this.AddNextNteElement("Interpreted By: " + reviewedBy + " " + reviewedByFinal, document); } else { this.AddNextNteElement("Reviewed By: " + reviewedBy + " " + reviewedByFinal, document); } this.AddBlankNteElement(document); } } this.AddAmendments(document, womensHealthProfileTestOrder, this.m_AccessionOrder); this.AddNextNteElement("CURRENT MOLECULAR TEST SUMMARY", document); YellowstonePathology.Business.Test.HPV.HPVTest panelSetHPV = new YellowstonePathology.Business.Test.HPV.HPVTest(); YellowstonePathology.Business.Test.HPV1618.HPV1618Test panelSetHPV1618 = new YellowstonePathology.Business.Test.HPV1618.HPV1618Test(); YellowstonePathology.Business.Test.NGCT.NGCTTest panelSetNGCT = new YellowstonePathology.Business.Test.NGCT.NGCTTest(); YellowstonePathology.Business.Test.Trichomonas.TrichomonasTest panelSetTrichomonas = new YellowstonePathology.Business.Test.Trichomonas.TrichomonasTest(); if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(panelSetHPV.PanelSetId) == false && this.m_AccessionOrder.PanelSetOrderCollection.Exists(panelSetHPV1618.PanelSetId) == false && this.m_AccessionOrder.PanelSetOrderCollection.Exists(panelSetNGCT.PanelSetId) == false && this.m_AccessionOrder.PanelSetOrderCollection.Exists(panelSetTrichomonas.PanelSetId) == false) { this.AddNextNteElement("No tests performed ", document); this.AddBlankNteElement(document); } else { if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(panelSetHPV.PanelSetId) == true) { YellowstonePathology.Business.Test.HPV.HPVTestOrder hpvTestOrder = (YellowstonePathology.Business.Test.HPV.HPVTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetHPV.PanelSetId); this.AddNextNteElement("High Risk HPV: " + hpvTestOrder.Result, document); this.AddNextNteElement("Reference: Negative", document); string hpvFinal = YellowstonePathology.Business.Helper.DateTimeExtensions.DateAndTimeStringFromNullable(hpvTestOrder.FinalTime); this.AddNextNteElement("Date Finalized: " + hpvFinal, document); this.AddBlankNteElement(document); } if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(panelSetHPV1618.PanelSetId) == true) { YellowstonePathology.Business.Test.HPV1618.PanelSetOrderHPV1618 panelSetOrderHPV1618 = (YellowstonePathology.Business.Test.HPV1618.PanelSetOrderHPV1618) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetHPV1618.PanelSetId); this.AddNextNteElement("HPV type 16: " + panelSetOrderHPV1618.HPV16Result, document); this.AddNextNteElement("Reference: Negative", document); this.AddNextNteElement("HPV type 18: " + panelSetOrderHPV1618.HPV18Result, document); this.AddNextNteElement("Reference: Negative", document); string hpvFinal = YellowstonePathology.Business.Helper.DateTimeExtensions.DateAndTimeStringFromNullable(panelSetOrderHPV1618.FinalTime); this.AddNextNteElement("Date Finalized: " + hpvFinal, document); this.AddBlankNteElement(document); } if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(panelSetNGCT.PanelSetId) == true) { this.AddNextNteElement("Chlamydia Gonorrhea Screening ", document); YellowstonePathology.Business.Test.NGCT.NGCTTestOrder panelSetOrderNGCT = (YellowstonePathology.Business.Test.NGCT.NGCTTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetNGCT.PanelSetId); this.AddNextNteElement("Chlamydia trachomatis: " + panelSetOrderNGCT.ChlamydiaTrachomatisResult, document); this.AddNextNteElement("Reference: Negative", document); this.AddNextNteElement("Neisseria gonorrhoeae: " + panelSetOrderNGCT.NeisseriaGonorrhoeaeResult, document); this.AddNextNteElement("Reference: Negative", document); string hpvFinal = YellowstonePathology.Business.Helper.DateTimeExtensions.DateAndTimeStringFromNullable(panelSetOrderNGCT.FinalTime); this.AddNextNteElement("Date Finalized: " + hpvFinal, document); this.AddBlankNteElement(document); } if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(panelSetTrichomonas.PanelSetId) == true) { this.AddNextNteElement("Trichomonas Screening ", document); YellowstonePathology.Business.Test.Trichomonas.TrichomonasTestOrder reportOrderTrichomonas = (YellowstonePathology.Business.Test.Trichomonas.TrichomonasTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetTrichomonas.PanelSetId); this.AddNextNteElement("Trichomonas vaginalis: " + reportOrderTrichomonas.Result, document); this.AddNextNteElement("Reference: Negative", document); string hpvFinal = YellowstonePathology.Business.Helper.DateTimeExtensions.DateAndTimeStringFromNullable(reportOrderTrichomonas.FinalTime); this.AddNextNteElement("Date Finalized: " + hpvFinal, document); this.AddBlankNteElement(document); } } this.AddNextNteElement("Specimen Description: Thin Prep Fluid", document); this.AddNextNteElement("Specimen Source: " + this.m_AccessionOrder.SpecimenOrderCollection[0].SpecimenSource, document); string collectionDateTimeString = this.m_AccessionOrder.SpecimenOrderCollection[0].GetCollectionDateTimeString(); this.AddNextNteElement("Collection Date/Time: " + collectionDateTimeString, document); this.AddBlankNteElement(document); this.AddNextNteElement("Clinical History: ", document); this.HandleLongString(this.m_AccessionOrder.ClinicalHistory, document); this.AddBlankNteElement(document); this.AddNextNteElement("Method: ", document); this.HandleLongString(womensHealthProfileResult.Method, document); this.AddBlankNteElement(document); this.AddNextNteElement("References: ", document); this.HandleLongString(womensHealthProfileResult.References, document); this.AddBlankNteElement(document); string locationPerformed = womensHealthProfileTestOrder.GetLocationPerformedComment(); this.HandleLongString(locationPerformed, document); this.AddNextNteElement(string.Empty, document); this.AddNextNteElement("PRIOR PAP AND GYN MOLECULAR TESTS", document); YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest panelSetThinPrepPap = new YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest(); DateTime cutoffDate = this.m_AccessionOrder.AccessionDate.Value.AddYears(-5); YellowstonePathology.Business.Domain.PatientHistory patientHistory = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPatientHistory(this.m_AccessionOrder.PatientId); YellowstonePathology.Business.Domain.PatientHistory priorPapRelatedHistory = patientHistory.GetPriorPapRelatedHistory(this.m_AccessionOrder.MasterAccessionNo, cutoffDate); if (priorPapRelatedHistory.Count == 0) { this.AddNextNteElement("No prior tests performed ", document); this.AddBlankNteElement(document); } else { foreach (YellowstonePathology.Business.Domain.PatientHistoryResult patientHistoryResult in priorPapRelatedHistory) { YellowstonePathology.Business.Test.AccessionOrder patientHistoryAccessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.GetAccessionOrderByMasterAccessionNo(patientHistoryResult.MasterAccessionNo); foreach (YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder in patientHistoryAccessionOrder.PanelSetOrderCollection) { string reportNo = null; string result = null; if (panelSetOrder.PanelSetId == panelSetThinPrepPap.PanelSetId || panelSetOrder.PanelSetId == panelSetHPV.PanelSetId || panelSetOrder.PanelSetId == panelSetHPV1618.PanelSetId || panelSetOrder.PanelSetId == panelSetNGCT.PanelSetId || panelSetOrder.PanelSetId == panelSetTrichomonas.PanelSetId) { reportNo = panelSetOrder.ReportNo; string finaldate = YellowstonePathology.Business.Helper.DateTimeExtensions.DateStringFromNullable(panelSetOrder.FinalDate); result = panelSetOrder.GetResultWithTestName(); this.AddNextNteElement("Test: " + panelSetOrder.PanelSetName + " Report No: " + reportNo + " Result: " + result + " Final Date: " + finaldate, document); this.AddBlankNteElement(document); } } } } this.AddBlankNteElement(document); string disclaimer = "This Pap test is only a screening test. A negative result does not definitively rule out the presence of disease. Women should, therefore, in consultation with their physician, have this test performed at mutually agreed intervals."; this.AddNextNteElement(disclaimer, document); this.AddBlankNteElement(document); }
private void SetData() { if (this.m_HasThinPrepPap == true) { YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology panelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_PanelSetThinPrepPap.PanelSetId); this.m_Method.Append("Thin Prep Pap: " + panelSetOrderCytology.Method); this.m_References.Append("Thin Prep Pap: " + panelSetOrderCytology.ReportReferences); } if (this.m_HasHighRiskHPV == true) { YellowstonePathology.Business.Test.HPV.HPVTestOrder hpvTestOrder = (YellowstonePathology.Business.Test.HPV.HPVTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_PanelSetHPV.PanelSetId); if (this.m_HasThinPrepPap == true) { this.m_Method.AppendLine(); this.m_Method.AppendLine(); this.m_References.AppendLine(); this.m_References.AppendLine(); } this.m_Method.AppendLine("High Risk HPV: " + hpvTestOrder.TestInformation); this.m_References.AppendLine("High Risk HPV: " + hpvTestOrder.ReportReferences); } if (this.m_HasHPV1618 == true) { if (this.m_HasThinPrepPap == true && this.m_HasHighRiskHPV == false) { this.m_Method.AppendLine(); this.m_Method.AppendLine(); this.m_References.AppendLine(); this.m_References.AppendLine(); } else if (this.m_HasHighRiskHPV == true) { this.m_Method.AppendLine(); this.m_References.AppendLine(); } this.m_Method.AppendLine("HPV Genotypes 16 and 18: " + HPV1618.HPV1618Result.Method); this.m_References.AppendLine("HPV Genotypes 16 and 18: " + HPV1618.HPV1618Result.References); } if (this.m_HasNGCT == true) { if (this.m_HasThinPrepPap == true && this.m_HasHighRiskHPV == false && this.m_HasHPV1618 == false) { this.m_Method.AppendLine(); this.m_Method.AppendLine(); this.m_References.AppendLine(); this.m_References.AppendLine(); } else if (m_HasHighRiskHPV == true || this.m_HasHPV1618 == true) { this.m_Method.AppendLine(); this.m_References.AppendLine(); } this.m_Method.AppendLine("NG-CT:" + NGCT.NGCTResult.Method); this.m_References.AppendLine("NG-CT:" + NGCT.NGCTResult.References); } if (this.m_HasTrichomonas == true) { if (this.m_HasThinPrepPap == true && this.m_HasHighRiskHPV == false && this.m_HasHPV1618 == false && this.m_HasNGCT == false) { this.m_Method.AppendLine(); this.m_Method.AppendLine(); this.m_References.AppendLine(); this.m_References.AppendLine(); } else if (m_HasHighRiskHPV == true || this.m_HasHPV1618 == true || this.m_HasNGCT == true) { this.m_Method.AppendLine(); this.m_References.AppendLine(); } this.m_Method.AppendLine("Trichomonas Vaginalis:" + Trichomonas.TrichomonasResult.Method); this.m_References.AppendLine("Trichomonas Vaginalis:" + Trichomonas.TrichomonasResult.References); } }
public void SetAccessionOrder(YellowstonePathology.Business.Test.AccessionOrder accessionOrder, string reportNo) { this.m_AccessionOrder = accessionOrder; this.m_PanelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportNo); }
private void LoadDataByAliquotOrderId(string aliquotOrderId) { string masterAccessionNo = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetMasterAccessionNoFromAliquotOrderId(aliquotOrderId); this.m_AccessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(masterAccessionNo, this.m_Writer); YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrderByOrderTarget(aliquotOrderId); this.m_PanelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(15, specimenOrder.SpecimenOrderId, true); this.LoadData(); }