BedCaseModel
type: StructureDefinition
node role: treeRoot
id:
  v: BedCaseModel
text:
  status:
    v: extensions
  div: Name Flags Card. Type Description & Constraints <a href="StructureDefinition-BedCaseModel-definitions.html#BedCaseModel" title="此邏輯性資料模型說明「病床個案資料(Hospital Bed Case Information)之資料模型」所包含的資料項目，實作者可藉此資料模型快速瞭解病床個案資料的內容， 部分欄位參照自[全民健保處方及治療明細檔](https://www.mohw.gov.tw/dl-37539-9c44013a-6d8e-414a-adec-c4ede90be51e.html)中的欄位。 但受限於FHIR的[資料項目命名原則](https://hl7.org/fhir/elementdefinition-definitions.html#def)字首只能小寫及名稱不能包含特殊符號，命名無法完整參照原始資料項目名稱。 實作者可透過此資料模型上方`Mappings`功能頁籤來瞭解各資料項目可透過哪些Profiles或Resources的資料項目進行實作。">BedCaseModel 0..* Base 病床個案資料(Hospital Bed Case Information)之資料模型 dataId 1..1 string 資料識別碼，格式為「[院所代號]_[床號]_[病歷號]_[住院日期]_[資料日期]」，如：0622020017-6026-8862168-20220801-20220801 hospId 1..1 Identifier 院所代碼 applDate 1..1 dateTime 資料日期 id 0..1 identifier 身分證號，若無身分證號請優先使用居留證號，依次為護照號碼 patientNo 1..1 identifier 病歷號 sex 1..1 code 性別 birthDate 1..1 date 出生年月 icd10 1..5 code 病情、問題或診斷的識別 date 1..1 period 就醫日期 inDate 1..1 period 住院日期 inType 1..1 code 住院情形 bedType 1..* CodeableConcept 病床類別 spec 1..1 CodeableConcept 是否為專責病床 wardFloor 0..1 string 樓層代號 wardCap 1..1 CodeableConcept 病房容量 bedNo 0..1 string 床號 uploadDate 1..1 date 資料上傳時間 prsnId 1..1 Practitioner 上傳者 Documentation for this format
url:
  v: https://fhirisolationroom.azurehealthcareapis.com/StructureDefinition/BedCaseModel
version:
  v: 0.1.0
name:
  v: BedCaseModel
title:
  v: 病床個案資料(Hospital Bed Case Information)之資料模型
status:
  v: active
experimental:
  v: false
date:
  v: 2023-04-15
publisher:
  v: 大同世界科技股份有限公司
contact:
  telecom:
    system:
      v: url
    value:
      v: https://www.etatung.com/
description:
  v: 此邏輯性資料模型說明「病床個案資料(Hospital Bed Case Information)之資料模型」所包含的資料項目，實作者可藉此資料模型快速瞭解病床個案資料的內容， 部分欄位參照自[全民健保處方及治療明細檔](https://www.mohw.gov.tw/dl-37539-9c44013a-6d8e-414a-adec-c4ede90be51e.html)中的欄位。 但受限於FHIR的[資料項目命名原則](https://hl7.org/fhir/elementdefinition-definitions.html#def)字首只能小寫及名稱不能包含特殊符號，命名無法完整參照原始資料項目名稱。 實作者可透過此資料模型上方`Mappings`功能頁籤來瞭解各資料項目可透過哪些Profiles或Resources的資料項目進行實作。
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
  name:
    v: RIM Mapping
mapping:
  identity:
    v: BedCase
  uri:
    v: https://fhirisolationroom.azurehealthcareapis.com
  name:
    v: BedCase
kind:
  v: logical
abstract:
  v: false
type:
  v: https://fhirisolationroom.azurehealthcareapis.com/StructureDefinition/BedCaseModel
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Base
  link: http://hl7.org/fhir/StructureDefinition/Base
derivation:
  v: specialization
snapshot:
  element:
    id:
      v: BedCaseModel
    path:
      v: BedCaseModel
    short:
      v: 病床個案資料(Hospital Bed Case Information)之資料模型
    definition:
      v: 此邏輯性資料模型說明「病床個案資料(Hospital Bed Case Information)之資料模型」所包含的資料項目，實作者可藉此資料模型快速瞭解病床個案資料的內容， 部分欄位參照自[全民健保處方及治療明細檔](https://www.mohw.gov.tw/dl-37539-9c44013a-6d8e-414a-adec-c4ede90be51e.html)中的欄位。 但受限於FHIR的[資料項目命名原則](https://hl7.org/fhir/elementdefinition-definitions.html#def)字首只能小寫及名稱不能包含特殊符號，命名無法完整參照原始資料項目名稱。 實作者可透過此資料模型上方`Mappings`功能頁籤來瞭解各資料項目可透過哪些Profiles或Resources的資料項目進行實作。
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Base
      min:
        v: 0
      max:
        v: *
    is modifier:
      v: false
  element:
    id:
      v: BedCaseModel.dataId
    path:
      v: BedCaseModel.dataId
    short:
      v: 資料識別碼，格式為「[院所代號]_[床號]_[病歷號]_[住院日期]_[資料日期]」，如：0622020017-6026-8862168-20220801-20220801
    definition:
      v: 資料識別碼，格式為「[院所代號]_[床號]_[病歷號]_[住院日期]_[資料日期]」，如：0622020017-6026-8862168-20220801-20220801
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: BedCaseModel.dataId
      min:
        v: 1
      max:
        v: 1
    type:
      code:
        v: string
    mapping:
      identity:
        v: BedCase
      map:
        v: BundleBedCapacity.id
  element:
    id:
      v: BedCaseModel.hospId
    path:
      v: BedCaseModel.hospId
    short:
      v: 院所代碼
    definition:
      v: 院所代碼
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: BedCaseModel.hospId
      min:
        v: 1
      max:
        v: 1
    type:
      code:
        v: Identifier
    mapping:
      identity:
        v: BedCase
      map:
        v: MessageHeaderHospBed.sender
  element:
    id:
      v: BedCaseModel.applDate
    path:
      v: BedCaseModel.applDate
    short:
      v: 資料日期
    definition:
      v: 資料日期
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: BedCaseModel.applDate
      min:
        v: 1
      max:
        v: 1
    type:
      code:
        v: dateTime
    mapping:
      identity:
        v: BedCase
      map:
        v: BundleCase.timestamp
  element:
    id:
      v: BedCaseModel.id
    path:
      v: BedCaseModel.id
    short:
      v: 身分證號，若無身分證號請優先使用居留證號，依次為護照號碼
    definition:
      v: 身分證號
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: BedCaseModel.id
      min:
        v: 0
      max:
        v: 1
    type:
      code:
        v: Extension
      profile:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-identifier
        link: http://hl7.org/fhir/StructureDefinition/elementdefinition-identifier
    mapping:
      identity:
        v: BedCase
      map:
        v: PatientBedCase.identifier:idCardNumber
  element:
    id:
      v: BedCaseModel.patientNo
    path:
      v: BedCaseModel.patientNo

v: 病歷號

v: 病歷號

v: 1

v: 1

path:
  v: BedCaseModel.patientNo
min:
  v: 1
max:
  v: 1

code:
  v: Extension
profile:
  v: http://hl7.org/fhir/StructureDefinition/elementdefinition-identifier
  link: http://hl7.org/fhir/StructureDefinition/elementdefinition-identifier

identity:
  v: BedCase
map:
  v: PatientBedCase.identifier:medicalRecord

id:
  v: BedCaseModel.sex
path:
  v: BedCaseModel.sex
short:
  v: 性別
definition:
  v: 性別
min:
  v: 1
max:
  v: 1
base:
  path:
    v: BedCaseModel.sex
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
mapping:
  identity:
    v: BedCase
  map:
    v: PatientBedCase.gender

id:
  v: BedCaseModel.birthDate
path:
  v: BedCaseModel.birthDate
short:
  v: 出生年月
definition:
  v: 出生年月
min:
  v: 1
max:
  v: 1
base:
  path:
    v: BedCaseModel.birthDate
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: date
mapping:
  identity:
    v: BedCase
  map:
    v: PatientBedCase.birthDate

id:
  v: BedCaseModel.icd10
path:
  v: BedCaseModel.icd10
short:
  v: 病情、問題或診斷的識別
definition:
  v: 病情、問題或診斷的識別
min:
  v: 1
max:
  v: 5
base:
  path:
    v: BedCaseModel.icd10
  min:
    v: 1
  max:
    v: 5
type:
  code:
    v: code
mapping:
  identity:
    v: BedCase
  map:
    v: TWCoreCondition.code

id:
  v: BedCaseModel.date
path:
  v: BedCaseModel.date
short:
  v: 就醫日期
definition:
  v: 就醫日期
min:
  v: 1
max:
  v: 1
base:
  path:
    v: BedCaseModel.date
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Extension
  profile:
    v: http://hl7.org/fhir/StructureDefinition/organization-period
    link: http://hl7.org/fhir/StructureDefinition/organization-period
mapping:
  identity:
    v: BedCase
  map:
    v: TWCoreCondition.recordedDate

id:
  v: BedCaseModel.inDate
path:
  v: BedCaseModel.inDate
short:
  v: 住院日期
definition:
  v: 住院日期
min:
  v: 1
max:
  v: 1
base:
  path:
    v: BedCaseModel.inDate
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Extension
  profile:
    v: http://hl7.org/fhir/StructureDefinition/organization-period
    link: http://hl7.org/fhir/StructureDefinition/organization-period
mapping:
  identity:
    v: BedCase
  map:
    v: TWCoreEncounter.period

id:
  v: BedCaseModel.inType
path:
  v: BedCaseModel.inType
short:
  v: 住院情形
definition:
  v: 住院情形
min:
  v: 1
max:
  v: 1
base:
  path:
    v: BedCaseModel.inType
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
mapping:
  identity:
    v: BedCase
  map:
    v: TWCoreEncounter.class

id:
  v: BedCaseModel.bedType
path:
  v: BedCaseModel.bedType
short:
  v: 病床類別
definition:
  v: 病床類別
min:
  v: 1
max:
  v: *
base:
  path:
    v: BedCaseModel.bedType
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: BedCase
  map:
    v: LocationBed.type

id:
  v: BedCaseModel.spec
path:
  v: BedCaseModel.spec
short:
  v: 是否為專責病床
definition:
  v: 是否為專責病床
min:
  v: 1
max:
  v: 1
base:
  path:
    v: BedCaseModel.spec
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: BedCase
  map:
    v: LocationBed.type

id:
  v: BedCaseModel.wardFloor
path:
  v: BedCaseModel.wardFloor
short:
  v: 樓層代號
definition:
  v: 樓層代號
min:
  v: 0
max:
  v: 1
base:
  path:
    v: BedCaseModel.wardFloor
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
mapping:
  identity:
    v: BedCase
  map:
    v: TWCoreAddress.extension:floor

id:
  v: BedCaseModel.wardCap
path:
  v: BedCaseModel.wardCap
short:
  v: 病房容量
definition:
  v: 病房容量
min:
  v: 1
max:
  v: 1
base:
  path:
    v: BedCaseModel.wardCap
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: BedCase
  map:
    v: LocationBed

id:
  v: BedCaseModel.bedNo
path:
  v: BedCaseModel.bedNo
short:
  v: 床號
definition:
  v: 床號
min:
  v: 0
max:
  v: 1
base:
  path:
    v: BedCaseModel.bedNo
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
mapping:
  identity:
    v: BedCase
  map:
    v: LocationBed.identifier

id:
  v: BedCaseModel.uploadDate
path:
  v: BedCaseModel.uploadDate
short:
  v: 資料上傳時間
definition:
  v: 資料上傳時間
min:
  v: 1
max:
  v: 1
base:
  path:
    v: BedCaseModel.uploadDate
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: date
mapping:
  identity:
    v: BedCase
  map:
    v: BundleCase.meta.lastUpdated

id:
  v: BedCaseModel.prsnId
path:
  v: BedCaseModel.prsnId
short:
  v: 上傳者
definition:
  v: 上傳者
min:
  v: 1
max:
  v: 1
base:
  path:
    v: BedCaseModel.prsnId
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Practitioner
mapping:
  identity:
    v: BedCase
  map:
    v: MessageHeaderHospBed.author

element:
  id:
    v: BedCaseModel
  path:
    v: BedCaseModel
  short:
    v: 病床個案資料(Hospital Bed Case Information)之資料模型
  definition:
    v: 此邏輯性資料模型說明「病床個案資料(Hospital Bed Case Information)之資料模型」所包含的資料項目，實作者可藉此資料模型快速瞭解病床個案資料的內容， 部分欄位參照自[全民健保處方及治療明細檔](https://www.mohw.gov.tw/dl-37539-9c44013a-6d8e-414a-adec-c4ede90be51e.html)中的欄位。 但受限於FHIR的[資料項目命名原則](https://hl7.org/fhir/elementdefinition-definitions.html#def)字首只能小寫及名稱不能包含特殊符號，命名無法完整參照原始資料項目名稱。 實作者可透過此資料模型上方`Mappings`功能頁籤來瞭解各資料項目可透過哪些Profiles或Resources的資料項目進行實作。
element:
  id:
    v: BedCaseModel.dataId
  path:
    v: BedCaseModel.dataId
  short:
    v: 資料識別碼，格式為「[院所代號]_[床號]_[病歷號]_[住院日期]_[資料日期]」，如：0622020017-6026-8862168-20220801-20220801
  definition:
    v: 資料識別碼，格式為「[院所代號]_[床號]_[病歷號]_[住院日期]_[資料日期]」，如：0622020017-6026-8862168-20220801-20220801
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: string
  mapping:
    identity:
      v: BedCase
    map:
      v: BundleBedCapacity.id
element:
  id:
    v: BedCaseModel.hospId
  path:
    v: BedCaseModel.hospId
  short:
    v: 院所代碼
  definition:
    v: 院所代碼
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: Identifier
  mapping:
    identity:
      v: BedCase
    map:
      v: MessageHeaderHospBed.sender
element:
  id:
    v: BedCaseModel.applDate
  path:
    v: BedCaseModel.applDate
  short:
    v: 資料日期
  definition:
    v: 資料日期
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: dateTime
  mapping:
    identity:
      v: BedCase
    map:
      v: BundleCase.timestamp
element:
  id:
    v: BedCaseModel.id
  path:
    v: BedCaseModel.id
  short:
    v: 身分證號，若無身分證號請優先使用居留證號，依次為護照號碼
  definition:
    v: 身分證號
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Extension
    profile:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-identifier
      link: http://hl7.org/fhir/StructureDefinition/elementdefinition-identifier
  mapping:
    identity:
      v: BedCase
    map:
      v: PatientBedCase.identifier:idCardNumber
element:
  id:
    v: BedCaseModel.patientNo
  path:
    v: BedCaseModel.patientNo
  short:
    v: 病歷號
  definition:
    v: 病歷號
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: Extension
    profile:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-identifier
      link: http://hl7.org/fhir/StructureDefinition/elementdefinition-identifier
  mapping:
    identity:
      v: BedCase
    map:
      v: PatientBedCase.identifier:medicalRecord
element:
  id:
    v: BedCaseModel.sex
  path:
    v: BedCaseModel.sex
  short:
    v: 性別
  definition:
    v: 性別
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: code
  mapping:
    identity:
      v: BedCase
    map:
      v: PatientBedCase.gender
element:
  id:
    v: BedCaseModel.birthDate
  path:
    v: BedCaseModel.birthDate
  short:
    v: 出生年月
  definition:
    v: 出生年月
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: date
  mapping:
    identity:
      v: BedCase
    map:
      v: PatientBedCase.birthDate
element:
  id:
    v: BedCaseModel.icd10
  path:
    v: BedCaseModel.icd10
  short:
    v: 病情、問題或診斷的識別
  definition:
    v: 病情、問題或診斷的識別
  min:
    v: 1
  max:
    v: 5
  type:
    code:
      v: code
  mapping:
    identity:
      v: BedCase
    map:
      v: TWCoreCondition.code
element:
  id:
    v: BedCaseModel.date
  path:
    v: BedCaseModel.date
  short:
    v: 就醫日期
  definition:
    v: 就醫日期
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: Extension
    profile:
      v: http://hl7.org/fhir/StructureDefinition/organization-period
      link: http://hl7.org/fhir/StructureDefinition/organization-period

identity:
  v: BedCase
map:
  v: TWCoreCondition.recordedDate

id:
  v: BedCaseModel.inDate
path:
  v: BedCaseModel.inDate
short:
  v: 住院日期
definition:
  v: 住院日期
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Extension
  profile:
    v: http://hl7.org/fhir/StructureDefinition/organization-period
    link: http://hl7.org/fhir/StructureDefinition/organization-period
mapping:
  identity:
    v: BedCase
  map:
    v: TWCoreEncounter.period

id:
  v: BedCaseModel.inType
path:
  v: BedCaseModel.inType
short:
  v: 住院情形
definition:
  v: 住院情形
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
mapping:
  identity:
    v: BedCase
  map:
    v: TWCoreEncounter.class

id:
  v: BedCaseModel.bedType
path:
  v: BedCaseModel.bedType
short:
  v: 病床類別
definition:
  v: 病床類別
min:
  v: 1
max:
  v: *
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: BedCase
  map:
    v: LocationBed.type

id:
  v: BedCaseModel.spec
path:
  v: BedCaseModel.spec
short:
  v: 是否為專責病床
definition:
  v: 是否為專責病床
min:
  v: 1
max:
  v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: BedCase
  map:
    v: LocationBed.type

id:
  v: BedCaseModel.wardFloor
path:
  v: BedCaseModel.wardFloor
short:
  v: 樓層代號
definition:
  v: 樓層代號
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
mapping:
  identity:
    v: BedCase
  map:
    v: TWCoreAddress.extension:floor

id:
  v: BedCaseModel.wardCap
path:
  v: BedCaseModel.wardCap
short:
  v: 病房容量
definition:
  v: 病房容量
min:
  v: 1
max:
  v: 1
type:
  code:
    v: CodeableConcept
mapping:
  identity:
    v: BedCase
  map:
    v: LocationBed

id:
  v: BedCaseModel.bedNo
path:
  v: BedCaseModel.bedNo
short:
  v: 床號
definition:
  v: 床號
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
mapping:
  identity:
    v: BedCase
  map:
    v: LocationBed.identifier

id:
  v: BedCaseModel.uploadDate
path:
  v: BedCaseModel.uploadDate
short:
  v: 資料上傳時間
definition:
  v: 資料上傳時間
min:
  v: 1
max:
  v: 1
type:
  code:
    v: date
mapping:
  identity:
    v: BedCase
  map:
    v: BundleCase.meta.lastUpdated

id:
  v: BedCaseModel.prsnId
path:
  v: BedCaseModel.prsnId
short:
  v: 上傳者
definition:
  v: 上傳者
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Practitioner
mapping:
  identity:
    v: BedCase
  map:
    v: MessageHeaderHospBed.author