Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Inspects the clinical text for protected health information (PHI) entities and returns the entity category, location, and confidence score for each entity. Amazon Comprehend Medical only detects entities in English language texts.
Synopsis
- data DetectPHI = DetectPHI' {}
- newDetectPHI :: Text -> DetectPHI
- detectPHI_text :: Lens' DetectPHI Text
- data DetectPHIResponse = DetectPHIResponse' {
- paginationToken :: Maybe Text
- httpStatus :: Int
- entities :: [Entity]
- modelVersion :: Text
- newDetectPHIResponse :: Int -> Text -> DetectPHIResponse
- detectPHIResponse_paginationToken :: Lens' DetectPHIResponse (Maybe Text)
- detectPHIResponse_httpStatus :: Lens' DetectPHIResponse Int
- detectPHIResponse_entities :: Lens' DetectPHIResponse [Entity]
- detectPHIResponse_modelVersion :: Lens' DetectPHIResponse Text
Creating a Request
See: newDetectPHI
smart constructor.
Instances
Create a value of DetectPHI
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:text:DetectPHI'
, detectPHI_text
- A UTF-8 text string containing the clinical content being examined for
PHI entities. Each string must contain fewer than 20,000 bytes of
characters.
Request Lenses
detectPHI_text :: Lens' DetectPHI Text Source #
A UTF-8 text string containing the clinical content being examined for PHI entities. Each string must contain fewer than 20,000 bytes of characters.
Destructuring the Response
data DetectPHIResponse Source #
See: newDetectPHIResponse
smart constructor.
DetectPHIResponse' | |
|
Instances
:: Int | |
-> Text | |
-> DetectPHIResponse |
Create a value of DetectPHIResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:paginationToken:DetectPHIResponse'
, detectPHIResponse_paginationToken
- If the result of the previous request to DetectPHI
was truncated,
include the PaginationToken
to fetch the next page of PHI entities.
$sel:httpStatus:DetectPHIResponse'
, detectPHIResponse_httpStatus
- The response's http status code.
$sel:entities:DetectPHIResponse'
, detectPHIResponse_entities
- The collection of PHI entities extracted from the input text and their
associated information. For each entity, the response provides the
entity text, the entity category, where the entity text begins and ends,
and the level of confidence that Amazon Comprehend Medical has in its
detection.
$sel:modelVersion:DetectPHIResponse'
, detectPHIResponse_modelVersion
- The version of the model used to analyze the documents. The version
number looks like X.X.X. You can use this information to track the model
used for a particular batch of documents.
Response Lenses
detectPHIResponse_paginationToken :: Lens' DetectPHIResponse (Maybe Text) Source #
If the result of the previous request to DetectPHI
was truncated,
include the PaginationToken
to fetch the next page of PHI entities.
detectPHIResponse_httpStatus :: Lens' DetectPHIResponse Int Source #
The response's http status code.
detectPHIResponse_entities :: Lens' DetectPHIResponse [Entity] Source #
The collection of PHI entities extracted from the input text and their associated information. For each entity, the response provides the entity text, the entity category, where the entity text begins and ends, and the level of confidence that Amazon Comprehend Medical has in its detection.
detectPHIResponse_modelVersion :: Lens' DetectPHIResponse Text Source #
The version of the model used to analyze the documents. The version number looks like X.X.X. You can use this information to track the model used for a particular batch of documents.