{
  "resourceType": "Composition",
  "id": "comp-progress-0831",
  "meta": { "versionId": "2", "lastUpdated": "2026-08-31T09:20:00+07:00" },
  "extension": [
    {
      "url": "http://icu.emr.local/StructureDefinition/copyTrace",
      "extension": [
        { "url": "from", "valueReference": { "reference": "Composition/demo-soap-0830" } },
        { "url": "copiedAt", "valueInstant": "2026-08-31T08:55:12+07:00" },
        { "url": "changedSections", "valueString": "O" },
        { "url": "changedSections", "valueString": "P" }
      ]
    }
  ],
  "status": "final",
  "type": {
    "coding": [{ "system": "http://loinc.org", "code": "11506-3", "display": "Progress note" }],
    "text": "病程記錄"
  },
  "subject": { "reference": "Patient/demo-a" },
  "encounter": { "reference": "Encounter/enc-a" },
  "date": "2026-08-31T09:00:00+07:00",
  "author": [{ "reference": "PractitionerRole/doctor-d1", "display": "示範醫師・日班" }],
  "title": "病程記錄 2026-08-31",
  "relatesTo": [
    {
      "code": "replaces",
      "targetReference": { "reference": "Composition/comp-progress-0831-v1" }
    }
  ],
  "section": [
    {
      "title": "S · 主觀資料",
      "code": { "coding": [{ "system": "http://icu.emr.local/CodeSystem/soap", "code": "S" }] },
      "text": {
        "status": "additional",
        "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">本日查房資料由醫師人工彙整。</div>"
      }
    },
    {
      "title": "O · 客觀資料",
      "code": { "coding": [{ "system": "http://icu.emr.local/CodeSystem/soap", "code": "O" }] },
      "text": {
        "status": "additional",
        "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">心率 96 /min（2026-08-31 18:00）；血壓 125/77 mmHg（2026-08-31 18:00）；部分檢驗仍待回。</div>"
      },
      "entry": [
        { "reference": "Observation/obs-hr-0831-1800/_history/1" },
        { "reference": "Observation/obs-bp-0831-1800/_history/1" },
        { "reference": "DiagnosticReport/dr-cbc-0831/_history/1" }
      ]
    },
    {
      "title": "A · 評估",
      "code": { "coding": [{ "system": "http://icu.emr.local/CodeSystem/soap", "code": "A" }] },
      "text": {
        "status": "additional",
        "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">目前追蹤問題：術後觀察、待回檢驗。</div>"
      },
      "entry": [{ "reference": "Condition/cond-postop-a" }]
    },
    {
      "title": "P · 計畫",
      "code": { "coding": [{ "system": "http://icu.emr.local/CodeSystem/soap", "code": "P" }] },
      "text": {
        "status": "additional",
        "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">確認各項回報、記錄判讀，並將未結工作交下一班。未設定治療門檻。</div>"
      }
    },
    {
      "title": "出院準備與衛教",
      "code": {
        "coding": [
          { "system": "http://icu.emr.local/CodeSystem/section", "code": "discharge-education" }
        ]
      },
      "extension": [
        {
          "url": "http://icu.emr.local/StructureDefinition/educationTemplate",
          "valueIdentifier": {
            "system": "http://icu.emr.local/CodeSystem/education-set",
            "value": "EDU-SET-MED-01"
          }
        }
      ],
      "text": {
        "status": "additional",
        "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>對象：病人與主要照顧者</p><p>已說明出院用藥需依正式處方上的藥名、劑量與頻率使用；若出現不適、疑似過敏或無法依計畫用藥，應依院方提供的聯絡方式尋求協助。</p><p>理解確認：尚待確認病人或家屬理解情形。</p></div>"
      }
    }
  ]
}
