<- DataQualityDashboard::listDqChecks() checks
summary(checks)
$checkDescriptions checks
$tableChecks checks
= "GiBleed"
datasetName = "sqlite"
dbms
<- Eunomia::getDatabaseFile(
datasetLocation datasetName = datasetName,
dbms = dbms,
databaseFile = tempfile(fileext = ".sqlite")
)<- DatabaseConnector::createConnectionDetails(dbms = dbms, server = datasetLocation)
connectionDetails = DatabaseConnector::connect(connectionDetails = connectionDetails)
connection ::createCohorts(connectionDetails)
Eunomia::getTableNames(connection, databaseSchema = 'main') DatabaseConnector
= "resources/artifacts/dqd"
base_dir ::executeDqChecks(
DataQualityDashboard
connectionDetails,cdmDatabaseSchema = "main",
resultsDatabaseSchema = "main",
cdmSourceName = "Eunomia",
outputFile = "synthea.json",
outputFolder = base_dir)
# Note json_path must be an absolute path...
<- file.path(getwd(), base_dir, "synthea.json")
json_path ::viewDqDashboard(jsonPath = json_path) DataQualityDashboard