Screening or enrollment copy calculation rule
To map data from a Screening or Enrollment form to another form in the trial, use a specialized calculation rule that copies the desired data when the Screening or Enrollment form is submitted. This rule must include the following attributes:
UUID=”PF_ENROLLMENT_CALCULATION”
SCRIPTTYPE=”SERVERCALCULATION”
For example, this is the definition of the rule that copies the patient date of birth, race, and screening date values from the SYSTEM SCREENING form to the DEMOGRAPHICS form in the sample PFST trial:
<RULE REFNAME="rulScrMap"
DESCRIPTION="Maps data from Screening form"
ENABLED="TRUE"
SCRIPTTYPE="SERVERCALCULATION"
UUID="PF_ENROLLMENT_CALCULATION">
The script includes the following statements, which use the Patient.SetNewValueRF method to update controls in the DEMOGRAPHICS form:
'Mapping Date of Birth
strDOB = Patient.GetValueRF("0.screen.frmScr.sctScrInfo.0.itmScrDOB.dtmScrDOB", "", 0, 0, 0)
Patient.SetNewValueRF "0.vstBASE.frmDem.sctDem.0.itmDemDOB.dtmDemDOB", "", 0, 0, 0, strDOB
Patient.SetNewValueRF "0.vstBASE.frmDem.sctDem.0.itmDemDOB.dtmDemDOB", "VALIDDATEMAP", 0, 0, 0, 7
'Mapping Race radio control
strRaceRDC = CStr(Patient.GetValueRF("0.screen.frmScr.sctScrInfo.0.mitmRace.mrdcRace", "", 0, 0, 0))
Patient.SetNewValueRF "0.vstBASE.frmDem.sctDem.0.mitmRace.mrdcRace", "", 0, 0, 0, strRaceRDC
'Mapping Screen Date
strScreenDt = Patient.GetValueRF("0.screen.frmScr.sctScrInfo.0.itmScrDate.mdtmScrDate", "", 0, 0, 0)
Patient.SetNewValueRF "0.vstBASE.frmDem.sctDem.0.itmDemScreenDate.mdtmGlobalDate", "", 0, 0, 0, strScreenDt
Patient.SetNewValueRF "0.vstBASE.frmDem.sctDem.0.itmDemScreenDate.mdtmGlobalDate", "VALIDDATEMAP", 0, 0, 0, 7>
Note: This is the only circumstance where you should use the SetNewValueRF method.