Chuyển đến nội dung
Skillpedia
Phân tích và bảng tính5.8k · #14703

extracting-sdoh

Skill này làm gì

Skill này tìm các yếu tố xã hội ảnh hưởng đến sức khỏe, như vấn đề nhà ở, thiếu thực phẩm và rào cản đi lại, trong ghi chú lâm sàng, và gợi ý mã Z-code ICD-10 tương ứng. Dành cho đội chăm sóc và nhà phân tích công bằng sức khỏe cần các yếu tố này dưới dạng dữ liệu.

Khi nào nên dùng

  • ✓Khi một ghi chú mô tả rủi ro xã hội như thiếu nhà ở, thực phẩm hoặc phương tiện đến các buổi hẹn.
  • ✓Khi phân tích công bằng sức khỏe cần các yếu tố xã hội được ghi thành dữ liệu có cấu trúc.
  • ✓Khi các nhu cầu xã hội đã được ghi nhận có thể đang thiếu trong danh sách vấn đề đã mã hóa.

Liên kết skill

https://github.com/maziyarpanahi/openmed/blob/master/skills/extracting-sdoh/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/maziyarpanahi/openmed/blob/master/skills/extracting-sdoh/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Từ các ghi chú đã khử nhận dạng này, hãy tìm các vấn đề về nhà ở hoặc thực phẩm và gợi ý các Z-code tương ứng để người mã hóa xem xét.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent chạy trích xuất thực thể trên ghi chú đã khử nhận dạng, khớp các đoạn rủi ro xã hội với họ mã Z55 đến Z65, và trình bày gợi ý để một người gán mã.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Extracting SDOH and Mapping to ICD-10-CM Z-Codes

Social determinants of health (SDOH) — the conditions in which people live, work, and age — drive an estimated 80% of health outcomes, yet they live almost entirely in free-text narrative. Multiple chart-review studies find SDOH documented in notes but coded with a Z-code under ~2% of the time. The information is there; the structured signal is not. This skill recovers it: run OpenMed NER over de-identified notes, then map the resulting spans to the ICD-10-CM Z55–Z65 family.

When to use

  • A note clearly describes a social risk ("lives in her car", "skips meals to afford insulin", "no ride to dialysis") and you want a coded, queryable signal.
  • You are building health-equity dashboards, risk stratification, or closed-loop referral feeds and need SDOH as discrete data.
  • You want to reconcile what the chart says against what was coded, and flag Z-code gaps for a coder or care team to confirm.

This is a decision-support step. It proposes Z-codes; a human assigns them. SDOH coding is sensitive — never expose individual SDOH inferences outside the care/coding workflow, and never feed them to coverage or pricing decisions.

Quick start

De-identify first, run NER, then map spans to Z-codes:

import openmed
from sdoh_zcode_map import SDOH_ZCODES  # see references/sdoh_zcode_map.md

note = (
    "62F with CHF. Reports she lost her apartment last month and is "
    "staying in a shelter. Often runs out of food before month-end. "
    "No car; misses appointments because the bus does not run to clinic."
)

# 1) Strip PHI before any downstream processing or storage.
deid = openmed.deidentify(note, method="replace", policy="hipaa_safe_harbor")

# 2) Run clinical NER. Use an SDOH/clinical model from the registry; discover
#    available keys with openmed.get_models_by_category(...).
result = openmed.analyze_text(deid.text, output_format="dict")

# 3) Map each entity span to a candidate Z-code.
for ent in result["entities"]:
    code = SDOH_ZCODES.get(ent["label"].lower())
    if code:
        print(f"{ent['text']!r:40}  {ent['label']:18}  -> {code}")

analyze_text returns entities shaped as {"text", "label", "confidence", "start", "end", "metadata"}. The start/end offsets index into the text you passed in, so you can anchor every suggested Z-code back to its exact source span for human review.

Workflow

  1. De-identify the note with openmed.deidentify (HIPAA Safe Harbor or a stricter policy). SDOH text is dense with PHI (addresses, employer names).
  2. Extract entities with openmed.analyze_text. Pick a model whose label set covers social concepts; if your model only emits clinical findings, run a second pass with a zero-shot model (openmed zero) using SDOH labels such as housing_instability, food_insecurity, unemployment, transportation_barrier, social_isolation, financial_strain.
  3. Map spans to Z-codes using a curated lookup keyed by label (references/sdoh_zcode_map.md). Keep the span offsets and the model confidence on every suggestion.
  4. Stage for confirmation. Emit (span, label, suggested_code, confidence) tuples for a coder or the Gravity Project pipeline to accept or reject. Do not auto-bill a Z-code from an inference alone.
  5. Normalize to value sets. Align labels to the Gravity Project SDOH domains so codes are interoperable with FHIR (Condition, Observation, Goal) and USCDI v3 SDOH elements.

Z-code families you will hit most (ICD-10-CM Z55–Z65)

Domain Range Example
Education / literacy Z55 Z55.0 illiteracy
Employment Z56 Z56.0 unemployment
Occupational exposure Z57 —
Housing / economic Z59 Z59.0 homelessness, Z59.41 food insecurity, Z59.82 transportation insecurity
Social environment Z60 Z60.2 living alone, Z60.4 social exclusion
Upbringing Z62 —
Family / support circumstances Z63 Z63.4 disappearance/death of family member
Psychosocial circumstances Z64–Z65 Z65.1 imprisonment

The full curated label→code table lives in references/sdoh_zcode_map.md.

Hand-off to / from OpenMed

  • From OpenMed: this skill consumes openmed.analyze_text(...) output (PredictionResult dict). Each entity["start"]/["end"] anchors a Z-code suggestion to source text.
  • To OpenMed: always run `openmed.de
Câu hỏi thường gặp

Nó có tự gán Z-code không?

Không. Nó đề xuất mã, còn người gán mã.

Có nên chia sẻ rộng rãi kết quả không?

Không. Skill khuyên giữ các phát hiện rủi ro xã hội của từng cá nhân trong quy trình chăm sóc và mã hóa.

Nó có giúp quyết định về bảo hiểm không?

Không. Skill khuyên không bao giờ đưa các suy luận này vào quyết định về bảo hiểm hoặc giá cả.

Chi tiết

Mô tả gốc của tác giả

Extracts social determinants of health (SDOH) — housing instability, food insecurity, unemployment, transportation barriers, social isolation, financial strain — from clinical narrative and maps the spans to ICD-10-CM Z-codes (Z55–Z65). Use after running OpenMed NER when the user wants SDOH surfacing, Z-code suggestion, health-equity analytics, or to recover SDOH that is documented in free text but not coded. Pairs with OpenMed analyze_text output. Standards: ICD-10-CM Z55–Z65, Gravity Project value sets, n2c2 2022 SDOH track. Trigger keywords: SDOH, social determinants, Z-codes, housing, food

repo: maziyarpanahi/openmed

Độ phổ biến

Sao GitHub
5.8k
Vị trí xếp hạng
#14703
Giấy phép
Apache-2.0
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự