inferRxNorm method

Future<InferRxNormResponse> inferRxNorm({
  1. required String text,
})

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.

May throw InternalServerException. May throw InvalidEncodingException. May throw InvalidRequestException. May throw ServiceUnavailableException. May throw TextSizeLimitExceededException. May throw TooManyRequestsException.

Parameter text : The input text used for analysis.

Implementation

Future<InferRxNormResponse> inferRxNorm({
  required String text,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'ComprehendMedical_20181030.InferRxNorm'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'Text': text,
    },
  );

  return InferRxNormResponse.fromJson(jsonResponse.body);
}