Learn R Programming

aws.comprehend (version 0.2.1)

detect_medical_phi: Detect Protected Health Information (PHI) in a source medical text

Description

Detect Protected Health Information (PHI) in a source medical text

Usage

detect_medical_phi(text, language = "en", ...)

Arguments

text

A character string containing a text to entities analyze, or a character vector to perform analysis separately for each element.

language

A character string containing a two-letter language code. Currently only “en” is supported.

Additional arguments passed to comprehendHTTP.

Value

A data frame

Examples

Run this code
# NOT RUN {
  # simple example
  medical_detect_phi("Mrs. Smith comes in today complaining of shortness of breath.")
  
  txt <-c("Mrs. Smith comes in today.",
          "She is complaining of shortnesss of breath.")
  medical_detect_phi(txt)
# }

Run the code above in your browser using DataLab