BaseModel
type: StructureDefinition
node role: treeRoot
id:
  v: BaseModel
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition BaseModel Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> BaseModel 0..* Base 臺灣健保署基礎(Base)資料模型 #xD; hosp 1..1 BackboneElement 院所資訊 #xD; hospId 1..1 string 醫事機構代碼 #xD; applType 1..1 CodeableConcept 申報類別 #xD; applDate 1..1 dateTime 申請日期 #xD; patient 1..1 BackboneElement 病人資訊 #xD; patId 0..1 string 病歷號 #xD; name 1..1 HumanName 姓名 #xD; idCard 1..1 string 身分證號 #xD; birthday 1..1 date 出生日期 #xD; gender 1..1 code 病人性別 #xD; diagnosis 1..1 BackboneElement 疾病資訊 #xD; =2)">icd10cmCode 1..1 code 國際疾病分類代碼 (sequence=1)，共病症 (sequence>=2) #xD; diagDate 0..* date 診斷日期 #xD; diagCurrentStatus 1..1 code 簡要病摘。連結院內HIS系統之簡要病摘，或填寫原基因定序檢測之申請理由。 #xD; gene 0..* BackboneElement 基因資訊 #xD; genTestCode 0..* CodeableConcept 基因檢測代碼 #xD; mutationType 0..* CodeableConcept 基因突變類型 #xD; specimenType 0..* CodeableConcept 基因檢測檢體類型 #xD; genMethod 0..* CodeableConcept 基因檢測方法 #xD; genDate 0..* dateTime 基因檢測日期 #xD; genOrg 0..* string 基因檢測機構 #xD; genResult 0..* CodeableConcept 基因檢測分析結果 #xD; genInterpretation 0..* CodeableConcept 基因臨床判讀結果 #xD; genPdf 0..* base64Binary 基因報告（檔案路徑） #xD; genPdfTitle 0..* string 基因報告名稱 #xD; <img src="[binary]" alt="doco" style="background-color: inherit"/> Documentation for this format
url:
  v: https://nhicore.nhi.gov.tw/base/StructureDefinition/BaseModel
  l: BaseModel
version:
  v: 0.0.1
name:
  v: BaseModel
title:
  v: 臺灣健保署基礎(Base)資料模型
status:
  v: draft
date:
  v: 2025-10-29T03:09:05+00:00
publisher:
  v: 衛生福利部中央健康保險署
contact:
  name:
    v: 衛生福利部中央健康保險署
  telecom:
    system:
      v: url
    value:
      v: https://www.nhi.gov.tw
description:
  v: 臺灣健保署基礎(Base)資料模型，此邏輯模型為定義臺灣健保署基礎情境下使用的所有資料欄位。 為了便於實作者快速理解，資料欄位會使用易於理解的命名，實作者再透過邏輯模型中的功能頁籤「Mappings」 瞭解各資料欄位實際使用本IG的哪個Profiles的哪個資料項目（element）。亦可配合 [視覺化邏輯模型圖]進行欄位對應。
fhir version:
  v: 4.0.1
kind:
  v: logical
abstract:
  v: false
type:
  v: https://nhicore.nhi.gov.tw/base/StructureDefinition/BaseModel
  l: BaseModel
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Base
  l: Base
derivation:
  v: specialization
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
      l: snapshot-base-version
    value: String
      v: 4.0.1
  element:
    id:
      v: BaseModel
    path:
      v: BaseModel
    short:
      v: 臺灣健保署基礎(Base)資料模型
    definition:
      v: 臺灣健保署基礎(Base)資料模型，此邏輯模型為定義臺灣健保署基礎情境下使用的所有資料欄位。 為了便於實作者快速理解，資料欄位會使用易於理解的命名，實作者再透過邏輯模型中的功能頁籤「Mappings」 瞭解各資料欄位實際使用本IG的哪個Profiles的哪個資料項目（element）。亦可配合 [視覺化邏輯模型圖]進行欄位對應。
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Base
      min:
        v: 0
      max:
        v: *
    is modifier:
      v: false
  element:
    id:
      v: BaseModel.hosp
    path:
      v: BaseModel.hosp
    short:
      v: 院所資訊
    definition:
      v: 院所資訊
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: BaseModel.hosp
      min:
        v: 1
      max:
        v: 1
    type:
      code:
        v: BackboneElement
        l: BackboneElement
    constraint:
      key:
        v: ele-1
      severity:
        v: error
      human:
        v: All FHIR elements must have a @value or children
      expression:
        v: hasValue() or (children().count() > id.count())
      xpath:
        v: @value|f:*|h:div
      source:
        v: http://hl7.org/fhir/StructureDefinition/Element
        l: Element
  element:
    id:
      v: BaseModel.hosp.id
    path:
      v: BaseModel.hosp.id
    representation:
      v: xmlAttr
    short:
      v: Unique id for inter-element referencing
    definition:
      v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: Element.id
      min:
        v: 0
      max:
        v: 1
    type:
      extension:
        value: Url
      code:
        v: http://hl7.org/fhirpath/System.String
        l: System.String
    is modifier:
      v: false
    is summary:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: n/a
  element:
    id:
      v: BaseModel.hosp.extension
    path:
      v: BaseModel.hosp.extension
    slicing:
      description:
        v: Extensions are always sliced by (at least) url
      rules:
        v: open
    short:
      v: Additional content defined by implementations
    definition:
      v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
    comment:
      v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
    alias:
      v: extensions
    alias:
      v: user content
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Element.extension
      min:
        v: 0
      max:
        v: *
    type:
      code:
        v: Extension
        l: Extension
    constraint:
      key:
        v: ele-1
      severity:
        v: error
      human:
        v: All FHIR elements must have a @value or children
      expression:
        v: hasValue() or (children().count() > id.count())
      xpath:
        v: @value|f:*|h:div
      source:
        v: http://hl7.org/fhir/StructureDefinition/Element
        l: Element
    constraint:
      key:
        v: ext-1

Url
v: string
l: string

v: value

v: url

v: error

v: Must have either extensions or value[x], not both

v: extension.exists() != value.exists()

v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])

v: false

v: false

identity:
  v: rim
map:
  v: n/a

id:
  v: BaseModel.hosp.modifierExtension
path:
  v: BaseModel.hosp.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: BaseModel.hosp.hospId
path:
  v: BaseModel.hosp.hospId
short:
  v: 醫事機構代碼
definition:
  v: 醫事機構代碼，必須存在於醫事機構基本資料檔內
min:
  v: 1
max:
  v: 1
base:
  path:
    v: BaseModel.hosp.hospId
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: BaseModel.hosp.applType
path:
  v: BaseModel.hosp.applType
short:
  v: 申報類別
definition:
  v: 申報類別
min:
  v: 1
max:
  v: 1
base:
  path:
    v: BaseModel.hosp.applType
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept

id:
  v: BaseModel.hosp.applDate
path:
  v: BaseModel.hosp.applDate
short:
  v: 申請日期
definition:
  v: 申請日期
min:
  v: 1
max:
  v: 1
base:
  path:
    v: BaseModel.hosp.applDate
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime

id:
  v: BaseModel.patient
path:
  v: BaseModel.patient
short:
  v: 病人資訊
definition:
  v: 病人資訊
min:
  v: 1
max:
  v: 1
base:
  path:
    v: BaseModel.patient
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: BaseModel.patient.id
path:
  v: BaseModel.patient.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: BaseModel.patient.extension
path:
  v: BaseModel.patient.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: BaseModel.patient.modifierExtension
path:
  v: BaseModel.patient.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: BaseModel.patient.patId
path:
  v: BaseModel.patient.patId
short:
  v: 病歷號
definition:
  v: 病歷號 (參與醫院必須註冊命名系統)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: BaseModel.patient.patId
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: BaseModel.patient.name
path:
  v: BaseModel.patient.name
short:
  v: 姓名
definition:
  v: 姓名
min:
  v: 1
max:
  v: 1
base:
  path:
    v: BaseModel.patient.name
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: HumanName
    l: HumanName

id:
  v: BaseModel.patient.idCard
path:
  v: BaseModel.patient.idCard
short:
  v: 身分證號
definition:
  v: 身分證號
min:
  v: 1
max:
  v: 1
base:
  path:
    v: BaseModel.patient.idCard
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: BaseModel.patient.birthday
path:
  v: BaseModel.patient.birthday
short:
  v: 出生日期
definition:
  v: 出生日期
min:
  v: 1
max:
  v: 1
base:
  path:
    v: BaseModel.patient.birthday
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: date
    l: date

id:
  v: BaseModel.patient.gender
path:
  v: BaseModel.patient.gender
short:
  v: 病人性別
definition:
  v: 病人性別
min:
  v: 1
max:
  v: 1
base:
  path:
    v: BaseModel.patient.gender
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code

id:
  v: BaseModel.diagnosis
path:
  v: BaseModel.diagnosis
short:
  v: 疾病資訊
definition:
  v: 疾病資訊
min:
  v: 1
max:
  v: 1
base:
  path:
    v: BaseModel.diagnosis
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: BaseModel.diagnosis.id
path:
  v: BaseModel.diagnosis.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: BaseModel.diagnosis.extension
path:
  v: BaseModel.diagnosis.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: BaseModel.diagnosis.modifierExtension
path:
  v: BaseModel.diagnosis.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: BaseModel.diagnosis.icd10cmCode
path:
  v: BaseModel.diagnosis.icd10cmCode
short:
  v: 國際疾病分類代碼 (sequence=1)，共病症 (sequence>=2)
definition:
  v: 國際疾病分類代碼 (sequence=1)，共病症 (sequence>=2)
min:
  v: 1
max:
  v: 1
base:
  path:
    v: BaseModel.diagnosis.icd10cmCode
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code

id:
  v: BaseModel.diagnosis.diagDate
path:
  v: BaseModel.diagnosis.diagDate
short:
  v: 診斷日期
definition:
  v: YYYYMMDD，西元年月日，民國前為負數，sequence=1時為必填
min:
  v: 0
max:
  v: *
base:
  path:
    v: BaseModel.diagnosis.diagDate
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: date
    l: date

id:
  v: BaseModel.diagnosis.diagCurrentStatus
path:
  v: BaseModel.diagnosis.diagCurrentStatus
short:
  v: 簡要病摘。連結院內HIS系統之簡要病摘，或填寫原基因定序檢測之申請理由。
definition:
  v: 簡要病摘。連結院內HIS系統之簡要病摘，或填寫原基因定序檢測之申請理由。
min:
  v: 1
max:
  v: 1
base:
  path:
    v: BaseModel.diagnosis.diagCurrentStatus
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code

id:
  v: BaseModel.gene
path:
  v: BaseModel.gene
short:
  v: 基因資訊
definition:
  v: 基因資訊
min:
  v: 0
max:
  v: *
base:
  path:
    v: BaseModel.gene
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: BaseModel.gene.id
path:
  v: BaseModel.gene.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: BaseModel.gene.extension
path:
  v: BaseModel.gene.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: BaseModel.gene.modifierExtension
path:
  v: BaseModel.gene.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: BaseModel.gene.genTestCode
path:
  v: BaseModel.gene.genTestCode
short:
  v: 基因檢測代碼
definition:
  v: 基因檢測代碼
min:
  v: 0
max:
  v: *
base:
  path:
    v: BaseModel.gene.genTestCode
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept

id:
  v: BaseModel.gene.mutationType
path:
  v: BaseModel.gene.mutationType
short:
  v: 基因突變類型
definition:
  v: 基因突變類型
min:
  v: 0
max:
  v: *
base:
  path:
    v: BaseModel.gene.mutationType
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept

id:
  v: BaseModel.gene.specimenType
path:
  v: BaseModel.gene.specimenType
short:
  v: 基因檢測檢體類型
definition:
  v: 基因檢測檢體類型
min:
  v: 0
max:
  v: *
base:
  path:
    v: BaseModel.gene.specimenType
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept

id:
  v: BaseModel.gene.genMethod
path:
  v: BaseModel.gene.genMethod
short:
  v: 基因檢測方法
definition:
  v: 基因檢測方法
min:
  v: 0
max:
  v: *
base:
  path:
    v: BaseModel.gene.genMethod
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept

id:
  v: BaseModel.gene.genDate
path:
  v: BaseModel.gene.genDate
short:
  v: 基因檢測日期
definition:
  v: 基因檢測日期
min:
  v: 0
max:
  v: *
base:
  path:
    v: BaseModel.gene.genDate
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: dateTime
    l: dateTime

id:
  v: BaseModel.gene.genOrg
path:
  v: BaseModel.gene.genOrg
short:
  v: 基因檢測機構
definition:
  v: 基因檢測機構
min:
  v: 0
max:
  v: *
base:
  path:
    v: BaseModel.gene.genOrg
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: string
    l: string

id:
  v: BaseModel.gene.genResult
path:
  v: BaseModel.gene.genResult
short:
  v: 基因檢測分析結果
definition:
  v: 基因檢測分析結果
min:
  v: 0
max:
  v: *
base:
  path:
    v: BaseModel.gene.genResult
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept

id:
  v: BaseModel.gene.genInterpretation
path:
  v: BaseModel.gene.genInterpretation
short:
  v: 基因臨床判讀結果
definition:
  v: 基因臨床判讀結果，醫師判讀結果
min:
  v: 0
max:
  v: *
base:
  path:
    v: BaseModel.gene.genInterpretation
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept

id:
  v: BaseModel.gene.genPdf
path:
  v: BaseModel.gene.genPdf
short:
  v: 基因報告（檔案路徑）
definition:
  v: 基因報告（請填寫完整檔案路徑）
min:
  v: 0
max:
  v: *
base:
  path:
    v: BaseModel.gene.genPdf
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: base64Binary
    l: base64Binary

id:
  v: BaseModel.gene.genPdfTitle
path:
  v: BaseModel.gene.genPdfTitle
short:
  v: 基因報告名稱
definition:
  v: 基因報告名稱
min:
  v: 0
max:
  v: *
base:
  path:
    v: BaseModel.gene.genPdfTitle
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: string
    l: string

element:
  id:
    v: BaseModel
  path:
    v: BaseModel
  short:
    v: 臺灣健保署基礎(Base)資料模型
  definition:
    v: 臺灣健保署基礎(Base)資料模型，此邏輯模型為定義臺灣健保署基礎情境下使用的所有資料欄位。 為了便於實作者快速理解，資料欄位會使用易於理解的命名，實作者再透過邏輯模型中的功能頁籤「Mappings」 瞭解各資料欄位實際使用本IG的哪個Profiles的哪個資料項目（element）。亦可配合 [視覺化邏輯模型圖]進行欄位對應。
element:
  id:
    v: BaseModel.hosp
  path:
    v: BaseModel.hosp
  short:
    v: 院所資訊
  definition:
    v: 院所資訊
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: BackboneElement
      l: BackboneElement
element:
  id:
    v: BaseModel.hosp.hospId
  path:
    v: BaseModel.hosp.hospId
  short:
    v: 醫事機構代碼
  definition:
    v: 醫事機構代碼，必須存在於醫事機構基本資料檔內
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: string
      l: string
element:
  id:
    v: BaseModel.hosp.applType
  path:
    v: BaseModel.hosp.applType
  short:
    v: 申報類別
  definition:
    v: 申報類別
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: CodeableConcept
      l: CodeableConcept
element:
  id:
    v: BaseModel.hosp.applDate
  path:
    v: BaseModel.hosp.applDate
  short:
    v: 申請日期
  definition:
    v: 申請日期
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: dateTime
      l: dateTime
element:
  id:
    v: BaseModel.patient
  path:
    v: BaseModel.patient
  short:
    v: 病人資訊
  definition:
    v: 病人資訊
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: BackboneElement
      l: BackboneElement
element:
  id:
    v: BaseModel.patient.patId
  path:
    v: BaseModel.patient.patId
  short:
    v: 病歷號
  definition:
    v: 病歷號 (參與醫院必須註冊命名系統)
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: string
      l: string
element:
  id:
    v: BaseModel.patient.name
  path:
    v: BaseModel.patient.name
  short:
    v: 姓名
  definition:
    v: 姓名
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: HumanName
      l: HumanName
element:
  id:
    v: BaseModel.patient.idCard
  path:
    v: BaseModel.patient.idCard
  short:
    v: 身分證號
  definition:
    v: 身分證號
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: string
      l: string
element:
  id:
    v: BaseModel.patient.birthday
  path:
    v: BaseModel.patient.birthday
  short:
    v: 出生日期
  definition:
    v: 出生日期
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: date
      l: date
element:
  id:
    v: BaseModel.patient.gender
  path:
    v: BaseModel.patient.gender
  short:
    v: 病人性別
  definition:
    v: 病人性別
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: code
      l: code
element:
  id:
    v: BaseModel.diagnosis
  path:
    v: BaseModel.diagnosis
  short:
    v: 疾病資訊
  definition:
    v: 疾病資訊
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: BackboneElement
      l: BackboneElement
element:
  id:
    v: BaseModel.diagnosis.icd10cmCode
  path:
    v: BaseModel.diagnosis.icd10cmCode

v: 國際疾病分類代碼 (sequence=1)，共病症 (sequence>=2)

v: 國際疾病分類代碼 (sequence=1)，共病症 (sequence>=2)

v: 1

v: 1

code:
  v: code
  l: code

id:
  v: BaseModel.diagnosis.diagDate
path:
  v: BaseModel.diagnosis.diagDate
short:
  v: 診斷日期
definition:
  v: YYYYMMDD，西元年月日，民國前為負數，sequence=1時為必填
min:
  v: 0
max:
  v: *
type:
  code:
    v: date
    l: date

id:
  v: BaseModel.diagnosis.diagCurrentStatus
path:
  v: BaseModel.diagnosis.diagCurrentStatus
short:
  v: 簡要病摘。連結院內HIS系統之簡要病摘，或填寫原基因定序檢測之申請理由。
definition:
  v: 簡要病摘。連結院內HIS系統之簡要病摘，或填寫原基因定序檢測之申請理由。
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
    l: code

id:
  v: BaseModel.gene
path:
  v: BaseModel.gene
short:
  v: 基因資訊
definition:
  v: 基因資訊
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement

id:
  v: BaseModel.gene.genTestCode
path:
  v: BaseModel.gene.genTestCode
short:
  v: 基因檢測代碼
definition:
  v: 基因檢測代碼
min:
  v: 0
max:
  v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept

id:
  v: BaseModel.gene.mutationType
path:
  v: BaseModel.gene.mutationType
short:
  v: 基因突變類型
definition:
  v: 基因突變類型
min:
  v: 0
max:
  v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept

id:
  v: BaseModel.gene.specimenType
path:
  v: BaseModel.gene.specimenType
short:
  v: 基因檢測檢體類型
definition:
  v: 基因檢測檢體類型
min:
  v: 0
max:
  v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept

id:
  v: BaseModel.gene.genMethod
path:
  v: BaseModel.gene.genMethod
short:
  v: 基因檢測方法
definition:
  v: 基因檢測方法
min:
  v: 0
max:
  v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept

id:
  v: BaseModel.gene.genDate
path:
  v: BaseModel.gene.genDate
short:
  v: 基因檢測日期
definition:
  v: 基因檢測日期
min:
  v: 0
max:
  v: *
type:
  code:
    v: dateTime
    l: dateTime

id:
  v: BaseModel.gene.genOrg
path:
  v: BaseModel.gene.genOrg
short:
  v: 基因檢測機構
definition:
  v: 基因檢測機構
min:
  v: 0
max:
  v: *
type:
  code:
    v: string
    l: string

id:
  v: BaseModel.gene.genResult
path:
  v: BaseModel.gene.genResult
short:
  v: 基因檢測分析結果
definition:
  v: 基因檢測分析結果
min:
  v: 0
max:
  v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept

id:
  v: BaseModel.gene.genInterpretation
path:
  v: BaseModel.gene.genInterpretation
short:
  v: 基因臨床判讀結果
definition:
  v: 基因臨床判讀結果，醫師判讀結果
min:
  v: 0
max:
  v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept

id:
  v: BaseModel.gene.genPdf
path:
  v: BaseModel.gene.genPdf
short:
  v: 基因報告（檔案路徑）
definition:
  v: 基因報告（請填寫完整檔案路徑）
min:
  v: 0
max:
  v: *
type:
  code:
    v: base64Binary
    l: base64Binary

id:
  v: BaseModel.gene.genPdfTitle
path:
  v: BaseModel.gene.genPdfTitle
short:
  v: 基因報告名稱
definition:
  v: 基因報告名稱
min:
  v: 0
max:
  v: *
type:
  code:
    v: string
    l: string