예제 #1
0
        public static CptCode FromJson(string jString)
        {
            CptCode result  = null;
            JObject jObject = JsonConvert.DeserializeObject <JObject>(jString);

            if (jObject["codeType"].ToString() == "PQRS")
            {
                PQRSCode pqrsCode = JsonConvert.DeserializeObject <Business.Billing.Model.PQRSCode>(jString, new JsonSerializerSettings
                {
                    TypeNameHandling       = TypeNameHandling.All,
                    ObjectCreationHandling = ObjectCreationHandling.Replace
                });

                pqrsCode.ReportingDefinition = pqrsCode.Description;
                //pqrsCode.Comment = jObject["comment"].ToString();
                result = pqrsCode;
            }
            else
            {
                result = JsonConvert.DeserializeObject <Business.Billing.Model.CptCode>(jString, new JsonSerializerSettings
                {
                    TypeNameHandling       = TypeNameHandling.All,
                    ObjectCreationHandling = ObjectCreationHandling.Replace,
                });
            }

            return(result);
        }
        private void SetG0145(YellowstonePathology.Business.Billing.Model.BillingComponentEnum billingComponent, string billTo, string billBy, string modifier)
        {
            CptCode cptG0145 = Store.AppDataStore.Instance.CPTCodeCollection.GetClone("G0145", null);

            YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill panelSetOrderCPTCodeBill = this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.GetNextItem(this.m_PanelSetOrder.ReportNo);
            panelSetOrderCPTCodeBill.ClientId      = this.m_AccessionOrder.ClientId;
            panelSetOrderCPTCodeBill.BillTo        = billTo;
            panelSetOrderCPTCodeBill.BillBy        = billBy;
            panelSetOrderCPTCodeBill.CPTCode       = cptG0145.Code;
            panelSetOrderCPTCodeBill.CodeType      = cptG0145.CodeType.ToString();
            panelSetOrderCPTCodeBill.Quantity      = 1;
            panelSetOrderCPTCodeBill.Modifier      = modifier;
            panelSetOrderCPTCodeBill.MedicalRecord = this.m_AccessionOrder.SvhMedicalRecord;
            panelSetOrderCPTCodeBill.Account       = this.m_AccessionOrder.SvhAccount;

            if (panelSetOrderCPTCodeBill.Modifier == null)
            {
                panelSetOrderCPTCodeBill.Modifier = cptG0145.GetModifier(billingComponent);
            }

            if (this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.Exists(panelSetOrderCPTCodeBill.CPTCode, panelSetOrderCPTCodeBill.Modifier) == false)
            {
                this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.Add(panelSetOrderCPTCodeBill);
            }
        }
예제 #3
0
        public void Post88305(YellowstonePathology.Business.Billing.Model.BillingComponentEnum billingComponent, string billTo, string billBy)
        {
            CptCode cpt88305 = Store.AppDataStore.Instance.CPTCodeCollection.GetClone("88305", null);

            int cpt88305Count = this.m_PanelSetOrder.PanelSetOrderCPTCodeCollection.GetCodeQuantity(cpt88305.Code);

            if (cpt88305Count > 0)
            {
                string modifier = cpt88305.GetModifier(billingComponent);
                if (this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.Exists(cpt88305.Code, modifier) == false)
                {
                    YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill panelSetOrderCPTCodeBill = this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.GetNextItem(this.m_PanelSetOrder.ReportNo);
                    panelSetOrderCPTCodeBill.ClientId      = this.m_AccessionOrder.ClientId;
                    panelSetOrderCPTCodeBill.BillTo        = billTo;
                    panelSetOrderCPTCodeBill.BillBy        = billBy;
                    panelSetOrderCPTCodeBill.CPTCode       = cpt88305.Code;
                    panelSetOrderCPTCodeBill.CodeType      = cpt88305.CodeType.ToString();
                    panelSetOrderCPTCodeBill.Modifier      = modifier;
                    panelSetOrderCPTCodeBill.Quantity      = cpt88305Count;
                    panelSetOrderCPTCodeBill.MedicalRecord = this.m_AccessionOrder.SvhMedicalRecord;
                    panelSetOrderCPTCodeBill.Account       = this.m_AccessionOrder.SvhAccount;
                    this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.Add(panelSetOrderCPTCodeBill);
                }
            }
        }
        public override void PostClientGCodes(YellowstonePathology.Business.Billing.Model.BillingComponentEnum billingComponent)
        {
            if (this.IsOkToPost() == true)
            {
                CptCode cpt88175 = Store.AppDataStore.Instance.CPTCodeCollection.GetClone("88175", null);
                if (this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.CPTCodeExists(cpt88175.Code) == true)
                {
                    YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill panelSetOrderCPTCodeBill = this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.GetByCPTCode(cpt88175.Code);
                    if (panelSetOrderCPTCodeBill.BillTo == "Client")
                    {
                        this.SetG0145(YellowstonePathology.Business.Billing.Model.BillingComponentEnum.Technical, "Patient", "CLNT", panelSetOrderCPTCodeBill.Modifier);
                    }
                }

                CptCode cpt88142 = Store.AppDataStore.Instance.CPTCodeCollection.GetClone("88142", null);
                if (this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.CPTCodeExists(cpt88142.Code) == true)
                {
                    YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill panelSetOrderCPTCodeBill = this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.GetByCPTCode(cpt88142.Code);
                    if (panelSetOrderCPTCodeBill.BillTo == "Client")
                    {
                        this.SetG0123(YellowstonePathology.Business.Billing.Model.BillingComponentEnum.Technical, "Patient", "CLNT", panelSetOrderCPTCodeBill.Modifier);
                    }
                }
            }
        }
예제 #5
0
 public CPTCodePrice(CptCode cptCode, string billBy, string billTo, double price)
 {
     this.m_CptCode = cptCode;
     this.m_BillBy  = billBy;
     this.m_BillTo  = billTo;
     this.m_Price   = price;
 }
예제 #6
0
 public CPTCodePrice(CptCode cptCode, string billBy, string billTo, double price)
 {
     this.m_CptCode = cptCode;
     this.m_BillBy = billBy;
     this.m_BillTo = billTo;
     this.m_Price = price;
 }
예제 #7
0
 public static CptCode Clone(CptCode cptCodeIn)
 {
     return((CptCode)cptCodeIn.MemberwiseClone());
 }
예제 #8
0
 public PanelSetCptCode(CptCode cptCode, int quantity)
 {
     this.m_CptCode  = cptCode;
     this.m_Quantity = quantity;
 }
예제 #9
0
 public virtual CptCode Clone(CptCode cptCodeIn)
 {
     return((CptCode)cptCodeIn.MemberwiseClone());
 }
예제 #10
0
 public static CptCode Clone(CptCode cptCodeIn)
 {
     return (CptCode)cptCodeIn.MemberwiseClone();
 }
예제 #11
0
        public override CptCode Clone(CptCode cptCodeIn)
        {
            PQRSCode codeIn = (PQRSCode)cptCodeIn;

            return((CptCode)codeIn.MemberwiseClone());
        }