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; diagnosis 1..1 BackboneElement 疾病資訊 #xD; diagDate 1..1 date 診斷日期 #xD; =2)">icd10cmCode 1..1 code 國際疾病分類代碼 (sequence=1)，共病症 (sequence>=2) #xD; diagCurrentStatus 1..1 code 簡要病摘。連結院內HIS系統之簡要病摘，或填寫原基因定序檢測之申請理由。 #xD; gene 1..1 BackboneElement 基因資訊 #xD; genTestCode 1..* CodeableConcept 基因檢測代碼 #xD; specimePathNo 1..1 Identifier 檢體病理編號 #xD; specimenType 1..1 CodeableConcept 基因檢測檢體類型 #xD; genOrg 1..1 string 基因檢測機構 #xD; mutationType 1..1 CodeableConcept 基因突變類型 #xD; genResult 1..1 CodeableConcept 基因檢測分析結果 #xD; genInterpretation 1..* CodeableConcept 基因臨床判讀結果 #xD; reportResultString 1..1 string 報告結果 - MIMEType #xD; genPdf 1..1 base64Binary 基因報告（檔案路徑） #xD; genPdfTitle 1..1 string 基因報告名稱 #xD; genTesList 1..* BackboneElement 檢測基因列表 #xD; seqNam 1..1 BackboneElement 定序儀名稱 #xD; seqModel 1..1 string 定序儀型號 #xD; hosp 1..1 BackboneElement 院所資訊 #xD; hospId 1..1 string 醫事機構代碼 #xD; expDate 1..1 dateTime 費用年月 #xD; applType 1..1 CodeableConcept 申報類別 #xD; decDate 1..1 dateTime 申報日期 #xD; casCatgory 1..1 CodeableConcept 案件分類 #xD; srialNum 1..1 Identifier 流水號 #xD; apply 1..1 BackboneElement 申請項目 #xD; mdicOrdr 1..1 CodeableConcept 醫令代碼 #xD; ngsTesNum 1..1 Identifier NGS檢測編號(VPN取號) #xD; genMethod 1..1 CodeableConcept 基因檢測方法 #xD; genDate 1..1 dateTime 基因檢測日期 #xD; patient 1..1 BackboneElement 病人資訊 #xD; patId 0..1 string 病歷號 #xD; idCard 1..1 string 身分證字號 #xD; name 1..1 HumanName 姓名 #xD; gender 1..1 code 病人性別 #xD; birthday 1..1 date 出生日期 #xD; <img src="[binary]" alt="doco" style="background-color: inherit"/> Documentation for this format
url:
  v: https://nhicore.nhi.gov.tw/ngs/StructureDefinition/ApplyModel
  l: ApplyModel
version:
  v: 1.0.1
name:
  v: ApplyModel
title:
  v: 申請(Apply)次世代基因定序檢測之資料模型
status:
  v: active
date:
  v: 2026-01-05T03:18:49+00:00
publisher:
  v: 衛生福利部中央健康保險署
contact:
  name:
    v: 衛生福利部中央健康保險署
  telecom:
    system:
      v: url
    value:
      v: https://www.nhi.gov.tw
description:
  v: 申請(Apply)次世代基因定序檢測之資料模型，此邏輯模型為定義次世代基因定序檢測情境下使用的所有資料欄位。 為了便於實作者快速理解，資料欄位會使用易於理解的命名，實作者再透過邏輯模型中的功能頁籤「Mappings」 瞭解各資料欄位實際使用本IG的哪個Profiles的哪個資料項目（element）。亦可配合 [視覺化邏輯模型圖]進行欄位對應。
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: TWNGSComposition
  uri:
    v: https://nhicore.nhi.gov.tw/ngs/StructureDefinition/Composition-twngs
    l: Composition-twngs
  name:
    v: Mapping to TWNGS Composition
mapping:
  identity:
    v: TWNGSOrganization
  uri:
    v: https://nhicore.nhi.gov.tw/ngs/StructureDefinition/Organization-twngs
    l: Organization-twngs
  name:
    v: Mapping to TWNGS Organization
mapping:
  identity:
    v: TWNGSObservation
  uri:
    v: https://nhicore.nhi.gov.tw/ngs/StructureDefinition/Observation-twngs
    l: Observation-twngs
  name:
    v: Mapping to TWNGS Observation
mapping:
  identity:
    v: TWNGSDiagnosticReport
  uri:
    v: https://nhicore.nhi.gov.tw/ngs/StructureDefinition/DiagnosticReport-twngs
    l: DiagnosticReport-twngs
  name:
    v: Mapping to TWNGS DiagnosticReport
mapping:
  identity:
    v: TWNGSSpecimen
  uri:
    v: https://nhicore.nhi.gov.tw/ngs/StructureDefinition/Specimen-twngs
    l: Specimen-twngs
  name:
    v: Mapping to TWNGS Specimen
mapping:
  identity:
    v: TWNGSDocumentReference
  uri:
    v: https://nhicore.nhi.gov.tw/ngs/StructureDefinition/DocumentReference-twngs
    l: DocumentReference-twngs
  name:
    v: Mapping to TWNGS DocumentReference
mapping:
  identity:
    v: TWNGSDevice
  uri:
    v: https://nhicore.nhi.gov.tw/ngs/StructureDefinition/Device-twngs
    l: Device-twngs
  name:
    v: Mapping to TWNGS Device
mapping:
  identity:
    v: TWNGSPatient
  uri:
    v: https://nhicore.nhi.gov.tw/ngs/StructureDefinition/Patient-twngs
    l: Patient-twngs
  name:
    v: Mapping to TWNGS Patient
mapping:
  identity:
    v: TWNGSCondition
  uri:
    v: https://nhicore.nhi.gov.tw/ngs/StructureDefinition/Condition-twngs
    l: Condition-twngs
  name:
    v: Mapping to TWNGS Condition
mapping:
  identity:
    v: TWNGSServiceRequest
  uri:
    v: https://nhicore.nhi.gov.tw/ngs/StructureDefinition/ServiceRequest-twngs
    l: ServiceRequest-twngs
  name:
    v: Mapping to TWNGS ServiceRequest
mapping:
  identity:
    v: TWNGSBundle
  uri:
    v: https://nhicore.nhi.gov.tw/ngs/StructureDefinition/Bundle-twngs
    l: Bundle-twngs
  name:
    v: Mapping to TWNGS Bundle
kind:
  v: logical
abstract:
  v: false
type:
  v: https://nhicore.nhi.gov.tw/ngs/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」 瞭解各資料欄位實際使用本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.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.diagDate
path:
  v: ApplyModel.diagnosis.diagDate
short:
  v: 診斷日期
definition:
  v: YYYYMMDD，西元年月日，民國前為負數
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.diagnosis.diagDate
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: date
    l: date
mapping:
  identity:
    v: TWNGSCondition
  map:
    v: Condition.recordedDate

id:
  v: ApplyModel.diagnosis.icd10cmCode
path:
  v: ApplyModel.diagnosis.icd10cmCode
short:
  v: 國際疾病分類代碼 (sequence=1)，共病症 (sequence>=2)
definition:
  v: 國際疾病分類代碼 (sequence=1)，共病症 (sequence>=2)
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: TWNGSComposition
  map:
    v: Composition.section.entry:condition.reference
mapping:
  identity:
    v: TWNGSDiagnosticReport
  map:
    v: DiagnosticReport.supportingInfo.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/workflow-supportingInfo').valueReference.reference
mapping:
  identity:
    v: TWNGSCondition
  map:
    v: Condition.code.coding

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

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

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

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

id:
  v: ApplyModel.gene.genTestCode
path:
  v: ApplyModel.gene.genTestCode
short:
  v: 基因檢測代碼
definition:
  v: 基因檢測代碼
min:
  v: 1
max:
  v: *
base:
  path:
    v: ApplyModel.gene.genTestCode
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: TWNGSComposition
  map:
    v: Composition.section.entry:diagnosticReport.reference
mapping:
  identity:
    v: TWNGSObservation
  map:
    v: Observation.component.where(code.coding.code = '81247-9').valueCodeableConcept.coding.code

id:
  v: ApplyModel.gene.specimePathNo
path:
  v: ApplyModel.gene.specimePathNo
short:
  v: 檢體病理編號
definition:
  v: 檢體病理編號
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.gene.specimePathNo
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: TWNGSComposition
  map:
    v: Composition.section.entry:specimen.reference
mapping:
  identity:
    v: TWNGSObservation
  map:
    v: Observation.specimen.reference
mapping:
  identity:
    v: TWNGSSpecimen
  map:
    v: Specimen.identifier.value

id:
  v: ApplyModel.gene.specimenType
path:
  v: ApplyModel.gene.specimenType
short:
  v: 基因檢測檢體類型
definition:
  v: 基因檢測檢體類型
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.gene.specimenType
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: TWNGSSpecimen
  map:
    v: Specimen.type.coding

id:
  v: ApplyModel.gene.genOrg
path:
  v: ApplyModel.gene.genOrg
short:
  v: 基因檢測機構
definition:
  v: 基因檢測機構
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.gene.genOrg
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWNGSComposition
  map:
    v: Composition.section.entry:organization.reference
mapping:
  identity:
    v: TWNGSOrganization
  map:
    v: Organization.identifier.value
mapping:
  identity:
    v: TWNGSObservation
  map:
    v: Observation.performer.reference

id:
  v: ApplyModel.gene.mutationType
path:
  v: ApplyModel.gene.mutationType
short:
  v: 基因突變類型
definition:
  v: 基因突變類型
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.gene.mutationType
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: TWNGSObservation
  map:
    v: Observation.component.where(code.coding.code = '81247-9').interpretation

id:
  v: ApplyModel.gene.genResult
path:
  v: ApplyModel.gene.genResult
short:
  v: 基因檢測分析結果
definition:
  v: 基因檢測分析結果
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.gene.genResult
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: TWNGSObservation
  map:
    v: Observation.valueCodeableConcept.coding.code

id:
  v: ApplyModel.gene.genInterpretation
path:
  v: ApplyModel.gene.genInterpretation
short:
  v: 基因臨床判讀結果
definition:
  v: 基因臨床判讀結果，醫師判讀結果
min:
  v: 1
max:
  v: *
base:
  path:
    v: ApplyModel.gene.genInterpretation
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: TWNGSObservation
  map:
    v: Observation.interpretation.coding.code

id:
  v: ApplyModel.gene.reportResultString
path:
  v: ApplyModel.gene.reportResultString
short:
  v: 報告結果 - MIMEType
definition:
  v: 檢查報告結果-文數字與base64Binary應擇一填寫
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.gene.reportResultString
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWNGSDocumentReference
  map:
    v: DocumentReference.content.attachment.contentType

id:
  v: ApplyModel.gene.genPdf
path:
  v: ApplyModel.gene.genPdf
short:
  v: 基因報告（檔案路徑）
definition:
  v: 基因報告（請填寫完整檔案路徑）
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.gene.genPdf
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: base64Binary
    l: base64Binary
mapping:
  identity:
    v: TWNGSObservation
  map:
    v: Observation.derivedFrom.reference
mapping:
  identity:
    v: TWNGSDocumentReference
  map:
    v: DocumentReference.content.attachment.url

id:
  v: ApplyModel.gene.genPdfTitle
path:
  v: ApplyModel.gene.genPdfTitle
short:
  v: 基因報告名稱
definition:
  v: 基因報告名稱
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.gene.genPdfTitle
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWNGSComposition
  map:
    v: Composition.section.entry:documentReference.reference
mapping:
  identity:
    v: TWNGSObservation
  map:
    v: Observation.content.attachment.title
mapping:
  identity:
    v: TWNGSDocumentReference
  map:
    v: DocumentReference.content.attachment.title

id:
  v: ApplyModel.gene.genTesList
path:
  v: ApplyModel.gene.genTesList
short:
  v: 檢測基因列表
definition:
  v: 檢測基因列表
min:
  v: 1
max:
  v: *
base:
  path:
    v: ApplyModel.gene.genTesList
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
mapping:
  identity:
    v: TWNGSObservation
  map:
    v: Observation.component.where(code.coding.code = '48018-6').valueCodeableConcept.coding.code

id:
  v: ApplyModel.gene.seqNam
path:
  v: ApplyModel.gene.seqNam
short:
  v: 定序儀名稱
definition:
  v: 定序儀名稱
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.gene.seqNam
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
mapping:
  identity:
    v: TWNGSComposition
  map:
    v: Composition.section.entry:device.reference
mapping:
  identity:
    v: TWNGSObservation
  map:
    v: Observation.device.reference
mapping:
  identity:
    v: TWNGSDevice
  map:
    v: Device.deviceName

id:
  v: ApplyModel.gene.seqModel
path:
  v: ApplyModel.gene.seqModel
short:
  v: 定序儀型號
definition:
  v: 定序儀型號
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.gene.seqModel
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWNGSDevice
  map:
    v: Device.modelNumber

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

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:
    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.hosp.extension
path:
  v: ApplyModel.hosp.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.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.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: TWNGSComposition
  map:
    v: Composition.author.reference
mapping:
  identity:
    v: TWNGSOrganization
  map:
    v: Organization.identifier.value

id:
  v: ApplyModel.hosp.expDate
path:
  v: ApplyModel.hosp.expDate
short:
  v: 費用年月
definition:
  v: 費用年月
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.hosp.expDate
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime

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: TWNGSComposition
  map:
    v: Composition.type

id:
  v: ApplyModel.hosp.decDate
path:
  v: ApplyModel.hosp.decDate
short:
  v: 申報日期
definition:
  v: 申報日期
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.hosp.decDate
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
mapping:
  identity:
    v: TWNGSComposition
  map:
    v: Composition.date

id:
  v: ApplyModel.hosp.casCatgory
path:
  v: ApplyModel.hosp.casCatgory
short:
  v: 案件分類
definition:
  v: 案件分類
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.hosp.casCatgory
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: TWNGSComposition
  map:
    v: Composition.category.coding.code

id:
  v: ApplyModel.hosp.srialNum
path:
  v: ApplyModel.hosp.srialNum
short:
  v: 流水號
definition:
  v: 流水號
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.hosp.srialNum
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: TWNGSComposition
  map:
    v: Composition.section.entry:observation.reference
mapping:
  identity:
    v: TWNGSObservation
  map:
    v: Observation.identifier.value

id:
  v: ApplyModel.apply
path:
  v: ApplyModel.apply
short:
  v: 申請項目
definition:
  v: 申請項目
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.apply
  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.apply.id
path:
  v: ApplyModel.apply.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.apply.extension
path:
  v: ApplyModel.apply.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.apply.modifierExtension
path:
  v: ApplyModel.apply.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.apply.mdicOrdr
path:
  v: ApplyModel.apply.mdicOrdr
short:
  v: 醫令代碼
definition:
  v: 醫令代碼
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.apply.mdicOrdr
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: TWNGSComposition
  map:
    v: Composition.section.entry:serviceRequest.reference
mapping:
  identity:
    v: TWNGSDiagnosticReport
  map:
    v: DiagnosticReport.basedOn.reference
mapping:
  identity:
    v: TWNGSServiceRequest
  map:
    v: ServiceRequest.code.coding

id:
  v: ApplyModel.apply.ngsTesNum
path:
  v: ApplyModel.apply.ngsTesNum
short:
  v: NGS檢測編號(VPN取號)
definition:
  v: NGS檢測編號(VPN取號)
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.apply.ngsTesNum
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: TWNGSDiagnosticReport
  map:
    v: DiagnosticReport.result.reference
mapping:
  identity:
    v: TWNGSBundle
  map:
    v: Bundle.identifier

id:
  v: ApplyModel.apply.genMethod
path:
  v: ApplyModel.apply.genMethod
short:
  v: 基因檢測方法
definition:
  v: 基因檢測方法
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.apply.genMethod
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept

id:
  v: ApplyModel.apply.genDate
path:
  v: ApplyModel.apply.genDate
short:
  v: 基因檢測日期
definition:
  v: 基因檢測日期
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ApplyModel.apply.genDate
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime

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

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.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: TWNGSPatient
  map:
    v: Patient.identifier.where(type.coding.code = 'MR').value

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: TWNGSDiagnosticReport
  map:
    v: DiagnosticReport.subject.reference
mapping:
  identity:
    v: TWNGSPatient
  map:
    v: Patient.identifier.where(type.coding.code = 'NNxxx').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: HumanName
    l: HumanName
mapping:
  identity:
    v: TWNGSPatient
  map:
    v: Patient.name.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: TWNGSPatient
  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: TWNGSPatient
  map:
    v: Patient.birthDate

element:
  id:
    v: ApplyModel
  path:
    v: ApplyModel
  short:
    v: 申請(Apply)次世代基因定序檢測之資料模型
  definition:
    v: 申請(Apply)次世代基因定序檢測之資料模型，此邏輯模型為定義次世代基因定序檢測情境下使用的所有資料欄位。 為了便於實作者快速理解，資料欄位會使用易於理解的命名，實作者再透過邏輯模型中的功能頁籤「Mappings」 瞭解各資料欄位實際使用本IG的哪個Profiles的哪個資料項目（element）。亦可配合 [視覺化邏輯模型圖]進行欄位對應。
element:
  id:
    v: ApplyModel.diagnosis
  path:
    v: ApplyModel.diagnosis
  short:
    v: 疾病資訊
  definition:
    v: 疾病資訊
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: BackboneElement
      l: BackboneElement
element:
  id:
    v: ApplyModel.diagnosis.diagDate
  path:
    v: ApplyModel.diagnosis.diagDate
  short:
    v: 診斷日期
  definition:
    v: YYYYMMDD，西元年月日，民國前為負數
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: date
      l: date
  mapping:
    identity:
      v: TWNGSCondition
    map:
      v: Condition.recordedDate
element:
  id:
    v: ApplyModel.diagnosis.icd10cmCode
  path:
    v: ApplyModel.diagnosis.icd10cmCode
  short:
    v: 國際疾病分類代碼 (sequence=1)，共病症 (sequence>=2)
  definition:
    v: 國際疾病分類代碼 (sequence=1)，共病症 (sequence>=2)
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: code
      l: code
  mapping:
    identity:
      v: TWNGSComposition
    map:
      v: Composition.section.entry:condition.reference
  mapping:
    identity:
      v: TWNGSDiagnosticReport
    map:
      v: DiagnosticReport.supportingInfo.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/workflow-supportingInfo').valueReference.reference
  mapping:
    identity:
      v: TWNGSCondition
    map:
      v: Condition.code.coding
element:
  id:
    v: ApplyModel.diagnosis.diagCurrentStatus
  path:
    v: ApplyModel.diagnosis.diagCurrentStatus
  short:
    v: 簡要病摘。連結院內HIS系統之簡要病摘，或填寫原基因定序檢測之申請理由。
  definition:
    v: 簡要病摘。連結院內HIS系統之簡要病摘，或填寫原基因定序檢測之申請理由。
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: code
      l: code
  mapping:
    identity:
      v: TWNGSCondition
    map:
      v: Condition.note
element:
  id:
    v: ApplyModel.gene
  path:
    v: ApplyModel.gene
  short:
    v: 基因資訊
  definition:
    v: 基因資訊
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: BackboneElement
      l: BackboneElement
element:
  id:
    v: ApplyModel.gene.genTestCode
  path:
    v: ApplyModel.gene.genTestCode
  short:
    v: 基因檢測代碼
  definition:
    v: 基因檢測代碼
  min:
    v: 1
  max:
    v: *
  type:
    code:
      v: CodeableConcept
      l: CodeableConcept
  mapping:
    identity:
      v: TWNGSComposition
    map:
      v: Composition.section.entry:diagnosticReport.reference
  mapping:
    identity:
      v: TWNGSObservation
    map:
      v: Observation.component.where(code.coding.code = '81247-9').valueCodeableConcept.coding.code
element:
  id:
    v: ApplyModel.gene.specimePathNo
  path:
    v: ApplyModel.gene.specimePathNo
  short:
    v: 檢體病理編號
  definition:
    v: 檢體病理編號
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: Identifier
      l: Identifier
  mapping:
    identity:
      v: TWNGSComposition
    map:
      v: Composition.section.entry:specimen.reference
  mapping:
    identity:
      v: TWNGSObservation
    map:
      v: Observation.specimen.reference
  mapping:
    identity:
      v: TWNGSSpecimen
    map:
      v: Specimen.identifier.value
element:
  id:
    v: ApplyModel.gene.specimenType
  path:
    v: ApplyModel.gene.specimenType
  short:
    v: 基因檢測檢體類型
  definition:
    v: 基因檢測檢體類型
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: CodeableConcept
      l: CodeableConcept
  mapping:
    identity:
      v: TWNGSSpecimen
    map:
      v: Specimen.type.coding

id:
  v: ApplyModel.gene.genOrg
path:
  v: ApplyModel.gene.genOrg
short:
  v: 基因檢測機構
definition:
  v: 基因檢測機構
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWNGSComposition
  map:
    v: Composition.section.entry:organization.reference
mapping:
  identity:
    v: TWNGSOrganization
  map:
    v: Organization.identifier.value
mapping:
  identity:
    v: TWNGSObservation
  map:
    v: Observation.performer.reference

id:
  v: ApplyModel.gene.mutationType
path:
  v: ApplyModel.gene.mutationType
short:
  v: 基因突變類型
definition:
  v: 基因突變類型
min:
  v: 1
max:
  v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: TWNGSObservation
  map:
    v: Observation.component.where(code.coding.code = '81247-9').interpretation

id:
  v: ApplyModel.gene.genResult
path:
  v: ApplyModel.gene.genResult
short:
  v: 基因檢測分析結果
definition:
  v: 基因檢測分析結果
min:
  v: 1
max:
  v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: TWNGSObservation
  map:
    v: Observation.valueCodeableConcept.coding.code

id:
  v: ApplyModel.gene.genInterpretation
path:
  v: ApplyModel.gene.genInterpretation
short:
  v: 基因臨床判讀結果
definition:
  v: 基因臨床判讀結果，醫師判讀結果
min:
  v: 1
max:
  v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: TWNGSObservation
  map:
    v: Observation.interpretation.coding.code

id:
  v: ApplyModel.gene.reportResultString
path:
  v: ApplyModel.gene.reportResultString
short:
  v: 報告結果 - MIMEType
definition:
  v: 檢查報告結果-文數字與base64Binary應擇一填寫
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWNGSDocumentReference
  map:
    v: DocumentReference.content.attachment.contentType

id:
  v: ApplyModel.gene.genPdf
path:
  v: ApplyModel.gene.genPdf
short:
  v: 基因報告（檔案路徑）
definition:
  v: 基因報告（請填寫完整檔案路徑）
min:
  v: 1
max:
  v: 1
type:
  code:
    v: base64Binary
    l: base64Binary
mapping:
  identity:
    v: TWNGSObservation
  map:
    v: Observation.derivedFrom.reference
mapping:
  identity:
    v: TWNGSDocumentReference
  map:
    v: DocumentReference.content.attachment.url

id:
  v: ApplyModel.gene.genPdfTitle
path:
  v: ApplyModel.gene.genPdfTitle
short:
  v: 基因報告名稱
definition:
  v: 基因報告名稱
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWNGSComposition
  map:
    v: Composition.section.entry:documentReference.reference
mapping:
  identity:
    v: TWNGSObservation
  map:
    v: Observation.content.attachment.title
mapping:
  identity:
    v: TWNGSDocumentReference
  map:
    v: DocumentReference.content.attachment.title

id:
  v: ApplyModel.gene.genTesList
path:
  v: ApplyModel.gene.genTesList
short:
  v: 檢測基因列表
definition:
  v: 檢測基因列表
min:
  v: 1
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
mapping:
  identity:
    v: TWNGSObservation
  map:
    v: Observation.component.where(code.coding.code = '48018-6').valueCodeableConcept.coding.code

id:
  v: ApplyModel.gene.seqNam
path:
  v: ApplyModel.gene.seqNam
short:
  v: 定序儀名稱
definition:
  v: 定序儀名稱
min:
  v: 1
max:
  v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
mapping:
  identity:
    v: TWNGSComposition
  map:
    v: Composition.section.entry:device.reference
mapping:
  identity:
    v: TWNGSObservation
  map:
    v: Observation.device.reference
mapping:
  identity:
    v: TWNGSDevice
  map:
    v: Device.deviceName

id:
  v: ApplyModel.gene.seqModel
path:
  v: ApplyModel.gene.seqModel
short:
  v: 定序儀型號
definition:
  v: 定序儀型號
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: TWNGSDevice
  map:
    v: Device.modelNumber

id:
  v: ApplyModel.hosp
path:
  v: ApplyModel.hosp
short:
  v: 院所資訊
definition:
  v: 院所資訊
min:
  v: 1
max:
  v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement

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: TWNGSComposition
  map:
    v: Composition.author.reference
mapping:
  identity:
    v: TWNGSOrganization
  map:
    v: Organization.identifier.value

id:
  v: ApplyModel.hosp.expDate
path:
  v: ApplyModel.hosp.expDate
short:
  v: 費用年月
definition:
  v: 費用年月
min:
  v: 1
max:
  v: 1
type:
  code:
    v: dateTime
    l: dateTime

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: TWNGSComposition
  map:
    v: Composition.type

id:
  v: ApplyModel.hosp.decDate
path:
  v: ApplyModel.hosp.decDate
short:
  v: 申報日期
definition:
  v: 申報日期
min:
  v: 1
max:
  v: 1
type:
  code:
    v: dateTime
    l: dateTime
mapping:
  identity:
    v: TWNGSComposition
  map:
    v: Composition.date

id:
  v: ApplyModel.hosp.casCatgory
path:
  v: ApplyModel.hosp.casCatgory
short:
  v: 案件分類
definition:
  v: 案件分類
min:
  v: 1
max:
  v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: TWNGSComposition
  map:
    v: Composition.category.coding.code

id:
  v: ApplyModel.hosp.srialNum
path:
  v: ApplyModel.hosp.srialNum
short:
  v: 流水號
definition:
  v: 流水號
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: TWNGSComposition
  map:
    v: Composition.section.entry:observation.reference
mapping:
  identity:
    v: TWNGSObservation
  map:
    v: Observation.identifier.value

id:
  v: ApplyModel.apply
path:
  v: ApplyModel.apply
short:
  v: 申請項目
definition:
  v: 申請項目
min:
  v: 1
max:
  v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement

id:
  v: ApplyModel.apply.mdicOrdr
path:
  v: ApplyModel.apply.mdicOrdr
short:
  v: 醫令代碼
definition:
  v: 醫令代碼
min:
  v: 1
max:
  v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: TWNGSComposition
  map:
    v: Composition.section.entry:serviceRequest.reference
mapping:
  identity:
    v: TWNGSDiagnosticReport
  map:
    v: DiagnosticReport.basedOn.reference
mapping:
  identity:
    v: TWNGSServiceRequest
  map:
    v: ServiceRequest.code.coding

id:
  v: ApplyModel.apply.ngsTesNum
path:
  v: ApplyModel.apply.ngsTesNum
short:
  v: NGS檢測編號(VPN取號)
definition:
  v: NGS檢測編號(VPN取號)
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: TWNGSDiagnosticReport
  map:
    v: DiagnosticReport.result.reference
mapping:
  identity:
    v: TWNGSBundle
  map:
    v: Bundle.identifier

id:
  v: ApplyModel.apply.genMethod
path:
  v: ApplyModel.apply.genMethod
short:
  v: 基因檢測方法
definition:
  v: 基因檢測方法
min:
  v: 1
max:
  v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept

id:
  v: ApplyModel.apply.genDate
path:
  v: ApplyModel.apply.genDate
short:
  v: 基因檢測日期
definition:
  v: 基因檢測日期
min:
  v: 1
max:
  v: 1
type:
  code:
    v: dateTime
    l: dateTime

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

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: TWNGSPatient
  map:
    v: Patient.identifier.where(type.coding.code = 'MR').value

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: TWNGSDiagnosticReport
  map:
    v: DiagnosticReport.subject.reference
mapping:
  identity:
    v: TWNGSPatient
  map:
    v: Patient.identifier.where(type.coding.code = 'NNxxx').value

id:
  v: ApplyModel.patient.name
path:
  v: ApplyModel.patient.name
short:
  v: 姓名
definition:
  v: 姓名
min:
  v: 1
max:
  v: 1
type:
  code:
    v: HumanName
    l: HumanName
mapping:
  identity:
    v: TWNGSPatient
  map:
    v: Patient.name.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: TWNGSPatient
  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: TWNGSPatient
  map:
    v: Patient.birthDate