file|Template file that will be used to interact with the DB.
samples.mod|If TRUE (default), it fills the "samples" template sheet.
clinics.mod|If TRUE (default), it fills the "CLINICS" template sheet.
### Details
Fills the Query Template file with the OVID and OV newly generated codes. It is required that the DB has been updated with the sqlGenOVID function. It replaces previous content in the template file sheets that are filled. In the case of "CLINICS" table, if there were already an entry in the DB for that OVID code, the template file is filled with that information.
### Value
Invisibly for success (and failures cause errors).
filetemp|Template file that will be used to interact with the DB.
sinc.samples|If TRUE (default is FALSE for security), it updates the SAMPLES table in the DB with the information in the "samples" template sheet.
clinics.mod|If TRUE (default is FALSE for security), it updates the CLINICS table in the DB with the information in the "CLINICS" template sheet.
### Details
Updates the DB with the information filled in the template file. All the "samples" entries are added as new rows (as all samples are new even if the patient was already in the DB). The new patients included in the "CLINICS" sheet are introduced in the DB as new rows and the ones that were already there are modified in its previous row location.
### Value
Invisibly for success (and failures cause errors).
<td>connection handle returned by odbcConnect.</td>
</tr>
<trclass="even">
<td>nhcs</td>
<td>Character vector with the NHCs to test.</td>
</tr>
<trclass="odd">
<td>file</td>
<td>Template file that will be used to interact with the DB.</td>
</tr>
<trclass="even">
<td>samples.mod</td>
<td>If TRUE (default), it fills the “samples” template sheet.</td>
</tr>
<trclass="odd">
<td>clinics.mod</td>
<td>If TRUE (default), it fills the “CLINICS” template sheet.</td>
</tr>
</tbody>
</table>
</div>
<divid="details-4"class="section level3">
<h3>Details</h3>
<p>Fills the Query Template file with the OVID and OV newly generated codes. It is required that the DB has been updated with the sqlGenOVID function. It replaces previous content in the template file sheets that are filled. In the case of “CLINICS” table, if there were already an entry in the DB for that OVID code, the template file is filled with that information.</p>
</div>
<divid="value-4"class="section level3">
<h3>Value</h3>
<p>Invisibly for success (and failures cause errors).</p>
<td>connection handle returned by odbcConnect.</td>
</tr>
<trclass="even">
<td>filetemp</td>
<td>Template file that will be used to interact with the DB.</td>
</tr>
<trclass="odd">
<td>sinc.samples</td>
<td>If TRUE (default is FALSE for security), it updates the SAMPLES table in the DB with the information in the “samples” template sheet.</td>
</tr>
<trclass="even">
<td>clinics.mod</td>
<td>If TRUE (default is FALSE for security), it updates the CLINICS table in the DB with the information in the “CLINICS” template sheet.</td>
</tr>
</tbody>
</table>
</div>
<divid="details-5"class="section level3">
<h3>Details</h3>
<p>Updates the DB with the information filled in the template file. All the “samples” entries are added as new rows (as all samples are new even if the patient was already in the DB). The new patients included in the “CLINICS” sheet are introduced in the DB as new rows and the ones that were already there are modified in its previous row location.</p>
</div>
<divid="value-5"class="section level3">
<h3>Value</h3>
<p>Invisibly for success (and failures cause errors).</p>