@@ -31,24 +31,11 @@ If you haven't set that up yet, go do that and come back.
3131The Cumulus team can help you with setting it up if you come talk to us,
3232but the rest of this guide will mostly deal with the ` upload-notes ` mode itself.
3333
34- ### Dependent Services
35-
36- Some features of upload mode need external services (like cTAKES to run NLP).
37- Launch those before you begin:
38-
39- ``` shell
40- export UMLS_API_KEY=your-umls-api-key
41- docker compose --profile upload-notes up --wait
42- ```
43-
44- Or if you have access to a GPU,
45- you can speed up the NLP by launching the GPU profile instead with ` --profile upload-notes-gpu ` .
46-
4734## Basic Operation
4835
4936At its core, upload mode is just another ETL (extract, transform, load) operation.
50371 . It extracts DiagnosticReport and/or DocumentReference resources from your EHR.
51- 2 . It transforms the contained notes via NLP & ` philter ` .
38+ 2 . It transforms the contained notes via ` philter ` (and optionally NLP) .
52393 . It loads the results into Label Studio.
5340
5441### Minimal Command Line
@@ -188,7 +175,24 @@ Pass in an argument like `--export-to /in/export` to save the NDJSON for the sel
188175in the given folder. (Note this does not save the clinical note text unless it is already inline
189176-- this is just saving the DocumentReference resources).
190177
191- ## Custom NLP Dictionaries
178+ ## NLP
179+
180+ To enable NLP tagging via cTAKES, pass ` --nlp ` .
181+ This will tag mentions of symptoms it finds, to make chart review easier.
182+
183+ ### Dependent Services
184+
185+ NLP needs cTAKES to be available, so you'll need to launch it before you begin:
186+
187+ ``` shell
188+ export UMLS_API_KEY=your-umls-api-key
189+ docker compose --profile upload-notes up --wait
190+ ```
191+
192+ Or if you have access to a GPU,
193+ you can speed up the NLP by launching the GPU profile instead with ` --profile upload-notes-gpu ` .
194+
195+ ### Custom Dictionaries
192196
193197If you would like to customize the dictionary terms that are marked up and sent to Label Studio,
194198simply pass in a new dictionary like so: ` --symptoms-bsv /in/my-symptoms.bsv ` .
@@ -232,10 +236,12 @@ But any phrases that cTAKES tags as CUI `C0011991` will be labelled as `Diarrhea
232236cTAKES has an internal dictionary and knows some phrases already.
233237But you may get better results by adding extra terms and variations in your symptoms file.
234238
235- ## Disabling Features
239+ ## Philter
240+
241+ You may not need ` philter ` processing.
242+ Simply pass ` --philter=disable ` and it will be skipped.
236243
237- You may not need NLP or ` philter ` processing.
238- Simply pass ` --no-nlp ` or ` --philter=disable ` and those steps will be skipped.
244+ Or alternatively, pass ` --philter=label ` to highlight rather than redact detected PHI.
239245
240246## Label Studio
241247
0 commit comments