Skip to main content

MScore: Risk Scores Made Easy

Project description


MSCORE™ is a python package designed to streamline the CMS-HCC model risk score calculation process for health plans and providers participating in Medicare Advantage and value-based care. It provides a SAS®-free alternative to produce HCCs and risk scores. It streamlines your data processing for enhanced accessibility and allows you to keep your data secure in-house, so you can focus on execution of your risk adjustment strategy.

Features

  • Implement Anywhere: MSCORE™ unlocks multiple integration opportunities including real-time scoring, embedding in EHR or enterprise data warehouse, incorporating into cloud applications, and traditional batch scoring.
  • SAS®-Free: Create HCC and risk scores without SAS® software, reduce software license costs and the headache of recoding and maintaining the software in another programming language.
  • Enhanced Output: MSCORE™ provides the numeric relative factor value for each HCC assigned to a person allowing for a deeper understanding of how each factor contributes to an individual's overall risk score.
  • Reliable: Validated on over 1 million plus enrollees. MSCORE™ is rigorously tested and updated with each HCC model release.
  • CMS-HCC Model Support: Supports HCC models V22, V24, and V28, covering payment years 2021-2025 with upgrades for each release from CMS (Initial, Mid-Year, Final).
  • Easy to Set Up & Maintain: Easily installed and upgraded using pip, Python's standard package manager.
  • Platform Compatibility: Compatible with Windows, Mac, and Linux operating systems.
  • Optimized Performance: Efficient processing with fast runtimes, ensuring quick and accurate risk score calculations.
  • Improved Data Security: Securely process personal health information within your organization's IT infrastructure.

Installation

pip install mscore

Registration

Registration is required to use the mscore package. Please visit https://riskadjustmentmodel.com/registration to create user account and obtain a license key.

Trial License

After you've installed mscore, run the following command to activate your free 90-day trial. An internet connection is required to activate & run the package.

mscore -a <license key>

Subscribe

To use MSCORE™ for internal business operations beyond the 90-day trial period, a pay-as-you-go subscription and payment method is needed. Please set up your payment method in our customer portal on the billing tab. To license MSCORE™ for commercial purposes other than internal business operations, please contact us directly for alternative licensing.

For more information on pricing, please see our product page. If you do not see a price you like, then please email us so we can discuss your requirements.

Academic users are eligible for a free license of our software. Please contact us to obtain your complimentary academic license.

Basic Use

Before you can run your scores, you will need to generate an authorization token object.

import sourcedefender  #This package is required at the top
from mscore import AuthorizeLicense, MScore

auth = AuthorizeLicense(staging_key).validate()

NOTE: You must import sourcedefender at the top of every package that imports MScore.

The mscore class requires 7 arguments in order to run with 2 optional arguments.

Required

  • authorizer - The authorization token obtained when AuthroizeLicense is ran
  • year
  • version
  • model
  • person_data (Pandas DataFrame, csv, or parquet file)
  • diag_data (Pandas DataFrame, csv, or parquet file)
  • columns

Optional

  • rf-output (boolean) - Generates a file of your scores Relative Factors
  • dev (boolean) - Runs the application in 'Development' mode

NOTE: The example below assumes you already have a Pandas DataFrame generated for your person and diagnosis datasets. If you don't have this data yet and want to test mscore, download our synthetic data files here:

import sourcedefender
import pandas as pd
from mscore import AuthorizeLicense, MScore

# Generate DataFrames if using our test files
person_df = pd.read_csv('person.csv')
diag_df = pd.read_csv('diag.csv')

auth = AuthorizeLicense(staging_key).validate()

model = MScore(
    authorizer = auth,
    year = '2024', 
    version = 'V24',
    model = 'CMS-HCC',
    person_data = person_df,
    diag_data = diag_df,
    columns = 'all-fields',
    rf_output = True,
)

v24_2024_scores = model.score_mscore()

print(v24_2024_scores.risk_scores)
print(v24_2024_scores.relative_factors)

The resulting 'v24_2024_scores' output is a data model object of pandas.DataFrames. You can access your risk scores or relative factors data sets by calling the respective model name from the grouped data model.

  • v24_2024_scores.risk_scores
  • v24_2024_scores.relative_factors

From here you can proceed to use the risk score or relative factor DataFrames for further downstream processing or utilize the Pandas built-in methods to save to a file type of your choosing.

Supported Data

The mscore class attributes, person_data and diag_data, will accept a Pandas.DataFrame object, CSV or Parquet filepath directly without the need to load your input data to DataFrame first. The resulting outputs will be a Pandas DataFrame object.

Supported Environments

MSCORE™ is designed to be universally compatible, ensuring seamless integration across various platforms.

• Operating Systems: Windows, macOS, Linux • Python Versions: 3.10 or greater (both 32-bit and 64-bit architectures)

If your required environment is not listed, please contact us as support@riskadjustmentmodel.com for an alternate solution.

User Resources

For a more in-depth dive into all available model options, arguments, and reference documents, visit our User Guides.

Support

We are experts in Risk Adjustment and we're here to help. Whether it's general questions, billing, or integration support, please contact us📧. We are here to make risk scoring easy.

Stay Connected

Please subscribe to our newsletter, to receive updates on new MSCORE™ features, model releases, tutorials, and to stay up-to-date on the latest news in risk adjustment.

Legal

To review the MSCORE™ license agreement, please visit EULA webpage.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mscore-25.0.1.tar.gz (1.4 MB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page