libZSservicesZSamazonka-comprehendmedicalZSamazonka-comprehendmedical
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.ComprehendMedical.DetectPHI

Description

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

Creating a Request

data DetectPHI Source #

See: newDetectPHI smart constructor.

Constructors

DetectPHI' 

Fields

  • text :: 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.

Instances

Instances details
Eq DetectPHI Source # 
Instance details

Defined in Amazonka.ComprehendMedical.DetectPHI

Read DetectPHI Source # 
Instance details

Defined in Amazonka.ComprehendMedical.DetectPHI

Show DetectPHI Source # 
Instance details

Defined in Amazonka.ComprehendMedical.DetectPHI

Generic DetectPHI Source # 
Instance details

Defined in Amazonka.ComprehendMedical.DetectPHI

Associated Types

type Rep DetectPHI :: Type -> Type #

NFData DetectPHI Source # 
Instance details

Defined in Amazonka.ComprehendMedical.DetectPHI

Methods

rnf :: DetectPHI -> () #

Hashable DetectPHI Source # 
Instance details

Defined in Amazonka.ComprehendMedical.DetectPHI

ToJSON DetectPHI Source # 
Instance details

Defined in Amazonka.ComprehendMedical.DetectPHI

AWSRequest DetectPHI Source # 
Instance details

Defined in Amazonka.ComprehendMedical.DetectPHI

Associated Types

type AWSResponse DetectPHI #

ToHeaders DetectPHI Source # 
Instance details

Defined in Amazonka.ComprehendMedical.DetectPHI

Methods

toHeaders :: DetectPHI -> [Header] #

ToPath DetectPHI Source # 
Instance details

Defined in Amazonka.ComprehendMedical.DetectPHI

ToQuery DetectPHI Source # 
Instance details

Defined in Amazonka.ComprehendMedical.DetectPHI

type Rep DetectPHI Source # 
Instance details

Defined in Amazonka.ComprehendMedical.DetectPHI

type Rep DetectPHI = D1 ('MetaData "DetectPHI" "Amazonka.ComprehendMedical.DetectPHI" "libZSservicesZSamazonka-comprehendmedicalZSamazonka-comprehendmedical" 'False) (C1 ('MetaCons "DetectPHI'" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DetectPHI Source # 
Instance details

Defined in Amazonka.ComprehendMedical.DetectPHI

newDetectPHI Source #

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.

Constructors

DetectPHIResponse' 

Fields

  • paginationToken :: Maybe Text

    If the result of the previous request to DetectPHI was truncated, include the PaginationToken to fetch the next page of PHI entities.

  • httpStatus :: Int

    The response's http status code.

  • entities :: [Entity]

    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.

  • modelVersion :: Text

    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.

Instances

Instances details
Eq DetectPHIResponse Source # 
Instance details

Defined in Amazonka.ComprehendMedical.DetectPHI

Read DetectPHIResponse Source # 
Instance details

Defined in Amazonka.ComprehendMedical.DetectPHI

Show DetectPHIResponse Source # 
Instance details

Defined in Amazonka.ComprehendMedical.DetectPHI

Generic DetectPHIResponse Source # 
Instance details

Defined in Amazonka.ComprehendMedical.DetectPHI

Associated Types

type Rep DetectPHIResponse :: Type -> Type #

NFData DetectPHIResponse Source # 
Instance details

Defined in Amazonka.ComprehendMedical.DetectPHI

Methods

rnf :: DetectPHIResponse -> () #

type Rep DetectPHIResponse Source # 
Instance details

Defined in Amazonka.ComprehendMedical.DetectPHI

type Rep DetectPHIResponse = D1 ('MetaData "DetectPHIResponse" "Amazonka.ComprehendMedical.DetectPHI" "libZSservicesZSamazonka-comprehendmedicalZSamazonka-comprehendmedical" 'False) (C1 ('MetaCons "DetectPHIResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "paginationToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "entities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Entity]) :*: S1 ('MetaSel ('Just "modelVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newDetectPHIResponse Source #

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.