Functions for the Pediatric Medical Complexity Algorithm


PMCA

Date Last Modified

Tags




Publisher

PEDSnet

About

R functions including the complex chronic flag, number of body systems, progressive conditions and malignancy, with the most conservative version of the algorithm.

Access Package

Provenance

The algorithm was developed initially by Simon et. al. (Seattle Children's Research Institute) and repurposed as R functions by Hanieh Razzaghi (PEDSnet).

Developer Affiliation(s)

Description

The PMCA algorithm identifies children with complex chronic disease who have accessed tertiary hospital ED, day surgery, or inpatient care sites. These functions were adapted to R to improve use of the algorithm against the PEDSnet database. The PMCA functions include the following processes:

  • Produce a PMCA table of observations with a 3-year lookback from the observation_date.
  • Compute a table of visit counts for the prior 3 years and flag chronic/complex chronic conditions, malignancy, and progressive conditions for each body system identified for each patient in the cohort.
  • Compute the most conservative PMCA algorithm for the complex chronic flag.
  • Generate final patient-level flags indicating counts of progressive and malignant conditions, the complex chronic flag, and counts of body systems.
  • Generate flags indicating presence of PMCA body systems within the prior 3-year lookback period.

To read more about the original algorithm, see Simon et al (2018). To access the code, select the “View on GitHub” option below.

Clinical Subject Headings

Related Code

Related Concept Sets

Pediatric Medical Complexity Algorithm Diagnoses
Created:2025Affiliation:PEDSnet Data Coordinating Center
A comprehensive concept set of PMCA conditions, namely chronic diseases.

Related Studies

Related Phenotypes

Related Resources

PEDSnet Production Database
Created:2026-04
PEDSnet production database containing de-identified aggregate electronic healthcare information for ten contributing pediatric healthcare institutions. This database (2026-04) corresponds to Version 6.1 of the PEDSnet data model.
##### **Learn about how to access PEDSnet data for research [here](https://pedsnet.org/database/access-to-data/) or, submit a [collaboration request](https://pedsnet.org/work-with-us/collaboration-request/).**

Related Data Quality Check

Creative Commons license

Except where otherwised noted, this item's license is described as a CC-BY Attribution 4.0 license.

This license applies to the metadata and documentation of this digital package. The source code and software components may be governed by different licensing terms. Please refer to the GitHub repository link for specific software licensing information.

Cite this Code

Razzaghi, H. (2023, October). Functions for the Pediatric Medical Complexity Algorithm. [Code]. PEDSpace Knowledge Bank. https://hdl.handle.net/20.500.14642/1194