-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ead3cfb
commit 21d33a6
Showing
30 changed files
with
881 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
title: "%s" | ||
author: "<authors>" | ||
date: "`r Sys.Date()`" | ||
output: | ||
html_document: | ||
number_sections: yes | ||
toc: yes | ||
--- | ||
|
||
## Summary | ||
|
||
**Level**: %s\ | ||
**Context**: %s\ | ||
**Category**: %s\ | ||
**Subcategory**: %s\ | ||
**Severity**: %s | ||
|
||
|
||
## Description | ||
%s | ||
|
||
|
||
## Definition | ||
|
||
- *Numerator*: | ||
- *Denominator*: | ||
- *Related CDM Convention(s)*: | ||
- *CDM Fields/Tables*: | ||
- *Default Threshold Value*: | ||
|
||
|
||
## User Guidance | ||
|
||
|
||
### Violated rows query | ||
```sql | ||
SELECT * | ||
FROM @cdmTable | ||
WHERE violated IS TRUE | ||
``` | ||
|
||
|
||
### ETL Developers | ||
|
||
|
||
### Data Users | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Read check descriptions into a dataframe | ||
checkDescriptions <- read.csv("inst/csv/OMOP_CDMv5.4_Check_Descriptions.csv") | ||
|
||
# Template | ||
templateText <- paste(readLines('extras/checkDescriptionTemplate.Rmd', encoding = 'UTF-8'), collapse = "\n") | ||
|
||
checkText <- sprintf( | ||
templateText, | ||
checkDescriptions$checkName, | ||
checkDescriptions$checkLevel, | ||
checkDescriptions$kahnContext, | ||
checkDescriptions$kahnCategory, | ||
checkDescriptions$kahnSubcategory, | ||
checkDescriptions$severity, | ||
checkDescriptions$checkDescription | ||
) | ||
|
||
# Write each element of checkText to a file | ||
for (i in seq_along(checkText)) { | ||
checkName <- checkDescriptions$checkName[i] | ||
writeLines( | ||
checkText[i], | ||
file.path('extras/checks', paste0(checkName, ".Rmd")) | ||
) | ||
cat(sprintf("- [%s](%s.html)\n", checkName, checkName)) | ||
} | ||
for (checkName in checkDescriptions$checkName) { | ||
cat(sprintf(" - text: %s\n", checkName)) | ||
cat(sprintf(" href: articles/checks/%s.html\n", checkName)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
title: "isStandardValidConcept" | ||
author: "" | ||
date: "`r Sys.Date()`" | ||
output: | ||
html_document: | ||
number_sections: yes | ||
toc: yes | ||
--- | ||
|
||
## Summary | ||
|
||
**Level**: FIELD\ | ||
**Context**: Verification\ | ||
**Category**: Conformance\ | ||
**Subcategory**: Value\ | ||
**Severity**: | ||
|
||
|
||
## Description | ||
The number and percent of records that do not have a standard, valid concept in the @cdmFieldName field in the @cdmTableName table. | ||
|
||
|
||
## Definition | ||
|
||
- *Numerator*: | ||
- *Denominator*: | ||
- *Related CDM Convention(s)*: | ||
- *CDM Fields/Tables*: | ||
- *Default Threshold Value*: | ||
|
||
|
||
## User Guidance | ||
|
||
|
||
### Violated rows query | ||
```sql | ||
|
||
``` | ||
|
||
|
||
### ETL Developers | ||
|
||
|
||
### Data Users | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
title: "measureConditionEraCompleteness" | ||
author: "" | ||
date: "`r Sys.Date()`" | ||
output: | ||
html_document: | ||
number_sections: yes | ||
toc: yes | ||
--- | ||
|
||
## Summary | ||
|
||
**Level**: TABLE\ | ||
**Context**: Validation\ | ||
**Category**: Completeness\ | ||
**Subcategory**: \ | ||
**Severity**: | ||
|
||
|
||
## Description | ||
The number and Percent of persons that does not have condition_era built successfully, | ||
for all persons in condition_occurrence | ||
|
||
|
||
## Definition | ||
|
||
- *Numerator*: | ||
- *Denominator*: | ||
- *Related CDM Convention(s)*: | ||
- *CDM Fields/Tables*: | ||
- *Default Threshold Value*: | ||
|
||
|
||
## User Guidance | ||
|
||
|
||
### Violated rows query | ||
```sql | ||
|
||
``` | ||
|
||
|
||
### ETL Developers | ||
|
||
|
||
### Data Users | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
title: "measurePersonCompleteness" | ||
author: "" | ||
date: "`r Sys.Date()`" | ||
output: | ||
html_document: | ||
number_sections: yes | ||
toc: yes | ||
--- | ||
|
||
## Summary | ||
|
||
**Level**: TABLE\ | ||
**Context**: Validation\ | ||
**Category**: Completeness\ | ||
**Subcategory**: \ | ||
**Severity**: | ||
|
||
|
||
## Description | ||
The number and percent of persons in the CDM that do not have at least one record in the @cdmTableName table | ||
|
||
|
||
## Definition | ||
|
||
- *Numerator*: | ||
- *Denominator*: | ||
- *Related CDM Convention(s)*: | ||
- *CDM Fields/Tables*: | ||
- *Default Threshold Value*: | ||
|
||
|
||
## User Guidance | ||
|
||
|
||
### Violated rows query | ||
```sql | ||
|
||
``` | ||
|
||
|
||
### ETL Developers | ||
|
||
|
||
### Data Users | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
title: "measureValueCompleteness" | ||
author: "" | ||
date: "`r Sys.Date()`" | ||
output: | ||
html_document: | ||
number_sections: yes | ||
toc: yes | ||
--- | ||
|
||
## Summary | ||
|
||
**Level**: FIELD\ | ||
**Context**: Verification\ | ||
**Category**: Completeness\ | ||
**Subcategory**: \ | ||
**Severity**: | ||
|
||
|
||
## Description | ||
The number and percent of records with a NULL value in the @cdmFieldName of the @cdmTableName. | ||
|
||
|
||
## Definition | ||
|
||
- *Numerator*: | ||
- *Denominator*: | ||
- *Related CDM Convention(s)*: | ||
- *CDM Fields/Tables*: | ||
- *Default Threshold Value*: | ||
|
||
|
||
## User Guidance | ||
|
||
|
||
### Violated rows query | ||
```sql | ||
|
||
``` | ||
|
||
|
||
### ETL Developers | ||
|
||
|
||
### Data Users | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
title: "plausibleAfterBirth" | ||
author: "" | ||
date: "`r Sys.Date()`" | ||
output: | ||
html_document: | ||
number_sections: yes | ||
toc: yes | ||
--- | ||
|
||
## Summary | ||
|
||
**Level**: FIELD\ | ||
**Context**: Verification\ | ||
**Category**: Plausibility\ | ||
**Subcategory**: Temporal\ | ||
**Severity**: | ||
|
||
|
||
## Description | ||
The number and percent of records with a date value in the @cdmFieldName field of the @cdmTableName table that occurs prior to birth. | ||
|
||
|
||
## Definition | ||
|
||
- *Numerator*: | ||
- *Denominator*: | ||
- *Related CDM Convention(s)*: | ||
- *CDM Fields/Tables*: | ||
- *Default Threshold Value*: | ||
|
||
|
||
## User Guidance | ||
|
||
|
||
### Violated rows query | ||
```sql | ||
|
||
``` | ||
|
||
|
||
### ETL Developers | ||
|
||
|
||
### Data Users | ||
|
File renamed without changes.
Oops, something went wrong.