404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.15.226.5: ~ $
**Example: To detect entities and link to the SNOMED CT Ontology directly from text**

The following ``infer-snomedct`` example shows how to detect medical entities and link them to concepts from the 2021-03 version of the Systematized Nomenclature of Medicine, Clinical Terms (SNOMED CT). ::

    aws comprehendmedical infer-snomedct \
        --text "The patient complains of abdominal pain, has a long-standing history of diabetes treated with Micronase daily."

Output::

    {
        "Entities": [
            {
                "Id": 3,
                "BeginOffset": 26,
                "EndOffset": 40,
                "Score": 0.9598260521888733,
                "Text": "abdominal pain",
                "Category": "MEDICAL_CONDITION",
                "Type": "DX_NAME",
                "Traits": [
                    {
                        "Name": "SYMPTOM",
                        "Score": 0.6819021701812744
                    }
                ]
            },
            {
                "Id": 4,
                "BeginOffset": 73,
                "EndOffset": 81,
                "Score": 0.9905840158462524,
                "Text": "diabetes",
                "Category": "MEDICAL_CONDITION",
                "Type": "DX_NAME",
                "Traits": [
                    {
                        "Name": "DIAGNOSIS",
                        "Score": 0.9255214333534241
                    }
                ]
            },
            {
                "Id": 1,
                "BeginOffset": 95,
                "EndOffset": 104,
                "Score": 0.6371926665306091,
                "Text": "Micronase",
                "Category": "MEDICATION",
                "Type": "BRAND_NAME",
                "Traits": [],
                "Attributes": [
                    {
                        "Type": "FREQUENCY",
                        "Score": 0.9761165380477905,
                        "RelationshipScore": 0.9984188079833984,
                        "RelationshipType": "FREQUENCY",
                        "Id": 2,
                        "BeginOffset": 105,
                        "EndOffset": 110,
                        "Text": "daily",
                        "Category": "MEDICATION",
                        "Traits": []
                    }
                ]
            }
        ],
        "UnmappedAttributes": [],
        "ModelVersion": "1.0.0"
    }

For more information, see `InferSNOMEDCT <https://docs.aws.amazon.com/comprehend-medical/latest/dev/ontology-linking-snomed.html>`__ in the *Amazon Comprehend Medical Developer Guide*.

Filemanager

Name Type Size Permission Actions
describe-entities-detection-v2-job.rst File 1.34 KB 0644
describe-icd10-cm-inference-job.rst File 1.32 KB 0644
describe-phi-detection-job.rst File 1.33 KB 0644
describe-rx-norm-inference-job.rst File 1.31 KB 0644
describe-snomedct-inference-job.rst File 1.32 KB 0644
detect-entities-v2.rst File 1.66 KB 0644
detect-phi.rst File 3.47 KB 0644
infer-icd10-cm.rst File 8.28 KB 0644
infer-rx-norm.rst File 10.38 KB 0644
infer-snomedct.rst File 2.54 KB 0644
list-entities-detection-v2-jobs.rst File 1.34 KB 0644
list-icd10-cm-inference-jobs.rst File 1.37 KB 0644
list-phi-detection-jobs.rst File 1.35 KB 0644
list-rx-norm-inference-jobs.rst File 1.35 KB 0644
list-snomedct-inference-jobs.rst File 1.36 KB 0644
start-entities-detection-v2-job.rst File 720 B 0644
start-icd10-cm-inference-job.rst File 739 B 0644
start-phi-detection-job.rst File 702 B 0644
start-rx-norm-inference-job.rst File 731 B 0644
start-snomedct-inference-job.rst File 740 B 0644
stop-entities-detection-v2-job.rst File 521 B 0644
stop-icd10-cm-inference-job.rst File 543 B 0644
stop-phi-detection-job.rst File 560 B 0644
stop-rx-norm-inference-job.rst File 538 B 0644
stop-snomedct-inference-job.rst File 541 B 0644