本文整理汇总了C#中OpenDentBusiness.Procedure.Copy方法的典型用法代码示例。如果您正苦于以下问题:C# Procedure.Copy方法的具体用法?C# Procedure.Copy怎么用?C# Procedure.Copy使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OpenDentBusiness.Procedure
的用法示例。
在下文中一共展示了Procedure.Copy方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetComplete
public static void SetComplete(Procedure proc,Patient pat,List<InsPlan> planList,List<PatPlan> patPlanList,List<ClaimProc> claimProcList,List<Benefit> benefitList,List<InsSub> subList) {
Procedure procOld=proc.Copy();
ProcedureCode procCode=ProcedureCodes.GetProcCode(proc.CodeNum);
proc.DateEntryC=DateTime.Now;
proc.ProcStatus=ProcStat.C;
Procedures.Update(proc,procOld);
Procedures.ComputeEstimates(proc,proc.PatNum,claimProcList,false,planList,patPlanList,benefitList,pat.Age,subList);
}
示例2: AttachLabProc
public static void AttachLabProc(long procNum,Procedure procLab) {
Procedure oldProc=procLab.Copy();
procLab.ProcNumLab=procNum;
Procedures.Update(procLab,oldProc);
}
示例3: FormProcEdit
///<summary>Inserts are not done within this dialog, but must be done ahead of time from outside. You must specify a procedure to edit, and only the changes that are made in this dialog get saved. Only used when double click in Account, Chart, TP, and in ContrChart.AddProcedure(). The procedure may be deleted if new, and user hits Cancel.</summary>
public FormProcEdit(Procedure proc,Patient patCur,Family famCur){
ProcCur=proc;
ProcOld=proc.Copy();
PatCur=patCur;
FamCur=famCur;
SubList=InsSubs.RefreshForFam(FamCur);
PlanList=InsPlans.RefreshForSubList(SubList);
//HistList=null;
//LoopList=null;
InitializeComponent();
Lan.F(this);
//allowTopaz=(Environment.OSVersion.Platform!=PlatformID.Unix && !CodeBase.ODEnvironment.Is64BitOperatingSystem());
sigBox.SetTabletState(1);
//if(!allowTopaz) {
// butTopazSign.Visible=false;
// sigBox.Visible=true;
//}
//else{
//Add signature box for Topaz signatures.
sigBoxTopaz=CodeBase.TopazWrapper.GetTopaz();
sigBoxTopaz.Location=sigBox.Location;//this puts both boxes in the same spot.
sigBoxTopaz.Name="sigBoxTopaz";
sigBoxTopaz.Size=new System.Drawing.Size(362,79);
sigBoxTopaz.TabIndex=92;
sigBoxTopaz.Text="sigPlusNET1";
sigBoxTopaz.Visible=false;
Controls.Add(sigBoxTopaz);
//It starts out accepting input. It will be set to 0 if a sig is already present. It will be set back to 1 if note changes or if user clicks Clear.
CodeBase.TopazWrapper.SetTopazState(sigBoxTopaz,1);
//}
if(!PrefC.GetBool(PrefName.ShowFeatureMedicalInsurance)) {
tabControl.TabPages.Remove(tabPageMedical);
//groupMedical.Visible=false;
}
}
示例4: SetPriority
/*public static void SetToothNum(Procedure procedure,string toothNum){
Procedure oldProcedure=procedure.Copy();
procedure.ToothNum=toothNum;
Procedures.Update(procedure,oldProcedure);
}*/
public static void SetPriority(Procedure procedure,int priority){
Procedure oldProcedure=procedure.Copy();
procedure.Priority=DefC.Short[(int)DefCat.TxPriorities][priority].DefNum;
Procedures.Update(procedure,oldProcedure);
}
示例5: Test12
///<summary>Test 12: EcwOldTight,EcwOldFull,EcwTight,HL7DefEcwFull: Create message with multiple providers. Change the provider for the D2332 procedure on the appointment with AptNum=500 to DOC2 from Test 10. Create DFT message again for this patient, provider, appointment, and procedures and verify that the FT1 segment for that procedure lists the correct provider. EcwOldStandalone,HL7DefEcwStandalone: DFT messages are not created in Standalone mode.</summary>
public static string Test12(HL7TestInterfaceEnum hl7TestInterfaceEnum) {
if(hl7TestInterfaceEnum==HL7TestInterfaceEnum.EcwOldStandalone
|| hl7TestInterfaceEnum==HL7TestInterfaceEnum.HL7DefEcwStandalone)
{
return "Test 12: Passed.\r\n";
}
long aptNum=500;
Procedure proc=new Procedure();
List<Procedure> procList=Procedures.GetProcsForSingle(aptNum,false);
if(procList==null) {
return "Test 12: Couldn't locate procedures for appointment.\r\n";
}
for(int i=0;i<procList.Count;i++) {
if(procList[i].CodeNum==ProcedureCodes.GetCodeNum("D2332")) {
proc=procList[i];
break;
}
}
if(proc==null) {
return "Test 12: Couldn't locate procedure D2332.\r\n";
}
Procedure oldProc=proc.Copy();
Provider prov2=Providers.GetProvByEcwID("DOC2");
if(prov2==null) {
return "Test 12: Couldn't locate DOC2 provider.\r\n";
}
proc.ProvNum=prov2.ProvNum;
Procedures.Update(proc,oldProc);
Patient pat=Patients.GetPat(10);
Patient guar=Patients.GetPat(11);
if(pat==null) {
return "Test 12: Couldn't locate patient.\r\n";
}
if(guar==null) {
return "Test 12: Couldn't locate guarantor.\r\n";
}
Provider prov=Providers.GetProvByEcwID("DOC1");
if(prov==null) {
return "Test 12: Couldn't locate DOC1 provider.\r\n";
}
long provNum=prov.ProvNum;
MessageHL7 msg=null;
try {
switch(hl7TestInterfaceEnum) {
//EcwOldStandalone and HL7DefEcwStandalone were handled higher up
case HL7TestInterfaceEnum.EcwOldFull:
case HL7TestInterfaceEnum.EcwOldTight:
OpenDentBusiness.HL7.EcwDFT dft=new OpenDentBusiness.HL7.EcwDFT();
dft.InitializeEcw(aptNum,provNum,pat,"Test Message","treatment",false);
msg=new MessageHL7(dft.GenerateMessage());
break;
case HL7TestInterfaceEnum.HL7DefEcwFull:
case HL7TestInterfaceEnum.HL7DefEcwTight:
msg=new MessageHL7(OpenDentBusiness.HL7.MessageConstructor.GenerateDFT(procList,EventTypeHL7.P03,pat,guar,aptNum,"treatment","Test Message").ToString());
//msg will be null if there's not DFT defined for the def. Should handle results for those defs higher up
break;
default:
return "Test 12: interface not found.";
}
}
catch(Exception ex) {
return "Test 12: Message creation error. "+ex+".\r\n";
}
string provField="";
string provField2="";
switch(hl7TestInterfaceEnum) {
case HL7TestInterfaceEnum.EcwOldFull:
case HL7TestInterfaceEnum.EcwOldTight:
provField="DOC1^Albert, Brian S^^";
provField2="DOC2^Lexington^Sarah^J";
break;
default:
provField="DOC1^Albert^Brian^S";
provField2="DOC2^Lexington^Sarah^J";
break;
}
string [email protected]"MSH|^~\&|OD||ECW||"+msg.Segments[0].GetFieldFullText(6)+"||DFT^P03||P|2.3\r\n"
+"EVN|P03|"+msg.Segments[1].GetFieldFullText(2)+"|\r\n"
+"PID|1|A11|10||Smith^Jane^N||19760205|F||White|421 Main St^Apt 17^Dallas^OR^97338||5035554045|5035554234||Married|||111224444|||\r\n"
+"PV1|||||||"+provField+"||||||||||||500|||||||||||||||||||||||||||||||\r\n"
+"FT1|1|||20120906000000|20120906000000|CG||||1.0||||||||||"+provField+"|"+provField+"|75.00|||D0150|^\r\n"
+"FT1|2|||20120906000000|20120906000000|CG||||1.0||||||||||"+provField+"|"+provField+"|20.00|||D0230|^\r\n"
+"FT1|3|||20120906000000|20120906000000|CG||||1.0||||||||||"+provField+"|"+provField+"|20.00|||D0230|^\r\n"
+"FT1|4|||20120906000000|20120906000000|CG||||1.0||||||||||"+provField2+"|"+provField2+"|150.00|||D2332|26^MID\r\n"
+"ZX1|6|PDF|PATHOLOGY^Pathology Report^L|treatment|Test Message";
MessageHL7 correctMsg=new MessageHL7(msgtext);
string retval=CompareMsgs(msg,correctMsg);
if(retval.Length>0) {
return "Test 12: "+retval;
}
return "Test 12: Passed.\r\n";
}