aggregate_note: Aggregate Contents of a Note

Description Usage Arguments Value

View source: R/data_io.R

Description

When using atomized notes, this function 'pastes' back the different sections together in the intended order. Preselected lemmas are marked, along with those for which thr CUI is in the list of interest.

Usage

1
aggregate_note(selected_doc_id, annotations, cui_elements)

Arguments

selected_doc_id

Document ID for the note to which the sentence belongs.

annotations

NLP annotations dataframe.

cui_elements

Vector of UMLS concept unique identifier (CUI) elements derived from the search query.

Value

Aggregated note in one text string.


CEDARS documentation built on Feb. 7, 2021, 5:06 p.m.