Search in sources :

Example 1 with ComprehendMedicalClient

use of software.amazon.awssdk.services.comprehendmedical.ComprehendMedicalClient in project aws-doc-sdk-examples by awsdocs.

the class DetectPHI method main.

public static void main(String[] args) {
    String text = "Pt is 87 yo woman, highschool teacher with past medical history that includes\n" + "   - status post cardiac catheterization in April 2019.\n" + "She presents today with palpitations and chest pressure.\n" + "HPI : Sleeping trouble on present dosage of Clonidine. Severe Rash  on face and leg, slightly itchy  \n" + "Meds : Vyvanse 50 mgs po at breakfast daily, \n" + "            Clonidine 0.2 mgs -- 1 and 1 / 2 tabs po qhs \n" + "HEENT : Boggy inferior turbinates, No oropharyngeal lesion \n" + "Lungs : clear \n" + "Heart : Regular rhythm \n" + "Skin :  Mild erythematous eruption to hairline \n" + "\n" + "Follow-up as scheduled";
    Region region = Region.US_EAST_1;
    ComprehendMedicalClient medClient = ComprehendMedicalClient.builder().region(region).build();
    System.out.println("Calling Detect Medical Entities");
    detectPHIValues(medClient, text);
    medClient.close();
}
Also used : ComprehendMedicalClient(software.amazon.awssdk.services.comprehendmedical.ComprehendMedicalClient) Region(software.amazon.awssdk.regions.Region)

Example 2 with ComprehendMedicalClient

use of software.amazon.awssdk.services.comprehendmedical.ComprehendMedicalClient in project aws-doc-sdk-examples by awsdocs.

the class DetectMedicalEntities method main.

public static void main(String[] args) {
    String text = "Pt is 87 yo woman, highschool teacher with past medical history that includes\n" + "   - status post cardiac catheterization in April 2019.\n" + "She presents today with palpitations and chest pressure.\n" + "HPI : Sleeping trouble on present dosage of Clonidine. Severe Rash  on face and leg, slightly itchy  \n" + "Meds : Vyvanse 50 mgs po at breakfast daily, \n" + "            Clonidine 0.2 mgs -- 1 and 1 / 2 tabs po qhs \n" + "HEENT : Boggy inferior turbinates, No oropharyngeal lesion \n" + "Lungs : clear \n" + "Heart : Regular rhythm \n" + "Skin :  Mild erythematous eruption to hairline \n" + "\n" + "Follow-up as scheduled";
    Region region = Region.US_EAST_1;
    ComprehendMedicalClient medClient = ComprehendMedicalClient.builder().region(region).build();
    System.out.println("Calling Detect Medical Entities");
    detectAllEntities(medClient, text);
    medClient.close();
}
Also used : ComprehendMedicalClient(software.amazon.awssdk.services.comprehendmedical.ComprehendMedicalClient) Region(software.amazon.awssdk.regions.Region)

Aggregations

Region (software.amazon.awssdk.regions.Region)2 ComprehendMedicalClient (software.amazon.awssdk.services.comprehendmedical.ComprehendMedicalClient)2