UNPKG

28.8 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {ServiceConfigurationOptions} from '../lib/service';
6import {ConfigBase as Config} from '../lib/config';
7interface Blob {}
8declare class ComprehendMedical extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
11 */
12 constructor(options?: ComprehendMedical.Types.ClientConfiguration)
13 config: Config & ComprehendMedical.Types.ClientConfiguration;
14 /**
15 * Gets the properties associated with a medical entities detection job. Use this operation to get the status of a detection job.
16 */
17 describeEntitiesDetectionV2Job(params: ComprehendMedical.Types.DescribeEntitiesDetectionV2JobRequest, callback?: (err: AWSError, data: ComprehendMedical.Types.DescribeEntitiesDetectionV2JobResponse) => void): Request<ComprehendMedical.Types.DescribeEntitiesDetectionV2JobResponse, AWSError>;
18 /**
19 * Gets the properties associated with a medical entities detection job. Use this operation to get the status of a detection job.
20 */
21 describeEntitiesDetectionV2Job(callback?: (err: AWSError, data: ComprehendMedical.Types.DescribeEntitiesDetectionV2JobResponse) => void): Request<ComprehendMedical.Types.DescribeEntitiesDetectionV2JobResponse, AWSError>;
22 /**
23 * Gets the properties associated with a protected health information (PHI) detection job. Use this operation to get the status of a detection job.
24 */
25 describePHIDetectionJob(params: ComprehendMedical.Types.DescribePHIDetectionJobRequest, callback?: (err: AWSError, data: ComprehendMedical.Types.DescribePHIDetectionJobResponse) => void): Request<ComprehendMedical.Types.DescribePHIDetectionJobResponse, AWSError>;
26 /**
27 * Gets the properties associated with a protected health information (PHI) detection job. Use this operation to get the status of a detection job.
28 */
29 describePHIDetectionJob(callback?: (err: AWSError, data: ComprehendMedical.Types.DescribePHIDetectionJobResponse) => void): Request<ComprehendMedical.Types.DescribePHIDetectionJobResponse, AWSError>;
30 /**
31 * The DetectEntities operation is deprecated. You should use the DetectEntitiesV2 operation instead. Inspects the clinical text for a variety of medical entities and returns specific information about them such as entity category, location, and confidence score on that information .
32 */
33 detectEntities(params: ComprehendMedical.Types.DetectEntitiesRequest, callback?: (err: AWSError, data: ComprehendMedical.Types.DetectEntitiesResponse) => void): Request<ComprehendMedical.Types.DetectEntitiesResponse, AWSError>;
34 /**
35 * The DetectEntities operation is deprecated. You should use the DetectEntitiesV2 operation instead. Inspects the clinical text for a variety of medical entities and returns specific information about them such as entity category, location, and confidence score on that information .
36 */
37 detectEntities(callback?: (err: AWSError, data: ComprehendMedical.Types.DetectEntitiesResponse) => void): Request<ComprehendMedical.Types.DetectEntitiesResponse, AWSError>;
38 /**
39 * Inspects the clinical text for a variety of medical entities and returns specific information about them such as entity category, location, and confidence score on that information. The DetectEntitiesV2 operation replaces the DetectEntities operation. This new action uses a different model for determining the entities in your medical text and changes the way that some entities are returned in the output. You should use the DetectEntitiesV2 operation in all new applications. The DetectEntitiesV2 operation returns the Acuity and Direction entities as attributes instead of types. It does not return the Quality or Quantity entities.
40 */
41 detectEntitiesV2(params: ComprehendMedical.Types.DetectEntitiesV2Request, callback?: (err: AWSError, data: ComprehendMedical.Types.DetectEntitiesV2Response) => void): Request<ComprehendMedical.Types.DetectEntitiesV2Response, AWSError>;
42 /**
43 * Inspects the clinical text for a variety of medical entities and returns specific information about them such as entity category, location, and confidence score on that information. The DetectEntitiesV2 operation replaces the DetectEntities operation. This new action uses a different model for determining the entities in your medical text and changes the way that some entities are returned in the output. You should use the DetectEntitiesV2 operation in all new applications. The DetectEntitiesV2 operation returns the Acuity and Direction entities as attributes instead of types. It does not return the Quality or Quantity entities.
44 */
45 detectEntitiesV2(callback?: (err: AWSError, data: ComprehendMedical.Types.DetectEntitiesV2Response) => void): Request<ComprehendMedical.Types.DetectEntitiesV2Response, AWSError>;
46 /**
47 * Inspects the clinical text for protected health information (PHI) entities and entity category, location, and confidence score on that information.
48 */
49 detectPHI(params: ComprehendMedical.Types.DetectPHIRequest, callback?: (err: AWSError, data: ComprehendMedical.Types.DetectPHIResponse) => void): Request<ComprehendMedical.Types.DetectPHIResponse, AWSError>;
50 /**
51 * Inspects the clinical text for protected health information (PHI) entities and entity category, location, and confidence score on that information.
52 */
53 detectPHI(callback?: (err: AWSError, data: ComprehendMedical.Types.DetectPHIResponse) => void): Request<ComprehendMedical.Types.DetectPHIResponse, AWSError>;
54 /**
55 * Gets a list of medical entity detection jobs that you have submitted.
56 */
57 listEntitiesDetectionV2Jobs(params: ComprehendMedical.Types.ListEntitiesDetectionV2JobsRequest, callback?: (err: AWSError, data: ComprehendMedical.Types.ListEntitiesDetectionV2JobsResponse) => void): Request<ComprehendMedical.Types.ListEntitiesDetectionV2JobsResponse, AWSError>;
58 /**
59 * Gets a list of medical entity detection jobs that you have submitted.
60 */
61 listEntitiesDetectionV2Jobs(callback?: (err: AWSError, data: ComprehendMedical.Types.ListEntitiesDetectionV2JobsResponse) => void): Request<ComprehendMedical.Types.ListEntitiesDetectionV2JobsResponse, AWSError>;
62 /**
63 * Gets a list of protected health information (PHI) detection jobs that you have submitted.
64 */
65 listPHIDetectionJobs(params: ComprehendMedical.Types.ListPHIDetectionJobsRequest, callback?: (err: AWSError, data: ComprehendMedical.Types.ListPHIDetectionJobsResponse) => void): Request<ComprehendMedical.Types.ListPHIDetectionJobsResponse, AWSError>;
66 /**
67 * Gets a list of protected health information (PHI) detection jobs that you have submitted.
68 */
69 listPHIDetectionJobs(callback?: (err: AWSError, data: ComprehendMedical.Types.ListPHIDetectionJobsResponse) => void): Request<ComprehendMedical.Types.ListPHIDetectionJobsResponse, AWSError>;
70 /**
71 * Starts an asynchronous medical entity detection job for a collection of documents. Use the DescribeEntitiesDetectionV2Job operation to track the status of a job.
72 */
73 startEntitiesDetectionV2Job(params: ComprehendMedical.Types.StartEntitiesDetectionV2JobRequest, callback?: (err: AWSError, data: ComprehendMedical.Types.StartEntitiesDetectionV2JobResponse) => void): Request<ComprehendMedical.Types.StartEntitiesDetectionV2JobResponse, AWSError>;
74 /**
75 * Starts an asynchronous medical entity detection job for a collection of documents. Use the DescribeEntitiesDetectionV2Job operation to track the status of a job.
76 */
77 startEntitiesDetectionV2Job(callback?: (err: AWSError, data: ComprehendMedical.Types.StartEntitiesDetectionV2JobResponse) => void): Request<ComprehendMedical.Types.StartEntitiesDetectionV2JobResponse, AWSError>;
78 /**
79 * Starts an asynchronous job to detect protected health information (PHI). Use the DescribePHIDetectionJob operation to track the status of a job.
80 */
81 startPHIDetectionJob(params: ComprehendMedical.Types.StartPHIDetectionJobRequest, callback?: (err: AWSError, data: ComprehendMedical.Types.StartPHIDetectionJobResponse) => void): Request<ComprehendMedical.Types.StartPHIDetectionJobResponse, AWSError>;
82 /**
83 * Starts an asynchronous job to detect protected health information (PHI). Use the DescribePHIDetectionJob operation to track the status of a job.
84 */
85 startPHIDetectionJob(callback?: (err: AWSError, data: ComprehendMedical.Types.StartPHIDetectionJobResponse) => void): Request<ComprehendMedical.Types.StartPHIDetectionJobResponse, AWSError>;
86 /**
87 * Stops a medical entities detection job in progress.
88 */
89 stopEntitiesDetectionV2Job(params: ComprehendMedical.Types.StopEntitiesDetectionV2JobRequest, callback?: (err: AWSError, data: ComprehendMedical.Types.StopEntitiesDetectionV2JobResponse) => void): Request<ComprehendMedical.Types.StopEntitiesDetectionV2JobResponse, AWSError>;
90 /**
91 * Stops a medical entities detection job in progress.
92 */
93 stopEntitiesDetectionV2Job(callback?: (err: AWSError, data: ComprehendMedical.Types.StopEntitiesDetectionV2JobResponse) => void): Request<ComprehendMedical.Types.StopEntitiesDetectionV2JobResponse, AWSError>;
94 /**
95 * Stops a protected health information (PHI) detection job in progress.
96 */
97 stopPHIDetectionJob(params: ComprehendMedical.Types.StopPHIDetectionJobRequest, callback?: (err: AWSError, data: ComprehendMedical.Types.StopPHIDetectionJobResponse) => void): Request<ComprehendMedical.Types.StopPHIDetectionJobResponse, AWSError>;
98 /**
99 * Stops a protected health information (PHI) detection job in progress.
100 */
101 stopPHIDetectionJob(callback?: (err: AWSError, data: ComprehendMedical.Types.StopPHIDetectionJobResponse) => void): Request<ComprehendMedical.Types.StopPHIDetectionJobResponse, AWSError>;
102}
103declare namespace ComprehendMedical {
104 export type AnyLengthString = string;
105 export interface Attribute {
106 /**
107 * The type of attribute.
108 */
109 Type?: EntitySubType;
110 /**
111 * The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an attribute.
112 */
113 Score?: Float;
114 /**
115 * The level of confidence that Amazon Comprehend Medical has that this attribute is correctly related to this entity.
116 */
117 RelationshipScore?: Float;
118 /**
119 * The numeric identifier for this attribute. This is a monotonically increasing id unique within this response rather than a global unique identifier.
120 */
121 Id?: Integer;
122 /**
123 * The 0-based character offset in the input text that shows where the attribute begins. The offset returns the UTF-8 code point in the string.
124 */
125 BeginOffset?: Integer;
126 /**
127 * The 0-based character offset in the input text that shows where the attribute ends. The offset returns the UTF-8 code point in the string.
128 */
129 EndOffset?: Integer;
130 /**
131 * The segment of input text extracted as this attribute.
132 */
133 Text?: String;
134 /**
135 * Contextual information for this attribute.
136 */
137 Traits?: TraitList;
138 }
139 export type AttributeList = Attribute[];
140 export type AttributeName = "SIGN"|"SYMPTOM"|"DIAGNOSIS"|"NEGATION"|string;
141 export type BoundedLengthString = string;
142 export type ClientRequestTokenString = string;
143 export interface ComprehendMedicalAsyncJobFilter {
144 /**
145 * Filters on the name of the job.
146 */
147 JobName?: JobName;
148 /**
149 * Filters the list of jobs based on job status. Returns only jobs with the specified status.
150 */
151 JobStatus?: JobStatus;
152 /**
153 * Filters the list of jobs based on the time that the job was submitted for processing. Returns only jobs submitted before the specified time. Jobs are returned in ascending order, oldest to newest.
154 */
155 SubmitTimeBefore?: Timestamp;
156 /**
157 * Filters the list of jobs based on the time that the job was submitted for processing. Returns only jobs submitted after the specified time. Jobs are returned in descending order, newest to oldest.
158 */
159 SubmitTimeAfter?: Timestamp;
160 }
161 export interface ComprehendMedicalAsyncJobProperties {
162 /**
163 * The identifier assigned to the detection job.
164 */
165 JobId?: JobId;
166 /**
167 * The name that you assigned to the detection job.
168 */
169 JobName?: JobName;
170 /**
171 * The current status of the detection job. If the status is FAILED, the Message field shows the reason for the failure.
172 */
173 JobStatus?: JobStatus;
174 /**
175 * A description of the status of a job.
176 */
177 Message?: AnyLengthString;
178 /**
179 * The time that the detection job was submitted for processing.
180 */
181 SubmitTime?: Timestamp;
182 /**
183 * The time that the detection job completed.
184 */
185 EndTime?: Timestamp;
186 /**
187 * The date and time that job metadata is deleted from the server. Output files in your S3 bucket will not be deleted. After the metadata is deleted, the job will no longer appear in the results of the ListEntitiesDetectionV2Job or the ListPHIDetectionJobs operation.
188 */
189 ExpirationTime?: Timestamp;
190 /**
191 * The input data configuration that you supplied when you created the detection job.
192 */
193 InputDataConfig?: InputDataConfig;
194 /**
195 * The output data configuration that you supplied when you created the detection job.
196 */
197 OutputDataConfig?: OutputDataConfig;
198 /**
199 * The language code of the input documents.
200 */
201 LanguageCode?: LanguageCode;
202 /**
203 * The Amazon Resource Name (ARN) that gives Amazon Comprehend Medical read access to your input data.
204 */
205 DataAccessRoleArn?: IamRoleArn;
206 /**
207 * The path to the file that describes the results of a batch job.
208 */
209 ManifestFilePath?: ManifestFilePath;
210 /**
211 * The AWS Key Management Service key, if any, used to encrypt the output files.
212 */
213 KMSKey?: KMSKey;
214 /**
215 * The version of the model used to analyze the documents. The version number looks like X.X.X. You can use this information to track the model used for a particular batch of documents.
216 */
217 ModelVersion?: ModelVersion;
218 }
219 export type ComprehendMedicalAsyncJobPropertiesList = ComprehendMedicalAsyncJobProperties[];
220 export interface DescribeEntitiesDetectionV2JobRequest {
221 /**
222 * The identifier that Amazon Comprehend Medical generated for the job. The StartEntitiesDetectionV2Job operation returns this identifier in its response.
223 */
224 JobId: JobId;
225 }
226 export interface DescribeEntitiesDetectionV2JobResponse {
227 /**
228 * An object that contains the properties associated with a detection job.
229 */
230 ComprehendMedicalAsyncJobProperties?: ComprehendMedicalAsyncJobProperties;
231 }
232 export interface DescribePHIDetectionJobRequest {
233 /**
234 * The identifier that Amazon Comprehend Medical generated for the job. The StartPHIDetectionJob operation returns this identifier in its response.
235 */
236 JobId: JobId;
237 }
238 export interface DescribePHIDetectionJobResponse {
239 /**
240 * An object that contains the properties associated with a detection job.
241 */
242 ComprehendMedicalAsyncJobProperties?: ComprehendMedicalAsyncJobProperties;
243 }
244 export interface DetectEntitiesRequest {
245 /**
246 * A UTF-8 text string containing the clinical content being examined for entities. Each string must contain fewer than 20,000 bytes of characters.
247 */
248 Text: BoundedLengthString;
249 }
250 export interface DetectEntitiesResponse {
251 /**
252 * The collection of medical entities extracted from the input text and their associated information. For each entity, the response provides the entity text, the entity category, where the entity text begins and ends, and the level of confidence that Amazon Comprehend Medical has in the detection and analysis. Attributes and traits of the entity are also returned.
253 */
254 Entities: EntityList;
255 /**
256 * Attributes extracted from the input text that we were unable to relate to an entity.
257 */
258 UnmappedAttributes?: UnmappedAttributeList;
259 /**
260 * If the result of the previous request to DetectEntities was truncated, include the PaginationToken to fetch the next page of entities.
261 */
262 PaginationToken?: String;
263 /**
264 * The version of the model used to analyze the documents. The version number looks like X.X.X. You can use this information to track the model used for a particular batch of documents.
265 */
266 ModelVersion: String;
267 }
268 export interface DetectEntitiesV2Request {
269 /**
270 * A UTF-8 string containing the clinical content being examined for entities. Each string must contain fewer than 20,000 bytes of characters.
271 */
272 Text: BoundedLengthString;
273 }
274 export interface DetectEntitiesV2Response {
275 /**
276 * The collection of medical entities extracted from the input text and their associated information. For each entity, the response provides the entity text, the entity category, where the entity text begins and ends, and the level of confidence in the detection and analysis. Attributes and traits of the entity are also returned.
277 */
278 Entities: EntityList;
279 /**
280 * Attributes extracted from the input text that couldn't be related to an entity.
281 */
282 UnmappedAttributes?: UnmappedAttributeList;
283 /**
284 * If the result to the DetectEntitiesV2 operation was truncated, include the PaginationToken to fetch the next page of entities.
285 */
286 PaginationToken?: String;
287 /**
288 * The version of the model used to analyze the documents. The version number looks like X.X.X. You can use this information to track the model used for a particular batch of documents.
289 */
290 ModelVersion: String;
291 }
292 export interface DetectPHIRequest {
293 /**
294 * A UTF-8 text string containing the clinical content being examined for PHI entities. Each string must contain fewer than 20,000 bytes of characters.
295 */
296 Text: BoundedLengthString;
297 }
298 export interface DetectPHIResponse {
299 /**
300 * The collection of PHI entities extracted from the input text and their associated information. For each entity, the response provides the entity text, the entity category, where the entity text begins and ends, and the level of confidence that Amazon Comprehend Medical has in its detection.
301 */
302 Entities: EntityList;
303 /**
304 * If the result of the previous request to DetectPHI was truncated, include the PaginationToken to fetch the next page of PHI entities.
305 */
306 PaginationToken?: String;
307 /**
308 * The version of the model used to analyze the documents. The version number looks like X.X.X. You can use this information to track the model used for a particular batch of documents.
309 */
310 ModelVersion: String;
311 }
312 export interface Entity {
313 /**
314 * The numeric identifier for the entity. This is a monotonically increasing id unique within this response rather than a global unique identifier.
315 */
316 Id?: Integer;
317 /**
318 * The 0-based character offset in the input text that shows where the entity begins. The offset returns the UTF-8 code point in the string.
319 */
320 BeginOffset?: Integer;
321 /**
322 * The 0-based character offset in the input text that shows where the entity ends. The offset returns the UTF-8 code point in the string.
323 */
324 EndOffset?: Integer;
325 /**
326 * The level of confidence that Amazon Comprehend Medical has in the accuracy of the detection.
327 */
328 Score?: Float;
329 /**
330 * The segment of input text extracted as this entity.
331 */
332 Text?: String;
333 /**
334 * The category of the entity.
335 */
336 Category?: EntityType;
337 /**
338 * Describes the specific type of entity with category of entities.
339 */
340 Type?: EntitySubType;
341 /**
342 * Contextual information for the entity
343 */
344 Traits?: TraitList;
345 /**
346 * The extracted attributes that relate to this entity.
347 */
348 Attributes?: AttributeList;
349 }
350 export type EntityList = Entity[];
351 export type EntitySubType = "NAME"|"DOSAGE"|"ROUTE_OR_MODE"|"FORM"|"FREQUENCY"|"DURATION"|"GENERIC_NAME"|"BRAND_NAME"|"STRENGTH"|"RATE"|"ACUITY"|"TEST_NAME"|"TEST_VALUE"|"TEST_UNITS"|"PROCEDURE_NAME"|"TREATMENT_NAME"|"DATE"|"AGE"|"CONTACT_POINT"|"EMAIL"|"IDENTIFIER"|"URL"|"ADDRESS"|"PROFESSION"|"SYSTEM_ORGAN_SITE"|"DIRECTION"|"QUALITY"|"QUANTITY"|string;
352 export type EntityType = "MEDICATION"|"MEDICAL_CONDITION"|"PROTECTED_HEALTH_INFORMATION"|"TEST_TREATMENT_PROCEDURE"|"ANATOMY"|string;
353 export type Float = number;
354 export type IamRoleArn = string;
355 export interface InputDataConfig {
356 /**
357 * The URI of the S3 bucket that contains the input data. The bucket must be in the same region as the API endpoint that you are calling. Each file in the document collection must be less than 40 KB. You can store a maximum of 30 GB in the bucket.
358 */
359 S3Bucket: S3Bucket;
360 /**
361 * The path to the input data files in the S3 bucket.
362 */
363 S3Key?: S3Key;
364 }
365 export type Integer = number;
366 export type JobId = string;
367 export type JobName = string;
368 export type JobStatus = "SUBMITTED"|"IN_PROGRESS"|"COMPLETED"|"PARTIAL_SUCCESS"|"FAILED"|"STOP_REQUESTED"|"STOPPED"|string;
369 export type KMSKey = string;
370 export type LanguageCode = "en"|string;
371 export interface ListEntitiesDetectionV2JobsRequest {
372 /**
373 * Filters the jobs that are returned. You can filter jobs based on their names, status, or the date and time that they were submitted. You can only set one filter at a time.
374 */
375 Filter?: ComprehendMedicalAsyncJobFilter;
376 /**
377 * Identifies the next page of results to return.
378 */
379 NextToken?: String;
380 /**
381 * The maximum number of results to return in each page. The default is 100.
382 */
383 MaxResults?: MaxResultsInteger;
384 }
385 export interface ListEntitiesDetectionV2JobsResponse {
386 /**
387 * A list containing the properties of each job returned.
388 */
389 ComprehendMedicalAsyncJobPropertiesList?: ComprehendMedicalAsyncJobPropertiesList;
390 /**
391 * Identifies the next page of results to return.
392 */
393 NextToken?: String;
394 }
395 export interface ListPHIDetectionJobsRequest {
396 /**
397 * Filters the jobs that are returned. You can filter jobs based on their names, status, or the date and time that they were submitted. You can only set one filter at a time.
398 */
399 Filter?: ComprehendMedicalAsyncJobFilter;
400 /**
401 * Identifies the next page of results to return.
402 */
403 NextToken?: String;
404 /**
405 * The maximum number of results to return in each page. The default is 100.
406 */
407 MaxResults?: MaxResultsInteger;
408 }
409 export interface ListPHIDetectionJobsResponse {
410 /**
411 * A list containing the properties of each job returned.
412 */
413 ComprehendMedicalAsyncJobPropertiesList?: ComprehendMedicalAsyncJobPropertiesList;
414 /**
415 * Identifies the next page of results to return.
416 */
417 NextToken?: String;
418 }
419 export type ManifestFilePath = string;
420 export type MaxResultsInteger = number;
421 export type ModelVersion = string;
422 export interface OutputDataConfig {
423 /**
424 * When you use the OutputDataConfig object with asynchronous operations, you specify the Amazon S3 location where you want to write the output data. The URI must be in the same region as the API endpoint that you are calling. The location is used as the prefix for the actual location of the output.
425 */
426 S3Bucket: S3Bucket;
427 /**
428 * The path to the output data files in the S3 bucket. Amazon Comprehend Medical creates an output directory using the job ID so that the output from one job does not overwrite the output of another.
429 */
430 S3Key?: S3Key;
431 }
432 export type S3Bucket = string;
433 export type S3Key = string;
434 export interface StartEntitiesDetectionV2JobRequest {
435 /**
436 * Specifies the format and location of the input data for the job.
437 */
438 InputDataConfig: InputDataConfig;
439 /**
440 * Specifies where to send the output files.
441 */
442 OutputDataConfig: OutputDataConfig;
443 /**
444 * The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend Medical read access to your input data. For more information, see Role-Based Permissions Required for Asynchronous Operations.
445 */
446 DataAccessRoleArn: IamRoleArn;
447 /**
448 * The identifier of the job.
449 */
450 JobName?: JobName;
451 /**
452 * A unique identifier for the request. If you don't set the client request token, Amazon Comprehend Medical generates one.
453 */
454 ClientRequestToken?: ClientRequestTokenString;
455 /**
456 * An AWS Key Management Service key to encrypt your output files. If you do not specify a key, the files are written in plain text.
457 */
458 KMSKey?: KMSKey;
459 /**
460 * The language of the input documents. All documents must be in the same language.
461 */
462 LanguageCode: LanguageCode;
463 }
464 export interface StartEntitiesDetectionV2JobResponse {
465 /**
466 * The identifier generated for the job. To get the status of a job, use this identifier with the DescribeEntitiesDetectionV2Job operation.
467 */
468 JobId?: JobId;
469 }
470 export interface StartPHIDetectionJobRequest {
471 /**
472 * Specifies the format and location of the input data for the job.
473 */
474 InputDataConfig: InputDataConfig;
475 /**
476 * Specifies where to send the output files.
477 */
478 OutputDataConfig: OutputDataConfig;
479 /**
480 * The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend Medical read access to your input data. For more information, see Role-Based Permissions Required for Asynchronous Operations.
481 */
482 DataAccessRoleArn: IamRoleArn;
483 /**
484 * The identifier of the job.
485 */
486 JobName?: JobName;
487 /**
488 * A unique identifier for the request. If you don't set the client request token, Amazon Comprehend Medical generates one.
489 */
490 ClientRequestToken?: ClientRequestTokenString;
491 /**
492 * An AWS Key Management Service key to encrypt your output files. If you do not specify a key, the files are written in plain text.
493 */
494 KMSKey?: KMSKey;
495 /**
496 * The language of the input documents. All documents must be in the same language.
497 */
498 LanguageCode: LanguageCode;
499 }
500 export interface StartPHIDetectionJobResponse {
501 /**
502 * The identifier generated for the job. To get the status of a job, use this identifier with the DescribePHIDetectionJob operation.
503 */
504 JobId?: JobId;
505 }
506 export interface StopEntitiesDetectionV2JobRequest {
507 /**
508 * The identifier of the medical entities job to stop.
509 */
510 JobId: JobId;
511 }
512 export interface StopEntitiesDetectionV2JobResponse {
513 /**
514 * The identifier of the medical entities detection job that was stopped.
515 */
516 JobId?: JobId;
517 }
518 export interface StopPHIDetectionJobRequest {
519 /**
520 * The identifier of the PHI detection job to stop.
521 */
522 JobId: JobId;
523 }
524 export interface StopPHIDetectionJobResponse {
525 /**
526 * The identifier of the PHI detection job that was stopped.
527 */
528 JobId?: JobId;
529 }
530 export type String = string;
531 export type Timestamp = Date;
532 export interface Trait {
533 /**
534 * Provides a name or contextual description about the trait.
535 */
536 Name?: AttributeName;
537 /**
538 * The level of confidence that Amazon Comprehend Medical has in the accuracy of this trait.
539 */
540 Score?: Float;
541 }
542 export type TraitList = Trait[];
543 export interface UnmappedAttribute {
544 /**
545 * The type of the attribute, could be one of the following values: "MEDICATION", "MEDICAL_CONDITION", "ANATOMY", "TEST_AND_TREATMENT_PROCEDURE" or "PROTECTED_HEALTH_INFORMATION".
546 */
547 Type?: EntityType;
548 /**
549 * The specific attribute that has been extracted but not mapped to an entity.
550 */
551 Attribute?: Attribute;
552 }
553 export type UnmappedAttributeList = UnmappedAttribute[];
554 /**
555 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
556 */
557 export type apiVersion = "2018-10-30"|"latest"|string;
558 export interface ClientApiVersions {
559 /**
560 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
561 */
562 apiVersion?: apiVersion;
563 }
564 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
565 /**
566 * Contains interfaces for use with the ComprehendMedical client.
567 */
568 export import Types = ComprehendMedical;
569}
570export = ComprehendMedical;