inferICD10CM method

Future<InferICD10CMResponse> inferICD10CM({
  1. required String text,
})

InferICD10CM detects medical conditions as entities listed in a patient record and links those entities to normalized concept identifiers in the ICD-10-CM knowledge base from the Centers for Disease Control. Amazon Comprehend Medical only detects medical entities in English language texts.

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

Parameter text : The input text used for analysis. The input for InferICD10CM is a string from 1 to 10000 characters.

Implementation

Future<InferICD10CMResponse> inferICD10CM({
  required String text,
}) async {
  ArgumentError.checkNotNull(text, 'text');
  _s.validateStringLength(
    'text',
    text,
    1,
    10000,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'ComprehendMedical_20181030.InferICD10CM'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'Text': text,
    },
  );

  return InferICD10CMResponse.fromJson(jsonResponse.body);
}