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.InferRxNorm

Description

InferRxNorm detects medications as entities listed in a patient record and links to the normalized concept identifiers in the RxNorm database from the National Library of Medicine. Amazon Comprehend Medical only detects medical entities in English language texts.

Synopsis

Creating a Request

data InferRxNorm Source #

See: newInferRxNorm smart constructor.

Constructors

InferRxNorm' 

Fields

  • text :: Text

    The input text used for analysis. The input for InferRxNorm is a string from 1 to 10000 characters.

Instances

Instances details
Eq InferRxNorm Source # 
Instance details

Defined in Amazonka.ComprehendMedical.InferRxNorm

Read InferRxNorm Source # 
Instance details

Defined in Amazonka.ComprehendMedical.InferRxNorm

Show InferRxNorm Source # 
Instance details

Defined in Amazonka.ComprehendMedical.InferRxNorm

Generic InferRxNorm Source # 
Instance details

Defined in Amazonka.ComprehendMedical.InferRxNorm

Associated Types

type Rep InferRxNorm :: Type -> Type #

NFData InferRxNorm Source # 
Instance details

Defined in Amazonka.ComprehendMedical.InferRxNorm

Methods

rnf :: InferRxNorm -> () #

Hashable InferRxNorm Source # 
Instance details

Defined in Amazonka.ComprehendMedical.InferRxNorm

ToJSON InferRxNorm Source # 
Instance details

Defined in Amazonka.ComprehendMedical.InferRxNorm

AWSRequest InferRxNorm Source # 
Instance details

Defined in Amazonka.ComprehendMedical.InferRxNorm

Associated Types

type AWSResponse InferRxNorm #

ToHeaders InferRxNorm Source # 
Instance details

Defined in Amazonka.ComprehendMedical.InferRxNorm

Methods

toHeaders :: InferRxNorm -> [Header] #

ToPath InferRxNorm Source # 
Instance details

Defined in Amazonka.ComprehendMedical.InferRxNorm

ToQuery InferRxNorm Source # 
Instance details

Defined in Amazonka.ComprehendMedical.InferRxNorm

type Rep InferRxNorm Source # 
Instance details

Defined in Amazonka.ComprehendMedical.InferRxNorm

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

Defined in Amazonka.ComprehendMedical.InferRxNorm

newInferRxNorm Source #

Create a value of InferRxNorm 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:InferRxNorm', inferRxNorm_text - The input text used for analysis. The input for InferRxNorm is a string from 1 to 10000 characters.

Request Lenses

inferRxNorm_text :: Lens' InferRxNorm Text Source #

The input text used for analysis. The input for InferRxNorm is a string from 1 to 10000 characters.

Destructuring the Response

data InferRxNormResponse Source #

See: newInferRxNormResponse smart constructor.

Constructors

InferRxNormResponse' 

Fields

  • paginationToken :: Maybe Text

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

  • modelVersion :: Maybe Text

    The version of the model used to analyze the documents, in the format n.n.n You can use this information to track the model used for a particular batch of documents.

  • httpStatus :: Int

    The response's http status code.

  • entities :: [RxNormEntity]

    The medication entities detected in the text linked to RxNorm concepts. If the action is successful, the service sends back an HTTP 200 response, as well as the entities detected.

Instances

Instances details
Eq InferRxNormResponse Source # 
Instance details

Defined in Amazonka.ComprehendMedical.InferRxNorm

Read InferRxNormResponse Source # 
Instance details

Defined in Amazonka.ComprehendMedical.InferRxNorm

Show InferRxNormResponse Source # 
Instance details

Defined in Amazonka.ComprehendMedical.InferRxNorm

Generic InferRxNormResponse Source # 
Instance details

Defined in Amazonka.ComprehendMedical.InferRxNorm

Associated Types

type Rep InferRxNormResponse :: Type -> Type #

NFData InferRxNormResponse Source # 
Instance details

Defined in Amazonka.ComprehendMedical.InferRxNorm

Methods

rnf :: InferRxNormResponse -> () #

type Rep InferRxNormResponse Source # 
Instance details

Defined in Amazonka.ComprehendMedical.InferRxNorm

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

newInferRxNormResponse Source #

Create a value of InferRxNormResponse 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:InferRxNormResponse', inferRxNormResponse_paginationToken - If the result of the previous request to InferRxNorm was truncated, include the PaginationToken to fetch the next page of medication entities.

$sel:modelVersion:InferRxNormResponse', inferRxNormResponse_modelVersion - The version of the model used to analyze the documents, in the format n.n.n You can use this information to track the model used for a particular batch of documents.

$sel:httpStatus:InferRxNormResponse', inferRxNormResponse_httpStatus - The response's http status code.

$sel:entities:InferRxNormResponse', inferRxNormResponse_entities - The medication entities detected in the text linked to RxNorm concepts. If the action is successful, the service sends back an HTTP 200 response, as well as the entities detected.

Response Lenses

inferRxNormResponse_paginationToken :: Lens' InferRxNormResponse (Maybe Text) Source #

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

inferRxNormResponse_modelVersion :: Lens' InferRxNormResponse (Maybe Text) Source #

The version of the model used to analyze the documents, in the format n.n.n You can use this information to track the model used for a particular batch of documents.

inferRxNormResponse_entities :: Lens' InferRxNormResponse [RxNormEntity] Source #

The medication entities detected in the text linked to RxNorm concepts. If the action is successful, the service sends back an HTTP 200 response, as well as the entities detected.