Skip to content

Commit 4bf88aa

Browse files
authored
Merge pull request #96 from mcode/email-config-fixes
Add to Table of Contents. Add types
2 parents fc348a1 + df4c242 commit 4bf88aa

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ A Node.js framework for extracting mCODE FHIR resources. All resources are profi
1616
- [Configuration Deep Dive](#configuration-deep-dive)
1717
- [Email Notification](#email-notification)
1818
- [Logging Successful Extractions](#logging-successful-extractions)
19+
- [Masking Patient Data](#masking-patient-data)
1920
- [Extraction Date Range](#extraction-date-range)
2021
- [CLI From-Date and To-Date (NOT recommended use)](#cli-from-date-and-to-date-not-recommended-use)
2122
- [Terminology and Architecture](#terminology-and-architecture)
@@ -107,11 +108,11 @@ The connection to the SMTP server is considered authenticated from the start. Cu
107108

108109
In order to send an email, users must specify the hostname or IP address of an SMTP server to connect to and the email addresses to send the email to. Optionally, users can specify the port to connect to and the email address to send from. These fields must be specified in the `notificationInfo` object in the configuration file. Below is more information on each field that can be specified. Further information can be found in the [`nodemailer` documentation](https://nodemailer.com/) for the [SMTP transport](https://nodemailer.com/smtp/) and [message configuration](https://nodemailer.com/message/).
109110

110-
- `host`: The hostname or IP address of an SMTP server to connect to
111-
- `port`: (Optional) The port to connect to (defaults to 587)
112-
- `to`: Comma separated list or an array of recipients email addresses that will appear on the _To:_ field
113-
- `from`: (Optional) The email address of the sender. All email addresses can be plain `'sender@server.com'` or formatted `'"Sender Name" sender@server.com'` (defaults to mcode-extraction-errors@mitre.org, which cannot receive reply emails)
114-
- `tlsRejectUnauthorized`: (Optional) A boolean value to set the [node.js TLSSocket option](https://nodejs.org/api/tls.html#tls_class_tls_tlssocket) for rejecting any unauthorized connections, `tls.rejectUnauthorized`. (defaults to `true`)
111+
- `host`: `<string>` The hostname or IP address of an SMTP server to connect to
112+
- `port`: `<number>` (Optional) The port to connect to (defaults to 587)
113+
- `to`: `<string[]>` Comma separated list or an array of recipients email addresses that will appear on the _To:_ field
114+
- `from`: `<string>` (Optional) The email address of the sender. All email addresses can be plain `'sender@server.com'` or formatted `'"Sender Name" sender@server.com'` (defaults to mcode-extraction-errors@mitre.org, which cannot receive reply emails)
115+
- `tlsRejectUnauthorized`: `<boolean>` (Optional) A boolean value to set the [node.js TLSSocket option](https://nodejs.org/api/tls.html#tls_class_tls_tlssocket) for rejecting any unauthorized connections, `tls.rejectUnauthorized`. (defaults to `true`)
115116

116117
An example of this object can be found in [`config/csv.config.example.json`](config/csv.config.example.json).
117118

@@ -129,7 +130,7 @@ node src/cli/cli.js --run-log-filepath path/to/file.json
129130

130131
### Masking Patient Data
131132

132-
Currently, patient data can be masked within the extracted `Patient` resource. When masked, the value of the field will be replaced with a [Data Absent Reason extension](https://www.hl7.org/fhir/extension-data-absent-reason.html) with the code `masked`.
133+
Patient data can be masked within the extracted `Patient` resource. When masked, the value of the field will be replaced with a [Data Absent Reason extension](https://www.hl7.org/fhir/extension-data-absent-reason.html) with the code `masked`.
133134
Patient properties that can be masked are: `gender`, `mrn`, `name`, `address`, `birthDate`, `language`, `ethnicity`, `birthsex`, and `race`.
134135
To mask a property, provide an array of the properties to mask in the `constructorArgs` of the Patient extractor. For example, the following configuration can be used to mask `address` and `birthDate`:
135136

0 commit comments

Comments
 (0)