技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
diabetes-panel-review【数据与研究】Pulls and interprets diabetes-related labs (HbA1c, glucose, lipids, renal, microalbumin) with ADA Standards of Care assessment and complications screening status. Use when user asks to "review diabetes labs", "check A1c", "diabetes panel", "glucose control", "diabetes management review", "diabetic screening", or needs assessment of glycemic control a…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Pull all diabetes-relevant laboratory Observations: HbA1c, fasting glucose, random glucose, urine microalbumin, urine albumin-to-creatinine ratio, lipid panel, eGFR, creatinine, and serum potassium. Trend HbA1c over time. Classify glycemic control per ADA Standards of Care 2024 targets. Assess complications screening status for retinopathy, nephropathy, and neuropathy. Evaluate cardiovascular risk factors. Generate a structured diabetes management summary with actionable recommendations.
| Resource | Purpose | Key Fields |
|---|---|---|
| Observation | Lab results (HbA1c, glucose, lipids, renal, urine) | code, valueQuantity, effectiveDateTime, interpretation, referenceRange |
| Condition | Diabetes diagnosis and complications | code, clinicalStatus, onsetDateTime |
| MedicationStatement | Diabetes medications | medicationCodeableConcept, status, dosage |
| Procedure | Screening procedures (eye exam, foot exam) | code, performedDateTime, status |
| Patient | Demographics for target individualization | birthDate, gender |
| CarePlan | Existing diabetes care plans | status, activity, period |
Tool: fhir_search
resourceType: "Condition"
queryParams: "patient=[patient-id]&code=http://snomed.info/sct|44054006,http://snomed.info/sct|73211009,http://snomed.info/sct|46635009&clinical-status=active"
SNOMED codes:
If no Condition found, check for HbA1c >= 6.5% or diabetes medications as proxy evidence. Note the diagnosis gap.
Extract onsetDateTime to determine disease duration (affects target selection).
Tool: fhir_read
resourceType: "Patient"
id: "[patient-id]"
Extract age. Age determines A1c target individualization:
Tool: fhir_search
resourceType: "Observation"
queryParams: "patient=[patient-id]&code=4548-4&_sort=-date&_count=10"
LOINC 4548-4 = Hemoglobin A1c. Retrieve up to 10 values to build a trend (approximately 2.5 years at quarterly intervals).
Classify most recent HbA1c:
Calculate:
Tool: fhir_search
resourceType: "Observation"
queryParams: "patient=[patient-id]&code=2345-7,1558-6,2339-0&date=ge[90-days-ago]&_sort=-date&_count=20"
LOINC codes:
Assess:
Tool: fhir_search
resourceType: "Observation"
queryParams: "patient=[patient-id]&code=33914-3,14959-1,2160-0,48642-3,69405-9&_sort=-date&_count=5"
LOINC codes:
Classify albuminuria (ADA/KDIGO):
Screening interval: annually for Type 2 (from diagnosis), Type 1 (after 5 years duration).
Tool: fhir_search
resourceType: "Observation"
queryParams: "patient=[patient-id]&code=2093-3,18262-6,2085-9,2571-8&_sort=-date&_count=5"
LOINC codes:
ADA targets for diabetes:
Retinopathy:
Tool: fhir_search
resourceType: "Procedure"
queryParams: "patient=[patient-id]&code=http://snomed.info/sct|274795007,http://snomed.info/sct|252779009&_sort=-date&_count=1"
SNOMED 274795007 = Examination of retina, 252779009 = Dilated fundus examination. Screening interval: annually (may extend to biennial if no retinopathy on two consecutive exams).
Foot Exam:
Tool: fhir_search
resourceType: "Procedure"
queryParams: "patient=[patient-id]&code=http://snomed.info/sct|401191002,http://snomed.info/sct|284473002&_sort=-date&_count=1"
SNOMED 401191002 = Diabetic foot examination, 284473002 = Foot examination. Screening interval: annually (every visit if peripheral neuropathy or PAD present).
Neuropathy assessment -- check for monofilament testing or nerve conduction:
Tool: fhir_search
resourceType: "Procedure"
queryParams: "patient=[patient-id]&code=http://snomed.info/sct|165242009&_sort=-date&_count=1"
SNOMED 165242009 = Peripheral nerve function test.
Tool: fhir_search
resourceType: "MedicationStatement"
queryParams: "patient=[patient-id]&status=active"
Categorize diabetes medications:
Assess medication escalation per ADA algorithm:
DIABETES PANEL REVIEW -- [Patient Name] ([Age][Sex])
=====================================================
Diagnosis: [Type 1/Type 2] Diabetes Mellitus
Duration: [years since onset]
A1c Target: [individualized target with rationale]
GLYCEMIC CONTROL
================
Most Recent HbA1c: [value]% ([date]) -- [WELL-CONTROLLED / MODERATE / POORLY CONTROLLED]
Estimated Average Glucose: [eAG] mg/dL
A1c Trend:
[date1]: [value]%
[date2]: [value]%
[date3]: [value]%
[date4]: [value]%
Direction: [improving / stable / worsening]
Recent Glucose Values:
Fasting range: [min]-[max] mg/dL (target 80-130)
Episodes < 70 mg/dL: [count] (hypoglycemia Level 1)
Episodes < 54 mg/dL: [count] (hypoglycemia Level 2)
NEPHROPATHY SCREENING
=====================
eGFR: [value] mL/min/1.73m2 ([date]) -- CKD Stage [stage]
UACR: [value] mg/g ([date]) -- Albuminuria Category [A1/A2/A3]
Last screening: [date] ([months] ago) -- [CURRENT / OVERDUE]
LIPID PANEL
============
Total Cholesterol: [value] mg/dL
LDL: [value] mg/dL (target < [70 or 100]) [AT GOAL / ABOVE GOAL]
HDL: [value] mg/dL
Triglycerides: [value] mg/dL (target < 150)
COMPLICATIONS SCREENING STATUS
===============================
Retinal Exam: [date] -- [CURRENT / OVERDUE by X months]
Foot Exam: [date] -- [CURRENT / OVERDUE by X months]
Neuropathy Screen: [date] -- [CURRENT / OVERDUE]
CURRENT MEDICATIONS
===================
[medication list with doses]
RECOMMENDATIONS
===============
1. [Glycemic management recommendation]
2. [Screening recommendation if overdue]
3. [Medication adjustment if indicated]
4. [Referral if needed]
User says: "Review diabetes labs for patient 22190"
Actions:
fhir_search Condition?patient=22190&code=http://snomed.info/sct|44054006&clinical-status=active -- Type 2 DM, onset 2019fhir_read Patient/22190 -- 58-year-old femalefhir_search Observation?patient=22190&code=4548-4&_sort=-date&_count=10 -- A1c values: 6.8%, 6.9%, 7.2%, 7.5% (improving trend)fhir_search Observation?patient=22190&code=48642-3&_sort=-date&_count=5 -- UACR 18 mg/g (A1 normal)fhir_search Observation?patient=22190&code=33914-3&_sort=-date&_count=5 -- eGFR 82 (G2)fhir_search Observation?patient=22190&code=18262-6&_sort=-date&_count=5 -- LDL 88 mg/dLfhir_search Procedure?patient=22190&code=http://snomed.info/sct|274795007&_sort=-date&_count=1 -- retinal exam 8 months agofhir_search MedicationStatement?patient=22190&status=active -- metformin 1000mg BID, empagliflozin 10mg dailyResult: Well-controlled. A1c 6.8% (target < 7.0%), improving trend from 7.5% over 18 months. eGFR 82, UACR normal. LDL at goal. Retinal exam current. Foot exam overdue (> 12 months). Continue current regimen. Schedule foot exam.
User says: "Diabetes panel for patient def-440"
Actions:
fhir_search Condition?patient=def-440&code=http://snomed.info/sct|44054006&clinical-status=active -- Type 2 DM, onset 2015fhir_read Patient/def-440 -- 67-year-old malefhir_search Observation?patient=def-440&code=4548-4&_sort=-date&_count=10 -- A1c values: 9.4%, 9.1%, 8.8%, 8.5% (worsening)fhir_search Observation?patient=def-440&code=48642-3&_sort=-date&_count=5 -- UACR 185 mg/g (A2, moderately increased)fhir_search Observation?patient=def-440&code=33914-3&_sort=-date&_count=5 -- eGFR 52 (G3a)fhir_search Observation?patient=def-440&code=18262-6&_sort=-date&_count=5 -- LDL 142 mg/dLfhir_search Procedure?patient=def-440&code=http://snomed.info/sct|274795007&_sort=-date&_count=1 -- no retinal exam foundfhir_search MedicationStatement?patient=def-440&status=active -- metformin 500mg BID, glipizide 5mg dailyResult: Poorly controlled. A1c 9.4% (target < 8.0% given age/comorbidities), worsening trend. eGFR 52 with moderately increased albuminuria -- high risk of CKD progression. LDL 142, above target. Recommendations: (1) Add SGLT2 inhibitor (renal/CV protection, A1c reduction). (2) Discontinue glipizide, consider GLP-1 RA for A1c and weight. (3) Start or intensify statin -- high-intensity indicated. (4) Start ACEi/ARB for albuminuria if not already on one. (5) Urgent retinal exam referral -- never documented. (6) Schedule foot exam.
code.coding uses a local code system rather than LOINC. Search broadly: Observation?patient=[id]&code:text=a1c.Condition?patient=[id]&code=http://hl7.org/fhir/sid/icd-10-cm|E11.lab-result-interpreter -- for detailed interpretation of individual lab valuesrenal-function-dashboard -- for comprehensive CKD staging in diabetic nephropathycritical-value-alert-generator -- if glucose or potassium hits critical thresholdsmedication-reconciliation -- for full diabetes medication assessment