1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
2
3package comprehendmedical
4
5import (
6	"fmt"
7	"time"
8
9	"github.com/aws/aws-sdk-go/aws"
10	"github.com/aws/aws-sdk-go/aws/awsutil"
11	"github.com/aws/aws-sdk-go/aws/request"
12	"github.com/aws/aws-sdk-go/private/protocol"
13)
14
15const opDescribeEntitiesDetectionV2Job = "DescribeEntitiesDetectionV2Job"
16
17// DescribeEntitiesDetectionV2JobRequest generates a "aws/request.Request" representing the
18// client's request for the DescribeEntitiesDetectionV2Job operation. The "output" return
19// value will be populated with the request's response once the request completes
20// successfully.
21//
22// Use "Send" method on the returned Request to send the API call to the service.
23// the "output" return value is not valid until after Send returns without error.
24//
25// See DescribeEntitiesDetectionV2Job for more information on using the DescribeEntitiesDetectionV2Job
26// API call, and error handling.
27//
28// This method is useful when you want to inject custom logic or configuration
29// into the SDK's request lifecycle. Such as custom headers, or retry logic.
30//
31//
32//    // Example sending a request using the DescribeEntitiesDetectionV2JobRequest method.
33//    req, resp := client.DescribeEntitiesDetectionV2JobRequest(params)
34//
35//    err := req.Send()
36//    if err == nil { // resp is now filled
37//        fmt.Println(resp)
38//    }
39//
40// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DescribeEntitiesDetectionV2Job
41func (c *ComprehendMedical) DescribeEntitiesDetectionV2JobRequest(input *DescribeEntitiesDetectionV2JobInput) (req *request.Request, output *DescribeEntitiesDetectionV2JobOutput) {
42	op := &request.Operation{
43		Name:       opDescribeEntitiesDetectionV2Job,
44		HTTPMethod: "POST",
45		HTTPPath:   "/",
46	}
47
48	if input == nil {
49		input = &DescribeEntitiesDetectionV2JobInput{}
50	}
51
52	output = &DescribeEntitiesDetectionV2JobOutput{}
53	req = c.newRequest(op, input, output)
54	return
55}
56
57// DescribeEntitiesDetectionV2Job API operation for AWS Comprehend Medical.
58//
59// Gets the properties associated with a medical entities detection job. Use
60// this operation to get the status of a detection job.
61//
62// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
63// with awserr.Error's Code and Message methods to get detailed information about
64// the error.
65//
66// See the AWS API reference guide for AWS Comprehend Medical's
67// API operation DescribeEntitiesDetectionV2Job for usage and error information.
68//
69// Returned Error Types:
70//   * InvalidRequestException
71//   The request that you made is invalid. Check your request to determine why
72//   it's invalid and then retry the request.
73//
74//   * TooManyRequestsException
75//   You have made too many requests within a short period of time. Wait for a
76//   short time and then try your request again. Contact customer support for
77//   more information about a service limit increase.
78//
79//   * ResourceNotFoundException
80//   The resource identified by the specified Amazon Resource Name (ARN) was not
81//   found. Check the ARN and try your request again.
82//
83//   * InternalServerException
84//   An internal server error occurred. Retry your request.
85//
86// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DescribeEntitiesDetectionV2Job
87func (c *ComprehendMedical) DescribeEntitiesDetectionV2Job(input *DescribeEntitiesDetectionV2JobInput) (*DescribeEntitiesDetectionV2JobOutput, error) {
88	req, out := c.DescribeEntitiesDetectionV2JobRequest(input)
89	return out, req.Send()
90}
91
92// DescribeEntitiesDetectionV2JobWithContext is the same as DescribeEntitiesDetectionV2Job with the addition of
93// the ability to pass a context and additional request options.
94//
95// See DescribeEntitiesDetectionV2Job for details on how to use this API operation.
96//
97// The context must be non-nil and will be used for request cancellation. If
98// the context is nil a panic will occur. In the future the SDK may create
99// sub-contexts for http.Requests. See https://golang.org/pkg/context/
100// for more information on using Contexts.
101func (c *ComprehendMedical) DescribeEntitiesDetectionV2JobWithContext(ctx aws.Context, input *DescribeEntitiesDetectionV2JobInput, opts ...request.Option) (*DescribeEntitiesDetectionV2JobOutput, error) {
102	req, out := c.DescribeEntitiesDetectionV2JobRequest(input)
103	req.SetContext(ctx)
104	req.ApplyOptions(opts...)
105	return out, req.Send()
106}
107
108const opDescribeICD10CMInferenceJob = "DescribeICD10CMInferenceJob"
109
110// DescribeICD10CMInferenceJobRequest generates a "aws/request.Request" representing the
111// client's request for the DescribeICD10CMInferenceJob operation. The "output" return
112// value will be populated with the request's response once the request completes
113// successfully.
114//
115// Use "Send" method on the returned Request to send the API call to the service.
116// the "output" return value is not valid until after Send returns without error.
117//
118// See DescribeICD10CMInferenceJob for more information on using the DescribeICD10CMInferenceJob
119// API call, and error handling.
120//
121// This method is useful when you want to inject custom logic or configuration
122// into the SDK's request lifecycle. Such as custom headers, or retry logic.
123//
124//
125//    // Example sending a request using the DescribeICD10CMInferenceJobRequest method.
126//    req, resp := client.DescribeICD10CMInferenceJobRequest(params)
127//
128//    err := req.Send()
129//    if err == nil { // resp is now filled
130//        fmt.Println(resp)
131//    }
132//
133// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DescribeICD10CMInferenceJob
134func (c *ComprehendMedical) DescribeICD10CMInferenceJobRequest(input *DescribeICD10CMInferenceJobInput) (req *request.Request, output *DescribeICD10CMInferenceJobOutput) {
135	op := &request.Operation{
136		Name:       opDescribeICD10CMInferenceJob,
137		HTTPMethod: "POST",
138		HTTPPath:   "/",
139	}
140
141	if input == nil {
142		input = &DescribeICD10CMInferenceJobInput{}
143	}
144
145	output = &DescribeICD10CMInferenceJobOutput{}
146	req = c.newRequest(op, input, output)
147	return
148}
149
150// DescribeICD10CMInferenceJob API operation for AWS Comprehend Medical.
151//
152// Gets the properties associated with an InferICD10CM job. Use this operation
153// to get the status of an inference job.
154//
155// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
156// with awserr.Error's Code and Message methods to get detailed information about
157// the error.
158//
159// See the AWS API reference guide for AWS Comprehend Medical's
160// API operation DescribeICD10CMInferenceJob for usage and error information.
161//
162// Returned Error Types:
163//   * InvalidRequestException
164//   The request that you made is invalid. Check your request to determine why
165//   it's invalid and then retry the request.
166//
167//   * TooManyRequestsException
168//   You have made too many requests within a short period of time. Wait for a
169//   short time and then try your request again. Contact customer support for
170//   more information about a service limit increase.
171//
172//   * ResourceNotFoundException
173//   The resource identified by the specified Amazon Resource Name (ARN) was not
174//   found. Check the ARN and try your request again.
175//
176//   * InternalServerException
177//   An internal server error occurred. Retry your request.
178//
179// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DescribeICD10CMInferenceJob
180func (c *ComprehendMedical) DescribeICD10CMInferenceJob(input *DescribeICD10CMInferenceJobInput) (*DescribeICD10CMInferenceJobOutput, error) {
181	req, out := c.DescribeICD10CMInferenceJobRequest(input)
182	return out, req.Send()
183}
184
185// DescribeICD10CMInferenceJobWithContext is the same as DescribeICD10CMInferenceJob with the addition of
186// the ability to pass a context and additional request options.
187//
188// See DescribeICD10CMInferenceJob for details on how to use this API operation.
189//
190// The context must be non-nil and will be used for request cancellation. If
191// the context is nil a panic will occur. In the future the SDK may create
192// sub-contexts for http.Requests. See https://golang.org/pkg/context/
193// for more information on using Contexts.
194func (c *ComprehendMedical) DescribeICD10CMInferenceJobWithContext(ctx aws.Context, input *DescribeICD10CMInferenceJobInput, opts ...request.Option) (*DescribeICD10CMInferenceJobOutput, error) {
195	req, out := c.DescribeICD10CMInferenceJobRequest(input)
196	req.SetContext(ctx)
197	req.ApplyOptions(opts...)
198	return out, req.Send()
199}
200
201const opDescribePHIDetectionJob = "DescribePHIDetectionJob"
202
203// DescribePHIDetectionJobRequest generates a "aws/request.Request" representing the
204// client's request for the DescribePHIDetectionJob operation. The "output" return
205// value will be populated with the request's response once the request completes
206// successfully.
207//
208// Use "Send" method on the returned Request to send the API call to the service.
209// the "output" return value is not valid until after Send returns without error.
210//
211// See DescribePHIDetectionJob for more information on using the DescribePHIDetectionJob
212// API call, and error handling.
213//
214// This method is useful when you want to inject custom logic or configuration
215// into the SDK's request lifecycle. Such as custom headers, or retry logic.
216//
217//
218//    // Example sending a request using the DescribePHIDetectionJobRequest method.
219//    req, resp := client.DescribePHIDetectionJobRequest(params)
220//
221//    err := req.Send()
222//    if err == nil { // resp is now filled
223//        fmt.Println(resp)
224//    }
225//
226// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DescribePHIDetectionJob
227func (c *ComprehendMedical) DescribePHIDetectionJobRequest(input *DescribePHIDetectionJobInput) (req *request.Request, output *DescribePHIDetectionJobOutput) {
228	op := &request.Operation{
229		Name:       opDescribePHIDetectionJob,
230		HTTPMethod: "POST",
231		HTTPPath:   "/",
232	}
233
234	if input == nil {
235		input = &DescribePHIDetectionJobInput{}
236	}
237
238	output = &DescribePHIDetectionJobOutput{}
239	req = c.newRequest(op, input, output)
240	return
241}
242
243// DescribePHIDetectionJob API operation for AWS Comprehend Medical.
244//
245// Gets the properties associated with a protected health information (PHI)
246// detection job. Use this operation to get the status of a detection job.
247//
248// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
249// with awserr.Error's Code and Message methods to get detailed information about
250// the error.
251//
252// See the AWS API reference guide for AWS Comprehend Medical's
253// API operation DescribePHIDetectionJob for usage and error information.
254//
255// Returned Error Types:
256//   * InvalidRequestException
257//   The request that you made is invalid. Check your request to determine why
258//   it's invalid and then retry the request.
259//
260//   * TooManyRequestsException
261//   You have made too many requests within a short period of time. Wait for a
262//   short time and then try your request again. Contact customer support for
263//   more information about a service limit increase.
264//
265//   * ResourceNotFoundException
266//   The resource identified by the specified Amazon Resource Name (ARN) was not
267//   found. Check the ARN and try your request again.
268//
269//   * InternalServerException
270//   An internal server error occurred. Retry your request.
271//
272// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DescribePHIDetectionJob
273func (c *ComprehendMedical) DescribePHIDetectionJob(input *DescribePHIDetectionJobInput) (*DescribePHIDetectionJobOutput, error) {
274	req, out := c.DescribePHIDetectionJobRequest(input)
275	return out, req.Send()
276}
277
278// DescribePHIDetectionJobWithContext is the same as DescribePHIDetectionJob with the addition of
279// the ability to pass a context and additional request options.
280//
281// See DescribePHIDetectionJob for details on how to use this API operation.
282//
283// The context must be non-nil and will be used for request cancellation. If
284// the context is nil a panic will occur. In the future the SDK may create
285// sub-contexts for http.Requests. See https://golang.org/pkg/context/
286// for more information on using Contexts.
287func (c *ComprehendMedical) DescribePHIDetectionJobWithContext(ctx aws.Context, input *DescribePHIDetectionJobInput, opts ...request.Option) (*DescribePHIDetectionJobOutput, error) {
288	req, out := c.DescribePHIDetectionJobRequest(input)
289	req.SetContext(ctx)
290	req.ApplyOptions(opts...)
291	return out, req.Send()
292}
293
294const opDescribeRxNormInferenceJob = "DescribeRxNormInferenceJob"
295
296// DescribeRxNormInferenceJobRequest generates a "aws/request.Request" representing the
297// client's request for the DescribeRxNormInferenceJob operation. The "output" return
298// value will be populated with the request's response once the request completes
299// successfully.
300//
301// Use "Send" method on the returned Request to send the API call to the service.
302// the "output" return value is not valid until after Send returns without error.
303//
304// See DescribeRxNormInferenceJob for more information on using the DescribeRxNormInferenceJob
305// API call, and error handling.
306//
307// This method is useful when you want to inject custom logic or configuration
308// into the SDK's request lifecycle. Such as custom headers, or retry logic.
309//
310//
311//    // Example sending a request using the DescribeRxNormInferenceJobRequest method.
312//    req, resp := client.DescribeRxNormInferenceJobRequest(params)
313//
314//    err := req.Send()
315//    if err == nil { // resp is now filled
316//        fmt.Println(resp)
317//    }
318//
319// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DescribeRxNormInferenceJob
320func (c *ComprehendMedical) DescribeRxNormInferenceJobRequest(input *DescribeRxNormInferenceJobInput) (req *request.Request, output *DescribeRxNormInferenceJobOutput) {
321	op := &request.Operation{
322		Name:       opDescribeRxNormInferenceJob,
323		HTTPMethod: "POST",
324		HTTPPath:   "/",
325	}
326
327	if input == nil {
328		input = &DescribeRxNormInferenceJobInput{}
329	}
330
331	output = &DescribeRxNormInferenceJobOutput{}
332	req = c.newRequest(op, input, output)
333	return
334}
335
336// DescribeRxNormInferenceJob API operation for AWS Comprehend Medical.
337//
338// Gets the properties associated with an InferRxNorm job. Use this operation
339// to get the status of an inference job.
340//
341// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
342// with awserr.Error's Code and Message methods to get detailed information about
343// the error.
344//
345// See the AWS API reference guide for AWS Comprehend Medical's
346// API operation DescribeRxNormInferenceJob for usage and error information.
347//
348// Returned Error Types:
349//   * InvalidRequestException
350//   The request that you made is invalid. Check your request to determine why
351//   it's invalid and then retry the request.
352//
353//   * TooManyRequestsException
354//   You have made too many requests within a short period of time. Wait for a
355//   short time and then try your request again. Contact customer support for
356//   more information about a service limit increase.
357//
358//   * ResourceNotFoundException
359//   The resource identified by the specified Amazon Resource Name (ARN) was not
360//   found. Check the ARN and try your request again.
361//
362//   * InternalServerException
363//   An internal server error occurred. Retry your request.
364//
365// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DescribeRxNormInferenceJob
366func (c *ComprehendMedical) DescribeRxNormInferenceJob(input *DescribeRxNormInferenceJobInput) (*DescribeRxNormInferenceJobOutput, error) {
367	req, out := c.DescribeRxNormInferenceJobRequest(input)
368	return out, req.Send()
369}
370
371// DescribeRxNormInferenceJobWithContext is the same as DescribeRxNormInferenceJob with the addition of
372// the ability to pass a context and additional request options.
373//
374// See DescribeRxNormInferenceJob for details on how to use this API operation.
375//
376// The context must be non-nil and will be used for request cancellation. If
377// the context is nil a panic will occur. In the future the SDK may create
378// sub-contexts for http.Requests. See https://golang.org/pkg/context/
379// for more information on using Contexts.
380func (c *ComprehendMedical) DescribeRxNormInferenceJobWithContext(ctx aws.Context, input *DescribeRxNormInferenceJobInput, opts ...request.Option) (*DescribeRxNormInferenceJobOutput, error) {
381	req, out := c.DescribeRxNormInferenceJobRequest(input)
382	req.SetContext(ctx)
383	req.ApplyOptions(opts...)
384	return out, req.Send()
385}
386
387const opDetectEntities = "DetectEntities"
388
389// DetectEntitiesRequest generates a "aws/request.Request" representing the
390// client's request for the DetectEntities operation. The "output" return
391// value will be populated with the request's response once the request completes
392// successfully.
393//
394// Use "Send" method on the returned Request to send the API call to the service.
395// the "output" return value is not valid until after Send returns without error.
396//
397// See DetectEntities for more information on using the DetectEntities
398// API call, and error handling.
399//
400// This method is useful when you want to inject custom logic or configuration
401// into the SDK's request lifecycle. Such as custom headers, or retry logic.
402//
403//
404//    // Example sending a request using the DetectEntitiesRequest method.
405//    req, resp := client.DetectEntitiesRequest(params)
406//
407//    err := req.Send()
408//    if err == nil { // resp is now filled
409//        fmt.Println(resp)
410//    }
411//
412// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DetectEntities
413//
414// Deprecated: This operation is deprecated, use DetectEntitiesV2 instead.
415func (c *ComprehendMedical) DetectEntitiesRequest(input *DetectEntitiesInput) (req *request.Request, output *DetectEntitiesOutput) {
416	if c.Client.Config.Logger != nil {
417		c.Client.Config.Logger.Log("This operation, DetectEntities, has been deprecated")
418	}
419	op := &request.Operation{
420		Name:       opDetectEntities,
421		HTTPMethod: "POST",
422		HTTPPath:   "/",
423	}
424
425	if input == nil {
426		input = &DetectEntitiesInput{}
427	}
428
429	output = &DetectEntitiesOutput{}
430	req = c.newRequest(op, input, output)
431	return
432}
433
434// DetectEntities API operation for AWS Comprehend Medical.
435//
436// The DetectEntities operation is deprecated. You should use the DetectEntitiesV2
437// operation instead.
438//
439// Inspects the clinical text for a variety of medical entities and returns
440// specific information about them such as entity category, location, and confidence
441// score on that information .
442//
443// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
444// with awserr.Error's Code and Message methods to get detailed information about
445// the error.
446//
447// See the AWS API reference guide for AWS Comprehend Medical's
448// API operation DetectEntities for usage and error information.
449//
450// Returned Error Types:
451//   * InternalServerException
452//   An internal server error occurred. Retry your request.
453//
454//   * ServiceUnavailableException
455//   The Amazon Comprehend Medical service is temporarily unavailable. Please
456//   wait and then retry your request.
457//
458//   * TooManyRequestsException
459//   You have made too many requests within a short period of time. Wait for a
460//   short time and then try your request again. Contact customer support for
461//   more information about a service limit increase.
462//
463//   * InvalidRequestException
464//   The request that you made is invalid. Check your request to determine why
465//   it's invalid and then retry the request.
466//
467//   * InvalidEncodingException
468//   The input text was not in valid UTF-8 character encoding. Check your text
469//   then retry your request.
470//
471//   * TextSizeLimitExceededException
472//   The size of the text you submitted exceeds the size limit. Reduce the size
473//   of the text or use a smaller document and then retry your request.
474//
475// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DetectEntities
476//
477// Deprecated: This operation is deprecated, use DetectEntitiesV2 instead.
478func (c *ComprehendMedical) DetectEntities(input *DetectEntitiesInput) (*DetectEntitiesOutput, error) {
479	req, out := c.DetectEntitiesRequest(input)
480	return out, req.Send()
481}
482
483// DetectEntitiesWithContext is the same as DetectEntities with the addition of
484// the ability to pass a context and additional request options.
485//
486// See DetectEntities for details on how to use this API operation.
487//
488// The context must be non-nil and will be used for request cancellation. If
489// the context is nil a panic will occur. In the future the SDK may create
490// sub-contexts for http.Requests. See https://golang.org/pkg/context/
491// for more information on using Contexts.
492//
493// Deprecated: This operation is deprecated, use DetectEntitiesV2 instead.
494func (c *ComprehendMedical) DetectEntitiesWithContext(ctx aws.Context, input *DetectEntitiesInput, opts ...request.Option) (*DetectEntitiesOutput, error) {
495	req, out := c.DetectEntitiesRequest(input)
496	req.SetContext(ctx)
497	req.ApplyOptions(opts...)
498	return out, req.Send()
499}
500
501const opDetectEntitiesV2 = "DetectEntitiesV2"
502
503// DetectEntitiesV2Request generates a "aws/request.Request" representing the
504// client's request for the DetectEntitiesV2 operation. The "output" return
505// value will be populated with the request's response once the request completes
506// successfully.
507//
508// Use "Send" method on the returned Request to send the API call to the service.
509// the "output" return value is not valid until after Send returns without error.
510//
511// See DetectEntitiesV2 for more information on using the DetectEntitiesV2
512// API call, and error handling.
513//
514// This method is useful when you want to inject custom logic or configuration
515// into the SDK's request lifecycle. Such as custom headers, or retry logic.
516//
517//
518//    // Example sending a request using the DetectEntitiesV2Request method.
519//    req, resp := client.DetectEntitiesV2Request(params)
520//
521//    err := req.Send()
522//    if err == nil { // resp is now filled
523//        fmt.Println(resp)
524//    }
525//
526// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DetectEntitiesV2
527func (c *ComprehendMedical) DetectEntitiesV2Request(input *DetectEntitiesV2Input) (req *request.Request, output *DetectEntitiesV2Output) {
528	op := &request.Operation{
529		Name:       opDetectEntitiesV2,
530		HTTPMethod: "POST",
531		HTTPPath:   "/",
532	}
533
534	if input == nil {
535		input = &DetectEntitiesV2Input{}
536	}
537
538	output = &DetectEntitiesV2Output{}
539	req = c.newRequest(op, input, output)
540	return
541}
542
543// DetectEntitiesV2 API operation for AWS Comprehend Medical.
544//
545// Inspects the clinical text for a variety of medical entities and returns
546// specific information about them such as entity category, location, and confidence
547// score on that information. Amazon Comprehend Medical only detects medical
548// entities in English language texts.
549//
550// The DetectEntitiesV2 operation replaces the DetectEntities operation. This
551// new action uses a different model for determining the entities in your medical
552// text and changes the way that some entities are returned in the output. You
553// should use the DetectEntitiesV2 operation in all new applications.
554//
555// The DetectEntitiesV2 operation returns the Acuity and Direction entities
556// as attributes instead of types.
557//
558// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
559// with awserr.Error's Code and Message methods to get detailed information about
560// the error.
561//
562// See the AWS API reference guide for AWS Comprehend Medical's
563// API operation DetectEntitiesV2 for usage and error information.
564//
565// Returned Error Types:
566//   * InternalServerException
567//   An internal server error occurred. Retry your request.
568//
569//   * ServiceUnavailableException
570//   The Amazon Comprehend Medical service is temporarily unavailable. Please
571//   wait and then retry your request.
572//
573//   * TooManyRequestsException
574//   You have made too many requests within a short period of time. Wait for a
575//   short time and then try your request again. Contact customer support for
576//   more information about a service limit increase.
577//
578//   * InvalidRequestException
579//   The request that you made is invalid. Check your request to determine why
580//   it's invalid and then retry the request.
581//
582//   * InvalidEncodingException
583//   The input text was not in valid UTF-8 character encoding. Check your text
584//   then retry your request.
585//
586//   * TextSizeLimitExceededException
587//   The size of the text you submitted exceeds the size limit. Reduce the size
588//   of the text or use a smaller document and then retry your request.
589//
590// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DetectEntitiesV2
591func (c *ComprehendMedical) DetectEntitiesV2(input *DetectEntitiesV2Input) (*DetectEntitiesV2Output, error) {
592	req, out := c.DetectEntitiesV2Request(input)
593	return out, req.Send()
594}
595
596// DetectEntitiesV2WithContext is the same as DetectEntitiesV2 with the addition of
597// the ability to pass a context and additional request options.
598//
599// See DetectEntitiesV2 for details on how to use this API operation.
600//
601// The context must be non-nil and will be used for request cancellation. If
602// the context is nil a panic will occur. In the future the SDK may create
603// sub-contexts for http.Requests. See https://golang.org/pkg/context/
604// for more information on using Contexts.
605func (c *ComprehendMedical) DetectEntitiesV2WithContext(ctx aws.Context, input *DetectEntitiesV2Input, opts ...request.Option) (*DetectEntitiesV2Output, error) {
606	req, out := c.DetectEntitiesV2Request(input)
607	req.SetContext(ctx)
608	req.ApplyOptions(opts...)
609	return out, req.Send()
610}
611
612const opDetectPHI = "DetectPHI"
613
614// DetectPHIRequest generates a "aws/request.Request" representing the
615// client's request for the DetectPHI operation. The "output" return
616// value will be populated with the request's response once the request completes
617// successfully.
618//
619// Use "Send" method on the returned Request to send the API call to the service.
620// the "output" return value is not valid until after Send returns without error.
621//
622// See DetectPHI for more information on using the DetectPHI
623// API call, and error handling.
624//
625// This method is useful when you want to inject custom logic or configuration
626// into the SDK's request lifecycle. Such as custom headers, or retry logic.
627//
628//
629//    // Example sending a request using the DetectPHIRequest method.
630//    req, resp := client.DetectPHIRequest(params)
631//
632//    err := req.Send()
633//    if err == nil { // resp is now filled
634//        fmt.Println(resp)
635//    }
636//
637// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DetectPHI
638func (c *ComprehendMedical) DetectPHIRequest(input *DetectPHIInput) (req *request.Request, output *DetectPHIOutput) {
639	op := &request.Operation{
640		Name:       opDetectPHI,
641		HTTPMethod: "POST",
642		HTTPPath:   "/",
643	}
644
645	if input == nil {
646		input = &DetectPHIInput{}
647	}
648
649	output = &DetectPHIOutput{}
650	req = c.newRequest(op, input, output)
651	return
652}
653
654// DetectPHI API operation for AWS Comprehend Medical.
655//
656// Inspects the clinical text for protected health information (PHI) entities
657// and returns the entity category, location, and confidence score for each
658// entity. Amazon Comprehend Medical only detects entities in English language
659// texts.
660//
661// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
662// with awserr.Error's Code and Message methods to get detailed information about
663// the error.
664//
665// See the AWS API reference guide for AWS Comprehend Medical's
666// API operation DetectPHI for usage and error information.
667//
668// Returned Error Types:
669//   * InternalServerException
670//   An internal server error occurred. Retry your request.
671//
672//   * ServiceUnavailableException
673//   The Amazon Comprehend Medical service is temporarily unavailable. Please
674//   wait and then retry your request.
675//
676//   * TooManyRequestsException
677//   You have made too many requests within a short period of time. Wait for a
678//   short time and then try your request again. Contact customer support for
679//   more information about a service limit increase.
680//
681//   * InvalidRequestException
682//   The request that you made is invalid. Check your request to determine why
683//   it's invalid and then retry the request.
684//
685//   * InvalidEncodingException
686//   The input text was not in valid UTF-8 character encoding. Check your text
687//   then retry your request.
688//
689//   * TextSizeLimitExceededException
690//   The size of the text you submitted exceeds the size limit. Reduce the size
691//   of the text or use a smaller document and then retry your request.
692//
693// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DetectPHI
694func (c *ComprehendMedical) DetectPHI(input *DetectPHIInput) (*DetectPHIOutput, error) {
695	req, out := c.DetectPHIRequest(input)
696	return out, req.Send()
697}
698
699// DetectPHIWithContext is the same as DetectPHI with the addition of
700// the ability to pass a context and additional request options.
701//
702// See DetectPHI for details on how to use this API operation.
703//
704// The context must be non-nil and will be used for request cancellation. If
705// the context is nil a panic will occur. In the future the SDK may create
706// sub-contexts for http.Requests. See https://golang.org/pkg/context/
707// for more information on using Contexts.
708func (c *ComprehendMedical) DetectPHIWithContext(ctx aws.Context, input *DetectPHIInput, opts ...request.Option) (*DetectPHIOutput, error) {
709	req, out := c.DetectPHIRequest(input)
710	req.SetContext(ctx)
711	req.ApplyOptions(opts...)
712	return out, req.Send()
713}
714
715const opInferICD10CM = "InferICD10CM"
716
717// InferICD10CMRequest generates a "aws/request.Request" representing the
718// client's request for the InferICD10CM operation. The "output" return
719// value will be populated with the request's response once the request completes
720// successfully.
721//
722// Use "Send" method on the returned Request to send the API call to the service.
723// the "output" return value is not valid until after Send returns without error.
724//
725// See InferICD10CM for more information on using the InferICD10CM
726// API call, and error handling.
727//
728// This method is useful when you want to inject custom logic or configuration
729// into the SDK's request lifecycle. Such as custom headers, or retry logic.
730//
731//
732//    // Example sending a request using the InferICD10CMRequest method.
733//    req, resp := client.InferICD10CMRequest(params)
734//
735//    err := req.Send()
736//    if err == nil { // resp is now filled
737//        fmt.Println(resp)
738//    }
739//
740// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/InferICD10CM
741func (c *ComprehendMedical) InferICD10CMRequest(input *InferICD10CMInput) (req *request.Request, output *InferICD10CMOutput) {
742	op := &request.Operation{
743		Name:       opInferICD10CM,
744		HTTPMethod: "POST",
745		HTTPPath:   "/",
746	}
747
748	if input == nil {
749		input = &InferICD10CMInput{}
750	}
751
752	output = &InferICD10CMOutput{}
753	req = c.newRequest(op, input, output)
754	return
755}
756
757// InferICD10CM API operation for AWS Comprehend Medical.
758//
759// InferICD10CM detects medical conditions as entities listed in a patient record
760// and links those entities to normalized concept identifiers in the ICD-10-CM
761// knowledge base from the Centers for Disease Control. Amazon Comprehend Medical
762// only detects medical entities in English language texts.
763//
764// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
765// with awserr.Error's Code and Message methods to get detailed information about
766// the error.
767//
768// See the AWS API reference guide for AWS Comprehend Medical's
769// API operation InferICD10CM for usage and error information.
770//
771// Returned Error Types:
772//   * InternalServerException
773//   An internal server error occurred. Retry your request.
774//
775//   * ServiceUnavailableException
776//   The Amazon Comprehend Medical service is temporarily unavailable. Please
777//   wait and then retry your request.
778//
779//   * TooManyRequestsException
780//   You have made too many requests within a short period of time. Wait for a
781//   short time and then try your request again. Contact customer support for
782//   more information about a service limit increase.
783//
784//   * InvalidRequestException
785//   The request that you made is invalid. Check your request to determine why
786//   it's invalid and then retry the request.
787//
788//   * InvalidEncodingException
789//   The input text was not in valid UTF-8 character encoding. Check your text
790//   then retry your request.
791//
792//   * TextSizeLimitExceededException
793//   The size of the text you submitted exceeds the size limit. Reduce the size
794//   of the text or use a smaller document and then retry your request.
795//
796// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/InferICD10CM
797func (c *ComprehendMedical) InferICD10CM(input *InferICD10CMInput) (*InferICD10CMOutput, error) {
798	req, out := c.InferICD10CMRequest(input)
799	return out, req.Send()
800}
801
802// InferICD10CMWithContext is the same as InferICD10CM with the addition of
803// the ability to pass a context and additional request options.
804//
805// See InferICD10CM for details on how to use this API operation.
806//
807// The context must be non-nil and will be used for request cancellation. If
808// the context is nil a panic will occur. In the future the SDK may create
809// sub-contexts for http.Requests. See https://golang.org/pkg/context/
810// for more information on using Contexts.
811func (c *ComprehendMedical) InferICD10CMWithContext(ctx aws.Context, input *InferICD10CMInput, opts ...request.Option) (*InferICD10CMOutput, error) {
812	req, out := c.InferICD10CMRequest(input)
813	req.SetContext(ctx)
814	req.ApplyOptions(opts...)
815	return out, req.Send()
816}
817
818const opInferRxNorm = "InferRxNorm"
819
820// InferRxNormRequest generates a "aws/request.Request" representing the
821// client's request for the InferRxNorm operation. The "output" return
822// value will be populated with the request's response once the request completes
823// successfully.
824//
825// Use "Send" method on the returned Request to send the API call to the service.
826// the "output" return value is not valid until after Send returns without error.
827//
828// See InferRxNorm for more information on using the InferRxNorm
829// API call, and error handling.
830//
831// This method is useful when you want to inject custom logic or configuration
832// into the SDK's request lifecycle. Such as custom headers, or retry logic.
833//
834//
835//    // Example sending a request using the InferRxNormRequest method.
836//    req, resp := client.InferRxNormRequest(params)
837//
838//    err := req.Send()
839//    if err == nil { // resp is now filled
840//        fmt.Println(resp)
841//    }
842//
843// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/InferRxNorm
844func (c *ComprehendMedical) InferRxNormRequest(input *InferRxNormInput) (req *request.Request, output *InferRxNormOutput) {
845	op := &request.Operation{
846		Name:       opInferRxNorm,
847		HTTPMethod: "POST",
848		HTTPPath:   "/",
849	}
850
851	if input == nil {
852		input = &InferRxNormInput{}
853	}
854
855	output = &InferRxNormOutput{}
856	req = c.newRequest(op, input, output)
857	return
858}
859
860// InferRxNorm API operation for AWS Comprehend Medical.
861//
862// InferRxNorm detects medications as entities listed in a patient record and
863// links to the normalized concept identifiers in the RxNorm database from the
864// National Library of Medicine. Amazon Comprehend Medical only detects medical
865// entities in English language texts.
866//
867// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
868// with awserr.Error's Code and Message methods to get detailed information about
869// the error.
870//
871// See the AWS API reference guide for AWS Comprehend Medical's
872// API operation InferRxNorm for usage and error information.
873//
874// Returned Error Types:
875//   * InternalServerException
876//   An internal server error occurred. Retry your request.
877//
878//   * ServiceUnavailableException
879//   The Amazon Comprehend Medical service is temporarily unavailable. Please
880//   wait and then retry your request.
881//
882//   * TooManyRequestsException
883//   You have made too many requests within a short period of time. Wait for a
884//   short time and then try your request again. Contact customer support for
885//   more information about a service limit increase.
886//
887//   * InvalidRequestException
888//   The request that you made is invalid. Check your request to determine why
889//   it's invalid and then retry the request.
890//
891//   * InvalidEncodingException
892//   The input text was not in valid UTF-8 character encoding. Check your text
893//   then retry your request.
894//
895//   * TextSizeLimitExceededException
896//   The size of the text you submitted exceeds the size limit. Reduce the size
897//   of the text or use a smaller document and then retry your request.
898//
899// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/InferRxNorm
900func (c *ComprehendMedical) InferRxNorm(input *InferRxNormInput) (*InferRxNormOutput, error) {
901	req, out := c.InferRxNormRequest(input)
902	return out, req.Send()
903}
904
905// InferRxNormWithContext is the same as InferRxNorm with the addition of
906// the ability to pass a context and additional request options.
907//
908// See InferRxNorm for details on how to use this API operation.
909//
910// The context must be non-nil and will be used for request cancellation. If
911// the context is nil a panic will occur. In the future the SDK may create
912// sub-contexts for http.Requests. See https://golang.org/pkg/context/
913// for more information on using Contexts.
914func (c *ComprehendMedical) InferRxNormWithContext(ctx aws.Context, input *InferRxNormInput, opts ...request.Option) (*InferRxNormOutput, error) {
915	req, out := c.InferRxNormRequest(input)
916	req.SetContext(ctx)
917	req.ApplyOptions(opts...)
918	return out, req.Send()
919}
920
921const opListEntitiesDetectionV2Jobs = "ListEntitiesDetectionV2Jobs"
922
923// ListEntitiesDetectionV2JobsRequest generates a "aws/request.Request" representing the
924// client's request for the ListEntitiesDetectionV2Jobs operation. The "output" return
925// value will be populated with the request's response once the request completes
926// successfully.
927//
928// Use "Send" method on the returned Request to send the API call to the service.
929// the "output" return value is not valid until after Send returns without error.
930//
931// See ListEntitiesDetectionV2Jobs for more information on using the ListEntitiesDetectionV2Jobs
932// API call, and error handling.
933//
934// This method is useful when you want to inject custom logic or configuration
935// into the SDK's request lifecycle. Such as custom headers, or retry logic.
936//
937//
938//    // Example sending a request using the ListEntitiesDetectionV2JobsRequest method.
939//    req, resp := client.ListEntitiesDetectionV2JobsRequest(params)
940//
941//    err := req.Send()
942//    if err == nil { // resp is now filled
943//        fmt.Println(resp)
944//    }
945//
946// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListEntitiesDetectionV2Jobs
947func (c *ComprehendMedical) ListEntitiesDetectionV2JobsRequest(input *ListEntitiesDetectionV2JobsInput) (req *request.Request, output *ListEntitiesDetectionV2JobsOutput) {
948	op := &request.Operation{
949		Name:       opListEntitiesDetectionV2Jobs,
950		HTTPMethod: "POST",
951		HTTPPath:   "/",
952	}
953
954	if input == nil {
955		input = &ListEntitiesDetectionV2JobsInput{}
956	}
957
958	output = &ListEntitiesDetectionV2JobsOutput{}
959	req = c.newRequest(op, input, output)
960	return
961}
962
963// ListEntitiesDetectionV2Jobs API operation for AWS Comprehend Medical.
964//
965// Gets a list of medical entity detection jobs that you have submitted.
966//
967// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
968// with awserr.Error's Code and Message methods to get detailed information about
969// the error.
970//
971// See the AWS API reference guide for AWS Comprehend Medical's
972// API operation ListEntitiesDetectionV2Jobs for usage and error information.
973//
974// Returned Error Types:
975//   * InvalidRequestException
976//   The request that you made is invalid. Check your request to determine why
977//   it's invalid and then retry the request.
978//
979//   * ValidationException
980//   The filter that you specified for the operation is invalid. Check the filter
981//   values that you entered and try your request again.
982//
983//   * TooManyRequestsException
984//   You have made too many requests within a short period of time. Wait for a
985//   short time and then try your request again. Contact customer support for
986//   more information about a service limit increase.
987//
988//   * InternalServerException
989//   An internal server error occurred. Retry your request.
990//
991// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListEntitiesDetectionV2Jobs
992func (c *ComprehendMedical) ListEntitiesDetectionV2Jobs(input *ListEntitiesDetectionV2JobsInput) (*ListEntitiesDetectionV2JobsOutput, error) {
993	req, out := c.ListEntitiesDetectionV2JobsRequest(input)
994	return out, req.Send()
995}
996
997// ListEntitiesDetectionV2JobsWithContext is the same as ListEntitiesDetectionV2Jobs with the addition of
998// the ability to pass a context and additional request options.
999//
1000// See ListEntitiesDetectionV2Jobs for details on how to use this API operation.
1001//
1002// The context must be non-nil and will be used for request cancellation. If
1003// the context is nil a panic will occur. In the future the SDK may create
1004// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1005// for more information on using Contexts.
1006func (c *ComprehendMedical) ListEntitiesDetectionV2JobsWithContext(ctx aws.Context, input *ListEntitiesDetectionV2JobsInput, opts ...request.Option) (*ListEntitiesDetectionV2JobsOutput, error) {
1007	req, out := c.ListEntitiesDetectionV2JobsRequest(input)
1008	req.SetContext(ctx)
1009	req.ApplyOptions(opts...)
1010	return out, req.Send()
1011}
1012
1013const opListICD10CMInferenceJobs = "ListICD10CMInferenceJobs"
1014
1015// ListICD10CMInferenceJobsRequest generates a "aws/request.Request" representing the
1016// client's request for the ListICD10CMInferenceJobs operation. The "output" return
1017// value will be populated with the request's response once the request completes
1018// successfully.
1019//
1020// Use "Send" method on the returned Request to send the API call to the service.
1021// the "output" return value is not valid until after Send returns without error.
1022//
1023// See ListICD10CMInferenceJobs for more information on using the ListICD10CMInferenceJobs
1024// API call, and error handling.
1025//
1026// This method is useful when you want to inject custom logic or configuration
1027// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1028//
1029//
1030//    // Example sending a request using the ListICD10CMInferenceJobsRequest method.
1031//    req, resp := client.ListICD10CMInferenceJobsRequest(params)
1032//
1033//    err := req.Send()
1034//    if err == nil { // resp is now filled
1035//        fmt.Println(resp)
1036//    }
1037//
1038// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListICD10CMInferenceJobs
1039func (c *ComprehendMedical) ListICD10CMInferenceJobsRequest(input *ListICD10CMInferenceJobsInput) (req *request.Request, output *ListICD10CMInferenceJobsOutput) {
1040	op := &request.Operation{
1041		Name:       opListICD10CMInferenceJobs,
1042		HTTPMethod: "POST",
1043		HTTPPath:   "/",
1044	}
1045
1046	if input == nil {
1047		input = &ListICD10CMInferenceJobsInput{}
1048	}
1049
1050	output = &ListICD10CMInferenceJobsOutput{}
1051	req = c.newRequest(op, input, output)
1052	return
1053}
1054
1055// ListICD10CMInferenceJobs API operation for AWS Comprehend Medical.
1056//
1057// Gets a list of InferICD10CM jobs that you have submitted.
1058//
1059// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1060// with awserr.Error's Code and Message methods to get detailed information about
1061// the error.
1062//
1063// See the AWS API reference guide for AWS Comprehend Medical's
1064// API operation ListICD10CMInferenceJobs for usage and error information.
1065//
1066// Returned Error Types:
1067//   * InvalidRequestException
1068//   The request that you made is invalid. Check your request to determine why
1069//   it's invalid and then retry the request.
1070//
1071//   * ValidationException
1072//   The filter that you specified for the operation is invalid. Check the filter
1073//   values that you entered and try your request again.
1074//
1075//   * TooManyRequestsException
1076//   You have made too many requests within a short period of time. Wait for a
1077//   short time and then try your request again. Contact customer support for
1078//   more information about a service limit increase.
1079//
1080//   * InternalServerException
1081//   An internal server error occurred. Retry your request.
1082//
1083// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListICD10CMInferenceJobs
1084func (c *ComprehendMedical) ListICD10CMInferenceJobs(input *ListICD10CMInferenceJobsInput) (*ListICD10CMInferenceJobsOutput, error) {
1085	req, out := c.ListICD10CMInferenceJobsRequest(input)
1086	return out, req.Send()
1087}
1088
1089// ListICD10CMInferenceJobsWithContext is the same as ListICD10CMInferenceJobs with the addition of
1090// the ability to pass a context and additional request options.
1091//
1092// See ListICD10CMInferenceJobs for details on how to use this API operation.
1093//
1094// The context must be non-nil and will be used for request cancellation. If
1095// the context is nil a panic will occur. In the future the SDK may create
1096// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1097// for more information on using Contexts.
1098func (c *ComprehendMedical) ListICD10CMInferenceJobsWithContext(ctx aws.Context, input *ListICD10CMInferenceJobsInput, opts ...request.Option) (*ListICD10CMInferenceJobsOutput, error) {
1099	req, out := c.ListICD10CMInferenceJobsRequest(input)
1100	req.SetContext(ctx)
1101	req.ApplyOptions(opts...)
1102	return out, req.Send()
1103}
1104
1105const opListPHIDetectionJobs = "ListPHIDetectionJobs"
1106
1107// ListPHIDetectionJobsRequest generates a "aws/request.Request" representing the
1108// client's request for the ListPHIDetectionJobs operation. The "output" return
1109// value will be populated with the request's response once the request completes
1110// successfully.
1111//
1112// Use "Send" method on the returned Request to send the API call to the service.
1113// the "output" return value is not valid until after Send returns without error.
1114//
1115// See ListPHIDetectionJobs for more information on using the ListPHIDetectionJobs
1116// API call, and error handling.
1117//
1118// This method is useful when you want to inject custom logic or configuration
1119// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1120//
1121//
1122//    // Example sending a request using the ListPHIDetectionJobsRequest method.
1123//    req, resp := client.ListPHIDetectionJobsRequest(params)
1124//
1125//    err := req.Send()
1126//    if err == nil { // resp is now filled
1127//        fmt.Println(resp)
1128//    }
1129//
1130// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListPHIDetectionJobs
1131func (c *ComprehendMedical) ListPHIDetectionJobsRequest(input *ListPHIDetectionJobsInput) (req *request.Request, output *ListPHIDetectionJobsOutput) {
1132	op := &request.Operation{
1133		Name:       opListPHIDetectionJobs,
1134		HTTPMethod: "POST",
1135		HTTPPath:   "/",
1136	}
1137
1138	if input == nil {
1139		input = &ListPHIDetectionJobsInput{}
1140	}
1141
1142	output = &ListPHIDetectionJobsOutput{}
1143	req = c.newRequest(op, input, output)
1144	return
1145}
1146
1147// ListPHIDetectionJobs API operation for AWS Comprehend Medical.
1148//
1149// Gets a list of protected health information (PHI) detection jobs that you
1150// have submitted.
1151//
1152// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1153// with awserr.Error's Code and Message methods to get detailed information about
1154// the error.
1155//
1156// See the AWS API reference guide for AWS Comprehend Medical's
1157// API operation ListPHIDetectionJobs for usage and error information.
1158//
1159// Returned Error Types:
1160//   * InvalidRequestException
1161//   The request that you made is invalid. Check your request to determine why
1162//   it's invalid and then retry the request.
1163//
1164//   * ValidationException
1165//   The filter that you specified for the operation is invalid. Check the filter
1166//   values that you entered and try your request again.
1167//
1168//   * TooManyRequestsException
1169//   You have made too many requests within a short period of time. Wait for a
1170//   short time and then try your request again. Contact customer support for
1171//   more information about a service limit increase.
1172//
1173//   * InternalServerException
1174//   An internal server error occurred. Retry your request.
1175//
1176// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListPHIDetectionJobs
1177func (c *ComprehendMedical) ListPHIDetectionJobs(input *ListPHIDetectionJobsInput) (*ListPHIDetectionJobsOutput, error) {
1178	req, out := c.ListPHIDetectionJobsRequest(input)
1179	return out, req.Send()
1180}
1181
1182// ListPHIDetectionJobsWithContext is the same as ListPHIDetectionJobs with the addition of
1183// the ability to pass a context and additional request options.
1184//
1185// See ListPHIDetectionJobs for details on how to use this API operation.
1186//
1187// The context must be non-nil and will be used for request cancellation. If
1188// the context is nil a panic will occur. In the future the SDK may create
1189// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1190// for more information on using Contexts.
1191func (c *ComprehendMedical) ListPHIDetectionJobsWithContext(ctx aws.Context, input *ListPHIDetectionJobsInput, opts ...request.Option) (*ListPHIDetectionJobsOutput, error) {
1192	req, out := c.ListPHIDetectionJobsRequest(input)
1193	req.SetContext(ctx)
1194	req.ApplyOptions(opts...)
1195	return out, req.Send()
1196}
1197
1198const opListRxNormInferenceJobs = "ListRxNormInferenceJobs"
1199
1200// ListRxNormInferenceJobsRequest generates a "aws/request.Request" representing the
1201// client's request for the ListRxNormInferenceJobs operation. The "output" return
1202// value will be populated with the request's response once the request completes
1203// successfully.
1204//
1205// Use "Send" method on the returned Request to send the API call to the service.
1206// the "output" return value is not valid until after Send returns without error.
1207//
1208// See ListRxNormInferenceJobs for more information on using the ListRxNormInferenceJobs
1209// API call, and error handling.
1210//
1211// This method is useful when you want to inject custom logic or configuration
1212// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1213//
1214//
1215//    // Example sending a request using the ListRxNormInferenceJobsRequest method.
1216//    req, resp := client.ListRxNormInferenceJobsRequest(params)
1217//
1218//    err := req.Send()
1219//    if err == nil { // resp is now filled
1220//        fmt.Println(resp)
1221//    }
1222//
1223// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListRxNormInferenceJobs
1224func (c *ComprehendMedical) ListRxNormInferenceJobsRequest(input *ListRxNormInferenceJobsInput) (req *request.Request, output *ListRxNormInferenceJobsOutput) {
1225	op := &request.Operation{
1226		Name:       opListRxNormInferenceJobs,
1227		HTTPMethod: "POST",
1228		HTTPPath:   "/",
1229	}
1230
1231	if input == nil {
1232		input = &ListRxNormInferenceJobsInput{}
1233	}
1234
1235	output = &ListRxNormInferenceJobsOutput{}
1236	req = c.newRequest(op, input, output)
1237	return
1238}
1239
1240// ListRxNormInferenceJobs API operation for AWS Comprehend Medical.
1241//
1242// Gets a list of InferRxNorm jobs that you have submitted.
1243//
1244// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1245// with awserr.Error's Code and Message methods to get detailed information about
1246// the error.
1247//
1248// See the AWS API reference guide for AWS Comprehend Medical's
1249// API operation ListRxNormInferenceJobs for usage and error information.
1250//
1251// Returned Error Types:
1252//   * InvalidRequestException
1253//   The request that you made is invalid. Check your request to determine why
1254//   it's invalid and then retry the request.
1255//
1256//   * ValidationException
1257//   The filter that you specified for the operation is invalid. Check the filter
1258//   values that you entered and try your request again.
1259//
1260//   * TooManyRequestsException
1261//   You have made too many requests within a short period of time. Wait for a
1262//   short time and then try your request again. Contact customer support for
1263//   more information about a service limit increase.
1264//
1265//   * InternalServerException
1266//   An internal server error occurred. Retry your request.
1267//
1268// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListRxNormInferenceJobs
1269func (c *ComprehendMedical) ListRxNormInferenceJobs(input *ListRxNormInferenceJobsInput) (*ListRxNormInferenceJobsOutput, error) {
1270	req, out := c.ListRxNormInferenceJobsRequest(input)
1271	return out, req.Send()
1272}
1273
1274// ListRxNormInferenceJobsWithContext is the same as ListRxNormInferenceJobs with the addition of
1275// the ability to pass a context and additional request options.
1276//
1277// See ListRxNormInferenceJobs for details on how to use this API operation.
1278//
1279// The context must be non-nil and will be used for request cancellation. If
1280// the context is nil a panic will occur. In the future the SDK may create
1281// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1282// for more information on using Contexts.
1283func (c *ComprehendMedical) ListRxNormInferenceJobsWithContext(ctx aws.Context, input *ListRxNormInferenceJobsInput, opts ...request.Option) (*ListRxNormInferenceJobsOutput, error) {
1284	req, out := c.ListRxNormInferenceJobsRequest(input)
1285	req.SetContext(ctx)
1286	req.ApplyOptions(opts...)
1287	return out, req.Send()
1288}
1289
1290const opStartEntitiesDetectionV2Job = "StartEntitiesDetectionV2Job"
1291
1292// StartEntitiesDetectionV2JobRequest generates a "aws/request.Request" representing the
1293// client's request for the StartEntitiesDetectionV2Job operation. The "output" return
1294// value will be populated with the request's response once the request completes
1295// successfully.
1296//
1297// Use "Send" method on the returned Request to send the API call to the service.
1298// the "output" return value is not valid until after Send returns without error.
1299//
1300// See StartEntitiesDetectionV2Job for more information on using the StartEntitiesDetectionV2Job
1301// API call, and error handling.
1302//
1303// This method is useful when you want to inject custom logic or configuration
1304// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1305//
1306//
1307//    // Example sending a request using the StartEntitiesDetectionV2JobRequest method.
1308//    req, resp := client.StartEntitiesDetectionV2JobRequest(params)
1309//
1310//    err := req.Send()
1311//    if err == nil { // resp is now filled
1312//        fmt.Println(resp)
1313//    }
1314//
1315// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartEntitiesDetectionV2Job
1316func (c *ComprehendMedical) StartEntitiesDetectionV2JobRequest(input *StartEntitiesDetectionV2JobInput) (req *request.Request, output *StartEntitiesDetectionV2JobOutput) {
1317	op := &request.Operation{
1318		Name:       opStartEntitiesDetectionV2Job,
1319		HTTPMethod: "POST",
1320		HTTPPath:   "/",
1321	}
1322
1323	if input == nil {
1324		input = &StartEntitiesDetectionV2JobInput{}
1325	}
1326
1327	output = &StartEntitiesDetectionV2JobOutput{}
1328	req = c.newRequest(op, input, output)
1329	return
1330}
1331
1332// StartEntitiesDetectionV2Job API operation for AWS Comprehend Medical.
1333//
1334// Starts an asynchronous medical entity detection job for a collection of documents.
1335// Use the DescribeEntitiesDetectionV2Job operation to track the status of a
1336// job.
1337//
1338// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1339// with awserr.Error's Code and Message methods to get detailed information about
1340// the error.
1341//
1342// See the AWS API reference guide for AWS Comprehend Medical's
1343// API operation StartEntitiesDetectionV2Job for usage and error information.
1344//
1345// Returned Error Types:
1346//   * InvalidRequestException
1347//   The request that you made is invalid. Check your request to determine why
1348//   it's invalid and then retry the request.
1349//
1350//   * TooManyRequestsException
1351//   You have made too many requests within a short period of time. Wait for a
1352//   short time and then try your request again. Contact customer support for
1353//   more information about a service limit increase.
1354//
1355//   * ResourceNotFoundException
1356//   The resource identified by the specified Amazon Resource Name (ARN) was not
1357//   found. Check the ARN and try your request again.
1358//
1359//   * InternalServerException
1360//   An internal server error occurred. Retry your request.
1361//
1362// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartEntitiesDetectionV2Job
1363func (c *ComprehendMedical) StartEntitiesDetectionV2Job(input *StartEntitiesDetectionV2JobInput) (*StartEntitiesDetectionV2JobOutput, error) {
1364	req, out := c.StartEntitiesDetectionV2JobRequest(input)
1365	return out, req.Send()
1366}
1367
1368// StartEntitiesDetectionV2JobWithContext is the same as StartEntitiesDetectionV2Job with the addition of
1369// the ability to pass a context and additional request options.
1370//
1371// See StartEntitiesDetectionV2Job for details on how to use this API operation.
1372//
1373// The context must be non-nil and will be used for request cancellation. If
1374// the context is nil a panic will occur. In the future the SDK may create
1375// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1376// for more information on using Contexts.
1377func (c *ComprehendMedical) StartEntitiesDetectionV2JobWithContext(ctx aws.Context, input *StartEntitiesDetectionV2JobInput, opts ...request.Option) (*StartEntitiesDetectionV2JobOutput, error) {
1378	req, out := c.StartEntitiesDetectionV2JobRequest(input)
1379	req.SetContext(ctx)
1380	req.ApplyOptions(opts...)
1381	return out, req.Send()
1382}
1383
1384const opStartICD10CMInferenceJob = "StartICD10CMInferenceJob"
1385
1386// StartICD10CMInferenceJobRequest generates a "aws/request.Request" representing the
1387// client's request for the StartICD10CMInferenceJob operation. The "output" return
1388// value will be populated with the request's response once the request completes
1389// successfully.
1390//
1391// Use "Send" method on the returned Request to send the API call to the service.
1392// the "output" return value is not valid until after Send returns without error.
1393//
1394// See StartICD10CMInferenceJob for more information on using the StartICD10CMInferenceJob
1395// API call, and error handling.
1396//
1397// This method is useful when you want to inject custom logic or configuration
1398// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1399//
1400//
1401//    // Example sending a request using the StartICD10CMInferenceJobRequest method.
1402//    req, resp := client.StartICD10CMInferenceJobRequest(params)
1403//
1404//    err := req.Send()
1405//    if err == nil { // resp is now filled
1406//        fmt.Println(resp)
1407//    }
1408//
1409// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartICD10CMInferenceJob
1410func (c *ComprehendMedical) StartICD10CMInferenceJobRequest(input *StartICD10CMInferenceJobInput) (req *request.Request, output *StartICD10CMInferenceJobOutput) {
1411	op := &request.Operation{
1412		Name:       opStartICD10CMInferenceJob,
1413		HTTPMethod: "POST",
1414		HTTPPath:   "/",
1415	}
1416
1417	if input == nil {
1418		input = &StartICD10CMInferenceJobInput{}
1419	}
1420
1421	output = &StartICD10CMInferenceJobOutput{}
1422	req = c.newRequest(op, input, output)
1423	return
1424}
1425
1426// StartICD10CMInferenceJob API operation for AWS Comprehend Medical.
1427//
1428// Starts an asynchronous job to detect medical conditions and link them to
1429// the ICD-10-CM ontology. Use the DescribeICD10CMInferenceJob operation to
1430// track the status of a job.
1431//
1432// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1433// with awserr.Error's Code and Message methods to get detailed information about
1434// the error.
1435//
1436// See the AWS API reference guide for AWS Comprehend Medical's
1437// API operation StartICD10CMInferenceJob for usage and error information.
1438//
1439// Returned Error Types:
1440//   * InvalidRequestException
1441//   The request that you made is invalid. Check your request to determine why
1442//   it's invalid and then retry the request.
1443//
1444//   * TooManyRequestsException
1445//   You have made too many requests within a short period of time. Wait for a
1446//   short time and then try your request again. Contact customer support for
1447//   more information about a service limit increase.
1448//
1449//   * ResourceNotFoundException
1450//   The resource identified by the specified Amazon Resource Name (ARN) was not
1451//   found. Check the ARN and try your request again.
1452//
1453//   * InternalServerException
1454//   An internal server error occurred. Retry your request.
1455//
1456// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartICD10CMInferenceJob
1457func (c *ComprehendMedical) StartICD10CMInferenceJob(input *StartICD10CMInferenceJobInput) (*StartICD10CMInferenceJobOutput, error) {
1458	req, out := c.StartICD10CMInferenceJobRequest(input)
1459	return out, req.Send()
1460}
1461
1462// StartICD10CMInferenceJobWithContext is the same as StartICD10CMInferenceJob with the addition of
1463// the ability to pass a context and additional request options.
1464//
1465// See StartICD10CMInferenceJob for details on how to use this API operation.
1466//
1467// The context must be non-nil and will be used for request cancellation. If
1468// the context is nil a panic will occur. In the future the SDK may create
1469// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1470// for more information on using Contexts.
1471func (c *ComprehendMedical) StartICD10CMInferenceJobWithContext(ctx aws.Context, input *StartICD10CMInferenceJobInput, opts ...request.Option) (*StartICD10CMInferenceJobOutput, error) {
1472	req, out := c.StartICD10CMInferenceJobRequest(input)
1473	req.SetContext(ctx)
1474	req.ApplyOptions(opts...)
1475	return out, req.Send()
1476}
1477
1478const opStartPHIDetectionJob = "StartPHIDetectionJob"
1479
1480// StartPHIDetectionJobRequest generates a "aws/request.Request" representing the
1481// client's request for the StartPHIDetectionJob operation. The "output" return
1482// value will be populated with the request's response once the request completes
1483// successfully.
1484//
1485// Use "Send" method on the returned Request to send the API call to the service.
1486// the "output" return value is not valid until after Send returns without error.
1487//
1488// See StartPHIDetectionJob for more information on using the StartPHIDetectionJob
1489// API call, and error handling.
1490//
1491// This method is useful when you want to inject custom logic or configuration
1492// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1493//
1494//
1495//    // Example sending a request using the StartPHIDetectionJobRequest method.
1496//    req, resp := client.StartPHIDetectionJobRequest(params)
1497//
1498//    err := req.Send()
1499//    if err == nil { // resp is now filled
1500//        fmt.Println(resp)
1501//    }
1502//
1503// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartPHIDetectionJob
1504func (c *ComprehendMedical) StartPHIDetectionJobRequest(input *StartPHIDetectionJobInput) (req *request.Request, output *StartPHIDetectionJobOutput) {
1505	op := &request.Operation{
1506		Name:       opStartPHIDetectionJob,
1507		HTTPMethod: "POST",
1508		HTTPPath:   "/",
1509	}
1510
1511	if input == nil {
1512		input = &StartPHIDetectionJobInput{}
1513	}
1514
1515	output = &StartPHIDetectionJobOutput{}
1516	req = c.newRequest(op, input, output)
1517	return
1518}
1519
1520// StartPHIDetectionJob API operation for AWS Comprehend Medical.
1521//
1522// Starts an asynchronous job to detect protected health information (PHI).
1523// Use the DescribePHIDetectionJob operation to track the status of a job.
1524//
1525// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1526// with awserr.Error's Code and Message methods to get detailed information about
1527// the error.
1528//
1529// See the AWS API reference guide for AWS Comprehend Medical's
1530// API operation StartPHIDetectionJob for usage and error information.
1531//
1532// Returned Error Types:
1533//   * InvalidRequestException
1534//   The request that you made is invalid. Check your request to determine why
1535//   it's invalid and then retry the request.
1536//
1537//   * TooManyRequestsException
1538//   You have made too many requests within a short period of time. Wait for a
1539//   short time and then try your request again. Contact customer support for
1540//   more information about a service limit increase.
1541//
1542//   * ResourceNotFoundException
1543//   The resource identified by the specified Amazon Resource Name (ARN) was not
1544//   found. Check the ARN and try your request again.
1545//
1546//   * InternalServerException
1547//   An internal server error occurred. Retry your request.
1548//
1549// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartPHIDetectionJob
1550func (c *ComprehendMedical) StartPHIDetectionJob(input *StartPHIDetectionJobInput) (*StartPHIDetectionJobOutput, error) {
1551	req, out := c.StartPHIDetectionJobRequest(input)
1552	return out, req.Send()
1553}
1554
1555// StartPHIDetectionJobWithContext is the same as StartPHIDetectionJob with the addition of
1556// the ability to pass a context and additional request options.
1557//
1558// See StartPHIDetectionJob for details on how to use this API operation.
1559//
1560// The context must be non-nil and will be used for request cancellation. If
1561// the context is nil a panic will occur. In the future the SDK may create
1562// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1563// for more information on using Contexts.
1564func (c *ComprehendMedical) StartPHIDetectionJobWithContext(ctx aws.Context, input *StartPHIDetectionJobInput, opts ...request.Option) (*StartPHIDetectionJobOutput, error) {
1565	req, out := c.StartPHIDetectionJobRequest(input)
1566	req.SetContext(ctx)
1567	req.ApplyOptions(opts...)
1568	return out, req.Send()
1569}
1570
1571const opStartRxNormInferenceJob = "StartRxNormInferenceJob"
1572
1573// StartRxNormInferenceJobRequest generates a "aws/request.Request" representing the
1574// client's request for the StartRxNormInferenceJob operation. The "output" return
1575// value will be populated with the request's response once the request completes
1576// successfully.
1577//
1578// Use "Send" method on the returned Request to send the API call to the service.
1579// the "output" return value is not valid until after Send returns without error.
1580//
1581// See StartRxNormInferenceJob for more information on using the StartRxNormInferenceJob
1582// API call, and error handling.
1583//
1584// This method is useful when you want to inject custom logic or configuration
1585// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1586//
1587//
1588//    // Example sending a request using the StartRxNormInferenceJobRequest method.
1589//    req, resp := client.StartRxNormInferenceJobRequest(params)
1590//
1591//    err := req.Send()
1592//    if err == nil { // resp is now filled
1593//        fmt.Println(resp)
1594//    }
1595//
1596// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartRxNormInferenceJob
1597func (c *ComprehendMedical) StartRxNormInferenceJobRequest(input *StartRxNormInferenceJobInput) (req *request.Request, output *StartRxNormInferenceJobOutput) {
1598	op := &request.Operation{
1599		Name:       opStartRxNormInferenceJob,
1600		HTTPMethod: "POST",
1601		HTTPPath:   "/",
1602	}
1603
1604	if input == nil {
1605		input = &StartRxNormInferenceJobInput{}
1606	}
1607
1608	output = &StartRxNormInferenceJobOutput{}
1609	req = c.newRequest(op, input, output)
1610	return
1611}
1612
1613// StartRxNormInferenceJob API operation for AWS Comprehend Medical.
1614//
1615// Starts an asynchronous job to detect medication entities and link them to
1616// the RxNorm ontology. Use the DescribeRxNormInferenceJob operation to track
1617// the status of a job.
1618//
1619// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1620// with awserr.Error's Code and Message methods to get detailed information about
1621// the error.
1622//
1623// See the AWS API reference guide for AWS Comprehend Medical's
1624// API operation StartRxNormInferenceJob for usage and error information.
1625//
1626// Returned Error Types:
1627//   * InvalidRequestException
1628//   The request that you made is invalid. Check your request to determine why
1629//   it's invalid and then retry the request.
1630//
1631//   * TooManyRequestsException
1632//   You have made too many requests within a short period of time. Wait for a
1633//   short time and then try your request again. Contact customer support for
1634//   more information about a service limit increase.
1635//
1636//   * ResourceNotFoundException
1637//   The resource identified by the specified Amazon Resource Name (ARN) was not
1638//   found. Check the ARN and try your request again.
1639//
1640//   * InternalServerException
1641//   An internal server error occurred. Retry your request.
1642//
1643// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartRxNormInferenceJob
1644func (c *ComprehendMedical) StartRxNormInferenceJob(input *StartRxNormInferenceJobInput) (*StartRxNormInferenceJobOutput, error) {
1645	req, out := c.StartRxNormInferenceJobRequest(input)
1646	return out, req.Send()
1647}
1648
1649// StartRxNormInferenceJobWithContext is the same as StartRxNormInferenceJob with the addition of
1650// the ability to pass a context and additional request options.
1651//
1652// See StartRxNormInferenceJob for details on how to use this API operation.
1653//
1654// The context must be non-nil and will be used for request cancellation. If
1655// the context is nil a panic will occur. In the future the SDK may create
1656// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1657// for more information on using Contexts.
1658func (c *ComprehendMedical) StartRxNormInferenceJobWithContext(ctx aws.Context, input *StartRxNormInferenceJobInput, opts ...request.Option) (*StartRxNormInferenceJobOutput, error) {
1659	req, out := c.StartRxNormInferenceJobRequest(input)
1660	req.SetContext(ctx)
1661	req.ApplyOptions(opts...)
1662	return out, req.Send()
1663}
1664
1665const opStopEntitiesDetectionV2Job = "StopEntitiesDetectionV2Job"
1666
1667// StopEntitiesDetectionV2JobRequest generates a "aws/request.Request" representing the
1668// client's request for the StopEntitiesDetectionV2Job operation. The "output" return
1669// value will be populated with the request's response once the request completes
1670// successfully.
1671//
1672// Use "Send" method on the returned Request to send the API call to the service.
1673// the "output" return value is not valid until after Send returns without error.
1674//
1675// See StopEntitiesDetectionV2Job for more information on using the StopEntitiesDetectionV2Job
1676// API call, and error handling.
1677//
1678// This method is useful when you want to inject custom logic or configuration
1679// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1680//
1681//
1682//    // Example sending a request using the StopEntitiesDetectionV2JobRequest method.
1683//    req, resp := client.StopEntitiesDetectionV2JobRequest(params)
1684//
1685//    err := req.Send()
1686//    if err == nil { // resp is now filled
1687//        fmt.Println(resp)
1688//    }
1689//
1690// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopEntitiesDetectionV2Job
1691func (c *ComprehendMedical) StopEntitiesDetectionV2JobRequest(input *StopEntitiesDetectionV2JobInput) (req *request.Request, output *StopEntitiesDetectionV2JobOutput) {
1692	op := &request.Operation{
1693		Name:       opStopEntitiesDetectionV2Job,
1694		HTTPMethod: "POST",
1695		HTTPPath:   "/",
1696	}
1697
1698	if input == nil {
1699		input = &StopEntitiesDetectionV2JobInput{}
1700	}
1701
1702	output = &StopEntitiesDetectionV2JobOutput{}
1703	req = c.newRequest(op, input, output)
1704	return
1705}
1706
1707// StopEntitiesDetectionV2Job API operation for AWS Comprehend Medical.
1708//
1709// Stops a medical entities detection job in progress.
1710//
1711// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1712// with awserr.Error's Code and Message methods to get detailed information about
1713// the error.
1714//
1715// See the AWS API reference guide for AWS Comprehend Medical's
1716// API operation StopEntitiesDetectionV2Job for usage and error information.
1717//
1718// Returned Error Types:
1719//   * InvalidRequestException
1720//   The request that you made is invalid. Check your request to determine why
1721//   it's invalid and then retry the request.
1722//
1723//   * ResourceNotFoundException
1724//   The resource identified by the specified Amazon Resource Name (ARN) was not
1725//   found. Check the ARN and try your request again.
1726//
1727//   * InternalServerException
1728//   An internal server error occurred. Retry your request.
1729//
1730// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopEntitiesDetectionV2Job
1731func (c *ComprehendMedical) StopEntitiesDetectionV2Job(input *StopEntitiesDetectionV2JobInput) (*StopEntitiesDetectionV2JobOutput, error) {
1732	req, out := c.StopEntitiesDetectionV2JobRequest(input)
1733	return out, req.Send()
1734}
1735
1736// StopEntitiesDetectionV2JobWithContext is the same as StopEntitiesDetectionV2Job with the addition of
1737// the ability to pass a context and additional request options.
1738//
1739// See StopEntitiesDetectionV2Job for details on how to use this API operation.
1740//
1741// The context must be non-nil and will be used for request cancellation. If
1742// the context is nil a panic will occur. In the future the SDK may create
1743// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1744// for more information on using Contexts.
1745func (c *ComprehendMedical) StopEntitiesDetectionV2JobWithContext(ctx aws.Context, input *StopEntitiesDetectionV2JobInput, opts ...request.Option) (*StopEntitiesDetectionV2JobOutput, error) {
1746	req, out := c.StopEntitiesDetectionV2JobRequest(input)
1747	req.SetContext(ctx)
1748	req.ApplyOptions(opts...)
1749	return out, req.Send()
1750}
1751
1752const opStopICD10CMInferenceJob = "StopICD10CMInferenceJob"
1753
1754// StopICD10CMInferenceJobRequest generates a "aws/request.Request" representing the
1755// client's request for the StopICD10CMInferenceJob operation. The "output" return
1756// value will be populated with the request's response once the request completes
1757// successfully.
1758//
1759// Use "Send" method on the returned Request to send the API call to the service.
1760// the "output" return value is not valid until after Send returns without error.
1761//
1762// See StopICD10CMInferenceJob for more information on using the StopICD10CMInferenceJob
1763// API call, and error handling.
1764//
1765// This method is useful when you want to inject custom logic or configuration
1766// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1767//
1768//
1769//    // Example sending a request using the StopICD10CMInferenceJobRequest method.
1770//    req, resp := client.StopICD10CMInferenceJobRequest(params)
1771//
1772//    err := req.Send()
1773//    if err == nil { // resp is now filled
1774//        fmt.Println(resp)
1775//    }
1776//
1777// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopICD10CMInferenceJob
1778func (c *ComprehendMedical) StopICD10CMInferenceJobRequest(input *StopICD10CMInferenceJobInput) (req *request.Request, output *StopICD10CMInferenceJobOutput) {
1779	op := &request.Operation{
1780		Name:       opStopICD10CMInferenceJob,
1781		HTTPMethod: "POST",
1782		HTTPPath:   "/",
1783	}
1784
1785	if input == nil {
1786		input = &StopICD10CMInferenceJobInput{}
1787	}
1788
1789	output = &StopICD10CMInferenceJobOutput{}
1790	req = c.newRequest(op, input, output)
1791	return
1792}
1793
1794// StopICD10CMInferenceJob API operation for AWS Comprehend Medical.
1795//
1796// Stops an InferICD10CM inference job in progress.
1797//
1798// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1799// with awserr.Error's Code and Message methods to get detailed information about
1800// the error.
1801//
1802// See the AWS API reference guide for AWS Comprehend Medical's
1803// API operation StopICD10CMInferenceJob for usage and error information.
1804//
1805// Returned Error Types:
1806//   * InvalidRequestException
1807//   The request that you made is invalid. Check your request to determine why
1808//   it's invalid and then retry the request.
1809//
1810//   * ResourceNotFoundException
1811//   The resource identified by the specified Amazon Resource Name (ARN) was not
1812//   found. Check the ARN and try your request again.
1813//
1814//   * InternalServerException
1815//   An internal server error occurred. Retry your request.
1816//
1817// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopICD10CMInferenceJob
1818func (c *ComprehendMedical) StopICD10CMInferenceJob(input *StopICD10CMInferenceJobInput) (*StopICD10CMInferenceJobOutput, error) {
1819	req, out := c.StopICD10CMInferenceJobRequest(input)
1820	return out, req.Send()
1821}
1822
1823// StopICD10CMInferenceJobWithContext is the same as StopICD10CMInferenceJob with the addition of
1824// the ability to pass a context and additional request options.
1825//
1826// See StopICD10CMInferenceJob for details on how to use this API operation.
1827//
1828// The context must be non-nil and will be used for request cancellation. If
1829// the context is nil a panic will occur. In the future the SDK may create
1830// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1831// for more information on using Contexts.
1832func (c *ComprehendMedical) StopICD10CMInferenceJobWithContext(ctx aws.Context, input *StopICD10CMInferenceJobInput, opts ...request.Option) (*StopICD10CMInferenceJobOutput, error) {
1833	req, out := c.StopICD10CMInferenceJobRequest(input)
1834	req.SetContext(ctx)
1835	req.ApplyOptions(opts...)
1836	return out, req.Send()
1837}
1838
1839const opStopPHIDetectionJob = "StopPHIDetectionJob"
1840
1841// StopPHIDetectionJobRequest generates a "aws/request.Request" representing the
1842// client's request for the StopPHIDetectionJob operation. The "output" return
1843// value will be populated with the request's response once the request completes
1844// successfully.
1845//
1846// Use "Send" method on the returned Request to send the API call to the service.
1847// the "output" return value is not valid until after Send returns without error.
1848//
1849// See StopPHIDetectionJob for more information on using the StopPHIDetectionJob
1850// API call, and error handling.
1851//
1852// This method is useful when you want to inject custom logic or configuration
1853// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1854//
1855//
1856//    // Example sending a request using the StopPHIDetectionJobRequest method.
1857//    req, resp := client.StopPHIDetectionJobRequest(params)
1858//
1859//    err := req.Send()
1860//    if err == nil { // resp is now filled
1861//        fmt.Println(resp)
1862//    }
1863//
1864// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopPHIDetectionJob
1865func (c *ComprehendMedical) StopPHIDetectionJobRequest(input *StopPHIDetectionJobInput) (req *request.Request, output *StopPHIDetectionJobOutput) {
1866	op := &request.Operation{
1867		Name:       opStopPHIDetectionJob,
1868		HTTPMethod: "POST",
1869		HTTPPath:   "/",
1870	}
1871
1872	if input == nil {
1873		input = &StopPHIDetectionJobInput{}
1874	}
1875
1876	output = &StopPHIDetectionJobOutput{}
1877	req = c.newRequest(op, input, output)
1878	return
1879}
1880
1881// StopPHIDetectionJob API operation for AWS Comprehend Medical.
1882//
1883// Stops a protected health information (PHI) detection job in progress.
1884//
1885// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1886// with awserr.Error's Code and Message methods to get detailed information about
1887// the error.
1888//
1889// See the AWS API reference guide for AWS Comprehend Medical's
1890// API operation StopPHIDetectionJob for usage and error information.
1891//
1892// Returned Error Types:
1893//   * InvalidRequestException
1894//   The request that you made is invalid. Check your request to determine why
1895//   it's invalid and then retry the request.
1896//
1897//   * ResourceNotFoundException
1898//   The resource identified by the specified Amazon Resource Name (ARN) was not
1899//   found. Check the ARN and try your request again.
1900//
1901//   * InternalServerException
1902//   An internal server error occurred. Retry your request.
1903//
1904// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopPHIDetectionJob
1905func (c *ComprehendMedical) StopPHIDetectionJob(input *StopPHIDetectionJobInput) (*StopPHIDetectionJobOutput, error) {
1906	req, out := c.StopPHIDetectionJobRequest(input)
1907	return out, req.Send()
1908}
1909
1910// StopPHIDetectionJobWithContext is the same as StopPHIDetectionJob with the addition of
1911// the ability to pass a context and additional request options.
1912//
1913// See StopPHIDetectionJob for details on how to use this API operation.
1914//
1915// The context must be non-nil and will be used for request cancellation. If
1916// the context is nil a panic will occur. In the future the SDK may create
1917// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1918// for more information on using Contexts.
1919func (c *ComprehendMedical) StopPHIDetectionJobWithContext(ctx aws.Context, input *StopPHIDetectionJobInput, opts ...request.Option) (*StopPHIDetectionJobOutput, error) {
1920	req, out := c.StopPHIDetectionJobRequest(input)
1921	req.SetContext(ctx)
1922	req.ApplyOptions(opts...)
1923	return out, req.Send()
1924}
1925
1926const opStopRxNormInferenceJob = "StopRxNormInferenceJob"
1927
1928// StopRxNormInferenceJobRequest generates a "aws/request.Request" representing the
1929// client's request for the StopRxNormInferenceJob operation. The "output" return
1930// value will be populated with the request's response once the request completes
1931// successfully.
1932//
1933// Use "Send" method on the returned Request to send the API call to the service.
1934// the "output" return value is not valid until after Send returns without error.
1935//
1936// See StopRxNormInferenceJob for more information on using the StopRxNormInferenceJob
1937// API call, and error handling.
1938//
1939// This method is useful when you want to inject custom logic or configuration
1940// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1941//
1942//
1943//    // Example sending a request using the StopRxNormInferenceJobRequest method.
1944//    req, resp := client.StopRxNormInferenceJobRequest(params)
1945//
1946//    err := req.Send()
1947//    if err == nil { // resp is now filled
1948//        fmt.Println(resp)
1949//    }
1950//
1951// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopRxNormInferenceJob
1952func (c *ComprehendMedical) StopRxNormInferenceJobRequest(input *StopRxNormInferenceJobInput) (req *request.Request, output *StopRxNormInferenceJobOutput) {
1953	op := &request.Operation{
1954		Name:       opStopRxNormInferenceJob,
1955		HTTPMethod: "POST",
1956		HTTPPath:   "/",
1957	}
1958
1959	if input == nil {
1960		input = &StopRxNormInferenceJobInput{}
1961	}
1962
1963	output = &StopRxNormInferenceJobOutput{}
1964	req = c.newRequest(op, input, output)
1965	return
1966}
1967
1968// StopRxNormInferenceJob API operation for AWS Comprehend Medical.
1969//
1970// Stops an InferRxNorm inference job in progress.
1971//
1972// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1973// with awserr.Error's Code and Message methods to get detailed information about
1974// the error.
1975//
1976// See the AWS API reference guide for AWS Comprehend Medical's
1977// API operation StopRxNormInferenceJob for usage and error information.
1978//
1979// Returned Error Types:
1980//   * InvalidRequestException
1981//   The request that you made is invalid. Check your request to determine why
1982//   it's invalid and then retry the request.
1983//
1984//   * ResourceNotFoundException
1985//   The resource identified by the specified Amazon Resource Name (ARN) was not
1986//   found. Check the ARN and try your request again.
1987//
1988//   * InternalServerException
1989//   An internal server error occurred. Retry your request.
1990//
1991// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopRxNormInferenceJob
1992func (c *ComprehendMedical) StopRxNormInferenceJob(input *StopRxNormInferenceJobInput) (*StopRxNormInferenceJobOutput, error) {
1993	req, out := c.StopRxNormInferenceJobRequest(input)
1994	return out, req.Send()
1995}
1996
1997// StopRxNormInferenceJobWithContext is the same as StopRxNormInferenceJob with the addition of
1998// the ability to pass a context and additional request options.
1999//
2000// See StopRxNormInferenceJob for details on how to use this API operation.
2001//
2002// The context must be non-nil and will be used for request cancellation. If
2003// the context is nil a panic will occur. In the future the SDK may create
2004// sub-contexts for http.Requests. See https://golang.org/pkg/context/
2005// for more information on using Contexts.
2006func (c *ComprehendMedical) StopRxNormInferenceJobWithContext(ctx aws.Context, input *StopRxNormInferenceJobInput, opts ...request.Option) (*StopRxNormInferenceJobOutput, error) {
2007	req, out := c.StopRxNormInferenceJobRequest(input)
2008	req.SetContext(ctx)
2009	req.ApplyOptions(opts...)
2010	return out, req.Send()
2011}
2012
2013// An extracted segment of the text that is an attribute of an entity, or otherwise
2014// related to an entity, such as the dosage of a medication taken. It contains
2015// information about the attribute such as id, begin and end offset within the
2016// input text, and the segment of the input text.
2017type Attribute struct {
2018	_ struct{} `type:"structure"`
2019
2020	// The 0-based character offset in the input text that shows where the attribute
2021	// begins. The offset returns the UTF-8 code point in the string.
2022	BeginOffset *int64 `type:"integer"`
2023
2024	// The category of attribute.
2025	Category *string `type:"string" enum:"EntityType"`
2026
2027	// The 0-based character offset in the input text that shows where the attribute
2028	// ends. The offset returns the UTF-8 code point in the string.
2029	EndOffset *int64 `type:"integer"`
2030
2031	// The numeric identifier for this attribute. This is a monotonically increasing
2032	// id unique within this response rather than a global unique identifier.
2033	Id *int64 `type:"integer"`
2034
2035	// The level of confidence that Amazon Comprehend Medical has that this attribute
2036	// is correctly related to this entity.
2037	RelationshipScore *float64 `type:"float"`
2038
2039	// The type of relationship between the entity and attribute. Type for the relationship
2040	// is OVERLAP, indicating that the entity occurred at the same time as the Date_Expression.
2041	RelationshipType *string `type:"string" enum:"RelationshipType"`
2042
2043	// The level of confidence that Amazon Comprehend Medical has that the segment
2044	// of text is correctly recognized as an attribute.
2045	Score *float64 `type:"float"`
2046
2047	// The segment of input text extracted as this attribute.
2048	Text *string `min:"1" type:"string"`
2049
2050	// Contextual information for this attribute.
2051	Traits []*Trait `type:"list"`
2052
2053	// The type of attribute.
2054	Type *string `type:"string" enum:"EntitySubType"`
2055}
2056
2057// String returns the string representation
2058func (s Attribute) String() string {
2059	return awsutil.Prettify(s)
2060}
2061
2062// GoString returns the string representation
2063func (s Attribute) GoString() string {
2064	return s.String()
2065}
2066
2067// SetBeginOffset sets the BeginOffset field's value.
2068func (s *Attribute) SetBeginOffset(v int64) *Attribute {
2069	s.BeginOffset = &v
2070	return s
2071}
2072
2073// SetCategory sets the Category field's value.
2074func (s *Attribute) SetCategory(v string) *Attribute {
2075	s.Category = &v
2076	return s
2077}
2078
2079// SetEndOffset sets the EndOffset field's value.
2080func (s *Attribute) SetEndOffset(v int64) *Attribute {
2081	s.EndOffset = &v
2082	return s
2083}
2084
2085// SetId sets the Id field's value.
2086func (s *Attribute) SetId(v int64) *Attribute {
2087	s.Id = &v
2088	return s
2089}
2090
2091// SetRelationshipScore sets the RelationshipScore field's value.
2092func (s *Attribute) SetRelationshipScore(v float64) *Attribute {
2093	s.RelationshipScore = &v
2094	return s
2095}
2096
2097// SetRelationshipType sets the RelationshipType field's value.
2098func (s *Attribute) SetRelationshipType(v string) *Attribute {
2099	s.RelationshipType = &v
2100	return s
2101}
2102
2103// SetScore sets the Score field's value.
2104func (s *Attribute) SetScore(v float64) *Attribute {
2105	s.Score = &v
2106	return s
2107}
2108
2109// SetText sets the Text field's value.
2110func (s *Attribute) SetText(v string) *Attribute {
2111	s.Text = &v
2112	return s
2113}
2114
2115// SetTraits sets the Traits field's value.
2116func (s *Attribute) SetTraits(v []*Trait) *Attribute {
2117	s.Traits = v
2118	return s
2119}
2120
2121// SetType sets the Type field's value.
2122func (s *Attribute) SetType(v string) *Attribute {
2123	s.Type = &v
2124	return s
2125}
2126
2127// Provides information for filtering a list of detection jobs.
2128type ComprehendMedicalAsyncJobFilter struct {
2129	_ struct{} `type:"structure"`
2130
2131	// Filters on the name of the job.
2132	JobName *string `min:"1" type:"string"`
2133
2134	// Filters the list of jobs based on job status. Returns only jobs with the
2135	// specified status.
2136	JobStatus *string `type:"string" enum:"JobStatus"`
2137
2138	// Filters the list of jobs based on the time that the job was submitted for
2139	// processing. Returns only jobs submitted after the specified time. Jobs are
2140	// returned in descending order, newest to oldest.
2141	SubmitTimeAfter *time.Time `type:"timestamp"`
2142
2143	// Filters the list of jobs based on the time that the job was submitted for
2144	// processing. Returns only jobs submitted before the specified time. Jobs are
2145	// returned in ascending order, oldest to newest.
2146	SubmitTimeBefore *time.Time `type:"timestamp"`
2147}
2148
2149// String returns the string representation
2150func (s ComprehendMedicalAsyncJobFilter) String() string {
2151	return awsutil.Prettify(s)
2152}
2153
2154// GoString returns the string representation
2155func (s ComprehendMedicalAsyncJobFilter) GoString() string {
2156	return s.String()
2157}
2158
2159// Validate inspects the fields of the type to determine if they are valid.
2160func (s *ComprehendMedicalAsyncJobFilter) Validate() error {
2161	invalidParams := request.ErrInvalidParams{Context: "ComprehendMedicalAsyncJobFilter"}
2162	if s.JobName != nil && len(*s.JobName) < 1 {
2163		invalidParams.Add(request.NewErrParamMinLen("JobName", 1))
2164	}
2165
2166	if invalidParams.Len() > 0 {
2167		return invalidParams
2168	}
2169	return nil
2170}
2171
2172// SetJobName sets the JobName field's value.
2173func (s *ComprehendMedicalAsyncJobFilter) SetJobName(v string) *ComprehendMedicalAsyncJobFilter {
2174	s.JobName = &v
2175	return s
2176}
2177
2178// SetJobStatus sets the JobStatus field's value.
2179func (s *ComprehendMedicalAsyncJobFilter) SetJobStatus(v string) *ComprehendMedicalAsyncJobFilter {
2180	s.JobStatus = &v
2181	return s
2182}
2183
2184// SetSubmitTimeAfter sets the SubmitTimeAfter field's value.
2185func (s *ComprehendMedicalAsyncJobFilter) SetSubmitTimeAfter(v time.Time) *ComprehendMedicalAsyncJobFilter {
2186	s.SubmitTimeAfter = &v
2187	return s
2188}
2189
2190// SetSubmitTimeBefore sets the SubmitTimeBefore field's value.
2191func (s *ComprehendMedicalAsyncJobFilter) SetSubmitTimeBefore(v time.Time) *ComprehendMedicalAsyncJobFilter {
2192	s.SubmitTimeBefore = &v
2193	return s
2194}
2195
2196// Provides information about a detection job.
2197type ComprehendMedicalAsyncJobProperties struct {
2198	_ struct{} `type:"structure"`
2199
2200	// The Amazon Resource Name (ARN) that gives Amazon Comprehend Medical read
2201	// access to your input data.
2202	DataAccessRoleArn *string `min:"20" type:"string"`
2203
2204	// The time that the detection job completed.
2205	EndTime *time.Time `type:"timestamp"`
2206
2207	// The date and time that job metadata is deleted from the server. Output files
2208	// in your S3 bucket will not be deleted. After the metadata is deleted, the
2209	// job will no longer appear in the results of the ListEntitiesDetectionV2Job
2210	// or the ListPHIDetectionJobs operation.
2211	ExpirationTime *time.Time `type:"timestamp"`
2212
2213	// The input data configuration that you supplied when you created the detection
2214	// job.
2215	InputDataConfig *InputDataConfig `type:"structure"`
2216
2217	// The identifier assigned to the detection job.
2218	JobId *string `min:"1" type:"string"`
2219
2220	// The name that you assigned to the detection job.
2221	JobName *string `min:"1" type:"string"`
2222
2223	// The current status of the detection job. If the status is FAILED, the Message
2224	// field shows the reason for the failure.
2225	JobStatus *string `type:"string" enum:"JobStatus"`
2226
2227	// The AWS Key Management Service key, if any, used to encrypt the output files.
2228	KMSKey *string `min:"1" type:"string"`
2229
2230	// The language code of the input documents.
2231	LanguageCode *string `type:"string" enum:"LanguageCode"`
2232
2233	// The path to the file that describes the results of a batch job.
2234	ManifestFilePath *string `min:"1" type:"string"`
2235
2236	// A description of the status of a job.
2237	Message *string `type:"string"`
2238
2239	// The version of the model used to analyze the documents. The version number
2240	// looks like X.X.X. You can use this information to track the model used for
2241	// a particular batch of documents.
2242	ModelVersion *string `type:"string"`
2243
2244	// The output data configuration that you supplied when you created the detection
2245	// job.
2246	OutputDataConfig *OutputDataConfig `type:"structure"`
2247
2248	// The time that the detection job was submitted for processing.
2249	SubmitTime *time.Time `type:"timestamp"`
2250}
2251
2252// String returns the string representation
2253func (s ComprehendMedicalAsyncJobProperties) String() string {
2254	return awsutil.Prettify(s)
2255}
2256
2257// GoString returns the string representation
2258func (s ComprehendMedicalAsyncJobProperties) GoString() string {
2259	return s.String()
2260}
2261
2262// SetDataAccessRoleArn sets the DataAccessRoleArn field's value.
2263func (s *ComprehendMedicalAsyncJobProperties) SetDataAccessRoleArn(v string) *ComprehendMedicalAsyncJobProperties {
2264	s.DataAccessRoleArn = &v
2265	return s
2266}
2267
2268// SetEndTime sets the EndTime field's value.
2269func (s *ComprehendMedicalAsyncJobProperties) SetEndTime(v time.Time) *ComprehendMedicalAsyncJobProperties {
2270	s.EndTime = &v
2271	return s
2272}
2273
2274// SetExpirationTime sets the ExpirationTime field's value.
2275func (s *ComprehendMedicalAsyncJobProperties) SetExpirationTime(v time.Time) *ComprehendMedicalAsyncJobProperties {
2276	s.ExpirationTime = &v
2277	return s
2278}
2279
2280// SetInputDataConfig sets the InputDataConfig field's value.
2281func (s *ComprehendMedicalAsyncJobProperties) SetInputDataConfig(v *InputDataConfig) *ComprehendMedicalAsyncJobProperties {
2282	s.InputDataConfig = v
2283	return s
2284}
2285
2286// SetJobId sets the JobId field's value.
2287func (s *ComprehendMedicalAsyncJobProperties) SetJobId(v string) *ComprehendMedicalAsyncJobProperties {
2288	s.JobId = &v
2289	return s
2290}
2291
2292// SetJobName sets the JobName field's value.
2293func (s *ComprehendMedicalAsyncJobProperties) SetJobName(v string) *ComprehendMedicalAsyncJobProperties {
2294	s.JobName = &v
2295	return s
2296}
2297
2298// SetJobStatus sets the JobStatus field's value.
2299func (s *ComprehendMedicalAsyncJobProperties) SetJobStatus(v string) *ComprehendMedicalAsyncJobProperties {
2300	s.JobStatus = &v
2301	return s
2302}
2303
2304// SetKMSKey sets the KMSKey field's value.
2305func (s *ComprehendMedicalAsyncJobProperties) SetKMSKey(v string) *ComprehendMedicalAsyncJobProperties {
2306	s.KMSKey = &v
2307	return s
2308}
2309
2310// SetLanguageCode sets the LanguageCode field's value.
2311func (s *ComprehendMedicalAsyncJobProperties) SetLanguageCode(v string) *ComprehendMedicalAsyncJobProperties {
2312	s.LanguageCode = &v
2313	return s
2314}
2315
2316// SetManifestFilePath sets the ManifestFilePath field's value.
2317func (s *ComprehendMedicalAsyncJobProperties) SetManifestFilePath(v string) *ComprehendMedicalAsyncJobProperties {
2318	s.ManifestFilePath = &v
2319	return s
2320}
2321
2322// SetMessage sets the Message field's value.
2323func (s *ComprehendMedicalAsyncJobProperties) SetMessage(v string) *ComprehendMedicalAsyncJobProperties {
2324	s.Message = &v
2325	return s
2326}
2327
2328// SetModelVersion sets the ModelVersion field's value.
2329func (s *ComprehendMedicalAsyncJobProperties) SetModelVersion(v string) *ComprehendMedicalAsyncJobProperties {
2330	s.ModelVersion = &v
2331	return s
2332}
2333
2334// SetOutputDataConfig sets the OutputDataConfig field's value.
2335func (s *ComprehendMedicalAsyncJobProperties) SetOutputDataConfig(v *OutputDataConfig) *ComprehendMedicalAsyncJobProperties {
2336	s.OutputDataConfig = v
2337	return s
2338}
2339
2340// SetSubmitTime sets the SubmitTime field's value.
2341func (s *ComprehendMedicalAsyncJobProperties) SetSubmitTime(v time.Time) *ComprehendMedicalAsyncJobProperties {
2342	s.SubmitTime = &v
2343	return s
2344}
2345
2346type DescribeEntitiesDetectionV2JobInput struct {
2347	_ struct{} `type:"structure"`
2348
2349	// The identifier that Amazon Comprehend Medical generated for the job. The
2350	// StartEntitiesDetectionV2Job operation returns this identifier in its response.
2351	//
2352	// JobId is a required field
2353	JobId *string `min:"1" type:"string" required:"true"`
2354}
2355
2356// String returns the string representation
2357func (s DescribeEntitiesDetectionV2JobInput) String() string {
2358	return awsutil.Prettify(s)
2359}
2360
2361// GoString returns the string representation
2362func (s DescribeEntitiesDetectionV2JobInput) GoString() string {
2363	return s.String()
2364}
2365
2366// Validate inspects the fields of the type to determine if they are valid.
2367func (s *DescribeEntitiesDetectionV2JobInput) Validate() error {
2368	invalidParams := request.ErrInvalidParams{Context: "DescribeEntitiesDetectionV2JobInput"}
2369	if s.JobId == nil {
2370		invalidParams.Add(request.NewErrParamRequired("JobId"))
2371	}
2372	if s.JobId != nil && len(*s.JobId) < 1 {
2373		invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
2374	}
2375
2376	if invalidParams.Len() > 0 {
2377		return invalidParams
2378	}
2379	return nil
2380}
2381
2382// SetJobId sets the JobId field's value.
2383func (s *DescribeEntitiesDetectionV2JobInput) SetJobId(v string) *DescribeEntitiesDetectionV2JobInput {
2384	s.JobId = &v
2385	return s
2386}
2387
2388type DescribeEntitiesDetectionV2JobOutput struct {
2389	_ struct{} `type:"structure"`
2390
2391	// An object that contains the properties associated with a detection job.
2392	ComprehendMedicalAsyncJobProperties *ComprehendMedicalAsyncJobProperties `type:"structure"`
2393}
2394
2395// String returns the string representation
2396func (s DescribeEntitiesDetectionV2JobOutput) String() string {
2397	return awsutil.Prettify(s)
2398}
2399
2400// GoString returns the string representation
2401func (s DescribeEntitiesDetectionV2JobOutput) GoString() string {
2402	return s.String()
2403}
2404
2405// SetComprehendMedicalAsyncJobProperties sets the ComprehendMedicalAsyncJobProperties field's value.
2406func (s *DescribeEntitiesDetectionV2JobOutput) SetComprehendMedicalAsyncJobProperties(v *ComprehendMedicalAsyncJobProperties) *DescribeEntitiesDetectionV2JobOutput {
2407	s.ComprehendMedicalAsyncJobProperties = v
2408	return s
2409}
2410
2411type DescribeICD10CMInferenceJobInput struct {
2412	_ struct{} `type:"structure"`
2413
2414	// The identifier that Amazon Comprehend Medical generated for the job. The
2415	// StartICD10CMInferenceJob operation returns this identifier in its response.
2416	//
2417	// JobId is a required field
2418	JobId *string `min:"1" type:"string" required:"true"`
2419}
2420
2421// String returns the string representation
2422func (s DescribeICD10CMInferenceJobInput) String() string {
2423	return awsutil.Prettify(s)
2424}
2425
2426// GoString returns the string representation
2427func (s DescribeICD10CMInferenceJobInput) GoString() string {
2428	return s.String()
2429}
2430
2431// Validate inspects the fields of the type to determine if they are valid.
2432func (s *DescribeICD10CMInferenceJobInput) Validate() error {
2433	invalidParams := request.ErrInvalidParams{Context: "DescribeICD10CMInferenceJobInput"}
2434	if s.JobId == nil {
2435		invalidParams.Add(request.NewErrParamRequired("JobId"))
2436	}
2437	if s.JobId != nil && len(*s.JobId) < 1 {
2438		invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
2439	}
2440
2441	if invalidParams.Len() > 0 {
2442		return invalidParams
2443	}
2444	return nil
2445}
2446
2447// SetJobId sets the JobId field's value.
2448func (s *DescribeICD10CMInferenceJobInput) SetJobId(v string) *DescribeICD10CMInferenceJobInput {
2449	s.JobId = &v
2450	return s
2451}
2452
2453type DescribeICD10CMInferenceJobOutput struct {
2454	_ struct{} `type:"structure"`
2455
2456	// An object that contains the properties associated with a detection job.
2457	ComprehendMedicalAsyncJobProperties *ComprehendMedicalAsyncJobProperties `type:"structure"`
2458}
2459
2460// String returns the string representation
2461func (s DescribeICD10CMInferenceJobOutput) String() string {
2462	return awsutil.Prettify(s)
2463}
2464
2465// GoString returns the string representation
2466func (s DescribeICD10CMInferenceJobOutput) GoString() string {
2467	return s.String()
2468}
2469
2470// SetComprehendMedicalAsyncJobProperties sets the ComprehendMedicalAsyncJobProperties field's value.
2471func (s *DescribeICD10CMInferenceJobOutput) SetComprehendMedicalAsyncJobProperties(v *ComprehendMedicalAsyncJobProperties) *DescribeICD10CMInferenceJobOutput {
2472	s.ComprehendMedicalAsyncJobProperties = v
2473	return s
2474}
2475
2476type DescribePHIDetectionJobInput struct {
2477	_ struct{} `type:"structure"`
2478
2479	// The identifier that Amazon Comprehend Medical generated for the job. The
2480	// StartPHIDetectionJob operation returns this identifier in its response.
2481	//
2482	// JobId is a required field
2483	JobId *string `min:"1" type:"string" required:"true"`
2484}
2485
2486// String returns the string representation
2487func (s DescribePHIDetectionJobInput) String() string {
2488	return awsutil.Prettify(s)
2489}
2490
2491// GoString returns the string representation
2492func (s DescribePHIDetectionJobInput) GoString() string {
2493	return s.String()
2494}
2495
2496// Validate inspects the fields of the type to determine if they are valid.
2497func (s *DescribePHIDetectionJobInput) Validate() error {
2498	invalidParams := request.ErrInvalidParams{Context: "DescribePHIDetectionJobInput"}
2499	if s.JobId == nil {
2500		invalidParams.Add(request.NewErrParamRequired("JobId"))
2501	}
2502	if s.JobId != nil && len(*s.JobId) < 1 {
2503		invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
2504	}
2505
2506	if invalidParams.Len() > 0 {
2507		return invalidParams
2508	}
2509	return nil
2510}
2511
2512// SetJobId sets the JobId field's value.
2513func (s *DescribePHIDetectionJobInput) SetJobId(v string) *DescribePHIDetectionJobInput {
2514	s.JobId = &v
2515	return s
2516}
2517
2518type DescribePHIDetectionJobOutput struct {
2519	_ struct{} `type:"structure"`
2520
2521	// An object that contains the properties associated with a detection job.
2522	ComprehendMedicalAsyncJobProperties *ComprehendMedicalAsyncJobProperties `type:"structure"`
2523}
2524
2525// String returns the string representation
2526func (s DescribePHIDetectionJobOutput) String() string {
2527	return awsutil.Prettify(s)
2528}
2529
2530// GoString returns the string representation
2531func (s DescribePHIDetectionJobOutput) GoString() string {
2532	return s.String()
2533}
2534
2535// SetComprehendMedicalAsyncJobProperties sets the ComprehendMedicalAsyncJobProperties field's value.
2536func (s *DescribePHIDetectionJobOutput) SetComprehendMedicalAsyncJobProperties(v *ComprehendMedicalAsyncJobProperties) *DescribePHIDetectionJobOutput {
2537	s.ComprehendMedicalAsyncJobProperties = v
2538	return s
2539}
2540
2541type DescribeRxNormInferenceJobInput struct {
2542	_ struct{} `type:"structure"`
2543
2544	// The identifier that Amazon Comprehend Medical generated for the job. The
2545	// StartRxNormInferenceJob operation returns this identifier in its response.
2546	//
2547	// JobId is a required field
2548	JobId *string `min:"1" type:"string" required:"true"`
2549}
2550
2551// String returns the string representation
2552func (s DescribeRxNormInferenceJobInput) String() string {
2553	return awsutil.Prettify(s)
2554}
2555
2556// GoString returns the string representation
2557func (s DescribeRxNormInferenceJobInput) GoString() string {
2558	return s.String()
2559}
2560
2561// Validate inspects the fields of the type to determine if they are valid.
2562func (s *DescribeRxNormInferenceJobInput) Validate() error {
2563	invalidParams := request.ErrInvalidParams{Context: "DescribeRxNormInferenceJobInput"}
2564	if s.JobId == nil {
2565		invalidParams.Add(request.NewErrParamRequired("JobId"))
2566	}
2567	if s.JobId != nil && len(*s.JobId) < 1 {
2568		invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
2569	}
2570
2571	if invalidParams.Len() > 0 {
2572		return invalidParams
2573	}
2574	return nil
2575}
2576
2577// SetJobId sets the JobId field's value.
2578func (s *DescribeRxNormInferenceJobInput) SetJobId(v string) *DescribeRxNormInferenceJobInput {
2579	s.JobId = &v
2580	return s
2581}
2582
2583type DescribeRxNormInferenceJobOutput struct {
2584	_ struct{} `type:"structure"`
2585
2586	// An object that contains the properties associated with a detection job.
2587	ComprehendMedicalAsyncJobProperties *ComprehendMedicalAsyncJobProperties `type:"structure"`
2588}
2589
2590// String returns the string representation
2591func (s DescribeRxNormInferenceJobOutput) String() string {
2592	return awsutil.Prettify(s)
2593}
2594
2595// GoString returns the string representation
2596func (s DescribeRxNormInferenceJobOutput) GoString() string {
2597	return s.String()
2598}
2599
2600// SetComprehendMedicalAsyncJobProperties sets the ComprehendMedicalAsyncJobProperties field's value.
2601func (s *DescribeRxNormInferenceJobOutput) SetComprehendMedicalAsyncJobProperties(v *ComprehendMedicalAsyncJobProperties) *DescribeRxNormInferenceJobOutput {
2602	s.ComprehendMedicalAsyncJobProperties = v
2603	return s
2604}
2605
2606type DetectEntitiesInput struct {
2607	_ struct{} `type:"structure"`
2608
2609	// A UTF-8 text string containing the clinical content being examined for entities.
2610	// Each string must contain fewer than 20,000 bytes of characters.
2611	//
2612	// Text is a required field
2613	Text *string `min:"1" type:"string" required:"true"`
2614}
2615
2616// String returns the string representation
2617func (s DetectEntitiesInput) String() string {
2618	return awsutil.Prettify(s)
2619}
2620
2621// GoString returns the string representation
2622func (s DetectEntitiesInput) GoString() string {
2623	return s.String()
2624}
2625
2626// Validate inspects the fields of the type to determine if they are valid.
2627func (s *DetectEntitiesInput) Validate() error {
2628	invalidParams := request.ErrInvalidParams{Context: "DetectEntitiesInput"}
2629	if s.Text == nil {
2630		invalidParams.Add(request.NewErrParamRequired("Text"))
2631	}
2632	if s.Text != nil && len(*s.Text) < 1 {
2633		invalidParams.Add(request.NewErrParamMinLen("Text", 1))
2634	}
2635
2636	if invalidParams.Len() > 0 {
2637		return invalidParams
2638	}
2639	return nil
2640}
2641
2642// SetText sets the Text field's value.
2643func (s *DetectEntitiesInput) SetText(v string) *DetectEntitiesInput {
2644	s.Text = &v
2645	return s
2646}
2647
2648type DetectEntitiesOutput struct {
2649	_ struct{} `type:"structure"`
2650
2651	// The collection of medical entities extracted from the input text and their
2652	// associated information. For each entity, the response provides the entity
2653	// text, the entity category, where the entity text begins and ends, and the
2654	// level of confidence that Amazon Comprehend Medical has in the detection and
2655	// analysis. Attributes and traits of the entity are also returned.
2656	//
2657	// Entities is a required field
2658	Entities []*Entity `type:"list" required:"true"`
2659
2660	// The version of the model used to analyze the documents. The version number
2661	// looks like X.X.X. You can use this information to track the model used for
2662	// a particular batch of documents.
2663	//
2664	// ModelVersion is a required field
2665	ModelVersion *string `min:"1" type:"string" required:"true"`
2666
2667	// If the result of the previous request to DetectEntities was truncated, include
2668	// the PaginationToken to fetch the next page of entities.
2669	PaginationToken *string `min:"1" type:"string"`
2670
2671	// Attributes extracted from the input text that we were unable to relate to
2672	// an entity.
2673	UnmappedAttributes []*UnmappedAttribute `type:"list"`
2674}
2675
2676// String returns the string representation
2677func (s DetectEntitiesOutput) String() string {
2678	return awsutil.Prettify(s)
2679}
2680
2681// GoString returns the string representation
2682func (s DetectEntitiesOutput) GoString() string {
2683	return s.String()
2684}
2685
2686// SetEntities sets the Entities field's value.
2687func (s *DetectEntitiesOutput) SetEntities(v []*Entity) *DetectEntitiesOutput {
2688	s.Entities = v
2689	return s
2690}
2691
2692// SetModelVersion sets the ModelVersion field's value.
2693func (s *DetectEntitiesOutput) SetModelVersion(v string) *DetectEntitiesOutput {
2694	s.ModelVersion = &v
2695	return s
2696}
2697
2698// SetPaginationToken sets the PaginationToken field's value.
2699func (s *DetectEntitiesOutput) SetPaginationToken(v string) *DetectEntitiesOutput {
2700	s.PaginationToken = &v
2701	return s
2702}
2703
2704// SetUnmappedAttributes sets the UnmappedAttributes field's value.
2705func (s *DetectEntitiesOutput) SetUnmappedAttributes(v []*UnmappedAttribute) *DetectEntitiesOutput {
2706	s.UnmappedAttributes = v
2707	return s
2708}
2709
2710type DetectEntitiesV2Input struct {
2711	_ struct{} `type:"structure"`
2712
2713	// A UTF-8 string containing the clinical content being examined for entities.
2714	// Each string must contain fewer than 20,000 bytes of characters.
2715	//
2716	// Text is a required field
2717	Text *string `min:"1" type:"string" required:"true"`
2718}
2719
2720// String returns the string representation
2721func (s DetectEntitiesV2Input) String() string {
2722	return awsutil.Prettify(s)
2723}
2724
2725// GoString returns the string representation
2726func (s DetectEntitiesV2Input) GoString() string {
2727	return s.String()
2728}
2729
2730// Validate inspects the fields of the type to determine if they are valid.
2731func (s *DetectEntitiesV2Input) Validate() error {
2732	invalidParams := request.ErrInvalidParams{Context: "DetectEntitiesV2Input"}
2733	if s.Text == nil {
2734		invalidParams.Add(request.NewErrParamRequired("Text"))
2735	}
2736	if s.Text != nil && len(*s.Text) < 1 {
2737		invalidParams.Add(request.NewErrParamMinLen("Text", 1))
2738	}
2739
2740	if invalidParams.Len() > 0 {
2741		return invalidParams
2742	}
2743	return nil
2744}
2745
2746// SetText sets the Text field's value.
2747func (s *DetectEntitiesV2Input) SetText(v string) *DetectEntitiesV2Input {
2748	s.Text = &v
2749	return s
2750}
2751
2752type DetectEntitiesV2Output struct {
2753	_ struct{} `type:"structure"`
2754
2755	// The collection of medical entities extracted from the input text and their
2756	// associated information. For each entity, the response provides the entity
2757	// text, the entity category, where the entity text begins and ends, and the
2758	// level of confidence in the detection and analysis. Attributes and traits
2759	// of the entity are also returned.
2760	//
2761	// Entities is a required field
2762	Entities []*Entity `type:"list" required:"true"`
2763
2764	// The version of the model used to analyze the documents. The version number
2765	// looks like X.X.X. You can use this information to track the model used for
2766	// a particular batch of documents.
2767	//
2768	// ModelVersion is a required field
2769	ModelVersion *string `min:"1" type:"string" required:"true"`
2770
2771	// If the result to the DetectEntitiesV2 operation was truncated, include the
2772	// PaginationToken to fetch the next page of entities.
2773	PaginationToken *string `min:"1" type:"string"`
2774
2775	// Attributes extracted from the input text that couldn't be related to an entity.
2776	UnmappedAttributes []*UnmappedAttribute `type:"list"`
2777}
2778
2779// String returns the string representation
2780func (s DetectEntitiesV2Output) String() string {
2781	return awsutil.Prettify(s)
2782}
2783
2784// GoString returns the string representation
2785func (s DetectEntitiesV2Output) GoString() string {
2786	return s.String()
2787}
2788
2789// SetEntities sets the Entities field's value.
2790func (s *DetectEntitiesV2Output) SetEntities(v []*Entity) *DetectEntitiesV2Output {
2791	s.Entities = v
2792	return s
2793}
2794
2795// SetModelVersion sets the ModelVersion field's value.
2796func (s *DetectEntitiesV2Output) SetModelVersion(v string) *DetectEntitiesV2Output {
2797	s.ModelVersion = &v
2798	return s
2799}
2800
2801// SetPaginationToken sets the PaginationToken field's value.
2802func (s *DetectEntitiesV2Output) SetPaginationToken(v string) *DetectEntitiesV2Output {
2803	s.PaginationToken = &v
2804	return s
2805}
2806
2807// SetUnmappedAttributes sets the UnmappedAttributes field's value.
2808func (s *DetectEntitiesV2Output) SetUnmappedAttributes(v []*UnmappedAttribute) *DetectEntitiesV2Output {
2809	s.UnmappedAttributes = v
2810	return s
2811}
2812
2813type DetectPHIInput struct {
2814	_ struct{} `type:"structure"`
2815
2816	// A UTF-8 text string containing the clinical content being examined for PHI
2817	// entities. Each string must contain fewer than 20,000 bytes of characters.
2818	//
2819	// Text is a required field
2820	Text *string `min:"1" type:"string" required:"true"`
2821}
2822
2823// String returns the string representation
2824func (s DetectPHIInput) String() string {
2825	return awsutil.Prettify(s)
2826}
2827
2828// GoString returns the string representation
2829func (s DetectPHIInput) GoString() string {
2830	return s.String()
2831}
2832
2833// Validate inspects the fields of the type to determine if they are valid.
2834func (s *DetectPHIInput) Validate() error {
2835	invalidParams := request.ErrInvalidParams{Context: "DetectPHIInput"}
2836	if s.Text == nil {
2837		invalidParams.Add(request.NewErrParamRequired("Text"))
2838	}
2839	if s.Text != nil && len(*s.Text) < 1 {
2840		invalidParams.Add(request.NewErrParamMinLen("Text", 1))
2841	}
2842
2843	if invalidParams.Len() > 0 {
2844		return invalidParams
2845	}
2846	return nil
2847}
2848
2849// SetText sets the Text field's value.
2850func (s *DetectPHIInput) SetText(v string) *DetectPHIInput {
2851	s.Text = &v
2852	return s
2853}
2854
2855type DetectPHIOutput struct {
2856	_ struct{} `type:"structure"`
2857
2858	// The collection of PHI entities extracted from the input text and their associated
2859	// information. For each entity, the response provides the entity text, the
2860	// entity category, where the entity text begins and ends, and the level of
2861	// confidence that Amazon Comprehend Medical has in its detection.
2862	//
2863	// Entities is a required field
2864	Entities []*Entity `type:"list" required:"true"`
2865
2866	// The version of the model used to analyze the documents. The version number
2867	// looks like X.X.X. You can use this information to track the model used for
2868	// a particular batch of documents.
2869	//
2870	// ModelVersion is a required field
2871	ModelVersion *string `min:"1" type:"string" required:"true"`
2872
2873	// If the result of the previous request to DetectPHI was truncated, include
2874	// the PaginationToken to fetch the next page of PHI entities.
2875	PaginationToken *string `min:"1" type:"string"`
2876}
2877
2878// String returns the string representation
2879func (s DetectPHIOutput) String() string {
2880	return awsutil.Prettify(s)
2881}
2882
2883// GoString returns the string representation
2884func (s DetectPHIOutput) GoString() string {
2885	return s.String()
2886}
2887
2888// SetEntities sets the Entities field's value.
2889func (s *DetectPHIOutput) SetEntities(v []*Entity) *DetectPHIOutput {
2890	s.Entities = v
2891	return s
2892}
2893
2894// SetModelVersion sets the ModelVersion field's value.
2895func (s *DetectPHIOutput) SetModelVersion(v string) *DetectPHIOutput {
2896	s.ModelVersion = &v
2897	return s
2898}
2899
2900// SetPaginationToken sets the PaginationToken field's value.
2901func (s *DetectPHIOutput) SetPaginationToken(v string) *DetectPHIOutput {
2902	s.PaginationToken = &v
2903	return s
2904}
2905
2906// Provides information about an extracted medical entity.
2907type Entity struct {
2908	_ struct{} `type:"structure"`
2909
2910	// The extracted attributes that relate to this entity.
2911	Attributes []*Attribute `type:"list"`
2912
2913	// The 0-based character offset in the input text that shows where the entity
2914	// begins. The offset returns the UTF-8 code point in the string.
2915	BeginOffset *int64 `type:"integer"`
2916
2917	// The category of the entity.
2918	Category *string `type:"string" enum:"EntityType"`
2919
2920	// The 0-based character offset in the input text that shows where the entity
2921	// ends. The offset returns the UTF-8 code point in the string.
2922	EndOffset *int64 `type:"integer"`
2923
2924	// The numeric identifier for the entity. This is a monotonically increasing
2925	// id unique within this response rather than a global unique identifier.
2926	Id *int64 `type:"integer"`
2927
2928	// The level of confidence that Amazon Comprehend Medical has in the accuracy
2929	// of the detection.
2930	Score *float64 `type:"float"`
2931
2932	// The segment of input text extracted as this entity.
2933	Text *string `min:"1" type:"string"`
2934
2935	// Contextual information for the entity.
2936	Traits []*Trait `type:"list"`
2937
2938	// Describes the specific type of entity with category of entities.
2939	Type *string `type:"string" enum:"EntitySubType"`
2940}
2941
2942// String returns the string representation
2943func (s Entity) String() string {
2944	return awsutil.Prettify(s)
2945}
2946
2947// GoString returns the string representation
2948func (s Entity) GoString() string {
2949	return s.String()
2950}
2951
2952// SetAttributes sets the Attributes field's value.
2953func (s *Entity) SetAttributes(v []*Attribute) *Entity {
2954	s.Attributes = v
2955	return s
2956}
2957
2958// SetBeginOffset sets the BeginOffset field's value.
2959func (s *Entity) SetBeginOffset(v int64) *Entity {
2960	s.BeginOffset = &v
2961	return s
2962}
2963
2964// SetCategory sets the Category field's value.
2965func (s *Entity) SetCategory(v string) *Entity {
2966	s.Category = &v
2967	return s
2968}
2969
2970// SetEndOffset sets the EndOffset field's value.
2971func (s *Entity) SetEndOffset(v int64) *Entity {
2972	s.EndOffset = &v
2973	return s
2974}
2975
2976// SetId sets the Id field's value.
2977func (s *Entity) SetId(v int64) *Entity {
2978	s.Id = &v
2979	return s
2980}
2981
2982// SetScore sets the Score field's value.
2983func (s *Entity) SetScore(v float64) *Entity {
2984	s.Score = &v
2985	return s
2986}
2987
2988// SetText sets the Text field's value.
2989func (s *Entity) SetText(v string) *Entity {
2990	s.Text = &v
2991	return s
2992}
2993
2994// SetTraits sets the Traits field's value.
2995func (s *Entity) SetTraits(v []*Trait) *Entity {
2996	s.Traits = v
2997	return s
2998}
2999
3000// SetType sets the Type field's value.
3001func (s *Entity) SetType(v string) *Entity {
3002	s.Type = &v
3003	return s
3004}
3005
3006// The detected attributes that relate to an entity. This includes an extracted
3007// segment of the text that is an attribute of an entity, or otherwise related
3008// to an entity. InferICD10CM detects the following attributes: Direction, System,
3009// Organ or Site, and Acuity.
3010type ICD10CMAttribute struct {
3011	_ struct{} `type:"structure"`
3012
3013	// The 0-based character offset in the input text that shows where the attribute
3014	// begins. The offset returns the UTF-8 code point in the string.
3015	BeginOffset *int64 `type:"integer"`
3016
3017	// The 0-based character offset in the input text that shows where the attribute
3018	// ends. The offset returns the UTF-8 code point in the string.
3019	EndOffset *int64 `type:"integer"`
3020
3021	// The numeric identifier for this attribute. This is a monotonically increasing
3022	// id unique within this response rather than a global unique identifier.
3023	Id *int64 `type:"integer"`
3024
3025	// The level of confidence that Amazon Comprehend Medical has that this attribute
3026	// is correctly related to this entity.
3027	RelationshipScore *float64 `type:"float"`
3028
3029	// The level of confidence that Amazon Comprehend Medical has that the segment
3030	// of text is correctly recognized as an attribute.
3031	Score *float64 `type:"float"`
3032
3033	// The segment of input text which contains the detected attribute.
3034	Text *string `min:"1" type:"string"`
3035
3036	// The contextual information for the attribute. The traits recognized by InferICD10CM
3037	// are DIAGNOSIS, SIGN, SYMPTOM, and NEGATION.
3038	Traits []*ICD10CMTrait `type:"list"`
3039
3040	// The type of attribute. InferICD10CM detects entities of the type DX_NAME.
3041	Type *string `type:"string" enum:"ICD10CMAttributeType"`
3042}
3043
3044// String returns the string representation
3045func (s ICD10CMAttribute) String() string {
3046	return awsutil.Prettify(s)
3047}
3048
3049// GoString returns the string representation
3050func (s ICD10CMAttribute) GoString() string {
3051	return s.String()
3052}
3053
3054// SetBeginOffset sets the BeginOffset field's value.
3055func (s *ICD10CMAttribute) SetBeginOffset(v int64) *ICD10CMAttribute {
3056	s.BeginOffset = &v
3057	return s
3058}
3059
3060// SetEndOffset sets the EndOffset field's value.
3061func (s *ICD10CMAttribute) SetEndOffset(v int64) *ICD10CMAttribute {
3062	s.EndOffset = &v
3063	return s
3064}
3065
3066// SetId sets the Id field's value.
3067func (s *ICD10CMAttribute) SetId(v int64) *ICD10CMAttribute {
3068	s.Id = &v
3069	return s
3070}
3071
3072// SetRelationshipScore sets the RelationshipScore field's value.
3073func (s *ICD10CMAttribute) SetRelationshipScore(v float64) *ICD10CMAttribute {
3074	s.RelationshipScore = &v
3075	return s
3076}
3077
3078// SetScore sets the Score field's value.
3079func (s *ICD10CMAttribute) SetScore(v float64) *ICD10CMAttribute {
3080	s.Score = &v
3081	return s
3082}
3083
3084// SetText sets the Text field's value.
3085func (s *ICD10CMAttribute) SetText(v string) *ICD10CMAttribute {
3086	s.Text = &v
3087	return s
3088}
3089
3090// SetTraits sets the Traits field's value.
3091func (s *ICD10CMAttribute) SetTraits(v []*ICD10CMTrait) *ICD10CMAttribute {
3092	s.Traits = v
3093	return s
3094}
3095
3096// SetType sets the Type field's value.
3097func (s *ICD10CMAttribute) SetType(v string) *ICD10CMAttribute {
3098	s.Type = &v
3099	return s
3100}
3101
3102// The ICD-10-CM concepts that the entity could refer to, along with a score
3103// indicating the likelihood of the match.
3104type ICD10CMConcept struct {
3105	_ struct{} `type:"structure"`
3106
3107	// The ICD-10-CM code that identifies the concept found in the knowledge base
3108	// from the Centers for Disease Control.
3109	Code *string `min:"1" type:"string"`
3110
3111	// The long description of the ICD-10-CM code in the ontology.
3112	Description *string `min:"1" type:"string"`
3113
3114	// The level of confidence that Amazon Comprehend Medical has that the entity
3115	// is accurately linked to an ICD-10-CM concept.
3116	Score *float64 `type:"float"`
3117}
3118
3119// String returns the string representation
3120func (s ICD10CMConcept) String() string {
3121	return awsutil.Prettify(s)
3122}
3123
3124// GoString returns the string representation
3125func (s ICD10CMConcept) GoString() string {
3126	return s.String()
3127}
3128
3129// SetCode sets the Code field's value.
3130func (s *ICD10CMConcept) SetCode(v string) *ICD10CMConcept {
3131	s.Code = &v
3132	return s
3133}
3134
3135// SetDescription sets the Description field's value.
3136func (s *ICD10CMConcept) SetDescription(v string) *ICD10CMConcept {
3137	s.Description = &v
3138	return s
3139}
3140
3141// SetScore sets the Score field's value.
3142func (s *ICD10CMConcept) SetScore(v float64) *ICD10CMConcept {
3143	s.Score = &v
3144	return s
3145}
3146
3147// The collection of medical entities extracted from the input text and their
3148// associated information. For each entity, the response provides the entity
3149// text, the entity category, where the entity text begins and ends, and the
3150// level of confidence that Amazon Comprehend Medical has in the detection and
3151// analysis. Attributes and traits of the entity are also returned.
3152type ICD10CMEntity struct {
3153	_ struct{} `type:"structure"`
3154
3155	// The detected attributes that relate to the entity. An extracted segment of
3156	// the text that is an attribute of an entity, or otherwise related to an entity,
3157	// such as the nature of a medical condition.
3158	Attributes []*ICD10CMAttribute `type:"list"`
3159
3160	// The 0-based character offset in the input text that shows where the entity
3161	// begins. The offset returns the UTF-8 code point in the string.
3162	BeginOffset *int64 `type:"integer"`
3163
3164	// The category of the entity. InferICD10CM detects entities in the MEDICAL_CONDITION
3165	// category.
3166	Category *string `type:"string" enum:"ICD10CMEntityCategory"`
3167
3168	// The 0-based character offset in the input text that shows where the entity
3169	// ends. The offset returns the UTF-8 code point in the string.
3170	EndOffset *int64 `type:"integer"`
3171
3172	// The ICD-10-CM concepts that the entity could refer to, along with a score
3173	// indicating the likelihood of the match.
3174	ICD10CMConcepts []*ICD10CMConcept `type:"list"`
3175
3176	// The numeric identifier for the entity. This is a monotonically increasing
3177	// id unique within this response rather than a global unique identifier.
3178	Id *int64 `type:"integer"`
3179
3180	// The level of confidence that Amazon Comprehend Medical has in the accuracy
3181	// of the detection.
3182	Score *float64 `type:"float"`
3183
3184	// The segment of input text that is matched to the detected entity.
3185	Text *string `min:"1" type:"string"`
3186
3187	// Provides Contextual information for the entity. The traits recognized by
3188	// InferICD10CM are DIAGNOSIS, SIGN, SYMPTOM, and NEGATION.
3189	Traits []*ICD10CMTrait `type:"list"`
3190
3191	// Describes the specific type of entity with category of entities. InferICD10CM
3192	// detects entities of the type DX_NAME.
3193	Type *string `type:"string" enum:"ICD10CMEntityType"`
3194}
3195
3196// String returns the string representation
3197func (s ICD10CMEntity) String() string {
3198	return awsutil.Prettify(s)
3199}
3200
3201// GoString returns the string representation
3202func (s ICD10CMEntity) GoString() string {
3203	return s.String()
3204}
3205
3206// SetAttributes sets the Attributes field's value.
3207func (s *ICD10CMEntity) SetAttributes(v []*ICD10CMAttribute) *ICD10CMEntity {
3208	s.Attributes = v
3209	return s
3210}
3211
3212// SetBeginOffset sets the BeginOffset field's value.
3213func (s *ICD10CMEntity) SetBeginOffset(v int64) *ICD10CMEntity {
3214	s.BeginOffset = &v
3215	return s
3216}
3217
3218// SetCategory sets the Category field's value.
3219func (s *ICD10CMEntity) SetCategory(v string) *ICD10CMEntity {
3220	s.Category = &v
3221	return s
3222}
3223
3224// SetEndOffset sets the EndOffset field's value.
3225func (s *ICD10CMEntity) SetEndOffset(v int64) *ICD10CMEntity {
3226	s.EndOffset = &v
3227	return s
3228}
3229
3230// SetICD10CMConcepts sets the ICD10CMConcepts field's value.
3231func (s *ICD10CMEntity) SetICD10CMConcepts(v []*ICD10CMConcept) *ICD10CMEntity {
3232	s.ICD10CMConcepts = v
3233	return s
3234}
3235
3236// SetId sets the Id field's value.
3237func (s *ICD10CMEntity) SetId(v int64) *ICD10CMEntity {
3238	s.Id = &v
3239	return s
3240}
3241
3242// SetScore sets the Score field's value.
3243func (s *ICD10CMEntity) SetScore(v float64) *ICD10CMEntity {
3244	s.Score = &v
3245	return s
3246}
3247
3248// SetText sets the Text field's value.
3249func (s *ICD10CMEntity) SetText(v string) *ICD10CMEntity {
3250	s.Text = &v
3251	return s
3252}
3253
3254// SetTraits sets the Traits field's value.
3255func (s *ICD10CMEntity) SetTraits(v []*ICD10CMTrait) *ICD10CMEntity {
3256	s.Traits = v
3257	return s
3258}
3259
3260// SetType sets the Type field's value.
3261func (s *ICD10CMEntity) SetType(v string) *ICD10CMEntity {
3262	s.Type = &v
3263	return s
3264}
3265
3266// Contextual information for the entity. The traits recognized by InferICD10CM
3267// are DIAGNOSIS, SIGN, SYMPTOM, and NEGATION.
3268type ICD10CMTrait struct {
3269	_ struct{} `type:"structure"`
3270
3271	// Provides a name or contextual description about the trait.
3272	Name *string `type:"string" enum:"ICD10CMTraitName"`
3273
3274	// The level of confidence that Amazon Comprehend Medical has that the segment
3275	// of text is correctly recognized as a trait.
3276	Score *float64 `type:"float"`
3277}
3278
3279// String returns the string representation
3280func (s ICD10CMTrait) String() string {
3281	return awsutil.Prettify(s)
3282}
3283
3284// GoString returns the string representation
3285func (s ICD10CMTrait) GoString() string {
3286	return s.String()
3287}
3288
3289// SetName sets the Name field's value.
3290func (s *ICD10CMTrait) SetName(v string) *ICD10CMTrait {
3291	s.Name = &v
3292	return s
3293}
3294
3295// SetScore sets the Score field's value.
3296func (s *ICD10CMTrait) SetScore(v float64) *ICD10CMTrait {
3297	s.Score = &v
3298	return s
3299}
3300
3301type InferICD10CMInput struct {
3302	_ struct{} `type:"structure"`
3303
3304	// The input text used for analysis. The input for InferICD10CM is a string
3305	// from 1 to 10000 characters.
3306	//
3307	// Text is a required field
3308	Text *string `min:"1" type:"string" required:"true"`
3309}
3310
3311// String returns the string representation
3312func (s InferICD10CMInput) String() string {
3313	return awsutil.Prettify(s)
3314}
3315
3316// GoString returns the string representation
3317func (s InferICD10CMInput) GoString() string {
3318	return s.String()
3319}
3320
3321// Validate inspects the fields of the type to determine if they are valid.
3322func (s *InferICD10CMInput) Validate() error {
3323	invalidParams := request.ErrInvalidParams{Context: "InferICD10CMInput"}
3324	if s.Text == nil {
3325		invalidParams.Add(request.NewErrParamRequired("Text"))
3326	}
3327	if s.Text != nil && len(*s.Text) < 1 {
3328		invalidParams.Add(request.NewErrParamMinLen("Text", 1))
3329	}
3330
3331	if invalidParams.Len() > 0 {
3332		return invalidParams
3333	}
3334	return nil
3335}
3336
3337// SetText sets the Text field's value.
3338func (s *InferICD10CMInput) SetText(v string) *InferICD10CMInput {
3339	s.Text = &v
3340	return s
3341}
3342
3343type InferICD10CMOutput struct {
3344	_ struct{} `type:"structure"`
3345
3346	// The medical conditions detected in the text linked to ICD-10-CM concepts.
3347	// If the action is successful, the service sends back an HTTP 200 response,
3348	// as well as the entities detected.
3349	//
3350	// Entities is a required field
3351	Entities []*ICD10CMEntity `type:"list" required:"true"`
3352
3353	// The version of the model used to analyze the documents, in the format n.n.n
3354	// You can use this information to track the model used for a particular batch
3355	// of documents.
3356	ModelVersion *string `min:"1" type:"string"`
3357
3358	// If the result of the previous request to InferICD10CM was truncated, include
3359	// the PaginationToken to fetch the next page of medical condition entities.
3360	PaginationToken *string `min:"1" type:"string"`
3361}
3362
3363// String returns the string representation
3364func (s InferICD10CMOutput) String() string {
3365	return awsutil.Prettify(s)
3366}
3367
3368// GoString returns the string representation
3369func (s InferICD10CMOutput) GoString() string {
3370	return s.String()
3371}
3372
3373// SetEntities sets the Entities field's value.
3374func (s *InferICD10CMOutput) SetEntities(v []*ICD10CMEntity) *InferICD10CMOutput {
3375	s.Entities = v
3376	return s
3377}
3378
3379// SetModelVersion sets the ModelVersion field's value.
3380func (s *InferICD10CMOutput) SetModelVersion(v string) *InferICD10CMOutput {
3381	s.ModelVersion = &v
3382	return s
3383}
3384
3385// SetPaginationToken sets the PaginationToken field's value.
3386func (s *InferICD10CMOutput) SetPaginationToken(v string) *InferICD10CMOutput {
3387	s.PaginationToken = &v
3388	return s
3389}
3390
3391type InferRxNormInput struct {
3392	_ struct{} `type:"structure"`
3393
3394	// The input text used for analysis. The input for InferRxNorm is a string from
3395	// 1 to 10000 characters.
3396	//
3397	// Text is a required field
3398	Text *string `min:"1" type:"string" required:"true"`
3399}
3400
3401// String returns the string representation
3402func (s InferRxNormInput) String() string {
3403	return awsutil.Prettify(s)
3404}
3405
3406// GoString returns the string representation
3407func (s InferRxNormInput) GoString() string {
3408	return s.String()
3409}
3410
3411// Validate inspects the fields of the type to determine if they are valid.
3412func (s *InferRxNormInput) Validate() error {
3413	invalidParams := request.ErrInvalidParams{Context: "InferRxNormInput"}
3414	if s.Text == nil {
3415		invalidParams.Add(request.NewErrParamRequired("Text"))
3416	}
3417	if s.Text != nil && len(*s.Text) < 1 {
3418		invalidParams.Add(request.NewErrParamMinLen("Text", 1))
3419	}
3420
3421	if invalidParams.Len() > 0 {
3422		return invalidParams
3423	}
3424	return nil
3425}
3426
3427// SetText sets the Text field's value.
3428func (s *InferRxNormInput) SetText(v string) *InferRxNormInput {
3429	s.Text = &v
3430	return s
3431}
3432
3433type InferRxNormOutput struct {
3434	_ struct{} `type:"structure"`
3435
3436	// The medication entities detected in the text linked to RxNorm concepts. If
3437	// the action is successful, the service sends back an HTTP 200 response, as
3438	// well as the entities detected.
3439	//
3440	// Entities is a required field
3441	Entities []*RxNormEntity `type:"list" required:"true"`
3442
3443	// The version of the model used to analyze the documents, in the format n.n.n
3444	// You can use this information to track the model used for a particular batch
3445	// of documents.
3446	ModelVersion *string `min:"1" type:"string"`
3447
3448	// If the result of the previous request to InferRxNorm was truncated, include
3449	// the PaginationToken to fetch the next page of medication entities.
3450	PaginationToken *string `min:"1" type:"string"`
3451}
3452
3453// String returns the string representation
3454func (s InferRxNormOutput) String() string {
3455	return awsutil.Prettify(s)
3456}
3457
3458// GoString returns the string representation
3459func (s InferRxNormOutput) GoString() string {
3460	return s.String()
3461}
3462
3463// SetEntities sets the Entities field's value.
3464func (s *InferRxNormOutput) SetEntities(v []*RxNormEntity) *InferRxNormOutput {
3465	s.Entities = v
3466	return s
3467}
3468
3469// SetModelVersion sets the ModelVersion field's value.
3470func (s *InferRxNormOutput) SetModelVersion(v string) *InferRxNormOutput {
3471	s.ModelVersion = &v
3472	return s
3473}
3474
3475// SetPaginationToken sets the PaginationToken field's value.
3476func (s *InferRxNormOutput) SetPaginationToken(v string) *InferRxNormOutput {
3477	s.PaginationToken = &v
3478	return s
3479}
3480
3481// The input properties for an entities detection job. This includes the name
3482// of the S3 bucket and the path to the files to be analyzed. See batch-manifest
3483// for more information.
3484type InputDataConfig struct {
3485	_ struct{} `type:"structure"`
3486
3487	// The URI of the S3 bucket that contains the input data. The bucket must be
3488	// in the same region as the API endpoint that you are calling.
3489	//
3490	// Each file in the document collection must be less than 40 KB. You can store
3491	// a maximum of 30 GB in the bucket.
3492	//
3493	// S3Bucket is a required field
3494	S3Bucket *string `min:"3" type:"string" required:"true"`
3495
3496	// The path to the input data files in the S3 bucket.
3497	S3Key *string `type:"string"`
3498}
3499
3500// String returns the string representation
3501func (s InputDataConfig) String() string {
3502	return awsutil.Prettify(s)
3503}
3504
3505// GoString returns the string representation
3506func (s InputDataConfig) GoString() string {
3507	return s.String()
3508}
3509
3510// Validate inspects the fields of the type to determine if they are valid.
3511func (s *InputDataConfig) Validate() error {
3512	invalidParams := request.ErrInvalidParams{Context: "InputDataConfig"}
3513	if s.S3Bucket == nil {
3514		invalidParams.Add(request.NewErrParamRequired("S3Bucket"))
3515	}
3516	if s.S3Bucket != nil && len(*s.S3Bucket) < 3 {
3517		invalidParams.Add(request.NewErrParamMinLen("S3Bucket", 3))
3518	}
3519
3520	if invalidParams.Len() > 0 {
3521		return invalidParams
3522	}
3523	return nil
3524}
3525
3526// SetS3Bucket sets the S3Bucket field's value.
3527func (s *InputDataConfig) SetS3Bucket(v string) *InputDataConfig {
3528	s.S3Bucket = &v
3529	return s
3530}
3531
3532// SetS3Key sets the S3Key field's value.
3533func (s *InputDataConfig) SetS3Key(v string) *InputDataConfig {
3534	s.S3Key = &v
3535	return s
3536}
3537
3538// An internal server error occurred. Retry your request.
3539type InternalServerException struct {
3540	_            struct{}                  `type:"structure"`
3541	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
3542
3543	Message_ *string `locationName:"Message" min:"1" type:"string"`
3544}
3545
3546// String returns the string representation
3547func (s InternalServerException) String() string {
3548	return awsutil.Prettify(s)
3549}
3550
3551// GoString returns the string representation
3552func (s InternalServerException) GoString() string {
3553	return s.String()
3554}
3555
3556func newErrorInternalServerException(v protocol.ResponseMetadata) error {
3557	return &InternalServerException{
3558		RespMetadata: v,
3559	}
3560}
3561
3562// Code returns the exception type name.
3563func (s *InternalServerException) Code() string {
3564	return "InternalServerException"
3565}
3566
3567// Message returns the exception's message.
3568func (s *InternalServerException) Message() string {
3569	if s.Message_ != nil {
3570		return *s.Message_
3571	}
3572	return ""
3573}
3574
3575// OrigErr always returns nil, satisfies awserr.Error interface.
3576func (s *InternalServerException) OrigErr() error {
3577	return nil
3578}
3579
3580func (s *InternalServerException) Error() string {
3581	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
3582}
3583
3584// Status code returns the HTTP status code for the request's response error.
3585func (s *InternalServerException) StatusCode() int {
3586	return s.RespMetadata.StatusCode
3587}
3588
3589// RequestID returns the service's response RequestID for request.
3590func (s *InternalServerException) RequestID() string {
3591	return s.RespMetadata.RequestID
3592}
3593
3594// The input text was not in valid UTF-8 character encoding. Check your text
3595// then retry your request.
3596type InvalidEncodingException struct {
3597	_            struct{}                  `type:"structure"`
3598	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
3599
3600	Message_ *string `locationName:"Message" min:"1" type:"string"`
3601}
3602
3603// String returns the string representation
3604func (s InvalidEncodingException) String() string {
3605	return awsutil.Prettify(s)
3606}
3607
3608// GoString returns the string representation
3609func (s InvalidEncodingException) GoString() string {
3610	return s.String()
3611}
3612
3613func newErrorInvalidEncodingException(v protocol.ResponseMetadata) error {
3614	return &InvalidEncodingException{
3615		RespMetadata: v,
3616	}
3617}
3618
3619// Code returns the exception type name.
3620func (s *InvalidEncodingException) Code() string {
3621	return "InvalidEncodingException"
3622}
3623
3624// Message returns the exception's message.
3625func (s *InvalidEncodingException) Message() string {
3626	if s.Message_ != nil {
3627		return *s.Message_
3628	}
3629	return ""
3630}
3631
3632// OrigErr always returns nil, satisfies awserr.Error interface.
3633func (s *InvalidEncodingException) OrigErr() error {
3634	return nil
3635}
3636
3637func (s *InvalidEncodingException) Error() string {
3638	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
3639}
3640
3641// Status code returns the HTTP status code for the request's response error.
3642func (s *InvalidEncodingException) StatusCode() int {
3643	return s.RespMetadata.StatusCode
3644}
3645
3646// RequestID returns the service's response RequestID for request.
3647func (s *InvalidEncodingException) RequestID() string {
3648	return s.RespMetadata.RequestID
3649}
3650
3651// The request that you made is invalid. Check your request to determine why
3652// it's invalid and then retry the request.
3653type InvalidRequestException struct {
3654	_            struct{}                  `type:"structure"`
3655	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
3656
3657	Message_ *string `locationName:"Message" min:"1" type:"string"`
3658}
3659
3660// String returns the string representation
3661func (s InvalidRequestException) String() string {
3662	return awsutil.Prettify(s)
3663}
3664
3665// GoString returns the string representation
3666func (s InvalidRequestException) GoString() string {
3667	return s.String()
3668}
3669
3670func newErrorInvalidRequestException(v protocol.ResponseMetadata) error {
3671	return &InvalidRequestException{
3672		RespMetadata: v,
3673	}
3674}
3675
3676// Code returns the exception type name.
3677func (s *InvalidRequestException) Code() string {
3678	return "InvalidRequestException"
3679}
3680
3681// Message returns the exception's message.
3682func (s *InvalidRequestException) Message() string {
3683	if s.Message_ != nil {
3684		return *s.Message_
3685	}
3686	return ""
3687}
3688
3689// OrigErr always returns nil, satisfies awserr.Error interface.
3690func (s *InvalidRequestException) OrigErr() error {
3691	return nil
3692}
3693
3694func (s *InvalidRequestException) Error() string {
3695	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
3696}
3697
3698// Status code returns the HTTP status code for the request's response error.
3699func (s *InvalidRequestException) StatusCode() int {
3700	return s.RespMetadata.StatusCode
3701}
3702
3703// RequestID returns the service's response RequestID for request.
3704func (s *InvalidRequestException) RequestID() string {
3705	return s.RespMetadata.RequestID
3706}
3707
3708type ListEntitiesDetectionV2JobsInput struct {
3709	_ struct{} `type:"structure"`
3710
3711	// Filters the jobs that are returned. You can filter jobs based on their names,
3712	// status, or the date and time that they were submitted. You can only set one
3713	// filter at a time.
3714	Filter *ComprehendMedicalAsyncJobFilter `type:"structure"`
3715
3716	// The maximum number of results to return in each page. The default is 100.
3717	MaxResults *int64 `min:"1" type:"integer"`
3718
3719	// Identifies the next page of results to return.
3720	NextToken *string `min:"1" type:"string"`
3721}
3722
3723// String returns the string representation
3724func (s ListEntitiesDetectionV2JobsInput) String() string {
3725	return awsutil.Prettify(s)
3726}
3727
3728// GoString returns the string representation
3729func (s ListEntitiesDetectionV2JobsInput) GoString() string {
3730	return s.String()
3731}
3732
3733// Validate inspects the fields of the type to determine if they are valid.
3734func (s *ListEntitiesDetectionV2JobsInput) Validate() error {
3735	invalidParams := request.ErrInvalidParams{Context: "ListEntitiesDetectionV2JobsInput"}
3736	if s.MaxResults != nil && *s.MaxResults < 1 {
3737		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
3738	}
3739	if s.NextToken != nil && len(*s.NextToken) < 1 {
3740		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
3741	}
3742	if s.Filter != nil {
3743		if err := s.Filter.Validate(); err != nil {
3744			invalidParams.AddNested("Filter", err.(request.ErrInvalidParams))
3745		}
3746	}
3747
3748	if invalidParams.Len() > 0 {
3749		return invalidParams
3750	}
3751	return nil
3752}
3753
3754// SetFilter sets the Filter field's value.
3755func (s *ListEntitiesDetectionV2JobsInput) SetFilter(v *ComprehendMedicalAsyncJobFilter) *ListEntitiesDetectionV2JobsInput {
3756	s.Filter = v
3757	return s
3758}
3759
3760// SetMaxResults sets the MaxResults field's value.
3761func (s *ListEntitiesDetectionV2JobsInput) SetMaxResults(v int64) *ListEntitiesDetectionV2JobsInput {
3762	s.MaxResults = &v
3763	return s
3764}
3765
3766// SetNextToken sets the NextToken field's value.
3767func (s *ListEntitiesDetectionV2JobsInput) SetNextToken(v string) *ListEntitiesDetectionV2JobsInput {
3768	s.NextToken = &v
3769	return s
3770}
3771
3772type ListEntitiesDetectionV2JobsOutput struct {
3773	_ struct{} `type:"structure"`
3774
3775	// A list containing the properties of each job returned.
3776	ComprehendMedicalAsyncJobPropertiesList []*ComprehendMedicalAsyncJobProperties `type:"list"`
3777
3778	// Identifies the next page of results to return.
3779	NextToken *string `min:"1" type:"string"`
3780}
3781
3782// String returns the string representation
3783func (s ListEntitiesDetectionV2JobsOutput) String() string {
3784	return awsutil.Prettify(s)
3785}
3786
3787// GoString returns the string representation
3788func (s ListEntitiesDetectionV2JobsOutput) GoString() string {
3789	return s.String()
3790}
3791
3792// SetComprehendMedicalAsyncJobPropertiesList sets the ComprehendMedicalAsyncJobPropertiesList field's value.
3793func (s *ListEntitiesDetectionV2JobsOutput) SetComprehendMedicalAsyncJobPropertiesList(v []*ComprehendMedicalAsyncJobProperties) *ListEntitiesDetectionV2JobsOutput {
3794	s.ComprehendMedicalAsyncJobPropertiesList = v
3795	return s
3796}
3797
3798// SetNextToken sets the NextToken field's value.
3799func (s *ListEntitiesDetectionV2JobsOutput) SetNextToken(v string) *ListEntitiesDetectionV2JobsOutput {
3800	s.NextToken = &v
3801	return s
3802}
3803
3804type ListICD10CMInferenceJobsInput struct {
3805	_ struct{} `type:"structure"`
3806
3807	// Filters the jobs that are returned. You can filter jobs based on their names,
3808	// status, or the date and time that they were submitted. You can only set one
3809	// filter at a time.
3810	Filter *ComprehendMedicalAsyncJobFilter `type:"structure"`
3811
3812	// The maximum number of results to return in each page. The default is 100.
3813	MaxResults *int64 `min:"1" type:"integer"`
3814
3815	// Identifies the next page of results to return.
3816	NextToken *string `min:"1" type:"string"`
3817}
3818
3819// String returns the string representation
3820func (s ListICD10CMInferenceJobsInput) String() string {
3821	return awsutil.Prettify(s)
3822}
3823
3824// GoString returns the string representation
3825func (s ListICD10CMInferenceJobsInput) GoString() string {
3826	return s.String()
3827}
3828
3829// Validate inspects the fields of the type to determine if they are valid.
3830func (s *ListICD10CMInferenceJobsInput) Validate() error {
3831	invalidParams := request.ErrInvalidParams{Context: "ListICD10CMInferenceJobsInput"}
3832	if s.MaxResults != nil && *s.MaxResults < 1 {
3833		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
3834	}
3835	if s.NextToken != nil && len(*s.NextToken) < 1 {
3836		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
3837	}
3838	if s.Filter != nil {
3839		if err := s.Filter.Validate(); err != nil {
3840			invalidParams.AddNested("Filter", err.(request.ErrInvalidParams))
3841		}
3842	}
3843
3844	if invalidParams.Len() > 0 {
3845		return invalidParams
3846	}
3847	return nil
3848}
3849
3850// SetFilter sets the Filter field's value.
3851func (s *ListICD10CMInferenceJobsInput) SetFilter(v *ComprehendMedicalAsyncJobFilter) *ListICD10CMInferenceJobsInput {
3852	s.Filter = v
3853	return s
3854}
3855
3856// SetMaxResults sets the MaxResults field's value.
3857func (s *ListICD10CMInferenceJobsInput) SetMaxResults(v int64) *ListICD10CMInferenceJobsInput {
3858	s.MaxResults = &v
3859	return s
3860}
3861
3862// SetNextToken sets the NextToken field's value.
3863func (s *ListICD10CMInferenceJobsInput) SetNextToken(v string) *ListICD10CMInferenceJobsInput {
3864	s.NextToken = &v
3865	return s
3866}
3867
3868type ListICD10CMInferenceJobsOutput struct {
3869	_ struct{} `type:"structure"`
3870
3871	// A list containing the properties of each job that is returned.
3872	ComprehendMedicalAsyncJobPropertiesList []*ComprehendMedicalAsyncJobProperties `type:"list"`
3873
3874	// Identifies the next page of results to return.
3875	NextToken *string `min:"1" type:"string"`
3876}
3877
3878// String returns the string representation
3879func (s ListICD10CMInferenceJobsOutput) String() string {
3880	return awsutil.Prettify(s)
3881}
3882
3883// GoString returns the string representation
3884func (s ListICD10CMInferenceJobsOutput) GoString() string {
3885	return s.String()
3886}
3887
3888// SetComprehendMedicalAsyncJobPropertiesList sets the ComprehendMedicalAsyncJobPropertiesList field's value.
3889func (s *ListICD10CMInferenceJobsOutput) SetComprehendMedicalAsyncJobPropertiesList(v []*ComprehendMedicalAsyncJobProperties) *ListICD10CMInferenceJobsOutput {
3890	s.ComprehendMedicalAsyncJobPropertiesList = v
3891	return s
3892}
3893
3894// SetNextToken sets the NextToken field's value.
3895func (s *ListICD10CMInferenceJobsOutput) SetNextToken(v string) *ListICD10CMInferenceJobsOutput {
3896	s.NextToken = &v
3897	return s
3898}
3899
3900type ListPHIDetectionJobsInput struct {
3901	_ struct{} `type:"structure"`
3902
3903	// Filters the jobs that are returned. You can filter jobs based on their names,
3904	// status, or the date and time that they were submitted. You can only set one
3905	// filter at a time.
3906	Filter *ComprehendMedicalAsyncJobFilter `type:"structure"`
3907
3908	// The maximum number of results to return in each page. The default is 100.
3909	MaxResults *int64 `min:"1" type:"integer"`
3910
3911	// Identifies the next page of results to return.
3912	NextToken *string `min:"1" type:"string"`
3913}
3914
3915// String returns the string representation
3916func (s ListPHIDetectionJobsInput) String() string {
3917	return awsutil.Prettify(s)
3918}
3919
3920// GoString returns the string representation
3921func (s ListPHIDetectionJobsInput) GoString() string {
3922	return s.String()
3923}
3924
3925// Validate inspects the fields of the type to determine if they are valid.
3926func (s *ListPHIDetectionJobsInput) Validate() error {
3927	invalidParams := request.ErrInvalidParams{Context: "ListPHIDetectionJobsInput"}
3928	if s.MaxResults != nil && *s.MaxResults < 1 {
3929		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
3930	}
3931	if s.NextToken != nil && len(*s.NextToken) < 1 {
3932		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
3933	}
3934	if s.Filter != nil {
3935		if err := s.Filter.Validate(); err != nil {
3936			invalidParams.AddNested("Filter", err.(request.ErrInvalidParams))
3937		}
3938	}
3939
3940	if invalidParams.Len() > 0 {
3941		return invalidParams
3942	}
3943	return nil
3944}
3945
3946// SetFilter sets the Filter field's value.
3947func (s *ListPHIDetectionJobsInput) SetFilter(v *ComprehendMedicalAsyncJobFilter) *ListPHIDetectionJobsInput {
3948	s.Filter = v
3949	return s
3950}
3951
3952// SetMaxResults sets the MaxResults field's value.
3953func (s *ListPHIDetectionJobsInput) SetMaxResults(v int64) *ListPHIDetectionJobsInput {
3954	s.MaxResults = &v
3955	return s
3956}
3957
3958// SetNextToken sets the NextToken field's value.
3959func (s *ListPHIDetectionJobsInput) SetNextToken(v string) *ListPHIDetectionJobsInput {
3960	s.NextToken = &v
3961	return s
3962}
3963
3964type ListPHIDetectionJobsOutput struct {
3965	_ struct{} `type:"structure"`
3966
3967	// A list containing the properties of each job returned.
3968	ComprehendMedicalAsyncJobPropertiesList []*ComprehendMedicalAsyncJobProperties `type:"list"`
3969
3970	// Identifies the next page of results to return.
3971	NextToken *string `min:"1" type:"string"`
3972}
3973
3974// String returns the string representation
3975func (s ListPHIDetectionJobsOutput) String() string {
3976	return awsutil.Prettify(s)
3977}
3978
3979// GoString returns the string representation
3980func (s ListPHIDetectionJobsOutput) GoString() string {
3981	return s.String()
3982}
3983
3984// SetComprehendMedicalAsyncJobPropertiesList sets the ComprehendMedicalAsyncJobPropertiesList field's value.
3985func (s *ListPHIDetectionJobsOutput) SetComprehendMedicalAsyncJobPropertiesList(v []*ComprehendMedicalAsyncJobProperties) *ListPHIDetectionJobsOutput {
3986	s.ComprehendMedicalAsyncJobPropertiesList = v
3987	return s
3988}
3989
3990// SetNextToken sets the NextToken field's value.
3991func (s *ListPHIDetectionJobsOutput) SetNextToken(v string) *ListPHIDetectionJobsOutput {
3992	s.NextToken = &v
3993	return s
3994}
3995
3996type ListRxNormInferenceJobsInput struct {
3997	_ struct{} `type:"structure"`
3998
3999	// Filters the jobs that are returned. You can filter jobs based on their names,
4000	// status, or the date and time that they were submitted. You can only set one
4001	// filter at a time.
4002	Filter *ComprehendMedicalAsyncJobFilter `type:"structure"`
4003
4004	// Identifies the next page of results to return.
4005	MaxResults *int64 `min:"1" type:"integer"`
4006
4007	// Identifies the next page of results to return.
4008	NextToken *string `min:"1" type:"string"`
4009}
4010
4011// String returns the string representation
4012func (s ListRxNormInferenceJobsInput) String() string {
4013	return awsutil.Prettify(s)
4014}
4015
4016// GoString returns the string representation
4017func (s ListRxNormInferenceJobsInput) GoString() string {
4018	return s.String()
4019}
4020
4021// Validate inspects the fields of the type to determine if they are valid.
4022func (s *ListRxNormInferenceJobsInput) Validate() error {
4023	invalidParams := request.ErrInvalidParams{Context: "ListRxNormInferenceJobsInput"}
4024	if s.MaxResults != nil && *s.MaxResults < 1 {
4025		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
4026	}
4027	if s.NextToken != nil && len(*s.NextToken) < 1 {
4028		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
4029	}
4030	if s.Filter != nil {
4031		if err := s.Filter.Validate(); err != nil {
4032			invalidParams.AddNested("Filter", err.(request.ErrInvalidParams))
4033		}
4034	}
4035
4036	if invalidParams.Len() > 0 {
4037		return invalidParams
4038	}
4039	return nil
4040}
4041
4042// SetFilter sets the Filter field's value.
4043func (s *ListRxNormInferenceJobsInput) SetFilter(v *ComprehendMedicalAsyncJobFilter) *ListRxNormInferenceJobsInput {
4044	s.Filter = v
4045	return s
4046}
4047
4048// SetMaxResults sets the MaxResults field's value.
4049func (s *ListRxNormInferenceJobsInput) SetMaxResults(v int64) *ListRxNormInferenceJobsInput {
4050	s.MaxResults = &v
4051	return s
4052}
4053
4054// SetNextToken sets the NextToken field's value.
4055func (s *ListRxNormInferenceJobsInput) SetNextToken(v string) *ListRxNormInferenceJobsInput {
4056	s.NextToken = &v
4057	return s
4058}
4059
4060type ListRxNormInferenceJobsOutput struct {
4061	_ struct{} `type:"structure"`
4062
4063	// The maximum number of results to return in each page. The default is 100.
4064	ComprehendMedicalAsyncJobPropertiesList []*ComprehendMedicalAsyncJobProperties `type:"list"`
4065
4066	// Identifies the next page of results to return.
4067	NextToken *string `min:"1" type:"string"`
4068}
4069
4070// String returns the string representation
4071func (s ListRxNormInferenceJobsOutput) String() string {
4072	return awsutil.Prettify(s)
4073}
4074
4075// GoString returns the string representation
4076func (s ListRxNormInferenceJobsOutput) GoString() string {
4077	return s.String()
4078}
4079
4080// SetComprehendMedicalAsyncJobPropertiesList sets the ComprehendMedicalAsyncJobPropertiesList field's value.
4081func (s *ListRxNormInferenceJobsOutput) SetComprehendMedicalAsyncJobPropertiesList(v []*ComprehendMedicalAsyncJobProperties) *ListRxNormInferenceJobsOutput {
4082	s.ComprehendMedicalAsyncJobPropertiesList = v
4083	return s
4084}
4085
4086// SetNextToken sets the NextToken field's value.
4087func (s *ListRxNormInferenceJobsOutput) SetNextToken(v string) *ListRxNormInferenceJobsOutput {
4088	s.NextToken = &v
4089	return s
4090}
4091
4092// The output properties for a detection job.
4093type OutputDataConfig struct {
4094	_ struct{} `type:"structure"`
4095
4096	// When you use the OutputDataConfig object with asynchronous operations, you
4097	// specify the Amazon S3 location where you want to write the output data. The
4098	// URI must be in the same region as the API endpoint that you are calling.
4099	// The location is used as the prefix for the actual location of the output.
4100	//
4101	// S3Bucket is a required field
4102	S3Bucket *string `min:"3" type:"string" required:"true"`
4103
4104	// The path to the output data files in the S3 bucket. Amazon Comprehend Medical
4105	// creates an output directory using the job ID so that the output from one
4106	// job does not overwrite the output of another.
4107	S3Key *string `type:"string"`
4108}
4109
4110// String returns the string representation
4111func (s OutputDataConfig) String() string {
4112	return awsutil.Prettify(s)
4113}
4114
4115// GoString returns the string representation
4116func (s OutputDataConfig) GoString() string {
4117	return s.String()
4118}
4119
4120// Validate inspects the fields of the type to determine if they are valid.
4121func (s *OutputDataConfig) Validate() error {
4122	invalidParams := request.ErrInvalidParams{Context: "OutputDataConfig"}
4123	if s.S3Bucket == nil {
4124		invalidParams.Add(request.NewErrParamRequired("S3Bucket"))
4125	}
4126	if s.S3Bucket != nil && len(*s.S3Bucket) < 3 {
4127		invalidParams.Add(request.NewErrParamMinLen("S3Bucket", 3))
4128	}
4129
4130	if invalidParams.Len() > 0 {
4131		return invalidParams
4132	}
4133	return nil
4134}
4135
4136// SetS3Bucket sets the S3Bucket field's value.
4137func (s *OutputDataConfig) SetS3Bucket(v string) *OutputDataConfig {
4138	s.S3Bucket = &v
4139	return s
4140}
4141
4142// SetS3Key sets the S3Key field's value.
4143func (s *OutputDataConfig) SetS3Key(v string) *OutputDataConfig {
4144	s.S3Key = &v
4145	return s
4146}
4147
4148// The resource identified by the specified Amazon Resource Name (ARN) was not
4149// found. Check the ARN and try your request again.
4150type ResourceNotFoundException struct {
4151	_            struct{}                  `type:"structure"`
4152	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
4153
4154	Message_ *string `locationName:"Message" min:"1" type:"string"`
4155}
4156
4157// String returns the string representation
4158func (s ResourceNotFoundException) String() string {
4159	return awsutil.Prettify(s)
4160}
4161
4162// GoString returns the string representation
4163func (s ResourceNotFoundException) GoString() string {
4164	return s.String()
4165}
4166
4167func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
4168	return &ResourceNotFoundException{
4169		RespMetadata: v,
4170	}
4171}
4172
4173// Code returns the exception type name.
4174func (s *ResourceNotFoundException) Code() string {
4175	return "ResourceNotFoundException"
4176}
4177
4178// Message returns the exception's message.
4179func (s *ResourceNotFoundException) Message() string {
4180	if s.Message_ != nil {
4181		return *s.Message_
4182	}
4183	return ""
4184}
4185
4186// OrigErr always returns nil, satisfies awserr.Error interface.
4187func (s *ResourceNotFoundException) OrigErr() error {
4188	return nil
4189}
4190
4191func (s *ResourceNotFoundException) Error() string {
4192	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
4193}
4194
4195// Status code returns the HTTP status code for the request's response error.
4196func (s *ResourceNotFoundException) StatusCode() int {
4197	return s.RespMetadata.StatusCode
4198}
4199
4200// RequestID returns the service's response RequestID for request.
4201func (s *ResourceNotFoundException) RequestID() string {
4202	return s.RespMetadata.RequestID
4203}
4204
4205// The extracted attributes that relate to this entity. The attributes recognized
4206// by InferRxNorm are DOSAGE, DURATION, FORM, FREQUENCY, RATE, ROUTE_OR_MODE.
4207type RxNormAttribute struct {
4208	_ struct{} `type:"structure"`
4209
4210	// The 0-based character offset in the input text that shows where the attribute
4211	// begins. The offset returns the UTF-8 code point in the string.
4212	BeginOffset *int64 `type:"integer"`
4213
4214	// The 0-based character offset in the input text that shows where the attribute
4215	// ends. The offset returns the UTF-8 code point in the string.
4216	EndOffset *int64 `type:"integer"`
4217
4218	// The numeric identifier for this attribute. This is a monotonically increasing
4219	// id unique within this response rather than a global unique identifier.
4220	Id *int64 `type:"integer"`
4221
4222	// The level of confidence that Amazon Comprehend Medical has that the attribute
4223	// is accurately linked to an entity.
4224	RelationshipScore *float64 `type:"float"`
4225
4226	// The level of confidence that Comprehend Medical has that the segment of text
4227	// is correctly recognized as an attribute.
4228	Score *float64 `type:"float"`
4229
4230	// The segment of input text which corresponds to the detected attribute.
4231	Text *string `min:"1" type:"string"`
4232
4233	// Contextual information for the attribute. InferRxNorm recognizes the trait
4234	// NEGATION for attributes, i.e. that the patient is not taking a specific dose
4235	// or form of a medication.
4236	Traits []*RxNormTrait `type:"list"`
4237
4238	// The type of attribute. The types of attributes recognized by InferRxNorm
4239	// are BRAND_NAME and GENERIC_NAME.
4240	Type *string `type:"string" enum:"RxNormAttributeType"`
4241}
4242
4243// String returns the string representation
4244func (s RxNormAttribute) String() string {
4245	return awsutil.Prettify(s)
4246}
4247
4248// GoString returns the string representation
4249func (s RxNormAttribute) GoString() string {
4250	return s.String()
4251}
4252
4253// SetBeginOffset sets the BeginOffset field's value.
4254func (s *RxNormAttribute) SetBeginOffset(v int64) *RxNormAttribute {
4255	s.BeginOffset = &v
4256	return s
4257}
4258
4259// SetEndOffset sets the EndOffset field's value.
4260func (s *RxNormAttribute) SetEndOffset(v int64) *RxNormAttribute {
4261	s.EndOffset = &v
4262	return s
4263}
4264
4265// SetId sets the Id field's value.
4266func (s *RxNormAttribute) SetId(v int64) *RxNormAttribute {
4267	s.Id = &v
4268	return s
4269}
4270
4271// SetRelationshipScore sets the RelationshipScore field's value.
4272func (s *RxNormAttribute) SetRelationshipScore(v float64) *RxNormAttribute {
4273	s.RelationshipScore = &v
4274	return s
4275}
4276
4277// SetScore sets the Score field's value.
4278func (s *RxNormAttribute) SetScore(v float64) *RxNormAttribute {
4279	s.Score = &v
4280	return s
4281}
4282
4283// SetText sets the Text field's value.
4284func (s *RxNormAttribute) SetText(v string) *RxNormAttribute {
4285	s.Text = &v
4286	return s
4287}
4288
4289// SetTraits sets the Traits field's value.
4290func (s *RxNormAttribute) SetTraits(v []*RxNormTrait) *RxNormAttribute {
4291	s.Traits = v
4292	return s
4293}
4294
4295// SetType sets the Type field's value.
4296func (s *RxNormAttribute) SetType(v string) *RxNormAttribute {
4297	s.Type = &v
4298	return s
4299}
4300
4301// The RxNorm concept that the entity could refer to, along with a score indicating
4302// the likelihood of the match.
4303type RxNormConcept struct {
4304	_ struct{} `type:"structure"`
4305
4306	// RxNorm concept ID, also known as the RxCUI.
4307	Code *string `min:"1" type:"string"`
4308
4309	// The description of the RxNorm concept.
4310	Description *string `min:"1" type:"string"`
4311
4312	// The level of confidence that Amazon Comprehend Medical has that the entity
4313	// is accurately linked to the reported RxNorm concept.
4314	Score *float64 `type:"float"`
4315}
4316
4317// String returns the string representation
4318func (s RxNormConcept) String() string {
4319	return awsutil.Prettify(s)
4320}
4321
4322// GoString returns the string representation
4323func (s RxNormConcept) GoString() string {
4324	return s.String()
4325}
4326
4327// SetCode sets the Code field's value.
4328func (s *RxNormConcept) SetCode(v string) *RxNormConcept {
4329	s.Code = &v
4330	return s
4331}
4332
4333// SetDescription sets the Description field's value.
4334func (s *RxNormConcept) SetDescription(v string) *RxNormConcept {
4335	s.Description = &v
4336	return s
4337}
4338
4339// SetScore sets the Score field's value.
4340func (s *RxNormConcept) SetScore(v float64) *RxNormConcept {
4341	s.Score = &v
4342	return s
4343}
4344
4345// The collection of medical entities extracted from the input text and their
4346// associated information. For each entity, the response provides the entity
4347// text, the entity category, where the entity text begins and ends, and the
4348// level of confidence that Amazon Comprehend Medical has in the detection and
4349// analysis. Attributes and traits of the entity are also returned.
4350type RxNormEntity struct {
4351	_ struct{} `type:"structure"`
4352
4353	// The extracted attributes that relate to the entity. The attributes recognized
4354	// by InferRxNorm are DOSAGE, DURATION, FORM, FREQUENCY, RATE, ROUTE_OR_MODE,
4355	// and STRENGTH.
4356	Attributes []*RxNormAttribute `type:"list"`
4357
4358	// The 0-based character offset in the input text that shows where the entity
4359	// begins. The offset returns the UTF-8 code point in the string.
4360	BeginOffset *int64 `type:"integer"`
4361
4362	// The category of the entity. The recognized categories are GENERIC or BRAND_NAME.
4363	Category *string `type:"string" enum:"RxNormEntityCategory"`
4364
4365	// The 0-based character offset in the input text that shows where the entity
4366	// ends. The offset returns the UTF-8 code point in the string.
4367	EndOffset *int64 `type:"integer"`
4368
4369	// The numeric identifier for the entity. This is a monotonically increasing
4370	// id unique within this response rather than a global unique identifier.
4371	Id *int64 `type:"integer"`
4372
4373	// The RxNorm concepts that the entity could refer to, along with a score indicating
4374	// the likelihood of the match.
4375	RxNormConcepts []*RxNormConcept `type:"list"`
4376
4377	// The level of confidence that Amazon Comprehend Medical has in the accuracy
4378	// of the detected entity.
4379	Score *float64 `type:"float"`
4380
4381	// The segment of input text extracted from which the entity was detected.
4382	Text *string `min:"1" type:"string"`
4383
4384	// Contextual information for the entity.
4385	Traits []*RxNormTrait `type:"list"`
4386
4387	// Describes the specific type of entity. For InferRxNorm, the recognized entity
4388	// type is MEDICATION.
4389	Type *string `type:"string" enum:"RxNormEntityType"`
4390}
4391
4392// String returns the string representation
4393func (s RxNormEntity) String() string {
4394	return awsutil.Prettify(s)
4395}
4396
4397// GoString returns the string representation
4398func (s RxNormEntity) GoString() string {
4399	return s.String()
4400}
4401
4402// SetAttributes sets the Attributes field's value.
4403func (s *RxNormEntity) SetAttributes(v []*RxNormAttribute) *RxNormEntity {
4404	s.Attributes = v
4405	return s
4406}
4407
4408// SetBeginOffset sets the BeginOffset field's value.
4409func (s *RxNormEntity) SetBeginOffset(v int64) *RxNormEntity {
4410	s.BeginOffset = &v
4411	return s
4412}
4413
4414// SetCategory sets the Category field's value.
4415func (s *RxNormEntity) SetCategory(v string) *RxNormEntity {
4416	s.Category = &v
4417	return s
4418}
4419
4420// SetEndOffset sets the EndOffset field's value.
4421func (s *RxNormEntity) SetEndOffset(v int64) *RxNormEntity {
4422	s.EndOffset = &v
4423	return s
4424}
4425
4426// SetId sets the Id field's value.
4427func (s *RxNormEntity) SetId(v int64) *RxNormEntity {
4428	s.Id = &v
4429	return s
4430}
4431
4432// SetRxNormConcepts sets the RxNormConcepts field's value.
4433func (s *RxNormEntity) SetRxNormConcepts(v []*RxNormConcept) *RxNormEntity {
4434	s.RxNormConcepts = v
4435	return s
4436}
4437
4438// SetScore sets the Score field's value.
4439func (s *RxNormEntity) SetScore(v float64) *RxNormEntity {
4440	s.Score = &v
4441	return s
4442}
4443
4444// SetText sets the Text field's value.
4445func (s *RxNormEntity) SetText(v string) *RxNormEntity {
4446	s.Text = &v
4447	return s
4448}
4449
4450// SetTraits sets the Traits field's value.
4451func (s *RxNormEntity) SetTraits(v []*RxNormTrait) *RxNormEntity {
4452	s.Traits = v
4453	return s
4454}
4455
4456// SetType sets the Type field's value.
4457func (s *RxNormEntity) SetType(v string) *RxNormEntity {
4458	s.Type = &v
4459	return s
4460}
4461
4462// The contextual information for the entity. InferRxNorm recognizes the trait
4463// NEGATION, which is any indication that the patient is not taking a medication.
4464type RxNormTrait struct {
4465	_ struct{} `type:"structure"`
4466
4467	// Provides a name or contextual description about the trait.
4468	Name *string `type:"string" enum:"RxNormTraitName"`
4469
4470	// The level of confidence that Amazon Comprehend Medical has in the accuracy
4471	// of the detected trait.
4472	Score *float64 `type:"float"`
4473}
4474
4475// String returns the string representation
4476func (s RxNormTrait) String() string {
4477	return awsutil.Prettify(s)
4478}
4479
4480// GoString returns the string representation
4481func (s RxNormTrait) GoString() string {
4482	return s.String()
4483}
4484
4485// SetName sets the Name field's value.
4486func (s *RxNormTrait) SetName(v string) *RxNormTrait {
4487	s.Name = &v
4488	return s
4489}
4490
4491// SetScore sets the Score field's value.
4492func (s *RxNormTrait) SetScore(v float64) *RxNormTrait {
4493	s.Score = &v
4494	return s
4495}
4496
4497// The Amazon Comprehend Medical service is temporarily unavailable. Please
4498// wait and then retry your request.
4499type ServiceUnavailableException struct {
4500	_            struct{}                  `type:"structure"`
4501	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
4502
4503	Message_ *string `locationName:"Message" min:"1" type:"string"`
4504}
4505
4506// String returns the string representation
4507func (s ServiceUnavailableException) String() string {
4508	return awsutil.Prettify(s)
4509}
4510
4511// GoString returns the string representation
4512func (s ServiceUnavailableException) GoString() string {
4513	return s.String()
4514}
4515
4516func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error {
4517	return &ServiceUnavailableException{
4518		RespMetadata: v,
4519	}
4520}
4521
4522// Code returns the exception type name.
4523func (s *ServiceUnavailableException) Code() string {
4524	return "ServiceUnavailableException"
4525}
4526
4527// Message returns the exception's message.
4528func (s *ServiceUnavailableException) Message() string {
4529	if s.Message_ != nil {
4530		return *s.Message_
4531	}
4532	return ""
4533}
4534
4535// OrigErr always returns nil, satisfies awserr.Error interface.
4536func (s *ServiceUnavailableException) OrigErr() error {
4537	return nil
4538}
4539
4540func (s *ServiceUnavailableException) Error() string {
4541	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
4542}
4543
4544// Status code returns the HTTP status code for the request's response error.
4545func (s *ServiceUnavailableException) StatusCode() int {
4546	return s.RespMetadata.StatusCode
4547}
4548
4549// RequestID returns the service's response RequestID for request.
4550func (s *ServiceUnavailableException) RequestID() string {
4551	return s.RespMetadata.RequestID
4552}
4553
4554type StartEntitiesDetectionV2JobInput struct {
4555	_ struct{} `type:"structure"`
4556
4557	// A unique identifier for the request. If you don't set the client request
4558	// token, Amazon Comprehend Medical generates one.
4559	ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"`
4560
4561	// The Amazon Resource Name (ARN) of the AWS Identity and Access Management
4562	// (IAM) role that grants Amazon Comprehend Medical read access to your input
4563	// data. For more information, see Role-Based Permissions Required for Asynchronous
4564	// Operations (https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med).
4565	//
4566	// DataAccessRoleArn is a required field
4567	DataAccessRoleArn *string `min:"20" type:"string" required:"true"`
4568
4569	// Specifies the format and location of the input data for the job.
4570	//
4571	// InputDataConfig is a required field
4572	InputDataConfig *InputDataConfig `type:"structure" required:"true"`
4573
4574	// The identifier of the job.
4575	JobName *string `min:"1" type:"string"`
4576
4577	// An AWS Key Management Service key to encrypt your output files. If you do
4578	// not specify a key, the files are written in plain text.
4579	KMSKey *string `min:"1" type:"string"`
4580
4581	// The language of the input documents. All documents must be in the same language.
4582	//
4583	// LanguageCode is a required field
4584	LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"`
4585
4586	// Specifies where to send the output files.
4587	//
4588	// OutputDataConfig is a required field
4589	OutputDataConfig *OutputDataConfig `type:"structure" required:"true"`
4590}
4591
4592// String returns the string representation
4593func (s StartEntitiesDetectionV2JobInput) String() string {
4594	return awsutil.Prettify(s)
4595}
4596
4597// GoString returns the string representation
4598func (s StartEntitiesDetectionV2JobInput) GoString() string {
4599	return s.String()
4600}
4601
4602// Validate inspects the fields of the type to determine if they are valid.
4603func (s *StartEntitiesDetectionV2JobInput) Validate() error {
4604	invalidParams := request.ErrInvalidParams{Context: "StartEntitiesDetectionV2JobInput"}
4605	if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 {
4606		invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1))
4607	}
4608	if s.DataAccessRoleArn == nil {
4609		invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn"))
4610	}
4611	if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 {
4612		invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20))
4613	}
4614	if s.InputDataConfig == nil {
4615		invalidParams.Add(request.NewErrParamRequired("InputDataConfig"))
4616	}
4617	if s.JobName != nil && len(*s.JobName) < 1 {
4618		invalidParams.Add(request.NewErrParamMinLen("JobName", 1))
4619	}
4620	if s.KMSKey != nil && len(*s.KMSKey) < 1 {
4621		invalidParams.Add(request.NewErrParamMinLen("KMSKey", 1))
4622	}
4623	if s.LanguageCode == nil {
4624		invalidParams.Add(request.NewErrParamRequired("LanguageCode"))
4625	}
4626	if s.OutputDataConfig == nil {
4627		invalidParams.Add(request.NewErrParamRequired("OutputDataConfig"))
4628	}
4629	if s.InputDataConfig != nil {
4630		if err := s.InputDataConfig.Validate(); err != nil {
4631			invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams))
4632		}
4633	}
4634	if s.OutputDataConfig != nil {
4635		if err := s.OutputDataConfig.Validate(); err != nil {
4636			invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams))
4637		}
4638	}
4639
4640	if invalidParams.Len() > 0 {
4641		return invalidParams
4642	}
4643	return nil
4644}
4645
4646// SetClientRequestToken sets the ClientRequestToken field's value.
4647func (s *StartEntitiesDetectionV2JobInput) SetClientRequestToken(v string) *StartEntitiesDetectionV2JobInput {
4648	s.ClientRequestToken = &v
4649	return s
4650}
4651
4652// SetDataAccessRoleArn sets the DataAccessRoleArn field's value.
4653func (s *StartEntitiesDetectionV2JobInput) SetDataAccessRoleArn(v string) *StartEntitiesDetectionV2JobInput {
4654	s.DataAccessRoleArn = &v
4655	return s
4656}
4657
4658// SetInputDataConfig sets the InputDataConfig field's value.
4659func (s *StartEntitiesDetectionV2JobInput) SetInputDataConfig(v *InputDataConfig) *StartEntitiesDetectionV2JobInput {
4660	s.InputDataConfig = v
4661	return s
4662}
4663
4664// SetJobName sets the JobName field's value.
4665func (s *StartEntitiesDetectionV2JobInput) SetJobName(v string) *StartEntitiesDetectionV2JobInput {
4666	s.JobName = &v
4667	return s
4668}
4669
4670// SetKMSKey sets the KMSKey field's value.
4671func (s *StartEntitiesDetectionV2JobInput) SetKMSKey(v string) *StartEntitiesDetectionV2JobInput {
4672	s.KMSKey = &v
4673	return s
4674}
4675
4676// SetLanguageCode sets the LanguageCode field's value.
4677func (s *StartEntitiesDetectionV2JobInput) SetLanguageCode(v string) *StartEntitiesDetectionV2JobInput {
4678	s.LanguageCode = &v
4679	return s
4680}
4681
4682// SetOutputDataConfig sets the OutputDataConfig field's value.
4683func (s *StartEntitiesDetectionV2JobInput) SetOutputDataConfig(v *OutputDataConfig) *StartEntitiesDetectionV2JobInput {
4684	s.OutputDataConfig = v
4685	return s
4686}
4687
4688type StartEntitiesDetectionV2JobOutput struct {
4689	_ struct{} `type:"structure"`
4690
4691	// The identifier generated for the job. To get the status of a job, use this
4692	// identifier with the DescribeEntitiesDetectionV2Job operation.
4693	JobId *string `min:"1" type:"string"`
4694}
4695
4696// String returns the string representation
4697func (s StartEntitiesDetectionV2JobOutput) String() string {
4698	return awsutil.Prettify(s)
4699}
4700
4701// GoString returns the string representation
4702func (s StartEntitiesDetectionV2JobOutput) GoString() string {
4703	return s.String()
4704}
4705
4706// SetJobId sets the JobId field's value.
4707func (s *StartEntitiesDetectionV2JobOutput) SetJobId(v string) *StartEntitiesDetectionV2JobOutput {
4708	s.JobId = &v
4709	return s
4710}
4711
4712type StartICD10CMInferenceJobInput struct {
4713	_ struct{} `type:"structure"`
4714
4715	// A unique identifier for the request. If you don't set the client request
4716	// token, Amazon Comprehend Medical generates one.
4717	ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"`
4718
4719	// The Amazon Resource Name (ARN) of the AWS Identity and Access Management
4720	// (IAM) role that grants Amazon Comprehend Medical read access to your input
4721	// data. For more information, see Role-Based Permissions Required for Asynchronous
4722	// Operations (https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med).
4723	//
4724	// DataAccessRoleArn is a required field
4725	DataAccessRoleArn *string `min:"20" type:"string" required:"true"`
4726
4727	// Specifies the format and location of the input data for the job.
4728	//
4729	// InputDataConfig is a required field
4730	InputDataConfig *InputDataConfig `type:"structure" required:"true"`
4731
4732	// The identifier of the job.
4733	JobName *string `min:"1" type:"string"`
4734
4735	// An AWS Key Management Service key to encrypt your output files. If you do
4736	// not specify a key, the files are written in plain text.
4737	KMSKey *string `min:"1" type:"string"`
4738
4739	// The language of the input documents. All documents must be in the same language.
4740	//
4741	// LanguageCode is a required field
4742	LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"`
4743
4744	// Specifies where to send the output files.
4745	//
4746	// OutputDataConfig is a required field
4747	OutputDataConfig *OutputDataConfig `type:"structure" required:"true"`
4748}
4749
4750// String returns the string representation
4751func (s StartICD10CMInferenceJobInput) String() string {
4752	return awsutil.Prettify(s)
4753}
4754
4755// GoString returns the string representation
4756func (s StartICD10CMInferenceJobInput) GoString() string {
4757	return s.String()
4758}
4759
4760// Validate inspects the fields of the type to determine if they are valid.
4761func (s *StartICD10CMInferenceJobInput) Validate() error {
4762	invalidParams := request.ErrInvalidParams{Context: "StartICD10CMInferenceJobInput"}
4763	if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 {
4764		invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1))
4765	}
4766	if s.DataAccessRoleArn == nil {
4767		invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn"))
4768	}
4769	if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 {
4770		invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20))
4771	}
4772	if s.InputDataConfig == nil {
4773		invalidParams.Add(request.NewErrParamRequired("InputDataConfig"))
4774	}
4775	if s.JobName != nil && len(*s.JobName) < 1 {
4776		invalidParams.Add(request.NewErrParamMinLen("JobName", 1))
4777	}
4778	if s.KMSKey != nil && len(*s.KMSKey) < 1 {
4779		invalidParams.Add(request.NewErrParamMinLen("KMSKey", 1))
4780	}
4781	if s.LanguageCode == nil {
4782		invalidParams.Add(request.NewErrParamRequired("LanguageCode"))
4783	}
4784	if s.OutputDataConfig == nil {
4785		invalidParams.Add(request.NewErrParamRequired("OutputDataConfig"))
4786	}
4787	if s.InputDataConfig != nil {
4788		if err := s.InputDataConfig.Validate(); err != nil {
4789			invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams))
4790		}
4791	}
4792	if s.OutputDataConfig != nil {
4793		if err := s.OutputDataConfig.Validate(); err != nil {
4794			invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams))
4795		}
4796	}
4797
4798	if invalidParams.Len() > 0 {
4799		return invalidParams
4800	}
4801	return nil
4802}
4803
4804// SetClientRequestToken sets the ClientRequestToken field's value.
4805func (s *StartICD10CMInferenceJobInput) SetClientRequestToken(v string) *StartICD10CMInferenceJobInput {
4806	s.ClientRequestToken = &v
4807	return s
4808}
4809
4810// SetDataAccessRoleArn sets the DataAccessRoleArn field's value.
4811func (s *StartICD10CMInferenceJobInput) SetDataAccessRoleArn(v string) *StartICD10CMInferenceJobInput {
4812	s.DataAccessRoleArn = &v
4813	return s
4814}
4815
4816// SetInputDataConfig sets the InputDataConfig field's value.
4817func (s *StartICD10CMInferenceJobInput) SetInputDataConfig(v *InputDataConfig) *StartICD10CMInferenceJobInput {
4818	s.InputDataConfig = v
4819	return s
4820}
4821
4822// SetJobName sets the JobName field's value.
4823func (s *StartICD10CMInferenceJobInput) SetJobName(v string) *StartICD10CMInferenceJobInput {
4824	s.JobName = &v
4825	return s
4826}
4827
4828// SetKMSKey sets the KMSKey field's value.
4829func (s *StartICD10CMInferenceJobInput) SetKMSKey(v string) *StartICD10CMInferenceJobInput {
4830	s.KMSKey = &v
4831	return s
4832}
4833
4834// SetLanguageCode sets the LanguageCode field's value.
4835func (s *StartICD10CMInferenceJobInput) SetLanguageCode(v string) *StartICD10CMInferenceJobInput {
4836	s.LanguageCode = &v
4837	return s
4838}
4839
4840// SetOutputDataConfig sets the OutputDataConfig field's value.
4841func (s *StartICD10CMInferenceJobInput) SetOutputDataConfig(v *OutputDataConfig) *StartICD10CMInferenceJobInput {
4842	s.OutputDataConfig = v
4843	return s
4844}
4845
4846type StartICD10CMInferenceJobOutput struct {
4847	_ struct{} `type:"structure"`
4848
4849	// The identifier generated for the job. To get the status of a job, use this
4850	// identifier with the StartICD10CMInferenceJob operation.
4851	JobId *string `min:"1" type:"string"`
4852}
4853
4854// String returns the string representation
4855func (s StartICD10CMInferenceJobOutput) String() string {
4856	return awsutil.Prettify(s)
4857}
4858
4859// GoString returns the string representation
4860func (s StartICD10CMInferenceJobOutput) GoString() string {
4861	return s.String()
4862}
4863
4864// SetJobId sets the JobId field's value.
4865func (s *StartICD10CMInferenceJobOutput) SetJobId(v string) *StartICD10CMInferenceJobOutput {
4866	s.JobId = &v
4867	return s
4868}
4869
4870type StartPHIDetectionJobInput struct {
4871	_ struct{} `type:"structure"`
4872
4873	// A unique identifier for the request. If you don't set the client request
4874	// token, Amazon Comprehend Medical generates one.
4875	ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"`
4876
4877	// The Amazon Resource Name (ARN) of the AWS Identity and Access Management
4878	// (IAM) role that grants Amazon Comprehend Medical read access to your input
4879	// data. For more information, see Role-Based Permissions Required for Asynchronous
4880	// Operations (https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med).
4881	//
4882	// DataAccessRoleArn is a required field
4883	DataAccessRoleArn *string `min:"20" type:"string" required:"true"`
4884
4885	// Specifies the format and location of the input data for the job.
4886	//
4887	// InputDataConfig is a required field
4888	InputDataConfig *InputDataConfig `type:"structure" required:"true"`
4889
4890	// The identifier of the job.
4891	JobName *string `min:"1" type:"string"`
4892
4893	// An AWS Key Management Service key to encrypt your output files. If you do
4894	// not specify a key, the files are written in plain text.
4895	KMSKey *string `min:"1" type:"string"`
4896
4897	// The language of the input documents. All documents must be in the same language.
4898	//
4899	// LanguageCode is a required field
4900	LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"`
4901
4902	// Specifies where to send the output files.
4903	//
4904	// OutputDataConfig is a required field
4905	OutputDataConfig *OutputDataConfig `type:"structure" required:"true"`
4906}
4907
4908// String returns the string representation
4909func (s StartPHIDetectionJobInput) String() string {
4910	return awsutil.Prettify(s)
4911}
4912
4913// GoString returns the string representation
4914func (s StartPHIDetectionJobInput) GoString() string {
4915	return s.String()
4916}
4917
4918// Validate inspects the fields of the type to determine if they are valid.
4919func (s *StartPHIDetectionJobInput) Validate() error {
4920	invalidParams := request.ErrInvalidParams{Context: "StartPHIDetectionJobInput"}
4921	if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 {
4922		invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1))
4923	}
4924	if s.DataAccessRoleArn == nil {
4925		invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn"))
4926	}
4927	if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 {
4928		invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20))
4929	}
4930	if s.InputDataConfig == nil {
4931		invalidParams.Add(request.NewErrParamRequired("InputDataConfig"))
4932	}
4933	if s.JobName != nil && len(*s.JobName) < 1 {
4934		invalidParams.Add(request.NewErrParamMinLen("JobName", 1))
4935	}
4936	if s.KMSKey != nil && len(*s.KMSKey) < 1 {
4937		invalidParams.Add(request.NewErrParamMinLen("KMSKey", 1))
4938	}
4939	if s.LanguageCode == nil {
4940		invalidParams.Add(request.NewErrParamRequired("LanguageCode"))
4941	}
4942	if s.OutputDataConfig == nil {
4943		invalidParams.Add(request.NewErrParamRequired("OutputDataConfig"))
4944	}
4945	if s.InputDataConfig != nil {
4946		if err := s.InputDataConfig.Validate(); err != nil {
4947			invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams))
4948		}
4949	}
4950	if s.OutputDataConfig != nil {
4951		if err := s.OutputDataConfig.Validate(); err != nil {
4952			invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams))
4953		}
4954	}
4955
4956	if invalidParams.Len() > 0 {
4957		return invalidParams
4958	}
4959	return nil
4960}
4961
4962// SetClientRequestToken sets the ClientRequestToken field's value.
4963func (s *StartPHIDetectionJobInput) SetClientRequestToken(v string) *StartPHIDetectionJobInput {
4964	s.ClientRequestToken = &v
4965	return s
4966}
4967
4968// SetDataAccessRoleArn sets the DataAccessRoleArn field's value.
4969func (s *StartPHIDetectionJobInput) SetDataAccessRoleArn(v string) *StartPHIDetectionJobInput {
4970	s.DataAccessRoleArn = &v
4971	return s
4972}
4973
4974// SetInputDataConfig sets the InputDataConfig field's value.
4975func (s *StartPHIDetectionJobInput) SetInputDataConfig(v *InputDataConfig) *StartPHIDetectionJobInput {
4976	s.InputDataConfig = v
4977	return s
4978}
4979
4980// SetJobName sets the JobName field's value.
4981func (s *StartPHIDetectionJobInput) SetJobName(v string) *StartPHIDetectionJobInput {
4982	s.JobName = &v
4983	return s
4984}
4985
4986// SetKMSKey sets the KMSKey field's value.
4987func (s *StartPHIDetectionJobInput) SetKMSKey(v string) *StartPHIDetectionJobInput {
4988	s.KMSKey = &v
4989	return s
4990}
4991
4992// SetLanguageCode sets the LanguageCode field's value.
4993func (s *StartPHIDetectionJobInput) SetLanguageCode(v string) *StartPHIDetectionJobInput {
4994	s.LanguageCode = &v
4995	return s
4996}
4997
4998// SetOutputDataConfig sets the OutputDataConfig field's value.
4999func (s *StartPHIDetectionJobInput) SetOutputDataConfig(v *OutputDataConfig) *StartPHIDetectionJobInput {
5000	s.OutputDataConfig = v
5001	return s
5002}
5003
5004type StartPHIDetectionJobOutput struct {
5005	_ struct{} `type:"structure"`
5006
5007	// The identifier generated for the job. To get the status of a job, use this
5008	// identifier with the DescribePHIDetectionJob operation.
5009	JobId *string `min:"1" type:"string"`
5010}
5011
5012// String returns the string representation
5013func (s StartPHIDetectionJobOutput) String() string {
5014	return awsutil.Prettify(s)
5015}
5016
5017// GoString returns the string representation
5018func (s StartPHIDetectionJobOutput) GoString() string {
5019	return s.String()
5020}
5021
5022// SetJobId sets the JobId field's value.
5023func (s *StartPHIDetectionJobOutput) SetJobId(v string) *StartPHIDetectionJobOutput {
5024	s.JobId = &v
5025	return s
5026}
5027
5028type StartRxNormInferenceJobInput struct {
5029	_ struct{} `type:"structure"`
5030
5031	// A unique identifier for the request. If you don't set the client request
5032	// token, Amazon Comprehend Medical generates one.
5033	ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"`
5034
5035	// The Amazon Resource Name (ARN) of the AWS Identity and Access Management
5036	// (IAM) role that grants Amazon Comprehend Medical read access to your input
5037	// data. For more information, see Role-Based Permissions Required for Asynchronous
5038	// Operations (https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med).
5039	//
5040	// DataAccessRoleArn is a required field
5041	DataAccessRoleArn *string `min:"20" type:"string" required:"true"`
5042
5043	// Specifies the format and location of the input data for the job.
5044	//
5045	// InputDataConfig is a required field
5046	InputDataConfig *InputDataConfig `type:"structure" required:"true"`
5047
5048	// The identifier of the job.
5049	JobName *string `min:"1" type:"string"`
5050
5051	// An AWS Key Management Service key to encrypt your output files. If you do
5052	// not specify a key, the files are written in plain text.
5053	KMSKey *string `min:"1" type:"string"`
5054
5055	// The language of the input documents. All documents must be in the same language.
5056	//
5057	// LanguageCode is a required field
5058	LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"`
5059
5060	// Specifies where to send the output files.
5061	//
5062	// OutputDataConfig is a required field
5063	OutputDataConfig *OutputDataConfig `type:"structure" required:"true"`
5064}
5065
5066// String returns the string representation
5067func (s StartRxNormInferenceJobInput) String() string {
5068	return awsutil.Prettify(s)
5069}
5070
5071// GoString returns the string representation
5072func (s StartRxNormInferenceJobInput) GoString() string {
5073	return s.String()
5074}
5075
5076// Validate inspects the fields of the type to determine if they are valid.
5077func (s *StartRxNormInferenceJobInput) Validate() error {
5078	invalidParams := request.ErrInvalidParams{Context: "StartRxNormInferenceJobInput"}
5079	if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 {
5080		invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1))
5081	}
5082	if s.DataAccessRoleArn == nil {
5083		invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn"))
5084	}
5085	if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 {
5086		invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20))
5087	}
5088	if s.InputDataConfig == nil {
5089		invalidParams.Add(request.NewErrParamRequired("InputDataConfig"))
5090	}
5091	if s.JobName != nil && len(*s.JobName) < 1 {
5092		invalidParams.Add(request.NewErrParamMinLen("JobName", 1))
5093	}
5094	if s.KMSKey != nil && len(*s.KMSKey) < 1 {
5095		invalidParams.Add(request.NewErrParamMinLen("KMSKey", 1))
5096	}
5097	if s.LanguageCode == nil {
5098		invalidParams.Add(request.NewErrParamRequired("LanguageCode"))
5099	}
5100	if s.OutputDataConfig == nil {
5101		invalidParams.Add(request.NewErrParamRequired("OutputDataConfig"))
5102	}
5103	if s.InputDataConfig != nil {
5104		if err := s.InputDataConfig.Validate(); err != nil {
5105			invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams))
5106		}
5107	}
5108	if s.OutputDataConfig != nil {
5109		if err := s.OutputDataConfig.Validate(); err != nil {
5110			invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams))
5111		}
5112	}
5113
5114	if invalidParams.Len() > 0 {
5115		return invalidParams
5116	}
5117	return nil
5118}
5119
5120// SetClientRequestToken sets the ClientRequestToken field's value.
5121func (s *StartRxNormInferenceJobInput) SetClientRequestToken(v string) *StartRxNormInferenceJobInput {
5122	s.ClientRequestToken = &v
5123	return s
5124}
5125
5126// SetDataAccessRoleArn sets the DataAccessRoleArn field's value.
5127func (s *StartRxNormInferenceJobInput) SetDataAccessRoleArn(v string) *StartRxNormInferenceJobInput {
5128	s.DataAccessRoleArn = &v
5129	return s
5130}
5131
5132// SetInputDataConfig sets the InputDataConfig field's value.
5133func (s *StartRxNormInferenceJobInput) SetInputDataConfig(v *InputDataConfig) *StartRxNormInferenceJobInput {
5134	s.InputDataConfig = v
5135	return s
5136}
5137
5138// SetJobName sets the JobName field's value.
5139func (s *StartRxNormInferenceJobInput) SetJobName(v string) *StartRxNormInferenceJobInput {
5140	s.JobName = &v
5141	return s
5142}
5143
5144// SetKMSKey sets the KMSKey field's value.
5145func (s *StartRxNormInferenceJobInput) SetKMSKey(v string) *StartRxNormInferenceJobInput {
5146	s.KMSKey = &v
5147	return s
5148}
5149
5150// SetLanguageCode sets the LanguageCode field's value.
5151func (s *StartRxNormInferenceJobInput) SetLanguageCode(v string) *StartRxNormInferenceJobInput {
5152	s.LanguageCode = &v
5153	return s
5154}
5155
5156// SetOutputDataConfig sets the OutputDataConfig field's value.
5157func (s *StartRxNormInferenceJobInput) SetOutputDataConfig(v *OutputDataConfig) *StartRxNormInferenceJobInput {
5158	s.OutputDataConfig = v
5159	return s
5160}
5161
5162type StartRxNormInferenceJobOutput struct {
5163	_ struct{} `type:"structure"`
5164
5165	// The identifier of the job.
5166	JobId *string `min:"1" type:"string"`
5167}
5168
5169// String returns the string representation
5170func (s StartRxNormInferenceJobOutput) String() string {
5171	return awsutil.Prettify(s)
5172}
5173
5174// GoString returns the string representation
5175func (s StartRxNormInferenceJobOutput) GoString() string {
5176	return s.String()
5177}
5178
5179// SetJobId sets the JobId field's value.
5180func (s *StartRxNormInferenceJobOutput) SetJobId(v string) *StartRxNormInferenceJobOutput {
5181	s.JobId = &v
5182	return s
5183}
5184
5185type StopEntitiesDetectionV2JobInput struct {
5186	_ struct{} `type:"structure"`
5187
5188	// The identifier of the medical entities job to stop.
5189	//
5190	// JobId is a required field
5191	JobId *string `min:"1" type:"string" required:"true"`
5192}
5193
5194// String returns the string representation
5195func (s StopEntitiesDetectionV2JobInput) String() string {
5196	return awsutil.Prettify(s)
5197}
5198
5199// GoString returns the string representation
5200func (s StopEntitiesDetectionV2JobInput) GoString() string {
5201	return s.String()
5202}
5203
5204// Validate inspects the fields of the type to determine if they are valid.
5205func (s *StopEntitiesDetectionV2JobInput) Validate() error {
5206	invalidParams := request.ErrInvalidParams{Context: "StopEntitiesDetectionV2JobInput"}
5207	if s.JobId == nil {
5208		invalidParams.Add(request.NewErrParamRequired("JobId"))
5209	}
5210	if s.JobId != nil && len(*s.JobId) < 1 {
5211		invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
5212	}
5213
5214	if invalidParams.Len() > 0 {
5215		return invalidParams
5216	}
5217	return nil
5218}
5219
5220// SetJobId sets the JobId field's value.
5221func (s *StopEntitiesDetectionV2JobInput) SetJobId(v string) *StopEntitiesDetectionV2JobInput {
5222	s.JobId = &v
5223	return s
5224}
5225
5226type StopEntitiesDetectionV2JobOutput struct {
5227	_ struct{} `type:"structure"`
5228
5229	// The identifier of the medical entities detection job that was stopped.
5230	JobId *string `min:"1" type:"string"`
5231}
5232
5233// String returns the string representation
5234func (s StopEntitiesDetectionV2JobOutput) String() string {
5235	return awsutil.Prettify(s)
5236}
5237
5238// GoString returns the string representation
5239func (s StopEntitiesDetectionV2JobOutput) GoString() string {
5240	return s.String()
5241}
5242
5243// SetJobId sets the JobId field's value.
5244func (s *StopEntitiesDetectionV2JobOutput) SetJobId(v string) *StopEntitiesDetectionV2JobOutput {
5245	s.JobId = &v
5246	return s
5247}
5248
5249type StopICD10CMInferenceJobInput struct {
5250	_ struct{} `type:"structure"`
5251
5252	// The identifier of the job.
5253	//
5254	// JobId is a required field
5255	JobId *string `min:"1" type:"string" required:"true"`
5256}
5257
5258// String returns the string representation
5259func (s StopICD10CMInferenceJobInput) String() string {
5260	return awsutil.Prettify(s)
5261}
5262
5263// GoString returns the string representation
5264func (s StopICD10CMInferenceJobInput) GoString() string {
5265	return s.String()
5266}
5267
5268// Validate inspects the fields of the type to determine if they are valid.
5269func (s *StopICD10CMInferenceJobInput) Validate() error {
5270	invalidParams := request.ErrInvalidParams{Context: "StopICD10CMInferenceJobInput"}
5271	if s.JobId == nil {
5272		invalidParams.Add(request.NewErrParamRequired("JobId"))
5273	}
5274	if s.JobId != nil && len(*s.JobId) < 1 {
5275		invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
5276	}
5277
5278	if invalidParams.Len() > 0 {
5279		return invalidParams
5280	}
5281	return nil
5282}
5283
5284// SetJobId sets the JobId field's value.
5285func (s *StopICD10CMInferenceJobInput) SetJobId(v string) *StopICD10CMInferenceJobInput {
5286	s.JobId = &v
5287	return s
5288}
5289
5290type StopICD10CMInferenceJobOutput struct {
5291	_ struct{} `type:"structure"`
5292
5293	// The identifier generated for the job. To get the status of job, use this
5294	// identifier with the DescribeICD10CMInferenceJob operation.
5295	JobId *string `min:"1" type:"string"`
5296}
5297
5298// String returns the string representation
5299func (s StopICD10CMInferenceJobOutput) String() string {
5300	return awsutil.Prettify(s)
5301}
5302
5303// GoString returns the string representation
5304func (s StopICD10CMInferenceJobOutput) GoString() string {
5305	return s.String()
5306}
5307
5308// SetJobId sets the JobId field's value.
5309func (s *StopICD10CMInferenceJobOutput) SetJobId(v string) *StopICD10CMInferenceJobOutput {
5310	s.JobId = &v
5311	return s
5312}
5313
5314type StopPHIDetectionJobInput struct {
5315	_ struct{} `type:"structure"`
5316
5317	// The identifier of the PHI detection job to stop.
5318	//
5319	// JobId is a required field
5320	JobId *string `min:"1" type:"string" required:"true"`
5321}
5322
5323// String returns the string representation
5324func (s StopPHIDetectionJobInput) String() string {
5325	return awsutil.Prettify(s)
5326}
5327
5328// GoString returns the string representation
5329func (s StopPHIDetectionJobInput) GoString() string {
5330	return s.String()
5331}
5332
5333// Validate inspects the fields of the type to determine if they are valid.
5334func (s *StopPHIDetectionJobInput) Validate() error {
5335	invalidParams := request.ErrInvalidParams{Context: "StopPHIDetectionJobInput"}
5336	if s.JobId == nil {
5337		invalidParams.Add(request.NewErrParamRequired("JobId"))
5338	}
5339	if s.JobId != nil && len(*s.JobId) < 1 {
5340		invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
5341	}
5342
5343	if invalidParams.Len() > 0 {
5344		return invalidParams
5345	}
5346	return nil
5347}
5348
5349// SetJobId sets the JobId field's value.
5350func (s *StopPHIDetectionJobInput) SetJobId(v string) *StopPHIDetectionJobInput {
5351	s.JobId = &v
5352	return s
5353}
5354
5355type StopPHIDetectionJobOutput struct {
5356	_ struct{} `type:"structure"`
5357
5358	// The identifier of the PHI detection job that was stopped.
5359	JobId *string `min:"1" type:"string"`
5360}
5361
5362// String returns the string representation
5363func (s StopPHIDetectionJobOutput) String() string {
5364	return awsutil.Prettify(s)
5365}
5366
5367// GoString returns the string representation
5368func (s StopPHIDetectionJobOutput) GoString() string {
5369	return s.String()
5370}
5371
5372// SetJobId sets the JobId field's value.
5373func (s *StopPHIDetectionJobOutput) SetJobId(v string) *StopPHIDetectionJobOutput {
5374	s.JobId = &v
5375	return s
5376}
5377
5378type StopRxNormInferenceJobInput struct {
5379	_ struct{} `type:"structure"`
5380
5381	// The identifier of the job.
5382	//
5383	// JobId is a required field
5384	JobId *string `min:"1" type:"string" required:"true"`
5385}
5386
5387// String returns the string representation
5388func (s StopRxNormInferenceJobInput) String() string {
5389	return awsutil.Prettify(s)
5390}
5391
5392// GoString returns the string representation
5393func (s StopRxNormInferenceJobInput) GoString() string {
5394	return s.String()
5395}
5396
5397// Validate inspects the fields of the type to determine if they are valid.
5398func (s *StopRxNormInferenceJobInput) Validate() error {
5399	invalidParams := request.ErrInvalidParams{Context: "StopRxNormInferenceJobInput"}
5400	if s.JobId == nil {
5401		invalidParams.Add(request.NewErrParamRequired("JobId"))
5402	}
5403	if s.JobId != nil && len(*s.JobId) < 1 {
5404		invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
5405	}
5406
5407	if invalidParams.Len() > 0 {
5408		return invalidParams
5409	}
5410	return nil
5411}
5412
5413// SetJobId sets the JobId field's value.
5414func (s *StopRxNormInferenceJobInput) SetJobId(v string) *StopRxNormInferenceJobInput {
5415	s.JobId = &v
5416	return s
5417}
5418
5419type StopRxNormInferenceJobOutput struct {
5420	_ struct{} `type:"structure"`
5421
5422	// The identifier generated for the job. To get the status of job, use this
5423	// identifier with the DescribeRxNormInferenceJob operation.
5424	JobId *string `min:"1" type:"string"`
5425}
5426
5427// String returns the string representation
5428func (s StopRxNormInferenceJobOutput) String() string {
5429	return awsutil.Prettify(s)
5430}
5431
5432// GoString returns the string representation
5433func (s StopRxNormInferenceJobOutput) GoString() string {
5434	return s.String()
5435}
5436
5437// SetJobId sets the JobId field's value.
5438func (s *StopRxNormInferenceJobOutput) SetJobId(v string) *StopRxNormInferenceJobOutput {
5439	s.JobId = &v
5440	return s
5441}
5442
5443// The size of the text you submitted exceeds the size limit. Reduce the size
5444// of the text or use a smaller document and then retry your request.
5445type TextSizeLimitExceededException struct {
5446	_            struct{}                  `type:"structure"`
5447	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
5448
5449	Message_ *string `locationName:"Message" min:"1" type:"string"`
5450}
5451
5452// String returns the string representation
5453func (s TextSizeLimitExceededException) String() string {
5454	return awsutil.Prettify(s)
5455}
5456
5457// GoString returns the string representation
5458func (s TextSizeLimitExceededException) GoString() string {
5459	return s.String()
5460}
5461
5462func newErrorTextSizeLimitExceededException(v protocol.ResponseMetadata) error {
5463	return &TextSizeLimitExceededException{
5464		RespMetadata: v,
5465	}
5466}
5467
5468// Code returns the exception type name.
5469func (s *TextSizeLimitExceededException) Code() string {
5470	return "TextSizeLimitExceededException"
5471}
5472
5473// Message returns the exception's message.
5474func (s *TextSizeLimitExceededException) Message() string {
5475	if s.Message_ != nil {
5476		return *s.Message_
5477	}
5478	return ""
5479}
5480
5481// OrigErr always returns nil, satisfies awserr.Error interface.
5482func (s *TextSizeLimitExceededException) OrigErr() error {
5483	return nil
5484}
5485
5486func (s *TextSizeLimitExceededException) Error() string {
5487	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
5488}
5489
5490// Status code returns the HTTP status code for the request's response error.
5491func (s *TextSizeLimitExceededException) StatusCode() int {
5492	return s.RespMetadata.StatusCode
5493}
5494
5495// RequestID returns the service's response RequestID for request.
5496func (s *TextSizeLimitExceededException) RequestID() string {
5497	return s.RespMetadata.RequestID
5498}
5499
5500// You have made too many requests within a short period of time. Wait for a
5501// short time and then try your request again. Contact customer support for
5502// more information about a service limit increase.
5503type TooManyRequestsException struct {
5504	_            struct{}                  `type:"structure"`
5505	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
5506
5507	Message_ *string `locationName:"Message" min:"1" type:"string"`
5508}
5509
5510// String returns the string representation
5511func (s TooManyRequestsException) String() string {
5512	return awsutil.Prettify(s)
5513}
5514
5515// GoString returns the string representation
5516func (s TooManyRequestsException) GoString() string {
5517	return s.String()
5518}
5519
5520func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error {
5521	return &TooManyRequestsException{
5522		RespMetadata: v,
5523	}
5524}
5525
5526// Code returns the exception type name.
5527func (s *TooManyRequestsException) Code() string {
5528	return "TooManyRequestsException"
5529}
5530
5531// Message returns the exception's message.
5532func (s *TooManyRequestsException) Message() string {
5533	if s.Message_ != nil {
5534		return *s.Message_
5535	}
5536	return ""
5537}
5538
5539// OrigErr always returns nil, satisfies awserr.Error interface.
5540func (s *TooManyRequestsException) OrigErr() error {
5541	return nil
5542}
5543
5544func (s *TooManyRequestsException) Error() string {
5545	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
5546}
5547
5548// Status code returns the HTTP status code for the request's response error.
5549func (s *TooManyRequestsException) StatusCode() int {
5550	return s.RespMetadata.StatusCode
5551}
5552
5553// RequestID returns the service's response RequestID for request.
5554func (s *TooManyRequestsException) RequestID() string {
5555	return s.RespMetadata.RequestID
5556}
5557
5558// Provides contextual information about the extracted entity.
5559type Trait struct {
5560	_ struct{} `type:"structure"`
5561
5562	// Provides a name or contextual description about the trait.
5563	Name *string `type:"string" enum:"AttributeName"`
5564
5565	// The level of confidence that Amazon Comprehend Medical has in the accuracy
5566	// of this trait.
5567	Score *float64 `type:"float"`
5568}
5569
5570// String returns the string representation
5571func (s Trait) String() string {
5572	return awsutil.Prettify(s)
5573}
5574
5575// GoString returns the string representation
5576func (s Trait) GoString() string {
5577	return s.String()
5578}
5579
5580// SetName sets the Name field's value.
5581func (s *Trait) SetName(v string) *Trait {
5582	s.Name = &v
5583	return s
5584}
5585
5586// SetScore sets the Score field's value.
5587func (s *Trait) SetScore(v float64) *Trait {
5588	s.Score = &v
5589	return s
5590}
5591
5592// An attribute that we extracted, but were unable to relate to an entity.
5593type UnmappedAttribute struct {
5594	_ struct{} `type:"structure"`
5595
5596	// The specific attribute that has been extracted but not mapped to an entity.
5597	Attribute *Attribute `type:"structure"`
5598
5599	// The type of the attribute, could be one of the following values: "MEDICATION",
5600	// "MEDICAL_CONDITION", "ANATOMY", "TEST_AND_TREATMENT_PROCEDURE" or "PROTECTED_HEALTH_INFORMATION".
5601	Type *string `type:"string" enum:"EntityType"`
5602}
5603
5604// String returns the string representation
5605func (s UnmappedAttribute) String() string {
5606	return awsutil.Prettify(s)
5607}
5608
5609// GoString returns the string representation
5610func (s UnmappedAttribute) GoString() string {
5611	return s.String()
5612}
5613
5614// SetAttribute sets the Attribute field's value.
5615func (s *UnmappedAttribute) SetAttribute(v *Attribute) *UnmappedAttribute {
5616	s.Attribute = v
5617	return s
5618}
5619
5620// SetType sets the Type field's value.
5621func (s *UnmappedAttribute) SetType(v string) *UnmappedAttribute {
5622	s.Type = &v
5623	return s
5624}
5625
5626// The filter that you specified for the operation is invalid. Check the filter
5627// values that you entered and try your request again.
5628type ValidationException struct {
5629	_            struct{}                  `type:"structure"`
5630	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
5631
5632	Message_ *string `locationName:"Message" min:"1" type:"string"`
5633}
5634
5635// String returns the string representation
5636func (s ValidationException) String() string {
5637	return awsutil.Prettify(s)
5638}
5639
5640// GoString returns the string representation
5641func (s ValidationException) GoString() string {
5642	return s.String()
5643}
5644
5645func newErrorValidationException(v protocol.ResponseMetadata) error {
5646	return &ValidationException{
5647		RespMetadata: v,
5648	}
5649}
5650
5651// Code returns the exception type name.
5652func (s *ValidationException) Code() string {
5653	return "ValidationException"
5654}
5655
5656// Message returns the exception's message.
5657func (s *ValidationException) Message() string {
5658	if s.Message_ != nil {
5659		return *s.Message_
5660	}
5661	return ""
5662}
5663
5664// OrigErr always returns nil, satisfies awserr.Error interface.
5665func (s *ValidationException) OrigErr() error {
5666	return nil
5667}
5668
5669func (s *ValidationException) Error() string {
5670	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
5671}
5672
5673// Status code returns the HTTP status code for the request's response error.
5674func (s *ValidationException) StatusCode() int {
5675	return s.RespMetadata.StatusCode
5676}
5677
5678// RequestID returns the service's response RequestID for request.
5679func (s *ValidationException) RequestID() string {
5680	return s.RespMetadata.RequestID
5681}
5682
5683const (
5684	// AttributeNameSign is a AttributeName enum value
5685	AttributeNameSign = "SIGN"
5686
5687	// AttributeNameSymptom is a AttributeName enum value
5688	AttributeNameSymptom = "SYMPTOM"
5689
5690	// AttributeNameDiagnosis is a AttributeName enum value
5691	AttributeNameDiagnosis = "DIAGNOSIS"
5692
5693	// AttributeNameNegation is a AttributeName enum value
5694	AttributeNameNegation = "NEGATION"
5695)
5696
5697const (
5698	// EntitySubTypeName is a EntitySubType enum value
5699	EntitySubTypeName = "NAME"
5700
5701	// EntitySubTypeDosage is a EntitySubType enum value
5702	EntitySubTypeDosage = "DOSAGE"
5703
5704	// EntitySubTypeRouteOrMode is a EntitySubType enum value
5705	EntitySubTypeRouteOrMode = "ROUTE_OR_MODE"
5706
5707	// EntitySubTypeForm is a EntitySubType enum value
5708	EntitySubTypeForm = "FORM"
5709
5710	// EntitySubTypeFrequency is a EntitySubType enum value
5711	EntitySubTypeFrequency = "FREQUENCY"
5712
5713	// EntitySubTypeDuration is a EntitySubType enum value
5714	EntitySubTypeDuration = "DURATION"
5715
5716	// EntitySubTypeGenericName is a EntitySubType enum value
5717	EntitySubTypeGenericName = "GENERIC_NAME"
5718
5719	// EntitySubTypeBrandName is a EntitySubType enum value
5720	EntitySubTypeBrandName = "BRAND_NAME"
5721
5722	// EntitySubTypeStrength is a EntitySubType enum value
5723	EntitySubTypeStrength = "STRENGTH"
5724
5725	// EntitySubTypeRate is a EntitySubType enum value
5726	EntitySubTypeRate = "RATE"
5727
5728	// EntitySubTypeAcuity is a EntitySubType enum value
5729	EntitySubTypeAcuity = "ACUITY"
5730
5731	// EntitySubTypeTestName is a EntitySubType enum value
5732	EntitySubTypeTestName = "TEST_NAME"
5733
5734	// EntitySubTypeTestValue is a EntitySubType enum value
5735	EntitySubTypeTestValue = "TEST_VALUE"
5736
5737	// EntitySubTypeTestUnits is a EntitySubType enum value
5738	EntitySubTypeTestUnits = "TEST_UNITS"
5739
5740	// EntitySubTypeProcedureName is a EntitySubType enum value
5741	EntitySubTypeProcedureName = "PROCEDURE_NAME"
5742
5743	// EntitySubTypeTreatmentName is a EntitySubType enum value
5744	EntitySubTypeTreatmentName = "TREATMENT_NAME"
5745
5746	// EntitySubTypeDate is a EntitySubType enum value
5747	EntitySubTypeDate = "DATE"
5748
5749	// EntitySubTypeAge is a EntitySubType enum value
5750	EntitySubTypeAge = "AGE"
5751
5752	// EntitySubTypeContactPoint is a EntitySubType enum value
5753	EntitySubTypeContactPoint = "CONTACT_POINT"
5754
5755	// EntitySubTypeEmail is a EntitySubType enum value
5756	EntitySubTypeEmail = "EMAIL"
5757
5758	// EntitySubTypeIdentifier is a EntitySubType enum value
5759	EntitySubTypeIdentifier = "IDENTIFIER"
5760
5761	// EntitySubTypeUrl is a EntitySubType enum value
5762	EntitySubTypeUrl = "URL"
5763
5764	// EntitySubTypeAddress is a EntitySubType enum value
5765	EntitySubTypeAddress = "ADDRESS"
5766
5767	// EntitySubTypeProfession is a EntitySubType enum value
5768	EntitySubTypeProfession = "PROFESSION"
5769
5770	// EntitySubTypeSystemOrganSite is a EntitySubType enum value
5771	EntitySubTypeSystemOrganSite = "SYSTEM_ORGAN_SITE"
5772
5773	// EntitySubTypeDirection is a EntitySubType enum value
5774	EntitySubTypeDirection = "DIRECTION"
5775
5776	// EntitySubTypeQuality is a EntitySubType enum value
5777	EntitySubTypeQuality = "QUALITY"
5778
5779	// EntitySubTypeQuantity is a EntitySubType enum value
5780	EntitySubTypeQuantity = "QUANTITY"
5781
5782	// EntitySubTypeTimeExpression is a EntitySubType enum value
5783	EntitySubTypeTimeExpression = "TIME_EXPRESSION"
5784
5785	// EntitySubTypeTimeToMedicationName is a EntitySubType enum value
5786	EntitySubTypeTimeToMedicationName = "TIME_TO_MEDICATION_NAME"
5787
5788	// EntitySubTypeTimeToDxName is a EntitySubType enum value
5789	EntitySubTypeTimeToDxName = "TIME_TO_DX_NAME"
5790
5791	// EntitySubTypeTimeToTestName is a EntitySubType enum value
5792	EntitySubTypeTimeToTestName = "TIME_TO_TEST_NAME"
5793
5794	// EntitySubTypeTimeToProcedureName is a EntitySubType enum value
5795	EntitySubTypeTimeToProcedureName = "TIME_TO_PROCEDURE_NAME"
5796
5797	// EntitySubTypeTimeToTreatmentName is a EntitySubType enum value
5798	EntitySubTypeTimeToTreatmentName = "TIME_TO_TREATMENT_NAME"
5799)
5800
5801const (
5802	// EntityTypeMedication is a EntityType enum value
5803	EntityTypeMedication = "MEDICATION"
5804
5805	// EntityTypeMedicalCondition is a EntityType enum value
5806	EntityTypeMedicalCondition = "MEDICAL_CONDITION"
5807
5808	// EntityTypeProtectedHealthInformation is a EntityType enum value
5809	EntityTypeProtectedHealthInformation = "PROTECTED_HEALTH_INFORMATION"
5810
5811	// EntityTypeTestTreatmentProcedure is a EntityType enum value
5812	EntityTypeTestTreatmentProcedure = "TEST_TREATMENT_PROCEDURE"
5813
5814	// EntityTypeAnatomy is a EntityType enum value
5815	EntityTypeAnatomy = "ANATOMY"
5816
5817	// EntityTypeTimeExpression is a EntityType enum value
5818	EntityTypeTimeExpression = "TIME_EXPRESSION"
5819)
5820
5821const (
5822	// ICD10CMAttributeTypeAcuity is a ICD10CMAttributeType enum value
5823	ICD10CMAttributeTypeAcuity = "ACUITY"
5824
5825	// ICD10CMAttributeTypeDirection is a ICD10CMAttributeType enum value
5826	ICD10CMAttributeTypeDirection = "DIRECTION"
5827
5828	// ICD10CMAttributeTypeSystemOrganSite is a ICD10CMAttributeType enum value
5829	ICD10CMAttributeTypeSystemOrganSite = "SYSTEM_ORGAN_SITE"
5830
5831	// ICD10CMAttributeTypeQuality is a ICD10CMAttributeType enum value
5832	ICD10CMAttributeTypeQuality = "QUALITY"
5833
5834	// ICD10CMAttributeTypeQuantity is a ICD10CMAttributeType enum value
5835	ICD10CMAttributeTypeQuantity = "QUANTITY"
5836)
5837
5838const (
5839	// ICD10CMEntityCategoryMedicalCondition is a ICD10CMEntityCategory enum value
5840	ICD10CMEntityCategoryMedicalCondition = "MEDICAL_CONDITION"
5841)
5842
5843const (
5844	// ICD10CMEntityTypeDxName is a ICD10CMEntityType enum value
5845	ICD10CMEntityTypeDxName = "DX_NAME"
5846)
5847
5848const (
5849	// ICD10CMTraitNameNegation is a ICD10CMTraitName enum value
5850	ICD10CMTraitNameNegation = "NEGATION"
5851
5852	// ICD10CMTraitNameDiagnosis is a ICD10CMTraitName enum value
5853	ICD10CMTraitNameDiagnosis = "DIAGNOSIS"
5854
5855	// ICD10CMTraitNameSign is a ICD10CMTraitName enum value
5856	ICD10CMTraitNameSign = "SIGN"
5857
5858	// ICD10CMTraitNameSymptom is a ICD10CMTraitName enum value
5859	ICD10CMTraitNameSymptom = "SYMPTOM"
5860)
5861
5862const (
5863	// JobStatusSubmitted is a JobStatus enum value
5864	JobStatusSubmitted = "SUBMITTED"
5865
5866	// JobStatusInProgress is a JobStatus enum value
5867	JobStatusInProgress = "IN_PROGRESS"
5868
5869	// JobStatusCompleted is a JobStatus enum value
5870	JobStatusCompleted = "COMPLETED"
5871
5872	// JobStatusPartialSuccess is a JobStatus enum value
5873	JobStatusPartialSuccess = "PARTIAL_SUCCESS"
5874
5875	// JobStatusFailed is a JobStatus enum value
5876	JobStatusFailed = "FAILED"
5877
5878	// JobStatusStopRequested is a JobStatus enum value
5879	JobStatusStopRequested = "STOP_REQUESTED"
5880
5881	// JobStatusStopped is a JobStatus enum value
5882	JobStatusStopped = "STOPPED"
5883)
5884
5885const (
5886	// LanguageCodeEn is a LanguageCode enum value
5887	LanguageCodeEn = "en"
5888)
5889
5890const (
5891	// RelationshipTypeEvery is a RelationshipType enum value
5892	RelationshipTypeEvery = "EVERY"
5893
5894	// RelationshipTypeWithDosage is a RelationshipType enum value
5895	RelationshipTypeWithDosage = "WITH_DOSAGE"
5896
5897	// RelationshipTypeAdministeredVia is a RelationshipType enum value
5898	RelationshipTypeAdministeredVia = "ADMINISTERED_VIA"
5899
5900	// RelationshipTypeFor is a RelationshipType enum value
5901	RelationshipTypeFor = "FOR"
5902
5903	// RelationshipTypeNegative is a RelationshipType enum value
5904	RelationshipTypeNegative = "NEGATIVE"
5905
5906	// RelationshipTypeOverlap is a RelationshipType enum value
5907	RelationshipTypeOverlap = "OVERLAP"
5908
5909	// RelationshipTypeDosage is a RelationshipType enum value
5910	RelationshipTypeDosage = "DOSAGE"
5911
5912	// RelationshipTypeRouteOrMode is a RelationshipType enum value
5913	RelationshipTypeRouteOrMode = "ROUTE_OR_MODE"
5914
5915	// RelationshipTypeForm is a RelationshipType enum value
5916	RelationshipTypeForm = "FORM"
5917
5918	// RelationshipTypeFrequency is a RelationshipType enum value
5919	RelationshipTypeFrequency = "FREQUENCY"
5920
5921	// RelationshipTypeDuration is a RelationshipType enum value
5922	RelationshipTypeDuration = "DURATION"
5923
5924	// RelationshipTypeStrength is a RelationshipType enum value
5925	RelationshipTypeStrength = "STRENGTH"
5926
5927	// RelationshipTypeRate is a RelationshipType enum value
5928	RelationshipTypeRate = "RATE"
5929
5930	// RelationshipTypeAcuity is a RelationshipType enum value
5931	RelationshipTypeAcuity = "ACUITY"
5932
5933	// RelationshipTypeTestValue is a RelationshipType enum value
5934	RelationshipTypeTestValue = "TEST_VALUE"
5935
5936	// RelationshipTypeTestUnits is a RelationshipType enum value
5937	RelationshipTypeTestUnits = "TEST_UNITS"
5938
5939	// RelationshipTypeDirection is a RelationshipType enum value
5940	RelationshipTypeDirection = "DIRECTION"
5941
5942	// RelationshipTypeSystemOrganSite is a RelationshipType enum value
5943	RelationshipTypeSystemOrganSite = "SYSTEM_ORGAN_SITE"
5944)
5945
5946const (
5947	// RxNormAttributeTypeDosage is a RxNormAttributeType enum value
5948	RxNormAttributeTypeDosage = "DOSAGE"
5949
5950	// RxNormAttributeTypeDuration is a RxNormAttributeType enum value
5951	RxNormAttributeTypeDuration = "DURATION"
5952
5953	// RxNormAttributeTypeForm is a RxNormAttributeType enum value
5954	RxNormAttributeTypeForm = "FORM"
5955
5956	// RxNormAttributeTypeFrequency is a RxNormAttributeType enum value
5957	RxNormAttributeTypeFrequency = "FREQUENCY"
5958
5959	// RxNormAttributeTypeRate is a RxNormAttributeType enum value
5960	RxNormAttributeTypeRate = "RATE"
5961
5962	// RxNormAttributeTypeRouteOrMode is a RxNormAttributeType enum value
5963	RxNormAttributeTypeRouteOrMode = "ROUTE_OR_MODE"
5964
5965	// RxNormAttributeTypeStrength is a RxNormAttributeType enum value
5966	RxNormAttributeTypeStrength = "STRENGTH"
5967)
5968
5969const (
5970	// RxNormEntityCategoryMedication is a RxNormEntityCategory enum value
5971	RxNormEntityCategoryMedication = "MEDICATION"
5972)
5973
5974const (
5975	// RxNormEntityTypeBrandName is a RxNormEntityType enum value
5976	RxNormEntityTypeBrandName = "BRAND_NAME"
5977
5978	// RxNormEntityTypeGenericName is a RxNormEntityType enum value
5979	RxNormEntityTypeGenericName = "GENERIC_NAME"
5980)
5981
5982const (
5983	// RxNormTraitNameNegation is a RxNormTraitName enum value
5984	RxNormTraitNameNegation = "NEGATION"
5985)
5986