You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
3.1 KiB
3.1 KiB
None
<html lang="en">
<head>
</head>
</html>
In [6]:
"""
This notebook is designed to generate SQL syntax all the quasi-identifiers for the patients in the database
The resulting SQL will be run against bigquery to produce a table with every record mapping to a patient
"""
from risk import *
ihandle = UtilHandler(path='/home/steve/dev/google-cloud-sdk/accounts/curation-prod.json',dataset='combined20180822',key_field='person_id',key_table='person',filter=['person','observation'])
r = ihandle.migrate_tables()
len(r)
Out[6]:
In [11]:
ihandle = UtilHandler(path='/home/steve/dev/google-cloud-sdk/accounts/curation-test.json',dataset='deid_image',key_field='person_id',key_table='person',filter=['person','basic_observation'])
ihandle.create_table().replace('\n',' ')
Out[11]:
In [ ]: