404

[ Avaa Bypassed ]




Upload:

Command:

botdev@18.216.241.11: ~ $
**Example 1: To detect protected health information (PHI) directly from text**

The following ``detect-phi`` example displays the detected protected health information (PHI) entities directly from input text. ::

    aws comprehendmedical detect-phi \
        --text "Patient Carlos Salazar presented with rash on his upper extremities and dry cough. He lives at 100 Main Street, Anytown, USA where he works from his home as a carpenter."

Output::

    {
        "Entities": [
            {
                "Id": 0,
                "BeginOffset": 8,
                "EndOffset": 21,
                "Score": 0.9914507269859314,
                "Text": "Carlos Salazar",
                "Category": "PROTECTED_HEALTH_INFORMATION",
                "Type": "NAME",
                "Traits": []
            },
            {
                "Id": 1,
                "BeginOffset": 94,
                "EndOffset": 109,
                "Score": 0.871849775314331,
                "Text": "100 Main Street, Anytown, USA",
                "Category": "PROTECTED_HEALTH_INFORMATION",
                "Type": "ADDRESS",
                "Traits": []
            },
            {
                "Id": 2,
                "BeginOffset": 145,
                "EndOffset": 154,
                "Score": 0.8302185535430908,
                "Text": "carpenter",
                "Category": "PROTECTED_HEALTH_INFORMATION",
                "Type": "PROFESSION",
                "Traits": []
            }
        ],
        "ModelVersion": "0.0.0"
    }

For more information, see `Detect PHI <https://docs.aws.amazon.com/comprehend-medical/latest/dev/textanalysis-phi.html>`__ in the *Amazon Comprehend Medical Developer Guide*.

**Example 2: To detect protect health information (PHI) directly from a file path**

The following ``detect-phi`` example shows the detected protected health information (PHI) entities from a file path. ::

    aws comprehendmedical detect-phi \
        --text file://phi.txt

Contents of ``phi.txt``::

    "Patient Carlos Salazar presented with a rash on his upper extremities and a dry cough. He lives at 100 Main Street, Anytown, USA, where he works from his home as a carpenter."

Output::

    {
        "Entities": [
            {
                "Id": 0,
                "BeginOffset": 8,
                "EndOffset": 21,
                "Score": 0.9914507269859314,
                "Text": "Carlos Salazar",
                "Category": "PROTECTED_HEALTH_INFORMATION",
                "Type": "NAME",
                "Traits": []
            },
            {
                "Id": 1,
                "BeginOffset": 94,
                "EndOffset": 109,
                "Score": 0.871849775314331,
                "Text": "100 Main Street, Anytown, USA",
                "Category": "PROTECTED_HEALTH_INFORMATION",
                "Type": "ADDRESS",
                "Traits": []
            },
            {
                "Id": 2,
                "BeginOffset": 145,
                "EndOffset": 154,
                "Score": 0.8302185535430908,
                "Text": "carpenter",
                "Category": "PROTECTED_HEALTH_INFORMATION",
                "Type": "PROFESSION",
                "Traits": []
            }
        ],
        "ModelVersion": "0.0.0"
    }

For more information, see `Detect PHI <https://docs.aws.amazon.com/comprehend/latest/dg/how-medical-phi.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