github.com/aavshr/aws-sdk-go@v1.41.3/service/comprehendmedical/api.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package comprehendmedical 4 5 import ( 6 "fmt" 7 "time" 8 9 "github.com/aavshr/aws-sdk-go/aws" 10 "github.com/aavshr/aws-sdk-go/aws/awsutil" 11 "github.com/aavshr/aws-sdk-go/aws/request" 12 "github.com/aavshr/aws-sdk-go/private/protocol" 13 ) 14 15 const 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 41 func (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 87 func (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. 101 func (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 108 const 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 134 func (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 180 func (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. 194 func (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 201 const 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 227 func (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 273 func (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. 287 func (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 294 const 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 320 func (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 366 func (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. 380 func (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 387 const 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. 415 func (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. 478 func (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. 494 func (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 501 const 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 527 func (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 591 func (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. 605 func (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 612 const 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 638 func (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 694 func (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. 708 func (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 715 const 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 741 func (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 797 func (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. 811 func (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 818 const 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 844 func (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 900 func (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. 914 func (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 921 const 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 947 func (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 992 func (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. 1006 func (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 1013 const 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 1039 func (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 1084 func (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. 1098 func (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 1105 const 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 1131 func (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 1177 func (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. 1191 func (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 1198 const 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 1224 func (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 1269 func (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. 1283 func (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 1290 const 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 1316 func (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 1363 func (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. 1377 func (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 1384 const 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 1410 func (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 1457 func (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. 1471 func (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 1478 const 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 1504 func (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 1550 func (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. 1564 func (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 1571 const 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 1597 func (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 1644 func (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. 1658 func (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 1665 const 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 1691 func (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 1731 func (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. 1745 func (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 1752 const 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 1778 func (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 1818 func (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. 1832 func (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 1839 const 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 1865 func (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 1905 func (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. 1919 func (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 1926 const 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 1952 func (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 1992 func (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. 2006 func (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. 2017 type 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. 2058 // 2059 // API parameter values that are decorated as "sensitive" in the API will not 2060 // be included in the string output. The member name will be present, but the 2061 // value will be replaced with "sensitive". 2062 func (s Attribute) String() string { 2063 return awsutil.Prettify(s) 2064 } 2065 2066 // GoString returns the string representation. 2067 // 2068 // API parameter values that are decorated as "sensitive" in the API will not 2069 // be included in the string output. The member name will be present, but the 2070 // value will be replaced with "sensitive". 2071 func (s Attribute) GoString() string { 2072 return s.String() 2073 } 2074 2075 // SetBeginOffset sets the BeginOffset field's value. 2076 func (s *Attribute) SetBeginOffset(v int64) *Attribute { 2077 s.BeginOffset = &v 2078 return s 2079 } 2080 2081 // SetCategory sets the Category field's value. 2082 func (s *Attribute) SetCategory(v string) *Attribute { 2083 s.Category = &v 2084 return s 2085 } 2086 2087 // SetEndOffset sets the EndOffset field's value. 2088 func (s *Attribute) SetEndOffset(v int64) *Attribute { 2089 s.EndOffset = &v 2090 return s 2091 } 2092 2093 // SetId sets the Id field's value. 2094 func (s *Attribute) SetId(v int64) *Attribute { 2095 s.Id = &v 2096 return s 2097 } 2098 2099 // SetRelationshipScore sets the RelationshipScore field's value. 2100 func (s *Attribute) SetRelationshipScore(v float64) *Attribute { 2101 s.RelationshipScore = &v 2102 return s 2103 } 2104 2105 // SetRelationshipType sets the RelationshipType field's value. 2106 func (s *Attribute) SetRelationshipType(v string) *Attribute { 2107 s.RelationshipType = &v 2108 return s 2109 } 2110 2111 // SetScore sets the Score field's value. 2112 func (s *Attribute) SetScore(v float64) *Attribute { 2113 s.Score = &v 2114 return s 2115 } 2116 2117 // SetText sets the Text field's value. 2118 func (s *Attribute) SetText(v string) *Attribute { 2119 s.Text = &v 2120 return s 2121 } 2122 2123 // SetTraits sets the Traits field's value. 2124 func (s *Attribute) SetTraits(v []*Trait) *Attribute { 2125 s.Traits = v 2126 return s 2127 } 2128 2129 // SetType sets the Type field's value. 2130 func (s *Attribute) SetType(v string) *Attribute { 2131 s.Type = &v 2132 return s 2133 } 2134 2135 // Provides information for filtering a list of detection jobs. 2136 type ComprehendMedicalAsyncJobFilter struct { 2137 _ struct{} `type:"structure"` 2138 2139 // Filters on the name of the job. 2140 JobName *string `min:"1" type:"string"` 2141 2142 // Filters the list of jobs based on job status. Returns only jobs with the 2143 // specified status. 2144 JobStatus *string `type:"string" enum:"JobStatus"` 2145 2146 // Filters the list of jobs based on the time that the job was submitted for 2147 // processing. Returns only jobs submitted after the specified time. Jobs are 2148 // returned in descending order, newest to oldest. 2149 SubmitTimeAfter *time.Time `type:"timestamp"` 2150 2151 // Filters the list of jobs based on the time that the job was submitted for 2152 // processing. Returns only jobs submitted before the specified time. Jobs are 2153 // returned in ascending order, oldest to newest. 2154 SubmitTimeBefore *time.Time `type:"timestamp"` 2155 } 2156 2157 // String returns the string representation. 2158 // 2159 // API parameter values that are decorated as "sensitive" in the API will not 2160 // be included in the string output. The member name will be present, but the 2161 // value will be replaced with "sensitive". 2162 func (s ComprehendMedicalAsyncJobFilter) String() string { 2163 return awsutil.Prettify(s) 2164 } 2165 2166 // GoString returns the string representation. 2167 // 2168 // API parameter values that are decorated as "sensitive" in the API will not 2169 // be included in the string output. The member name will be present, but the 2170 // value will be replaced with "sensitive". 2171 func (s ComprehendMedicalAsyncJobFilter) GoString() string { 2172 return s.String() 2173 } 2174 2175 // Validate inspects the fields of the type to determine if they are valid. 2176 func (s *ComprehendMedicalAsyncJobFilter) Validate() error { 2177 invalidParams := request.ErrInvalidParams{Context: "ComprehendMedicalAsyncJobFilter"} 2178 if s.JobName != nil && len(*s.JobName) < 1 { 2179 invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) 2180 } 2181 2182 if invalidParams.Len() > 0 { 2183 return invalidParams 2184 } 2185 return nil 2186 } 2187 2188 // SetJobName sets the JobName field's value. 2189 func (s *ComprehendMedicalAsyncJobFilter) SetJobName(v string) *ComprehendMedicalAsyncJobFilter { 2190 s.JobName = &v 2191 return s 2192 } 2193 2194 // SetJobStatus sets the JobStatus field's value. 2195 func (s *ComprehendMedicalAsyncJobFilter) SetJobStatus(v string) *ComprehendMedicalAsyncJobFilter { 2196 s.JobStatus = &v 2197 return s 2198 } 2199 2200 // SetSubmitTimeAfter sets the SubmitTimeAfter field's value. 2201 func (s *ComprehendMedicalAsyncJobFilter) SetSubmitTimeAfter(v time.Time) *ComprehendMedicalAsyncJobFilter { 2202 s.SubmitTimeAfter = &v 2203 return s 2204 } 2205 2206 // SetSubmitTimeBefore sets the SubmitTimeBefore field's value. 2207 func (s *ComprehendMedicalAsyncJobFilter) SetSubmitTimeBefore(v time.Time) *ComprehendMedicalAsyncJobFilter { 2208 s.SubmitTimeBefore = &v 2209 return s 2210 } 2211 2212 // Provides information about a detection job. 2213 type ComprehendMedicalAsyncJobProperties struct { 2214 _ struct{} `type:"structure"` 2215 2216 // The Amazon Resource Name (ARN) that gives Amazon Comprehend Medical read 2217 // access to your input data. 2218 DataAccessRoleArn *string `min:"20" type:"string"` 2219 2220 // The time that the detection job completed. 2221 EndTime *time.Time `type:"timestamp"` 2222 2223 // The date and time that job metadata is deleted from the server. Output files 2224 // in your S3 bucket will not be deleted. After the metadata is deleted, the 2225 // job will no longer appear in the results of the ListEntitiesDetectionV2Job 2226 // or the ListPHIDetectionJobs operation. 2227 ExpirationTime *time.Time `type:"timestamp"` 2228 2229 // The input data configuration that you supplied when you created the detection 2230 // job. 2231 InputDataConfig *InputDataConfig `type:"structure"` 2232 2233 // The identifier assigned to the detection job. 2234 JobId *string `min:"1" type:"string"` 2235 2236 // The name that you assigned to the detection job. 2237 JobName *string `min:"1" type:"string"` 2238 2239 // The current status of the detection job. If the status is FAILED, the Message 2240 // field shows the reason for the failure. 2241 JobStatus *string `type:"string" enum:"JobStatus"` 2242 2243 // The AWS Key Management Service key, if any, used to encrypt the output files. 2244 KMSKey *string `min:"1" type:"string"` 2245 2246 // The language code of the input documents. 2247 LanguageCode *string `type:"string" enum:"LanguageCode"` 2248 2249 // The path to the file that describes the results of a batch job. 2250 ManifestFilePath *string `min:"1" type:"string"` 2251 2252 // A description of the status of a job. 2253 Message *string `type:"string"` 2254 2255 // The version of the model used to analyze the documents. The version number 2256 // looks like X.X.X. You can use this information to track the model used for 2257 // a particular batch of documents. 2258 ModelVersion *string `type:"string"` 2259 2260 // The output data configuration that you supplied when you created the detection 2261 // job. 2262 OutputDataConfig *OutputDataConfig `type:"structure"` 2263 2264 // The time that the detection job was submitted for processing. 2265 SubmitTime *time.Time `type:"timestamp"` 2266 } 2267 2268 // String returns the string representation. 2269 // 2270 // API parameter values that are decorated as "sensitive" in the API will not 2271 // be included in the string output. The member name will be present, but the 2272 // value will be replaced with "sensitive". 2273 func (s ComprehendMedicalAsyncJobProperties) String() string { 2274 return awsutil.Prettify(s) 2275 } 2276 2277 // GoString returns the string representation. 2278 // 2279 // API parameter values that are decorated as "sensitive" in the API will not 2280 // be included in the string output. The member name will be present, but the 2281 // value will be replaced with "sensitive". 2282 func (s ComprehendMedicalAsyncJobProperties) GoString() string { 2283 return s.String() 2284 } 2285 2286 // SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 2287 func (s *ComprehendMedicalAsyncJobProperties) SetDataAccessRoleArn(v string) *ComprehendMedicalAsyncJobProperties { 2288 s.DataAccessRoleArn = &v 2289 return s 2290 } 2291 2292 // SetEndTime sets the EndTime field's value. 2293 func (s *ComprehendMedicalAsyncJobProperties) SetEndTime(v time.Time) *ComprehendMedicalAsyncJobProperties { 2294 s.EndTime = &v 2295 return s 2296 } 2297 2298 // SetExpirationTime sets the ExpirationTime field's value. 2299 func (s *ComprehendMedicalAsyncJobProperties) SetExpirationTime(v time.Time) *ComprehendMedicalAsyncJobProperties { 2300 s.ExpirationTime = &v 2301 return s 2302 } 2303 2304 // SetInputDataConfig sets the InputDataConfig field's value. 2305 func (s *ComprehendMedicalAsyncJobProperties) SetInputDataConfig(v *InputDataConfig) *ComprehendMedicalAsyncJobProperties { 2306 s.InputDataConfig = v 2307 return s 2308 } 2309 2310 // SetJobId sets the JobId field's value. 2311 func (s *ComprehendMedicalAsyncJobProperties) SetJobId(v string) *ComprehendMedicalAsyncJobProperties { 2312 s.JobId = &v 2313 return s 2314 } 2315 2316 // SetJobName sets the JobName field's value. 2317 func (s *ComprehendMedicalAsyncJobProperties) SetJobName(v string) *ComprehendMedicalAsyncJobProperties { 2318 s.JobName = &v 2319 return s 2320 } 2321 2322 // SetJobStatus sets the JobStatus field's value. 2323 func (s *ComprehendMedicalAsyncJobProperties) SetJobStatus(v string) *ComprehendMedicalAsyncJobProperties { 2324 s.JobStatus = &v 2325 return s 2326 } 2327 2328 // SetKMSKey sets the KMSKey field's value. 2329 func (s *ComprehendMedicalAsyncJobProperties) SetKMSKey(v string) *ComprehendMedicalAsyncJobProperties { 2330 s.KMSKey = &v 2331 return s 2332 } 2333 2334 // SetLanguageCode sets the LanguageCode field's value. 2335 func (s *ComprehendMedicalAsyncJobProperties) SetLanguageCode(v string) *ComprehendMedicalAsyncJobProperties { 2336 s.LanguageCode = &v 2337 return s 2338 } 2339 2340 // SetManifestFilePath sets the ManifestFilePath field's value. 2341 func (s *ComprehendMedicalAsyncJobProperties) SetManifestFilePath(v string) *ComprehendMedicalAsyncJobProperties { 2342 s.ManifestFilePath = &v 2343 return s 2344 } 2345 2346 // SetMessage sets the Message field's value. 2347 func (s *ComprehendMedicalAsyncJobProperties) SetMessage(v string) *ComprehendMedicalAsyncJobProperties { 2348 s.Message = &v 2349 return s 2350 } 2351 2352 // SetModelVersion sets the ModelVersion field's value. 2353 func (s *ComprehendMedicalAsyncJobProperties) SetModelVersion(v string) *ComprehendMedicalAsyncJobProperties { 2354 s.ModelVersion = &v 2355 return s 2356 } 2357 2358 // SetOutputDataConfig sets the OutputDataConfig field's value. 2359 func (s *ComprehendMedicalAsyncJobProperties) SetOutputDataConfig(v *OutputDataConfig) *ComprehendMedicalAsyncJobProperties { 2360 s.OutputDataConfig = v 2361 return s 2362 } 2363 2364 // SetSubmitTime sets the SubmitTime field's value. 2365 func (s *ComprehendMedicalAsyncJobProperties) SetSubmitTime(v time.Time) *ComprehendMedicalAsyncJobProperties { 2366 s.SubmitTime = &v 2367 return s 2368 } 2369 2370 type DescribeEntitiesDetectionV2JobInput struct { 2371 _ struct{} `type:"structure"` 2372 2373 // The identifier that Amazon Comprehend Medical generated for the job. The 2374 // StartEntitiesDetectionV2Job operation returns this identifier in its response. 2375 // 2376 // JobId is a required field 2377 JobId *string `min:"1" type:"string" required:"true"` 2378 } 2379 2380 // String returns the string representation. 2381 // 2382 // API parameter values that are decorated as "sensitive" in the API will not 2383 // be included in the string output. The member name will be present, but the 2384 // value will be replaced with "sensitive". 2385 func (s DescribeEntitiesDetectionV2JobInput) String() string { 2386 return awsutil.Prettify(s) 2387 } 2388 2389 // GoString returns the string representation. 2390 // 2391 // API parameter values that are decorated as "sensitive" in the API will not 2392 // be included in the string output. The member name will be present, but the 2393 // value will be replaced with "sensitive". 2394 func (s DescribeEntitiesDetectionV2JobInput) GoString() string { 2395 return s.String() 2396 } 2397 2398 // Validate inspects the fields of the type to determine if they are valid. 2399 func (s *DescribeEntitiesDetectionV2JobInput) Validate() error { 2400 invalidParams := request.ErrInvalidParams{Context: "DescribeEntitiesDetectionV2JobInput"} 2401 if s.JobId == nil { 2402 invalidParams.Add(request.NewErrParamRequired("JobId")) 2403 } 2404 if s.JobId != nil && len(*s.JobId) < 1 { 2405 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 2406 } 2407 2408 if invalidParams.Len() > 0 { 2409 return invalidParams 2410 } 2411 return nil 2412 } 2413 2414 // SetJobId sets the JobId field's value. 2415 func (s *DescribeEntitiesDetectionV2JobInput) SetJobId(v string) *DescribeEntitiesDetectionV2JobInput { 2416 s.JobId = &v 2417 return s 2418 } 2419 2420 type DescribeEntitiesDetectionV2JobOutput struct { 2421 _ struct{} `type:"structure"` 2422 2423 // An object that contains the properties associated with a detection job. 2424 ComprehendMedicalAsyncJobProperties *ComprehendMedicalAsyncJobProperties `type:"structure"` 2425 } 2426 2427 // String returns the string representation. 2428 // 2429 // API parameter values that are decorated as "sensitive" in the API will not 2430 // be included in the string output. The member name will be present, but the 2431 // value will be replaced with "sensitive". 2432 func (s DescribeEntitiesDetectionV2JobOutput) String() string { 2433 return awsutil.Prettify(s) 2434 } 2435 2436 // GoString returns the string representation. 2437 // 2438 // API parameter values that are decorated as "sensitive" in the API will not 2439 // be included in the string output. The member name will be present, but the 2440 // value will be replaced with "sensitive". 2441 func (s DescribeEntitiesDetectionV2JobOutput) GoString() string { 2442 return s.String() 2443 } 2444 2445 // SetComprehendMedicalAsyncJobProperties sets the ComprehendMedicalAsyncJobProperties field's value. 2446 func (s *DescribeEntitiesDetectionV2JobOutput) SetComprehendMedicalAsyncJobProperties(v *ComprehendMedicalAsyncJobProperties) *DescribeEntitiesDetectionV2JobOutput { 2447 s.ComprehendMedicalAsyncJobProperties = v 2448 return s 2449 } 2450 2451 type DescribeICD10CMInferenceJobInput struct { 2452 _ struct{} `type:"structure"` 2453 2454 // The identifier that Amazon Comprehend Medical generated for the job. The 2455 // StartICD10CMInferenceJob operation returns this identifier in its response. 2456 // 2457 // JobId is a required field 2458 JobId *string `min:"1" type:"string" required:"true"` 2459 } 2460 2461 // String returns the string representation. 2462 // 2463 // API parameter values that are decorated as "sensitive" in the API will not 2464 // be included in the string output. The member name will be present, but the 2465 // value will be replaced with "sensitive". 2466 func (s DescribeICD10CMInferenceJobInput) String() string { 2467 return awsutil.Prettify(s) 2468 } 2469 2470 // GoString returns the string representation. 2471 // 2472 // API parameter values that are decorated as "sensitive" in the API will not 2473 // be included in the string output. The member name will be present, but the 2474 // value will be replaced with "sensitive". 2475 func (s DescribeICD10CMInferenceJobInput) GoString() string { 2476 return s.String() 2477 } 2478 2479 // Validate inspects the fields of the type to determine if they are valid. 2480 func (s *DescribeICD10CMInferenceJobInput) Validate() error { 2481 invalidParams := request.ErrInvalidParams{Context: "DescribeICD10CMInferenceJobInput"} 2482 if s.JobId == nil { 2483 invalidParams.Add(request.NewErrParamRequired("JobId")) 2484 } 2485 if s.JobId != nil && len(*s.JobId) < 1 { 2486 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 2487 } 2488 2489 if invalidParams.Len() > 0 { 2490 return invalidParams 2491 } 2492 return nil 2493 } 2494 2495 // SetJobId sets the JobId field's value. 2496 func (s *DescribeICD10CMInferenceJobInput) SetJobId(v string) *DescribeICD10CMInferenceJobInput { 2497 s.JobId = &v 2498 return s 2499 } 2500 2501 type DescribeICD10CMInferenceJobOutput struct { 2502 _ struct{} `type:"structure"` 2503 2504 // An object that contains the properties associated with a detection job. 2505 ComprehendMedicalAsyncJobProperties *ComprehendMedicalAsyncJobProperties `type:"structure"` 2506 } 2507 2508 // String returns the string representation. 2509 // 2510 // API parameter values that are decorated as "sensitive" in the API will not 2511 // be included in the string output. The member name will be present, but the 2512 // value will be replaced with "sensitive". 2513 func (s DescribeICD10CMInferenceJobOutput) String() string { 2514 return awsutil.Prettify(s) 2515 } 2516 2517 // GoString returns the string representation. 2518 // 2519 // API parameter values that are decorated as "sensitive" in the API will not 2520 // be included in the string output. The member name will be present, but the 2521 // value will be replaced with "sensitive". 2522 func (s DescribeICD10CMInferenceJobOutput) GoString() string { 2523 return s.String() 2524 } 2525 2526 // SetComprehendMedicalAsyncJobProperties sets the ComprehendMedicalAsyncJobProperties field's value. 2527 func (s *DescribeICD10CMInferenceJobOutput) SetComprehendMedicalAsyncJobProperties(v *ComprehendMedicalAsyncJobProperties) *DescribeICD10CMInferenceJobOutput { 2528 s.ComprehendMedicalAsyncJobProperties = v 2529 return s 2530 } 2531 2532 type DescribePHIDetectionJobInput struct { 2533 _ struct{} `type:"structure"` 2534 2535 // The identifier that Amazon Comprehend Medical generated for the job. The 2536 // StartPHIDetectionJob operation returns this identifier in its response. 2537 // 2538 // JobId is a required field 2539 JobId *string `min:"1" type:"string" required:"true"` 2540 } 2541 2542 // String returns the string representation. 2543 // 2544 // API parameter values that are decorated as "sensitive" in the API will not 2545 // be included in the string output. The member name will be present, but the 2546 // value will be replaced with "sensitive". 2547 func (s DescribePHIDetectionJobInput) String() string { 2548 return awsutil.Prettify(s) 2549 } 2550 2551 // GoString returns the string representation. 2552 // 2553 // API parameter values that are decorated as "sensitive" in the API will not 2554 // be included in the string output. The member name will be present, but the 2555 // value will be replaced with "sensitive". 2556 func (s DescribePHIDetectionJobInput) GoString() string { 2557 return s.String() 2558 } 2559 2560 // Validate inspects the fields of the type to determine if they are valid. 2561 func (s *DescribePHIDetectionJobInput) Validate() error { 2562 invalidParams := request.ErrInvalidParams{Context: "DescribePHIDetectionJobInput"} 2563 if s.JobId == nil { 2564 invalidParams.Add(request.NewErrParamRequired("JobId")) 2565 } 2566 if s.JobId != nil && len(*s.JobId) < 1 { 2567 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 2568 } 2569 2570 if invalidParams.Len() > 0 { 2571 return invalidParams 2572 } 2573 return nil 2574 } 2575 2576 // SetJobId sets the JobId field's value. 2577 func (s *DescribePHIDetectionJobInput) SetJobId(v string) *DescribePHIDetectionJobInput { 2578 s.JobId = &v 2579 return s 2580 } 2581 2582 type DescribePHIDetectionJobOutput struct { 2583 _ struct{} `type:"structure"` 2584 2585 // An object that contains the properties associated with a detection job. 2586 ComprehendMedicalAsyncJobProperties *ComprehendMedicalAsyncJobProperties `type:"structure"` 2587 } 2588 2589 // String returns the string representation. 2590 // 2591 // API parameter values that are decorated as "sensitive" in the API will not 2592 // be included in the string output. The member name will be present, but the 2593 // value will be replaced with "sensitive". 2594 func (s DescribePHIDetectionJobOutput) String() string { 2595 return awsutil.Prettify(s) 2596 } 2597 2598 // GoString returns the string representation. 2599 // 2600 // API parameter values that are decorated as "sensitive" in the API will not 2601 // be included in the string output. The member name will be present, but the 2602 // value will be replaced with "sensitive". 2603 func (s DescribePHIDetectionJobOutput) GoString() string { 2604 return s.String() 2605 } 2606 2607 // SetComprehendMedicalAsyncJobProperties sets the ComprehendMedicalAsyncJobProperties field's value. 2608 func (s *DescribePHIDetectionJobOutput) SetComprehendMedicalAsyncJobProperties(v *ComprehendMedicalAsyncJobProperties) *DescribePHIDetectionJobOutput { 2609 s.ComprehendMedicalAsyncJobProperties = v 2610 return s 2611 } 2612 2613 type DescribeRxNormInferenceJobInput struct { 2614 _ struct{} `type:"structure"` 2615 2616 // The identifier that Amazon Comprehend Medical generated for the job. The 2617 // StartRxNormInferenceJob operation returns this identifier in its response. 2618 // 2619 // JobId is a required field 2620 JobId *string `min:"1" type:"string" required:"true"` 2621 } 2622 2623 // String returns the string representation. 2624 // 2625 // API parameter values that are decorated as "sensitive" in the API will not 2626 // be included in the string output. The member name will be present, but the 2627 // value will be replaced with "sensitive". 2628 func (s DescribeRxNormInferenceJobInput) String() string { 2629 return awsutil.Prettify(s) 2630 } 2631 2632 // GoString returns the string representation. 2633 // 2634 // API parameter values that are decorated as "sensitive" in the API will not 2635 // be included in the string output. The member name will be present, but the 2636 // value will be replaced with "sensitive". 2637 func (s DescribeRxNormInferenceJobInput) GoString() string { 2638 return s.String() 2639 } 2640 2641 // Validate inspects the fields of the type to determine if they are valid. 2642 func (s *DescribeRxNormInferenceJobInput) Validate() error { 2643 invalidParams := request.ErrInvalidParams{Context: "DescribeRxNormInferenceJobInput"} 2644 if s.JobId == nil { 2645 invalidParams.Add(request.NewErrParamRequired("JobId")) 2646 } 2647 if s.JobId != nil && len(*s.JobId) < 1 { 2648 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 2649 } 2650 2651 if invalidParams.Len() > 0 { 2652 return invalidParams 2653 } 2654 return nil 2655 } 2656 2657 // SetJobId sets the JobId field's value. 2658 func (s *DescribeRxNormInferenceJobInput) SetJobId(v string) *DescribeRxNormInferenceJobInput { 2659 s.JobId = &v 2660 return s 2661 } 2662 2663 type DescribeRxNormInferenceJobOutput struct { 2664 _ struct{} `type:"structure"` 2665 2666 // An object that contains the properties associated with a detection job. 2667 ComprehendMedicalAsyncJobProperties *ComprehendMedicalAsyncJobProperties `type:"structure"` 2668 } 2669 2670 // String returns the string representation. 2671 // 2672 // API parameter values that are decorated as "sensitive" in the API will not 2673 // be included in the string output. The member name will be present, but the 2674 // value will be replaced with "sensitive". 2675 func (s DescribeRxNormInferenceJobOutput) String() string { 2676 return awsutil.Prettify(s) 2677 } 2678 2679 // GoString returns the string representation. 2680 // 2681 // API parameter values that are decorated as "sensitive" in the API will not 2682 // be included in the string output. The member name will be present, but the 2683 // value will be replaced with "sensitive". 2684 func (s DescribeRxNormInferenceJobOutput) GoString() string { 2685 return s.String() 2686 } 2687 2688 // SetComprehendMedicalAsyncJobProperties sets the ComprehendMedicalAsyncJobProperties field's value. 2689 func (s *DescribeRxNormInferenceJobOutput) SetComprehendMedicalAsyncJobProperties(v *ComprehendMedicalAsyncJobProperties) *DescribeRxNormInferenceJobOutput { 2690 s.ComprehendMedicalAsyncJobProperties = v 2691 return s 2692 } 2693 2694 type DetectEntitiesInput struct { 2695 _ struct{} `type:"structure"` 2696 2697 // A UTF-8 text string containing the clinical content being examined for entities. 2698 // Each string must contain fewer than 20,000 bytes of characters. 2699 // 2700 // Text is a required field 2701 Text *string `min:"1" type:"string" required:"true"` 2702 } 2703 2704 // String returns the string representation. 2705 // 2706 // API parameter values that are decorated as "sensitive" in the API will not 2707 // be included in the string output. The member name will be present, but the 2708 // value will be replaced with "sensitive". 2709 func (s DetectEntitiesInput) String() string { 2710 return awsutil.Prettify(s) 2711 } 2712 2713 // GoString returns the string representation. 2714 // 2715 // API parameter values that are decorated as "sensitive" in the API will not 2716 // be included in the string output. The member name will be present, but the 2717 // value will be replaced with "sensitive". 2718 func (s DetectEntitiesInput) GoString() string { 2719 return s.String() 2720 } 2721 2722 // Validate inspects the fields of the type to determine if they are valid. 2723 func (s *DetectEntitiesInput) Validate() error { 2724 invalidParams := request.ErrInvalidParams{Context: "DetectEntitiesInput"} 2725 if s.Text == nil { 2726 invalidParams.Add(request.NewErrParamRequired("Text")) 2727 } 2728 if s.Text != nil && len(*s.Text) < 1 { 2729 invalidParams.Add(request.NewErrParamMinLen("Text", 1)) 2730 } 2731 2732 if invalidParams.Len() > 0 { 2733 return invalidParams 2734 } 2735 return nil 2736 } 2737 2738 // SetText sets the Text field's value. 2739 func (s *DetectEntitiesInput) SetText(v string) *DetectEntitiesInput { 2740 s.Text = &v 2741 return s 2742 } 2743 2744 type DetectEntitiesOutput struct { 2745 _ struct{} `type:"structure"` 2746 2747 // The collection of medical entities extracted from the input text and their 2748 // associated information. For each entity, the response provides the entity 2749 // text, the entity category, where the entity text begins and ends, and the 2750 // level of confidence that Amazon Comprehend Medical has in the detection and 2751 // analysis. Attributes and traits of the entity are also returned. 2752 // 2753 // Entities is a required field 2754 Entities []*Entity `type:"list" required:"true"` 2755 2756 // The version of the model used to analyze the documents. The version number 2757 // looks like X.X.X. You can use this information to track the model used for 2758 // a particular batch of documents. 2759 // 2760 // ModelVersion is a required field 2761 ModelVersion *string `min:"1" type:"string" required:"true"` 2762 2763 // If the result of the previous request to DetectEntities was truncated, include 2764 // the PaginationToken to fetch the next page of entities. 2765 PaginationToken *string `min:"1" type:"string"` 2766 2767 // Attributes extracted from the input text that we were unable to relate to 2768 // an entity. 2769 UnmappedAttributes []*UnmappedAttribute `type:"list"` 2770 } 2771 2772 // String returns the string representation. 2773 // 2774 // API parameter values that are decorated as "sensitive" in the API will not 2775 // be included in the string output. The member name will be present, but the 2776 // value will be replaced with "sensitive". 2777 func (s DetectEntitiesOutput) String() string { 2778 return awsutil.Prettify(s) 2779 } 2780 2781 // GoString returns the string representation. 2782 // 2783 // API parameter values that are decorated as "sensitive" in the API will not 2784 // be included in the string output. The member name will be present, but the 2785 // value will be replaced with "sensitive". 2786 func (s DetectEntitiesOutput) GoString() string { 2787 return s.String() 2788 } 2789 2790 // SetEntities sets the Entities field's value. 2791 func (s *DetectEntitiesOutput) SetEntities(v []*Entity) *DetectEntitiesOutput { 2792 s.Entities = v 2793 return s 2794 } 2795 2796 // SetModelVersion sets the ModelVersion field's value. 2797 func (s *DetectEntitiesOutput) SetModelVersion(v string) *DetectEntitiesOutput { 2798 s.ModelVersion = &v 2799 return s 2800 } 2801 2802 // SetPaginationToken sets the PaginationToken field's value. 2803 func (s *DetectEntitiesOutput) SetPaginationToken(v string) *DetectEntitiesOutput { 2804 s.PaginationToken = &v 2805 return s 2806 } 2807 2808 // SetUnmappedAttributes sets the UnmappedAttributes field's value. 2809 func (s *DetectEntitiesOutput) SetUnmappedAttributes(v []*UnmappedAttribute) *DetectEntitiesOutput { 2810 s.UnmappedAttributes = v 2811 return s 2812 } 2813 2814 type DetectEntitiesV2Input struct { 2815 _ struct{} `type:"structure"` 2816 2817 // A UTF-8 string containing the clinical content being examined for entities. 2818 // Each string must contain fewer than 20,000 bytes of characters. 2819 // 2820 // Text is a required field 2821 Text *string `min:"1" type:"string" required:"true"` 2822 } 2823 2824 // String returns the string representation. 2825 // 2826 // API parameter values that are decorated as "sensitive" in the API will not 2827 // be included in the string output. The member name will be present, but the 2828 // value will be replaced with "sensitive". 2829 func (s DetectEntitiesV2Input) String() string { 2830 return awsutil.Prettify(s) 2831 } 2832 2833 // GoString returns the string representation. 2834 // 2835 // API parameter values that are decorated as "sensitive" in the API will not 2836 // be included in the string output. The member name will be present, but the 2837 // value will be replaced with "sensitive". 2838 func (s DetectEntitiesV2Input) GoString() string { 2839 return s.String() 2840 } 2841 2842 // Validate inspects the fields of the type to determine if they are valid. 2843 func (s *DetectEntitiesV2Input) Validate() error { 2844 invalidParams := request.ErrInvalidParams{Context: "DetectEntitiesV2Input"} 2845 if s.Text == nil { 2846 invalidParams.Add(request.NewErrParamRequired("Text")) 2847 } 2848 if s.Text != nil && len(*s.Text) < 1 { 2849 invalidParams.Add(request.NewErrParamMinLen("Text", 1)) 2850 } 2851 2852 if invalidParams.Len() > 0 { 2853 return invalidParams 2854 } 2855 return nil 2856 } 2857 2858 // SetText sets the Text field's value. 2859 func (s *DetectEntitiesV2Input) SetText(v string) *DetectEntitiesV2Input { 2860 s.Text = &v 2861 return s 2862 } 2863 2864 type DetectEntitiesV2Output struct { 2865 _ struct{} `type:"structure"` 2866 2867 // The collection of medical entities extracted from the input text and their 2868 // associated information. For each entity, the response provides the entity 2869 // text, the entity category, where the entity text begins and ends, and the 2870 // level of confidence in the detection and analysis. Attributes and traits 2871 // of the entity are also returned. 2872 // 2873 // Entities is a required field 2874 Entities []*Entity `type:"list" required:"true"` 2875 2876 // The version of the model used to analyze the documents. The version number 2877 // looks like X.X.X. You can use this information to track the model used for 2878 // a particular batch of documents. 2879 // 2880 // ModelVersion is a required field 2881 ModelVersion *string `min:"1" type:"string" required:"true"` 2882 2883 // If the result to the DetectEntitiesV2 operation was truncated, include the 2884 // PaginationToken to fetch the next page of entities. 2885 PaginationToken *string `min:"1" type:"string"` 2886 2887 // Attributes extracted from the input text that couldn't be related to an entity. 2888 UnmappedAttributes []*UnmappedAttribute `type:"list"` 2889 } 2890 2891 // String returns the string representation. 2892 // 2893 // API parameter values that are decorated as "sensitive" in the API will not 2894 // be included in the string output. The member name will be present, but the 2895 // value will be replaced with "sensitive". 2896 func (s DetectEntitiesV2Output) String() string { 2897 return awsutil.Prettify(s) 2898 } 2899 2900 // GoString returns the string representation. 2901 // 2902 // API parameter values that are decorated as "sensitive" in the API will not 2903 // be included in the string output. The member name will be present, but the 2904 // value will be replaced with "sensitive". 2905 func (s DetectEntitiesV2Output) GoString() string { 2906 return s.String() 2907 } 2908 2909 // SetEntities sets the Entities field's value. 2910 func (s *DetectEntitiesV2Output) SetEntities(v []*Entity) *DetectEntitiesV2Output { 2911 s.Entities = v 2912 return s 2913 } 2914 2915 // SetModelVersion sets the ModelVersion field's value. 2916 func (s *DetectEntitiesV2Output) SetModelVersion(v string) *DetectEntitiesV2Output { 2917 s.ModelVersion = &v 2918 return s 2919 } 2920 2921 // SetPaginationToken sets the PaginationToken field's value. 2922 func (s *DetectEntitiesV2Output) SetPaginationToken(v string) *DetectEntitiesV2Output { 2923 s.PaginationToken = &v 2924 return s 2925 } 2926 2927 // SetUnmappedAttributes sets the UnmappedAttributes field's value. 2928 func (s *DetectEntitiesV2Output) SetUnmappedAttributes(v []*UnmappedAttribute) *DetectEntitiesV2Output { 2929 s.UnmappedAttributes = v 2930 return s 2931 } 2932 2933 type DetectPHIInput struct { 2934 _ struct{} `type:"structure"` 2935 2936 // A UTF-8 text string containing the clinical content being examined for PHI 2937 // entities. Each string must contain fewer than 20,000 bytes of characters. 2938 // 2939 // Text is a required field 2940 Text *string `min:"1" type:"string" required:"true"` 2941 } 2942 2943 // String returns the string representation. 2944 // 2945 // API parameter values that are decorated as "sensitive" in the API will not 2946 // be included in the string output. The member name will be present, but the 2947 // value will be replaced with "sensitive". 2948 func (s DetectPHIInput) String() string { 2949 return awsutil.Prettify(s) 2950 } 2951 2952 // GoString returns the string representation. 2953 // 2954 // API parameter values that are decorated as "sensitive" in the API will not 2955 // be included in the string output. The member name will be present, but the 2956 // value will be replaced with "sensitive". 2957 func (s DetectPHIInput) GoString() string { 2958 return s.String() 2959 } 2960 2961 // Validate inspects the fields of the type to determine if they are valid. 2962 func (s *DetectPHIInput) Validate() error { 2963 invalidParams := request.ErrInvalidParams{Context: "DetectPHIInput"} 2964 if s.Text == nil { 2965 invalidParams.Add(request.NewErrParamRequired("Text")) 2966 } 2967 if s.Text != nil && len(*s.Text) < 1 { 2968 invalidParams.Add(request.NewErrParamMinLen("Text", 1)) 2969 } 2970 2971 if invalidParams.Len() > 0 { 2972 return invalidParams 2973 } 2974 return nil 2975 } 2976 2977 // SetText sets the Text field's value. 2978 func (s *DetectPHIInput) SetText(v string) *DetectPHIInput { 2979 s.Text = &v 2980 return s 2981 } 2982 2983 type DetectPHIOutput struct { 2984 _ struct{} `type:"structure"` 2985 2986 // The collection of PHI entities extracted from the input text and their associated 2987 // information. For each entity, the response provides the entity text, the 2988 // entity category, where the entity text begins and ends, and the level of 2989 // confidence that Amazon Comprehend Medical has in its detection. 2990 // 2991 // Entities is a required field 2992 Entities []*Entity `type:"list" required:"true"` 2993 2994 // The version of the model used to analyze the documents. The version number 2995 // looks like X.X.X. You can use this information to track the model used for 2996 // a particular batch of documents. 2997 // 2998 // ModelVersion is a required field 2999 ModelVersion *string `min:"1" type:"string" required:"true"` 3000 3001 // If the result of the previous request to DetectPHI was truncated, include 3002 // the PaginationToken to fetch the next page of PHI entities. 3003 PaginationToken *string `min:"1" type:"string"` 3004 } 3005 3006 // String returns the string representation. 3007 // 3008 // API parameter values that are decorated as "sensitive" in the API will not 3009 // be included in the string output. The member name will be present, but the 3010 // value will be replaced with "sensitive". 3011 func (s DetectPHIOutput) String() string { 3012 return awsutil.Prettify(s) 3013 } 3014 3015 // GoString returns the string representation. 3016 // 3017 // API parameter values that are decorated as "sensitive" in the API will not 3018 // be included in the string output. The member name will be present, but the 3019 // value will be replaced with "sensitive". 3020 func (s DetectPHIOutput) GoString() string { 3021 return s.String() 3022 } 3023 3024 // SetEntities sets the Entities field's value. 3025 func (s *DetectPHIOutput) SetEntities(v []*Entity) *DetectPHIOutput { 3026 s.Entities = v 3027 return s 3028 } 3029 3030 // SetModelVersion sets the ModelVersion field's value. 3031 func (s *DetectPHIOutput) SetModelVersion(v string) *DetectPHIOutput { 3032 s.ModelVersion = &v 3033 return s 3034 } 3035 3036 // SetPaginationToken sets the PaginationToken field's value. 3037 func (s *DetectPHIOutput) SetPaginationToken(v string) *DetectPHIOutput { 3038 s.PaginationToken = &v 3039 return s 3040 } 3041 3042 // Provides information about an extracted medical entity. 3043 type Entity struct { 3044 _ struct{} `type:"structure"` 3045 3046 // The extracted attributes that relate to this entity. 3047 Attributes []*Attribute `type:"list"` 3048 3049 // The 0-based character offset in the input text that shows where the entity 3050 // begins. The offset returns the UTF-8 code point in the string. 3051 BeginOffset *int64 `type:"integer"` 3052 3053 // The category of the entity. 3054 Category *string `type:"string" enum:"EntityType"` 3055 3056 // The 0-based character offset in the input text that shows where the entity 3057 // ends. The offset returns the UTF-8 code point in the string. 3058 EndOffset *int64 `type:"integer"` 3059 3060 // The numeric identifier for the entity. This is a monotonically increasing 3061 // id unique within this response rather than a global unique identifier. 3062 Id *int64 `type:"integer"` 3063 3064 // The level of confidence that Amazon Comprehend Medical has in the accuracy 3065 // of the detection. 3066 Score *float64 `type:"float"` 3067 3068 // The segment of input text extracted as this entity. 3069 Text *string `min:"1" type:"string"` 3070 3071 // Contextual information for the entity. 3072 Traits []*Trait `type:"list"` 3073 3074 // Describes the specific type of entity with category of entities. 3075 Type *string `type:"string" enum:"EntitySubType"` 3076 } 3077 3078 // String returns the string representation. 3079 // 3080 // API parameter values that are decorated as "sensitive" in the API will not 3081 // be included in the string output. The member name will be present, but the 3082 // value will be replaced with "sensitive". 3083 func (s Entity) String() string { 3084 return awsutil.Prettify(s) 3085 } 3086 3087 // GoString returns the string representation. 3088 // 3089 // API parameter values that are decorated as "sensitive" in the API will not 3090 // be included in the string output. The member name will be present, but the 3091 // value will be replaced with "sensitive". 3092 func (s Entity) GoString() string { 3093 return s.String() 3094 } 3095 3096 // SetAttributes sets the Attributes field's value. 3097 func (s *Entity) SetAttributes(v []*Attribute) *Entity { 3098 s.Attributes = v 3099 return s 3100 } 3101 3102 // SetBeginOffset sets the BeginOffset field's value. 3103 func (s *Entity) SetBeginOffset(v int64) *Entity { 3104 s.BeginOffset = &v 3105 return s 3106 } 3107 3108 // SetCategory sets the Category field's value. 3109 func (s *Entity) SetCategory(v string) *Entity { 3110 s.Category = &v 3111 return s 3112 } 3113 3114 // SetEndOffset sets the EndOffset field's value. 3115 func (s *Entity) SetEndOffset(v int64) *Entity { 3116 s.EndOffset = &v 3117 return s 3118 } 3119 3120 // SetId sets the Id field's value. 3121 func (s *Entity) SetId(v int64) *Entity { 3122 s.Id = &v 3123 return s 3124 } 3125 3126 // SetScore sets the Score field's value. 3127 func (s *Entity) SetScore(v float64) *Entity { 3128 s.Score = &v 3129 return s 3130 } 3131 3132 // SetText sets the Text field's value. 3133 func (s *Entity) SetText(v string) *Entity { 3134 s.Text = &v 3135 return s 3136 } 3137 3138 // SetTraits sets the Traits field's value. 3139 func (s *Entity) SetTraits(v []*Trait) *Entity { 3140 s.Traits = v 3141 return s 3142 } 3143 3144 // SetType sets the Type field's value. 3145 func (s *Entity) SetType(v string) *Entity { 3146 s.Type = &v 3147 return s 3148 } 3149 3150 // The detected attributes that relate to an entity. This includes an extracted 3151 // segment of the text that is an attribute of an entity, or otherwise related 3152 // to an entity. InferICD10CM detects the following attributes: Direction, System, 3153 // Organ or Site, and Acuity. 3154 type ICD10CMAttribute struct { 3155 _ struct{} `type:"structure"` 3156 3157 // The 0-based character offset in the input text that shows where the attribute 3158 // begins. The offset returns the UTF-8 code point in the string. 3159 BeginOffset *int64 `type:"integer"` 3160 3161 // The category of attribute. Can be either of DX_NAME or TIME_EXPRESSION. 3162 Category *string `type:"string" enum:"ICD10CMEntityType"` 3163 3164 // The 0-based character offset in the input text that shows where the attribute 3165 // ends. The offset returns the UTF-8 code point in the string. 3166 EndOffset *int64 `type:"integer"` 3167 3168 // The numeric identifier for this attribute. This is a monotonically increasing 3169 // id unique within this response rather than a global unique identifier. 3170 Id *int64 `type:"integer"` 3171 3172 // The level of confidence that Amazon Comprehend Medical has that this attribute 3173 // is correctly related to this entity. 3174 RelationshipScore *float64 `type:"float"` 3175 3176 // The type of relationship between the entity and attribute. Type for the relationship 3177 // can be either of OVERLAP or SYSTEM_ORGAN_SITE. 3178 RelationshipType *string `type:"string" enum:"ICD10CMRelationshipType"` 3179 3180 // The level of confidence that Amazon Comprehend Medical has that the segment 3181 // of text is correctly recognized as an attribute. 3182 Score *float64 `type:"float"` 3183 3184 // The segment of input text which contains the detected attribute. 3185 Text *string `min:"1" type:"string"` 3186 3187 // The contextual information for the attribute. The traits recognized by InferICD10CM 3188 // are DIAGNOSIS, SIGN, SYMPTOM, and NEGATION. 3189 Traits []*ICD10CMTrait `type:"list"` 3190 3191 // The type of attribute. InferICD10CM detects entities of the type DX_NAME. 3192 Type *string `type:"string" enum:"ICD10CMAttributeType"` 3193 } 3194 3195 // String returns the string representation. 3196 // 3197 // API parameter values that are decorated as "sensitive" in the API will not 3198 // be included in the string output. The member name will be present, but the 3199 // value will be replaced with "sensitive". 3200 func (s ICD10CMAttribute) String() string { 3201 return awsutil.Prettify(s) 3202 } 3203 3204 // GoString returns the string representation. 3205 // 3206 // API parameter values that are decorated as "sensitive" in the API will not 3207 // be included in the string output. The member name will be present, but the 3208 // value will be replaced with "sensitive". 3209 func (s ICD10CMAttribute) GoString() string { 3210 return s.String() 3211 } 3212 3213 // SetBeginOffset sets the BeginOffset field's value. 3214 func (s *ICD10CMAttribute) SetBeginOffset(v int64) *ICD10CMAttribute { 3215 s.BeginOffset = &v 3216 return s 3217 } 3218 3219 // SetCategory sets the Category field's value. 3220 func (s *ICD10CMAttribute) SetCategory(v string) *ICD10CMAttribute { 3221 s.Category = &v 3222 return s 3223 } 3224 3225 // SetEndOffset sets the EndOffset field's value. 3226 func (s *ICD10CMAttribute) SetEndOffset(v int64) *ICD10CMAttribute { 3227 s.EndOffset = &v 3228 return s 3229 } 3230 3231 // SetId sets the Id field's value. 3232 func (s *ICD10CMAttribute) SetId(v int64) *ICD10CMAttribute { 3233 s.Id = &v 3234 return s 3235 } 3236 3237 // SetRelationshipScore sets the RelationshipScore field's value. 3238 func (s *ICD10CMAttribute) SetRelationshipScore(v float64) *ICD10CMAttribute { 3239 s.RelationshipScore = &v 3240 return s 3241 } 3242 3243 // SetRelationshipType sets the RelationshipType field's value. 3244 func (s *ICD10CMAttribute) SetRelationshipType(v string) *ICD10CMAttribute { 3245 s.RelationshipType = &v 3246 return s 3247 } 3248 3249 // SetScore sets the Score field's value. 3250 func (s *ICD10CMAttribute) SetScore(v float64) *ICD10CMAttribute { 3251 s.Score = &v 3252 return s 3253 } 3254 3255 // SetText sets the Text field's value. 3256 func (s *ICD10CMAttribute) SetText(v string) *ICD10CMAttribute { 3257 s.Text = &v 3258 return s 3259 } 3260 3261 // SetTraits sets the Traits field's value. 3262 func (s *ICD10CMAttribute) SetTraits(v []*ICD10CMTrait) *ICD10CMAttribute { 3263 s.Traits = v 3264 return s 3265 } 3266 3267 // SetType sets the Type field's value. 3268 func (s *ICD10CMAttribute) SetType(v string) *ICD10CMAttribute { 3269 s.Type = &v 3270 return s 3271 } 3272 3273 // The ICD-10-CM concepts that the entity could refer to, along with a score 3274 // indicating the likelihood of the match. 3275 type ICD10CMConcept struct { 3276 _ struct{} `type:"structure"` 3277 3278 // The ICD-10-CM code that identifies the concept found in the knowledge base 3279 // from the Centers for Disease Control. 3280 Code *string `min:"1" type:"string"` 3281 3282 // The long description of the ICD-10-CM code in the ontology. 3283 Description *string `min:"1" type:"string"` 3284 3285 // The level of confidence that Amazon Comprehend Medical has that the entity 3286 // is accurately linked to an ICD-10-CM concept. 3287 Score *float64 `type:"float"` 3288 } 3289 3290 // String returns the string representation. 3291 // 3292 // API parameter values that are decorated as "sensitive" in the API will not 3293 // be included in the string output. The member name will be present, but the 3294 // value will be replaced with "sensitive". 3295 func (s ICD10CMConcept) String() string { 3296 return awsutil.Prettify(s) 3297 } 3298 3299 // GoString returns the string representation. 3300 // 3301 // API parameter values that are decorated as "sensitive" in the API will not 3302 // be included in the string output. The member name will be present, but the 3303 // value will be replaced with "sensitive". 3304 func (s ICD10CMConcept) GoString() string { 3305 return s.String() 3306 } 3307 3308 // SetCode sets the Code field's value. 3309 func (s *ICD10CMConcept) SetCode(v string) *ICD10CMConcept { 3310 s.Code = &v 3311 return s 3312 } 3313 3314 // SetDescription sets the Description field's value. 3315 func (s *ICD10CMConcept) SetDescription(v string) *ICD10CMConcept { 3316 s.Description = &v 3317 return s 3318 } 3319 3320 // SetScore sets the Score field's value. 3321 func (s *ICD10CMConcept) SetScore(v float64) *ICD10CMConcept { 3322 s.Score = &v 3323 return s 3324 } 3325 3326 // The collection of medical entities extracted from the input text and their 3327 // associated information. For each entity, the response provides the entity 3328 // text, the entity category, where the entity text begins and ends, and the 3329 // level of confidence that Amazon Comprehend Medical has in the detection and 3330 // analysis. Attributes and traits of the entity are also returned. 3331 type ICD10CMEntity struct { 3332 _ struct{} `type:"structure"` 3333 3334 // The detected attributes that relate to the entity. An extracted segment of 3335 // the text that is an attribute of an entity, or otherwise related to an entity, 3336 // such as the nature of a medical condition. 3337 Attributes []*ICD10CMAttribute `type:"list"` 3338 3339 // The 0-based character offset in the input text that shows where the entity 3340 // begins. The offset returns the UTF-8 code point in the string. 3341 BeginOffset *int64 `type:"integer"` 3342 3343 // The category of the entity. InferICD10CM detects entities in the MEDICAL_CONDITION 3344 // category. 3345 Category *string `type:"string" enum:"ICD10CMEntityCategory"` 3346 3347 // The 0-based character offset in the input text that shows where the entity 3348 // ends. The offset returns the UTF-8 code point in the string. 3349 EndOffset *int64 `type:"integer"` 3350 3351 // The ICD-10-CM concepts that the entity could refer to, along with a score 3352 // indicating the likelihood of the match. 3353 ICD10CMConcepts []*ICD10CMConcept `type:"list"` 3354 3355 // The numeric identifier for the entity. This is a monotonically increasing 3356 // id unique within this response rather than a global unique identifier. 3357 Id *int64 `type:"integer"` 3358 3359 // The level of confidence that Amazon Comprehend Medical has in the accuracy 3360 // of the detection. 3361 Score *float64 `type:"float"` 3362 3363 // The segment of input text that is matched to the detected entity. 3364 Text *string `min:"1" type:"string"` 3365 3366 // Provides Contextual information for the entity. The traits recognized by 3367 // InferICD10CM are DIAGNOSIS, SIGN, SYMPTOM, and NEGATION. 3368 Traits []*ICD10CMTrait `type:"list"` 3369 3370 // Describes the specific type of entity with category of entities. InferICD10CM 3371 // detects entities of the type DX_NAME and TIME_EXPRESSION. 3372 Type *string `type:"string" enum:"ICD10CMEntityType"` 3373 } 3374 3375 // String returns the string representation. 3376 // 3377 // API parameter values that are decorated as "sensitive" in the API will not 3378 // be included in the string output. The member name will be present, but the 3379 // value will be replaced with "sensitive". 3380 func (s ICD10CMEntity) String() string { 3381 return awsutil.Prettify(s) 3382 } 3383 3384 // GoString returns the string representation. 3385 // 3386 // API parameter values that are decorated as "sensitive" in the API will not 3387 // be included in the string output. The member name will be present, but the 3388 // value will be replaced with "sensitive". 3389 func (s ICD10CMEntity) GoString() string { 3390 return s.String() 3391 } 3392 3393 // SetAttributes sets the Attributes field's value. 3394 func (s *ICD10CMEntity) SetAttributes(v []*ICD10CMAttribute) *ICD10CMEntity { 3395 s.Attributes = v 3396 return s 3397 } 3398 3399 // SetBeginOffset sets the BeginOffset field's value. 3400 func (s *ICD10CMEntity) SetBeginOffset(v int64) *ICD10CMEntity { 3401 s.BeginOffset = &v 3402 return s 3403 } 3404 3405 // SetCategory sets the Category field's value. 3406 func (s *ICD10CMEntity) SetCategory(v string) *ICD10CMEntity { 3407 s.Category = &v 3408 return s 3409 } 3410 3411 // SetEndOffset sets the EndOffset field's value. 3412 func (s *ICD10CMEntity) SetEndOffset(v int64) *ICD10CMEntity { 3413 s.EndOffset = &v 3414 return s 3415 } 3416 3417 // SetICD10CMConcepts sets the ICD10CMConcepts field's value. 3418 func (s *ICD10CMEntity) SetICD10CMConcepts(v []*ICD10CMConcept) *ICD10CMEntity { 3419 s.ICD10CMConcepts = v 3420 return s 3421 } 3422 3423 // SetId sets the Id field's value. 3424 func (s *ICD10CMEntity) SetId(v int64) *ICD10CMEntity { 3425 s.Id = &v 3426 return s 3427 } 3428 3429 // SetScore sets the Score field's value. 3430 func (s *ICD10CMEntity) SetScore(v float64) *ICD10CMEntity { 3431 s.Score = &v 3432 return s 3433 } 3434 3435 // SetText sets the Text field's value. 3436 func (s *ICD10CMEntity) SetText(v string) *ICD10CMEntity { 3437 s.Text = &v 3438 return s 3439 } 3440 3441 // SetTraits sets the Traits field's value. 3442 func (s *ICD10CMEntity) SetTraits(v []*ICD10CMTrait) *ICD10CMEntity { 3443 s.Traits = v 3444 return s 3445 } 3446 3447 // SetType sets the Type field's value. 3448 func (s *ICD10CMEntity) SetType(v string) *ICD10CMEntity { 3449 s.Type = &v 3450 return s 3451 } 3452 3453 // Contextual information for the entity. The traits recognized by InferICD10CM 3454 // are DIAGNOSIS, SIGN, SYMPTOM, and NEGATION. 3455 type ICD10CMTrait struct { 3456 _ struct{} `type:"structure"` 3457 3458 // Provides a name or contextual description about the trait. 3459 Name *string `type:"string" enum:"ICD10CMTraitName"` 3460 3461 // The level of confidence that Amazon Comprehend Medical has that the segment 3462 // of text is correctly recognized as a trait. 3463 Score *float64 `type:"float"` 3464 } 3465 3466 // String returns the string representation. 3467 // 3468 // API parameter values that are decorated as "sensitive" in the API will not 3469 // be included in the string output. The member name will be present, but the 3470 // value will be replaced with "sensitive". 3471 func (s ICD10CMTrait) String() string { 3472 return awsutil.Prettify(s) 3473 } 3474 3475 // GoString returns the string representation. 3476 // 3477 // API parameter values that are decorated as "sensitive" in the API will not 3478 // be included in the string output. The member name will be present, but the 3479 // value will be replaced with "sensitive". 3480 func (s ICD10CMTrait) GoString() string { 3481 return s.String() 3482 } 3483 3484 // SetName sets the Name field's value. 3485 func (s *ICD10CMTrait) SetName(v string) *ICD10CMTrait { 3486 s.Name = &v 3487 return s 3488 } 3489 3490 // SetScore sets the Score field's value. 3491 func (s *ICD10CMTrait) SetScore(v float64) *ICD10CMTrait { 3492 s.Score = &v 3493 return s 3494 } 3495 3496 type InferICD10CMInput struct { 3497 _ struct{} `type:"structure"` 3498 3499 // The input text used for analysis. The input for InferICD10CM is a string 3500 // from 1 to 10000 characters. 3501 // 3502 // Text is a required field 3503 Text *string `min:"1" type:"string" required:"true"` 3504 } 3505 3506 // String returns the string representation. 3507 // 3508 // API parameter values that are decorated as "sensitive" in the API will not 3509 // be included in the string output. The member name will be present, but the 3510 // value will be replaced with "sensitive". 3511 func (s InferICD10CMInput) String() string { 3512 return awsutil.Prettify(s) 3513 } 3514 3515 // GoString returns the string representation. 3516 // 3517 // API parameter values that are decorated as "sensitive" in the API will not 3518 // be included in the string output. The member name will be present, but the 3519 // value will be replaced with "sensitive". 3520 func (s InferICD10CMInput) GoString() string { 3521 return s.String() 3522 } 3523 3524 // Validate inspects the fields of the type to determine if they are valid. 3525 func (s *InferICD10CMInput) Validate() error { 3526 invalidParams := request.ErrInvalidParams{Context: "InferICD10CMInput"} 3527 if s.Text == nil { 3528 invalidParams.Add(request.NewErrParamRequired("Text")) 3529 } 3530 if s.Text != nil && len(*s.Text) < 1 { 3531 invalidParams.Add(request.NewErrParamMinLen("Text", 1)) 3532 } 3533 3534 if invalidParams.Len() > 0 { 3535 return invalidParams 3536 } 3537 return nil 3538 } 3539 3540 // SetText sets the Text field's value. 3541 func (s *InferICD10CMInput) SetText(v string) *InferICD10CMInput { 3542 s.Text = &v 3543 return s 3544 } 3545 3546 type InferICD10CMOutput struct { 3547 _ struct{} `type:"structure"` 3548 3549 // The medical conditions detected in the text linked to ICD-10-CM concepts. 3550 // If the action is successful, the service sends back an HTTP 200 response, 3551 // as well as the entities detected. 3552 // 3553 // Entities is a required field 3554 Entities []*ICD10CMEntity `type:"list" required:"true"` 3555 3556 // The version of the model used to analyze the documents, in the format n.n.n 3557 // You can use this information to track the model used for a particular batch 3558 // of documents. 3559 ModelVersion *string `min:"1" type:"string"` 3560 3561 // If the result of the previous request to InferICD10CM was truncated, include 3562 // the PaginationToken to fetch the next page of medical condition entities. 3563 PaginationToken *string `min:"1" type:"string"` 3564 } 3565 3566 // String returns the string representation. 3567 // 3568 // API parameter values that are decorated as "sensitive" in the API will not 3569 // be included in the string output. The member name will be present, but the 3570 // value will be replaced with "sensitive". 3571 func (s InferICD10CMOutput) String() string { 3572 return awsutil.Prettify(s) 3573 } 3574 3575 // GoString returns the string representation. 3576 // 3577 // API parameter values that are decorated as "sensitive" in the API will not 3578 // be included in the string output. The member name will be present, but the 3579 // value will be replaced with "sensitive". 3580 func (s InferICD10CMOutput) GoString() string { 3581 return s.String() 3582 } 3583 3584 // SetEntities sets the Entities field's value. 3585 func (s *InferICD10CMOutput) SetEntities(v []*ICD10CMEntity) *InferICD10CMOutput { 3586 s.Entities = v 3587 return s 3588 } 3589 3590 // SetModelVersion sets the ModelVersion field's value. 3591 func (s *InferICD10CMOutput) SetModelVersion(v string) *InferICD10CMOutput { 3592 s.ModelVersion = &v 3593 return s 3594 } 3595 3596 // SetPaginationToken sets the PaginationToken field's value. 3597 func (s *InferICD10CMOutput) SetPaginationToken(v string) *InferICD10CMOutput { 3598 s.PaginationToken = &v 3599 return s 3600 } 3601 3602 type InferRxNormInput struct { 3603 _ struct{} `type:"structure"` 3604 3605 // The input text used for analysis. The input for InferRxNorm is a string from 3606 // 1 to 10000 characters. 3607 // 3608 // Text is a required field 3609 Text *string `min:"1" type:"string" required:"true"` 3610 } 3611 3612 // String returns the string representation. 3613 // 3614 // API parameter values that are decorated as "sensitive" in the API will not 3615 // be included in the string output. The member name will be present, but the 3616 // value will be replaced with "sensitive". 3617 func (s InferRxNormInput) String() string { 3618 return awsutil.Prettify(s) 3619 } 3620 3621 // GoString returns the string representation. 3622 // 3623 // API parameter values that are decorated as "sensitive" in the API will not 3624 // be included in the string output. The member name will be present, but the 3625 // value will be replaced with "sensitive". 3626 func (s InferRxNormInput) GoString() string { 3627 return s.String() 3628 } 3629 3630 // Validate inspects the fields of the type to determine if they are valid. 3631 func (s *InferRxNormInput) Validate() error { 3632 invalidParams := request.ErrInvalidParams{Context: "InferRxNormInput"} 3633 if s.Text == nil { 3634 invalidParams.Add(request.NewErrParamRequired("Text")) 3635 } 3636 if s.Text != nil && len(*s.Text) < 1 { 3637 invalidParams.Add(request.NewErrParamMinLen("Text", 1)) 3638 } 3639 3640 if invalidParams.Len() > 0 { 3641 return invalidParams 3642 } 3643 return nil 3644 } 3645 3646 // SetText sets the Text field's value. 3647 func (s *InferRxNormInput) SetText(v string) *InferRxNormInput { 3648 s.Text = &v 3649 return s 3650 } 3651 3652 type InferRxNormOutput struct { 3653 _ struct{} `type:"structure"` 3654 3655 // The medication entities detected in the text linked to RxNorm concepts. If 3656 // the action is successful, the service sends back an HTTP 200 response, as 3657 // well as the entities detected. 3658 // 3659 // Entities is a required field 3660 Entities []*RxNormEntity `type:"list" required:"true"` 3661 3662 // The version of the model used to analyze the documents, in the format n.n.n 3663 // You can use this information to track the model used for a particular batch 3664 // of documents. 3665 ModelVersion *string `min:"1" type:"string"` 3666 3667 // If the result of the previous request to InferRxNorm was truncated, include 3668 // the PaginationToken to fetch the next page of medication entities. 3669 PaginationToken *string `min:"1" type:"string"` 3670 } 3671 3672 // String returns the string representation. 3673 // 3674 // API parameter values that are decorated as "sensitive" in the API will not 3675 // be included in the string output. The member name will be present, but the 3676 // value will be replaced with "sensitive". 3677 func (s InferRxNormOutput) String() string { 3678 return awsutil.Prettify(s) 3679 } 3680 3681 // GoString returns the string representation. 3682 // 3683 // API parameter values that are decorated as "sensitive" in the API will not 3684 // be included in the string output. The member name will be present, but the 3685 // value will be replaced with "sensitive". 3686 func (s InferRxNormOutput) GoString() string { 3687 return s.String() 3688 } 3689 3690 // SetEntities sets the Entities field's value. 3691 func (s *InferRxNormOutput) SetEntities(v []*RxNormEntity) *InferRxNormOutput { 3692 s.Entities = v 3693 return s 3694 } 3695 3696 // SetModelVersion sets the ModelVersion field's value. 3697 func (s *InferRxNormOutput) SetModelVersion(v string) *InferRxNormOutput { 3698 s.ModelVersion = &v 3699 return s 3700 } 3701 3702 // SetPaginationToken sets the PaginationToken field's value. 3703 func (s *InferRxNormOutput) SetPaginationToken(v string) *InferRxNormOutput { 3704 s.PaginationToken = &v 3705 return s 3706 } 3707 3708 // The input properties for an entities detection job. This includes the name 3709 // of the S3 bucket and the path to the files to be analyzed. 3710 type InputDataConfig struct { 3711 _ struct{} `type:"structure"` 3712 3713 // The URI of the S3 bucket that contains the input data. The bucket must be 3714 // in the same region as the API endpoint that you are calling. 3715 // 3716 // Each file in the document collection must be less than 40 KB. You can store 3717 // a maximum of 30 GB in the bucket. 3718 // 3719 // S3Bucket is a required field 3720 S3Bucket *string `min:"3" type:"string" required:"true"` 3721 3722 // The path to the input data files in the S3 bucket. 3723 S3Key *string `type:"string"` 3724 } 3725 3726 // String returns the string representation. 3727 // 3728 // API parameter values that are decorated as "sensitive" in the API will not 3729 // be included in the string output. The member name will be present, but the 3730 // value will be replaced with "sensitive". 3731 func (s InputDataConfig) String() string { 3732 return awsutil.Prettify(s) 3733 } 3734 3735 // GoString returns the string representation. 3736 // 3737 // API parameter values that are decorated as "sensitive" in the API will not 3738 // be included in the string output. The member name will be present, but the 3739 // value will be replaced with "sensitive". 3740 func (s InputDataConfig) GoString() string { 3741 return s.String() 3742 } 3743 3744 // Validate inspects the fields of the type to determine if they are valid. 3745 func (s *InputDataConfig) Validate() error { 3746 invalidParams := request.ErrInvalidParams{Context: "InputDataConfig"} 3747 if s.S3Bucket == nil { 3748 invalidParams.Add(request.NewErrParamRequired("S3Bucket")) 3749 } 3750 if s.S3Bucket != nil && len(*s.S3Bucket) < 3 { 3751 invalidParams.Add(request.NewErrParamMinLen("S3Bucket", 3)) 3752 } 3753 3754 if invalidParams.Len() > 0 { 3755 return invalidParams 3756 } 3757 return nil 3758 } 3759 3760 // SetS3Bucket sets the S3Bucket field's value. 3761 func (s *InputDataConfig) SetS3Bucket(v string) *InputDataConfig { 3762 s.S3Bucket = &v 3763 return s 3764 } 3765 3766 // SetS3Key sets the S3Key field's value. 3767 func (s *InputDataConfig) SetS3Key(v string) *InputDataConfig { 3768 s.S3Key = &v 3769 return s 3770 } 3771 3772 // An internal server error occurred. Retry your request. 3773 type InternalServerException struct { 3774 _ struct{} `type:"structure"` 3775 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 3776 3777 Message_ *string `locationName:"Message" min:"1" type:"string"` 3778 } 3779 3780 // String returns the string representation. 3781 // 3782 // API parameter values that are decorated as "sensitive" in the API will not 3783 // be included in the string output. The member name will be present, but the 3784 // value will be replaced with "sensitive". 3785 func (s InternalServerException) String() string { 3786 return awsutil.Prettify(s) 3787 } 3788 3789 // GoString returns the string representation. 3790 // 3791 // API parameter values that are decorated as "sensitive" in the API will not 3792 // be included in the string output. The member name will be present, but the 3793 // value will be replaced with "sensitive". 3794 func (s InternalServerException) GoString() string { 3795 return s.String() 3796 } 3797 3798 func newErrorInternalServerException(v protocol.ResponseMetadata) error { 3799 return &InternalServerException{ 3800 RespMetadata: v, 3801 } 3802 } 3803 3804 // Code returns the exception type name. 3805 func (s *InternalServerException) Code() string { 3806 return "InternalServerException" 3807 } 3808 3809 // Message returns the exception's message. 3810 func (s *InternalServerException) Message() string { 3811 if s.Message_ != nil { 3812 return *s.Message_ 3813 } 3814 return "" 3815 } 3816 3817 // OrigErr always returns nil, satisfies awserr.Error interface. 3818 func (s *InternalServerException) OrigErr() error { 3819 return nil 3820 } 3821 3822 func (s *InternalServerException) Error() string { 3823 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 3824 } 3825 3826 // Status code returns the HTTP status code for the request's response error. 3827 func (s *InternalServerException) StatusCode() int { 3828 return s.RespMetadata.StatusCode 3829 } 3830 3831 // RequestID returns the service's response RequestID for request. 3832 func (s *InternalServerException) RequestID() string { 3833 return s.RespMetadata.RequestID 3834 } 3835 3836 // The input text was not in valid UTF-8 character encoding. Check your text 3837 // then retry your request. 3838 type InvalidEncodingException struct { 3839 _ struct{} `type:"structure"` 3840 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 3841 3842 Message_ *string `locationName:"Message" min:"1" type:"string"` 3843 } 3844 3845 // String returns the string representation. 3846 // 3847 // API parameter values that are decorated as "sensitive" in the API will not 3848 // be included in the string output. The member name will be present, but the 3849 // value will be replaced with "sensitive". 3850 func (s InvalidEncodingException) String() string { 3851 return awsutil.Prettify(s) 3852 } 3853 3854 // GoString returns the string representation. 3855 // 3856 // API parameter values that are decorated as "sensitive" in the API will not 3857 // be included in the string output. The member name will be present, but the 3858 // value will be replaced with "sensitive". 3859 func (s InvalidEncodingException) GoString() string { 3860 return s.String() 3861 } 3862 3863 func newErrorInvalidEncodingException(v protocol.ResponseMetadata) error { 3864 return &InvalidEncodingException{ 3865 RespMetadata: v, 3866 } 3867 } 3868 3869 // Code returns the exception type name. 3870 func (s *InvalidEncodingException) Code() string { 3871 return "InvalidEncodingException" 3872 } 3873 3874 // Message returns the exception's message. 3875 func (s *InvalidEncodingException) Message() string { 3876 if s.Message_ != nil { 3877 return *s.Message_ 3878 } 3879 return "" 3880 } 3881 3882 // OrigErr always returns nil, satisfies awserr.Error interface. 3883 func (s *InvalidEncodingException) OrigErr() error { 3884 return nil 3885 } 3886 3887 func (s *InvalidEncodingException) Error() string { 3888 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 3889 } 3890 3891 // Status code returns the HTTP status code for the request's response error. 3892 func (s *InvalidEncodingException) StatusCode() int { 3893 return s.RespMetadata.StatusCode 3894 } 3895 3896 // RequestID returns the service's response RequestID for request. 3897 func (s *InvalidEncodingException) RequestID() string { 3898 return s.RespMetadata.RequestID 3899 } 3900 3901 // The request that you made is invalid. Check your request to determine why 3902 // it's invalid and then retry the request. 3903 type InvalidRequestException struct { 3904 _ struct{} `type:"structure"` 3905 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 3906 3907 Message_ *string `locationName:"Message" min:"1" type:"string"` 3908 } 3909 3910 // String returns the string representation. 3911 // 3912 // API parameter values that are decorated as "sensitive" in the API will not 3913 // be included in the string output. The member name will be present, but the 3914 // value will be replaced with "sensitive". 3915 func (s InvalidRequestException) String() string { 3916 return awsutil.Prettify(s) 3917 } 3918 3919 // GoString returns the string representation. 3920 // 3921 // API parameter values that are decorated as "sensitive" in the API will not 3922 // be included in the string output. The member name will be present, but the 3923 // value will be replaced with "sensitive". 3924 func (s InvalidRequestException) GoString() string { 3925 return s.String() 3926 } 3927 3928 func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { 3929 return &InvalidRequestException{ 3930 RespMetadata: v, 3931 } 3932 } 3933 3934 // Code returns the exception type name. 3935 func (s *InvalidRequestException) Code() string { 3936 return "InvalidRequestException" 3937 } 3938 3939 // Message returns the exception's message. 3940 func (s *InvalidRequestException) Message() string { 3941 if s.Message_ != nil { 3942 return *s.Message_ 3943 } 3944 return "" 3945 } 3946 3947 // OrigErr always returns nil, satisfies awserr.Error interface. 3948 func (s *InvalidRequestException) OrigErr() error { 3949 return nil 3950 } 3951 3952 func (s *InvalidRequestException) Error() string { 3953 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 3954 } 3955 3956 // Status code returns the HTTP status code for the request's response error. 3957 func (s *InvalidRequestException) StatusCode() int { 3958 return s.RespMetadata.StatusCode 3959 } 3960 3961 // RequestID returns the service's response RequestID for request. 3962 func (s *InvalidRequestException) RequestID() string { 3963 return s.RespMetadata.RequestID 3964 } 3965 3966 type ListEntitiesDetectionV2JobsInput struct { 3967 _ struct{} `type:"structure"` 3968 3969 // Filters the jobs that are returned. You can filter jobs based on their names, 3970 // status, or the date and time that they were submitted. You can only set one 3971 // filter at a time. 3972 Filter *ComprehendMedicalAsyncJobFilter `type:"structure"` 3973 3974 // The maximum number of results to return in each page. The default is 100. 3975 MaxResults *int64 `min:"1" type:"integer"` 3976 3977 // Identifies the next page of results to return. 3978 NextToken *string `min:"1" type:"string"` 3979 } 3980 3981 // String returns the string representation. 3982 // 3983 // API parameter values that are decorated as "sensitive" in the API will not 3984 // be included in the string output. The member name will be present, but the 3985 // value will be replaced with "sensitive". 3986 func (s ListEntitiesDetectionV2JobsInput) String() string { 3987 return awsutil.Prettify(s) 3988 } 3989 3990 // GoString returns the string representation. 3991 // 3992 // API parameter values that are decorated as "sensitive" in the API will not 3993 // be included in the string output. The member name will be present, but the 3994 // value will be replaced with "sensitive". 3995 func (s ListEntitiesDetectionV2JobsInput) GoString() string { 3996 return s.String() 3997 } 3998 3999 // Validate inspects the fields of the type to determine if they are valid. 4000 func (s *ListEntitiesDetectionV2JobsInput) Validate() error { 4001 invalidParams := request.ErrInvalidParams{Context: "ListEntitiesDetectionV2JobsInput"} 4002 if s.MaxResults != nil && *s.MaxResults < 1 { 4003 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 4004 } 4005 if s.NextToken != nil && len(*s.NextToken) < 1 { 4006 invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) 4007 } 4008 if s.Filter != nil { 4009 if err := s.Filter.Validate(); err != nil { 4010 invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) 4011 } 4012 } 4013 4014 if invalidParams.Len() > 0 { 4015 return invalidParams 4016 } 4017 return nil 4018 } 4019 4020 // SetFilter sets the Filter field's value. 4021 func (s *ListEntitiesDetectionV2JobsInput) SetFilter(v *ComprehendMedicalAsyncJobFilter) *ListEntitiesDetectionV2JobsInput { 4022 s.Filter = v 4023 return s 4024 } 4025 4026 // SetMaxResults sets the MaxResults field's value. 4027 func (s *ListEntitiesDetectionV2JobsInput) SetMaxResults(v int64) *ListEntitiesDetectionV2JobsInput { 4028 s.MaxResults = &v 4029 return s 4030 } 4031 4032 // SetNextToken sets the NextToken field's value. 4033 func (s *ListEntitiesDetectionV2JobsInput) SetNextToken(v string) *ListEntitiesDetectionV2JobsInput { 4034 s.NextToken = &v 4035 return s 4036 } 4037 4038 type ListEntitiesDetectionV2JobsOutput struct { 4039 _ struct{} `type:"structure"` 4040 4041 // A list containing the properties of each job returned. 4042 ComprehendMedicalAsyncJobPropertiesList []*ComprehendMedicalAsyncJobProperties `type:"list"` 4043 4044 // Identifies the next page of results to return. 4045 NextToken *string `min:"1" type:"string"` 4046 } 4047 4048 // String returns the string representation. 4049 // 4050 // API parameter values that are decorated as "sensitive" in the API will not 4051 // be included in the string output. The member name will be present, but the 4052 // value will be replaced with "sensitive". 4053 func (s ListEntitiesDetectionV2JobsOutput) String() string { 4054 return awsutil.Prettify(s) 4055 } 4056 4057 // GoString returns the string representation. 4058 // 4059 // API parameter values that are decorated as "sensitive" in the API will not 4060 // be included in the string output. The member name will be present, but the 4061 // value will be replaced with "sensitive". 4062 func (s ListEntitiesDetectionV2JobsOutput) GoString() string { 4063 return s.String() 4064 } 4065 4066 // SetComprehendMedicalAsyncJobPropertiesList sets the ComprehendMedicalAsyncJobPropertiesList field's value. 4067 func (s *ListEntitiesDetectionV2JobsOutput) SetComprehendMedicalAsyncJobPropertiesList(v []*ComprehendMedicalAsyncJobProperties) *ListEntitiesDetectionV2JobsOutput { 4068 s.ComprehendMedicalAsyncJobPropertiesList = v 4069 return s 4070 } 4071 4072 // SetNextToken sets the NextToken field's value. 4073 func (s *ListEntitiesDetectionV2JobsOutput) SetNextToken(v string) *ListEntitiesDetectionV2JobsOutput { 4074 s.NextToken = &v 4075 return s 4076 } 4077 4078 type ListICD10CMInferenceJobsInput struct { 4079 _ struct{} `type:"structure"` 4080 4081 // Filters the jobs that are returned. You can filter jobs based on their names, 4082 // status, or the date and time that they were submitted. You can only set one 4083 // filter at a time. 4084 Filter *ComprehendMedicalAsyncJobFilter `type:"structure"` 4085 4086 // The maximum number of results to return in each page. The default is 100. 4087 MaxResults *int64 `min:"1" type:"integer"` 4088 4089 // Identifies the next page of results to return. 4090 NextToken *string `min:"1" type:"string"` 4091 } 4092 4093 // String returns the string representation. 4094 // 4095 // API parameter values that are decorated as "sensitive" in the API will not 4096 // be included in the string output. The member name will be present, but the 4097 // value will be replaced with "sensitive". 4098 func (s ListICD10CMInferenceJobsInput) String() string { 4099 return awsutil.Prettify(s) 4100 } 4101 4102 // GoString returns the string representation. 4103 // 4104 // API parameter values that are decorated as "sensitive" in the API will not 4105 // be included in the string output. The member name will be present, but the 4106 // value will be replaced with "sensitive". 4107 func (s ListICD10CMInferenceJobsInput) GoString() string { 4108 return s.String() 4109 } 4110 4111 // Validate inspects the fields of the type to determine if they are valid. 4112 func (s *ListICD10CMInferenceJobsInput) Validate() error { 4113 invalidParams := request.ErrInvalidParams{Context: "ListICD10CMInferenceJobsInput"} 4114 if s.MaxResults != nil && *s.MaxResults < 1 { 4115 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 4116 } 4117 if s.NextToken != nil && len(*s.NextToken) < 1 { 4118 invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) 4119 } 4120 if s.Filter != nil { 4121 if err := s.Filter.Validate(); err != nil { 4122 invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) 4123 } 4124 } 4125 4126 if invalidParams.Len() > 0 { 4127 return invalidParams 4128 } 4129 return nil 4130 } 4131 4132 // SetFilter sets the Filter field's value. 4133 func (s *ListICD10CMInferenceJobsInput) SetFilter(v *ComprehendMedicalAsyncJobFilter) *ListICD10CMInferenceJobsInput { 4134 s.Filter = v 4135 return s 4136 } 4137 4138 // SetMaxResults sets the MaxResults field's value. 4139 func (s *ListICD10CMInferenceJobsInput) SetMaxResults(v int64) *ListICD10CMInferenceJobsInput { 4140 s.MaxResults = &v 4141 return s 4142 } 4143 4144 // SetNextToken sets the NextToken field's value. 4145 func (s *ListICD10CMInferenceJobsInput) SetNextToken(v string) *ListICD10CMInferenceJobsInput { 4146 s.NextToken = &v 4147 return s 4148 } 4149 4150 type ListICD10CMInferenceJobsOutput struct { 4151 _ struct{} `type:"structure"` 4152 4153 // A list containing the properties of each job that is returned. 4154 ComprehendMedicalAsyncJobPropertiesList []*ComprehendMedicalAsyncJobProperties `type:"list"` 4155 4156 // Identifies the next page of results to return. 4157 NextToken *string `min:"1" type:"string"` 4158 } 4159 4160 // String returns the string representation. 4161 // 4162 // API parameter values that are decorated as "sensitive" in the API will not 4163 // be included in the string output. The member name will be present, but the 4164 // value will be replaced with "sensitive". 4165 func (s ListICD10CMInferenceJobsOutput) String() string { 4166 return awsutil.Prettify(s) 4167 } 4168 4169 // GoString returns the string representation. 4170 // 4171 // API parameter values that are decorated as "sensitive" in the API will not 4172 // be included in the string output. The member name will be present, but the 4173 // value will be replaced with "sensitive". 4174 func (s ListICD10CMInferenceJobsOutput) GoString() string { 4175 return s.String() 4176 } 4177 4178 // SetComprehendMedicalAsyncJobPropertiesList sets the ComprehendMedicalAsyncJobPropertiesList field's value. 4179 func (s *ListICD10CMInferenceJobsOutput) SetComprehendMedicalAsyncJobPropertiesList(v []*ComprehendMedicalAsyncJobProperties) *ListICD10CMInferenceJobsOutput { 4180 s.ComprehendMedicalAsyncJobPropertiesList = v 4181 return s 4182 } 4183 4184 // SetNextToken sets the NextToken field's value. 4185 func (s *ListICD10CMInferenceJobsOutput) SetNextToken(v string) *ListICD10CMInferenceJobsOutput { 4186 s.NextToken = &v 4187 return s 4188 } 4189 4190 type ListPHIDetectionJobsInput struct { 4191 _ struct{} `type:"structure"` 4192 4193 // Filters the jobs that are returned. You can filter jobs based on their names, 4194 // status, or the date and time that they were submitted. You can only set one 4195 // filter at a time. 4196 Filter *ComprehendMedicalAsyncJobFilter `type:"structure"` 4197 4198 // The maximum number of results to return in each page. The default is 100. 4199 MaxResults *int64 `min:"1" type:"integer"` 4200 4201 // Identifies the next page of results to return. 4202 NextToken *string `min:"1" type:"string"` 4203 } 4204 4205 // String returns the string representation. 4206 // 4207 // API parameter values that are decorated as "sensitive" in the API will not 4208 // be included in the string output. The member name will be present, but the 4209 // value will be replaced with "sensitive". 4210 func (s ListPHIDetectionJobsInput) String() string { 4211 return awsutil.Prettify(s) 4212 } 4213 4214 // GoString returns the string representation. 4215 // 4216 // API parameter values that are decorated as "sensitive" in the API will not 4217 // be included in the string output. The member name will be present, but the 4218 // value will be replaced with "sensitive". 4219 func (s ListPHIDetectionJobsInput) GoString() string { 4220 return s.String() 4221 } 4222 4223 // Validate inspects the fields of the type to determine if they are valid. 4224 func (s *ListPHIDetectionJobsInput) Validate() error { 4225 invalidParams := request.ErrInvalidParams{Context: "ListPHIDetectionJobsInput"} 4226 if s.MaxResults != nil && *s.MaxResults < 1 { 4227 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 4228 } 4229 if s.NextToken != nil && len(*s.NextToken) < 1 { 4230 invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) 4231 } 4232 if s.Filter != nil { 4233 if err := s.Filter.Validate(); err != nil { 4234 invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) 4235 } 4236 } 4237 4238 if invalidParams.Len() > 0 { 4239 return invalidParams 4240 } 4241 return nil 4242 } 4243 4244 // SetFilter sets the Filter field's value. 4245 func (s *ListPHIDetectionJobsInput) SetFilter(v *ComprehendMedicalAsyncJobFilter) *ListPHIDetectionJobsInput { 4246 s.Filter = v 4247 return s 4248 } 4249 4250 // SetMaxResults sets the MaxResults field's value. 4251 func (s *ListPHIDetectionJobsInput) SetMaxResults(v int64) *ListPHIDetectionJobsInput { 4252 s.MaxResults = &v 4253 return s 4254 } 4255 4256 // SetNextToken sets the NextToken field's value. 4257 func (s *ListPHIDetectionJobsInput) SetNextToken(v string) *ListPHIDetectionJobsInput { 4258 s.NextToken = &v 4259 return s 4260 } 4261 4262 type ListPHIDetectionJobsOutput struct { 4263 _ struct{} `type:"structure"` 4264 4265 // A list containing the properties of each job returned. 4266 ComprehendMedicalAsyncJobPropertiesList []*ComprehendMedicalAsyncJobProperties `type:"list"` 4267 4268 // Identifies the next page of results to return. 4269 NextToken *string `min:"1" type:"string"` 4270 } 4271 4272 // String returns the string representation. 4273 // 4274 // API parameter values that are decorated as "sensitive" in the API will not 4275 // be included in the string output. The member name will be present, but the 4276 // value will be replaced with "sensitive". 4277 func (s ListPHIDetectionJobsOutput) String() string { 4278 return awsutil.Prettify(s) 4279 } 4280 4281 // GoString returns the string representation. 4282 // 4283 // API parameter values that are decorated as "sensitive" in the API will not 4284 // be included in the string output. The member name will be present, but the 4285 // value will be replaced with "sensitive". 4286 func (s ListPHIDetectionJobsOutput) GoString() string { 4287 return s.String() 4288 } 4289 4290 // SetComprehendMedicalAsyncJobPropertiesList sets the ComprehendMedicalAsyncJobPropertiesList field's value. 4291 func (s *ListPHIDetectionJobsOutput) SetComprehendMedicalAsyncJobPropertiesList(v []*ComprehendMedicalAsyncJobProperties) *ListPHIDetectionJobsOutput { 4292 s.ComprehendMedicalAsyncJobPropertiesList = v 4293 return s 4294 } 4295 4296 // SetNextToken sets the NextToken field's value. 4297 func (s *ListPHIDetectionJobsOutput) SetNextToken(v string) *ListPHIDetectionJobsOutput { 4298 s.NextToken = &v 4299 return s 4300 } 4301 4302 type ListRxNormInferenceJobsInput struct { 4303 _ struct{} `type:"structure"` 4304 4305 // Filters the jobs that are returned. You can filter jobs based on their names, 4306 // status, or the date and time that they were submitted. You can only set one 4307 // filter at a time. 4308 Filter *ComprehendMedicalAsyncJobFilter `type:"structure"` 4309 4310 // Identifies the next page of results to return. 4311 MaxResults *int64 `min:"1" type:"integer"` 4312 4313 // Identifies the next page of results to return. 4314 NextToken *string `min:"1" type:"string"` 4315 } 4316 4317 // String returns the string representation. 4318 // 4319 // API parameter values that are decorated as "sensitive" in the API will not 4320 // be included in the string output. The member name will be present, but the 4321 // value will be replaced with "sensitive". 4322 func (s ListRxNormInferenceJobsInput) String() string { 4323 return awsutil.Prettify(s) 4324 } 4325 4326 // GoString returns the string representation. 4327 // 4328 // API parameter values that are decorated as "sensitive" in the API will not 4329 // be included in the string output. The member name will be present, but the 4330 // value will be replaced with "sensitive". 4331 func (s ListRxNormInferenceJobsInput) GoString() string { 4332 return s.String() 4333 } 4334 4335 // Validate inspects the fields of the type to determine if they are valid. 4336 func (s *ListRxNormInferenceJobsInput) Validate() error { 4337 invalidParams := request.ErrInvalidParams{Context: "ListRxNormInferenceJobsInput"} 4338 if s.MaxResults != nil && *s.MaxResults < 1 { 4339 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 4340 } 4341 if s.NextToken != nil && len(*s.NextToken) < 1 { 4342 invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) 4343 } 4344 if s.Filter != nil { 4345 if err := s.Filter.Validate(); err != nil { 4346 invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) 4347 } 4348 } 4349 4350 if invalidParams.Len() > 0 { 4351 return invalidParams 4352 } 4353 return nil 4354 } 4355 4356 // SetFilter sets the Filter field's value. 4357 func (s *ListRxNormInferenceJobsInput) SetFilter(v *ComprehendMedicalAsyncJobFilter) *ListRxNormInferenceJobsInput { 4358 s.Filter = v 4359 return s 4360 } 4361 4362 // SetMaxResults sets the MaxResults field's value. 4363 func (s *ListRxNormInferenceJobsInput) SetMaxResults(v int64) *ListRxNormInferenceJobsInput { 4364 s.MaxResults = &v 4365 return s 4366 } 4367 4368 // SetNextToken sets the NextToken field's value. 4369 func (s *ListRxNormInferenceJobsInput) SetNextToken(v string) *ListRxNormInferenceJobsInput { 4370 s.NextToken = &v 4371 return s 4372 } 4373 4374 type ListRxNormInferenceJobsOutput struct { 4375 _ struct{} `type:"structure"` 4376 4377 // The maximum number of results to return in each page. The default is 100. 4378 ComprehendMedicalAsyncJobPropertiesList []*ComprehendMedicalAsyncJobProperties `type:"list"` 4379 4380 // Identifies the next page of results to return. 4381 NextToken *string `min:"1" type:"string"` 4382 } 4383 4384 // String returns the string representation. 4385 // 4386 // API parameter values that are decorated as "sensitive" in the API will not 4387 // be included in the string output. The member name will be present, but the 4388 // value will be replaced with "sensitive". 4389 func (s ListRxNormInferenceJobsOutput) String() string { 4390 return awsutil.Prettify(s) 4391 } 4392 4393 // GoString returns the string representation. 4394 // 4395 // API parameter values that are decorated as "sensitive" in the API will not 4396 // be included in the string output. The member name will be present, but the 4397 // value will be replaced with "sensitive". 4398 func (s ListRxNormInferenceJobsOutput) GoString() string { 4399 return s.String() 4400 } 4401 4402 // SetComprehendMedicalAsyncJobPropertiesList sets the ComprehendMedicalAsyncJobPropertiesList field's value. 4403 func (s *ListRxNormInferenceJobsOutput) SetComprehendMedicalAsyncJobPropertiesList(v []*ComprehendMedicalAsyncJobProperties) *ListRxNormInferenceJobsOutput { 4404 s.ComprehendMedicalAsyncJobPropertiesList = v 4405 return s 4406 } 4407 4408 // SetNextToken sets the NextToken field's value. 4409 func (s *ListRxNormInferenceJobsOutput) SetNextToken(v string) *ListRxNormInferenceJobsOutput { 4410 s.NextToken = &v 4411 return s 4412 } 4413 4414 // The output properties for a detection job. 4415 type OutputDataConfig struct { 4416 _ struct{} `type:"structure"` 4417 4418 // When you use the OutputDataConfig object with asynchronous operations, you 4419 // specify the Amazon S3 location where you want to write the output data. The 4420 // URI must be in the same region as the API endpoint that you are calling. 4421 // The location is used as the prefix for the actual location of the output. 4422 // 4423 // S3Bucket is a required field 4424 S3Bucket *string `min:"3" type:"string" required:"true"` 4425 4426 // The path to the output data files in the S3 bucket. Amazon Comprehend Medical 4427 // creates an output directory using the job ID so that the output from one 4428 // job does not overwrite the output of another. 4429 S3Key *string `type:"string"` 4430 } 4431 4432 // String returns the string representation. 4433 // 4434 // API parameter values that are decorated as "sensitive" in the API will not 4435 // be included in the string output. The member name will be present, but the 4436 // value will be replaced with "sensitive". 4437 func (s OutputDataConfig) String() string { 4438 return awsutil.Prettify(s) 4439 } 4440 4441 // GoString returns the string representation. 4442 // 4443 // API parameter values that are decorated as "sensitive" in the API will not 4444 // be included in the string output. The member name will be present, but the 4445 // value will be replaced with "sensitive". 4446 func (s OutputDataConfig) GoString() string { 4447 return s.String() 4448 } 4449 4450 // Validate inspects the fields of the type to determine if they are valid. 4451 func (s *OutputDataConfig) Validate() error { 4452 invalidParams := request.ErrInvalidParams{Context: "OutputDataConfig"} 4453 if s.S3Bucket == nil { 4454 invalidParams.Add(request.NewErrParamRequired("S3Bucket")) 4455 } 4456 if s.S3Bucket != nil && len(*s.S3Bucket) < 3 { 4457 invalidParams.Add(request.NewErrParamMinLen("S3Bucket", 3)) 4458 } 4459 4460 if invalidParams.Len() > 0 { 4461 return invalidParams 4462 } 4463 return nil 4464 } 4465 4466 // SetS3Bucket sets the S3Bucket field's value. 4467 func (s *OutputDataConfig) SetS3Bucket(v string) *OutputDataConfig { 4468 s.S3Bucket = &v 4469 return s 4470 } 4471 4472 // SetS3Key sets the S3Key field's value. 4473 func (s *OutputDataConfig) SetS3Key(v string) *OutputDataConfig { 4474 s.S3Key = &v 4475 return s 4476 } 4477 4478 // The resource identified by the specified Amazon Resource Name (ARN) was not 4479 // found. Check the ARN and try your request again. 4480 type ResourceNotFoundException struct { 4481 _ struct{} `type:"structure"` 4482 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 4483 4484 Message_ *string `locationName:"Message" min:"1" type:"string"` 4485 } 4486 4487 // String returns the string representation. 4488 // 4489 // API parameter values that are decorated as "sensitive" in the API will not 4490 // be included in the string output. The member name will be present, but the 4491 // value will be replaced with "sensitive". 4492 func (s ResourceNotFoundException) String() string { 4493 return awsutil.Prettify(s) 4494 } 4495 4496 // GoString returns the string representation. 4497 // 4498 // API parameter values that are decorated as "sensitive" in the API will not 4499 // be included in the string output. The member name will be present, but the 4500 // value will be replaced with "sensitive". 4501 func (s ResourceNotFoundException) GoString() string { 4502 return s.String() 4503 } 4504 4505 func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { 4506 return &ResourceNotFoundException{ 4507 RespMetadata: v, 4508 } 4509 } 4510 4511 // Code returns the exception type name. 4512 func (s *ResourceNotFoundException) Code() string { 4513 return "ResourceNotFoundException" 4514 } 4515 4516 // Message returns the exception's message. 4517 func (s *ResourceNotFoundException) Message() string { 4518 if s.Message_ != nil { 4519 return *s.Message_ 4520 } 4521 return "" 4522 } 4523 4524 // OrigErr always returns nil, satisfies awserr.Error interface. 4525 func (s *ResourceNotFoundException) OrigErr() error { 4526 return nil 4527 } 4528 4529 func (s *ResourceNotFoundException) Error() string { 4530 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 4531 } 4532 4533 // Status code returns the HTTP status code for the request's response error. 4534 func (s *ResourceNotFoundException) StatusCode() int { 4535 return s.RespMetadata.StatusCode 4536 } 4537 4538 // RequestID returns the service's response RequestID for request. 4539 func (s *ResourceNotFoundException) RequestID() string { 4540 return s.RespMetadata.RequestID 4541 } 4542 4543 // The extracted attributes that relate to this entity. The attributes recognized 4544 // by InferRxNorm are DOSAGE, DURATION, FORM, FREQUENCY, RATE, ROUTE_OR_MODE. 4545 type RxNormAttribute struct { 4546 _ struct{} `type:"structure"` 4547 4548 // The 0-based character offset in the input text that shows where the attribute 4549 // begins. The offset returns the UTF-8 code point in the string. 4550 BeginOffset *int64 `type:"integer"` 4551 4552 // The 0-based character offset in the input text that shows where the attribute 4553 // ends. The offset returns the UTF-8 code point in the string. 4554 EndOffset *int64 `type:"integer"` 4555 4556 // The numeric identifier for this attribute. This is a monotonically increasing 4557 // id unique within this response rather than a global unique identifier. 4558 Id *int64 `type:"integer"` 4559 4560 // The level of confidence that Amazon Comprehend Medical has that the attribute 4561 // is accurately linked to an entity. 4562 RelationshipScore *float64 `type:"float"` 4563 4564 // The level of confidence that Comprehend Medical has that the segment of text 4565 // is correctly recognized as an attribute. 4566 Score *float64 `type:"float"` 4567 4568 // The segment of input text which corresponds to the detected attribute. 4569 Text *string `min:"1" type:"string"` 4570 4571 // Contextual information for the attribute. InferRxNorm recognizes the trait 4572 // NEGATION for attributes, i.e. that the patient is not taking a specific dose 4573 // or form of a medication. 4574 Traits []*RxNormTrait `type:"list"` 4575 4576 // The type of attribute. The types of attributes recognized by InferRxNorm 4577 // are BRAND_NAME and GENERIC_NAME. 4578 Type *string `type:"string" enum:"RxNormAttributeType"` 4579 } 4580 4581 // String returns the string representation. 4582 // 4583 // API parameter values that are decorated as "sensitive" in the API will not 4584 // be included in the string output. The member name will be present, but the 4585 // value will be replaced with "sensitive". 4586 func (s RxNormAttribute) String() string { 4587 return awsutil.Prettify(s) 4588 } 4589 4590 // GoString returns the string representation. 4591 // 4592 // API parameter values that are decorated as "sensitive" in the API will not 4593 // be included in the string output. The member name will be present, but the 4594 // value will be replaced with "sensitive". 4595 func (s RxNormAttribute) GoString() string { 4596 return s.String() 4597 } 4598 4599 // SetBeginOffset sets the BeginOffset field's value. 4600 func (s *RxNormAttribute) SetBeginOffset(v int64) *RxNormAttribute { 4601 s.BeginOffset = &v 4602 return s 4603 } 4604 4605 // SetEndOffset sets the EndOffset field's value. 4606 func (s *RxNormAttribute) SetEndOffset(v int64) *RxNormAttribute { 4607 s.EndOffset = &v 4608 return s 4609 } 4610 4611 // SetId sets the Id field's value. 4612 func (s *RxNormAttribute) SetId(v int64) *RxNormAttribute { 4613 s.Id = &v 4614 return s 4615 } 4616 4617 // SetRelationshipScore sets the RelationshipScore field's value. 4618 func (s *RxNormAttribute) SetRelationshipScore(v float64) *RxNormAttribute { 4619 s.RelationshipScore = &v 4620 return s 4621 } 4622 4623 // SetScore sets the Score field's value. 4624 func (s *RxNormAttribute) SetScore(v float64) *RxNormAttribute { 4625 s.Score = &v 4626 return s 4627 } 4628 4629 // SetText sets the Text field's value. 4630 func (s *RxNormAttribute) SetText(v string) *RxNormAttribute { 4631 s.Text = &v 4632 return s 4633 } 4634 4635 // SetTraits sets the Traits field's value. 4636 func (s *RxNormAttribute) SetTraits(v []*RxNormTrait) *RxNormAttribute { 4637 s.Traits = v 4638 return s 4639 } 4640 4641 // SetType sets the Type field's value. 4642 func (s *RxNormAttribute) SetType(v string) *RxNormAttribute { 4643 s.Type = &v 4644 return s 4645 } 4646 4647 // The RxNorm concept that the entity could refer to, along with a score indicating 4648 // the likelihood of the match. 4649 type RxNormConcept struct { 4650 _ struct{} `type:"structure"` 4651 4652 // RxNorm concept ID, also known as the RxCUI. 4653 Code *string `min:"1" type:"string"` 4654 4655 // The description of the RxNorm concept. 4656 Description *string `min:"1" type:"string"` 4657 4658 // The level of confidence that Amazon Comprehend Medical has that the entity 4659 // is accurately linked to the reported RxNorm concept. 4660 Score *float64 `type:"float"` 4661 } 4662 4663 // String returns the string representation. 4664 // 4665 // API parameter values that are decorated as "sensitive" in the API will not 4666 // be included in the string output. The member name will be present, but the 4667 // value will be replaced with "sensitive". 4668 func (s RxNormConcept) String() string { 4669 return awsutil.Prettify(s) 4670 } 4671 4672 // GoString returns the string representation. 4673 // 4674 // API parameter values that are decorated as "sensitive" in the API will not 4675 // be included in the string output. The member name will be present, but the 4676 // value will be replaced with "sensitive". 4677 func (s RxNormConcept) GoString() string { 4678 return s.String() 4679 } 4680 4681 // SetCode sets the Code field's value. 4682 func (s *RxNormConcept) SetCode(v string) *RxNormConcept { 4683 s.Code = &v 4684 return s 4685 } 4686 4687 // SetDescription sets the Description field's value. 4688 func (s *RxNormConcept) SetDescription(v string) *RxNormConcept { 4689 s.Description = &v 4690 return s 4691 } 4692 4693 // SetScore sets the Score field's value. 4694 func (s *RxNormConcept) SetScore(v float64) *RxNormConcept { 4695 s.Score = &v 4696 return s 4697 } 4698 4699 // The collection of medical entities extracted from the input text and their 4700 // associated information. For each entity, the response provides the entity 4701 // text, the entity category, where the entity text begins and ends, and the 4702 // level of confidence that Amazon Comprehend Medical has in the detection and 4703 // analysis. Attributes and traits of the entity are also returned. 4704 type RxNormEntity struct { 4705 _ struct{} `type:"structure"` 4706 4707 // The extracted attributes that relate to the entity. The attributes recognized 4708 // by InferRxNorm are DOSAGE, DURATION, FORM, FREQUENCY, RATE, ROUTE_OR_MODE, 4709 // and STRENGTH. 4710 Attributes []*RxNormAttribute `type:"list"` 4711 4712 // The 0-based character offset in the input text that shows where the entity 4713 // begins. The offset returns the UTF-8 code point in the string. 4714 BeginOffset *int64 `type:"integer"` 4715 4716 // The category of the entity. The recognized categories are GENERIC or BRAND_NAME. 4717 Category *string `type:"string" enum:"RxNormEntityCategory"` 4718 4719 // The 0-based character offset in the input text that shows where the entity 4720 // ends. The offset returns the UTF-8 code point in the string. 4721 EndOffset *int64 `type:"integer"` 4722 4723 // The numeric identifier for the entity. This is a monotonically increasing 4724 // id unique within this response rather than a global unique identifier. 4725 Id *int64 `type:"integer"` 4726 4727 // The RxNorm concepts that the entity could refer to, along with a score indicating 4728 // the likelihood of the match. 4729 RxNormConcepts []*RxNormConcept `type:"list"` 4730 4731 // The level of confidence that Amazon Comprehend Medical has in the accuracy 4732 // of the detected entity. 4733 Score *float64 `type:"float"` 4734 4735 // The segment of input text extracted from which the entity was detected. 4736 Text *string `min:"1" type:"string"` 4737 4738 // Contextual information for the entity. 4739 Traits []*RxNormTrait `type:"list"` 4740 4741 // Describes the specific type of entity. For InferRxNorm, the recognized entity 4742 // type is MEDICATION. 4743 Type *string `type:"string" enum:"RxNormEntityType"` 4744 } 4745 4746 // String returns the string representation. 4747 // 4748 // API parameter values that are decorated as "sensitive" in the API will not 4749 // be included in the string output. The member name will be present, but the 4750 // value will be replaced with "sensitive". 4751 func (s RxNormEntity) String() string { 4752 return awsutil.Prettify(s) 4753 } 4754 4755 // GoString returns the string representation. 4756 // 4757 // API parameter values that are decorated as "sensitive" in the API will not 4758 // be included in the string output. The member name will be present, but the 4759 // value will be replaced with "sensitive". 4760 func (s RxNormEntity) GoString() string { 4761 return s.String() 4762 } 4763 4764 // SetAttributes sets the Attributes field's value. 4765 func (s *RxNormEntity) SetAttributes(v []*RxNormAttribute) *RxNormEntity { 4766 s.Attributes = v 4767 return s 4768 } 4769 4770 // SetBeginOffset sets the BeginOffset field's value. 4771 func (s *RxNormEntity) SetBeginOffset(v int64) *RxNormEntity { 4772 s.BeginOffset = &v 4773 return s 4774 } 4775 4776 // SetCategory sets the Category field's value. 4777 func (s *RxNormEntity) SetCategory(v string) *RxNormEntity { 4778 s.Category = &v 4779 return s 4780 } 4781 4782 // SetEndOffset sets the EndOffset field's value. 4783 func (s *RxNormEntity) SetEndOffset(v int64) *RxNormEntity { 4784 s.EndOffset = &v 4785 return s 4786 } 4787 4788 // SetId sets the Id field's value. 4789 func (s *RxNormEntity) SetId(v int64) *RxNormEntity { 4790 s.Id = &v 4791 return s 4792 } 4793 4794 // SetRxNormConcepts sets the RxNormConcepts field's value. 4795 func (s *RxNormEntity) SetRxNormConcepts(v []*RxNormConcept) *RxNormEntity { 4796 s.RxNormConcepts = v 4797 return s 4798 } 4799 4800 // SetScore sets the Score field's value. 4801 func (s *RxNormEntity) SetScore(v float64) *RxNormEntity { 4802 s.Score = &v 4803 return s 4804 } 4805 4806 // SetText sets the Text field's value. 4807 func (s *RxNormEntity) SetText(v string) *RxNormEntity { 4808 s.Text = &v 4809 return s 4810 } 4811 4812 // SetTraits sets the Traits field's value. 4813 func (s *RxNormEntity) SetTraits(v []*RxNormTrait) *RxNormEntity { 4814 s.Traits = v 4815 return s 4816 } 4817 4818 // SetType sets the Type field's value. 4819 func (s *RxNormEntity) SetType(v string) *RxNormEntity { 4820 s.Type = &v 4821 return s 4822 } 4823 4824 // The contextual information for the entity. InferRxNorm recognizes the trait 4825 // NEGATION, which is any indication that the patient is not taking a medication. 4826 type RxNormTrait struct { 4827 _ struct{} `type:"structure"` 4828 4829 // Provides a name or contextual description about the trait. 4830 Name *string `type:"string" enum:"RxNormTraitName"` 4831 4832 // The level of confidence that Amazon Comprehend Medical has in the accuracy 4833 // of the detected trait. 4834 Score *float64 `type:"float"` 4835 } 4836 4837 // String returns the string representation. 4838 // 4839 // API parameter values that are decorated as "sensitive" in the API will not 4840 // be included in the string output. The member name will be present, but the 4841 // value will be replaced with "sensitive". 4842 func (s RxNormTrait) String() string { 4843 return awsutil.Prettify(s) 4844 } 4845 4846 // GoString returns the string representation. 4847 // 4848 // API parameter values that are decorated as "sensitive" in the API will not 4849 // be included in the string output. The member name will be present, but the 4850 // value will be replaced with "sensitive". 4851 func (s RxNormTrait) GoString() string { 4852 return s.String() 4853 } 4854 4855 // SetName sets the Name field's value. 4856 func (s *RxNormTrait) SetName(v string) *RxNormTrait { 4857 s.Name = &v 4858 return s 4859 } 4860 4861 // SetScore sets the Score field's value. 4862 func (s *RxNormTrait) SetScore(v float64) *RxNormTrait { 4863 s.Score = &v 4864 return s 4865 } 4866 4867 // The Amazon Comprehend Medical service is temporarily unavailable. Please 4868 // wait and then retry your request. 4869 type ServiceUnavailableException struct { 4870 _ struct{} `type:"structure"` 4871 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 4872 4873 Message_ *string `locationName:"Message" min:"1" type:"string"` 4874 } 4875 4876 // String returns the string representation. 4877 // 4878 // API parameter values that are decorated as "sensitive" in the API will not 4879 // be included in the string output. The member name will be present, but the 4880 // value will be replaced with "sensitive". 4881 func (s ServiceUnavailableException) String() string { 4882 return awsutil.Prettify(s) 4883 } 4884 4885 // GoString returns the string representation. 4886 // 4887 // API parameter values that are decorated as "sensitive" in the API will not 4888 // be included in the string output. The member name will be present, but the 4889 // value will be replaced with "sensitive". 4890 func (s ServiceUnavailableException) GoString() string { 4891 return s.String() 4892 } 4893 4894 func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { 4895 return &ServiceUnavailableException{ 4896 RespMetadata: v, 4897 } 4898 } 4899 4900 // Code returns the exception type name. 4901 func (s *ServiceUnavailableException) Code() string { 4902 return "ServiceUnavailableException" 4903 } 4904 4905 // Message returns the exception's message. 4906 func (s *ServiceUnavailableException) Message() string { 4907 if s.Message_ != nil { 4908 return *s.Message_ 4909 } 4910 return "" 4911 } 4912 4913 // OrigErr always returns nil, satisfies awserr.Error interface. 4914 func (s *ServiceUnavailableException) OrigErr() error { 4915 return nil 4916 } 4917 4918 func (s *ServiceUnavailableException) Error() string { 4919 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 4920 } 4921 4922 // Status code returns the HTTP status code for the request's response error. 4923 func (s *ServiceUnavailableException) StatusCode() int { 4924 return s.RespMetadata.StatusCode 4925 } 4926 4927 // RequestID returns the service's response RequestID for request. 4928 func (s *ServiceUnavailableException) RequestID() string { 4929 return s.RespMetadata.RequestID 4930 } 4931 4932 type StartEntitiesDetectionV2JobInput struct { 4933 _ struct{} `type:"structure"` 4934 4935 // A unique identifier for the request. If you don't set the client request 4936 // token, Amazon Comprehend Medical generates one. 4937 ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` 4938 4939 // The Amazon Resource Name (ARN) of the AWS Identity and Access Management 4940 // (IAM) role that grants Amazon Comprehend Medical read access to your input 4941 // data. For more information, see Role-Based Permissions Required for Asynchronous 4942 // Operations (https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med). 4943 // 4944 // DataAccessRoleArn is a required field 4945 DataAccessRoleArn *string `min:"20" type:"string" required:"true"` 4946 4947 // Specifies the format and location of the input data for the job. 4948 // 4949 // InputDataConfig is a required field 4950 InputDataConfig *InputDataConfig `type:"structure" required:"true"` 4951 4952 // The identifier of the job. 4953 JobName *string `min:"1" type:"string"` 4954 4955 // An AWS Key Management Service key to encrypt your output files. If you do 4956 // not specify a key, the files are written in plain text. 4957 KMSKey *string `min:"1" type:"string"` 4958 4959 // The language of the input documents. All documents must be in the same language. 4960 // 4961 // LanguageCode is a required field 4962 LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` 4963 4964 // Specifies where to send the output files. 4965 // 4966 // OutputDataConfig is a required field 4967 OutputDataConfig *OutputDataConfig `type:"structure" required:"true"` 4968 } 4969 4970 // String returns the string representation. 4971 // 4972 // API parameter values that are decorated as "sensitive" in the API will not 4973 // be included in the string output. The member name will be present, but the 4974 // value will be replaced with "sensitive". 4975 func (s StartEntitiesDetectionV2JobInput) String() string { 4976 return awsutil.Prettify(s) 4977 } 4978 4979 // GoString returns the string representation. 4980 // 4981 // API parameter values that are decorated as "sensitive" in the API will not 4982 // be included in the string output. The member name will be present, but the 4983 // value will be replaced with "sensitive". 4984 func (s StartEntitiesDetectionV2JobInput) GoString() string { 4985 return s.String() 4986 } 4987 4988 // Validate inspects the fields of the type to determine if they are valid. 4989 func (s *StartEntitiesDetectionV2JobInput) Validate() error { 4990 invalidParams := request.ErrInvalidParams{Context: "StartEntitiesDetectionV2JobInput"} 4991 if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { 4992 invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) 4993 } 4994 if s.DataAccessRoleArn == nil { 4995 invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) 4996 } 4997 if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { 4998 invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) 4999 } 5000 if s.InputDataConfig == nil { 5001 invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) 5002 } 5003 if s.JobName != nil && len(*s.JobName) < 1 { 5004 invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) 5005 } 5006 if s.KMSKey != nil && len(*s.KMSKey) < 1 { 5007 invalidParams.Add(request.NewErrParamMinLen("KMSKey", 1)) 5008 } 5009 if s.LanguageCode == nil { 5010 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 5011 } 5012 if s.OutputDataConfig == nil { 5013 invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) 5014 } 5015 if s.InputDataConfig != nil { 5016 if err := s.InputDataConfig.Validate(); err != nil { 5017 invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams)) 5018 } 5019 } 5020 if s.OutputDataConfig != nil { 5021 if err := s.OutputDataConfig.Validate(); err != nil { 5022 invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) 5023 } 5024 } 5025 5026 if invalidParams.Len() > 0 { 5027 return invalidParams 5028 } 5029 return nil 5030 } 5031 5032 // SetClientRequestToken sets the ClientRequestToken field's value. 5033 func (s *StartEntitiesDetectionV2JobInput) SetClientRequestToken(v string) *StartEntitiesDetectionV2JobInput { 5034 s.ClientRequestToken = &v 5035 return s 5036 } 5037 5038 // SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 5039 func (s *StartEntitiesDetectionV2JobInput) SetDataAccessRoleArn(v string) *StartEntitiesDetectionV2JobInput { 5040 s.DataAccessRoleArn = &v 5041 return s 5042 } 5043 5044 // SetInputDataConfig sets the InputDataConfig field's value. 5045 func (s *StartEntitiesDetectionV2JobInput) SetInputDataConfig(v *InputDataConfig) *StartEntitiesDetectionV2JobInput { 5046 s.InputDataConfig = v 5047 return s 5048 } 5049 5050 // SetJobName sets the JobName field's value. 5051 func (s *StartEntitiesDetectionV2JobInput) SetJobName(v string) *StartEntitiesDetectionV2JobInput { 5052 s.JobName = &v 5053 return s 5054 } 5055 5056 // SetKMSKey sets the KMSKey field's value. 5057 func (s *StartEntitiesDetectionV2JobInput) SetKMSKey(v string) *StartEntitiesDetectionV2JobInput { 5058 s.KMSKey = &v 5059 return s 5060 } 5061 5062 // SetLanguageCode sets the LanguageCode field's value. 5063 func (s *StartEntitiesDetectionV2JobInput) SetLanguageCode(v string) *StartEntitiesDetectionV2JobInput { 5064 s.LanguageCode = &v 5065 return s 5066 } 5067 5068 // SetOutputDataConfig sets the OutputDataConfig field's value. 5069 func (s *StartEntitiesDetectionV2JobInput) SetOutputDataConfig(v *OutputDataConfig) *StartEntitiesDetectionV2JobInput { 5070 s.OutputDataConfig = v 5071 return s 5072 } 5073 5074 type StartEntitiesDetectionV2JobOutput struct { 5075 _ struct{} `type:"structure"` 5076 5077 // The identifier generated for the job. To get the status of a job, use this 5078 // identifier with the DescribeEntitiesDetectionV2Job operation. 5079 JobId *string `min:"1" type:"string"` 5080 } 5081 5082 // String returns the string representation. 5083 // 5084 // API parameter values that are decorated as "sensitive" in the API will not 5085 // be included in the string output. The member name will be present, but the 5086 // value will be replaced with "sensitive". 5087 func (s StartEntitiesDetectionV2JobOutput) String() string { 5088 return awsutil.Prettify(s) 5089 } 5090 5091 // GoString returns the string representation. 5092 // 5093 // API parameter values that are decorated as "sensitive" in the API will not 5094 // be included in the string output. The member name will be present, but the 5095 // value will be replaced with "sensitive". 5096 func (s StartEntitiesDetectionV2JobOutput) GoString() string { 5097 return s.String() 5098 } 5099 5100 // SetJobId sets the JobId field's value. 5101 func (s *StartEntitiesDetectionV2JobOutput) SetJobId(v string) *StartEntitiesDetectionV2JobOutput { 5102 s.JobId = &v 5103 return s 5104 } 5105 5106 type StartICD10CMInferenceJobInput struct { 5107 _ struct{} `type:"structure"` 5108 5109 // A unique identifier for the request. If you don't set the client request 5110 // token, Amazon Comprehend Medical generates one. 5111 ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` 5112 5113 // The Amazon Resource Name (ARN) of the AWS Identity and Access Management 5114 // (IAM) role that grants Amazon Comprehend Medical read access to your input 5115 // data. For more information, see Role-Based Permissions Required for Asynchronous 5116 // Operations (https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med). 5117 // 5118 // DataAccessRoleArn is a required field 5119 DataAccessRoleArn *string `min:"20" type:"string" required:"true"` 5120 5121 // Specifies the format and location of the input data for the job. 5122 // 5123 // InputDataConfig is a required field 5124 InputDataConfig *InputDataConfig `type:"structure" required:"true"` 5125 5126 // The identifier of the job. 5127 JobName *string `min:"1" type:"string"` 5128 5129 // An AWS Key Management Service key to encrypt your output files. If you do 5130 // not specify a key, the files are written in plain text. 5131 KMSKey *string `min:"1" type:"string"` 5132 5133 // The language of the input documents. All documents must be in the same language. 5134 // 5135 // LanguageCode is a required field 5136 LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` 5137 5138 // Specifies where to send the output files. 5139 // 5140 // OutputDataConfig is a required field 5141 OutputDataConfig *OutputDataConfig `type:"structure" required:"true"` 5142 } 5143 5144 // String returns the string representation. 5145 // 5146 // API parameter values that are decorated as "sensitive" in the API will not 5147 // be included in the string output. The member name will be present, but the 5148 // value will be replaced with "sensitive". 5149 func (s StartICD10CMInferenceJobInput) String() string { 5150 return awsutil.Prettify(s) 5151 } 5152 5153 // GoString returns the string representation. 5154 // 5155 // API parameter values that are decorated as "sensitive" in the API will not 5156 // be included in the string output. The member name will be present, but the 5157 // value will be replaced with "sensitive". 5158 func (s StartICD10CMInferenceJobInput) GoString() string { 5159 return s.String() 5160 } 5161 5162 // Validate inspects the fields of the type to determine if they are valid. 5163 func (s *StartICD10CMInferenceJobInput) Validate() error { 5164 invalidParams := request.ErrInvalidParams{Context: "StartICD10CMInferenceJobInput"} 5165 if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { 5166 invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) 5167 } 5168 if s.DataAccessRoleArn == nil { 5169 invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) 5170 } 5171 if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { 5172 invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) 5173 } 5174 if s.InputDataConfig == nil { 5175 invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) 5176 } 5177 if s.JobName != nil && len(*s.JobName) < 1 { 5178 invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) 5179 } 5180 if s.KMSKey != nil && len(*s.KMSKey) < 1 { 5181 invalidParams.Add(request.NewErrParamMinLen("KMSKey", 1)) 5182 } 5183 if s.LanguageCode == nil { 5184 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 5185 } 5186 if s.OutputDataConfig == nil { 5187 invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) 5188 } 5189 if s.InputDataConfig != nil { 5190 if err := s.InputDataConfig.Validate(); err != nil { 5191 invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams)) 5192 } 5193 } 5194 if s.OutputDataConfig != nil { 5195 if err := s.OutputDataConfig.Validate(); err != nil { 5196 invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) 5197 } 5198 } 5199 5200 if invalidParams.Len() > 0 { 5201 return invalidParams 5202 } 5203 return nil 5204 } 5205 5206 // SetClientRequestToken sets the ClientRequestToken field's value. 5207 func (s *StartICD10CMInferenceJobInput) SetClientRequestToken(v string) *StartICD10CMInferenceJobInput { 5208 s.ClientRequestToken = &v 5209 return s 5210 } 5211 5212 // SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 5213 func (s *StartICD10CMInferenceJobInput) SetDataAccessRoleArn(v string) *StartICD10CMInferenceJobInput { 5214 s.DataAccessRoleArn = &v 5215 return s 5216 } 5217 5218 // SetInputDataConfig sets the InputDataConfig field's value. 5219 func (s *StartICD10CMInferenceJobInput) SetInputDataConfig(v *InputDataConfig) *StartICD10CMInferenceJobInput { 5220 s.InputDataConfig = v 5221 return s 5222 } 5223 5224 // SetJobName sets the JobName field's value. 5225 func (s *StartICD10CMInferenceJobInput) SetJobName(v string) *StartICD10CMInferenceJobInput { 5226 s.JobName = &v 5227 return s 5228 } 5229 5230 // SetKMSKey sets the KMSKey field's value. 5231 func (s *StartICD10CMInferenceJobInput) SetKMSKey(v string) *StartICD10CMInferenceJobInput { 5232 s.KMSKey = &v 5233 return s 5234 } 5235 5236 // SetLanguageCode sets the LanguageCode field's value. 5237 func (s *StartICD10CMInferenceJobInput) SetLanguageCode(v string) *StartICD10CMInferenceJobInput { 5238 s.LanguageCode = &v 5239 return s 5240 } 5241 5242 // SetOutputDataConfig sets the OutputDataConfig field's value. 5243 func (s *StartICD10CMInferenceJobInput) SetOutputDataConfig(v *OutputDataConfig) *StartICD10CMInferenceJobInput { 5244 s.OutputDataConfig = v 5245 return s 5246 } 5247 5248 type StartICD10CMInferenceJobOutput struct { 5249 _ struct{} `type:"structure"` 5250 5251 // The identifier generated for the job. To get the status of a job, use this 5252 // identifier with the StartICD10CMInferenceJob operation. 5253 JobId *string `min:"1" type:"string"` 5254 } 5255 5256 // String returns the string representation. 5257 // 5258 // API parameter values that are decorated as "sensitive" in the API will not 5259 // be included in the string output. The member name will be present, but the 5260 // value will be replaced with "sensitive". 5261 func (s StartICD10CMInferenceJobOutput) String() string { 5262 return awsutil.Prettify(s) 5263 } 5264 5265 // GoString returns the string representation. 5266 // 5267 // API parameter values that are decorated as "sensitive" in the API will not 5268 // be included in the string output. The member name will be present, but the 5269 // value will be replaced with "sensitive". 5270 func (s StartICD10CMInferenceJobOutput) GoString() string { 5271 return s.String() 5272 } 5273 5274 // SetJobId sets the JobId field's value. 5275 func (s *StartICD10CMInferenceJobOutput) SetJobId(v string) *StartICD10CMInferenceJobOutput { 5276 s.JobId = &v 5277 return s 5278 } 5279 5280 type StartPHIDetectionJobInput struct { 5281 _ struct{} `type:"structure"` 5282 5283 // A unique identifier for the request. If you don't set the client request 5284 // token, Amazon Comprehend Medical generates one. 5285 ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` 5286 5287 // The Amazon Resource Name (ARN) of the AWS Identity and Access Management 5288 // (IAM) role that grants Amazon Comprehend Medical read access to your input 5289 // data. For more information, see Role-Based Permissions Required for Asynchronous 5290 // Operations (https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med). 5291 // 5292 // DataAccessRoleArn is a required field 5293 DataAccessRoleArn *string `min:"20" type:"string" required:"true"` 5294 5295 // Specifies the format and location of the input data for the job. 5296 // 5297 // InputDataConfig is a required field 5298 InputDataConfig *InputDataConfig `type:"structure" required:"true"` 5299 5300 // The identifier of the job. 5301 JobName *string `min:"1" type:"string"` 5302 5303 // An AWS Key Management Service key to encrypt your output files. If you do 5304 // not specify a key, the files are written in plain text. 5305 KMSKey *string `min:"1" type:"string"` 5306 5307 // The language of the input documents. All documents must be in the same language. 5308 // 5309 // LanguageCode is a required field 5310 LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` 5311 5312 // Specifies where to send the output files. 5313 // 5314 // OutputDataConfig is a required field 5315 OutputDataConfig *OutputDataConfig `type:"structure" required:"true"` 5316 } 5317 5318 // String returns the string representation. 5319 // 5320 // API parameter values that are decorated as "sensitive" in the API will not 5321 // be included in the string output. The member name will be present, but the 5322 // value will be replaced with "sensitive". 5323 func (s StartPHIDetectionJobInput) String() string { 5324 return awsutil.Prettify(s) 5325 } 5326 5327 // GoString returns the string representation. 5328 // 5329 // API parameter values that are decorated as "sensitive" in the API will not 5330 // be included in the string output. The member name will be present, but the 5331 // value will be replaced with "sensitive". 5332 func (s StartPHIDetectionJobInput) GoString() string { 5333 return s.String() 5334 } 5335 5336 // Validate inspects the fields of the type to determine if they are valid. 5337 func (s *StartPHIDetectionJobInput) Validate() error { 5338 invalidParams := request.ErrInvalidParams{Context: "StartPHIDetectionJobInput"} 5339 if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { 5340 invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) 5341 } 5342 if s.DataAccessRoleArn == nil { 5343 invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) 5344 } 5345 if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { 5346 invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) 5347 } 5348 if s.InputDataConfig == nil { 5349 invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) 5350 } 5351 if s.JobName != nil && len(*s.JobName) < 1 { 5352 invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) 5353 } 5354 if s.KMSKey != nil && len(*s.KMSKey) < 1 { 5355 invalidParams.Add(request.NewErrParamMinLen("KMSKey", 1)) 5356 } 5357 if s.LanguageCode == nil { 5358 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 5359 } 5360 if s.OutputDataConfig == nil { 5361 invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) 5362 } 5363 if s.InputDataConfig != nil { 5364 if err := s.InputDataConfig.Validate(); err != nil { 5365 invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams)) 5366 } 5367 } 5368 if s.OutputDataConfig != nil { 5369 if err := s.OutputDataConfig.Validate(); err != nil { 5370 invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) 5371 } 5372 } 5373 5374 if invalidParams.Len() > 0 { 5375 return invalidParams 5376 } 5377 return nil 5378 } 5379 5380 // SetClientRequestToken sets the ClientRequestToken field's value. 5381 func (s *StartPHIDetectionJobInput) SetClientRequestToken(v string) *StartPHIDetectionJobInput { 5382 s.ClientRequestToken = &v 5383 return s 5384 } 5385 5386 // SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 5387 func (s *StartPHIDetectionJobInput) SetDataAccessRoleArn(v string) *StartPHIDetectionJobInput { 5388 s.DataAccessRoleArn = &v 5389 return s 5390 } 5391 5392 // SetInputDataConfig sets the InputDataConfig field's value. 5393 func (s *StartPHIDetectionJobInput) SetInputDataConfig(v *InputDataConfig) *StartPHIDetectionJobInput { 5394 s.InputDataConfig = v 5395 return s 5396 } 5397 5398 // SetJobName sets the JobName field's value. 5399 func (s *StartPHIDetectionJobInput) SetJobName(v string) *StartPHIDetectionJobInput { 5400 s.JobName = &v 5401 return s 5402 } 5403 5404 // SetKMSKey sets the KMSKey field's value. 5405 func (s *StartPHIDetectionJobInput) SetKMSKey(v string) *StartPHIDetectionJobInput { 5406 s.KMSKey = &v 5407 return s 5408 } 5409 5410 // SetLanguageCode sets the LanguageCode field's value. 5411 func (s *StartPHIDetectionJobInput) SetLanguageCode(v string) *StartPHIDetectionJobInput { 5412 s.LanguageCode = &v 5413 return s 5414 } 5415 5416 // SetOutputDataConfig sets the OutputDataConfig field's value. 5417 func (s *StartPHIDetectionJobInput) SetOutputDataConfig(v *OutputDataConfig) *StartPHIDetectionJobInput { 5418 s.OutputDataConfig = v 5419 return s 5420 } 5421 5422 type StartPHIDetectionJobOutput struct { 5423 _ struct{} `type:"structure"` 5424 5425 // The identifier generated for the job. To get the status of a job, use this 5426 // identifier with the DescribePHIDetectionJob operation. 5427 JobId *string `min:"1" type:"string"` 5428 } 5429 5430 // String returns the string representation. 5431 // 5432 // API parameter values that are decorated as "sensitive" in the API will not 5433 // be included in the string output. The member name will be present, but the 5434 // value will be replaced with "sensitive". 5435 func (s StartPHIDetectionJobOutput) String() string { 5436 return awsutil.Prettify(s) 5437 } 5438 5439 // GoString returns the string representation. 5440 // 5441 // API parameter values that are decorated as "sensitive" in the API will not 5442 // be included in the string output. The member name will be present, but the 5443 // value will be replaced with "sensitive". 5444 func (s StartPHIDetectionJobOutput) GoString() string { 5445 return s.String() 5446 } 5447 5448 // SetJobId sets the JobId field's value. 5449 func (s *StartPHIDetectionJobOutput) SetJobId(v string) *StartPHIDetectionJobOutput { 5450 s.JobId = &v 5451 return s 5452 } 5453 5454 type StartRxNormInferenceJobInput struct { 5455 _ struct{} `type:"structure"` 5456 5457 // A unique identifier for the request. If you don't set the client request 5458 // token, Amazon Comprehend Medical generates one. 5459 ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` 5460 5461 // The Amazon Resource Name (ARN) of the AWS Identity and Access Management 5462 // (IAM) role that grants Amazon Comprehend Medical read access to your input 5463 // data. For more information, see Role-Based Permissions Required for Asynchronous 5464 // Operations (https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med). 5465 // 5466 // DataAccessRoleArn is a required field 5467 DataAccessRoleArn *string `min:"20" type:"string" required:"true"` 5468 5469 // Specifies the format and location of the input data for the job. 5470 // 5471 // InputDataConfig is a required field 5472 InputDataConfig *InputDataConfig `type:"structure" required:"true"` 5473 5474 // The identifier of the job. 5475 JobName *string `min:"1" type:"string"` 5476 5477 // An AWS Key Management Service key to encrypt your output files. If you do 5478 // not specify a key, the files are written in plain text. 5479 KMSKey *string `min:"1" type:"string"` 5480 5481 // The language of the input documents. All documents must be in the same language. 5482 // 5483 // LanguageCode is a required field 5484 LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` 5485 5486 // Specifies where to send the output files. 5487 // 5488 // OutputDataConfig is a required field 5489 OutputDataConfig *OutputDataConfig `type:"structure" required:"true"` 5490 } 5491 5492 // String returns the string representation. 5493 // 5494 // API parameter values that are decorated as "sensitive" in the API will not 5495 // be included in the string output. The member name will be present, but the 5496 // value will be replaced with "sensitive". 5497 func (s StartRxNormInferenceJobInput) String() string { 5498 return awsutil.Prettify(s) 5499 } 5500 5501 // GoString returns the string representation. 5502 // 5503 // API parameter values that are decorated as "sensitive" in the API will not 5504 // be included in the string output. The member name will be present, but the 5505 // value will be replaced with "sensitive". 5506 func (s StartRxNormInferenceJobInput) GoString() string { 5507 return s.String() 5508 } 5509 5510 // Validate inspects the fields of the type to determine if they are valid. 5511 func (s *StartRxNormInferenceJobInput) Validate() error { 5512 invalidParams := request.ErrInvalidParams{Context: "StartRxNormInferenceJobInput"} 5513 if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { 5514 invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) 5515 } 5516 if s.DataAccessRoleArn == nil { 5517 invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) 5518 } 5519 if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { 5520 invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) 5521 } 5522 if s.InputDataConfig == nil { 5523 invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) 5524 } 5525 if s.JobName != nil && len(*s.JobName) < 1 { 5526 invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) 5527 } 5528 if s.KMSKey != nil && len(*s.KMSKey) < 1 { 5529 invalidParams.Add(request.NewErrParamMinLen("KMSKey", 1)) 5530 } 5531 if s.LanguageCode == nil { 5532 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 5533 } 5534 if s.OutputDataConfig == nil { 5535 invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) 5536 } 5537 if s.InputDataConfig != nil { 5538 if err := s.InputDataConfig.Validate(); err != nil { 5539 invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams)) 5540 } 5541 } 5542 if s.OutputDataConfig != nil { 5543 if err := s.OutputDataConfig.Validate(); err != nil { 5544 invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) 5545 } 5546 } 5547 5548 if invalidParams.Len() > 0 { 5549 return invalidParams 5550 } 5551 return nil 5552 } 5553 5554 // SetClientRequestToken sets the ClientRequestToken field's value. 5555 func (s *StartRxNormInferenceJobInput) SetClientRequestToken(v string) *StartRxNormInferenceJobInput { 5556 s.ClientRequestToken = &v 5557 return s 5558 } 5559 5560 // SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 5561 func (s *StartRxNormInferenceJobInput) SetDataAccessRoleArn(v string) *StartRxNormInferenceJobInput { 5562 s.DataAccessRoleArn = &v 5563 return s 5564 } 5565 5566 // SetInputDataConfig sets the InputDataConfig field's value. 5567 func (s *StartRxNormInferenceJobInput) SetInputDataConfig(v *InputDataConfig) *StartRxNormInferenceJobInput { 5568 s.InputDataConfig = v 5569 return s 5570 } 5571 5572 // SetJobName sets the JobName field's value. 5573 func (s *StartRxNormInferenceJobInput) SetJobName(v string) *StartRxNormInferenceJobInput { 5574 s.JobName = &v 5575 return s 5576 } 5577 5578 // SetKMSKey sets the KMSKey field's value. 5579 func (s *StartRxNormInferenceJobInput) SetKMSKey(v string) *StartRxNormInferenceJobInput { 5580 s.KMSKey = &v 5581 return s 5582 } 5583 5584 // SetLanguageCode sets the LanguageCode field's value. 5585 func (s *StartRxNormInferenceJobInput) SetLanguageCode(v string) *StartRxNormInferenceJobInput { 5586 s.LanguageCode = &v 5587 return s 5588 } 5589 5590 // SetOutputDataConfig sets the OutputDataConfig field's value. 5591 func (s *StartRxNormInferenceJobInput) SetOutputDataConfig(v *OutputDataConfig) *StartRxNormInferenceJobInput { 5592 s.OutputDataConfig = v 5593 return s 5594 } 5595 5596 type StartRxNormInferenceJobOutput struct { 5597 _ struct{} `type:"structure"` 5598 5599 // The identifier of the job. 5600 JobId *string `min:"1" type:"string"` 5601 } 5602 5603 // String returns the string representation. 5604 // 5605 // API parameter values that are decorated as "sensitive" in the API will not 5606 // be included in the string output. The member name will be present, but the 5607 // value will be replaced with "sensitive". 5608 func (s StartRxNormInferenceJobOutput) String() string { 5609 return awsutil.Prettify(s) 5610 } 5611 5612 // GoString returns the string representation. 5613 // 5614 // API parameter values that are decorated as "sensitive" in the API will not 5615 // be included in the string output. The member name will be present, but the 5616 // value will be replaced with "sensitive". 5617 func (s StartRxNormInferenceJobOutput) GoString() string { 5618 return s.String() 5619 } 5620 5621 // SetJobId sets the JobId field's value. 5622 func (s *StartRxNormInferenceJobOutput) SetJobId(v string) *StartRxNormInferenceJobOutput { 5623 s.JobId = &v 5624 return s 5625 } 5626 5627 type StopEntitiesDetectionV2JobInput struct { 5628 _ struct{} `type:"structure"` 5629 5630 // The identifier of the medical entities job to stop. 5631 // 5632 // JobId is a required field 5633 JobId *string `min:"1" type:"string" required:"true"` 5634 } 5635 5636 // String returns the string representation. 5637 // 5638 // API parameter values that are decorated as "sensitive" in the API will not 5639 // be included in the string output. The member name will be present, but the 5640 // value will be replaced with "sensitive". 5641 func (s StopEntitiesDetectionV2JobInput) String() string { 5642 return awsutil.Prettify(s) 5643 } 5644 5645 // GoString returns the string representation. 5646 // 5647 // API parameter values that are decorated as "sensitive" in the API will not 5648 // be included in the string output. The member name will be present, but the 5649 // value will be replaced with "sensitive". 5650 func (s StopEntitiesDetectionV2JobInput) GoString() string { 5651 return s.String() 5652 } 5653 5654 // Validate inspects the fields of the type to determine if they are valid. 5655 func (s *StopEntitiesDetectionV2JobInput) Validate() error { 5656 invalidParams := request.ErrInvalidParams{Context: "StopEntitiesDetectionV2JobInput"} 5657 if s.JobId == nil { 5658 invalidParams.Add(request.NewErrParamRequired("JobId")) 5659 } 5660 if s.JobId != nil && len(*s.JobId) < 1 { 5661 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 5662 } 5663 5664 if invalidParams.Len() > 0 { 5665 return invalidParams 5666 } 5667 return nil 5668 } 5669 5670 // SetJobId sets the JobId field's value. 5671 func (s *StopEntitiesDetectionV2JobInput) SetJobId(v string) *StopEntitiesDetectionV2JobInput { 5672 s.JobId = &v 5673 return s 5674 } 5675 5676 type StopEntitiesDetectionV2JobOutput struct { 5677 _ struct{} `type:"structure"` 5678 5679 // The identifier of the medical entities detection job that was stopped. 5680 JobId *string `min:"1" type:"string"` 5681 } 5682 5683 // String returns the string representation. 5684 // 5685 // API parameter values that are decorated as "sensitive" in the API will not 5686 // be included in the string output. The member name will be present, but the 5687 // value will be replaced with "sensitive". 5688 func (s StopEntitiesDetectionV2JobOutput) String() string { 5689 return awsutil.Prettify(s) 5690 } 5691 5692 // GoString returns the string representation. 5693 // 5694 // API parameter values that are decorated as "sensitive" in the API will not 5695 // be included in the string output. The member name will be present, but the 5696 // value will be replaced with "sensitive". 5697 func (s StopEntitiesDetectionV2JobOutput) GoString() string { 5698 return s.String() 5699 } 5700 5701 // SetJobId sets the JobId field's value. 5702 func (s *StopEntitiesDetectionV2JobOutput) SetJobId(v string) *StopEntitiesDetectionV2JobOutput { 5703 s.JobId = &v 5704 return s 5705 } 5706 5707 type StopICD10CMInferenceJobInput struct { 5708 _ struct{} `type:"structure"` 5709 5710 // The identifier of the job. 5711 // 5712 // JobId is a required field 5713 JobId *string `min:"1" type:"string" required:"true"` 5714 } 5715 5716 // String returns the string representation. 5717 // 5718 // API parameter values that are decorated as "sensitive" in the API will not 5719 // be included in the string output. The member name will be present, but the 5720 // value will be replaced with "sensitive". 5721 func (s StopICD10CMInferenceJobInput) String() string { 5722 return awsutil.Prettify(s) 5723 } 5724 5725 // GoString returns the string representation. 5726 // 5727 // API parameter values that are decorated as "sensitive" in the API will not 5728 // be included in the string output. The member name will be present, but the 5729 // value will be replaced with "sensitive". 5730 func (s StopICD10CMInferenceJobInput) GoString() string { 5731 return s.String() 5732 } 5733 5734 // Validate inspects the fields of the type to determine if they are valid. 5735 func (s *StopICD10CMInferenceJobInput) Validate() error { 5736 invalidParams := request.ErrInvalidParams{Context: "StopICD10CMInferenceJobInput"} 5737 if s.JobId == nil { 5738 invalidParams.Add(request.NewErrParamRequired("JobId")) 5739 } 5740 if s.JobId != nil && len(*s.JobId) < 1 { 5741 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 5742 } 5743 5744 if invalidParams.Len() > 0 { 5745 return invalidParams 5746 } 5747 return nil 5748 } 5749 5750 // SetJobId sets the JobId field's value. 5751 func (s *StopICD10CMInferenceJobInput) SetJobId(v string) *StopICD10CMInferenceJobInput { 5752 s.JobId = &v 5753 return s 5754 } 5755 5756 type StopICD10CMInferenceJobOutput struct { 5757 _ struct{} `type:"structure"` 5758 5759 // The identifier generated for the job. To get the status of job, use this 5760 // identifier with the DescribeICD10CMInferenceJob operation. 5761 JobId *string `min:"1" type:"string"` 5762 } 5763 5764 // String returns the string representation. 5765 // 5766 // API parameter values that are decorated as "sensitive" in the API will not 5767 // be included in the string output. The member name will be present, but the 5768 // value will be replaced with "sensitive". 5769 func (s StopICD10CMInferenceJobOutput) String() string { 5770 return awsutil.Prettify(s) 5771 } 5772 5773 // GoString returns the string representation. 5774 // 5775 // API parameter values that are decorated as "sensitive" in the API will not 5776 // be included in the string output. The member name will be present, but the 5777 // value will be replaced with "sensitive". 5778 func (s StopICD10CMInferenceJobOutput) GoString() string { 5779 return s.String() 5780 } 5781 5782 // SetJobId sets the JobId field's value. 5783 func (s *StopICD10CMInferenceJobOutput) SetJobId(v string) *StopICD10CMInferenceJobOutput { 5784 s.JobId = &v 5785 return s 5786 } 5787 5788 type StopPHIDetectionJobInput struct { 5789 _ struct{} `type:"structure"` 5790 5791 // The identifier of the PHI detection job to stop. 5792 // 5793 // JobId is a required field 5794 JobId *string `min:"1" type:"string" required:"true"` 5795 } 5796 5797 // String returns the string representation. 5798 // 5799 // API parameter values that are decorated as "sensitive" in the API will not 5800 // be included in the string output. The member name will be present, but the 5801 // value will be replaced with "sensitive". 5802 func (s StopPHIDetectionJobInput) String() string { 5803 return awsutil.Prettify(s) 5804 } 5805 5806 // GoString returns the string representation. 5807 // 5808 // API parameter values that are decorated as "sensitive" in the API will not 5809 // be included in the string output. The member name will be present, but the 5810 // value will be replaced with "sensitive". 5811 func (s StopPHIDetectionJobInput) GoString() string { 5812 return s.String() 5813 } 5814 5815 // Validate inspects the fields of the type to determine if they are valid. 5816 func (s *StopPHIDetectionJobInput) Validate() error { 5817 invalidParams := request.ErrInvalidParams{Context: "StopPHIDetectionJobInput"} 5818 if s.JobId == nil { 5819 invalidParams.Add(request.NewErrParamRequired("JobId")) 5820 } 5821 if s.JobId != nil && len(*s.JobId) < 1 { 5822 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 5823 } 5824 5825 if invalidParams.Len() > 0 { 5826 return invalidParams 5827 } 5828 return nil 5829 } 5830 5831 // SetJobId sets the JobId field's value. 5832 func (s *StopPHIDetectionJobInput) SetJobId(v string) *StopPHIDetectionJobInput { 5833 s.JobId = &v 5834 return s 5835 } 5836 5837 type StopPHIDetectionJobOutput struct { 5838 _ struct{} `type:"structure"` 5839 5840 // The identifier of the PHI detection job that was stopped. 5841 JobId *string `min:"1" type:"string"` 5842 } 5843 5844 // String returns the string representation. 5845 // 5846 // API parameter values that are decorated as "sensitive" in the API will not 5847 // be included in the string output. The member name will be present, but the 5848 // value will be replaced with "sensitive". 5849 func (s StopPHIDetectionJobOutput) String() string { 5850 return awsutil.Prettify(s) 5851 } 5852 5853 // GoString returns the string representation. 5854 // 5855 // API parameter values that are decorated as "sensitive" in the API will not 5856 // be included in the string output. The member name will be present, but the 5857 // value will be replaced with "sensitive". 5858 func (s StopPHIDetectionJobOutput) GoString() string { 5859 return s.String() 5860 } 5861 5862 // SetJobId sets the JobId field's value. 5863 func (s *StopPHIDetectionJobOutput) SetJobId(v string) *StopPHIDetectionJobOutput { 5864 s.JobId = &v 5865 return s 5866 } 5867 5868 type StopRxNormInferenceJobInput struct { 5869 _ struct{} `type:"structure"` 5870 5871 // The identifier of the job. 5872 // 5873 // JobId is a required field 5874 JobId *string `min:"1" type:"string" required:"true"` 5875 } 5876 5877 // String returns the string representation. 5878 // 5879 // API parameter values that are decorated as "sensitive" in the API will not 5880 // be included in the string output. The member name will be present, but the 5881 // value will be replaced with "sensitive". 5882 func (s StopRxNormInferenceJobInput) String() string { 5883 return awsutil.Prettify(s) 5884 } 5885 5886 // GoString returns the string representation. 5887 // 5888 // API parameter values that are decorated as "sensitive" in the API will not 5889 // be included in the string output. The member name will be present, but the 5890 // value will be replaced with "sensitive". 5891 func (s StopRxNormInferenceJobInput) GoString() string { 5892 return s.String() 5893 } 5894 5895 // Validate inspects the fields of the type to determine if they are valid. 5896 func (s *StopRxNormInferenceJobInput) Validate() error { 5897 invalidParams := request.ErrInvalidParams{Context: "StopRxNormInferenceJobInput"} 5898 if s.JobId == nil { 5899 invalidParams.Add(request.NewErrParamRequired("JobId")) 5900 } 5901 if s.JobId != nil && len(*s.JobId) < 1 { 5902 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 5903 } 5904 5905 if invalidParams.Len() > 0 { 5906 return invalidParams 5907 } 5908 return nil 5909 } 5910 5911 // SetJobId sets the JobId field's value. 5912 func (s *StopRxNormInferenceJobInput) SetJobId(v string) *StopRxNormInferenceJobInput { 5913 s.JobId = &v 5914 return s 5915 } 5916 5917 type StopRxNormInferenceJobOutput struct { 5918 _ struct{} `type:"structure"` 5919 5920 // The identifier generated for the job. To get the status of job, use this 5921 // identifier with the DescribeRxNormInferenceJob operation. 5922 JobId *string `min:"1" type:"string"` 5923 } 5924 5925 // String returns the string representation. 5926 // 5927 // API parameter values that are decorated as "sensitive" in the API will not 5928 // be included in the string output. The member name will be present, but the 5929 // value will be replaced with "sensitive". 5930 func (s StopRxNormInferenceJobOutput) String() string { 5931 return awsutil.Prettify(s) 5932 } 5933 5934 // GoString returns the string representation. 5935 // 5936 // API parameter values that are decorated as "sensitive" in the API will not 5937 // be included in the string output. The member name will be present, but the 5938 // value will be replaced with "sensitive". 5939 func (s StopRxNormInferenceJobOutput) GoString() string { 5940 return s.String() 5941 } 5942 5943 // SetJobId sets the JobId field's value. 5944 func (s *StopRxNormInferenceJobOutput) SetJobId(v string) *StopRxNormInferenceJobOutput { 5945 s.JobId = &v 5946 return s 5947 } 5948 5949 // The size of the text you submitted exceeds the size limit. Reduce the size 5950 // of the text or use a smaller document and then retry your request. 5951 type TextSizeLimitExceededException struct { 5952 _ struct{} `type:"structure"` 5953 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 5954 5955 Message_ *string `locationName:"Message" min:"1" type:"string"` 5956 } 5957 5958 // String returns the string representation. 5959 // 5960 // API parameter values that are decorated as "sensitive" in the API will not 5961 // be included in the string output. The member name will be present, but the 5962 // value will be replaced with "sensitive". 5963 func (s TextSizeLimitExceededException) String() string { 5964 return awsutil.Prettify(s) 5965 } 5966 5967 // GoString returns the string representation. 5968 // 5969 // API parameter values that are decorated as "sensitive" in the API will not 5970 // be included in the string output. The member name will be present, but the 5971 // value will be replaced with "sensitive". 5972 func (s TextSizeLimitExceededException) GoString() string { 5973 return s.String() 5974 } 5975 5976 func newErrorTextSizeLimitExceededException(v protocol.ResponseMetadata) error { 5977 return &TextSizeLimitExceededException{ 5978 RespMetadata: v, 5979 } 5980 } 5981 5982 // Code returns the exception type name. 5983 func (s *TextSizeLimitExceededException) Code() string { 5984 return "TextSizeLimitExceededException" 5985 } 5986 5987 // Message returns the exception's message. 5988 func (s *TextSizeLimitExceededException) Message() string { 5989 if s.Message_ != nil { 5990 return *s.Message_ 5991 } 5992 return "" 5993 } 5994 5995 // OrigErr always returns nil, satisfies awserr.Error interface. 5996 func (s *TextSizeLimitExceededException) OrigErr() error { 5997 return nil 5998 } 5999 6000 func (s *TextSizeLimitExceededException) Error() string { 6001 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 6002 } 6003 6004 // Status code returns the HTTP status code for the request's response error. 6005 func (s *TextSizeLimitExceededException) StatusCode() int { 6006 return s.RespMetadata.StatusCode 6007 } 6008 6009 // RequestID returns the service's response RequestID for request. 6010 func (s *TextSizeLimitExceededException) RequestID() string { 6011 return s.RespMetadata.RequestID 6012 } 6013 6014 // You have made too many requests within a short period of time. Wait for a 6015 // short time and then try your request again. Contact customer support for 6016 // more information about a service limit increase. 6017 type TooManyRequestsException struct { 6018 _ struct{} `type:"structure"` 6019 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 6020 6021 Message_ *string `locationName:"Message" min:"1" type:"string"` 6022 } 6023 6024 // String returns the string representation. 6025 // 6026 // API parameter values that are decorated as "sensitive" in the API will not 6027 // be included in the string output. The member name will be present, but the 6028 // value will be replaced with "sensitive". 6029 func (s TooManyRequestsException) String() string { 6030 return awsutil.Prettify(s) 6031 } 6032 6033 // GoString returns the string representation. 6034 // 6035 // API parameter values that are decorated as "sensitive" in the API will not 6036 // be included in the string output. The member name will be present, but the 6037 // value will be replaced with "sensitive". 6038 func (s TooManyRequestsException) GoString() string { 6039 return s.String() 6040 } 6041 6042 func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { 6043 return &TooManyRequestsException{ 6044 RespMetadata: v, 6045 } 6046 } 6047 6048 // Code returns the exception type name. 6049 func (s *TooManyRequestsException) Code() string { 6050 return "TooManyRequestsException" 6051 } 6052 6053 // Message returns the exception's message. 6054 func (s *TooManyRequestsException) Message() string { 6055 if s.Message_ != nil { 6056 return *s.Message_ 6057 } 6058 return "" 6059 } 6060 6061 // OrigErr always returns nil, satisfies awserr.Error interface. 6062 func (s *TooManyRequestsException) OrigErr() error { 6063 return nil 6064 } 6065 6066 func (s *TooManyRequestsException) Error() string { 6067 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 6068 } 6069 6070 // Status code returns the HTTP status code for the request's response error. 6071 func (s *TooManyRequestsException) StatusCode() int { 6072 return s.RespMetadata.StatusCode 6073 } 6074 6075 // RequestID returns the service's response RequestID for request. 6076 func (s *TooManyRequestsException) RequestID() string { 6077 return s.RespMetadata.RequestID 6078 } 6079 6080 // Provides contextual information about the extracted entity. 6081 type Trait struct { 6082 _ struct{} `type:"structure"` 6083 6084 // Provides a name or contextual description about the trait. 6085 Name *string `type:"string" enum:"AttributeName"` 6086 6087 // The level of confidence that Amazon Comprehend Medical has in the accuracy 6088 // of this trait. 6089 Score *float64 `type:"float"` 6090 } 6091 6092 // String returns the string representation. 6093 // 6094 // API parameter values that are decorated as "sensitive" in the API will not 6095 // be included in the string output. The member name will be present, but the 6096 // value will be replaced with "sensitive". 6097 func (s Trait) String() string { 6098 return awsutil.Prettify(s) 6099 } 6100 6101 // GoString returns the string representation. 6102 // 6103 // API parameter values that are decorated as "sensitive" in the API will not 6104 // be included in the string output. The member name will be present, but the 6105 // value will be replaced with "sensitive". 6106 func (s Trait) GoString() string { 6107 return s.String() 6108 } 6109 6110 // SetName sets the Name field's value. 6111 func (s *Trait) SetName(v string) *Trait { 6112 s.Name = &v 6113 return s 6114 } 6115 6116 // SetScore sets the Score field's value. 6117 func (s *Trait) SetScore(v float64) *Trait { 6118 s.Score = &v 6119 return s 6120 } 6121 6122 // An attribute that we extracted, but were unable to relate to an entity. 6123 type UnmappedAttribute struct { 6124 _ struct{} `type:"structure"` 6125 6126 // The specific attribute that has been extracted but not mapped to an entity. 6127 Attribute *Attribute `type:"structure"` 6128 6129 // The type of the attribute, could be one of the following values: "MEDICATION", 6130 // "MEDICAL_CONDITION", "ANATOMY", "TEST_AND_TREATMENT_PROCEDURE" or "PROTECTED_HEALTH_INFORMATION". 6131 Type *string `type:"string" enum:"EntityType"` 6132 } 6133 6134 // String returns the string representation. 6135 // 6136 // API parameter values that are decorated as "sensitive" in the API will not 6137 // be included in the string output. The member name will be present, but the 6138 // value will be replaced with "sensitive". 6139 func (s UnmappedAttribute) String() string { 6140 return awsutil.Prettify(s) 6141 } 6142 6143 // GoString returns the string representation. 6144 // 6145 // API parameter values that are decorated as "sensitive" in the API will not 6146 // be included in the string output. The member name will be present, but the 6147 // value will be replaced with "sensitive". 6148 func (s UnmappedAttribute) GoString() string { 6149 return s.String() 6150 } 6151 6152 // SetAttribute sets the Attribute field's value. 6153 func (s *UnmappedAttribute) SetAttribute(v *Attribute) *UnmappedAttribute { 6154 s.Attribute = v 6155 return s 6156 } 6157 6158 // SetType sets the Type field's value. 6159 func (s *UnmappedAttribute) SetType(v string) *UnmappedAttribute { 6160 s.Type = &v 6161 return s 6162 } 6163 6164 // The filter that you specified for the operation is invalid. Check the filter 6165 // values that you entered and try your request again. 6166 type ValidationException struct { 6167 _ struct{} `type:"structure"` 6168 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 6169 6170 Message_ *string `locationName:"Message" min:"1" type:"string"` 6171 } 6172 6173 // String returns the string representation. 6174 // 6175 // API parameter values that are decorated as "sensitive" in the API will not 6176 // be included in the string output. The member name will be present, but the 6177 // value will be replaced with "sensitive". 6178 func (s ValidationException) String() string { 6179 return awsutil.Prettify(s) 6180 } 6181 6182 // GoString returns the string representation. 6183 // 6184 // API parameter values that are decorated as "sensitive" in the API will not 6185 // be included in the string output. The member name will be present, but the 6186 // value will be replaced with "sensitive". 6187 func (s ValidationException) GoString() string { 6188 return s.String() 6189 } 6190 6191 func newErrorValidationException(v protocol.ResponseMetadata) error { 6192 return &ValidationException{ 6193 RespMetadata: v, 6194 } 6195 } 6196 6197 // Code returns the exception type name. 6198 func (s *ValidationException) Code() string { 6199 return "ValidationException" 6200 } 6201 6202 // Message returns the exception's message. 6203 func (s *ValidationException) Message() string { 6204 if s.Message_ != nil { 6205 return *s.Message_ 6206 } 6207 return "" 6208 } 6209 6210 // OrigErr always returns nil, satisfies awserr.Error interface. 6211 func (s *ValidationException) OrigErr() error { 6212 return nil 6213 } 6214 6215 func (s *ValidationException) Error() string { 6216 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 6217 } 6218 6219 // Status code returns the HTTP status code for the request's response error. 6220 func (s *ValidationException) StatusCode() int { 6221 return s.RespMetadata.StatusCode 6222 } 6223 6224 // RequestID returns the service's response RequestID for request. 6225 func (s *ValidationException) RequestID() string { 6226 return s.RespMetadata.RequestID 6227 } 6228 6229 const ( 6230 // AttributeNameSign is a AttributeName enum value 6231 AttributeNameSign = "SIGN" 6232 6233 // AttributeNameSymptom is a AttributeName enum value 6234 AttributeNameSymptom = "SYMPTOM" 6235 6236 // AttributeNameDiagnosis is a AttributeName enum value 6237 AttributeNameDiagnosis = "DIAGNOSIS" 6238 6239 // AttributeNameNegation is a AttributeName enum value 6240 AttributeNameNegation = "NEGATION" 6241 ) 6242 6243 // AttributeName_Values returns all elements of the AttributeName enum 6244 func AttributeName_Values() []string { 6245 return []string{ 6246 AttributeNameSign, 6247 AttributeNameSymptom, 6248 AttributeNameDiagnosis, 6249 AttributeNameNegation, 6250 } 6251 } 6252 6253 const ( 6254 // EntitySubTypeName is a EntitySubType enum value 6255 EntitySubTypeName = "NAME" 6256 6257 // EntitySubTypeDosage is a EntitySubType enum value 6258 EntitySubTypeDosage = "DOSAGE" 6259 6260 // EntitySubTypeRouteOrMode is a EntitySubType enum value 6261 EntitySubTypeRouteOrMode = "ROUTE_OR_MODE" 6262 6263 // EntitySubTypeForm is a EntitySubType enum value 6264 EntitySubTypeForm = "FORM" 6265 6266 // EntitySubTypeFrequency is a EntitySubType enum value 6267 EntitySubTypeFrequency = "FREQUENCY" 6268 6269 // EntitySubTypeDuration is a EntitySubType enum value 6270 EntitySubTypeDuration = "DURATION" 6271 6272 // EntitySubTypeGenericName is a EntitySubType enum value 6273 EntitySubTypeGenericName = "GENERIC_NAME" 6274 6275 // EntitySubTypeBrandName is a EntitySubType enum value 6276 EntitySubTypeBrandName = "BRAND_NAME" 6277 6278 // EntitySubTypeStrength is a EntitySubType enum value 6279 EntitySubTypeStrength = "STRENGTH" 6280 6281 // EntitySubTypeRate is a EntitySubType enum value 6282 EntitySubTypeRate = "RATE" 6283 6284 // EntitySubTypeAcuity is a EntitySubType enum value 6285 EntitySubTypeAcuity = "ACUITY" 6286 6287 // EntitySubTypeTestName is a EntitySubType enum value 6288 EntitySubTypeTestName = "TEST_NAME" 6289 6290 // EntitySubTypeTestValue is a EntitySubType enum value 6291 EntitySubTypeTestValue = "TEST_VALUE" 6292 6293 // EntitySubTypeTestUnits is a EntitySubType enum value 6294 EntitySubTypeTestUnits = "TEST_UNITS" 6295 6296 // EntitySubTypeProcedureName is a EntitySubType enum value 6297 EntitySubTypeProcedureName = "PROCEDURE_NAME" 6298 6299 // EntitySubTypeTreatmentName is a EntitySubType enum value 6300 EntitySubTypeTreatmentName = "TREATMENT_NAME" 6301 6302 // EntitySubTypeDate is a EntitySubType enum value 6303 EntitySubTypeDate = "DATE" 6304 6305 // EntitySubTypeAge is a EntitySubType enum value 6306 EntitySubTypeAge = "AGE" 6307 6308 // EntitySubTypeContactPoint is a EntitySubType enum value 6309 EntitySubTypeContactPoint = "CONTACT_POINT" 6310 6311 // EntitySubTypeEmail is a EntitySubType enum value 6312 EntitySubTypeEmail = "EMAIL" 6313 6314 // EntitySubTypeIdentifier is a EntitySubType enum value 6315 EntitySubTypeIdentifier = "IDENTIFIER" 6316 6317 // EntitySubTypeUrl is a EntitySubType enum value 6318 EntitySubTypeUrl = "URL" 6319 6320 // EntitySubTypeAddress is a EntitySubType enum value 6321 EntitySubTypeAddress = "ADDRESS" 6322 6323 // EntitySubTypeProfession is a EntitySubType enum value 6324 EntitySubTypeProfession = "PROFESSION" 6325 6326 // EntitySubTypeSystemOrganSite is a EntitySubType enum value 6327 EntitySubTypeSystemOrganSite = "SYSTEM_ORGAN_SITE" 6328 6329 // EntitySubTypeDirection is a EntitySubType enum value 6330 EntitySubTypeDirection = "DIRECTION" 6331 6332 // EntitySubTypeQuality is a EntitySubType enum value 6333 EntitySubTypeQuality = "QUALITY" 6334 6335 // EntitySubTypeQuantity is a EntitySubType enum value 6336 EntitySubTypeQuantity = "QUANTITY" 6337 6338 // EntitySubTypeTimeExpression is a EntitySubType enum value 6339 EntitySubTypeTimeExpression = "TIME_EXPRESSION" 6340 6341 // EntitySubTypeTimeToMedicationName is a EntitySubType enum value 6342 EntitySubTypeTimeToMedicationName = "TIME_TO_MEDICATION_NAME" 6343 6344 // EntitySubTypeTimeToDxName is a EntitySubType enum value 6345 EntitySubTypeTimeToDxName = "TIME_TO_DX_NAME" 6346 6347 // EntitySubTypeTimeToTestName is a EntitySubType enum value 6348 EntitySubTypeTimeToTestName = "TIME_TO_TEST_NAME" 6349 6350 // EntitySubTypeTimeToProcedureName is a EntitySubType enum value 6351 EntitySubTypeTimeToProcedureName = "TIME_TO_PROCEDURE_NAME" 6352 6353 // EntitySubTypeTimeToTreatmentName is a EntitySubType enum value 6354 EntitySubTypeTimeToTreatmentName = "TIME_TO_TREATMENT_NAME" 6355 ) 6356 6357 // EntitySubType_Values returns all elements of the EntitySubType enum 6358 func EntitySubType_Values() []string { 6359 return []string{ 6360 EntitySubTypeName, 6361 EntitySubTypeDosage, 6362 EntitySubTypeRouteOrMode, 6363 EntitySubTypeForm, 6364 EntitySubTypeFrequency, 6365 EntitySubTypeDuration, 6366 EntitySubTypeGenericName, 6367 EntitySubTypeBrandName, 6368 EntitySubTypeStrength, 6369 EntitySubTypeRate, 6370 EntitySubTypeAcuity, 6371 EntitySubTypeTestName, 6372 EntitySubTypeTestValue, 6373 EntitySubTypeTestUnits, 6374 EntitySubTypeProcedureName, 6375 EntitySubTypeTreatmentName, 6376 EntitySubTypeDate, 6377 EntitySubTypeAge, 6378 EntitySubTypeContactPoint, 6379 EntitySubTypeEmail, 6380 EntitySubTypeIdentifier, 6381 EntitySubTypeUrl, 6382 EntitySubTypeAddress, 6383 EntitySubTypeProfession, 6384 EntitySubTypeSystemOrganSite, 6385 EntitySubTypeDirection, 6386 EntitySubTypeQuality, 6387 EntitySubTypeQuantity, 6388 EntitySubTypeTimeExpression, 6389 EntitySubTypeTimeToMedicationName, 6390 EntitySubTypeTimeToDxName, 6391 EntitySubTypeTimeToTestName, 6392 EntitySubTypeTimeToProcedureName, 6393 EntitySubTypeTimeToTreatmentName, 6394 } 6395 } 6396 6397 const ( 6398 // EntityTypeMedication is a EntityType enum value 6399 EntityTypeMedication = "MEDICATION" 6400 6401 // EntityTypeMedicalCondition is a EntityType enum value 6402 EntityTypeMedicalCondition = "MEDICAL_CONDITION" 6403 6404 // EntityTypeProtectedHealthInformation is a EntityType enum value 6405 EntityTypeProtectedHealthInformation = "PROTECTED_HEALTH_INFORMATION" 6406 6407 // EntityTypeTestTreatmentProcedure is a EntityType enum value 6408 EntityTypeTestTreatmentProcedure = "TEST_TREATMENT_PROCEDURE" 6409 6410 // EntityTypeAnatomy is a EntityType enum value 6411 EntityTypeAnatomy = "ANATOMY" 6412 6413 // EntityTypeTimeExpression is a EntityType enum value 6414 EntityTypeTimeExpression = "TIME_EXPRESSION" 6415 ) 6416 6417 // EntityType_Values returns all elements of the EntityType enum 6418 func EntityType_Values() []string { 6419 return []string{ 6420 EntityTypeMedication, 6421 EntityTypeMedicalCondition, 6422 EntityTypeProtectedHealthInformation, 6423 EntityTypeTestTreatmentProcedure, 6424 EntityTypeAnatomy, 6425 EntityTypeTimeExpression, 6426 } 6427 } 6428 6429 const ( 6430 // ICD10CMAttributeTypeAcuity is a ICD10CMAttributeType enum value 6431 ICD10CMAttributeTypeAcuity = "ACUITY" 6432 6433 // ICD10CMAttributeTypeDirection is a ICD10CMAttributeType enum value 6434 ICD10CMAttributeTypeDirection = "DIRECTION" 6435 6436 // ICD10CMAttributeTypeSystemOrganSite is a ICD10CMAttributeType enum value 6437 ICD10CMAttributeTypeSystemOrganSite = "SYSTEM_ORGAN_SITE" 6438 6439 // ICD10CMAttributeTypeQuality is a ICD10CMAttributeType enum value 6440 ICD10CMAttributeTypeQuality = "QUALITY" 6441 6442 // ICD10CMAttributeTypeQuantity is a ICD10CMAttributeType enum value 6443 ICD10CMAttributeTypeQuantity = "QUANTITY" 6444 6445 // ICD10CMAttributeTypeTimeToDxName is a ICD10CMAttributeType enum value 6446 ICD10CMAttributeTypeTimeToDxName = "TIME_TO_DX_NAME" 6447 6448 // ICD10CMAttributeTypeTimeExpression is a ICD10CMAttributeType enum value 6449 ICD10CMAttributeTypeTimeExpression = "TIME_EXPRESSION" 6450 ) 6451 6452 // ICD10CMAttributeType_Values returns all elements of the ICD10CMAttributeType enum 6453 func ICD10CMAttributeType_Values() []string { 6454 return []string{ 6455 ICD10CMAttributeTypeAcuity, 6456 ICD10CMAttributeTypeDirection, 6457 ICD10CMAttributeTypeSystemOrganSite, 6458 ICD10CMAttributeTypeQuality, 6459 ICD10CMAttributeTypeQuantity, 6460 ICD10CMAttributeTypeTimeToDxName, 6461 ICD10CMAttributeTypeTimeExpression, 6462 } 6463 } 6464 6465 const ( 6466 // ICD10CMEntityCategoryMedicalCondition is a ICD10CMEntityCategory enum value 6467 ICD10CMEntityCategoryMedicalCondition = "MEDICAL_CONDITION" 6468 ) 6469 6470 // ICD10CMEntityCategory_Values returns all elements of the ICD10CMEntityCategory enum 6471 func ICD10CMEntityCategory_Values() []string { 6472 return []string{ 6473 ICD10CMEntityCategoryMedicalCondition, 6474 } 6475 } 6476 6477 const ( 6478 // ICD10CMEntityTypeDxName is a ICD10CMEntityType enum value 6479 ICD10CMEntityTypeDxName = "DX_NAME" 6480 6481 // ICD10CMEntityTypeTimeExpression is a ICD10CMEntityType enum value 6482 ICD10CMEntityTypeTimeExpression = "TIME_EXPRESSION" 6483 ) 6484 6485 // ICD10CMEntityType_Values returns all elements of the ICD10CMEntityType enum 6486 func ICD10CMEntityType_Values() []string { 6487 return []string{ 6488 ICD10CMEntityTypeDxName, 6489 ICD10CMEntityTypeTimeExpression, 6490 } 6491 } 6492 6493 const ( 6494 // ICD10CMRelationshipTypeOverlap is a ICD10CMRelationshipType enum value 6495 ICD10CMRelationshipTypeOverlap = "OVERLAP" 6496 6497 // ICD10CMRelationshipTypeSystemOrganSite is a ICD10CMRelationshipType enum value 6498 ICD10CMRelationshipTypeSystemOrganSite = "SYSTEM_ORGAN_SITE" 6499 ) 6500 6501 // ICD10CMRelationshipType_Values returns all elements of the ICD10CMRelationshipType enum 6502 func ICD10CMRelationshipType_Values() []string { 6503 return []string{ 6504 ICD10CMRelationshipTypeOverlap, 6505 ICD10CMRelationshipTypeSystemOrganSite, 6506 } 6507 } 6508 6509 const ( 6510 // ICD10CMTraitNameNegation is a ICD10CMTraitName enum value 6511 ICD10CMTraitNameNegation = "NEGATION" 6512 6513 // ICD10CMTraitNameDiagnosis is a ICD10CMTraitName enum value 6514 ICD10CMTraitNameDiagnosis = "DIAGNOSIS" 6515 6516 // ICD10CMTraitNameSign is a ICD10CMTraitName enum value 6517 ICD10CMTraitNameSign = "SIGN" 6518 6519 // ICD10CMTraitNameSymptom is a ICD10CMTraitName enum value 6520 ICD10CMTraitNameSymptom = "SYMPTOM" 6521 ) 6522 6523 // ICD10CMTraitName_Values returns all elements of the ICD10CMTraitName enum 6524 func ICD10CMTraitName_Values() []string { 6525 return []string{ 6526 ICD10CMTraitNameNegation, 6527 ICD10CMTraitNameDiagnosis, 6528 ICD10CMTraitNameSign, 6529 ICD10CMTraitNameSymptom, 6530 } 6531 } 6532 6533 const ( 6534 // JobStatusSubmitted is a JobStatus enum value 6535 JobStatusSubmitted = "SUBMITTED" 6536 6537 // JobStatusInProgress is a JobStatus enum value 6538 JobStatusInProgress = "IN_PROGRESS" 6539 6540 // JobStatusCompleted is a JobStatus enum value 6541 JobStatusCompleted = "COMPLETED" 6542 6543 // JobStatusPartialSuccess is a JobStatus enum value 6544 JobStatusPartialSuccess = "PARTIAL_SUCCESS" 6545 6546 // JobStatusFailed is a JobStatus enum value 6547 JobStatusFailed = "FAILED" 6548 6549 // JobStatusStopRequested is a JobStatus enum value 6550 JobStatusStopRequested = "STOP_REQUESTED" 6551 6552 // JobStatusStopped is a JobStatus enum value 6553 JobStatusStopped = "STOPPED" 6554 ) 6555 6556 // JobStatus_Values returns all elements of the JobStatus enum 6557 func JobStatus_Values() []string { 6558 return []string{ 6559 JobStatusSubmitted, 6560 JobStatusInProgress, 6561 JobStatusCompleted, 6562 JobStatusPartialSuccess, 6563 JobStatusFailed, 6564 JobStatusStopRequested, 6565 JobStatusStopped, 6566 } 6567 } 6568 6569 const ( 6570 // LanguageCodeEn is a LanguageCode enum value 6571 LanguageCodeEn = "en" 6572 ) 6573 6574 // LanguageCode_Values returns all elements of the LanguageCode enum 6575 func LanguageCode_Values() []string { 6576 return []string{ 6577 LanguageCodeEn, 6578 } 6579 } 6580 6581 const ( 6582 // RelationshipTypeEvery is a RelationshipType enum value 6583 RelationshipTypeEvery = "EVERY" 6584 6585 // RelationshipTypeWithDosage is a RelationshipType enum value 6586 RelationshipTypeWithDosage = "WITH_DOSAGE" 6587 6588 // RelationshipTypeAdministeredVia is a RelationshipType enum value 6589 RelationshipTypeAdministeredVia = "ADMINISTERED_VIA" 6590 6591 // RelationshipTypeFor is a RelationshipType enum value 6592 RelationshipTypeFor = "FOR" 6593 6594 // RelationshipTypeNegative is a RelationshipType enum value 6595 RelationshipTypeNegative = "NEGATIVE" 6596 6597 // RelationshipTypeOverlap is a RelationshipType enum value 6598 RelationshipTypeOverlap = "OVERLAP" 6599 6600 // RelationshipTypeDosage is a RelationshipType enum value 6601 RelationshipTypeDosage = "DOSAGE" 6602 6603 // RelationshipTypeRouteOrMode is a RelationshipType enum value 6604 RelationshipTypeRouteOrMode = "ROUTE_OR_MODE" 6605 6606 // RelationshipTypeForm is a RelationshipType enum value 6607 RelationshipTypeForm = "FORM" 6608 6609 // RelationshipTypeFrequency is a RelationshipType enum value 6610 RelationshipTypeFrequency = "FREQUENCY" 6611 6612 // RelationshipTypeDuration is a RelationshipType enum value 6613 RelationshipTypeDuration = "DURATION" 6614 6615 // RelationshipTypeStrength is a RelationshipType enum value 6616 RelationshipTypeStrength = "STRENGTH" 6617 6618 // RelationshipTypeRate is a RelationshipType enum value 6619 RelationshipTypeRate = "RATE" 6620 6621 // RelationshipTypeAcuity is a RelationshipType enum value 6622 RelationshipTypeAcuity = "ACUITY" 6623 6624 // RelationshipTypeTestValue is a RelationshipType enum value 6625 RelationshipTypeTestValue = "TEST_VALUE" 6626 6627 // RelationshipTypeTestUnits is a RelationshipType enum value 6628 RelationshipTypeTestUnits = "TEST_UNITS" 6629 6630 // RelationshipTypeDirection is a RelationshipType enum value 6631 RelationshipTypeDirection = "DIRECTION" 6632 6633 // RelationshipTypeSystemOrganSite is a RelationshipType enum value 6634 RelationshipTypeSystemOrganSite = "SYSTEM_ORGAN_SITE" 6635 ) 6636 6637 // RelationshipType_Values returns all elements of the RelationshipType enum 6638 func RelationshipType_Values() []string { 6639 return []string{ 6640 RelationshipTypeEvery, 6641 RelationshipTypeWithDosage, 6642 RelationshipTypeAdministeredVia, 6643 RelationshipTypeFor, 6644 RelationshipTypeNegative, 6645 RelationshipTypeOverlap, 6646 RelationshipTypeDosage, 6647 RelationshipTypeRouteOrMode, 6648 RelationshipTypeForm, 6649 RelationshipTypeFrequency, 6650 RelationshipTypeDuration, 6651 RelationshipTypeStrength, 6652 RelationshipTypeRate, 6653 RelationshipTypeAcuity, 6654 RelationshipTypeTestValue, 6655 RelationshipTypeTestUnits, 6656 RelationshipTypeDirection, 6657 RelationshipTypeSystemOrganSite, 6658 } 6659 } 6660 6661 const ( 6662 // RxNormAttributeTypeDosage is a RxNormAttributeType enum value 6663 RxNormAttributeTypeDosage = "DOSAGE" 6664 6665 // RxNormAttributeTypeDuration is a RxNormAttributeType enum value 6666 RxNormAttributeTypeDuration = "DURATION" 6667 6668 // RxNormAttributeTypeForm is a RxNormAttributeType enum value 6669 RxNormAttributeTypeForm = "FORM" 6670 6671 // RxNormAttributeTypeFrequency is a RxNormAttributeType enum value 6672 RxNormAttributeTypeFrequency = "FREQUENCY" 6673 6674 // RxNormAttributeTypeRate is a RxNormAttributeType enum value 6675 RxNormAttributeTypeRate = "RATE" 6676 6677 // RxNormAttributeTypeRouteOrMode is a RxNormAttributeType enum value 6678 RxNormAttributeTypeRouteOrMode = "ROUTE_OR_MODE" 6679 6680 // RxNormAttributeTypeStrength is a RxNormAttributeType enum value 6681 RxNormAttributeTypeStrength = "STRENGTH" 6682 ) 6683 6684 // RxNormAttributeType_Values returns all elements of the RxNormAttributeType enum 6685 func RxNormAttributeType_Values() []string { 6686 return []string{ 6687 RxNormAttributeTypeDosage, 6688 RxNormAttributeTypeDuration, 6689 RxNormAttributeTypeForm, 6690 RxNormAttributeTypeFrequency, 6691 RxNormAttributeTypeRate, 6692 RxNormAttributeTypeRouteOrMode, 6693 RxNormAttributeTypeStrength, 6694 } 6695 } 6696 6697 const ( 6698 // RxNormEntityCategoryMedication is a RxNormEntityCategory enum value 6699 RxNormEntityCategoryMedication = "MEDICATION" 6700 ) 6701 6702 // RxNormEntityCategory_Values returns all elements of the RxNormEntityCategory enum 6703 func RxNormEntityCategory_Values() []string { 6704 return []string{ 6705 RxNormEntityCategoryMedication, 6706 } 6707 } 6708 6709 const ( 6710 // RxNormEntityTypeBrandName is a RxNormEntityType enum value 6711 RxNormEntityTypeBrandName = "BRAND_NAME" 6712 6713 // RxNormEntityTypeGenericName is a RxNormEntityType enum value 6714 RxNormEntityTypeGenericName = "GENERIC_NAME" 6715 ) 6716 6717 // RxNormEntityType_Values returns all elements of the RxNormEntityType enum 6718 func RxNormEntityType_Values() []string { 6719 return []string{ 6720 RxNormEntityTypeBrandName, 6721 RxNormEntityTypeGenericName, 6722 } 6723 } 6724 6725 const ( 6726 // RxNormTraitNameNegation is a RxNormTraitName enum value 6727 RxNormTraitNameNegation = "NEGATION" 6728 ) 6729 6730 // RxNormTraitName_Values returns all elements of the RxNormTraitName enum 6731 func RxNormTraitName_Values() []string { 6732 return []string{ 6733 RxNormTraitNameNegation, 6734 } 6735 }