Skip to contents

Clinical Alert and Threshold Monitoring System provides real-time monitoring of clinical parameters with customizable alert thresholds and priority-based warnings for evidence-based clinical decision support.

Usage

clinicalalerts(
  data,
  clinicalVars,
  patientId,
  timeVar,
  alert_summary = TRUE,
  detailed_alerts = TRUE,
  clinical_recommendations = TRUE,
  patient_analysis = FALSE,
  trend_analysis = FALSE,
  use_clinical_defaults = TRUE,
  custom_thresholds = FALSE,
  include_medium_priority = TRUE,
  include_low_priority = FALSE,
  confidence_level = 0.95,
  alert_dashboard = TRUE,
  threshold_plots = FALSE,
  trend_plots = FALSE,
  interpretation_guide = TRUE,
  evidence_references = FALSE,
  quality_metrics = FALSE
)

Arguments

data

.

clinicalVars

Clinical variables to monitor (laboratory values, vital signs, etc.)

patientId

Patient identifier for patient-specific monitoring (optional)

timeVar

Time variable for longitudinal monitoring (optional)

alert_summary

Show summary of alerts by priority level

detailed_alerts

Show detailed table of all threshold violations

clinical_recommendations

Show evidence-based clinical recommendations

patient_analysis

Show per-patient alert analysis (requires Patient ID)

trend_analysis

Show temporal patterns in alerts (requires Time Variable)

use_clinical_defaults

Use evidence-based clinical default thresholds

custom_thresholds

Enable custom threshold configuration

include_medium_priority

Include medium priority threshold violations

include_low_priority

Include low priority threshold violations

confidence_level

Confidence level for statistical calculations

alert_dashboard

Create visual dashboard of alert status

threshold_plots

Create plots showing threshold violations

trend_plots

Create trend plots over time (requires Time Variable)

interpretation_guide

Show clinical interpretation guidelines

evidence_references

Show references for threshold recommendations

quality_metrics

Show quality assurance and safety metrics

Value

A results object containing:

results$todoa html
results$summarya html
results$alertSummarya table
results$detailedAlertsa table
results$clinicalRecommendationsa table
results$patientAnalysisa table
results$trendAnalysisa table
results$alertDashboardan image
results$thresholdPlotsan image
results$trendPlotsan image
results$interpretationGuidea html
results$evidenceReferencesa html
results$qualityMetricsa html
results$technicalNotesa html

Tables can be converted to data frames with asDF or as.data.frame. For example:

results$alertSummary$asDF

as.data.frame(results$alertSummary)

Examples

data('histopathology', package='ClinicoPath')

# Basic clinical alert monitoring
clinicalalerts(histopathology,
             clinicalVars = 'Age',
             alert_summary = TRUE,
             detailed_alerts = TRUE)