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 |
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
- data InferRxNorm = InferRxNorm' {}
- newInferRxNorm :: Text -> InferRxNorm
- inferRxNorm_text :: Lens' InferRxNorm Text
- data InferRxNormResponse = InferRxNormResponse' {
- paginationToken :: Maybe Text
- modelVersion :: Maybe Text
- httpStatus :: Int
- entities :: [RxNormEntity]
- newInferRxNormResponse :: Int -> InferRxNormResponse
- inferRxNormResponse_paginationToken :: Lens' InferRxNormResponse (Maybe Text)
- inferRxNormResponse_modelVersion :: Lens' InferRxNormResponse (Maybe Text)
- inferRxNormResponse_httpStatus :: Lens' InferRxNormResponse Int
- inferRxNormResponse_entities :: Lens' InferRxNormResponse [RxNormEntity]
Creating a Request
data InferRxNorm Source #
See: newInferRxNorm
smart constructor.
Instances
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.
InferRxNormResponse' | |
|
Instances
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_httpStatus :: Lens' InferRxNormResponse Int Source #
The response's http status code.
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.