AgentSkillsCN

hypertension

高血压管理——监测血压、评估靶器官损伤、进行心血管风险评估,以及追踪用药情况。

SKILL.md
--- frontmatter
name: hypertension
description: Hypertension management - blood pressure monitoring, target organ damage assessment, cardiovascular risk evaluation, and medication tracking
argument-hint: <operation_type+info, e.g.: record 135/85, trend, average, risk assessment, kidney uacr 15>
allowed-tools: Read, Write
schema: hypertension/schema.json

Hypertension Management Skill

Comprehensive blood pressure monitoring and management to help control blood pressure and reduce cardiovascular risk.

Core Flow

code
User Input -> Identify Operation Type -> Extract Parameter Info -> Check Completeness -> [Need Supplement] Ask User
                                                      |
                                                   [Information Complete]
                                                      |
                                              Generate JSON -> Save Data -> Output Confirmation

Step 1: Parse User Input

Operation Type Recognition

Input KeywordsOperation TypeDescription
record, bp, blood pressurebp_recordLog blood pressure
trendtrend_analysisView blood pressure trend
averageaverage_calculationCalculate average BP
historyhistory_viewView history records
statusstatus_viewView achievement status
riskrisk_assessmentCardiovascular risk assessment
targettarget_viewView BP targets
heartheart_assessmentHeart assessment record
kidneykidney_assessmentKidney assessment record
retinaretina_assessmentRetina assessment record
medicationmedication_managementMedication management

Blood Pressure Value Parsing

Recognize format: XXX/YY or XXX YY

  • Systolic: First value
  • Diastolic: Second value

Measurement Time Keywords

Input KeywordsTime Value
morningmorning
eveningevening
noonnoon
nightnight

Measurement Position Keywords

Input KeywordsPosition Value
sittingsitting
standingstanding
lyinglying

Measurement Arm Keywords

Input KeywordsArm Value
leftleft
rightright

Target Organ Assessment Keywords

Heart Assessment

Input KeywordsExam Type
echoechocardiogram
ecgecg
lvhleft_ventricular_hypertrophy

Kidney Assessment

Input KeywordsIndicator
uacruacr
egfregfr
creatininecreatinine

Retina Assessment

Input KeywordsGrade
grade-0grade_0
grade-1grade_1
grade-2grade_2
grade-3grade_3
grade-4grade_4

Step 2: Check Information Completeness

BP Record Required:

  • Systolic (mmHg)
  • Diastolic (mmHg)

Target Organ Assessment Required:

  • Assessment type
  • Assessment result

Cardiovascular Risk Assessment Needs:

  • Age
  • Gender
  • Systolic BP
  • Smoking status
  • Diabetes status
  • Total cholesterol
  • HDL cholesterol
  • Antihypertensive treatment status

Step 3: Interactive Prompts (If Needed)

Scenario A: Incomplete BP Values

code
Please provide complete BP reading, format: systolic/diastolic
Example: 135/85

Scenario B: Additional Information Inquiry

code
Please supplement the following information (optional):
- Heart rate (pulse XX)
- Measurement time (morning/evening)
- Measurement position (sitting/standing/lying)
- Measurement arm (left/right)

Scenario C: Missing Target Organ Assessment Parameters

code
Please provide assessment results:
- Echocardiogram: normal/abnormal/lvh
- ECG: normal/abnormal
- Urine microalbumin (UACR): value (mg/g)
- eGFR: value (ml/min/1.73m²)
- Retina grade: grade_0-4

Step 4: Generate JSON

Blood Pressure Record

json
{
  "id": "bp_20250102080000001",
  "date": "2025-01-02",
  "time": "08:00",
  "systolic": 135,
  "diastolic": 85,
  "pulse": 78,
  "position": "sitting",
  "measurement_device": "home_monitor",
  "arm": "left",
  "classification": "High-normal",
  "in_target": false
}

Target Organ Damage Assessment

json
{
  "left_ventricular_hypertrophy": {
    "status": "none",
    "last_assessment": "2025-01-15",
    "method": "echocardiogram"
  },
  "microalbuminuria": {
    "status": "negative",
    "uacr": 15,
    "reference": "<30",
    "date": "2025-06-10"
  },
  "retinopathy": {
    "grade": "grade_0",
    "last_exam": "2025-03-20"
  },
  "arterial_stiffness": {
    "pwv": 7.5,
    "reference": "<10",
    "date": "2025-02-15"
  }
}

Cardiovascular Risk Assessment

json
{
  "assessment_date": "2025-06-20",
  "ascvd_risk_score": 12.5,
  "risk_level": "High",
  "risk_factors": [
    "Hypertension",
    "Age >55",
    "Elevated total cholesterol"
  ],
  "recommendations": [
    "Strict BP control",
    "Statin therapy",
    "Lifestyle intervention"
  ]
}

Complete schema definition: see schema.json.

Step 5: Save Data

  1. Read data/hypertension-tracker.json
  2. Update corresponding sections based on operation type
  3. Update statistics
  4. Write back to file

Execution Instructions

code
1. Identify operation type (record/trend/average/history/status/risk/target/heart/kidney/retina/medication)
2. Extract parameter information
3. Check required field completeness
4. If missing, ask user to supplement
5. Generate JSON compliant with schema.json
6. Save to data/hypertension-tracker.json
7. Output confirmation and medical recommendations

Example Interactions

Example 1: Record Blood Pressure

code
User: record 135/85 pulse 78

AI: Blood pressure measurement recorded
Time: 2025-01-02 08:00
Systolic: 135 mmHg
Diastolic: 85 mmHg
Pulse: 78 bpm
Classification: High-normal

Target: <130/80 mmHg
Status: Not on target (elevated systolic)

Recommendation: Reduce sodium intake, exercise regularly, monitor regularly

Example 2: View Blood Pressure Trend

code
User: trend

AI: Blood pressure trend analysis (past 7 days)
━━━━━━━━━━━━━━━━━━━━━━━━━━
Average BP: 132/83 mmHg
Morning average: 135/85 mmHg
Evening average: 128/80 mmHg

Circadian rhythm: Dipper (normal)
Achievement rate: 71.4%

Trend: BP control stable, morning BP slightly elevated

Recommendation: Continue monitoring, pay attention to morning BP control

Example 3: Cardiovascular Risk Assessment

code
User: risk

AI: Cardiovascular Risk Assessment
━━━━━━━━━━━━━━━━━━━━━━━━━━
10-year ASCVD risk: 12.5%
Risk level: High

Major risk factors:
- Hypertension (currently poorly controlled)
- Age >55
- Elevated total cholesterol

Recommendations:
1. Strict BP control to target
2. Consider statin therapy
3. Low-salt diet, regular exercise
4. Quit smoking, limit alcohol

Recommendation: Seek medical attention soon, consult doctor for treatment adjustment

Example 4: View Achievement Status

code
User: status

AI: Blood Pressure Achievement Report
━━━━━━━━━━━━━━━━━━━━━━━━━━
BP Target: <130/80 mmHg

Past 7 days:
- Average BP: 132/83 mmHg
- Days on target: 5/7 (71.4%)
- Achievement rate: 71.4%

Past 30 days:
- Average BP: 128/81 mmHg
- Days on target: 22/30 (73.3%)
- Achievement rate: 73.3%

Control Evaluation: BP control approaching target, keep working

For more examples, see examples.md.

Medical Safety Boundaries

Cannot Do:

  • Provide specific medication dosage adjustment recommendations
  • Directly prescribe or recommend specific medications
  • Replace doctor's diagnosis and treatment decisions
  • Predict disease prognosis or complication occurrence

Can Do:

  • Provide blood pressure monitoring records and trend analysis
  • Provide target organ damage assessment records
  • Provide cardiovascular risk calculation (for reference only)
  • Provide lifestyle recommendations and medical visit reminders

Emergency Medical Indications:

  • Systolic >=180 mmHg AND diastolic >=120 mmHg
  • Accompanied by chest pain, difficulty breathing, speech difficulty
  • Headache, confusion, vision changes
  • Facial or limb numbness/weakness