@@ -74,7 +74,7 @@ function randomizeRecord(string $recordId,int $projectId,array $fields=array(),s
74
74
75
75
// $aid is a method result
76
76
77
- $ query = "select target_field from redcap. redcap_randomization_allocation rra where rra.aid = $ aid " ;
77
+ $ query = "select target_field from redcap_randomization_allocation rra where rra.aid = $ aid " ;
78
78
79
79
$ randomizationQueryResult = $ this ->query ($ query );
80
80
$ randomizationResult = null ;
@@ -101,10 +101,10 @@ function randomizeRecord(string $recordId,int $projectId,array $fields=array(),s
101
101
$ arm_name = db_real_escape_string ($ arm_name );
102
102
103
103
$ query = "
104
- insert into redcap. redcap_data(project_id, event_id, record, field_name, `value`)
104
+ insert into redcap_data(project_id, event_id, record, field_name, `value`)
105
105
select $ projectId as project_id, md.event_id, ' $ recordId' as record, ' $ resultFieldName' as field_name, ' $ randomizationResult' as `value`
106
- from redcap. redcap_events_arms a
107
- join redcap. redcap_events_metadata md on
106
+ from redcap_events_arms a
107
+ join redcap_events_metadata md on
108
108
a.arm_id = md.arm_id and
109
109
md.descrip = ' $ event_name'
110
110
where a.project_id = $ projectId and
@@ -140,7 +140,7 @@ public function addRecordsToAllocationTable(int $projectId,int $project_status,a
140
140
141
141
// $projectId is typed in method signature
142
142
143
- $ ridQuery = "select rid from redcap. redcap_randomization where project_id = $ projectId " ;
143
+ $ ridQuery = "select rid from redcap_randomization where project_id = $ projectId " ;
144
144
$ rid = false ;
145
145
try {
146
146
if ($ ridQueryResult = $ this ->query ($ ridQuery )){
0 commit comments