npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@gravityai-dev/aws-medical

v1.1.0

Published

AWS Comprehend Medical integration for Gravity workflow system - extract medical entities and PHI from clinical text

Downloads

23

Readme

@gravityai-dev/aws-medical

AWS Comprehend Medical integration plugin for the Gravity workflow system. Extract medical entities and PHI from clinical text using AWS Comprehend Medical.

Features

  • AWSComprehendMedical: Extract medical entities, PHI, and insights from clinical text
  • Support for both medical entities and PHI detection
  • Multiple output formats: raw JSON, simplified structure, or both
  • Optional S3 storage for analysis results
  • Full AWS SDK v3 integration with client caching
  • Comprehensive error handling and logging

Installation

npm install @gravityai-dev/aws-medical

Nodes

AWSComprehendMedical

Analyzes clinical text using AWS Comprehend Medical to extract medical entities, PHI, and insights.

Inputs:

  • text: Clinical text to analyze

Outputs:

  • result: Comprehend Medical analysis results (format based on settings)
  • outputKey: S3 key where results were saved (if saveToS3 is enabled)

Configuration:

  • text: The clinical text to analyze
  • analysisType: Type of analysis (Medical Entities Only, PHI Only, Both Entities and PHI)
  • outputFormat: Format of output data (Raw JSON, Simplified Structure, Both)
  • saveToS3: Save the analysis results to S3
  • outputPrefix: Prefix for S3 output files
  • language: Language of the clinical text (English)

Credentials

Requires AWS credentials with the following fields:

  • accessKeyId: Your AWS access key ID
  • secretAccessKey: Your AWS secret access key
  • region: AWS region (e.g., us-east-1)

Usage Example

  1. Add AWSComprehendMedical node to analyze clinical text
  2. Configure analysis type (entities, PHI, or both)
  3. Choose output format (raw JSON or simplified structure)
  4. Optionally save results to S3 for archival
  5. Process extracted medical information in downstream nodes

Medical Entity Types

The node can extract various medical entities including:

  • Medications: Dosage, frequency, strength, route, duration, form
  • Medical Conditions: Diagnoses, symptoms, medical history
  • Test Results: Lab values, test names, units, reference ranges
  • Procedures: Medical procedures, treatments, surgeries
  • Anatomy: Body parts, anatomical locations

PHI Detection

Detects and categorizes Protected Health Information (PHI):

  • Names: Patient names, healthcare provider names
  • Dates: Birth dates, appointment dates, treatment dates
  • Locations: Addresses, cities, states, countries
  • Identifiers: SSN, account numbers, device identifiers
  • Contact: Phone numbers, email addresses, URLs

Development

# Install dependencies
npm install

# Build the package
npm run build

# Run tests
npm test

License

MIT