[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69BF3Z4EYEC327GH4D2E48A":3,"skill-same:01M69BF3Z4EYEC327GH4D2E48A":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":17,"ownerHtmlUrl":44,"ownerBlogUrl":45,"ownerDescription":46,"updatedAt":47,"install":48,"resources":61},"01M69BF3Z4EYEC327GH4D2E48A","lookup-patient-history","脑部MRI患者病历查询","Load a synthetic patient EHR record (demographics, diagnosis, treatments, medications, expected post-treatment findings, prior imaging studies and reports, pending orders) for a given brain MRI image. Invoke as the first step of any context-aware reporting flow that needs patient history. No model calls.","为给定的脑部 MRI 图像加载合成患者电子病历记录（人口统计学信息、诊断、治疗、用药、预期治疗后表现、既往影像检查和报告、待处理医嘱）。在需要患者病史的上下文感知报告流程中，应作为第一步调用。不调用模型。","microsoft\u002Fhealthcare-models-and-agents-workshop","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69BEFF0TQHSY4MP1845AB1N",5,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fhealthcare-models-and-agents-workshop\u002Fblob\u002Fmain\u002Fchapters\u002Fchapter3-knowledge-sources\u002Fanswer-key\u002F.github\u002Fskills\u002Flookup-patient-history\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C1E9FPAX0HFVGQXZQ8Q77B","临床文档处理与决策支持","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C1E9G6WQ758R4617K0J6WF","医师","PROFESSION","适用职业",[31,32],"lookup patient history","image","2026-11-10 10:12:30",false,"---\nname: lookup-patient-history\ndescription: Load a synthetic patient EHR record (demographics, diagnosis, treatments, medications, expected post-treatment findings, prior imaging studies and reports, pending orders) for a given brain MRI image. Invoke as the first step of any context-aware reporting flow that needs patient history. No model calls.\nargument-hint: |\n  - image_path: required path to the current brain MRI image. The patient_id is inferred from the filename (convention `{patient_id}_{study_index}` plus the image extension, such as `.nii.gz`).\n  - patient_id: optional override if the image filename does not follow that convention.\n---\n\n# lookup-patient-history\n\nPure data skill. Reads the on-disk patient record at `data\u002Fpatients\u002F{patient_id}.json` (workspace root) and returns it, with any referenced prior reports loaded inline. No model calls, no segmentation, no prose.\n\nThis skill is the \"knowledge source\" half of Chapter 3 — the report-writing skill consumes whatever this returns.\n\n## Budget\n\n- Tool calls: 0 (only file reads).\n- Output: structured block, ≤ 450 words.\n- Do not re-invoke skills already used in this turn.\n\n## How to use\n\n1. **Resolve `patient_id`.**\n   - If the caller supplied `patient_id`, use it.\n   - Otherwise infer from the image filename: the convention is `{patient_id}_{study_index}` plus the extension (e.g. `SYN0056_006.nii.gz` → `SYN0056`). Strip the extension and the trailing `_NNN`.\n   - Note the current `study_id` too (e.g. `SYN0056_006`) — it identifies which pending order the current image belongs to.\n\n2. **Load the record file.**\n   - Path: `data\u002Fpatients\u002F{patient_id}.json` (workspace-root-relative).\n   - If the file does not exist, return:\n     ```\n     PATIENT RECORD: Not on file for patient_id {patient_id}.\n     ```\n     and stop.\n\n3. **Inline any prior reports.**\n   - For each entry in `imaging_studies` that has a non-null `report_path`, read the file at that path and include the full report text in the returned block. Analyze the report path and look for the report in neighboring reports directories if it is not found at the specified path.\n   - If the file is missing, note `[report file missing: {path}]` instead of the report text and continue. Do not stop or fail the whole skill if a prior report file is missing — just note it and move on.\n\n4. **Return the block.** Use the format below verbatim — the report-writing skill expects these section headers.\n\n## Output format\n\n```\nPATIENT RECORD — {patient_id}, as of {record_as_of}\n\nDEMOGRAPHICS: {age}{sex}.\n\nDIAGNOSIS: {diagnosis.primary} {diagnosis.molecular} Established {diagnosis.established}\n\nPRESENTATION: {presentation.date}. {presentation.presenting_complaint}\nHPI: {presentation.hpi_summary}\n\nACTIVE PROBLEMS:\n- {each item from active_problems}\n\nPAST MEDICAL HISTORY:\n- {each item from past_medical_history}\n\nALLERGIES: {allergies.notes}\n\nCURRENT MEDICATIONS:\n- {name} {dose} — {indication}\n  (one line per item from medications)\n\nPROCEDURES:\n- {date}: {procedure}. {result} Complications: {complications}\n  (one line per item from procedures)\n\nTREATMENTS:\n- {start} → {end, or \"ongoing\" if null}: {treatment}. {notes}\n  (one line per item from treatments)\n\nEXPECTED POST-TREATMENT FINDINGS (per record):\n- {each item from expected_post_treatment_findings}\n\nIMAGING HISTORY (oldest → newest):\n- {study_id} — {date}, {exam}. {summary} Image: {image_path, or \"not retained\"}\n  (one line per imaging_studies entry; preserve order)\n\nPRIOR REPORTS:\n=== {study_id} ({date}) ===\n{full report text loaded from report_path}\n===\n  (one block per imaging_studies entry that has a report_path; in order)\n\nPENDING ORDERS:\n- {study_id} — {date}, {exam}. Indication: {indication} Status: {status}\n  (one line per pending_orders entry; mark the one matching the current study_id with \"← current image\")\n\nLAST RECORD ENTRY NOTE: {last_record_entry_note}\n```\n\n## Critical rules\n\n- **Do not invent fields.** If a field is empty, missing, or null, render it as `(none)` or omit the line. Never fabricate.\n- **Do not summarize the prior report.** Inline the full text verbatim. The report writer needs the original phrasing and measurements for comparison.\n- **Do not interpret findings.** This skill returns data, not analysis.\n- **The record may not be current.** Always include `LAST RECORD ENTRY NOTE` so the report writer knows where the record ends.","# lookup-patient-history\n\nPure data skill. Reads the on-disk patient record at `data\u002Fpatients\u002F{patient_id}.json` (workspace root) and returns it, with any referenced prior reports loaded inline. No model calls, no segmentation, no prose.\n\nThis skill is the \"knowledge source\" half of Chapter 3 — the report-writing skill consumes whatever this returns.\n\n## Budget\n\n- Tool calls: 0 (only file reads).\n- Output: structured block, ≤ 450 words.\n- Do not re-invoke skills already used in this turn.\n\n## How to use\n\n1. **Resolve `patient_id`.**\n   - If the caller supplied `patient_id`, use it.\n   - Otherwise infer from the image filename: the convention is `{patient_id}_{study_index}` plus the extension (e.g. `SYN0056_006.nii.gz` → `SYN0056`). Strip the extension and the trailing `_NNN`.\n   - Note the current `study_id` too (e.g. `SYN0056_006`) — it identifies which pending order the current image belongs to.\n\n2. **Load the record file.**\n   - Path: `data\u002Fpatients\u002F{patient_id}.json` (workspace-root-relative).\n   - If the file does not exist, return:\n     ```\n     PATIENT RECORD: Not on file for patient_id {patient_id}.\n     ```\n     and stop.\n\n3. **Inline any prior reports.**\n   - For each entry in `imaging_studies` that has a non-null `report_path`, read the file at that path and include the full report text in the returned block. Analyze the report path and look for the report in neighboring reports directories if it is not found at the specified path.\n   - If the file is missing, note `[report file missing: {path}]` instead of the report text and continue. Do not stop or fail the whole skill if a prior report file is missing — just note it and move on.\n\n4. **Return the block.** Use the format below verbatim — the report-writing skill expects these section headers.\n\n## Output format\n\n```\nPATIENT RECORD — {patient_id}, as of {record_as_of}\n\nDEMOGRAPHICS: {age}{sex}.\n\nDIAGNOSIS: {diagnosis.primary} {diagnosis.molecular} Established {diagnosis.established}\n\nPRESENTATION: {presentation.date}. {presentation.presenting_complaint}\nHPI: {presentation.hpi_summary}\n\nACTIVE PROBLEMS:\n- {each item from active_problems}\n\nPAST MEDICAL HISTORY:\n- {each item from past_medical_history}\n\nALLERGIES: {allergies.notes}\n\nCURRENT MEDICATIONS:\n- {name} {dose} — {indication}\n  (one line per item from medications)\n\nPROCEDURES:\n- {date}: {procedure}. {result} Complications: {complications}\n  (one line per item from procedures)\n\nTREATMENTS:\n- {start} → {end, or \"ongoing\" if null}: {treatment}. {notes}\n  (one line per item from treatments)\n\nEXPECTED POST-TREATMENT FINDINGS (per record):\n- {each item from expected_post_treatment_findings}\n\nIMAGING HISTORY (oldest → newest):\n- {study_id} — {date}, {exam}. {summary} Image: {image_path, or \"not retained\"}\n  (one line per imaging_studies entry; preserve order)\n\nPRIOR REPORTS:\n=== {study_id} ({date}) ===\n{full report text loaded from report_path}\n===\n  (one block per imaging_studies entry that has a report_path; in order)\n\nPENDING ORDERS:\n- {study_id} — {date}, {exam}. Indication: {indication} Status: {status}\n  (one line per pending_orders entry; mark the one matching the current study_id with \"← current image\")\n\nLAST RECORD ENTRY NOTE: {last_record_entry_note}\n```\n\n## Critical rules\n\n- **Do not invent fields.** If a field is empty, missing, or null, render it as `(none)` or omit the line. Never fabricate.\n- **Do not summarize the prior report.** Inline the full text verbatim. The report writer needs the original phrasing and measurements for comparison.\n- **Do not interpret findings.** This skill returns data, not analysis.\n- **The record may not be current.** Always include `LAST RECORD ENTRY NOTE` so the report writer knows where the record ends.",{"name":5,"description":7,"argument-hint":38},"- image_path: required path to the current brain MRI image. The patient_id is inferred from the filename (convention `{patient_id}_{study_index}` plus the image extension, such as `.nii.gz`).\n- patient_id: optional override if the image filename does not follow that convention.","main","61aa7607e74cda657fcd824aa8261c91b0eba446","chapters\u002Fchapter3-knowledge-sources\u002Fanswer-key\u002F.github\u002Fskills\u002Flookup-patient-history",2,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fhealthcare-models-and-agents-workshop","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-03 00:53:01",{"source":9,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add microsoft\u002Fhealthcare-models-and-agents-workshop --skill lookup-patient-history",{"tool":54,"command":55},"bunx","bunx skills add microsoft\u002Fhealthcare-models-and-agents-workshop --skill lookup-patient-history",{"tool":57,"command":58},"pnpm","pnpm dlx skills add microsoft\u002Fhealthcare-models-and-agents-workshop --skill lookup-patient-history","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fhealthcare-models-and-agents-workshop\u002Fblob\u002Fmain\u002Fchapters\u002Fchapter3-knowledge-sources\u002Fanswer-key\u002F.github\u002Fskills\u002Flookup-patient-history\u002FSKILL.md",true,[],[63,76,87,101,111,123],{"skillNo":64,"name":65,"nameZh":66,"description":67,"descriptionZh":68,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":69,"categories":70,"keywords":73,"publishedAt":33},"01M69BF5DFRTGPQX0E6BYQNH0E","write-report-with-ehr","结合EHR的脑部MRI随访报告撰写","Write a context-aware brain MRI follow-up report from the patient's record, tool-computed lesion measurements, and change from the most recent prior image. Use when asked for a report that uses the patient's history, chart, or EHR.","根据患者记录、工具计算的病灶测量数据以及与最近一次既往影像的变化，撰写上下文感知的脑部 MRI 随访报告。当要求撰写使用患者病史、病历或 EHR 的报告时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fhealthcare-models-and-agents-workshop\u002Fblob\u002Fmain\u002Fchapters\u002Fchapter3-knowledge-sources\u002Fanswer-key\u002F.github\u002Fskills\u002Fwrite-report-with-ehr\u002FSKILL.md",[71,72],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[74,75,32],"write report with ehr","change",{"skillNo":77,"name":65,"nameZh":78,"description":79,"descriptionZh":80,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":81,"categories":82,"keywords":85,"publishedAt":33},"01M69BF22K2HHE17TTJWEXRXVA","结合EHR的脑部MRI报告撰写","Write a context-aware brain MRI report using the patient chart and mandatory tool-computed linear and volumetric measurements. Use for EHR reporting with Radiology Assistant (EHR).","使用患者病历以及工具强制计算的线性和体积测量数据，撰写上下文感知的脑部 MRI 报告。适用于结合 Radiology Assistant (EHR) 进行电子病历报告。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fhealthcare-models-and-agents-workshop\u002Fblob\u002Fmain\u002Fchapters\u002Fchapter3-knowledge-sources\u002Fanswer-key-improved-compliance\u002F.github\u002Fskills\u002Fwrite-report-with-ehr\u002FSKILL.md",[83,84],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[74,86,32],"assistant",{"skillNo":88,"name":89,"nameZh":90,"description":91,"descriptionZh":92,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":93,"categories":94,"keywords":97,"publishedAt":33},"01M69BF052F87M2X96G7NBR4YH","write-imaging-factsheet-ehr","EHR影像事实清单生成","Produce an EHR imaging factsheet with mandatory segmentation, cleanup, linear dimensions, and volumes. Use when write-report-with-ehr requests imaging evidence or when explicitly asked for this factsheet.","生成 EHR 影像事实清单，强制包含分割、清理、线性尺寸和体积。当 write-report-with-ehr 请求影像证据或明确要求生成此事实清单时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fhealthcare-models-and-agents-workshop\u002Fblob\u002Fmain\u002Fchapters\u002Fchapter3-knowledge-sources\u002Fanswer-key-improved-compliance\u002F.github\u002Fskills\u002Fwrite-imaging-factsheet-ehr\u002FSKILL.md",[95,96],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[98,99,100,32],"write imaging factsheet","write imaging factsheet ehr","cleanup",{"skillNo":102,"name":5,"nameZh":103,"description":104,"descriptionZh":105,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":106,"categories":107,"keywords":110,"publishedAt":33},"01M69BEYPBQANFHDN71X44GF98","患者病史查询","Load the synthetic patient chart and verbatim prior reports for EHR reporting. Use before measuring the selected current and prior images; this lookup does not perform segmentation or measurements.","加载合成患者病历和逐字转录的先前报告，用于 EHR 报告。在测量所选的当前图像和先前图像之前使用；此查询不执行分割或测量。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fhealthcare-models-and-agents-workshop\u002Fblob\u002Fmain\u002Fchapters\u002Fchapter3-knowledge-sources\u002Fanswer-key-improved-compliance\u002F.github\u002Fskills\u002Flookup-patient-history\u002FSKILL.md",[108,109],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[31,32],{"skillNo":112,"name":113,"nameZh":114,"description":115,"descriptionZh":116,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":117,"categories":118,"keywords":121,"publishedAt":33},"01M69BEXDBN6Y3VXNMBWZRFA5K","write-report-segmentation","脑部MRI分割报告撰写","Write a brain MRI report grounded in MedImageParse 3D tumor segmentation. Use for brain MRI reports when the medimageparse `segment` tool is available but `clean_segmentation` or `describe_lesions` is not.","基于 MedImageParse 3D 肿瘤分割撰写脑部 MRI 报告。当 medimageparse 的 `segment` 工具可用但 `clean_segmentation` 或 `describe_lesions` 不可用时，用于撰写脑部 MRI 报告。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fhealthcare-models-and-agents-workshop\u002Fblob\u002Fmain\u002Fchapters\u002Fchapter2-foundation-models\u002Fstarter\u002F.github\u002Fskills\u002Fwrite-report-segmentation\u002FSKILL.md",[119,120],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[122,32],"write report segmentation",{"skillNo":124,"name":125,"nameZh":126,"description":127,"descriptionZh":128,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":129,"categories":130,"keywords":133,"publishedAt":33},"01M69BEVT3N1AXH8BNV7K31W31","write-report-measured","带测量脑MRI报告撰写","Write a brain MRI report with tool-computed lesion measurements and, when a prior image is supplied, change from that prior. Use for brain MRI reports when the medimageparse `segment`, `clean_segmentation`, and `describe_lesions` tools are available; preferred over write-report-segmentation.","撰写脑部 MRI 报告，包含工具计算得出的病灶测量值，并在提供既往影像时给出相对该影像的变化情况。适用于脑部 MRI 报告场景：当 medimageparse 的 `segment`、`clean_segmentation` 和 `describe_lesions` 工具均可用时；优先于 write-report-segmentation 使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fhealthcare-models-and-agents-workshop\u002Fblob\u002Fmain\u002Fchapters\u002Fchapter2-foundation-models\u002Fstarter\u002F.github\u002Fskills\u002Fwrite-report-measured\u002FSKILL.md",[131,132],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[134,32,75],"write report measured"]