Patient One · HL7 FHIR R4 實戰資源對照手冊

本系統共使用 34 種標準 FHIR R4 資源;點選任一卡片即可展開本專案真實寫入 HAPI FHIR 的 JSON 範例。

回到院內系統

新手最容易搞混的 FHIR 資源速記(30 秒秒懂)

用藥三兄弟:Request vs. Dispense vs. Administration

  • •MedicationRequest:醫師「開處方單」(還沒拿藥)
  • •MedicationDispense:藥師「發藥並扣藥局庫存」(食藥署管藥申報看這個)
  • •MedicationAdministration (MAR):護理師在病房「實際給藥/打針簽核」

排程三兄弟:Schedule vs. Slot vs. Appointment vs. Encounter

  • •Schedule:醫師的門診班表(例:王醫師週一上午一診)
  • •Slot:班表上的單一時間空檔(free 可約 / busy 已約)
  • •Appointment:病患預約了某個 Slot(還沒來看診)
  • •Encounter:病患實際報到看診或住院(SOAP 寫在這裡)

文件與交換:DocumentReference vs. Composition / Bundle

  • •DocumentReference:單一附件(一張傷口照、一篇護理交班筆記)
  • •Bundle (type=transaction):把多筆資源打包,一次原子寫入 HAPI FHIR
  • •Composition + Bundle (type=document):衛福部 EEC / TW Core 跨院病歷交換封裝檔
本系統真實 FHIR R4 範例(Patient)已通過 HAPI FHIR v7.6 驗證
{
  "resourceType": "Patient",
  "id": "patient-achai",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2026-11-26T09:00:00+08:00"
  },
  "identifier": [
    {
      "system": "http://pet.coa.gov.tw/microchip",
      "value": "900138000881234",
      "type": {
        "text": "寵物晶片號碼"
      }
    },
    {
      "system": "http://patient-one.local/owner-phone",
      "value": "0912-345-678",
      "type": {
        "text": "飼主歸戶電話"
      }
    }
  ],
  "active": true,
  "name": [
    {
      "text": "阿財",
      "given": [
        "阿財"
      ]
    }
  ],
  "gender": "male",
  "birthDate": "2018-05-12",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/patient-animal",
      "extension": [
        {
          "url": "species",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/animal-species",
                "code": "canislf",
                "display": "犬"
              }
            ],
            "text": "犬"
          }
        },
        {
          "url": "breed",
          "valueCodeableConcept": {
            "text": "柴犬(赤柴)"
          }
        },
        {
          "url": "genderStatus",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/animal-genderstatus",
                "code": "neutered",
                "display": "已絕育"
              }
            ],
            "text": "已絕育"
          }
        }
      ]
    }
  ],
  "contact": [
    {
      "relationship": [
        {
          "text": "飼主"
        }
      ],
      "name": {
        "text": "陳志豪",
        "family": "陳",
        "given": [
          "志豪"
        ]
      },
      "telecom": [
        {
          "system": "phone",
          "value": "0912-345-678",
          "use": "mobile"
        }
      ]
    }
  ]
}