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 category of attribute. Can be either of DX_NAME or TIME_EXPRESSION. 3018 Category *string `type:"string" enum:"ICD10CMEntityType"` 3019 3020 // The 0-based character offset in the input text that shows where the attribute 3021 // ends. The offset returns the UTF-8 code point in the string. 3022 EndOffset *int64 `type:"integer"` 3023 3024 // The numeric identifier for this attribute. This is a monotonically increasing 3025 // id unique within this response rather than a global unique identifier. 3026 Id *int64 `type:"integer"` 3027 3028 // The level of confidence that Amazon Comprehend Medical has that this attribute 3029 // is correctly related to this entity. 3030 RelationshipScore *float64 `type:"float"` 3031 3032 // The type of relationship between the entity and attribute. Type for the relationship 3033 // can be either of OVERLAP or SYSTEM_ORGAN_SITE. 3034 RelationshipType *string `type:"string" enum:"ICD10CMRelationshipType"` 3035 3036 // The level of confidence that Amazon Comprehend Medical has that the segment 3037 // of text is correctly recognized as an attribute. 3038 Score *float64 `type:"float"` 3039 3040 // The segment of input text which contains the detected attribute. 3041 Text *string `min:"1" type:"string"` 3042 3043 // The contextual information for the attribute. The traits recognized by InferICD10CM 3044 // are DIAGNOSIS, SIGN, SYMPTOM, and NEGATION. 3045 Traits []*ICD10CMTrait `type:"list"` 3046 3047 // The type of attribute. InferICD10CM detects entities of the type DX_NAME. 3048 Type *string `type:"string" enum:"ICD10CMAttributeType"` 3049} 3050 3051// String returns the string representation 3052func (s ICD10CMAttribute) String() string { 3053 return awsutil.Prettify(s) 3054} 3055 3056// GoString returns the string representation 3057func (s ICD10CMAttribute) GoString() string { 3058 return s.String() 3059} 3060 3061// SetBeginOffset sets the BeginOffset field's value. 3062func (s *ICD10CMAttribute) SetBeginOffset(v int64) *ICD10CMAttribute { 3063 s.BeginOffset = &v 3064 return s 3065} 3066 3067// SetCategory sets the Category field's value. 3068func (s *ICD10CMAttribute) SetCategory(v string) *ICD10CMAttribute { 3069 s.Category = &v 3070 return s 3071} 3072 3073// SetEndOffset sets the EndOffset field's value. 3074func (s *ICD10CMAttribute) SetEndOffset(v int64) *ICD10CMAttribute { 3075 s.EndOffset = &v 3076 return s 3077} 3078 3079// SetId sets the Id field's value. 3080func (s *ICD10CMAttribute) SetId(v int64) *ICD10CMAttribute { 3081 s.Id = &v 3082 return s 3083} 3084 3085// SetRelationshipScore sets the RelationshipScore field's value. 3086func (s *ICD10CMAttribute) SetRelationshipScore(v float64) *ICD10CMAttribute { 3087 s.RelationshipScore = &v 3088 return s 3089} 3090 3091// SetRelationshipType sets the RelationshipType field's value. 3092func (s *ICD10CMAttribute) SetRelationshipType(v string) *ICD10CMAttribute { 3093 s.RelationshipType = &v 3094 return s 3095} 3096 3097// SetScore sets the Score field's value. 3098func (s *ICD10CMAttribute) SetScore(v float64) *ICD10CMAttribute { 3099 s.Score = &v 3100 return s 3101} 3102 3103// SetText sets the Text field's value. 3104func (s *ICD10CMAttribute) SetText(v string) *ICD10CMAttribute { 3105 s.Text = &v 3106 return s 3107} 3108 3109// SetTraits sets the Traits field's value. 3110func (s *ICD10CMAttribute) SetTraits(v []*ICD10CMTrait) *ICD10CMAttribute { 3111 s.Traits = v 3112 return s 3113} 3114 3115// SetType sets the Type field's value. 3116func (s *ICD10CMAttribute) SetType(v string) *ICD10CMAttribute { 3117 s.Type = &v 3118 return s 3119} 3120 3121// The ICD-10-CM concepts that the entity could refer to, along with a score 3122// indicating the likelihood of the match. 3123type ICD10CMConcept struct { 3124 _ struct{} `type:"structure"` 3125 3126 // The ICD-10-CM code that identifies the concept found in the knowledge base 3127 // from the Centers for Disease Control. 3128 Code *string `min:"1" type:"string"` 3129 3130 // The long description of the ICD-10-CM code in the ontology. 3131 Description *string `min:"1" type:"string"` 3132 3133 // The level of confidence that Amazon Comprehend Medical has that the entity 3134 // is accurately linked to an ICD-10-CM concept. 3135 Score *float64 `type:"float"` 3136} 3137 3138// String returns the string representation 3139func (s ICD10CMConcept) String() string { 3140 return awsutil.Prettify(s) 3141} 3142 3143// GoString returns the string representation 3144func (s ICD10CMConcept) GoString() string { 3145 return s.String() 3146} 3147 3148// SetCode sets the Code field's value. 3149func (s *ICD10CMConcept) SetCode(v string) *ICD10CMConcept { 3150 s.Code = &v 3151 return s 3152} 3153 3154// SetDescription sets the Description field's value. 3155func (s *ICD10CMConcept) SetDescription(v string) *ICD10CMConcept { 3156 s.Description = &v 3157 return s 3158} 3159 3160// SetScore sets the Score field's value. 3161func (s *ICD10CMConcept) SetScore(v float64) *ICD10CMConcept { 3162 s.Score = &v 3163 return s 3164} 3165 3166// The collection of medical entities extracted from the input text and their 3167// associated information. For each entity, the response provides the entity 3168// text, the entity category, where the entity text begins and ends, and the 3169// level of confidence that Amazon Comprehend Medical has in the detection and 3170// analysis. Attributes and traits of the entity are also returned. 3171type ICD10CMEntity struct { 3172 _ struct{} `type:"structure"` 3173 3174 // The detected attributes that relate to the entity. An extracted segment of 3175 // the text that is an attribute of an entity, or otherwise related to an entity, 3176 // such as the nature of a medical condition. 3177 Attributes []*ICD10CMAttribute `type:"list"` 3178 3179 // The 0-based character offset in the input text that shows where the entity 3180 // begins. The offset returns the UTF-8 code point in the string. 3181 BeginOffset *int64 `type:"integer"` 3182 3183 // The category of the entity. InferICD10CM detects entities in the MEDICAL_CONDITION 3184 // category. 3185 Category *string `type:"string" enum:"ICD10CMEntityCategory"` 3186 3187 // The 0-based character offset in the input text that shows where the entity 3188 // ends. The offset returns the UTF-8 code point in the string. 3189 EndOffset *int64 `type:"integer"` 3190 3191 // The ICD-10-CM concepts that the entity could refer to, along with a score 3192 // indicating the likelihood of the match. 3193 ICD10CMConcepts []*ICD10CMConcept `type:"list"` 3194 3195 // The numeric identifier for the entity. This is a monotonically increasing 3196 // id unique within this response rather than a global unique identifier. 3197 Id *int64 `type:"integer"` 3198 3199 // The level of confidence that Amazon Comprehend Medical has in the accuracy 3200 // of the detection. 3201 Score *float64 `type:"float"` 3202 3203 // The segment of input text that is matched to the detected entity. 3204 Text *string `min:"1" type:"string"` 3205 3206 // Provides Contextual information for the entity. The traits recognized by 3207 // InferICD10CM are DIAGNOSIS, SIGN, SYMPTOM, and NEGATION. 3208 Traits []*ICD10CMTrait `type:"list"` 3209 3210 // Describes the specific type of entity with category of entities. InferICD10CM 3211 // detects entities of the type DX_NAME and TIME_EXPRESSION. 3212 Type *string `type:"string" enum:"ICD10CMEntityType"` 3213} 3214 3215// String returns the string representation 3216func (s ICD10CMEntity) String() string { 3217 return awsutil.Prettify(s) 3218} 3219 3220// GoString returns the string representation 3221func (s ICD10CMEntity) GoString() string { 3222 return s.String() 3223} 3224 3225// SetAttributes sets the Attributes field's value. 3226func (s *ICD10CMEntity) SetAttributes(v []*ICD10CMAttribute) *ICD10CMEntity { 3227 s.Attributes = v 3228 return s 3229} 3230 3231// SetBeginOffset sets the BeginOffset field's value. 3232func (s *ICD10CMEntity) SetBeginOffset(v int64) *ICD10CMEntity { 3233 s.BeginOffset = &v 3234 return s 3235} 3236 3237// SetCategory sets the Category field's value. 3238func (s *ICD10CMEntity) SetCategory(v string) *ICD10CMEntity { 3239 s.Category = &v 3240 return s 3241} 3242 3243// SetEndOffset sets the EndOffset field's value. 3244func (s *ICD10CMEntity) SetEndOffset(v int64) *ICD10CMEntity { 3245 s.EndOffset = &v 3246 return s 3247} 3248 3249// SetICD10CMConcepts sets the ICD10CMConcepts field's value. 3250func (s *ICD10CMEntity) SetICD10CMConcepts(v []*ICD10CMConcept) *ICD10CMEntity { 3251 s.ICD10CMConcepts = v 3252 return s 3253} 3254 3255// SetId sets the Id field's value. 3256func (s *ICD10CMEntity) SetId(v int64) *ICD10CMEntity { 3257 s.Id = &v 3258 return s 3259} 3260 3261// SetScore sets the Score field's value. 3262func (s *ICD10CMEntity) SetScore(v float64) *ICD10CMEntity { 3263 s.Score = &v 3264 return s 3265} 3266 3267// SetText sets the Text field's value. 3268func (s *ICD10CMEntity) SetText(v string) *ICD10CMEntity { 3269 s.Text = &v 3270 return s 3271} 3272 3273// SetTraits sets the Traits field's value. 3274func (s *ICD10CMEntity) SetTraits(v []*ICD10CMTrait) *ICD10CMEntity { 3275 s.Traits = v 3276 return s 3277} 3278 3279// SetType sets the Type field's value. 3280func (s *ICD10CMEntity) SetType(v string) *ICD10CMEntity { 3281 s.Type = &v 3282 return s 3283} 3284 3285// Contextual information for the entity. The traits recognized by InferICD10CM 3286// are DIAGNOSIS, SIGN, SYMPTOM, and NEGATION. 3287type ICD10CMTrait struct { 3288 _ struct{} `type:"structure"` 3289 3290 // Provides a name or contextual description about the trait. 3291 Name *string `type:"string" enum:"ICD10CMTraitName"` 3292 3293 // The level of confidence that Amazon Comprehend Medical has that the segment 3294 // of text is correctly recognized as a trait. 3295 Score *float64 `type:"float"` 3296} 3297 3298// String returns the string representation 3299func (s ICD10CMTrait) String() string { 3300 return awsutil.Prettify(s) 3301} 3302 3303// GoString returns the string representation 3304func (s ICD10CMTrait) GoString() string { 3305 return s.String() 3306} 3307 3308// SetName sets the Name field's value. 3309func (s *ICD10CMTrait) SetName(v string) *ICD10CMTrait { 3310 s.Name = &v 3311 return s 3312} 3313 3314// SetScore sets the Score field's value. 3315func (s *ICD10CMTrait) SetScore(v float64) *ICD10CMTrait { 3316 s.Score = &v 3317 return s 3318} 3319 3320type InferICD10CMInput struct { 3321 _ struct{} `type:"structure"` 3322 3323 // The input text used for analysis. The input for InferICD10CM is a string 3324 // from 1 to 10000 characters. 3325 // 3326 // Text is a required field 3327 Text *string `min:"1" type:"string" required:"true"` 3328} 3329 3330// String returns the string representation 3331func (s InferICD10CMInput) String() string { 3332 return awsutil.Prettify(s) 3333} 3334 3335// GoString returns the string representation 3336func (s InferICD10CMInput) GoString() string { 3337 return s.String() 3338} 3339 3340// Validate inspects the fields of the type to determine if they are valid. 3341func (s *InferICD10CMInput) Validate() error { 3342 invalidParams := request.ErrInvalidParams{Context: "InferICD10CMInput"} 3343 if s.Text == nil { 3344 invalidParams.Add(request.NewErrParamRequired("Text")) 3345 } 3346 if s.Text != nil && len(*s.Text) < 1 { 3347 invalidParams.Add(request.NewErrParamMinLen("Text", 1)) 3348 } 3349 3350 if invalidParams.Len() > 0 { 3351 return invalidParams 3352 } 3353 return nil 3354} 3355 3356// SetText sets the Text field's value. 3357func (s *InferICD10CMInput) SetText(v string) *InferICD10CMInput { 3358 s.Text = &v 3359 return s 3360} 3361 3362type InferICD10CMOutput struct { 3363 _ struct{} `type:"structure"` 3364 3365 // The medical conditions detected in the text linked to ICD-10-CM concepts. 3366 // If the action is successful, the service sends back an HTTP 200 response, 3367 // as well as the entities detected. 3368 // 3369 // Entities is a required field 3370 Entities []*ICD10CMEntity `type:"list" required:"true"` 3371 3372 // The version of the model used to analyze the documents, in the format n.n.n 3373 // You can use this information to track the model used for a particular batch 3374 // of documents. 3375 ModelVersion *string `min:"1" type:"string"` 3376 3377 // If the result of the previous request to InferICD10CM was truncated, include 3378 // the PaginationToken to fetch the next page of medical condition entities. 3379 PaginationToken *string `min:"1" type:"string"` 3380} 3381 3382// String returns the string representation 3383func (s InferICD10CMOutput) String() string { 3384 return awsutil.Prettify(s) 3385} 3386 3387// GoString returns the string representation 3388func (s InferICD10CMOutput) GoString() string { 3389 return s.String() 3390} 3391 3392// SetEntities sets the Entities field's value. 3393func (s *InferICD10CMOutput) SetEntities(v []*ICD10CMEntity) *InferICD10CMOutput { 3394 s.Entities = v 3395 return s 3396} 3397 3398// SetModelVersion sets the ModelVersion field's value. 3399func (s *InferICD10CMOutput) SetModelVersion(v string) *InferICD10CMOutput { 3400 s.ModelVersion = &v 3401 return s 3402} 3403 3404// SetPaginationToken sets the PaginationToken field's value. 3405func (s *InferICD10CMOutput) SetPaginationToken(v string) *InferICD10CMOutput { 3406 s.PaginationToken = &v 3407 return s 3408} 3409 3410type InferRxNormInput struct { 3411 _ struct{} `type:"structure"` 3412 3413 // The input text used for analysis. The input for InferRxNorm is a string from 3414 // 1 to 10000 characters. 3415 // 3416 // Text is a required field 3417 Text *string `min:"1" type:"string" required:"true"` 3418} 3419 3420// String returns the string representation 3421func (s InferRxNormInput) String() string { 3422 return awsutil.Prettify(s) 3423} 3424 3425// GoString returns the string representation 3426func (s InferRxNormInput) GoString() string { 3427 return s.String() 3428} 3429 3430// Validate inspects the fields of the type to determine if they are valid. 3431func (s *InferRxNormInput) Validate() error { 3432 invalidParams := request.ErrInvalidParams{Context: "InferRxNormInput"} 3433 if s.Text == nil { 3434 invalidParams.Add(request.NewErrParamRequired("Text")) 3435 } 3436 if s.Text != nil && len(*s.Text) < 1 { 3437 invalidParams.Add(request.NewErrParamMinLen("Text", 1)) 3438 } 3439 3440 if invalidParams.Len() > 0 { 3441 return invalidParams 3442 } 3443 return nil 3444} 3445 3446// SetText sets the Text field's value. 3447func (s *InferRxNormInput) SetText(v string) *InferRxNormInput { 3448 s.Text = &v 3449 return s 3450} 3451 3452type InferRxNormOutput struct { 3453 _ struct{} `type:"structure"` 3454 3455 // The medication entities detected in the text linked to RxNorm concepts. If 3456 // the action is successful, the service sends back an HTTP 200 response, as 3457 // well as the entities detected. 3458 // 3459 // Entities is a required field 3460 Entities []*RxNormEntity `type:"list" required:"true"` 3461 3462 // The version of the model used to analyze the documents, in the format n.n.n 3463 // You can use this information to track the model used for a particular batch 3464 // of documents. 3465 ModelVersion *string `min:"1" type:"string"` 3466 3467 // If the result of the previous request to InferRxNorm was truncated, include 3468 // the PaginationToken to fetch the next page of medication entities. 3469 PaginationToken *string `min:"1" type:"string"` 3470} 3471 3472// String returns the string representation 3473func (s InferRxNormOutput) String() string { 3474 return awsutil.Prettify(s) 3475} 3476 3477// GoString returns the string representation 3478func (s InferRxNormOutput) GoString() string { 3479 return s.String() 3480} 3481 3482// SetEntities sets the Entities field's value. 3483func (s *InferRxNormOutput) SetEntities(v []*RxNormEntity) *InferRxNormOutput { 3484 s.Entities = v 3485 return s 3486} 3487 3488// SetModelVersion sets the ModelVersion field's value. 3489func (s *InferRxNormOutput) SetModelVersion(v string) *InferRxNormOutput { 3490 s.ModelVersion = &v 3491 return s 3492} 3493 3494// SetPaginationToken sets the PaginationToken field's value. 3495func (s *InferRxNormOutput) SetPaginationToken(v string) *InferRxNormOutput { 3496 s.PaginationToken = &v 3497 return s 3498} 3499 3500// The input properties for an entities detection job. This includes the name 3501// of the S3 bucket and the path to the files to be analyzed. 3502type InputDataConfig struct { 3503 _ struct{} `type:"structure"` 3504 3505 // The URI of the S3 bucket that contains the input data. The bucket must be 3506 // in the same region as the API endpoint that you are calling. 3507 // 3508 // Each file in the document collection must be less than 40 KB. You can store 3509 // a maximum of 30 GB in the bucket. 3510 // 3511 // S3Bucket is a required field 3512 S3Bucket *string `min:"3" type:"string" required:"true"` 3513 3514 // The path to the input data files in the S3 bucket. 3515 S3Key *string `type:"string"` 3516} 3517 3518// String returns the string representation 3519func (s InputDataConfig) String() string { 3520 return awsutil.Prettify(s) 3521} 3522 3523// GoString returns the string representation 3524func (s InputDataConfig) GoString() string { 3525 return s.String() 3526} 3527 3528// Validate inspects the fields of the type to determine if they are valid. 3529func (s *InputDataConfig) Validate() error { 3530 invalidParams := request.ErrInvalidParams{Context: "InputDataConfig"} 3531 if s.S3Bucket == nil { 3532 invalidParams.Add(request.NewErrParamRequired("S3Bucket")) 3533 } 3534 if s.S3Bucket != nil && len(*s.S3Bucket) < 3 { 3535 invalidParams.Add(request.NewErrParamMinLen("S3Bucket", 3)) 3536 } 3537 3538 if invalidParams.Len() > 0 { 3539 return invalidParams 3540 } 3541 return nil 3542} 3543 3544// SetS3Bucket sets the S3Bucket field's value. 3545func (s *InputDataConfig) SetS3Bucket(v string) *InputDataConfig { 3546 s.S3Bucket = &v 3547 return s 3548} 3549 3550// SetS3Key sets the S3Key field's value. 3551func (s *InputDataConfig) SetS3Key(v string) *InputDataConfig { 3552 s.S3Key = &v 3553 return s 3554} 3555 3556// An internal server error occurred. Retry your request. 3557type InternalServerException struct { 3558 _ struct{} `type:"structure"` 3559 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 3560 3561 Message_ *string `locationName:"Message" min:"1" type:"string"` 3562} 3563 3564// String returns the string representation 3565func (s InternalServerException) String() string { 3566 return awsutil.Prettify(s) 3567} 3568 3569// GoString returns the string representation 3570func (s InternalServerException) GoString() string { 3571 return s.String() 3572} 3573 3574func newErrorInternalServerException(v protocol.ResponseMetadata) error { 3575 return &InternalServerException{ 3576 RespMetadata: v, 3577 } 3578} 3579 3580// Code returns the exception type name. 3581func (s *InternalServerException) Code() string { 3582 return "InternalServerException" 3583} 3584 3585// Message returns the exception's message. 3586func (s *InternalServerException) Message() string { 3587 if s.Message_ != nil { 3588 return *s.Message_ 3589 } 3590 return "" 3591} 3592 3593// OrigErr always returns nil, satisfies awserr.Error interface. 3594func (s *InternalServerException) OrigErr() error { 3595 return nil 3596} 3597 3598func (s *InternalServerException) Error() string { 3599 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 3600} 3601 3602// Status code returns the HTTP status code for the request's response error. 3603func (s *InternalServerException) StatusCode() int { 3604 return s.RespMetadata.StatusCode 3605} 3606 3607// RequestID returns the service's response RequestID for request. 3608func (s *InternalServerException) RequestID() string { 3609 return s.RespMetadata.RequestID 3610} 3611 3612// The input text was not in valid UTF-8 character encoding. Check your text 3613// then retry your request. 3614type InvalidEncodingException struct { 3615 _ struct{} `type:"structure"` 3616 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 3617 3618 Message_ *string `locationName:"Message" min:"1" type:"string"` 3619} 3620 3621// String returns the string representation 3622func (s InvalidEncodingException) String() string { 3623 return awsutil.Prettify(s) 3624} 3625 3626// GoString returns the string representation 3627func (s InvalidEncodingException) GoString() string { 3628 return s.String() 3629} 3630 3631func newErrorInvalidEncodingException(v protocol.ResponseMetadata) error { 3632 return &InvalidEncodingException{ 3633 RespMetadata: v, 3634 } 3635} 3636 3637// Code returns the exception type name. 3638func (s *InvalidEncodingException) Code() string { 3639 return "InvalidEncodingException" 3640} 3641 3642// Message returns the exception's message. 3643func (s *InvalidEncodingException) Message() string { 3644 if s.Message_ != nil { 3645 return *s.Message_ 3646 } 3647 return "" 3648} 3649 3650// OrigErr always returns nil, satisfies awserr.Error interface. 3651func (s *InvalidEncodingException) OrigErr() error { 3652 return nil 3653} 3654 3655func (s *InvalidEncodingException) Error() string { 3656 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 3657} 3658 3659// Status code returns the HTTP status code for the request's response error. 3660func (s *InvalidEncodingException) StatusCode() int { 3661 return s.RespMetadata.StatusCode 3662} 3663 3664// RequestID returns the service's response RequestID for request. 3665func (s *InvalidEncodingException) RequestID() string { 3666 return s.RespMetadata.RequestID 3667} 3668 3669// The request that you made is invalid. Check your request to determine why 3670// it's invalid and then retry the request. 3671type InvalidRequestException struct { 3672 _ struct{} `type:"structure"` 3673 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 3674 3675 Message_ *string `locationName:"Message" min:"1" type:"string"` 3676} 3677 3678// String returns the string representation 3679func (s InvalidRequestException) String() string { 3680 return awsutil.Prettify(s) 3681} 3682 3683// GoString returns the string representation 3684func (s InvalidRequestException) GoString() string { 3685 return s.String() 3686} 3687 3688func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { 3689 return &InvalidRequestException{ 3690 RespMetadata: v, 3691 } 3692} 3693 3694// Code returns the exception type name. 3695func (s *InvalidRequestException) Code() string { 3696 return "InvalidRequestException" 3697} 3698 3699// Message returns the exception's message. 3700func (s *InvalidRequestException) Message() string { 3701 if s.Message_ != nil { 3702 return *s.Message_ 3703 } 3704 return "" 3705} 3706 3707// OrigErr always returns nil, satisfies awserr.Error interface. 3708func (s *InvalidRequestException) OrigErr() error { 3709 return nil 3710} 3711 3712func (s *InvalidRequestException) Error() string { 3713 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 3714} 3715 3716// Status code returns the HTTP status code for the request's response error. 3717func (s *InvalidRequestException) StatusCode() int { 3718 return s.RespMetadata.StatusCode 3719} 3720 3721// RequestID returns the service's response RequestID for request. 3722func (s *InvalidRequestException) RequestID() string { 3723 return s.RespMetadata.RequestID 3724} 3725 3726type ListEntitiesDetectionV2JobsInput struct { 3727 _ struct{} `type:"structure"` 3728 3729 // Filters the jobs that are returned. You can filter jobs based on their names, 3730 // status, or the date and time that they were submitted. You can only set one 3731 // filter at a time. 3732 Filter *ComprehendMedicalAsyncJobFilter `type:"structure"` 3733 3734 // The maximum number of results to return in each page. The default is 100. 3735 MaxResults *int64 `min:"1" type:"integer"` 3736 3737 // Identifies the next page of results to return. 3738 NextToken *string `min:"1" type:"string"` 3739} 3740 3741// String returns the string representation 3742func (s ListEntitiesDetectionV2JobsInput) String() string { 3743 return awsutil.Prettify(s) 3744} 3745 3746// GoString returns the string representation 3747func (s ListEntitiesDetectionV2JobsInput) GoString() string { 3748 return s.String() 3749} 3750 3751// Validate inspects the fields of the type to determine if they are valid. 3752func (s *ListEntitiesDetectionV2JobsInput) Validate() error { 3753 invalidParams := request.ErrInvalidParams{Context: "ListEntitiesDetectionV2JobsInput"} 3754 if s.MaxResults != nil && *s.MaxResults < 1 { 3755 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 3756 } 3757 if s.NextToken != nil && len(*s.NextToken) < 1 { 3758 invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) 3759 } 3760 if s.Filter != nil { 3761 if err := s.Filter.Validate(); err != nil { 3762 invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) 3763 } 3764 } 3765 3766 if invalidParams.Len() > 0 { 3767 return invalidParams 3768 } 3769 return nil 3770} 3771 3772// SetFilter sets the Filter field's value. 3773func (s *ListEntitiesDetectionV2JobsInput) SetFilter(v *ComprehendMedicalAsyncJobFilter) *ListEntitiesDetectionV2JobsInput { 3774 s.Filter = v 3775 return s 3776} 3777 3778// SetMaxResults sets the MaxResults field's value. 3779func (s *ListEntitiesDetectionV2JobsInput) SetMaxResults(v int64) *ListEntitiesDetectionV2JobsInput { 3780 s.MaxResults = &v 3781 return s 3782} 3783 3784// SetNextToken sets the NextToken field's value. 3785func (s *ListEntitiesDetectionV2JobsInput) SetNextToken(v string) *ListEntitiesDetectionV2JobsInput { 3786 s.NextToken = &v 3787 return s 3788} 3789 3790type ListEntitiesDetectionV2JobsOutput struct { 3791 _ struct{} `type:"structure"` 3792 3793 // A list containing the properties of each job returned. 3794 ComprehendMedicalAsyncJobPropertiesList []*ComprehendMedicalAsyncJobProperties `type:"list"` 3795 3796 // Identifies the next page of results to return. 3797 NextToken *string `min:"1" type:"string"` 3798} 3799 3800// String returns the string representation 3801func (s ListEntitiesDetectionV2JobsOutput) String() string { 3802 return awsutil.Prettify(s) 3803} 3804 3805// GoString returns the string representation 3806func (s ListEntitiesDetectionV2JobsOutput) GoString() string { 3807 return s.String() 3808} 3809 3810// SetComprehendMedicalAsyncJobPropertiesList sets the ComprehendMedicalAsyncJobPropertiesList field's value. 3811func (s *ListEntitiesDetectionV2JobsOutput) SetComprehendMedicalAsyncJobPropertiesList(v []*ComprehendMedicalAsyncJobProperties) *ListEntitiesDetectionV2JobsOutput { 3812 s.ComprehendMedicalAsyncJobPropertiesList = v 3813 return s 3814} 3815 3816// SetNextToken sets the NextToken field's value. 3817func (s *ListEntitiesDetectionV2JobsOutput) SetNextToken(v string) *ListEntitiesDetectionV2JobsOutput { 3818 s.NextToken = &v 3819 return s 3820} 3821 3822type ListICD10CMInferenceJobsInput struct { 3823 _ struct{} `type:"structure"` 3824 3825 // Filters the jobs that are returned. You can filter jobs based on their names, 3826 // status, or the date and time that they were submitted. You can only set one 3827 // filter at a time. 3828 Filter *ComprehendMedicalAsyncJobFilter `type:"structure"` 3829 3830 // The maximum number of results to return in each page. The default is 100. 3831 MaxResults *int64 `min:"1" type:"integer"` 3832 3833 // Identifies the next page of results to return. 3834 NextToken *string `min:"1" type:"string"` 3835} 3836 3837// String returns the string representation 3838func (s ListICD10CMInferenceJobsInput) String() string { 3839 return awsutil.Prettify(s) 3840} 3841 3842// GoString returns the string representation 3843func (s ListICD10CMInferenceJobsInput) GoString() string { 3844 return s.String() 3845} 3846 3847// Validate inspects the fields of the type to determine if they are valid. 3848func (s *ListICD10CMInferenceJobsInput) Validate() error { 3849 invalidParams := request.ErrInvalidParams{Context: "ListICD10CMInferenceJobsInput"} 3850 if s.MaxResults != nil && *s.MaxResults < 1 { 3851 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 3852 } 3853 if s.NextToken != nil && len(*s.NextToken) < 1 { 3854 invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) 3855 } 3856 if s.Filter != nil { 3857 if err := s.Filter.Validate(); err != nil { 3858 invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) 3859 } 3860 } 3861 3862 if invalidParams.Len() > 0 { 3863 return invalidParams 3864 } 3865 return nil 3866} 3867 3868// SetFilter sets the Filter field's value. 3869func (s *ListICD10CMInferenceJobsInput) SetFilter(v *ComprehendMedicalAsyncJobFilter) *ListICD10CMInferenceJobsInput { 3870 s.Filter = v 3871 return s 3872} 3873 3874// SetMaxResults sets the MaxResults field's value. 3875func (s *ListICD10CMInferenceJobsInput) SetMaxResults(v int64) *ListICD10CMInferenceJobsInput { 3876 s.MaxResults = &v 3877 return s 3878} 3879 3880// SetNextToken sets the NextToken field's value. 3881func (s *ListICD10CMInferenceJobsInput) SetNextToken(v string) *ListICD10CMInferenceJobsInput { 3882 s.NextToken = &v 3883 return s 3884} 3885 3886type ListICD10CMInferenceJobsOutput struct { 3887 _ struct{} `type:"structure"` 3888 3889 // A list containing the properties of each job that is returned. 3890 ComprehendMedicalAsyncJobPropertiesList []*ComprehendMedicalAsyncJobProperties `type:"list"` 3891 3892 // Identifies the next page of results to return. 3893 NextToken *string `min:"1" type:"string"` 3894} 3895 3896// String returns the string representation 3897func (s ListICD10CMInferenceJobsOutput) String() string { 3898 return awsutil.Prettify(s) 3899} 3900 3901// GoString returns the string representation 3902func (s ListICD10CMInferenceJobsOutput) GoString() string { 3903 return s.String() 3904} 3905 3906// SetComprehendMedicalAsyncJobPropertiesList sets the ComprehendMedicalAsyncJobPropertiesList field's value. 3907func (s *ListICD10CMInferenceJobsOutput) SetComprehendMedicalAsyncJobPropertiesList(v []*ComprehendMedicalAsyncJobProperties) *ListICD10CMInferenceJobsOutput { 3908 s.ComprehendMedicalAsyncJobPropertiesList = v 3909 return s 3910} 3911 3912// SetNextToken sets the NextToken field's value. 3913func (s *ListICD10CMInferenceJobsOutput) SetNextToken(v string) *ListICD10CMInferenceJobsOutput { 3914 s.NextToken = &v 3915 return s 3916} 3917 3918type ListPHIDetectionJobsInput struct { 3919 _ struct{} `type:"structure"` 3920 3921 // Filters the jobs that are returned. You can filter jobs based on their names, 3922 // status, or the date and time that they were submitted. You can only set one 3923 // filter at a time. 3924 Filter *ComprehendMedicalAsyncJobFilter `type:"structure"` 3925 3926 // The maximum number of results to return in each page. The default is 100. 3927 MaxResults *int64 `min:"1" type:"integer"` 3928 3929 // Identifies the next page of results to return. 3930 NextToken *string `min:"1" type:"string"` 3931} 3932 3933// String returns the string representation 3934func (s ListPHIDetectionJobsInput) String() string { 3935 return awsutil.Prettify(s) 3936} 3937 3938// GoString returns the string representation 3939func (s ListPHIDetectionJobsInput) GoString() string { 3940 return s.String() 3941} 3942 3943// Validate inspects the fields of the type to determine if they are valid. 3944func (s *ListPHIDetectionJobsInput) Validate() error { 3945 invalidParams := request.ErrInvalidParams{Context: "ListPHIDetectionJobsInput"} 3946 if s.MaxResults != nil && *s.MaxResults < 1 { 3947 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 3948 } 3949 if s.NextToken != nil && len(*s.NextToken) < 1 { 3950 invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) 3951 } 3952 if s.Filter != nil { 3953 if err := s.Filter.Validate(); err != nil { 3954 invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) 3955 } 3956 } 3957 3958 if invalidParams.Len() > 0 { 3959 return invalidParams 3960 } 3961 return nil 3962} 3963 3964// SetFilter sets the Filter field's value. 3965func (s *ListPHIDetectionJobsInput) SetFilter(v *ComprehendMedicalAsyncJobFilter) *ListPHIDetectionJobsInput { 3966 s.Filter = v 3967 return s 3968} 3969 3970// SetMaxResults sets the MaxResults field's value. 3971func (s *ListPHIDetectionJobsInput) SetMaxResults(v int64) *ListPHIDetectionJobsInput { 3972 s.MaxResults = &v 3973 return s 3974} 3975 3976// SetNextToken sets the NextToken field's value. 3977func (s *ListPHIDetectionJobsInput) SetNextToken(v string) *ListPHIDetectionJobsInput { 3978 s.NextToken = &v 3979 return s 3980} 3981 3982type ListPHIDetectionJobsOutput struct { 3983 _ struct{} `type:"structure"` 3984 3985 // A list containing the properties of each job returned. 3986 ComprehendMedicalAsyncJobPropertiesList []*ComprehendMedicalAsyncJobProperties `type:"list"` 3987 3988 // Identifies the next page of results to return. 3989 NextToken *string `min:"1" type:"string"` 3990} 3991 3992// String returns the string representation 3993func (s ListPHIDetectionJobsOutput) String() string { 3994 return awsutil.Prettify(s) 3995} 3996 3997// GoString returns the string representation 3998func (s ListPHIDetectionJobsOutput) GoString() string { 3999 return s.String() 4000} 4001 4002// SetComprehendMedicalAsyncJobPropertiesList sets the ComprehendMedicalAsyncJobPropertiesList field's value. 4003func (s *ListPHIDetectionJobsOutput) SetComprehendMedicalAsyncJobPropertiesList(v []*ComprehendMedicalAsyncJobProperties) *ListPHIDetectionJobsOutput { 4004 s.ComprehendMedicalAsyncJobPropertiesList = v 4005 return s 4006} 4007 4008// SetNextToken sets the NextToken field's value. 4009func (s *ListPHIDetectionJobsOutput) SetNextToken(v string) *ListPHIDetectionJobsOutput { 4010 s.NextToken = &v 4011 return s 4012} 4013 4014type ListRxNormInferenceJobsInput struct { 4015 _ struct{} `type:"structure"` 4016 4017 // Filters the jobs that are returned. You can filter jobs based on their names, 4018 // status, or the date and time that they were submitted. You can only set one 4019 // filter at a time. 4020 Filter *ComprehendMedicalAsyncJobFilter `type:"structure"` 4021 4022 // Identifies the next page of results to return. 4023 MaxResults *int64 `min:"1" type:"integer"` 4024 4025 // Identifies the next page of results to return. 4026 NextToken *string `min:"1" type:"string"` 4027} 4028 4029// String returns the string representation 4030func (s ListRxNormInferenceJobsInput) String() string { 4031 return awsutil.Prettify(s) 4032} 4033 4034// GoString returns the string representation 4035func (s ListRxNormInferenceJobsInput) GoString() string { 4036 return s.String() 4037} 4038 4039// Validate inspects the fields of the type to determine if they are valid. 4040func (s *ListRxNormInferenceJobsInput) Validate() error { 4041 invalidParams := request.ErrInvalidParams{Context: "ListRxNormInferenceJobsInput"} 4042 if s.MaxResults != nil && *s.MaxResults < 1 { 4043 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 4044 } 4045 if s.NextToken != nil && len(*s.NextToken) < 1 { 4046 invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) 4047 } 4048 if s.Filter != nil { 4049 if err := s.Filter.Validate(); err != nil { 4050 invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) 4051 } 4052 } 4053 4054 if invalidParams.Len() > 0 { 4055 return invalidParams 4056 } 4057 return nil 4058} 4059 4060// SetFilter sets the Filter field's value. 4061func (s *ListRxNormInferenceJobsInput) SetFilter(v *ComprehendMedicalAsyncJobFilter) *ListRxNormInferenceJobsInput { 4062 s.Filter = v 4063 return s 4064} 4065 4066// SetMaxResults sets the MaxResults field's value. 4067func (s *ListRxNormInferenceJobsInput) SetMaxResults(v int64) *ListRxNormInferenceJobsInput { 4068 s.MaxResults = &v 4069 return s 4070} 4071 4072// SetNextToken sets the NextToken field's value. 4073func (s *ListRxNormInferenceJobsInput) SetNextToken(v string) *ListRxNormInferenceJobsInput { 4074 s.NextToken = &v 4075 return s 4076} 4077 4078type ListRxNormInferenceJobsOutput struct { 4079 _ struct{} `type:"structure"` 4080 4081 // The maximum number of results to return in each page. The default is 100. 4082 ComprehendMedicalAsyncJobPropertiesList []*ComprehendMedicalAsyncJobProperties `type:"list"` 4083 4084 // Identifies the next page of results to return. 4085 NextToken *string `min:"1" type:"string"` 4086} 4087 4088// String returns the string representation 4089func (s ListRxNormInferenceJobsOutput) String() string { 4090 return awsutil.Prettify(s) 4091} 4092 4093// GoString returns the string representation 4094func (s ListRxNormInferenceJobsOutput) GoString() string { 4095 return s.String() 4096} 4097 4098// SetComprehendMedicalAsyncJobPropertiesList sets the ComprehendMedicalAsyncJobPropertiesList field's value. 4099func (s *ListRxNormInferenceJobsOutput) SetComprehendMedicalAsyncJobPropertiesList(v []*ComprehendMedicalAsyncJobProperties) *ListRxNormInferenceJobsOutput { 4100 s.ComprehendMedicalAsyncJobPropertiesList = v 4101 return s 4102} 4103 4104// SetNextToken sets the NextToken field's value. 4105func (s *ListRxNormInferenceJobsOutput) SetNextToken(v string) *ListRxNormInferenceJobsOutput { 4106 s.NextToken = &v 4107 return s 4108} 4109 4110// The output properties for a detection job. 4111type OutputDataConfig struct { 4112 _ struct{} `type:"structure"` 4113 4114 // When you use the OutputDataConfig object with asynchronous operations, you 4115 // specify the Amazon S3 location where you want to write the output data. The 4116 // URI must be in the same region as the API endpoint that you are calling. 4117 // The location is used as the prefix for the actual location of the output. 4118 // 4119 // S3Bucket is a required field 4120 S3Bucket *string `min:"3" type:"string" required:"true"` 4121 4122 // The path to the output data files in the S3 bucket. Amazon Comprehend Medical 4123 // creates an output directory using the job ID so that the output from one 4124 // job does not overwrite the output of another. 4125 S3Key *string `type:"string"` 4126} 4127 4128// String returns the string representation 4129func (s OutputDataConfig) String() string { 4130 return awsutil.Prettify(s) 4131} 4132 4133// GoString returns the string representation 4134func (s OutputDataConfig) GoString() string { 4135 return s.String() 4136} 4137 4138// Validate inspects the fields of the type to determine if they are valid. 4139func (s *OutputDataConfig) Validate() error { 4140 invalidParams := request.ErrInvalidParams{Context: "OutputDataConfig"} 4141 if s.S3Bucket == nil { 4142 invalidParams.Add(request.NewErrParamRequired("S3Bucket")) 4143 } 4144 if s.S3Bucket != nil && len(*s.S3Bucket) < 3 { 4145 invalidParams.Add(request.NewErrParamMinLen("S3Bucket", 3)) 4146 } 4147 4148 if invalidParams.Len() > 0 { 4149 return invalidParams 4150 } 4151 return nil 4152} 4153 4154// SetS3Bucket sets the S3Bucket field's value. 4155func (s *OutputDataConfig) SetS3Bucket(v string) *OutputDataConfig { 4156 s.S3Bucket = &v 4157 return s 4158} 4159 4160// SetS3Key sets the S3Key field's value. 4161func (s *OutputDataConfig) SetS3Key(v string) *OutputDataConfig { 4162 s.S3Key = &v 4163 return s 4164} 4165 4166// The resource identified by the specified Amazon Resource Name (ARN) was not 4167// found. Check the ARN and try your request again. 4168type ResourceNotFoundException struct { 4169 _ struct{} `type:"structure"` 4170 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 4171 4172 Message_ *string `locationName:"Message" min:"1" type:"string"` 4173} 4174 4175// String returns the string representation 4176func (s ResourceNotFoundException) String() string { 4177 return awsutil.Prettify(s) 4178} 4179 4180// GoString returns the string representation 4181func (s ResourceNotFoundException) GoString() string { 4182 return s.String() 4183} 4184 4185func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { 4186 return &ResourceNotFoundException{ 4187 RespMetadata: v, 4188 } 4189} 4190 4191// Code returns the exception type name. 4192func (s *ResourceNotFoundException) Code() string { 4193 return "ResourceNotFoundException" 4194} 4195 4196// Message returns the exception's message. 4197func (s *ResourceNotFoundException) Message() string { 4198 if s.Message_ != nil { 4199 return *s.Message_ 4200 } 4201 return "" 4202} 4203 4204// OrigErr always returns nil, satisfies awserr.Error interface. 4205func (s *ResourceNotFoundException) OrigErr() error { 4206 return nil 4207} 4208 4209func (s *ResourceNotFoundException) Error() string { 4210 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 4211} 4212 4213// Status code returns the HTTP status code for the request's response error. 4214func (s *ResourceNotFoundException) StatusCode() int { 4215 return s.RespMetadata.StatusCode 4216} 4217 4218// RequestID returns the service's response RequestID for request. 4219func (s *ResourceNotFoundException) RequestID() string { 4220 return s.RespMetadata.RequestID 4221} 4222 4223// The extracted attributes that relate to this entity. The attributes recognized 4224// by InferRxNorm are DOSAGE, DURATION, FORM, FREQUENCY, RATE, ROUTE_OR_MODE. 4225type RxNormAttribute struct { 4226 _ struct{} `type:"structure"` 4227 4228 // The 0-based character offset in the input text that shows where the attribute 4229 // begins. The offset returns the UTF-8 code point in the string. 4230 BeginOffset *int64 `type:"integer"` 4231 4232 // The 0-based character offset in the input text that shows where the attribute 4233 // ends. The offset returns the UTF-8 code point in the string. 4234 EndOffset *int64 `type:"integer"` 4235 4236 // The numeric identifier for this attribute. This is a monotonically increasing 4237 // id unique within this response rather than a global unique identifier. 4238 Id *int64 `type:"integer"` 4239 4240 // The level of confidence that Amazon Comprehend Medical has that the attribute 4241 // is accurately linked to an entity. 4242 RelationshipScore *float64 `type:"float"` 4243 4244 // The level of confidence that Comprehend Medical has that the segment of text 4245 // is correctly recognized as an attribute. 4246 Score *float64 `type:"float"` 4247 4248 // The segment of input text which corresponds to the detected attribute. 4249 Text *string `min:"1" type:"string"` 4250 4251 // Contextual information for the attribute. InferRxNorm recognizes the trait 4252 // NEGATION for attributes, i.e. that the patient is not taking a specific dose 4253 // or form of a medication. 4254 Traits []*RxNormTrait `type:"list"` 4255 4256 // The type of attribute. The types of attributes recognized by InferRxNorm 4257 // are BRAND_NAME and GENERIC_NAME. 4258 Type *string `type:"string" enum:"RxNormAttributeType"` 4259} 4260 4261// String returns the string representation 4262func (s RxNormAttribute) String() string { 4263 return awsutil.Prettify(s) 4264} 4265 4266// GoString returns the string representation 4267func (s RxNormAttribute) GoString() string { 4268 return s.String() 4269} 4270 4271// SetBeginOffset sets the BeginOffset field's value. 4272func (s *RxNormAttribute) SetBeginOffset(v int64) *RxNormAttribute { 4273 s.BeginOffset = &v 4274 return s 4275} 4276 4277// SetEndOffset sets the EndOffset field's value. 4278func (s *RxNormAttribute) SetEndOffset(v int64) *RxNormAttribute { 4279 s.EndOffset = &v 4280 return s 4281} 4282 4283// SetId sets the Id field's value. 4284func (s *RxNormAttribute) SetId(v int64) *RxNormAttribute { 4285 s.Id = &v 4286 return s 4287} 4288 4289// SetRelationshipScore sets the RelationshipScore field's value. 4290func (s *RxNormAttribute) SetRelationshipScore(v float64) *RxNormAttribute { 4291 s.RelationshipScore = &v 4292 return s 4293} 4294 4295// SetScore sets the Score field's value. 4296func (s *RxNormAttribute) SetScore(v float64) *RxNormAttribute { 4297 s.Score = &v 4298 return s 4299} 4300 4301// SetText sets the Text field's value. 4302func (s *RxNormAttribute) SetText(v string) *RxNormAttribute { 4303 s.Text = &v 4304 return s 4305} 4306 4307// SetTraits sets the Traits field's value. 4308func (s *RxNormAttribute) SetTraits(v []*RxNormTrait) *RxNormAttribute { 4309 s.Traits = v 4310 return s 4311} 4312 4313// SetType sets the Type field's value. 4314func (s *RxNormAttribute) SetType(v string) *RxNormAttribute { 4315 s.Type = &v 4316 return s 4317} 4318 4319// The RxNorm concept that the entity could refer to, along with a score indicating 4320// the likelihood of the match. 4321type RxNormConcept struct { 4322 _ struct{} `type:"structure"` 4323 4324 // RxNorm concept ID, also known as the RxCUI. 4325 Code *string `min:"1" type:"string"` 4326 4327 // The description of the RxNorm concept. 4328 Description *string `min:"1" type:"string"` 4329 4330 // The level of confidence that Amazon Comprehend Medical has that the entity 4331 // is accurately linked to the reported RxNorm concept. 4332 Score *float64 `type:"float"` 4333} 4334 4335// String returns the string representation 4336func (s RxNormConcept) String() string { 4337 return awsutil.Prettify(s) 4338} 4339 4340// GoString returns the string representation 4341func (s RxNormConcept) GoString() string { 4342 return s.String() 4343} 4344 4345// SetCode sets the Code field's value. 4346func (s *RxNormConcept) SetCode(v string) *RxNormConcept { 4347 s.Code = &v 4348 return s 4349} 4350 4351// SetDescription sets the Description field's value. 4352func (s *RxNormConcept) SetDescription(v string) *RxNormConcept { 4353 s.Description = &v 4354 return s 4355} 4356 4357// SetScore sets the Score field's value. 4358func (s *RxNormConcept) SetScore(v float64) *RxNormConcept { 4359 s.Score = &v 4360 return s 4361} 4362 4363// The collection of medical entities extracted from the input text and their 4364// associated information. For each entity, the response provides the entity 4365// text, the entity category, where the entity text begins and ends, and the 4366// level of confidence that Amazon Comprehend Medical has in the detection and 4367// analysis. Attributes and traits of the entity are also returned. 4368type RxNormEntity struct { 4369 _ struct{} `type:"structure"` 4370 4371 // The extracted attributes that relate to the entity. The attributes recognized 4372 // by InferRxNorm are DOSAGE, DURATION, FORM, FREQUENCY, RATE, ROUTE_OR_MODE, 4373 // and STRENGTH. 4374 Attributes []*RxNormAttribute `type:"list"` 4375 4376 // The 0-based character offset in the input text that shows where the entity 4377 // begins. The offset returns the UTF-8 code point in the string. 4378 BeginOffset *int64 `type:"integer"` 4379 4380 // The category of the entity. The recognized categories are GENERIC or BRAND_NAME. 4381 Category *string `type:"string" enum:"RxNormEntityCategory"` 4382 4383 // The 0-based character offset in the input text that shows where the entity 4384 // ends. The offset returns the UTF-8 code point in the string. 4385 EndOffset *int64 `type:"integer"` 4386 4387 // The numeric identifier for the entity. This is a monotonically increasing 4388 // id unique within this response rather than a global unique identifier. 4389 Id *int64 `type:"integer"` 4390 4391 // The RxNorm concepts that the entity could refer to, along with a score indicating 4392 // the likelihood of the match. 4393 RxNormConcepts []*RxNormConcept `type:"list"` 4394 4395 // The level of confidence that Amazon Comprehend Medical has in the accuracy 4396 // of the detected entity. 4397 Score *float64 `type:"float"` 4398 4399 // The segment of input text extracted from which the entity was detected. 4400 Text *string `min:"1" type:"string"` 4401 4402 // Contextual information for the entity. 4403 Traits []*RxNormTrait `type:"list"` 4404 4405 // Describes the specific type of entity. For InferRxNorm, the recognized entity 4406 // type is MEDICATION. 4407 Type *string `type:"string" enum:"RxNormEntityType"` 4408} 4409 4410// String returns the string representation 4411func (s RxNormEntity) String() string { 4412 return awsutil.Prettify(s) 4413} 4414 4415// GoString returns the string representation 4416func (s RxNormEntity) GoString() string { 4417 return s.String() 4418} 4419 4420// SetAttributes sets the Attributes field's value. 4421func (s *RxNormEntity) SetAttributes(v []*RxNormAttribute) *RxNormEntity { 4422 s.Attributes = v 4423 return s 4424} 4425 4426// SetBeginOffset sets the BeginOffset field's value. 4427func (s *RxNormEntity) SetBeginOffset(v int64) *RxNormEntity { 4428 s.BeginOffset = &v 4429 return s 4430} 4431 4432// SetCategory sets the Category field's value. 4433func (s *RxNormEntity) SetCategory(v string) *RxNormEntity { 4434 s.Category = &v 4435 return s 4436} 4437 4438// SetEndOffset sets the EndOffset field's value. 4439func (s *RxNormEntity) SetEndOffset(v int64) *RxNormEntity { 4440 s.EndOffset = &v 4441 return s 4442} 4443 4444// SetId sets the Id field's value. 4445func (s *RxNormEntity) SetId(v int64) *RxNormEntity { 4446 s.Id = &v 4447 return s 4448} 4449 4450// SetRxNormConcepts sets the RxNormConcepts field's value. 4451func (s *RxNormEntity) SetRxNormConcepts(v []*RxNormConcept) *RxNormEntity { 4452 s.RxNormConcepts = v 4453 return s 4454} 4455 4456// SetScore sets the Score field's value. 4457func (s *RxNormEntity) SetScore(v float64) *RxNormEntity { 4458 s.Score = &v 4459 return s 4460} 4461 4462// SetText sets the Text field's value. 4463func (s *RxNormEntity) SetText(v string) *RxNormEntity { 4464 s.Text = &v 4465 return s 4466} 4467 4468// SetTraits sets the Traits field's value. 4469func (s *RxNormEntity) SetTraits(v []*RxNormTrait) *RxNormEntity { 4470 s.Traits = v 4471 return s 4472} 4473 4474// SetType sets the Type field's value. 4475func (s *RxNormEntity) SetType(v string) *RxNormEntity { 4476 s.Type = &v 4477 return s 4478} 4479 4480// The contextual information for the entity. InferRxNorm recognizes the trait 4481// NEGATION, which is any indication that the patient is not taking a medication. 4482type RxNormTrait struct { 4483 _ struct{} `type:"structure"` 4484 4485 // Provides a name or contextual description about the trait. 4486 Name *string `type:"string" enum:"RxNormTraitName"` 4487 4488 // The level of confidence that Amazon Comprehend Medical has in the accuracy 4489 // of the detected trait. 4490 Score *float64 `type:"float"` 4491} 4492 4493// String returns the string representation 4494func (s RxNormTrait) String() string { 4495 return awsutil.Prettify(s) 4496} 4497 4498// GoString returns the string representation 4499func (s RxNormTrait) GoString() string { 4500 return s.String() 4501} 4502 4503// SetName sets the Name field's value. 4504func (s *RxNormTrait) SetName(v string) *RxNormTrait { 4505 s.Name = &v 4506 return s 4507} 4508 4509// SetScore sets the Score field's value. 4510func (s *RxNormTrait) SetScore(v float64) *RxNormTrait { 4511 s.Score = &v 4512 return s 4513} 4514 4515// The Amazon Comprehend Medical service is temporarily unavailable. Please 4516// wait and then retry your request. 4517type ServiceUnavailableException struct { 4518 _ struct{} `type:"structure"` 4519 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 4520 4521 Message_ *string `locationName:"Message" min:"1" type:"string"` 4522} 4523 4524// String returns the string representation 4525func (s ServiceUnavailableException) String() string { 4526 return awsutil.Prettify(s) 4527} 4528 4529// GoString returns the string representation 4530func (s ServiceUnavailableException) GoString() string { 4531 return s.String() 4532} 4533 4534func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { 4535 return &ServiceUnavailableException{ 4536 RespMetadata: v, 4537 } 4538} 4539 4540// Code returns the exception type name. 4541func (s *ServiceUnavailableException) Code() string { 4542 return "ServiceUnavailableException" 4543} 4544 4545// Message returns the exception's message. 4546func (s *ServiceUnavailableException) Message() string { 4547 if s.Message_ != nil { 4548 return *s.Message_ 4549 } 4550 return "" 4551} 4552 4553// OrigErr always returns nil, satisfies awserr.Error interface. 4554func (s *ServiceUnavailableException) OrigErr() error { 4555 return nil 4556} 4557 4558func (s *ServiceUnavailableException) Error() string { 4559 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 4560} 4561 4562// Status code returns the HTTP status code for the request's response error. 4563func (s *ServiceUnavailableException) StatusCode() int { 4564 return s.RespMetadata.StatusCode 4565} 4566 4567// RequestID returns the service's response RequestID for request. 4568func (s *ServiceUnavailableException) RequestID() string { 4569 return s.RespMetadata.RequestID 4570} 4571 4572type StartEntitiesDetectionV2JobInput struct { 4573 _ struct{} `type:"structure"` 4574 4575 // A unique identifier for the request. If you don't set the client request 4576 // token, Amazon Comprehend Medical generates one. 4577 ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` 4578 4579 // The Amazon Resource Name (ARN) of the AWS Identity and Access Management 4580 // (IAM) role that grants Amazon Comprehend Medical read access to your input 4581 // data. For more information, see Role-Based Permissions Required for Asynchronous 4582 // Operations (https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med). 4583 // 4584 // DataAccessRoleArn is a required field 4585 DataAccessRoleArn *string `min:"20" type:"string" required:"true"` 4586 4587 // Specifies the format and location of the input data for the job. 4588 // 4589 // InputDataConfig is a required field 4590 InputDataConfig *InputDataConfig `type:"structure" required:"true"` 4591 4592 // The identifier of the job. 4593 JobName *string `min:"1" type:"string"` 4594 4595 // An AWS Key Management Service key to encrypt your output files. If you do 4596 // not specify a key, the files are written in plain text. 4597 KMSKey *string `min:"1" type:"string"` 4598 4599 // The language of the input documents. All documents must be in the same language. 4600 // 4601 // LanguageCode is a required field 4602 LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` 4603 4604 // Specifies where to send the output files. 4605 // 4606 // OutputDataConfig is a required field 4607 OutputDataConfig *OutputDataConfig `type:"structure" required:"true"` 4608} 4609 4610// String returns the string representation 4611func (s StartEntitiesDetectionV2JobInput) String() string { 4612 return awsutil.Prettify(s) 4613} 4614 4615// GoString returns the string representation 4616func (s StartEntitiesDetectionV2JobInput) GoString() string { 4617 return s.String() 4618} 4619 4620// Validate inspects the fields of the type to determine if they are valid. 4621func (s *StartEntitiesDetectionV2JobInput) Validate() error { 4622 invalidParams := request.ErrInvalidParams{Context: "StartEntitiesDetectionV2JobInput"} 4623 if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { 4624 invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) 4625 } 4626 if s.DataAccessRoleArn == nil { 4627 invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) 4628 } 4629 if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { 4630 invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) 4631 } 4632 if s.InputDataConfig == nil { 4633 invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) 4634 } 4635 if s.JobName != nil && len(*s.JobName) < 1 { 4636 invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) 4637 } 4638 if s.KMSKey != nil && len(*s.KMSKey) < 1 { 4639 invalidParams.Add(request.NewErrParamMinLen("KMSKey", 1)) 4640 } 4641 if s.LanguageCode == nil { 4642 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 4643 } 4644 if s.OutputDataConfig == nil { 4645 invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) 4646 } 4647 if s.InputDataConfig != nil { 4648 if err := s.InputDataConfig.Validate(); err != nil { 4649 invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams)) 4650 } 4651 } 4652 if s.OutputDataConfig != nil { 4653 if err := s.OutputDataConfig.Validate(); err != nil { 4654 invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) 4655 } 4656 } 4657 4658 if invalidParams.Len() > 0 { 4659 return invalidParams 4660 } 4661 return nil 4662} 4663 4664// SetClientRequestToken sets the ClientRequestToken field's value. 4665func (s *StartEntitiesDetectionV2JobInput) SetClientRequestToken(v string) *StartEntitiesDetectionV2JobInput { 4666 s.ClientRequestToken = &v 4667 return s 4668} 4669 4670// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 4671func (s *StartEntitiesDetectionV2JobInput) SetDataAccessRoleArn(v string) *StartEntitiesDetectionV2JobInput { 4672 s.DataAccessRoleArn = &v 4673 return s 4674} 4675 4676// SetInputDataConfig sets the InputDataConfig field's value. 4677func (s *StartEntitiesDetectionV2JobInput) SetInputDataConfig(v *InputDataConfig) *StartEntitiesDetectionV2JobInput { 4678 s.InputDataConfig = v 4679 return s 4680} 4681 4682// SetJobName sets the JobName field's value. 4683func (s *StartEntitiesDetectionV2JobInput) SetJobName(v string) *StartEntitiesDetectionV2JobInput { 4684 s.JobName = &v 4685 return s 4686} 4687 4688// SetKMSKey sets the KMSKey field's value. 4689func (s *StartEntitiesDetectionV2JobInput) SetKMSKey(v string) *StartEntitiesDetectionV2JobInput { 4690 s.KMSKey = &v 4691 return s 4692} 4693 4694// SetLanguageCode sets the LanguageCode field's value. 4695func (s *StartEntitiesDetectionV2JobInput) SetLanguageCode(v string) *StartEntitiesDetectionV2JobInput { 4696 s.LanguageCode = &v 4697 return s 4698} 4699 4700// SetOutputDataConfig sets the OutputDataConfig field's value. 4701func (s *StartEntitiesDetectionV2JobInput) SetOutputDataConfig(v *OutputDataConfig) *StartEntitiesDetectionV2JobInput { 4702 s.OutputDataConfig = v 4703 return s 4704} 4705 4706type StartEntitiesDetectionV2JobOutput struct { 4707 _ struct{} `type:"structure"` 4708 4709 // The identifier generated for the job. To get the status of a job, use this 4710 // identifier with the DescribeEntitiesDetectionV2Job operation. 4711 JobId *string `min:"1" type:"string"` 4712} 4713 4714// String returns the string representation 4715func (s StartEntitiesDetectionV2JobOutput) String() string { 4716 return awsutil.Prettify(s) 4717} 4718 4719// GoString returns the string representation 4720func (s StartEntitiesDetectionV2JobOutput) GoString() string { 4721 return s.String() 4722} 4723 4724// SetJobId sets the JobId field's value. 4725func (s *StartEntitiesDetectionV2JobOutput) SetJobId(v string) *StartEntitiesDetectionV2JobOutput { 4726 s.JobId = &v 4727 return s 4728} 4729 4730type StartICD10CMInferenceJobInput struct { 4731 _ struct{} `type:"structure"` 4732 4733 // A unique identifier for the request. If you don't set the client request 4734 // token, Amazon Comprehend Medical generates one. 4735 ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` 4736 4737 // The Amazon Resource Name (ARN) of the AWS Identity and Access Management 4738 // (IAM) role that grants Amazon Comprehend Medical read access to your input 4739 // data. For more information, see Role-Based Permissions Required for Asynchronous 4740 // Operations (https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med). 4741 // 4742 // DataAccessRoleArn is a required field 4743 DataAccessRoleArn *string `min:"20" type:"string" required:"true"` 4744 4745 // Specifies the format and location of the input data for the job. 4746 // 4747 // InputDataConfig is a required field 4748 InputDataConfig *InputDataConfig `type:"structure" required:"true"` 4749 4750 // The identifier of the job. 4751 JobName *string `min:"1" type:"string"` 4752 4753 // An AWS Key Management Service key to encrypt your output files. If you do 4754 // not specify a key, the files are written in plain text. 4755 KMSKey *string `min:"1" type:"string"` 4756 4757 // The language of the input documents. All documents must be in the same language. 4758 // 4759 // LanguageCode is a required field 4760 LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` 4761 4762 // Specifies where to send the output files. 4763 // 4764 // OutputDataConfig is a required field 4765 OutputDataConfig *OutputDataConfig `type:"structure" required:"true"` 4766} 4767 4768// String returns the string representation 4769func (s StartICD10CMInferenceJobInput) String() string { 4770 return awsutil.Prettify(s) 4771} 4772 4773// GoString returns the string representation 4774func (s StartICD10CMInferenceJobInput) GoString() string { 4775 return s.String() 4776} 4777 4778// Validate inspects the fields of the type to determine if they are valid. 4779func (s *StartICD10CMInferenceJobInput) Validate() error { 4780 invalidParams := request.ErrInvalidParams{Context: "StartICD10CMInferenceJobInput"} 4781 if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { 4782 invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) 4783 } 4784 if s.DataAccessRoleArn == nil { 4785 invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) 4786 } 4787 if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { 4788 invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) 4789 } 4790 if s.InputDataConfig == nil { 4791 invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) 4792 } 4793 if s.JobName != nil && len(*s.JobName) < 1 { 4794 invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) 4795 } 4796 if s.KMSKey != nil && len(*s.KMSKey) < 1 { 4797 invalidParams.Add(request.NewErrParamMinLen("KMSKey", 1)) 4798 } 4799 if s.LanguageCode == nil { 4800 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 4801 } 4802 if s.OutputDataConfig == nil { 4803 invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) 4804 } 4805 if s.InputDataConfig != nil { 4806 if err := s.InputDataConfig.Validate(); err != nil { 4807 invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams)) 4808 } 4809 } 4810 if s.OutputDataConfig != nil { 4811 if err := s.OutputDataConfig.Validate(); err != nil { 4812 invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) 4813 } 4814 } 4815 4816 if invalidParams.Len() > 0 { 4817 return invalidParams 4818 } 4819 return nil 4820} 4821 4822// SetClientRequestToken sets the ClientRequestToken field's value. 4823func (s *StartICD10CMInferenceJobInput) SetClientRequestToken(v string) *StartICD10CMInferenceJobInput { 4824 s.ClientRequestToken = &v 4825 return s 4826} 4827 4828// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 4829func (s *StartICD10CMInferenceJobInput) SetDataAccessRoleArn(v string) *StartICD10CMInferenceJobInput { 4830 s.DataAccessRoleArn = &v 4831 return s 4832} 4833 4834// SetInputDataConfig sets the InputDataConfig field's value. 4835func (s *StartICD10CMInferenceJobInput) SetInputDataConfig(v *InputDataConfig) *StartICD10CMInferenceJobInput { 4836 s.InputDataConfig = v 4837 return s 4838} 4839 4840// SetJobName sets the JobName field's value. 4841func (s *StartICD10CMInferenceJobInput) SetJobName(v string) *StartICD10CMInferenceJobInput { 4842 s.JobName = &v 4843 return s 4844} 4845 4846// SetKMSKey sets the KMSKey field's value. 4847func (s *StartICD10CMInferenceJobInput) SetKMSKey(v string) *StartICD10CMInferenceJobInput { 4848 s.KMSKey = &v 4849 return s 4850} 4851 4852// SetLanguageCode sets the LanguageCode field's value. 4853func (s *StartICD10CMInferenceJobInput) SetLanguageCode(v string) *StartICD10CMInferenceJobInput { 4854 s.LanguageCode = &v 4855 return s 4856} 4857 4858// SetOutputDataConfig sets the OutputDataConfig field's value. 4859func (s *StartICD10CMInferenceJobInput) SetOutputDataConfig(v *OutputDataConfig) *StartICD10CMInferenceJobInput { 4860 s.OutputDataConfig = v 4861 return s 4862} 4863 4864type StartICD10CMInferenceJobOutput struct { 4865 _ struct{} `type:"structure"` 4866 4867 // The identifier generated for the job. To get the status of a job, use this 4868 // identifier with the StartICD10CMInferenceJob operation. 4869 JobId *string `min:"1" type:"string"` 4870} 4871 4872// String returns the string representation 4873func (s StartICD10CMInferenceJobOutput) String() string { 4874 return awsutil.Prettify(s) 4875} 4876 4877// GoString returns the string representation 4878func (s StartICD10CMInferenceJobOutput) GoString() string { 4879 return s.String() 4880} 4881 4882// SetJobId sets the JobId field's value. 4883func (s *StartICD10CMInferenceJobOutput) SetJobId(v string) *StartICD10CMInferenceJobOutput { 4884 s.JobId = &v 4885 return s 4886} 4887 4888type StartPHIDetectionJobInput struct { 4889 _ struct{} `type:"structure"` 4890 4891 // A unique identifier for the request. If you don't set the client request 4892 // token, Amazon Comprehend Medical generates one. 4893 ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` 4894 4895 // The Amazon Resource Name (ARN) of the AWS Identity and Access Management 4896 // (IAM) role that grants Amazon Comprehend Medical read access to your input 4897 // data. For more information, see Role-Based Permissions Required for Asynchronous 4898 // Operations (https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med). 4899 // 4900 // DataAccessRoleArn is a required field 4901 DataAccessRoleArn *string `min:"20" type:"string" required:"true"` 4902 4903 // Specifies the format and location of the input data for the job. 4904 // 4905 // InputDataConfig is a required field 4906 InputDataConfig *InputDataConfig `type:"structure" required:"true"` 4907 4908 // The identifier of the job. 4909 JobName *string `min:"1" type:"string"` 4910 4911 // An AWS Key Management Service key to encrypt your output files. If you do 4912 // not specify a key, the files are written in plain text. 4913 KMSKey *string `min:"1" type:"string"` 4914 4915 // The language of the input documents. All documents must be in the same language. 4916 // 4917 // LanguageCode is a required field 4918 LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` 4919 4920 // Specifies where to send the output files. 4921 // 4922 // OutputDataConfig is a required field 4923 OutputDataConfig *OutputDataConfig `type:"structure" required:"true"` 4924} 4925 4926// String returns the string representation 4927func (s StartPHIDetectionJobInput) String() string { 4928 return awsutil.Prettify(s) 4929} 4930 4931// GoString returns the string representation 4932func (s StartPHIDetectionJobInput) GoString() string { 4933 return s.String() 4934} 4935 4936// Validate inspects the fields of the type to determine if they are valid. 4937func (s *StartPHIDetectionJobInput) Validate() error { 4938 invalidParams := request.ErrInvalidParams{Context: "StartPHIDetectionJobInput"} 4939 if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { 4940 invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) 4941 } 4942 if s.DataAccessRoleArn == nil { 4943 invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) 4944 } 4945 if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { 4946 invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) 4947 } 4948 if s.InputDataConfig == nil { 4949 invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) 4950 } 4951 if s.JobName != nil && len(*s.JobName) < 1 { 4952 invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) 4953 } 4954 if s.KMSKey != nil && len(*s.KMSKey) < 1 { 4955 invalidParams.Add(request.NewErrParamMinLen("KMSKey", 1)) 4956 } 4957 if s.LanguageCode == nil { 4958 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 4959 } 4960 if s.OutputDataConfig == nil { 4961 invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) 4962 } 4963 if s.InputDataConfig != nil { 4964 if err := s.InputDataConfig.Validate(); err != nil { 4965 invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams)) 4966 } 4967 } 4968 if s.OutputDataConfig != nil { 4969 if err := s.OutputDataConfig.Validate(); err != nil { 4970 invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) 4971 } 4972 } 4973 4974 if invalidParams.Len() > 0 { 4975 return invalidParams 4976 } 4977 return nil 4978} 4979 4980// SetClientRequestToken sets the ClientRequestToken field's value. 4981func (s *StartPHIDetectionJobInput) SetClientRequestToken(v string) *StartPHIDetectionJobInput { 4982 s.ClientRequestToken = &v 4983 return s 4984} 4985 4986// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 4987func (s *StartPHIDetectionJobInput) SetDataAccessRoleArn(v string) *StartPHIDetectionJobInput { 4988 s.DataAccessRoleArn = &v 4989 return s 4990} 4991 4992// SetInputDataConfig sets the InputDataConfig field's value. 4993func (s *StartPHIDetectionJobInput) SetInputDataConfig(v *InputDataConfig) *StartPHIDetectionJobInput { 4994 s.InputDataConfig = v 4995 return s 4996} 4997 4998// SetJobName sets the JobName field's value. 4999func (s *StartPHIDetectionJobInput) SetJobName(v string) *StartPHIDetectionJobInput { 5000 s.JobName = &v 5001 return s 5002} 5003 5004// SetKMSKey sets the KMSKey field's value. 5005func (s *StartPHIDetectionJobInput) SetKMSKey(v string) *StartPHIDetectionJobInput { 5006 s.KMSKey = &v 5007 return s 5008} 5009 5010// SetLanguageCode sets the LanguageCode field's value. 5011func (s *StartPHIDetectionJobInput) SetLanguageCode(v string) *StartPHIDetectionJobInput { 5012 s.LanguageCode = &v 5013 return s 5014} 5015 5016// SetOutputDataConfig sets the OutputDataConfig field's value. 5017func (s *StartPHIDetectionJobInput) SetOutputDataConfig(v *OutputDataConfig) *StartPHIDetectionJobInput { 5018 s.OutputDataConfig = v 5019 return s 5020} 5021 5022type StartPHIDetectionJobOutput struct { 5023 _ struct{} `type:"structure"` 5024 5025 // The identifier generated for the job. To get the status of a job, use this 5026 // identifier with the DescribePHIDetectionJob operation. 5027 JobId *string `min:"1" type:"string"` 5028} 5029 5030// String returns the string representation 5031func (s StartPHIDetectionJobOutput) String() string { 5032 return awsutil.Prettify(s) 5033} 5034 5035// GoString returns the string representation 5036func (s StartPHIDetectionJobOutput) GoString() string { 5037 return s.String() 5038} 5039 5040// SetJobId sets the JobId field's value. 5041func (s *StartPHIDetectionJobOutput) SetJobId(v string) *StartPHIDetectionJobOutput { 5042 s.JobId = &v 5043 return s 5044} 5045 5046type StartRxNormInferenceJobInput struct { 5047 _ struct{} `type:"structure"` 5048 5049 // A unique identifier for the request. If you don't set the client request 5050 // token, Amazon Comprehend Medical generates one. 5051 ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` 5052 5053 // The Amazon Resource Name (ARN) of the AWS Identity and Access Management 5054 // (IAM) role that grants Amazon Comprehend Medical read access to your input 5055 // data. For more information, see Role-Based Permissions Required for Asynchronous 5056 // Operations (https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med). 5057 // 5058 // DataAccessRoleArn is a required field 5059 DataAccessRoleArn *string `min:"20" type:"string" required:"true"` 5060 5061 // Specifies the format and location of the input data for the job. 5062 // 5063 // InputDataConfig is a required field 5064 InputDataConfig *InputDataConfig `type:"structure" required:"true"` 5065 5066 // The identifier of the job. 5067 JobName *string `min:"1" type:"string"` 5068 5069 // An AWS Key Management Service key to encrypt your output files. If you do 5070 // not specify a key, the files are written in plain text. 5071 KMSKey *string `min:"1" type:"string"` 5072 5073 // The language of the input documents. All documents must be in the same language. 5074 // 5075 // LanguageCode is a required field 5076 LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` 5077 5078 // Specifies where to send the output files. 5079 // 5080 // OutputDataConfig is a required field 5081 OutputDataConfig *OutputDataConfig `type:"structure" required:"true"` 5082} 5083 5084// String returns the string representation 5085func (s StartRxNormInferenceJobInput) String() string { 5086 return awsutil.Prettify(s) 5087} 5088 5089// GoString returns the string representation 5090func (s StartRxNormInferenceJobInput) GoString() string { 5091 return s.String() 5092} 5093 5094// Validate inspects the fields of the type to determine if they are valid. 5095func (s *StartRxNormInferenceJobInput) Validate() error { 5096 invalidParams := request.ErrInvalidParams{Context: "StartRxNormInferenceJobInput"} 5097 if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { 5098 invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) 5099 } 5100 if s.DataAccessRoleArn == nil { 5101 invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) 5102 } 5103 if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { 5104 invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) 5105 } 5106 if s.InputDataConfig == nil { 5107 invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) 5108 } 5109 if s.JobName != nil && len(*s.JobName) < 1 { 5110 invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) 5111 } 5112 if s.KMSKey != nil && len(*s.KMSKey) < 1 { 5113 invalidParams.Add(request.NewErrParamMinLen("KMSKey", 1)) 5114 } 5115 if s.LanguageCode == nil { 5116 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 5117 } 5118 if s.OutputDataConfig == nil { 5119 invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) 5120 } 5121 if s.InputDataConfig != nil { 5122 if err := s.InputDataConfig.Validate(); err != nil { 5123 invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams)) 5124 } 5125 } 5126 if s.OutputDataConfig != nil { 5127 if err := s.OutputDataConfig.Validate(); err != nil { 5128 invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) 5129 } 5130 } 5131 5132 if invalidParams.Len() > 0 { 5133 return invalidParams 5134 } 5135 return nil 5136} 5137 5138// SetClientRequestToken sets the ClientRequestToken field's value. 5139func (s *StartRxNormInferenceJobInput) SetClientRequestToken(v string) *StartRxNormInferenceJobInput { 5140 s.ClientRequestToken = &v 5141 return s 5142} 5143 5144// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 5145func (s *StartRxNormInferenceJobInput) SetDataAccessRoleArn(v string) *StartRxNormInferenceJobInput { 5146 s.DataAccessRoleArn = &v 5147 return s 5148} 5149 5150// SetInputDataConfig sets the InputDataConfig field's value. 5151func (s *StartRxNormInferenceJobInput) SetInputDataConfig(v *InputDataConfig) *StartRxNormInferenceJobInput { 5152 s.InputDataConfig = v 5153 return s 5154} 5155 5156// SetJobName sets the JobName field's value. 5157func (s *StartRxNormInferenceJobInput) SetJobName(v string) *StartRxNormInferenceJobInput { 5158 s.JobName = &v 5159 return s 5160} 5161 5162// SetKMSKey sets the KMSKey field's value. 5163func (s *StartRxNormInferenceJobInput) SetKMSKey(v string) *StartRxNormInferenceJobInput { 5164 s.KMSKey = &v 5165 return s 5166} 5167 5168// SetLanguageCode sets the LanguageCode field's value. 5169func (s *StartRxNormInferenceJobInput) SetLanguageCode(v string) *StartRxNormInferenceJobInput { 5170 s.LanguageCode = &v 5171 return s 5172} 5173 5174// SetOutputDataConfig sets the OutputDataConfig field's value. 5175func (s *StartRxNormInferenceJobInput) SetOutputDataConfig(v *OutputDataConfig) *StartRxNormInferenceJobInput { 5176 s.OutputDataConfig = v 5177 return s 5178} 5179 5180type StartRxNormInferenceJobOutput struct { 5181 _ struct{} `type:"structure"` 5182 5183 // The identifier of the job. 5184 JobId *string `min:"1" type:"string"` 5185} 5186 5187// String returns the string representation 5188func (s StartRxNormInferenceJobOutput) String() string { 5189 return awsutil.Prettify(s) 5190} 5191 5192// GoString returns the string representation 5193func (s StartRxNormInferenceJobOutput) GoString() string { 5194 return s.String() 5195} 5196 5197// SetJobId sets the JobId field's value. 5198func (s *StartRxNormInferenceJobOutput) SetJobId(v string) *StartRxNormInferenceJobOutput { 5199 s.JobId = &v 5200 return s 5201} 5202 5203type StopEntitiesDetectionV2JobInput struct { 5204 _ struct{} `type:"structure"` 5205 5206 // The identifier of the medical entities job to stop. 5207 // 5208 // JobId is a required field 5209 JobId *string `min:"1" type:"string" required:"true"` 5210} 5211 5212// String returns the string representation 5213func (s StopEntitiesDetectionV2JobInput) String() string { 5214 return awsutil.Prettify(s) 5215} 5216 5217// GoString returns the string representation 5218func (s StopEntitiesDetectionV2JobInput) GoString() string { 5219 return s.String() 5220} 5221 5222// Validate inspects the fields of the type to determine if they are valid. 5223func (s *StopEntitiesDetectionV2JobInput) Validate() error { 5224 invalidParams := request.ErrInvalidParams{Context: "StopEntitiesDetectionV2JobInput"} 5225 if s.JobId == nil { 5226 invalidParams.Add(request.NewErrParamRequired("JobId")) 5227 } 5228 if s.JobId != nil && len(*s.JobId) < 1 { 5229 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 5230 } 5231 5232 if invalidParams.Len() > 0 { 5233 return invalidParams 5234 } 5235 return nil 5236} 5237 5238// SetJobId sets the JobId field's value. 5239func (s *StopEntitiesDetectionV2JobInput) SetJobId(v string) *StopEntitiesDetectionV2JobInput { 5240 s.JobId = &v 5241 return s 5242} 5243 5244type StopEntitiesDetectionV2JobOutput struct { 5245 _ struct{} `type:"structure"` 5246 5247 // The identifier of the medical entities detection job that was stopped. 5248 JobId *string `min:"1" type:"string"` 5249} 5250 5251// String returns the string representation 5252func (s StopEntitiesDetectionV2JobOutput) String() string { 5253 return awsutil.Prettify(s) 5254} 5255 5256// GoString returns the string representation 5257func (s StopEntitiesDetectionV2JobOutput) GoString() string { 5258 return s.String() 5259} 5260 5261// SetJobId sets the JobId field's value. 5262func (s *StopEntitiesDetectionV2JobOutput) SetJobId(v string) *StopEntitiesDetectionV2JobOutput { 5263 s.JobId = &v 5264 return s 5265} 5266 5267type StopICD10CMInferenceJobInput struct { 5268 _ struct{} `type:"structure"` 5269 5270 // The identifier of the job. 5271 // 5272 // JobId is a required field 5273 JobId *string `min:"1" type:"string" required:"true"` 5274} 5275 5276// String returns the string representation 5277func (s StopICD10CMInferenceJobInput) String() string { 5278 return awsutil.Prettify(s) 5279} 5280 5281// GoString returns the string representation 5282func (s StopICD10CMInferenceJobInput) GoString() string { 5283 return s.String() 5284} 5285 5286// Validate inspects the fields of the type to determine if they are valid. 5287func (s *StopICD10CMInferenceJobInput) Validate() error { 5288 invalidParams := request.ErrInvalidParams{Context: "StopICD10CMInferenceJobInput"} 5289 if s.JobId == nil { 5290 invalidParams.Add(request.NewErrParamRequired("JobId")) 5291 } 5292 if s.JobId != nil && len(*s.JobId) < 1 { 5293 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 5294 } 5295 5296 if invalidParams.Len() > 0 { 5297 return invalidParams 5298 } 5299 return nil 5300} 5301 5302// SetJobId sets the JobId field's value. 5303func (s *StopICD10CMInferenceJobInput) SetJobId(v string) *StopICD10CMInferenceJobInput { 5304 s.JobId = &v 5305 return s 5306} 5307 5308type StopICD10CMInferenceJobOutput struct { 5309 _ struct{} `type:"structure"` 5310 5311 // The identifier generated for the job. To get the status of job, use this 5312 // identifier with the DescribeICD10CMInferenceJob operation. 5313 JobId *string `min:"1" type:"string"` 5314} 5315 5316// String returns the string representation 5317func (s StopICD10CMInferenceJobOutput) String() string { 5318 return awsutil.Prettify(s) 5319} 5320 5321// GoString returns the string representation 5322func (s StopICD10CMInferenceJobOutput) GoString() string { 5323 return s.String() 5324} 5325 5326// SetJobId sets the JobId field's value. 5327func (s *StopICD10CMInferenceJobOutput) SetJobId(v string) *StopICD10CMInferenceJobOutput { 5328 s.JobId = &v 5329 return s 5330} 5331 5332type StopPHIDetectionJobInput struct { 5333 _ struct{} `type:"structure"` 5334 5335 // The identifier of the PHI detection job to stop. 5336 // 5337 // JobId is a required field 5338 JobId *string `min:"1" type:"string" required:"true"` 5339} 5340 5341// String returns the string representation 5342func (s StopPHIDetectionJobInput) String() string { 5343 return awsutil.Prettify(s) 5344} 5345 5346// GoString returns the string representation 5347func (s StopPHIDetectionJobInput) GoString() string { 5348 return s.String() 5349} 5350 5351// Validate inspects the fields of the type to determine if they are valid. 5352func (s *StopPHIDetectionJobInput) Validate() error { 5353 invalidParams := request.ErrInvalidParams{Context: "StopPHIDetectionJobInput"} 5354 if s.JobId == nil { 5355 invalidParams.Add(request.NewErrParamRequired("JobId")) 5356 } 5357 if s.JobId != nil && len(*s.JobId) < 1 { 5358 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 5359 } 5360 5361 if invalidParams.Len() > 0 { 5362 return invalidParams 5363 } 5364 return nil 5365} 5366 5367// SetJobId sets the JobId field's value. 5368func (s *StopPHIDetectionJobInput) SetJobId(v string) *StopPHIDetectionJobInput { 5369 s.JobId = &v 5370 return s 5371} 5372 5373type StopPHIDetectionJobOutput struct { 5374 _ struct{} `type:"structure"` 5375 5376 // The identifier of the PHI detection job that was stopped. 5377 JobId *string `min:"1" type:"string"` 5378} 5379 5380// String returns the string representation 5381func (s StopPHIDetectionJobOutput) String() string { 5382 return awsutil.Prettify(s) 5383} 5384 5385// GoString returns the string representation 5386func (s StopPHIDetectionJobOutput) GoString() string { 5387 return s.String() 5388} 5389 5390// SetJobId sets the JobId field's value. 5391func (s *StopPHIDetectionJobOutput) SetJobId(v string) *StopPHIDetectionJobOutput { 5392 s.JobId = &v 5393 return s 5394} 5395 5396type StopRxNormInferenceJobInput struct { 5397 _ struct{} `type:"structure"` 5398 5399 // The identifier of the job. 5400 // 5401 // JobId is a required field 5402 JobId *string `min:"1" type:"string" required:"true"` 5403} 5404 5405// String returns the string representation 5406func (s StopRxNormInferenceJobInput) String() string { 5407 return awsutil.Prettify(s) 5408} 5409 5410// GoString returns the string representation 5411func (s StopRxNormInferenceJobInput) GoString() string { 5412 return s.String() 5413} 5414 5415// Validate inspects the fields of the type to determine if they are valid. 5416func (s *StopRxNormInferenceJobInput) Validate() error { 5417 invalidParams := request.ErrInvalidParams{Context: "StopRxNormInferenceJobInput"} 5418 if s.JobId == nil { 5419 invalidParams.Add(request.NewErrParamRequired("JobId")) 5420 } 5421 if s.JobId != nil && len(*s.JobId) < 1 { 5422 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 5423 } 5424 5425 if invalidParams.Len() > 0 { 5426 return invalidParams 5427 } 5428 return nil 5429} 5430 5431// SetJobId sets the JobId field's value. 5432func (s *StopRxNormInferenceJobInput) SetJobId(v string) *StopRxNormInferenceJobInput { 5433 s.JobId = &v 5434 return s 5435} 5436 5437type StopRxNormInferenceJobOutput struct { 5438 _ struct{} `type:"structure"` 5439 5440 // The identifier generated for the job. To get the status of job, use this 5441 // identifier with the DescribeRxNormInferenceJob operation. 5442 JobId *string `min:"1" type:"string"` 5443} 5444 5445// String returns the string representation 5446func (s StopRxNormInferenceJobOutput) String() string { 5447 return awsutil.Prettify(s) 5448} 5449 5450// GoString returns the string representation 5451func (s StopRxNormInferenceJobOutput) GoString() string { 5452 return s.String() 5453} 5454 5455// SetJobId sets the JobId field's value. 5456func (s *StopRxNormInferenceJobOutput) SetJobId(v string) *StopRxNormInferenceJobOutput { 5457 s.JobId = &v 5458 return s 5459} 5460 5461// The size of the text you submitted exceeds the size limit. Reduce the size 5462// of the text or use a smaller document and then retry your request. 5463type TextSizeLimitExceededException struct { 5464 _ struct{} `type:"structure"` 5465 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 5466 5467 Message_ *string `locationName:"Message" min:"1" type:"string"` 5468} 5469 5470// String returns the string representation 5471func (s TextSizeLimitExceededException) String() string { 5472 return awsutil.Prettify(s) 5473} 5474 5475// GoString returns the string representation 5476func (s TextSizeLimitExceededException) GoString() string { 5477 return s.String() 5478} 5479 5480func newErrorTextSizeLimitExceededException(v protocol.ResponseMetadata) error { 5481 return &TextSizeLimitExceededException{ 5482 RespMetadata: v, 5483 } 5484} 5485 5486// Code returns the exception type name. 5487func (s *TextSizeLimitExceededException) Code() string { 5488 return "TextSizeLimitExceededException" 5489} 5490 5491// Message returns the exception's message. 5492func (s *TextSizeLimitExceededException) Message() string { 5493 if s.Message_ != nil { 5494 return *s.Message_ 5495 } 5496 return "" 5497} 5498 5499// OrigErr always returns nil, satisfies awserr.Error interface. 5500func (s *TextSizeLimitExceededException) OrigErr() error { 5501 return nil 5502} 5503 5504func (s *TextSizeLimitExceededException) Error() string { 5505 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 5506} 5507 5508// Status code returns the HTTP status code for the request's response error. 5509func (s *TextSizeLimitExceededException) StatusCode() int { 5510 return s.RespMetadata.StatusCode 5511} 5512 5513// RequestID returns the service's response RequestID for request. 5514func (s *TextSizeLimitExceededException) RequestID() string { 5515 return s.RespMetadata.RequestID 5516} 5517 5518// You have made too many requests within a short period of time. Wait for a 5519// short time and then try your request again. Contact customer support for 5520// more information about a service limit increase. 5521type TooManyRequestsException struct { 5522 _ struct{} `type:"structure"` 5523 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 5524 5525 Message_ *string `locationName:"Message" min:"1" type:"string"` 5526} 5527 5528// String returns the string representation 5529func (s TooManyRequestsException) String() string { 5530 return awsutil.Prettify(s) 5531} 5532 5533// GoString returns the string representation 5534func (s TooManyRequestsException) GoString() string { 5535 return s.String() 5536} 5537 5538func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { 5539 return &TooManyRequestsException{ 5540 RespMetadata: v, 5541 } 5542} 5543 5544// Code returns the exception type name. 5545func (s *TooManyRequestsException) Code() string { 5546 return "TooManyRequestsException" 5547} 5548 5549// Message returns the exception's message. 5550func (s *TooManyRequestsException) Message() string { 5551 if s.Message_ != nil { 5552 return *s.Message_ 5553 } 5554 return "" 5555} 5556 5557// OrigErr always returns nil, satisfies awserr.Error interface. 5558func (s *TooManyRequestsException) OrigErr() error { 5559 return nil 5560} 5561 5562func (s *TooManyRequestsException) Error() string { 5563 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 5564} 5565 5566// Status code returns the HTTP status code for the request's response error. 5567func (s *TooManyRequestsException) StatusCode() int { 5568 return s.RespMetadata.StatusCode 5569} 5570 5571// RequestID returns the service's response RequestID for request. 5572func (s *TooManyRequestsException) RequestID() string { 5573 return s.RespMetadata.RequestID 5574} 5575 5576// Provides contextual information about the extracted entity. 5577type Trait struct { 5578 _ struct{} `type:"structure"` 5579 5580 // Provides a name or contextual description about the trait. 5581 Name *string `type:"string" enum:"AttributeName"` 5582 5583 // The level of confidence that Amazon Comprehend Medical has in the accuracy 5584 // of this trait. 5585 Score *float64 `type:"float"` 5586} 5587 5588// String returns the string representation 5589func (s Trait) String() string { 5590 return awsutil.Prettify(s) 5591} 5592 5593// GoString returns the string representation 5594func (s Trait) GoString() string { 5595 return s.String() 5596} 5597 5598// SetName sets the Name field's value. 5599func (s *Trait) SetName(v string) *Trait { 5600 s.Name = &v 5601 return s 5602} 5603 5604// SetScore sets the Score field's value. 5605func (s *Trait) SetScore(v float64) *Trait { 5606 s.Score = &v 5607 return s 5608} 5609 5610// An attribute that we extracted, but were unable to relate to an entity. 5611type UnmappedAttribute struct { 5612 _ struct{} `type:"structure"` 5613 5614 // The specific attribute that has been extracted but not mapped to an entity. 5615 Attribute *Attribute `type:"structure"` 5616 5617 // The type of the attribute, could be one of the following values: "MEDICATION", 5618 // "MEDICAL_CONDITION", "ANATOMY", "TEST_AND_TREATMENT_PROCEDURE" or "PROTECTED_HEALTH_INFORMATION". 5619 Type *string `type:"string" enum:"EntityType"` 5620} 5621 5622// String returns the string representation 5623func (s UnmappedAttribute) String() string { 5624 return awsutil.Prettify(s) 5625} 5626 5627// GoString returns the string representation 5628func (s UnmappedAttribute) GoString() string { 5629 return s.String() 5630} 5631 5632// SetAttribute sets the Attribute field's value. 5633func (s *UnmappedAttribute) SetAttribute(v *Attribute) *UnmappedAttribute { 5634 s.Attribute = v 5635 return s 5636} 5637 5638// SetType sets the Type field's value. 5639func (s *UnmappedAttribute) SetType(v string) *UnmappedAttribute { 5640 s.Type = &v 5641 return s 5642} 5643 5644// The filter that you specified for the operation is invalid. Check the filter 5645// values that you entered and try your request again. 5646type ValidationException struct { 5647 _ struct{} `type:"structure"` 5648 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 5649 5650 Message_ *string `locationName:"Message" min:"1" type:"string"` 5651} 5652 5653// String returns the string representation 5654func (s ValidationException) String() string { 5655 return awsutil.Prettify(s) 5656} 5657 5658// GoString returns the string representation 5659func (s ValidationException) GoString() string { 5660 return s.String() 5661} 5662 5663func newErrorValidationException(v protocol.ResponseMetadata) error { 5664 return &ValidationException{ 5665 RespMetadata: v, 5666 } 5667} 5668 5669// Code returns the exception type name. 5670func (s *ValidationException) Code() string { 5671 return "ValidationException" 5672} 5673 5674// Message returns the exception's message. 5675func (s *ValidationException) Message() string { 5676 if s.Message_ != nil { 5677 return *s.Message_ 5678 } 5679 return "" 5680} 5681 5682// OrigErr always returns nil, satisfies awserr.Error interface. 5683func (s *ValidationException) OrigErr() error { 5684 return nil 5685} 5686 5687func (s *ValidationException) Error() string { 5688 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 5689} 5690 5691// Status code returns the HTTP status code for the request's response error. 5692func (s *ValidationException) StatusCode() int { 5693 return s.RespMetadata.StatusCode 5694} 5695 5696// RequestID returns the service's response RequestID for request. 5697func (s *ValidationException) RequestID() string { 5698 return s.RespMetadata.RequestID 5699} 5700 5701const ( 5702 // AttributeNameSign is a AttributeName enum value 5703 AttributeNameSign = "SIGN" 5704 5705 // AttributeNameSymptom is a AttributeName enum value 5706 AttributeNameSymptom = "SYMPTOM" 5707 5708 // AttributeNameDiagnosis is a AttributeName enum value 5709 AttributeNameDiagnosis = "DIAGNOSIS" 5710 5711 // AttributeNameNegation is a AttributeName enum value 5712 AttributeNameNegation = "NEGATION" 5713) 5714 5715// AttributeName_Values returns all elements of the AttributeName enum 5716func AttributeName_Values() []string { 5717 return []string{ 5718 AttributeNameSign, 5719 AttributeNameSymptom, 5720 AttributeNameDiagnosis, 5721 AttributeNameNegation, 5722 } 5723} 5724 5725const ( 5726 // EntitySubTypeName is a EntitySubType enum value 5727 EntitySubTypeName = "NAME" 5728 5729 // EntitySubTypeDosage is a EntitySubType enum value 5730 EntitySubTypeDosage = "DOSAGE" 5731 5732 // EntitySubTypeRouteOrMode is a EntitySubType enum value 5733 EntitySubTypeRouteOrMode = "ROUTE_OR_MODE" 5734 5735 // EntitySubTypeForm is a EntitySubType enum value 5736 EntitySubTypeForm = "FORM" 5737 5738 // EntitySubTypeFrequency is a EntitySubType enum value 5739 EntitySubTypeFrequency = "FREQUENCY" 5740 5741 // EntitySubTypeDuration is a EntitySubType enum value 5742 EntitySubTypeDuration = "DURATION" 5743 5744 // EntitySubTypeGenericName is a EntitySubType enum value 5745 EntitySubTypeGenericName = "GENERIC_NAME" 5746 5747 // EntitySubTypeBrandName is a EntitySubType enum value 5748 EntitySubTypeBrandName = "BRAND_NAME" 5749 5750 // EntitySubTypeStrength is a EntitySubType enum value 5751 EntitySubTypeStrength = "STRENGTH" 5752 5753 // EntitySubTypeRate is a EntitySubType enum value 5754 EntitySubTypeRate = "RATE" 5755 5756 // EntitySubTypeAcuity is a EntitySubType enum value 5757 EntitySubTypeAcuity = "ACUITY" 5758 5759 // EntitySubTypeTestName is a EntitySubType enum value 5760 EntitySubTypeTestName = "TEST_NAME" 5761 5762 // EntitySubTypeTestValue is a EntitySubType enum value 5763 EntitySubTypeTestValue = "TEST_VALUE" 5764 5765 // EntitySubTypeTestUnits is a EntitySubType enum value 5766 EntitySubTypeTestUnits = "TEST_UNITS" 5767 5768 // EntitySubTypeProcedureName is a EntitySubType enum value 5769 EntitySubTypeProcedureName = "PROCEDURE_NAME" 5770 5771 // EntitySubTypeTreatmentName is a EntitySubType enum value 5772 EntitySubTypeTreatmentName = "TREATMENT_NAME" 5773 5774 // EntitySubTypeDate is a EntitySubType enum value 5775 EntitySubTypeDate = "DATE" 5776 5777 // EntitySubTypeAge is a EntitySubType enum value 5778 EntitySubTypeAge = "AGE" 5779 5780 // EntitySubTypeContactPoint is a EntitySubType enum value 5781 EntitySubTypeContactPoint = "CONTACT_POINT" 5782 5783 // EntitySubTypeEmail is a EntitySubType enum value 5784 EntitySubTypeEmail = "EMAIL" 5785 5786 // EntitySubTypeIdentifier is a EntitySubType enum value 5787 EntitySubTypeIdentifier = "IDENTIFIER" 5788 5789 // EntitySubTypeUrl is a EntitySubType enum value 5790 EntitySubTypeUrl = "URL" 5791 5792 // EntitySubTypeAddress is a EntitySubType enum value 5793 EntitySubTypeAddress = "ADDRESS" 5794 5795 // EntitySubTypeProfession is a EntitySubType enum value 5796 EntitySubTypeProfession = "PROFESSION" 5797 5798 // EntitySubTypeSystemOrganSite is a EntitySubType enum value 5799 EntitySubTypeSystemOrganSite = "SYSTEM_ORGAN_SITE" 5800 5801 // EntitySubTypeDirection is a EntitySubType enum value 5802 EntitySubTypeDirection = "DIRECTION" 5803 5804 // EntitySubTypeQuality is a EntitySubType enum value 5805 EntitySubTypeQuality = "QUALITY" 5806 5807 // EntitySubTypeQuantity is a EntitySubType enum value 5808 EntitySubTypeQuantity = "QUANTITY" 5809 5810 // EntitySubTypeTimeExpression is a EntitySubType enum value 5811 EntitySubTypeTimeExpression = "TIME_EXPRESSION" 5812 5813 // EntitySubTypeTimeToMedicationName is a EntitySubType enum value 5814 EntitySubTypeTimeToMedicationName = "TIME_TO_MEDICATION_NAME" 5815 5816 // EntitySubTypeTimeToDxName is a EntitySubType enum value 5817 EntitySubTypeTimeToDxName = "TIME_TO_DX_NAME" 5818 5819 // EntitySubTypeTimeToTestName is a EntitySubType enum value 5820 EntitySubTypeTimeToTestName = "TIME_TO_TEST_NAME" 5821 5822 // EntitySubTypeTimeToProcedureName is a EntitySubType enum value 5823 EntitySubTypeTimeToProcedureName = "TIME_TO_PROCEDURE_NAME" 5824 5825 // EntitySubTypeTimeToTreatmentName is a EntitySubType enum value 5826 EntitySubTypeTimeToTreatmentName = "TIME_TO_TREATMENT_NAME" 5827) 5828 5829// EntitySubType_Values returns all elements of the EntitySubType enum 5830func EntitySubType_Values() []string { 5831 return []string{ 5832 EntitySubTypeName, 5833 EntitySubTypeDosage, 5834 EntitySubTypeRouteOrMode, 5835 EntitySubTypeForm, 5836 EntitySubTypeFrequency, 5837 EntitySubTypeDuration, 5838 EntitySubTypeGenericName, 5839 EntitySubTypeBrandName, 5840 EntitySubTypeStrength, 5841 EntitySubTypeRate, 5842 EntitySubTypeAcuity, 5843 EntitySubTypeTestName, 5844 EntitySubTypeTestValue, 5845 EntitySubTypeTestUnits, 5846 EntitySubTypeProcedureName, 5847 EntitySubTypeTreatmentName, 5848 EntitySubTypeDate, 5849 EntitySubTypeAge, 5850 EntitySubTypeContactPoint, 5851 EntitySubTypeEmail, 5852 EntitySubTypeIdentifier, 5853 EntitySubTypeUrl, 5854 EntitySubTypeAddress, 5855 EntitySubTypeProfession, 5856 EntitySubTypeSystemOrganSite, 5857 EntitySubTypeDirection, 5858 EntitySubTypeQuality, 5859 EntitySubTypeQuantity, 5860 EntitySubTypeTimeExpression, 5861 EntitySubTypeTimeToMedicationName, 5862 EntitySubTypeTimeToDxName, 5863 EntitySubTypeTimeToTestName, 5864 EntitySubTypeTimeToProcedureName, 5865 EntitySubTypeTimeToTreatmentName, 5866 } 5867} 5868 5869const ( 5870 // EntityTypeMedication is a EntityType enum value 5871 EntityTypeMedication = "MEDICATION" 5872 5873 // EntityTypeMedicalCondition is a EntityType enum value 5874 EntityTypeMedicalCondition = "MEDICAL_CONDITION" 5875 5876 // EntityTypeProtectedHealthInformation is a EntityType enum value 5877 EntityTypeProtectedHealthInformation = "PROTECTED_HEALTH_INFORMATION" 5878 5879 // EntityTypeTestTreatmentProcedure is a EntityType enum value 5880 EntityTypeTestTreatmentProcedure = "TEST_TREATMENT_PROCEDURE" 5881 5882 // EntityTypeAnatomy is a EntityType enum value 5883 EntityTypeAnatomy = "ANATOMY" 5884 5885 // EntityTypeTimeExpression is a EntityType enum value 5886 EntityTypeTimeExpression = "TIME_EXPRESSION" 5887) 5888 5889// EntityType_Values returns all elements of the EntityType enum 5890func EntityType_Values() []string { 5891 return []string{ 5892 EntityTypeMedication, 5893 EntityTypeMedicalCondition, 5894 EntityTypeProtectedHealthInformation, 5895 EntityTypeTestTreatmentProcedure, 5896 EntityTypeAnatomy, 5897 EntityTypeTimeExpression, 5898 } 5899} 5900 5901const ( 5902 // ICD10CMAttributeTypeAcuity is a ICD10CMAttributeType enum value 5903 ICD10CMAttributeTypeAcuity = "ACUITY" 5904 5905 // ICD10CMAttributeTypeDirection is a ICD10CMAttributeType enum value 5906 ICD10CMAttributeTypeDirection = "DIRECTION" 5907 5908 // ICD10CMAttributeTypeSystemOrganSite is a ICD10CMAttributeType enum value 5909 ICD10CMAttributeTypeSystemOrganSite = "SYSTEM_ORGAN_SITE" 5910 5911 // ICD10CMAttributeTypeQuality is a ICD10CMAttributeType enum value 5912 ICD10CMAttributeTypeQuality = "QUALITY" 5913 5914 // ICD10CMAttributeTypeQuantity is a ICD10CMAttributeType enum value 5915 ICD10CMAttributeTypeQuantity = "QUANTITY" 5916 5917 // ICD10CMAttributeTypeTimeToDxName is a ICD10CMAttributeType enum value 5918 ICD10CMAttributeTypeTimeToDxName = "TIME_TO_DX_NAME" 5919 5920 // ICD10CMAttributeTypeTimeExpression is a ICD10CMAttributeType enum value 5921 ICD10CMAttributeTypeTimeExpression = "TIME_EXPRESSION" 5922) 5923 5924// ICD10CMAttributeType_Values returns all elements of the ICD10CMAttributeType enum 5925func ICD10CMAttributeType_Values() []string { 5926 return []string{ 5927 ICD10CMAttributeTypeAcuity, 5928 ICD10CMAttributeTypeDirection, 5929 ICD10CMAttributeTypeSystemOrganSite, 5930 ICD10CMAttributeTypeQuality, 5931 ICD10CMAttributeTypeQuantity, 5932 ICD10CMAttributeTypeTimeToDxName, 5933 ICD10CMAttributeTypeTimeExpression, 5934 } 5935} 5936 5937const ( 5938 // ICD10CMEntityCategoryMedicalCondition is a ICD10CMEntityCategory enum value 5939 ICD10CMEntityCategoryMedicalCondition = "MEDICAL_CONDITION" 5940) 5941 5942// ICD10CMEntityCategory_Values returns all elements of the ICD10CMEntityCategory enum 5943func ICD10CMEntityCategory_Values() []string { 5944 return []string{ 5945 ICD10CMEntityCategoryMedicalCondition, 5946 } 5947} 5948 5949const ( 5950 // ICD10CMEntityTypeDxName is a ICD10CMEntityType enum value 5951 ICD10CMEntityTypeDxName = "DX_NAME" 5952 5953 // ICD10CMEntityTypeTimeExpression is a ICD10CMEntityType enum value 5954 ICD10CMEntityTypeTimeExpression = "TIME_EXPRESSION" 5955) 5956 5957// ICD10CMEntityType_Values returns all elements of the ICD10CMEntityType enum 5958func ICD10CMEntityType_Values() []string { 5959 return []string{ 5960 ICD10CMEntityTypeDxName, 5961 ICD10CMEntityTypeTimeExpression, 5962 } 5963} 5964 5965const ( 5966 // ICD10CMRelationshipTypeOverlap is a ICD10CMRelationshipType enum value 5967 ICD10CMRelationshipTypeOverlap = "OVERLAP" 5968 5969 // ICD10CMRelationshipTypeSystemOrganSite is a ICD10CMRelationshipType enum value 5970 ICD10CMRelationshipTypeSystemOrganSite = "SYSTEM_ORGAN_SITE" 5971) 5972 5973// ICD10CMRelationshipType_Values returns all elements of the ICD10CMRelationshipType enum 5974func ICD10CMRelationshipType_Values() []string { 5975 return []string{ 5976 ICD10CMRelationshipTypeOverlap, 5977 ICD10CMRelationshipTypeSystemOrganSite, 5978 } 5979} 5980 5981const ( 5982 // ICD10CMTraitNameNegation is a ICD10CMTraitName enum value 5983 ICD10CMTraitNameNegation = "NEGATION" 5984 5985 // ICD10CMTraitNameDiagnosis is a ICD10CMTraitName enum value 5986 ICD10CMTraitNameDiagnosis = "DIAGNOSIS" 5987 5988 // ICD10CMTraitNameSign is a ICD10CMTraitName enum value 5989 ICD10CMTraitNameSign = "SIGN" 5990 5991 // ICD10CMTraitNameSymptom is a ICD10CMTraitName enum value 5992 ICD10CMTraitNameSymptom = "SYMPTOM" 5993) 5994 5995// ICD10CMTraitName_Values returns all elements of the ICD10CMTraitName enum 5996func ICD10CMTraitName_Values() []string { 5997 return []string{ 5998 ICD10CMTraitNameNegation, 5999 ICD10CMTraitNameDiagnosis, 6000 ICD10CMTraitNameSign, 6001 ICD10CMTraitNameSymptom, 6002 } 6003} 6004 6005const ( 6006 // JobStatusSubmitted is a JobStatus enum value 6007 JobStatusSubmitted = "SUBMITTED" 6008 6009 // JobStatusInProgress is a JobStatus enum value 6010 JobStatusInProgress = "IN_PROGRESS" 6011 6012 // JobStatusCompleted is a JobStatus enum value 6013 JobStatusCompleted = "COMPLETED" 6014 6015 // JobStatusPartialSuccess is a JobStatus enum value 6016 JobStatusPartialSuccess = "PARTIAL_SUCCESS" 6017 6018 // JobStatusFailed is a JobStatus enum value 6019 JobStatusFailed = "FAILED" 6020 6021 // JobStatusStopRequested is a JobStatus enum value 6022 JobStatusStopRequested = "STOP_REQUESTED" 6023 6024 // JobStatusStopped is a JobStatus enum value 6025 JobStatusStopped = "STOPPED" 6026) 6027 6028// JobStatus_Values returns all elements of the JobStatus enum 6029func JobStatus_Values() []string { 6030 return []string{ 6031 JobStatusSubmitted, 6032 JobStatusInProgress, 6033 JobStatusCompleted, 6034 JobStatusPartialSuccess, 6035 JobStatusFailed, 6036 JobStatusStopRequested, 6037 JobStatusStopped, 6038 } 6039} 6040 6041const ( 6042 // LanguageCodeEn is a LanguageCode enum value 6043 LanguageCodeEn = "en" 6044) 6045 6046// LanguageCode_Values returns all elements of the LanguageCode enum 6047func LanguageCode_Values() []string { 6048 return []string{ 6049 LanguageCodeEn, 6050 } 6051} 6052 6053const ( 6054 // RelationshipTypeEvery is a RelationshipType enum value 6055 RelationshipTypeEvery = "EVERY" 6056 6057 // RelationshipTypeWithDosage is a RelationshipType enum value 6058 RelationshipTypeWithDosage = "WITH_DOSAGE" 6059 6060 // RelationshipTypeAdministeredVia is a RelationshipType enum value 6061 RelationshipTypeAdministeredVia = "ADMINISTERED_VIA" 6062 6063 // RelationshipTypeFor is a RelationshipType enum value 6064 RelationshipTypeFor = "FOR" 6065 6066 // RelationshipTypeNegative is a RelationshipType enum value 6067 RelationshipTypeNegative = "NEGATIVE" 6068 6069 // RelationshipTypeOverlap is a RelationshipType enum value 6070 RelationshipTypeOverlap = "OVERLAP" 6071 6072 // RelationshipTypeDosage is a RelationshipType enum value 6073 RelationshipTypeDosage = "DOSAGE" 6074 6075 // RelationshipTypeRouteOrMode is a RelationshipType enum value 6076 RelationshipTypeRouteOrMode = "ROUTE_OR_MODE" 6077 6078 // RelationshipTypeForm is a RelationshipType enum value 6079 RelationshipTypeForm = "FORM" 6080 6081 // RelationshipTypeFrequency is a RelationshipType enum value 6082 RelationshipTypeFrequency = "FREQUENCY" 6083 6084 // RelationshipTypeDuration is a RelationshipType enum value 6085 RelationshipTypeDuration = "DURATION" 6086 6087 // RelationshipTypeStrength is a RelationshipType enum value 6088 RelationshipTypeStrength = "STRENGTH" 6089 6090 // RelationshipTypeRate is a RelationshipType enum value 6091 RelationshipTypeRate = "RATE" 6092 6093 // RelationshipTypeAcuity is a RelationshipType enum value 6094 RelationshipTypeAcuity = "ACUITY" 6095 6096 // RelationshipTypeTestValue is a RelationshipType enum value 6097 RelationshipTypeTestValue = "TEST_VALUE" 6098 6099 // RelationshipTypeTestUnits is a RelationshipType enum value 6100 RelationshipTypeTestUnits = "TEST_UNITS" 6101 6102 // RelationshipTypeDirection is a RelationshipType enum value 6103 RelationshipTypeDirection = "DIRECTION" 6104 6105 // RelationshipTypeSystemOrganSite is a RelationshipType enum value 6106 RelationshipTypeSystemOrganSite = "SYSTEM_ORGAN_SITE" 6107) 6108 6109// RelationshipType_Values returns all elements of the RelationshipType enum 6110func RelationshipType_Values() []string { 6111 return []string{ 6112 RelationshipTypeEvery, 6113 RelationshipTypeWithDosage, 6114 RelationshipTypeAdministeredVia, 6115 RelationshipTypeFor, 6116 RelationshipTypeNegative, 6117 RelationshipTypeOverlap, 6118 RelationshipTypeDosage, 6119 RelationshipTypeRouteOrMode, 6120 RelationshipTypeForm, 6121 RelationshipTypeFrequency, 6122 RelationshipTypeDuration, 6123 RelationshipTypeStrength, 6124 RelationshipTypeRate, 6125 RelationshipTypeAcuity, 6126 RelationshipTypeTestValue, 6127 RelationshipTypeTestUnits, 6128 RelationshipTypeDirection, 6129 RelationshipTypeSystemOrganSite, 6130 } 6131} 6132 6133const ( 6134 // RxNormAttributeTypeDosage is a RxNormAttributeType enum value 6135 RxNormAttributeTypeDosage = "DOSAGE" 6136 6137 // RxNormAttributeTypeDuration is a RxNormAttributeType enum value 6138 RxNormAttributeTypeDuration = "DURATION" 6139 6140 // RxNormAttributeTypeForm is a RxNormAttributeType enum value 6141 RxNormAttributeTypeForm = "FORM" 6142 6143 // RxNormAttributeTypeFrequency is a RxNormAttributeType enum value 6144 RxNormAttributeTypeFrequency = "FREQUENCY" 6145 6146 // RxNormAttributeTypeRate is a RxNormAttributeType enum value 6147 RxNormAttributeTypeRate = "RATE" 6148 6149 // RxNormAttributeTypeRouteOrMode is a RxNormAttributeType enum value 6150 RxNormAttributeTypeRouteOrMode = "ROUTE_OR_MODE" 6151 6152 // RxNormAttributeTypeStrength is a RxNormAttributeType enum value 6153 RxNormAttributeTypeStrength = "STRENGTH" 6154) 6155 6156// RxNormAttributeType_Values returns all elements of the RxNormAttributeType enum 6157func RxNormAttributeType_Values() []string { 6158 return []string{ 6159 RxNormAttributeTypeDosage, 6160 RxNormAttributeTypeDuration, 6161 RxNormAttributeTypeForm, 6162 RxNormAttributeTypeFrequency, 6163 RxNormAttributeTypeRate, 6164 RxNormAttributeTypeRouteOrMode, 6165 RxNormAttributeTypeStrength, 6166 } 6167} 6168 6169const ( 6170 // RxNormEntityCategoryMedication is a RxNormEntityCategory enum value 6171 RxNormEntityCategoryMedication = "MEDICATION" 6172) 6173 6174// RxNormEntityCategory_Values returns all elements of the RxNormEntityCategory enum 6175func RxNormEntityCategory_Values() []string { 6176 return []string{ 6177 RxNormEntityCategoryMedication, 6178 } 6179} 6180 6181const ( 6182 // RxNormEntityTypeBrandName is a RxNormEntityType enum value 6183 RxNormEntityTypeBrandName = "BRAND_NAME" 6184 6185 // RxNormEntityTypeGenericName is a RxNormEntityType enum value 6186 RxNormEntityTypeGenericName = "GENERIC_NAME" 6187) 6188 6189// RxNormEntityType_Values returns all elements of the RxNormEntityType enum 6190func RxNormEntityType_Values() []string { 6191 return []string{ 6192 RxNormEntityTypeBrandName, 6193 RxNormEntityTypeGenericName, 6194 } 6195} 6196 6197const ( 6198 // RxNormTraitNameNegation is a RxNormTraitName enum value 6199 RxNormTraitNameNegation = "NEGATION" 6200) 6201 6202// RxNormTraitName_Values returns all elements of the RxNormTraitName enum 6203func RxNormTraitName_Values() []string { 6204 return []string{ 6205 RxNormTraitNameNegation, 6206 } 6207} 6208