How to set the patient CONSENT field to TRUE by default

Scripting help and sample scripts for use with the Scripting Module
Post a reply

How to set the patient CONSENT field to TRUE by default

Postby Support » June 15th, 2011, 1:56 pm

[1] Click TOOLS | SCRIPT EDITOR to show the Script Editor screen
[2] Locate "frmEditorPatient" and the "OnAfterNewRecord" event
[3] Copy & Paste the following script into the Script Editor :-

Code: Select all
frmEditorBaseRec Editor = (Params[0] as frmEditorBaseRec);
cPer per = (Editor.Record as cPer);
per.consent = true;

[4] Click OK

To test this out, try creating a new patient record and notice that the CONSENT field will now be ticked by default.
ClinicOffice Support Team
User avatar
Support
Site Admin
 
Posts: 875
Joined: August 25th, 2005, 6:37 pm
Top

Re: How to set the patient CONSENT field to TRUE by default

Postby ttaylor » August 22nd, 2011, 10:20 am

We have made this change. Very fast update 8,000 patient records in under 25 seconds
ttaylor
 
Posts: 72
Joined: April 26th, 2010, 8:13 am
Location: ESO Maidstone
Top


Post a reply

Return to Scripting

Who is online

Users browsing this forum: No registered users and 1 guest

cron