aws-sdk-comprehendmedical 1.12.0 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5ad32a736f99f23f9b735935e01bdaf6077f22e7
4
- data.tar.gz: 9aa31e920c9a4b3006897085cf6fefbda27e2a27
3
+ metadata.gz: 519c4a24186e7dc9553f80f8560620c2e5bdc8cb
4
+ data.tar.gz: '09f528a63d12ccda460fa09c8bf60716bb6b9aa6'
5
5
  SHA512:
6
- metadata.gz: 9e93dcc536cdc6e56a4dfbbf943693e8186e61544964aec5192a4a859a57ae0d0cc98f048d72a78f7ad0f5a06cdf075d6bbb0791d0167743cef9a3c6fbe7d4ed
7
- data.tar.gz: c2e1fd7ab8f1670a8aa5a7e520f88faa00c35da7ea704d1667d16cc14c8b21bedefbb68d555f1261e81d3b65d635e07fa4a6d0de4ad22b7366c75f770f529175
6
+ metadata.gz: 723ca014455dcbe8d4a9f1b8c79b66016376adb1fdd7a8487555afeeb6e5317af80982f1273240da0f25c5c4d06c41588f347f22206ef4182928b209a5ae49f5
7
+ data.tar.gz: 5124e92e641f713b409b4b478784043ab9db812da015c62eada880af154aac3ff30f696218ae69bc3c6c81bc392f2bccc86df7852fb9be4ab48d6f1c13209f2c
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-comprehendmedical/customizations'
42
42
  # @service
43
43
  module Aws::ComprehendMedical
44
44
 
45
- GEM_VERSION = '1.12.0'
45
+ GEM_VERSION = '1.13.0'
46
46
 
47
47
  end
@@ -390,31 +390,35 @@ module Aws::ComprehendMedical
390
390
  # resp.entities[0].end_offset #=> Integer
391
391
  # resp.entities[0].score #=> Float
392
392
  # resp.entities[0].text #=> String
393
- # resp.entities[0].category #=> String, one of "MEDICATION", "MEDICAL_CONDITION", "PROTECTED_HEALTH_INFORMATION", "TEST_TREATMENT_PROCEDURE", "ANATOMY"
394
- # resp.entities[0].type #=> String, one of "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"
393
+ # resp.entities[0].category #=> String, one of "MEDICATION", "MEDICAL_CONDITION", "PROTECTED_HEALTH_INFORMATION", "TEST_TREATMENT_PROCEDURE", "ANATOMY", "TIME_EXPRESSION"
394
+ # resp.entities[0].type #=> String, one of "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", "TIME_EXPRESSION", "TIME_TO_MEDICATION_NAME", "TIME_TO_DX_NAME", "TIME_TO_TEST_NAME", "TIME_TO_PROCEDURE_NAME", "TIME_TO_TREATMENT_NAME"
395
395
  # resp.entities[0].traits #=> Array
396
396
  # resp.entities[0].traits[0].name #=> String, one of "SIGN", "SYMPTOM", "DIAGNOSIS", "NEGATION"
397
397
  # resp.entities[0].traits[0].score #=> Float
398
398
  # resp.entities[0].attributes #=> Array
399
- # resp.entities[0].attributes[0].type #=> String, one of "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"
399
+ # resp.entities[0].attributes[0].type #=> String, one of "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", "TIME_EXPRESSION", "TIME_TO_MEDICATION_NAME", "TIME_TO_DX_NAME", "TIME_TO_TEST_NAME", "TIME_TO_PROCEDURE_NAME", "TIME_TO_TREATMENT_NAME"
400
400
  # resp.entities[0].attributes[0].score #=> Float
401
401
  # resp.entities[0].attributes[0].relationship_score #=> Float
402
+ # resp.entities[0].attributes[0].relationship_type #=> String, one of "EVERY", "WITH_DOSAGE", "ADMINISTERED_VIA", "FOR", "NEGATIVE", "OVERLAP", "DOSAGE", "ROUTE_OR_MODE", "FORM", "FREQUENCY", "DURATION", "STRENGTH", "RATE", "ACUITY", "TEST_VALUE", "TEST_UNITS", "DIRECTION"
402
403
  # resp.entities[0].attributes[0].id #=> Integer
403
404
  # resp.entities[0].attributes[0].begin_offset #=> Integer
404
405
  # resp.entities[0].attributes[0].end_offset #=> Integer
405
406
  # resp.entities[0].attributes[0].text #=> String
407
+ # resp.entities[0].attributes[0].category #=> String, one of "MEDICATION", "MEDICAL_CONDITION", "PROTECTED_HEALTH_INFORMATION", "TEST_TREATMENT_PROCEDURE", "ANATOMY", "TIME_EXPRESSION"
406
408
  # resp.entities[0].attributes[0].traits #=> Array
407
409
  # resp.entities[0].attributes[0].traits[0].name #=> String, one of "SIGN", "SYMPTOM", "DIAGNOSIS", "NEGATION"
408
410
  # resp.entities[0].attributes[0].traits[0].score #=> Float
409
411
  # resp.unmapped_attributes #=> Array
410
- # resp.unmapped_attributes[0].type #=> String, one of "MEDICATION", "MEDICAL_CONDITION", "PROTECTED_HEALTH_INFORMATION", "TEST_TREATMENT_PROCEDURE", "ANATOMY"
411
- # resp.unmapped_attributes[0].attribute.type #=> String, one of "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"
412
+ # resp.unmapped_attributes[0].type #=> String, one of "MEDICATION", "MEDICAL_CONDITION", "PROTECTED_HEALTH_INFORMATION", "TEST_TREATMENT_PROCEDURE", "ANATOMY", "TIME_EXPRESSION"
413
+ # resp.unmapped_attributes[0].attribute.type #=> String, one of "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", "TIME_EXPRESSION", "TIME_TO_MEDICATION_NAME", "TIME_TO_DX_NAME", "TIME_TO_TEST_NAME", "TIME_TO_PROCEDURE_NAME", "TIME_TO_TREATMENT_NAME"
412
414
  # resp.unmapped_attributes[0].attribute.score #=> Float
413
415
  # resp.unmapped_attributes[0].attribute.relationship_score #=> Float
416
+ # resp.unmapped_attributes[0].attribute.relationship_type #=> String, one of "EVERY", "WITH_DOSAGE", "ADMINISTERED_VIA", "FOR", "NEGATIVE", "OVERLAP", "DOSAGE", "ROUTE_OR_MODE", "FORM", "FREQUENCY", "DURATION", "STRENGTH", "RATE", "ACUITY", "TEST_VALUE", "TEST_UNITS", "DIRECTION"
414
417
  # resp.unmapped_attributes[0].attribute.id #=> Integer
415
418
  # resp.unmapped_attributes[0].attribute.begin_offset #=> Integer
416
419
  # resp.unmapped_attributes[0].attribute.end_offset #=> Integer
417
420
  # resp.unmapped_attributes[0].attribute.text #=> String
421
+ # resp.unmapped_attributes[0].attribute.category #=> String, one of "MEDICATION", "MEDICAL_CONDITION", "PROTECTED_HEALTH_INFORMATION", "TEST_TREATMENT_PROCEDURE", "ANATOMY", "TIME_EXPRESSION"
418
422
  # resp.unmapped_attributes[0].attribute.traits #=> Array
419
423
  # resp.unmapped_attributes[0].attribute.traits[0].name #=> String, one of "SIGN", "SYMPTOM", "DIAGNOSIS", "NEGATION"
420
424
  # resp.unmapped_attributes[0].attribute.traits[0].score #=> Float
@@ -432,7 +436,8 @@ module Aws::ComprehendMedical
432
436
 
433
437
  # Inspects the clinical text for a variety of medical entities and
434
438
  # returns specific information about them such as entity category,
435
- # location, and confidence score on that information.
439
+ # location, and confidence score on that information. Amazon Comprehend
440
+ # Medical only detects medical entities in English language texts.
436
441
  #
437
442
  # The `DetectEntitiesV2` operation replaces the DetectEntities
438
443
  # operation. This new action uses a different model for determining the
@@ -469,31 +474,35 @@ module Aws::ComprehendMedical
469
474
  # resp.entities[0].end_offset #=> Integer
470
475
  # resp.entities[0].score #=> Float
471
476
  # resp.entities[0].text #=> String
472
- # resp.entities[0].category #=> String, one of "MEDICATION", "MEDICAL_CONDITION", "PROTECTED_HEALTH_INFORMATION", "TEST_TREATMENT_PROCEDURE", "ANATOMY"
473
- # resp.entities[0].type #=> String, one of "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"
477
+ # resp.entities[0].category #=> String, one of "MEDICATION", "MEDICAL_CONDITION", "PROTECTED_HEALTH_INFORMATION", "TEST_TREATMENT_PROCEDURE", "ANATOMY", "TIME_EXPRESSION"
478
+ # resp.entities[0].type #=> String, one of "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", "TIME_EXPRESSION", "TIME_TO_MEDICATION_NAME", "TIME_TO_DX_NAME", "TIME_TO_TEST_NAME", "TIME_TO_PROCEDURE_NAME", "TIME_TO_TREATMENT_NAME"
474
479
  # resp.entities[0].traits #=> Array
475
480
  # resp.entities[0].traits[0].name #=> String, one of "SIGN", "SYMPTOM", "DIAGNOSIS", "NEGATION"
476
481
  # resp.entities[0].traits[0].score #=> Float
477
482
  # resp.entities[0].attributes #=> Array
478
- # resp.entities[0].attributes[0].type #=> String, one of "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"
483
+ # resp.entities[0].attributes[0].type #=> String, one of "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", "TIME_EXPRESSION", "TIME_TO_MEDICATION_NAME", "TIME_TO_DX_NAME", "TIME_TO_TEST_NAME", "TIME_TO_PROCEDURE_NAME", "TIME_TO_TREATMENT_NAME"
479
484
  # resp.entities[0].attributes[0].score #=> Float
480
485
  # resp.entities[0].attributes[0].relationship_score #=> Float
486
+ # resp.entities[0].attributes[0].relationship_type #=> String, one of "EVERY", "WITH_DOSAGE", "ADMINISTERED_VIA", "FOR", "NEGATIVE", "OVERLAP", "DOSAGE", "ROUTE_OR_MODE", "FORM", "FREQUENCY", "DURATION", "STRENGTH", "RATE", "ACUITY", "TEST_VALUE", "TEST_UNITS", "DIRECTION"
481
487
  # resp.entities[0].attributes[0].id #=> Integer
482
488
  # resp.entities[0].attributes[0].begin_offset #=> Integer
483
489
  # resp.entities[0].attributes[0].end_offset #=> Integer
484
490
  # resp.entities[0].attributes[0].text #=> String
491
+ # resp.entities[0].attributes[0].category #=> String, one of "MEDICATION", "MEDICAL_CONDITION", "PROTECTED_HEALTH_INFORMATION", "TEST_TREATMENT_PROCEDURE", "ANATOMY", "TIME_EXPRESSION"
485
492
  # resp.entities[0].attributes[0].traits #=> Array
486
493
  # resp.entities[0].attributes[0].traits[0].name #=> String, one of "SIGN", "SYMPTOM", "DIAGNOSIS", "NEGATION"
487
494
  # resp.entities[0].attributes[0].traits[0].score #=> Float
488
495
  # resp.unmapped_attributes #=> Array
489
- # resp.unmapped_attributes[0].type #=> String, one of "MEDICATION", "MEDICAL_CONDITION", "PROTECTED_HEALTH_INFORMATION", "TEST_TREATMENT_PROCEDURE", "ANATOMY"
490
- # resp.unmapped_attributes[0].attribute.type #=> String, one of "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"
496
+ # resp.unmapped_attributes[0].type #=> String, one of "MEDICATION", "MEDICAL_CONDITION", "PROTECTED_HEALTH_INFORMATION", "TEST_TREATMENT_PROCEDURE", "ANATOMY", "TIME_EXPRESSION"
497
+ # resp.unmapped_attributes[0].attribute.type #=> String, one of "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", "TIME_EXPRESSION", "TIME_TO_MEDICATION_NAME", "TIME_TO_DX_NAME", "TIME_TO_TEST_NAME", "TIME_TO_PROCEDURE_NAME", "TIME_TO_TREATMENT_NAME"
491
498
  # resp.unmapped_attributes[0].attribute.score #=> Float
492
499
  # resp.unmapped_attributes[0].attribute.relationship_score #=> Float
500
+ # resp.unmapped_attributes[0].attribute.relationship_type #=> String, one of "EVERY", "WITH_DOSAGE", "ADMINISTERED_VIA", "FOR", "NEGATIVE", "OVERLAP", "DOSAGE", "ROUTE_OR_MODE", "FORM", "FREQUENCY", "DURATION", "STRENGTH", "RATE", "ACUITY", "TEST_VALUE", "TEST_UNITS", "DIRECTION"
493
501
  # resp.unmapped_attributes[0].attribute.id #=> Integer
494
502
  # resp.unmapped_attributes[0].attribute.begin_offset #=> Integer
495
503
  # resp.unmapped_attributes[0].attribute.end_offset #=> Integer
496
504
  # resp.unmapped_attributes[0].attribute.text #=> String
505
+ # resp.unmapped_attributes[0].attribute.category #=> String, one of "MEDICATION", "MEDICAL_CONDITION", "PROTECTED_HEALTH_INFORMATION", "TEST_TREATMENT_PROCEDURE", "ANATOMY", "TIME_EXPRESSION"
497
506
  # resp.unmapped_attributes[0].attribute.traits #=> Array
498
507
  # resp.unmapped_attributes[0].attribute.traits[0].name #=> String, one of "SIGN", "SYMPTOM", "DIAGNOSIS", "NEGATION"
499
508
  # resp.unmapped_attributes[0].attribute.traits[0].score #=> Float
@@ -510,8 +519,9 @@ module Aws::ComprehendMedical
510
519
  end
511
520
 
512
521
  # Inspects the clinical text for protected health information (PHI)
513
- # entities and entity category, location, and confidence score on that
514
- # information.
522
+ # entities and returns the entity category, location, and confidence
523
+ # score for each entity. Amazon Comprehend Medical only detects entities
524
+ # in English language texts.
515
525
  #
516
526
  # @option params [required, String] :text
517
527
  # A UTF-8 text string containing the clinical content being examined for
@@ -538,19 +548,21 @@ module Aws::ComprehendMedical
538
548
  # resp.entities[0].end_offset #=> Integer
539
549
  # resp.entities[0].score #=> Float
540
550
  # resp.entities[0].text #=> String
541
- # resp.entities[0].category #=> String, one of "MEDICATION", "MEDICAL_CONDITION", "PROTECTED_HEALTH_INFORMATION", "TEST_TREATMENT_PROCEDURE", "ANATOMY"
542
- # resp.entities[0].type #=> String, one of "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"
551
+ # resp.entities[0].category #=> String, one of "MEDICATION", "MEDICAL_CONDITION", "PROTECTED_HEALTH_INFORMATION", "TEST_TREATMENT_PROCEDURE", "ANATOMY", "TIME_EXPRESSION"
552
+ # resp.entities[0].type #=> String, one of "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", "TIME_EXPRESSION", "TIME_TO_MEDICATION_NAME", "TIME_TO_DX_NAME", "TIME_TO_TEST_NAME", "TIME_TO_PROCEDURE_NAME", "TIME_TO_TREATMENT_NAME"
543
553
  # resp.entities[0].traits #=> Array
544
554
  # resp.entities[0].traits[0].name #=> String, one of "SIGN", "SYMPTOM", "DIAGNOSIS", "NEGATION"
545
555
  # resp.entities[0].traits[0].score #=> Float
546
556
  # resp.entities[0].attributes #=> Array
547
- # resp.entities[0].attributes[0].type #=> String, one of "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"
557
+ # resp.entities[0].attributes[0].type #=> String, one of "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", "TIME_EXPRESSION", "TIME_TO_MEDICATION_NAME", "TIME_TO_DX_NAME", "TIME_TO_TEST_NAME", "TIME_TO_PROCEDURE_NAME", "TIME_TO_TREATMENT_NAME"
548
558
  # resp.entities[0].attributes[0].score #=> Float
549
559
  # resp.entities[0].attributes[0].relationship_score #=> Float
560
+ # resp.entities[0].attributes[0].relationship_type #=> String, one of "EVERY", "WITH_DOSAGE", "ADMINISTERED_VIA", "FOR", "NEGATIVE", "OVERLAP", "DOSAGE", "ROUTE_OR_MODE", "FORM", "FREQUENCY", "DURATION", "STRENGTH", "RATE", "ACUITY", "TEST_VALUE", "TEST_UNITS", "DIRECTION"
550
561
  # resp.entities[0].attributes[0].id #=> Integer
551
562
  # resp.entities[0].attributes[0].begin_offset #=> Integer
552
563
  # resp.entities[0].attributes[0].end_offset #=> Integer
553
564
  # resp.entities[0].attributes[0].text #=> String
565
+ # resp.entities[0].attributes[0].category #=> String, one of "MEDICATION", "MEDICAL_CONDITION", "PROTECTED_HEALTH_INFORMATION", "TEST_TREATMENT_PROCEDURE", "ANATOMY", "TIME_EXPRESSION"
554
566
  # resp.entities[0].attributes[0].traits #=> Array
555
567
  # resp.entities[0].attributes[0].traits[0].name #=> String, one of "SIGN", "SYMPTOM", "DIAGNOSIS", "NEGATION"
556
568
  # resp.entities[0].attributes[0].traits[0].score #=> Float
@@ -569,7 +581,8 @@ module Aws::ComprehendMedical
569
581
  # InferICD10CM detects medical conditions as entities listed in a
570
582
  # patient record and links those entities to normalized concept
571
583
  # identifiers in the ICD-10-CM knowledge base from the Centers for
572
- # Disease Control.
584
+ # Disease Control. Amazon Comprehend Medical only detects medical
585
+ # entities in English language texts.
573
586
  #
574
587
  # @option params [required, String] :text
575
588
  # The input text used for analysis. The input for InferICD10CM is a
@@ -629,7 +642,8 @@ module Aws::ComprehendMedical
629
642
 
630
643
  # InferRxNorm detects medications as entities listed in a patient record
631
644
  # and links to the normalized concept identifiers in the RxNorm database
632
- # from the National Library of Medicine.
645
+ # from the National Library of Medicine. Amazon Comprehend Medical only
646
+ # detects medical entities in English language texts.
633
647
  #
634
648
  # @option params [required, String] :text
635
649
  # The input text used for analysis. The input for InferRxNorm is a
@@ -1027,7 +1041,7 @@ module Aws::ComprehendMedical
1027
1041
  params: params,
1028
1042
  config: config)
1029
1043
  context[:gem_name] = 'aws-sdk-comprehendmedical'
1030
- context[:gem_version] = '1.12.0'
1044
+ context[:gem_version] = '1.13.0'
1031
1045
  Seahorse::Client::Request.new(handlers, context)
1032
1046
  end
1033
1047
 
@@ -71,6 +71,7 @@ module Aws::ComprehendMedical
71
71
  ModelVersion = Shapes::StringShape.new(name: 'ModelVersion')
72
72
  OntologyLinkingBoundedLengthString = Shapes::StringShape.new(name: 'OntologyLinkingBoundedLengthString')
73
73
  OutputDataConfig = Shapes::StructureShape.new(name: 'OutputDataConfig')
74
+ RelationshipType = Shapes::StringShape.new(name: 'RelationshipType')
74
75
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
75
76
  RxNormAttribute = Shapes::StructureShape.new(name: 'RxNormAttribute')
76
77
  RxNormAttributeList = Shapes::ListShape.new(name: 'RxNormAttributeList')
@@ -108,10 +109,12 @@ module Aws::ComprehendMedical
108
109
  Attribute.add_member(:type, Shapes::ShapeRef.new(shape: EntitySubType, location_name: "Type"))
109
110
  Attribute.add_member(:score, Shapes::ShapeRef.new(shape: Float, location_name: "Score"))
110
111
  Attribute.add_member(:relationship_score, Shapes::ShapeRef.new(shape: Float, location_name: "RelationshipScore"))
112
+ Attribute.add_member(:relationship_type, Shapes::ShapeRef.new(shape: RelationshipType, location_name: "RelationshipType"))
111
113
  Attribute.add_member(:id, Shapes::ShapeRef.new(shape: Integer, location_name: "Id"))
112
114
  Attribute.add_member(:begin_offset, Shapes::ShapeRef.new(shape: Integer, location_name: "BeginOffset"))
113
115
  Attribute.add_member(:end_offset, Shapes::ShapeRef.new(shape: Integer, location_name: "EndOffset"))
114
116
  Attribute.add_member(:text, Shapes::ShapeRef.new(shape: String, location_name: "Text"))
117
+ Attribute.add_member(:category, Shapes::ShapeRef.new(shape: EntityType, location_name: "Category"))
115
118
  Attribute.add_member(:traits, Shapes::ShapeRef.new(shape: TraitList, location_name: "Traits"))
116
119
  Attribute.struct_class = Types::Attribute
117
120
 
@@ -28,6 +28,12 @@ module Aws::ComprehendMedical
28
28
  # attribute is correctly related to this entity.
29
29
  # @return [Float]
30
30
  #
31
+ # @!attribute [rw] relationship_type
32
+ # The type of relationship between the entity and attribute. Type for
33
+ # the relationship is `OVERLAP`, indicating that the entity occurred
34
+ # at the same time as the `Date_Expression`.
35
+ # @return [String]
36
+ #
31
37
  # @!attribute [rw] id
32
38
  # The numeric identifier for this attribute. This is a monotonically
33
39
  # increasing id unique within this response rather than a global
@@ -50,6 +56,10 @@ module Aws::ComprehendMedical
50
56
  # The segment of input text extracted as this attribute.
51
57
  # @return [String]
52
58
  #
59
+ # @!attribute [rw] category
60
+ # The category of attribute.
61
+ # @return [String]
62
+ #
53
63
  # @!attribute [rw] traits
54
64
  # Contextual information for this attribute.
55
65
  # @return [Array<Types::Trait>]
@@ -60,10 +70,12 @@ module Aws::ComprehendMedical
60
70
  :type,
61
71
  :score,
62
72
  :relationship_score,
73
+ :relationship_type,
63
74
  :id,
64
75
  :begin_offset,
65
76
  :end_offset,
66
77
  :text,
78
+ :category,
67
79
  :traits)
68
80
  include Aws::Structure
69
81
  end
@@ -759,7 +771,7 @@ module Aws::ComprehendMedical
759
771
  include Aws::Structure
760
772
  end
761
773
 
762
- # The input properties for an entities detection job
774
+ # The input properties for an entities detection job.
763
775
  #
764
776
  # @note When making an API call, you may pass InputDataConfig
765
777
  # data as a hash:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-comprehendmedical
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0
4
+ version: 1.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-16 00:00:00.000000000 Z
11
+ date: 2020-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core