ApplyModel
type: StructureDefinition
node role: treeRoot
id:
  v: ApplyModel
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition ApplyModel Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> ApplyModel 0..* Base 申請(Apply)重大傷病申請書之資料模型 #xD; hosp 1..1 BackboneElement 院所資訊 #xD; applMode 1..1 CodeableConcept 申報方式 #xD; applType 1..1 CodeableConcept 申報類別 #xD; applDate 1..1 dateTime 申請日期 #xD; medCertBookDate 1..1 dateTime 開立診斷書申請日期 #xD; hospId 1..1 string 醫事機構代碼 #xD; acptNo 1..1 string 受理編號 #xD; acptNum 1..1 integer 受理次數 #xD; patient 1..1 BackboneElement 病人資訊 #xD; idCard 1..1 string 身分證號 #xD; patID 0..1 string 病歷號 #xD; name 1..1 string 姓名 #xD; gender 1..1 code 病人性別 #xD; birthday 1..1 date 出生日期 #xD; zipCode 1..1 CodeableConcept 郵遞區號 #xD; contactAddr 1..1 string 連絡住址 #xD; mobile 0..1 string 手機號碼 #xD; contactTel 0..1 string 連絡電話 #xD; email 0..1 string 電子郵件信箱 #xD; doctor 1..1 BackboneElement 醫師資訊 #xD; diagPrsnId 0..1 string 醫師身分證號 #xD; diagPrsnName 1..1 string 診斷醫師姓名 #xD; diagnosis 1..1 BackboneElement 疾病資訊 #xD; icd10cmCode 1..1 code 主診斷代碼 #xD; examinationReport 0..* BackboneElement 檢查報告 #xD; reportType 0..1 code 報告類型 #xD; speType 0..1 string 檢體種類 #xD; reportResultString 0..1 string 檢查報告結果（文數字） #xD; reportResultPdf 0..1 string 檢查報告結果（檔案路徑） #xD; reportResultPdfTitle 0..1 string 檢查報告名稱 #xD; reportDate 0..1 dateTime 報告日期 #xD; medrec 0..* BackboneElement 病歷資料 #xD; medrec 1..1 string 病歷資料（請填寫完整檔案路徑） #xD; medrecTitle 0..1 string 病歷資料名稱 #xD; imageStudy 0..* BackboneElement 影像報告 #xD; imgItem 1..1 code 影像報告 #xD; imgResult 1..1 string 影像報告結果 #xD; imgDate 1..1 dateTime 影像報告日期 #xD; imgBodySite 1..1 code 影像檢查的身體部位 #xD; imgDicom 0..* BackboneElement DICOM影像 #xD; studyUid 1..1 string 整項影像檢查的識別碼 #xD; series 1..* BackboneElement 每項影像檢查有一個或多個系列(series)的實例 #xD; uid 1..1 string 此系列的DICOM系列實例UID #xD; modality 1..1 code 此系列實例所使用的成像儀器 #xD; instance 1..* BackboneElement 系列中的一個SOP實例 #xD; uid 1..1 string DICOM影像 #xD; sopClass 1..1 code DICOM class 類型 #xD; imgNonDicom 0..* BackboneElement 非DICOM影像 #xD; imgNonDicom 1..1 string 非D…
url:
  v: https://nhicore.nhi.gov.tw/ci/StructureDefinition/ApplyModel
  l: ApplyModel
version:
  v: 1.0.2
name:
  v: ApplyModel
title:
  v: 申請(Apply)重大傷病申請書之資料模型
status:
  v: active
date:
  v: 2025-11-12T05:05:26+00:00
publisher:
  v: 衛生福利部中央健康保險署
contact:
  name:
    v: 衛生福利部中央健康保險署
  telecom:
    system:
      v: url
    value:
      v: https://www.nhi.gov.tw
description:
  v: 申請(Apply)重大傷病之資料模型，此邏輯模型為定義重大傷病情境下使用的所有資料欄位。 為了便於實作者快速理解，資料欄位會使用易於理解的命名，實作者再透過邏輯模型中的功能頁籤「Mappings」 瞭解各資料欄位實際使用TWCI IG的哪個Profiles的哪個資料項目（element）。亦可配合 [視覺化邏輯模型圖]進行欄位對應。
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  uri:
    v: https://nhicore.nhi.gov.tw/ci/StructureDefinition/QuestionnaireResponse-twci
    l: QuestionnaireResponse-twci
  name:
    v: Mapping to TWCI QuestionnaireResponse
mapping:
  identity:
    v: TWCIPatient
  uri:
    v: https://nhicore.nhi.gov.tw/ci/StructureDefinition/Patient-twci
    l: Patient-twci
  name:
    v: Mapping to TWCI Patient
mapping:
  identity:
    v: TWCICondition
  uri:
    v: https://nhicore.nhi.gov.tw/ci/StructureDefinition/Condition-twci
    l: Condition-twci
  name:
    v: Mapping to TWCI Condition
kind:
  v: logical
abstract:
  v: false
type:
  v: https://nhicore.nhi.gov.tw/ci/StructureDefinition/ApplyModel
  l: ApplyModel
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: ApplyModel
    path:
      v: ApplyModel
    short:
      v: 申請(Apply)重大傷病申請書之資料模型
    definition:
      v: 申請(Apply)重大傷病之資料模型，此邏輯模型為定義重大傷病情境下使用的所有資料欄位。 為了便於實作者快速理解，資料欄位會使用易於理解的命名，實作者再透過邏輯模型中的功能頁籤「Mappings」 瞭解各資料欄位實際使用TWCI IG的哪個Profiles的哪個資料項目（element）。亦可配合 [視覺化邏輯模型圖]進行欄位對應。
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Base
      min:
        v: 0
      max:
        v: *
    is modifier:
      v: false
  element:
    id:
      v: ApplyModel.hosp
    path:
      v: ApplyModel.hosp
    short:
      v: 院所資訊
    definition:
      v: 院所資訊
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: ApplyModel.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: ApplyModel.hosp.id
    path:
      v: ApplyModel.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: ApplyModel.hosp.extension
    path:
      v: ApplyModel.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

Url
v: string
l: string

v: value

v: url

v: 0

v: *

code:
  v: Extension
  l: Extension

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

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

v: false

v: false

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

id:
  v: ApplyModel.hosp.modifierExtension
path:
  v: ApplyModel.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: ApplyModel.hosp.applMode
path:
  v: ApplyModel.hosp.applMode
short:
  v: 申報方式
definition:
  v: 申報方式
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.hosp.applMode
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '1').item.where(linkId = '1.1').answer.valueCoding.code

id:
  v: ApplyModel.hosp.applType
path:
  v: ApplyModel.hosp.applType
short:
  v: 申報類別
definition:
  v: 申報類別
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.hosp.applType
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '1').item.where(linkId = '1.2').answer.valueCoding.code

id:
  v: ApplyModel.hosp.applDate
path:
  v: ApplyModel.hosp.applDate
short:
  v: 申請日期
definition:
  v: 申請日期
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.hosp.applDate
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '1').item.where(linkId = '1.3').answer.valueDate

id:
  v: ApplyModel.hosp.medCertBookDate
path:
  v: ApplyModel.hosp.medCertBookDate
short:
  v: 開立診斷書申請日期
definition:
  v: 開立診斷書申請日期
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.hosp.medCertBookDate
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '1').item.where(linkId = '1.4').answer.valueDate

id:
  v: ApplyModel.hosp.hospId
path:
  v: ApplyModel.hosp.hospId
short:
  v: 醫事機構代碼
definition:
  v: 醫事機構代碼，必須存在於醫事機構基本資料檔內
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.hosp.hospId
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '1').item.where(linkId = '1.5').answer.valueCoding.code

id:
  v: ApplyModel.hosp.acptNo
path:
  v: ApplyModel.hosp.acptNo
short:
  v: 受理編號
definition:
  v: 受理編號
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.hosp.acptNo
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '1').item.where(linkId = '1.6').answer.valueString

id:
  v: ApplyModel.hosp.acptNum
path:
  v: ApplyModel.hosp.acptNum
short:
  v: 受理次數
definition:
  v: 受理次數
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.hosp.acptNum
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: integer
    l: integer
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '1').item.where(linkId = '1.7').answer.valueInteger

id:
  v: ApplyModel.patient
path:
  v: ApplyModel.patient
short:
  v: 病人資訊
definition:
  v: 病人資訊
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.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
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '2').answer.valueReference
mapping:
  identity:
    v: TWCIPatient
  map:
    v: Patient

id:
  v: ApplyModel.patient.id
path:
  v: ApplyModel.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: ApplyModel.patient.extension
path:
  v: ApplyModel.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: ApplyModel.patient.modifierExtension
path:
  v: ApplyModel.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: ApplyModel.patient.idCard
path:
  v: ApplyModel.patient.idCard
short:
  v: 身分證號
definition:
  v: 身分證號
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.patient.idCard
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIPatient
  map:
    v: Patient.identifier.where(type.coding.code = 'NNxxx').value

id:
  v: ApplyModel.patient.patID
path:
  v: ApplyModel.patient.patID
short:
  v: 病歷號
definition:
  v: 病歷號
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ApplyModel.patient.patID
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIPatient
  map:
    v: Patient.identifier.where(type.coding.code = 'MR').value

id:
  v: ApplyModel.patient.name
path:
  v: ApplyModel.patient.name
short:
  v: 姓名
definition:
  v: 姓名
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.patient.name
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIPatient
  map:
    v: Patient.name.where(use = 'usual').text

id:
  v: ApplyModel.patient.gender
path:
  v: ApplyModel.patient.gender
short:
  v: 病人性別
definition:
  v: 病人性別
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.patient.gender
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: TWCIPatient
  map:
    v: Patient.gender

id:
  v: ApplyModel.patient.birthday
path:
  v: ApplyModel.patient.birthday
short:
  v: 出生日期
definition:
  v: 出生日期
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.patient.birthday
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: date
    l: date
mapping:
  identity:
    v: TWCIPatient
  map:
    v: Patient.birthDate

id:
  v: ApplyModel.patient.zipCode
path:
  v: ApplyModel.patient.zipCode
short:
  v: 郵遞區號
definition:
  v: 郵遞區號
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.patient.zipCode
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: TWCIPatient
  map:
    v: Patient.address.postalCode

id:
  v: ApplyModel.patient.contactAddr
path:
  v: ApplyModel.patient.contactAddr
short:
  v: 連絡住址
definition:
  v: 連絡住址
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.patient.contactAddr
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIPatient
  map:
    v: Patient.address.text

id:
  v: ApplyModel.patient.mobile
path:
  v: ApplyModel.patient.mobile
short:
  v: 手機號碼
definition:
  v: 手機號碼。應為數字10碼(寄送核發簡訊使用)。手機號碼與聯絡電話應至少填寫一欄。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ApplyModel.patient.mobile
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIPatient
  map:
    v: Patient.telecom.where(system = 'sms').value

id:
  v: ApplyModel.patient.contactTel
path:
  v: ApplyModel.patient.contactTel
short:
  v: 連絡電話
definition:
  v: 連絡電話。長度不得超過15字。手機號碼與聯絡電話應至少填寫一欄。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ApplyModel.patient.contactTel
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIPatient
  map:
    v: Patient.telecom.where(system = 'phone').value

id:
  v: ApplyModel.patient.email
path:
  v: ApplyModel.patient.email
short:
  v: 電子郵件信箱
definition:
  v: 電子郵件信箱
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ApplyModel.patient.email
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIPatient
  map:
    v: Patient.telecom.where(system = 'email').value

id:
  v: ApplyModel.doctor
path:
  v: ApplyModel.doctor
short:
  v: 醫師資訊
definition:
  v: 醫師資訊
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.doctor
  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: ApplyModel.doctor.id
path:
  v: ApplyModel.doctor.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: ApplyModel.doctor.extension
path:
  v: ApplyModel.doctor.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: ApplyModel.doctor.modifierExtension
path:
  v: ApplyModel.doctor.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: ApplyModel.doctor.diagPrsnId
path:
  v: ApplyModel.doctor.diagPrsnId
short:
  v: 醫師身分證號
definition:
  v: 醫師身分證號
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ApplyModel.doctor.diagPrsnId
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '3').item.where(linkId = '3.1').answer.valueString

id:
  v: ApplyModel.doctor.diagPrsnName
path:
  v: ApplyModel.doctor.diagPrsnName
short:
  v: 診斷醫師姓名
definition:
  v: 診斷醫師姓名
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.doctor.diagPrsnName
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '3').item.where(linkId = '3.2').answer.valueString

id:
  v: ApplyModel.diagnosis
path:
  v: ApplyModel.diagnosis
short:
  v: 疾病資訊
definition:
  v: 疾病資訊
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.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: ApplyModel.diagnosis.id
path:
  v: ApplyModel.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: ApplyModel.diagnosis.extension
path:
  v: ApplyModel.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: ApplyModel.diagnosis.modifierExtension
path:
  v: ApplyModel.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: ApplyModel.diagnosis.icd10cmCode
path:
  v: ApplyModel.diagnosis.icd10cmCode
short:
  v: 主診斷代碼
definition:
  v: 主診斷代碼
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.diagnosis.icd10cmCode
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.1').answer.valueCoding.code

id:
  v: ApplyModel.diagnosis.examinationReport
path:
  v: ApplyModel.diagnosis.examinationReport
short:
  v: 檢查報告
definition:
  v: 檢查報告
min:
  v: 0
max:
  v: *
base:
  path:
    v: ApplyModel.diagnosis.examinationReport
  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: ApplyModel.diagnosis.examinationReport.id
path:
  v: ApplyModel.diagnosis.examinationReport.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: ApplyModel.diagnosis.examinationReport.extension
path:
  v: ApplyModel.diagnosis.examinationReport.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: ApplyModel.diagnosis.examinationReport.modifierExtension
path:
  v: ApplyModel.diagnosis.examinationReport.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: ApplyModel.diagnosis.examinationReport.reportType
path:
  v: ApplyModel.diagnosis.examinationReport.reportType
short:
  v: 報告類型
definition:
  v: 報告類型。當LOINC無法具體描述檢體種類（例如：`47526-9`時），請填寫及補充說明檢體種類。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ApplyModel.diagnosis.examinationReport.reportType
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.2').item.where(linkId = '4.2.1').answer.valueCoding.code

id:
  v: ApplyModel.diagnosis.examinationReport.speType
path:
  v: ApplyModel.diagnosis.examinationReport.speType
short:
  v: 檢體種類
definition:
  v: 檢體種類
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ApplyModel.diagnosis.examinationReport.speType
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.2').item.where(linkId = '4.2.2').answer.valueString

id:
  v: ApplyModel.diagnosis.examinationReport.reportResultString
path:
  v: ApplyModel.diagnosis.examinationReport.reportResultString
short:
  v: 檢查報告結果（文數字）
definition:
  v: 檢查報告結果-文數字與base64Binary應擇一填寫
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ApplyModel.diagnosis.examinationReport.reportResultString
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.2').item.where(linkId = '4.2.3').answer.valueString

id:
  v: ApplyModel.diagnosis.examinationReport.reportResultPdf
path:
  v: ApplyModel.diagnosis.examinationReport.reportResultPdf
short:
  v: 檢查報告結果（檔案路徑）
definition:
  v: 檢查報告結果-文數字與base64Binary應擇一填寫
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ApplyModel.diagnosis.examinationReport.reportResultPdf
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.2').item.where(linkId = '4.2.4').answer.valueString

id:
  v: ApplyModel.diagnosis.examinationReport.reportResultPdfTitle
path:
  v: ApplyModel.diagnosis.examinationReport.reportResultPdfTitle
short:
  v: 檢查報告名稱
definition:
  v: 檢查報告名稱
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ApplyModel.diagnosis.examinationReport.reportResultPdfTitle
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.2').item.where(linkId = '4.2.5').answer.valueString

id:
  v: ApplyModel.diagnosis.examinationReport.reportDate
path:
  v: ApplyModel.diagnosis.examinationReport.reportDate
short:
  v: 報告日期
definition:
  v: 報告日期
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ApplyModel.diagnosis.examinationReport.reportDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.2').item.where(linkId = '4.2.6').answer.valueDate

id:
  v: ApplyModel.diagnosis.medrec
path:
  v: ApplyModel.diagnosis.medrec
short:
  v: 病歷資料
definition:
  v: 病歷資料（非屬影像報告檢查驗報告部分）
min:
  v: 0
max:
  v: *
base:
  path:
    v: ApplyModel.diagnosis.medrec
  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: ApplyModel.diagnosis.medrec.id
path:
  v: ApplyModel.diagnosis.medrec.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: ApplyModel.diagnosis.medrec.extension
path:
  v: ApplyModel.diagnosis.medrec.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: ApplyModel.diagnosis.medrec.modifierExtension
path:
  v: ApplyModel.diagnosis.medrec.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: ApplyModel.diagnosis.medrec.medrec
path:
  v: ApplyModel.diagnosis.medrec.medrec
short:
  v: 病歷資料（請填寫完整檔案路徑）
definition:
  v: 病歷資料（請填寫完整檔案路徑）
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.diagnosis.medrec.medrec
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.3').item.where(linkId = '4.3.1').answer.valueString

id:
  v: ApplyModel.diagnosis.medrec.medrecTitle
path:
  v: ApplyModel.diagnosis.medrec.medrecTitle
short:
  v: 病歷資料名稱
definition:
  v: 病歷資料名稱
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ApplyModel.diagnosis.medrec.medrecTitle
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.3').item.where(linkId = '4.3.2').answer.valueString

id:
  v: ApplyModel.diagnosis.imageStudy
path:
  v: ApplyModel.diagnosis.imageStudy
short:
  v: 影像報告
definition:
  v: 影像報告
min:
  v: 0
max:
  v: *
base:
  path:
    v: ApplyModel.diagnosis.imageStudy
  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: ApplyModel.diagnosis.imageStudy.id
path:
  v: ApplyModel.diagnosis.imageStudy.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: ApplyModel.diagnosis.imageStudy.extension
path:
  v: ApplyModel.diagnosis.imageStudy.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: ApplyModel.diagnosis.imageStudy.modifierExtension
path:
  v: ApplyModel.diagnosis.imageStudy.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: ApplyModel.diagnosis.imageStudy.imgItem
path:
  v: ApplyModel.diagnosis.imageStudy.imgItem
short:
  v: 影像報告
definition:
  v: 影像報告
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.diagnosis.imageStudy.imgItem
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.4').item.where(linkId = '4.4.1').answer.valueCoding.code

id:
  v: ApplyModel.diagnosis.imageStudy.imgResult
path:
  v: ApplyModel.diagnosis.imageStudy.imgResult
short:
  v: 影像報告結果
definition:
  v: 影像報告結果
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.diagnosis.imageStudy.imgResult
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.4').item.where(linkId = '4.4.2').answer.valueString

id:
  v: ApplyModel.diagnosis.imageStudy.imgDate
path:
  v: ApplyModel.diagnosis.imageStudy.imgDate
short:
  v: 影像報告日期
definition:
  v: 影像報告日期
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.diagnosis.imageStudy.imgDate
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.4').item.where(linkId = '4.4.3').answer.valueDate

id:
  v: ApplyModel.diagnosis.imageStudy.imgBodySite
path:
  v: ApplyModel.diagnosis.imageStudy.imgBodySite
short:
  v: 影像檢查的身體部位
definition:
  v: 影像檢查的身體部位
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.diagnosis.imageStudy.imgBodySite
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.4').item.where(linkId = '4.4.4').answer.valueCoding.code

id:
  v: ApplyModel.diagnosis.imageStudy.imgDicom
path:
  v: ApplyModel.diagnosis.imageStudy.imgDicom
short:
  v: DICOM影像
definition:
  v: DICOM影像
min:
  v: 0
max:
  v: *
base:
  path:
    v: ApplyModel.diagnosis.imageStudy.imgDicom
  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: ApplyModel.diagnosis.imageStudy.imgDicom.id
path:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.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: ApplyModel.diagnosis.imageStudy.imgDicom.extension
path:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.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: ApplyModel.diagnosis.imageStudy.imgDicom.modifierExtension
path:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.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: ApplyModel.diagnosis.imageStudy.imgDicom.studyUid
path:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.studyUid
short:
  v: 整項影像檢查的識別碼
definition:
  v: D整項影像檢查的識別碼
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.diagnosis.imageStudy.imgDicom.studyUid
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.4').item.where(linkId = '4.4.5').item.where(linkId = '4.4.5.1').answer.valueString

id:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.series
path:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.series
short:
  v: 每項影像檢查有一個或多個系列(series)的實例
definition:
  v: 每項影像檢查有一個或多個系列(series)的實例
min:
  v: 1
max:
  v: *
base:
  path:
    v: ApplyModel.diagnosis.imageStudy.imgDicom.series
  min:
    v: 1
  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: ApplyModel.diagnosis.imageStudy.imgDicom.series.id
path:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.series.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: ApplyModel.diagnosis.imageStudy.imgDicom.series.extension
path:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.series.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: ApplyModel.diagnosis.imageStudy.imgDicom.series.modifierExtension
path:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.series.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: ApplyModel.diagnosis.imageStudy.imgDicom.series.uid
path:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.series.uid
short:
  v: 此系列的DICOM系列實例UID
definition:
  v: 此系列的DICOM系列實例UID
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.diagnosis.imageStudy.imgDicom.series.uid
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.4').item.where(linkId = '4.4.5').item.where(linkId = '4.4.5.2').item.where(linkId = '4.4.5.2.1').answer.valueString

id:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.series.modality
path:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.series.modality
short:
  v: 此系列實例所使用的成像儀器
definition:
  v: 此系列實例所使用的成像儀器
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.diagnosis.imageStudy.imgDicom.series.modality
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.4').item.where(linkId = '4.4.5').item.where(linkId = '4.4.5.2').item.where(linkId = '4.4.5.2.2').answer.valueCoding.code

id:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.series.instance
path:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.series.instance
short:
  v: 系列中的一個SOP實例
definition:
  v: 系列中的一個SOP實例
min:
  v: 1
max:
  v: *
base:
  path:
    v: ApplyModel.diagnosis.imageStudy.imgDicom.series.instance
  min:
    v: 1
  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: ApplyModel.diagnosis.imageStudy.imgDicom.series.instance.id
path:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.series.instance.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: ApplyModel.diagnosis.imageStudy.imgDicom.series.instance.extension
path:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.series.instance.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: ApplyModel.diagnosis.imageStudy.imgDicom.series.instance.modifierExtension
path:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.series.instance.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: ApplyModel.diagnosis.imageStudy.imgDicom.series.instance.uid
path:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.series.instance.uid
short:
  v: DICOM影像
definition:
  v: DICOM影像
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.diagnosis.imageStudy.imgDicom.series.instance.uid
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.4').item.where(linkId = '4.4.5').item.where(linkId = '4.4.5.2').item.where(linkId = '4.4.5.2.3').item.where(linkId = '4.4.5.2.3.1').answer.valueString

id:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.series.instance.sopClass
path:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.series.instance.sopClass
short:
  v: DICOM class 類型
definition:
  v: DICOM class 類型
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.diagnosis.imageStudy.imgDicom.series.instance.sopClass
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.4').item.where(linkId = '4.4.5').item.where(linkId = '4.4.5.2').item.where(linkId = '4.4.5.2.3').item.where(linkId = '4.4.5.2.3.2').answer.valueCoding.code

id:
  v: ApplyModel.diagnosis.imageStudy.imgNonDicom
path:
  v: ApplyModel.diagnosis.imageStudy.imgNonDicom
short:
  v: 非DICOM影像
definition:
  v: 非DICOM影像
min:
  v: 0
max:
  v: *
base:
  path:
    v: ApplyModel.diagnosis.imageStudy.imgNonDicom
  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: ApplyModel.diagnosis.imageStudy.imgNonDicom.id
path:
  v: ApplyModel.diagnosis.imageStudy.imgNonDicom.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: ApplyModel.diagnosis.imageStudy.imgNonDicom.extension
path:
  v: ApplyModel.diagnosis.imageStudy.imgNonDicom.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: ApplyModel.diagnosis.imageStudy.imgNonDicom.modifierExtension
path:
  v: ApplyModel.diagnosis.imageStudy.imgNonDicom.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: ApplyModel.diagnosis.imageStudy.imgNonDicom.imgNonDicom
path:
  v: ApplyModel.diagnosis.imageStudy.imgNonDicom.imgNonDicom
short:
  v: 非DICOM影像（請填寫完整檔案路徑）
definition:
  v: 非DICOM影像（請填寫完整檔案路徑）
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.diagnosis.imageStudy.imgNonDicom.imgNonDicom
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.4').item.where(linkId = '4.4.6').item.where(linkId = '4.4.6.1').answer.valueString

id:
  v: ApplyModel.diagnosis.imageStudy.imgNonDicom.imgNonDicomMimeType
path:
  v: ApplyModel.diagnosis.imageStudy.imgNonDicom.imgNonDicomMimeType
short:
  v: 非DICOM影像MimeType
definition:
  v: 非DICOM影像MimeType
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.diagnosis.imageStudy.imgNonDicom.imgNonDicomMimeType
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.4').item.where(linkId = '4.4.6').item.where(linkId = '4.4.6.2').answer.valueCoding.code

id:
  v: ApplyModel.ci
path:
  v: ApplyModel.ci
short:
  v: 重大傷病
definition:
  v: 重大傷病
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.ci
  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
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '5').answer.valueReference
mapping:
  identity:
    v: TWCICondition
  map:
    v: Condition

id:
  v: ApplyModel.ci.id
path:
  v: ApplyModel.ci.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: ApplyModel.ci.extension
path:
  v: ApplyModel.ci.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: ApplyModel.ci.modifierExtension
path:
  v: ApplyModel.ci.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: ApplyModel.ci.hvType
path:
  v: ApplyModel.ci.hvType
short:
  v: 重大傷病類別
definition:
  v: 重大傷病類別
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.ci.hvType
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: TWCICondition
  map:
    v: Condition.category.coding.code

id:
  v: ApplyModel.cancerStage
path:
  v: ApplyModel.cancerStage
short:
  v: 癌症期別
definition:
  v: 癌症期別
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.cancerStage
  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: ApplyModel.cancerStage.id
path:
  v: ApplyModel.cancerStage.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: ApplyModel.cancerStage.extension
path:
  v: ApplyModel.cancerStage.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: ApplyModel.cancerStage.modifierExtension
path:
  v: ApplyModel.cancerStage.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: ApplyModel.cancerStage.cancerStage
path:
  v: ApplyModel.cancerStage.cancerStage
short:
  v: 癌症期別
definition:
  v: 癌症期別
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.cancerStage.cancerStage
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '6').item.where(linkId = '6.1').answer.valueCoding.code

id:
  v: ApplyModel.cancerStage.assessScore
path:
  v: ApplyModel.cancerStage.assessScore
short:
  v: 癌症分期分數或結果
definition:
  v: 癌症分期分數或結果
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ApplyModel.cancerStage.assessScore
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '6').item.where(linkId = '6.2').answer.valueString

id:
  v: ApplyModel.cancerStage.assessDate
path:
  v: ApplyModel.cancerStage.assessDate
short:
  v: 癌症分期量表評估日期
definition:
  v: 癌症分期量表評估日期
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ApplyModel.cancerStage.assessDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: date
    l: date
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '6').item.where(linkId = '6.3').answer.valueDate

id:
  v: ApplyModel.illness
path:
  v: ApplyModel.illness
short:
  v: 惡性腫瘤重大傷病換發評估表
definition:
  v: 惡性腫瘤重大傷病換發評估表
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ApplyModel.illness
  min:
    v: 0
  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: ApplyModel.illness.id
path:
  v: ApplyModel.illness.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: ApplyModel.illness.extension
path:
  v: ApplyModel.illness.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: ApplyModel.illness.modifierExtension
path:
  v: ApplyModel.illness.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: ApplyModel.illness.code
path:
  v: ApplyModel.illness.code
short:
  v: 原發癌症診斷碼
definition:
  v: 原發癌症診斷碼
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ApplyModel.illness.code
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '7').item.where(linkId = '7.1').answer.valueCoding.code

id:
  v: ApplyModel.illness.date
path:
  v: ApplyModel.illness.date
short:
  v: 癌症最初診斷日期
definition:
  v: 癌症最初診斷日期
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ApplyModel.illness.date
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: date
    l: date
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '7').item.where(linkId = '7.2').answer.valueDate

id:
  v: ApplyModel.illness.oriCancerAjcc
path:
  v: ApplyModel.illness.oriCancerAjcc
short:
  v: 癌症最初診斷AJCC分期
definition:
  v: 癌症最初診斷AJCC分期
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ApplyModel.illness.oriCancerAjcc
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '7').item.where(linkId = '7.3').answer.valueCoding.code

id:
  v: ApplyModel.illness.oriCancerAjcc1
path:
  v: ApplyModel.illness.oriCancerAjcc1
short:
  v: 癌症最初診斷AJCC分期_補充說明欄位
definition:
  v: 癌症最初診斷AJCC分期_補充說明欄位
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ApplyModel.illness.oriCancerAjcc1
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '7').item.where(linkId = '7.4').answer.valueString

id:
  v: ApplyModel.illness.cancerStatus
path:
  v: ApplyModel.illness.cancerStatus
short:
  v: 目前癌症狀態
definition:
  v: 目前癌症狀態
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ApplyModel.illness.cancerStatus
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '7').item.where(linkId = '7.5').answer.valueCoding.code

id:
  v: ApplyModel.illness.cancerTreatment
path:
  v: ApplyModel.illness.cancerTreatment
short:
  v: 後續治療評估
definition:
  v: 後續治療評估
min:
  v: 0
max:
  v: *
base:
  path:
    v: ApplyModel.illness.cancerTreatment
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '7').item.where(linkId = '7.6').answer.valueCoding.code

id:
  v: ApplyModel.illness.cancerTreatmentPlan
path:
  v: ApplyModel.illness.cancerTreatmentPlan
short:
  v: 後續治療計畫
definition:
  v: 後續治療計畫
min:
  v: 0
max:
  v: *
base:
  path:
    v: ApplyModel.illness.cancerTreatmentPlan
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '7').item.where(linkId = '7.7').answer.valueCoding.code

id:
  v: ApplyModel.illness.cancerTreatmentText
path:
  v: ApplyModel.illness.cancerTreatmentText
short:
  v: 補充說明
definition:
  v: 補充欄位供申請院所自行補充說明
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ApplyModel.illness.cancerTreatmentText
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '7').item.where(linkId = '7.8').answer.valueString

element:
  id:
    v: ApplyModel
  path:
    v: ApplyModel
  short:
    v: 申請(Apply)重大傷病申請書之資料模型
  definition:
    v: 申請(Apply)重大傷病之資料模型，此邏輯模型為定義重大傷病情境下使用的所有資料欄位。 為了便於實作者快速理解，資料欄位會使用易於理解的命名，實作者再透過邏輯模型中的功能頁籤「Mappings」 瞭解各資料欄位實際使用TWCI IG的哪個Profiles的哪個資料項目（element）。亦可配合 [視覺化邏輯模型圖]進行欄位對應。
element:
  id:
    v: ApplyModel.hosp
  path:
    v: ApplyModel.hosp
  short:
    v: 院所資訊
  definition:
    v: 院所資訊
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: BackboneElement
      l: BackboneElement
element:
  id:
    v: ApplyModel.hosp.applMode
  path:
    v: ApplyModel.hosp.applMode
  short:
    v: 申報方式
  definition:
    v: 申報方式
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: CodeableConcept
      l: CodeableConcept
  mapping:
    identity:
      v: TWCIQuestionnaireResponse
    map:
      v: QuestionnaireResponse.item.where(linkId = '1').item.where(linkId = '1.1').answer.valueCoding.code
element:
  id:
    v: ApplyModel.hosp.applType
  path:
    v: ApplyModel.hosp.applType
  short:
    v: 申報類別
  definition:
    v: 申報類別
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: CodeableConcept
      l: CodeableConcept
  mapping:
    identity:
      v: TWCIQuestionnaireResponse
    map:
      v: QuestionnaireResponse.item.where(linkId = '1').item.where(linkId = '1.2').answer.valueCoding.code
element:
  id:
    v: ApplyModel.hosp.applDate
  path:
    v: ApplyModel.hosp.applDate
  short:
    v: 申請日期
  definition:
    v: 申請日期
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: dateTime
      l: dateTime
  mapping:
    identity:
      v: TWCIQuestionnaireResponse
    map:
      v: QuestionnaireResponse.item.where(linkId = '1').item.where(linkId = '1.3').answer.valueDate
element:
  id:
    v: ApplyModel.hosp.medCertBookDate
  path:
    v: ApplyModel.hosp.medCertBookDate
  short:
    v: 開立診斷書申請日期
  definition:
    v: 開立診斷書申請日期
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: dateTime
      l: dateTime
  mapping:
    identity:
      v: TWCIQuestionnaireResponse
    map:
      v: QuestionnaireResponse.item.where(linkId = '1').item.where(linkId = '1.4').answer.valueDate
element:
  id:
    v: ApplyModel.hosp.hospId
  path:
    v: ApplyModel.hosp.hospId
  short:
    v: 醫事機構代碼
  definition:
    v: 醫事機構代碼，必須存在於醫事機構基本資料檔內
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: string
      l: string
  mapping:
    identity:
      v: TWCIQuestionnaireResponse
    map:
      v: QuestionnaireResponse.item.where(linkId = '1').item.where(linkId = '1.5').answer.valueCoding.code
element:
  id:
    v: ApplyModel.hosp.acptNo
  path:
    v: ApplyModel.hosp.acptNo
  short:
    v: 受理編號
  definition:
    v: 受理編號
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: string
      l: string
  mapping:
    identity:
      v: TWCIQuestionnaireResponse
    map:
      v: QuestionnaireResponse.item.where(linkId = '1').item.where(linkId = '1.6').answer.valueString
element:
  id:
    v: ApplyModel.hosp.acptNum
  path:
    v: ApplyModel.hosp.acptNum
  short:
    v: 受理次數
  definition:
    v: 受理次數
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: integer
      l: integer
  mapping:
    identity:
      v: TWCIQuestionnaireResponse
    map:
      v: QuestionnaireResponse.item.where(linkId = '1').item.where(linkId = '1.7').answer.valueInteger
element:
  id:
    v: ApplyModel.patient
  path:
    v: ApplyModel.patient
  short:
    v: 病人資訊
  definition:
    v: 病人資訊
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: BackboneElement
      l: BackboneElement
  mapping:
    identity:
      v: TWCIQuestionnaireResponse
    map:
      v: QuestionnaireResponse.item.where(linkId = '2').answer.valueReference

identity:
  v: TWCIPatient
map:
  v: Patient

id:
  v: ApplyModel.patient.idCard
path:
  v: ApplyModel.patient.idCard
short:
  v: 身分證號
definition:
  v: 身分證號
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIPatient
  map:
    v: Patient.identifier.where(type.coding.code = 'NNxxx').value

id:
  v: ApplyModel.patient.patID
path:
  v: ApplyModel.patient.patID
short:
  v: 病歷號
definition:
  v: 病歷號
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIPatient
  map:
    v: Patient.identifier.where(type.coding.code = 'MR').value

id:
  v: ApplyModel.patient.name
path:
  v: ApplyModel.patient.name
short:
  v: 姓名
definition:
  v: 姓名
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIPatient
  map:
    v: Patient.name.where(use = 'usual').text

id:
  v: ApplyModel.patient.gender
path:
  v: ApplyModel.patient.gender
short:
  v: 病人性別
definition:
  v: 病人性別
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: TWCIPatient
  map:
    v: Patient.gender

id:
  v: ApplyModel.patient.birthday
path:
  v: ApplyModel.patient.birthday
short:
  v: 出生日期
definition:
  v: 出生日期
min:
  v: 1
max:
  v: 1
type:
  code:
    v: date
    l: date
mapping:
  identity:
    v: TWCIPatient
  map:
    v: Patient.birthDate

id:
  v: ApplyModel.patient.zipCode
path:
  v: ApplyModel.patient.zipCode
short:
  v: 郵遞區號
definition:
  v: 郵遞區號
min:
  v: 1
max:
  v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: TWCIPatient
  map:
    v: Patient.address.postalCode

id:
  v: ApplyModel.patient.contactAddr
path:
  v: ApplyModel.patient.contactAddr
short:
  v: 連絡住址
definition:
  v: 連絡住址
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIPatient
  map:
    v: Patient.address.text

id:
  v: ApplyModel.patient.mobile
path:
  v: ApplyModel.patient.mobile
short:
  v: 手機號碼
definition:
  v: 手機號碼。應為數字10碼(寄送核發簡訊使用)。手機號碼與聯絡電話應至少填寫一欄。
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIPatient
  map:
    v: Patient.telecom.where(system = 'sms').value

id:
  v: ApplyModel.patient.contactTel
path:
  v: ApplyModel.patient.contactTel
short:
  v: 連絡電話
definition:
  v: 連絡電話。長度不得超過15字。手機號碼與聯絡電話應至少填寫一欄。
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIPatient
  map:
    v: Patient.telecom.where(system = 'phone').value

id:
  v: ApplyModel.patient.email
path:
  v: ApplyModel.patient.email
short:
  v: 電子郵件信箱
definition:
  v: 電子郵件信箱
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIPatient
  map:
    v: Patient.telecom.where(system = 'email').value

id:
  v: ApplyModel.doctor
path:
  v: ApplyModel.doctor
short:
  v: 醫師資訊
definition:
  v: 醫師資訊
min:
  v: 1
max:
  v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement

id:
  v: ApplyModel.doctor.diagPrsnId
path:
  v: ApplyModel.doctor.diagPrsnId
short:
  v: 醫師身分證號
definition:
  v: 醫師身分證號
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '3').item.where(linkId = '3.1').answer.valueString

id:
  v: ApplyModel.doctor.diagPrsnName
path:
  v: ApplyModel.doctor.diagPrsnName
short:
  v: 診斷醫師姓名
definition:
  v: 診斷醫師姓名
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '3').item.where(linkId = '3.2').answer.valueString

id:
  v: ApplyModel.diagnosis
path:
  v: ApplyModel.diagnosis
short:
  v: 疾病資訊
definition:
  v: 疾病資訊
min:
  v: 1
max:
  v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement

id:
  v: ApplyModel.diagnosis.icd10cmCode
path:
  v: ApplyModel.diagnosis.icd10cmCode
short:
  v: 主診斷代碼
definition:
  v: 主診斷代碼
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.1').answer.valueCoding.code

id:
  v: ApplyModel.diagnosis.examinationReport
path:
  v: ApplyModel.diagnosis.examinationReport
short:
  v: 檢查報告
definition:
  v: 檢查報告
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement

id:
  v: ApplyModel.diagnosis.examinationReport.reportType
path:
  v: ApplyModel.diagnosis.examinationReport.reportType
short:
  v: 報告類型
definition:
  v: 報告類型。當LOINC無法具體描述檢體種類（例如：`47526-9`時），請填寫及補充說明檢體種類。
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.2').item.where(linkId = '4.2.1').answer.valueCoding.code

id:
  v: ApplyModel.diagnosis.examinationReport.speType
path:
  v: ApplyModel.diagnosis.examinationReport.speType
short:
  v: 檢體種類
definition:
  v: 檢體種類
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.2').item.where(linkId = '4.2.2').answer.valueString

id:
  v: ApplyModel.diagnosis.examinationReport.reportResultString
path:
  v: ApplyModel.diagnosis.examinationReport.reportResultString
short:
  v: 檢查報告結果（文數字）
definition:
  v: 檢查報告結果-文數字與base64Binary應擇一填寫
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.2').item.where(linkId = '4.2.3').answer.valueString

id:
  v: ApplyModel.diagnosis.examinationReport.reportResultPdf
path:
  v: ApplyModel.diagnosis.examinationReport.reportResultPdf
short:
  v: 檢查報告結果（檔案路徑）
definition:
  v: 檢查報告結果-文數字與base64Binary應擇一填寫
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.2').item.where(linkId = '4.2.4').answer.valueString

id:
  v: ApplyModel.diagnosis.examinationReport.reportResultPdfTitle
path:
  v: ApplyModel.diagnosis.examinationReport.reportResultPdfTitle
short:
  v: 檢查報告名稱
definition:
  v: 檢查報告名稱
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.2').item.where(linkId = '4.2.5').answer.valueString

id:
  v: ApplyModel.diagnosis.examinationReport.reportDate
path:
  v: ApplyModel.diagnosis.examinationReport.reportDate
short:
  v: 報告日期
definition:
  v: 報告日期
min:
  v: 0
max:
  v: 1
type:
  code:
    v: dateTime
    l: dateTime
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.2').item.where(linkId = '4.2.6').answer.valueDate

id:
  v: ApplyModel.diagnosis.medrec
path:
  v: ApplyModel.diagnosis.medrec
short:
  v: 病歷資料
definition:
  v: 病歷資料（非屬影像報告檢查驗報告部分）
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement

id:
  v: ApplyModel.diagnosis.medrec.medrec
path:
  v: ApplyModel.diagnosis.medrec.medrec
short:
  v: 病歷資料（請填寫完整檔案路徑）
definition:
  v: 病歷資料（請填寫完整檔案路徑）
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.3').item.where(linkId = '4.3.1').answer.valueString

id:
  v: ApplyModel.diagnosis.medrec.medrecTitle
path:
  v: ApplyModel.diagnosis.medrec.medrecTitle
short:
  v: 病歷資料名稱
definition:
  v: 病歷資料名稱
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.3').item.where(linkId = '4.3.2').answer.valueString

id:
  v: ApplyModel.diagnosis.imageStudy
path:
  v: ApplyModel.diagnosis.imageStudy
short:
  v: 影像報告
definition:
  v: 影像報告
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement

id:
  v: ApplyModel.diagnosis.imageStudy.imgItem
path:
  v: ApplyModel.diagnosis.imageStudy.imgItem
short:
  v: 影像報告
definition:
  v: 影像報告
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.4').item.where(linkId = '4.4.1').answer.valueCoding.code

id:
  v: ApplyModel.diagnosis.imageStudy.imgResult
path:
  v: ApplyModel.diagnosis.imageStudy.imgResult
short:
  v: 影像報告結果
definition:
  v: 影像報告結果
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.4').item.where(linkId = '4.4.2').answer.valueString

id:
  v: ApplyModel.diagnosis.imageStudy.imgDate
path:
  v: ApplyModel.diagnosis.imageStudy.imgDate
short:
  v: 影像報告日期
definition:
  v: 影像報告日期
min:
  v: 1
max:
  v: 1
type:
  code:
    v: dateTime
    l: dateTime
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.4').item.where(linkId = '4.4.3').answer.valueDate

id:
  v: ApplyModel.diagnosis.imageStudy.imgBodySite
path:
  v: ApplyModel.diagnosis.imageStudy.imgBodySite
short:
  v: 影像檢查的身體部位
definition:
  v: 影像檢查的身體部位
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.4').item.where(linkId = '4.4.4').answer.valueCoding.code

id:
  v: ApplyModel.diagnosis.imageStudy.imgDicom
path:
  v: ApplyModel.diagnosis.imageStudy.imgDicom
short:
  v: DICOM影像
definition:
  v: DICOM影像
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement

id:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.studyUid
path:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.studyUid
short:
  v: 整項影像檢查的識別碼
definition:
  v: D整項影像檢查的識別碼
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.4').item.where(linkId = '4.4.5').item.where(linkId = '4.4.5.1').answer.valueString

id:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.series
path:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.series
short:
  v: 每項影像檢查有一個或多個系列(series)的實例
definition:
  v: 每項影像檢查有一個或多個系列(series)的實例
min:
  v: 1
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement

id:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.series.uid
path:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.series.uid
short:
  v: 此系列的DICOM系列實例UID
definition:
  v: 此系列的DICOM系列實例UID
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.4').item.where(linkId = '4.4.5').item.where(linkId = '4.4.5.2').item.where(linkId = '4.4.5.2.1').answer.valueString

id:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.series.modality
path:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.series.modality
short:
  v: 此系列實例所使用的成像儀器
definition:
  v: 此系列實例所使用的成像儀器
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.4').item.where(linkId = '4.4.5').item.where(linkId = '4.4.5.2').item.where(linkId = '4.4.5.2.2').answer.valueCoding.code

id:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.series.instance
path:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.series.instance
short:
  v: 系列中的一個SOP實例
definition:
  v: 系列中的一個SOP實例
min:
  v: 1
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement

id:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.series.instance.uid
path:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.series.instance.uid
short:
  v: DICOM影像
definition:
  v: DICOM影像
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.4').item.where(linkId = '4.4.5').item.where(linkId = '4.4.5.2').item.where(linkId = '4.4.5.2.3').item.where(linkId = '4.4.5.2.3.1').answer.valueString

id:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.series.instance.sopClass
path:
  v: ApplyModel.diagnosis.imageStudy.imgDicom.series.instance.sopClass
short:
  v: DICOM class 類型
definition:
  v: DICOM class 類型
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.4').item.where(linkId = '4.4.5').item.where(linkId = '4.4.5.2').item.where(linkId = '4.4.5.2.3').item.where(linkId = '4.4.5.2.3.2').answer.valueCoding.code

id:
  v: ApplyModel.diagnosis.imageStudy.imgNonDicom
path:
  v: ApplyModel.diagnosis.imageStudy.imgNonDicom
short:
  v: 非DICOM影像
definition:
  v: 非DICOM影像
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement

id:
  v: ApplyModel.diagnosis.imageStudy.imgNonDicom.imgNonDicom
path:
  v: ApplyModel.diagnosis.imageStudy.imgNonDicom.imgNonDicom
short:
  v: 非DICOM影像（請填寫完整檔案路徑）
definition:
  v: 非DICOM影像（請填寫完整檔案路徑）
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.4').item.where(linkId = '4.4.6').item.where(linkId = '4.4.6.1').answer.valueString

id:
  v: ApplyModel.diagnosis.imageStudy.imgNonDicom.imgNonDicomMimeType
path:
  v: ApplyModel.diagnosis.imageStudy.imgNonDicom.imgNonDicomMimeType
short:
  v: 非DICOM影像MimeType
definition:
  v: 非DICOM影像MimeType
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '4').item.where(linkId = '4.4').item.where(linkId = '4.4.6').item.where(linkId = '4.4.6.2').answer.valueCoding.code

id:
  v: ApplyModel.ci
path:
  v: ApplyModel.ci
short:
  v: 重大傷病
definition:
  v: 重大傷病
min:
  v: 1
max:
  v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '5').answer.valueReference
mapping:
  identity:
    v: TWCICondition
  map:
    v: Condition

id:
  v: ApplyModel.ci.hvType
path:
  v: ApplyModel.ci.hvType
short:
  v: 重大傷病類別
definition:
  v: 重大傷病類別
min:
  v: 1
max:
  v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: TWCICondition
  map:
    v: Condition.category.coding.code

id:
  v: ApplyModel.cancerStage
path:
  v: ApplyModel.cancerStage
short:
  v: 癌症期別
definition:
  v: 癌症期別
min:
  v: 1
max:
  v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement

id:
  v: ApplyModel.cancerStage.cancerStage
path:
  v: ApplyModel.cancerStage.cancerStage
short:
  v: 癌症期別
definition:
  v: 癌症期別
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '6').item.where(linkId = '6.1').answer.valueCoding.code

id:
  v: ApplyModel.cancerStage.assessScore
path:
  v: ApplyModel.cancerStage.assessScore
short:
  v: 癌症分期分數或結果
definition:
  v: 癌症分期分數或結果
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '6').item.where(linkId = '6.2').answer.valueString

id:
  v: ApplyModel.cancerStage.assessDate
path:
  v: ApplyModel.cancerStage.assessDate
short:
  v: 癌症分期量表評估日期
definition:
  v: 癌症分期量表評估日期
min:
  v: 0
max:
  v: 1
type:
  code:
    v: date
    l: date
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '6').item.where(linkId = '6.3').answer.valueDate

id:
  v: ApplyModel.illness
path:
  v: ApplyModel.illness
short:
  v: 惡性腫瘤重大傷病換發評估表
definition:
  v: 惡性腫瘤重大傷病換發評估表
min:
  v: 0
max:
  v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement

id:
  v: ApplyModel.illness.code
path:
  v: ApplyModel.illness.code
short:
  v: 原發癌症診斷碼
definition:
  v: 原發癌症診斷碼
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '7').item.where(linkId = '7.1').answer.valueCoding.code

id:
  v: ApplyModel.illness.date
path:
  v: ApplyModel.illness.date
short:
  v: 癌症最初診斷日期
definition:
  v: 癌症最初診斷日期
min:
  v: 0
max:
  v: 1
type:
  code:
    v: date
    l: date
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '7').item.where(linkId = '7.2').answer.valueDate

id:
  v: ApplyModel.illness.oriCancerAjcc
path:
  v: ApplyModel.illness.oriCancerAjcc
short:
  v: 癌症最初診斷AJCC分期
definition:
  v: 癌症最初診斷AJCC分期
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '7').item.where(linkId = '7.3').answer.valueCoding.code

id:
  v: ApplyModel.illness.oriCancerAjcc1
path:
  v: ApplyModel.illness.oriCancerAjcc1
short:
  v: 癌症最初診斷AJCC分期_補充說明欄位
definition:
  v: 癌症最初診斷AJCC分期_補充說明欄位
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '7').item.where(linkId = '7.4').answer.valueString

id:
  v: ApplyModel.illness.cancerStatus
path:
  v: ApplyModel.illness.cancerStatus
short:
  v: 目前癌症狀態
definition:
  v: 目前癌症狀態
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '7').item.where(linkId = '7.5').answer.valueCoding.code

id:
  v: ApplyModel.illness.cancerTreatment
path:
  v: ApplyModel.illness.cancerTreatment
short:
  v: 後續治療評估
definition:
  v: 後續治療評估
min:
  v: 0
max:
  v: *
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '7').item.where(linkId = '7.6').answer.valueCoding.code

id:
  v: ApplyModel.illness.cancerTreatmentPlan
path:
  v: ApplyModel.illness.cancerTreatmentPlan
short:
  v: 後續治療計畫
definition:
  v: 後續治療計畫
min:
  v: 0
max:
  v: *
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '7').item.where(linkId = '7.7').answer.valueCoding.code

id:
  v: ApplyModel.illness.cancerTreatmentText
path:
  v: ApplyModel.illness.cancerTreatmentText
short:
  v: 補充說明
definition:
  v: 補充欄位供申請院所自行補充說明
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWCIQuestionnaireResponse
  map:
    v: QuestionnaireResponse.item.where(linkId = '7').item.where(linkId = '7.8').answer.valueString