Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
Merge branch 'main' of github.com:nlpsandbox/i2b2-phi-dataset into main
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaffter committed Jun 6, 2021
2 parents 6828330 + 2df7985 commit 82bd66a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ SYNAPSE_TOKEN=yourtoken
HOST_PORT=80

# User-specified settings made visible to RStudio (APP_*)
APP_NLPSANDBOX_SCHEMAS_VERSION=1.1.1
APP_DATASET_VERSION=1.0.0
APP_NLPSANDBOX_SCHEMAS_VERSION=1.1.2
APP_DATASET_VERSION=1.1.0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ If you decided to fork this repository, you will need to update the environment
variables defined at the top of the [CI/CD workflow]. You also need to create
the following [GitHub Secrets]:

- `RSTUDIO_PASSWORD`: Simply use a random password.
- `RSTUDIO_PASSWORD`: Random password.
- `SYNAPSE_USERNAME`: Your [Synapse.org] username.
- `SYNAPSE_TOKEN`: A [personal access token (PAT)] that has the permissions
`View`, `Download` and `Modify`.
Expand Down
14 changes: 13 additions & 1 deletion notebooks/generate-dataset.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,16 @@ noop <- lapply(names(datasets), function(dataset_name) {
df <- physical_address_annotations[[dataset_name]]
df <- df[df$noteId == noteId,]
text_physical_address_annotations <- df %>% purrr::transpose()
## get contact annotations
df <- contact_annotations[[dataset_name]]
df <- df[df$noteId == noteId,]
text_contact_annotations <- df %>% purrr::transpose()
## get id annotations
df <- id_annotations[[dataset_name]]
df <- df[df$noteId == noteId,]
text_id_annotations <- df %>% purrr::transpose()
annotation=list(
annotationSource=list(
Expand All @@ -502,7 +512,9 @@ noop <- lapply(names(datasets), function(dataset_name) {
),
textDateAnnotations=text_date_annotations,
textPersonNameAnnotations=text_person_name_annotations,
textPhysicalAddressAnnotations=text_physical_address_annotations
textPhysicalAddressAnnotations=text_physical_address_annotations,
textContactAnnotations=text_contact_annotations,
textIdAnnotations=text_id_annotations
)
# create note bundle
Expand Down

0 comments on commit 82bd66a

Please sign in to comment.