LTCFeeAuditDetailModel
type: StructureDefinition
node role: treeRoot
resource.id:
  value: LTCFeeAuditDetailModel
domain resource.text:
  narrative.status:
    value: extensions
  narrative.div: Generated Narrative: StructureDefinition LTCFeeAuditDetailModel Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> LTCFeeAuditDetailModel 0..* Base 長照支付審查－分案審核明細邏輯模型 #xD; queryInfo 1..1 BackboneElement 查詢輸入資訊 #xD; writeoffYyyymm 1..1 string 支審年月 #xD; transNo 1..1 string 交易序號 #xD; queryType 1..1 string 查詢類別 #xD; cityCd 1..1 string 縣市代碼 #xD; caseNo 1..1 string 核銷案號 #xD; auditResult 1..1 BackboneElement 分案審核明細 #xD; caseNo 1..1 string 核銷案號 #xD; records 0..1 integer 服務記錄筆數 #xD; cases 0..1 integer 個案數 #xD; amount 0..1 decimal 申請核銷金額 #xD; auditMan 0..1 string 承辦人員 #xD; auditReason 0..1 string 承辦審核意見 #xD; docVer 0..1 string 總表版次 #xD; verDt 0..1 string 版次時間 #xD; approveCaseNum 0..1 integer 核定個案數 #xD; approveRecordCount 0..1 integer 核定服務記錄數 #xD; approveFee 0..1 decimal 核定金額 #xD; aSvcFee 0..1 decimal 政策鼓勵金額 #xD; tempPaymentStatus 0..1 string 暫付申請狀態 #xD; tempPaymentFee 0..1 decimal 分案暫付金額 #xD; tempPaymentDocUrl 0..1 url 暫付總表下載路徑 #xD; caseSummaryNoticeUrl 0..1 url 總表下載路徑 #xD; caseSvcListUrl 0..1 url 清冊路徑 #xD; caseSvcListExcelUrl 0..1 url 清冊 EXCEL 下載路徑 #xD; caseASvcListUrl 0..1 url A 碼清冊路徑 #xD; caseASvcListExcelUrl 0..1 url A 碼清冊 EXCEL 下載路徑 #xD; caseErrListUrl 0..1 url 申請記錄不通過清冊路徑 #xD; caseErrListExcelUrl 0..1 url 申請記錄不通過 EXCEL 清冊路徑 #xD; transNos 0..* string 分案已處理之單號 #xD; incInAcc 0..1 decimal 核增金額 #xD; incInReason 0..1 string 核增原因 #xD; decInAcc 0..1 decimal 核減金額 #xD; decInReason 0..1 string 核減原因 #xD; approveRecords 0..* BackboneElement 審核通過服務記錄 #xD; sourceSystem 0..1 string 來源系統別 #xD; objid 0..1 string 識別碼 #xD; transNo 0..1 string 交易序號 #xD; price 0..1 decimal 單價 #xD; copayment 0..1 decimal 自付額 #xD; errRecords 0..* BackboneElement 錯誤服務記錄 #xD; sourceSystem 0..1 string 來源系統別 #xD; objid 0..1 string 識別碼 #xD; transNo 0..1 string 交易序號 #xD; errCode 0..1 string 錯誤碼 #xD; errMessage 0..1 string 錯誤原因 #xD; aSvcRecords 0..* BackboneElement A 碼加成資料區 #xD; refSourceSystem 0..1 string 審核通過服務記錄來源系統別 #xD; refObjid 0..1 string 審核通過服務記錄識別…
structure definition.url:
  value: http://ltc-ig.fhir.tw/StructureDefinition/LTCFeeAuditDetailModel
structure definition.version:
  value: 1.0.0
structure definition.name:
  value: LTCFeeAuditDetailModel
structure definition.title:
  value: 長照支付審查－分案審核明細邏輯模型
structure definition.status:
  value: draft
structure definition.experimental:
  value: false
structure definition.date:
  value: 2026-07-29T07:47:19+00:00
structure definition.publisher:
  value: 經濟部產業發展署
structure definition.contact:
  index: 0
  contact detail.name:
    value: 經濟部產業發展署
  contact detail.telecom:
    index: 0
    contact point.system:
      value: url
    contact point.value:
      value: https://www.ida.gov.tw/
structure definition.description:
  value: 此邏輯模型以《衛生福利部 支付審核系統 API 規格說明書（照管平台）v2.2.1》「五、(查詢B)分案審核明細查詢」為基礎，用以描述分案審核明細查詢之傳送資料與回覆明細的資料結構與欄位準備指引。需先執行（查詢A）取得案件之核銷案號、核銷狀況與總表版次，當為新核銷案號或核銷狀況、總表版次有異動時，才執行（查詢B）取得該案件之明細資料。
structure definition.fhir version:
  value: 4.0.1
structure definition.mapping:
  index: 0
  structure definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  structure definition.mapping.uri:
    value: http://ltc-ig.fhir.tw/StructureDefinition/LTCClaimResponseFeeAudit
  structure definition.mapping.name:
    value: 長照支付審查－分案審核明細邏輯模型對應
  structure definition.mapping.comment:
    value: 此對應說明長照支付審查分案審核明細邏輯模型與 LTCClaimResponseFeeAudit (ClaimResponse) Profile 之欄位對應關係。對應原則：識別性欄位落於 ClaimResponse.identifier 之具名切片；分案層級之各項金額一律落於 ClaimResponse.total（以 total.category 區分，取值自 VS_TW_LTC_FeeAuditAdjudication），逐筆服務記錄之金額才落於 item.adjudication；分案層級之統計值、暫付申請狀態、分案已處理之單號與承辦人員落於 extension[auditSummary]；每筆服務記錄之識別碼（objid）、來源系統別（source_system）與交易序號（trans_no）落於各該 item／error／addItem 之 extension[recordRef]（因 ClaimResponse 之各 itemSequence 於 FHIR R4 為 positiveInt，無法承載長度 20 之字串識別碼）。
structure definition.kind:
  value: logical
structure definition.abstract:
  value: false
structure definition.type:
  value: http://ltc-ig.fhir.tw/StructureDefinition/LTCFeeAuditDetailModel
structure definition.base definition:
  value: http://hl7.org/fhir/StructureDefinition/Base
  link: http://hl7.org/fhir/StructureDefinition/Base
structure definition.derivation:
  value: specialization
structure definition.snapshot:
  element.extension:
    index: 0
    extension.url:
      value: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
    extension.value string:
      value: 4.0.1
  structure definition.snapshot.element:
    index: 0
    element.id:
      value: LTCFeeAuditDetailModel
    element definition.path:
      value: LTCFeeAuditDetailModel
    element definition.short:
      value: 長照支付審查－分案審核明細邏輯模型
    element definition.definition:
      value: 此邏輯模型以《衛生福利部 支付審核系統 API 規格說明書（照管平台）v2.2.1》「五、(查詢B)分案審核明細查詢」為基礎，用以描述分案審核明細查詢之傳送資料與回覆明細的資料結構與欄位準備指引。需先執行（查詢A）取得案件之核銷案號、核銷狀況與總表版次，當為新核銷案號或核銷狀況、總表版次有異動時，才執行（查詢B）取得該案件之明細資料。
    element definition.min:
      value: 0
    element definition.max:
      value: *
    element definition.base:
      element definition.base.path:
        value: Base
      element definition.base.min:
        value: 0
      element definition.base.max:
        value: *
    element definition.is modifier:
      value: false
    element definition.mapping:
      index: 0
      element definition.mapping.identity:
        value: LTCFeeAuditDetailModelMapping
      element definition.mapping.map:
        value: ClaimResponse
      element definition.mapping.comment:
        value: 分案審核明細整體對應至 ClaimResponse
  structure definition.snapshot.element:
    index: 1
    element.id:
      value: LTCFeeAuditDetailModel.queryInfo
    element definition.path:
      value: LTCFeeAuditDetailModel.queryInfo
    element definition.short:
      value: 查詢輸入資訊
    element definition.definition:
      value: 分案審核明細查詢的傳送資料（app_result_query_info），單筆物件
    element definition.min:
      value: 1
    element definition.max:
      value: 1
    element definition.base:
      element definition.base.path:
        value: LTCFeeAuditDetailModel.queryInfo
      element definition.base.min:
        value: 1
      element definition.base.max:
        value: 1
    element definition.type:
      index: 0
      element definition.type.code:
        value: BackboneElement
    element definition.constraint:
      index: 0
      element definition.constraint.key:
        value: ele-1
      element definition.constraint.severity:
        value: error
      element definition.constraint.human:
        value: All FHIR elements must have a @value or children
      element definition.constraint.expression:
        value: hasValue() or (children().count() > id.count())
      element definition.constraint.xpath:
        value: @value|f:*|h:div
      element definition.constraint.source:
        value: http://hl7.org/fhir/StructureDefinition/Element
        link: http://hl7.org/fhir/StructureDefinition/Element
  structure definition.snapshot.element:
    index: 2
    element.id:
      value: LTCFeeAuditDetailModel.queryInfo.id
    element definition.path:
      value: LTCFeeAuditDetailModel.queryInfo.id
    element definition.representation:
      value: xmlAttr
      index: 0
    element definition.short:
      value: Unique id for inter-element referencing
    element definition.definition:
      value: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
    element definition.min:
      value: 0
    element definition.max:
      value: 1
    element definition.base:
      element definition.base.path:
        value: Element.id
      element definition.base.min:
        value: 0
      element definition.base.max:
        value: 1
    element definition.type:
      index: 0
      element.extension:
        index: 0
      element definition.type.code:
        value: http://hl7.org/fhirpath/System.String
    element definition.is modifier:
      value: false
    element definition.is summary:
      value: false
    element definition.mapping:
      index: 0
      element definition.mapping.identity:
        value: rim
      element definition.mapping.map:
        value: n/a
  structure definition.snapshot.element:
    index: 3
    element.id:
      value: LTCFeeAuditDetailModel.queryInfo.extension
    element definition.path:
      value: LTCFeeAuditDetailModel.queryInfo.extension
    element definition.slicing:
      element definition.slicing.discriminator:
        index: 0
      element definition.slicing.description:
        value: Extensions are always sliced by (at least) url
      element definition.slicing.rules:
        value: open
    element definition.short:
      value: Additional content defined by implementations
    element definition.definition:
      value: 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.
    element definition.comment:
      value: 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.
    element definition.alias:
      value: extensions
      index: 0
    element definition.alias:
      value: user content
      index: 1

value: string

value: value

value: url

value: 0

value: *

element definition.base.path:
  value: Element.extension
element definition.base.min:
  value: 0
element definition.base.max:
  value: *

index: 0
element definition.type.code:
  value: Extension

index: 0
element definition.constraint.key:
  value: ele-1
element definition.constraint.severity:
  value: error
element definition.constraint.human:
  value: All FHIR elements must have a @value or children
element definition.constraint.expression:
  value: hasValue() or (children().count() > id.count())
element definition.constraint.xpath:
  value: @value|f:*|h:div
element definition.constraint.source:
  value: http://hl7.org/fhir/StructureDefinition/Element
  link: http://hl7.org/fhir/StructureDefinition/Element

index: 1
element definition.constraint.key:
  value: ext-1
element definition.constraint.severity:
  value: error
element definition.constraint.human:
  value: Must have either extensions or value[x], not both
element definition.constraint.expression:
  value: extension.exists() != value.exists()
element definition.constraint.xpath:
  value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
element definition.constraint.source:
  value: http://hl7.org/fhir/StructureDefinition/Extension
  link: http://hl7.org/fhir/StructureDefinition/Extension

value: false

value: false

index: 0
element definition.mapping.identity:
  value: rim
element definition.mapping.map:
  value: n/a

index: 4
element.id:
  value: LTCFeeAuditDetailModel.queryInfo.modifierExtension
element definition.path:
  value: LTCFeeAuditDetailModel.queryInfo.modifierExtension
element definition.short:
  value: Extensions that cannot be ignored even if unrecognized
element definition.definition:
  value: 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).
element definition.comment:
  value: 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.
element definition.requirements:
  value: 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).
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.alias:
  value: modifiers
  index: 2
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: BackboneElement.modifierExtension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: 1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: true
element definition.is modifier reason:
  value: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 5
element.id:
  value: LTCFeeAuditDetailModel.queryInfo.writeoffYyyymm
element definition.path:
  value: LTCFeeAuditDetailModel.queryInfo.writeoffYyyymm
element definition.short:
  value: 支審年月
element definition.definition:
  value: 支付審查年月，格式 yyyyMM，長度 6（writeoff_yyyymm）
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.queryInfo.writeoffYyyymm
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.identifier.where(system='http://ltc-ig.fhir.tw/identifier/feeaudit/yyyymm').value
  element definition.mapping.comment:
    value: 支審年月（yyyyMM）

index: 6
element.id:
  value: LTCFeeAuditDetailModel.queryInfo.transNo
element definition.path:
  value: LTCFeeAuditDetailModel.queryInfo.transNo
element definition.short:
  value: 交易序號
element definition.definition:
  value: 本次查詢的交易序號，長度 10（trans_no）
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.queryInfo.transNo
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse
  element definition.mapping.comment:
    value: 本次查詢之交易序號，屬傳輸層查詢參數，不落於回覆之 ClaimResponse

index: 7
element.id:
  value: LTCFeeAuditDetailModel.queryInfo.queryType
element definition.path:
  value: LTCFeeAuditDetailModel.queryInfo.queryType
element definition.short:
  value: 查詢類別
element definition.definition:
  value: 查詢類別，長度 1，固定值：B，代表分案審核明細查詢（query_type）
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.queryInfo.queryType
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse
  element definition.mapping.comment:
    value: 查詢類別固定值 B，屬傳輸層查詢參數，不落於回覆之 ClaimResponse

index: 8
element.id:
  value: LTCFeeAuditDetailModel.queryInfo.cityCd
element definition.path:
  value: LTCFeeAuditDetailModel.queryInfo.cityCd
element definition.short:
  value: 縣市代碼
element definition.definition:
  value: 受理案件之縣市代碼，長度 5（city_cd）
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.queryInfo.cityCd
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.insurer
  element definition.mapping.comment:
    value: 縣市代碼，以 Reference(LTCOrganization) 指向受理本分案之縣市主管機關，代碼記錄於 Organization.identifier.value

index: 9
element.id:
  value: LTCFeeAuditDetailModel.queryInfo.caseNo
element definition.path:
  value: LTCFeeAuditDetailModel.queryInfo.caseNo
element definition.short:
  value: 核銷案號
element definition.definition:
  value: 欲查詢明細之核銷案號，長度 30（case_no）
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.queryInfo.caseNo
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.identifier.where(system='http://ltc-ig.fhir.tw/identifier/feeaudit/case-no').value
  element definition.mapping.comment:
    value: 核銷案號

index: 10
element.id:
  value: LTCFeeAuditDetailModel.auditResult
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult
element definition.short:
  value: 分案審核明細
element definition.definition:
  value: 分案審核明細查詢的回覆內容（Response.result）
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: BackboneElement
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

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

index: 12
element.id:
  value: LTCFeeAuditDetailModel.auditResult.extension
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional content defined by implementations
element definition.definition:
  value: 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: 1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 13
element.id:
  value: LTCFeeAuditDetailModel.auditResult.modifierExtension
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.modifierExtension
element definition.short:
  value: Extensions that cannot be ignored even if unrecognized
element definition.definition:
  value: 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).
element definition.comment:
  value: 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.
element definition.requirements:
  value: 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).
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.alias:
  value: modifiers
  index: 2
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: BackboneElement.modifierExtension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: 1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: true
element definition.is modifier reason:
  value: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 14
element.id:
  value: LTCFeeAuditDetailModel.auditResult.caseNo
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.caseNo
element definition.short:
  value: 核銷案號
element definition.definition:
  value: 本分案之核銷案號，長度 30（case_no）
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.caseNo
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.identifier.where(system='http://ltc-ig.fhir.tw/identifier/feeaudit/case-no').value
  element definition.mapping.comment:
    value: 核銷案號，以 identifier[caseNo] 切片表達

index: 15
element.id:
  value: LTCFeeAuditDetailModel.auditResult.records
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.records
element definition.short:
  value: 服務記錄筆數
element definition.definition:
  value: 本分案申請之服務記錄總筆數（records），為審核通過服務記錄（approve_records）與錯誤服務記錄（err_records）之筆數合計
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.records
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: integer
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-AuditSummary').extension('records').valueInteger
  element definition.mapping.comment:
    value: 服務記錄筆數；亦等於 ClaimResponse.item 與 ClaimResponse.error 之筆數合計

index: 16
element.id:
  value: LTCFeeAuditDetailModel.auditResult.cases
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.cases
element definition.short:
  value: 個案數
element definition.definition:
  value: 本分案申請之個案數（cases）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.cases
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: integer
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-AuditSummary').extension('cases').valueInteger
  element definition.mapping.comment:
    value: 個案數

index: 17
element.id:
  value: LTCFeeAuditDetailModel.auditResult.amount
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.amount
element definition.short:
  value: 申請核銷金額
element definition.definition:
  value: 本分案申請核銷之總金額（amount）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.amount
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: decimal
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.total.where(category.coding.code='submitted').amount
  element definition.mapping.comment:
    value: 申請核銷金額，落於分案層級之 total，category 為 submitted

index: 18
element.id:
  value: LTCFeeAuditDetailModel.auditResult.auditMan
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.auditMan
element definition.short:
  value: 承辦人員
element definition.definition:
  value: 承辦審核之人員姓名，長度 10（audit_man）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.auditMan
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-AuditSummary').extension('auditMan').valueString
  element definition.mapping.comment:
    value: 承辦人員；不可使用 ClaimResponse.requestor，該元素於 FHIR R4 之語意為提出申報之服務提供方，與審查機關之承辦人語意方向相反

index: 19
element.id:
  value: LTCFeeAuditDetailModel.auditResult.auditReason
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.auditReason
element definition.short:
  value: 承辦審核意見
element definition.definition:
  value: 承辦人員之審核意見說明，長度 4000（audit_reason）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.auditReason
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.disposition
  element definition.mapping.comment:
    value: 承辦審核意見

index: 20
element.id:
  value: LTCFeeAuditDetailModel.auditResult.docVer
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.docVer
element definition.short:
  value: 總表版次
element definition.definition:
  value: 核銷總表之版次，長度 15（doc_ver）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.docVer
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.identifier.where(system='http://ltc-ig.fhir.tw/identifier/feeaudit/doc-ver').value
  element definition.mapping.comment:
    value: 總表版次，以 identifier[docVer] 切片表達

index: 21
element.id:
  value: LTCFeeAuditDetailModel.auditResult.verDt
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.verDt
element definition.short:
  value: 版次時間
element definition.definition:
  value: 總表版次產生時間，格式 yyyyMMddhhmmss，長度 14（ver_dt）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.verDt
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.created
  element definition.mapping.comment:
    value: 版次時間（yyyyMMddhhmmss），以 dateTime 表達

index: 22
element.id:
  value: LTCFeeAuditDetailModel.auditResult.approveCaseNum
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.approveCaseNum
element definition.short:
  value: 核定個案數
element definition.definition:
  value: 審核核定通過之個案數（approve_case_num）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.approveCaseNum
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: integer
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-AuditSummary').extension('approveCaseNum').valueInteger
  element definition.mapping.comment:
    value: 核定個案數

index: 23
element.id:
  value: LTCFeeAuditDetailModel.auditResult.approveRecordCount
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.approveRecordCount
element definition.short:
  value: 核定服務記錄數
element definition.definition:
  value: 審核核定通過之服務記錄筆數（approve_record_count）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.approveRecordCount
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: integer
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-AuditSummary').extension('approveRecordCount').valueInteger
  element definition.mapping.comment:
    value: 核定服務記錄數；亦等於 ClaimResponse.item 之筆數

index: 24
element.id:
  value: LTCFeeAuditDetailModel.auditResult.approveFee
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.approveFee
element definition.short:
  value: 核定金額
element definition.definition:
  value: 審核核定之給付金額（approve_fee）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.approveFee
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: decimal
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.total.where(category.coding.code='approveFee').amount
  element definition.mapping.comment:
    value: 核定金額，屬分案層級金額，落於 total

index: 25
element.id:
  value: LTCFeeAuditDetailModel.auditResult.aSvcFee
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.aSvcFee
element definition.short:
  value: 政策鼓勵金額
element definition.definition:
  value: A 碼加成之政策鼓勵給付金額（a_svc_fee）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.aSvcFee
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: decimal
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.total.where(category.coding.code='aSvcFee').amount
  element definition.mapping.comment:
    value: 政策鼓勵金額，屬分案層級金額，落於 total

index: 26
element.id:
  value: LTCFeeAuditDetailModel.auditResult.tempPaymentStatus
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.tempPaymentStatus
element definition.short:
  value: 暫付申請狀態
element definition.definition:
  value: 暫付申請之處理狀態，長度 15，有申請暫付才顯示（temp_payment_status）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.tempPaymentStatus
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-AuditSummary').extension('tempPaymentStatus').valueString
  element definition.mapping.comment:
    value: 暫付申請狀態，有申請暫付才顯示

index: 27
element.id:
  value: LTCFeeAuditDetailModel.auditResult.tempPaymentFee
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.tempPaymentFee
element definition.short:
  value: 分案暫付金額
element definition.definition:
  value: 本分案之暫付金額，有申請暫付才顯示（temp_payment_fee）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.tempPaymentFee
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: decimal
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.total.where(category.coding.code='tempPaymentFee').amount
  element definition.mapping.comment:
    value: 分案暫付金額，屬分案層級金額，落於 total

index: 28
element.id:
  value: LTCFeeAuditDetailModel.auditResult.tempPaymentDocUrl
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.tempPaymentDocUrl
element definition.short:
  value: 暫付總表下載路徑
element definition.definition:
  value: 暫付總表檔案之下載路徑，長度 200（temp_payment_doc_url）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.tempPaymentDocUrl
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: url
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-DocUrl').where(extension('docType').valueCodeableConcept.coding.code='tempPaymentDoc').extension('url').valueUrl
  element definition.mapping.comment:
    value: 暫付總表下載路徑

index: 29
element.id:
  value: LTCFeeAuditDetailModel.auditResult.caseSummaryNoticeUrl
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.caseSummaryNoticeUrl
element definition.short:
  value: 總表下載路徑
element definition.definition:
  value: 核銷總表檔案之下載路徑，長度 200（case_summary_notice_url）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.caseSummaryNoticeUrl
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: url
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-DocUrl').where(extension('docType').valueCodeableConcept.coding.code='caseSummaryNotice').extension('url').valueUrl
  element definition.mapping.comment:
    value: 總表下載路徑

index: 30
element.id:
  value: LTCFeeAuditDetailModel.auditResult.caseSvcListUrl
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.caseSvcListUrl
element definition.short:
  value: 清冊路徑
element definition.definition:
  value: 服務記錄清冊之下載路徑，長度 200（case_svc_list_url）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.caseSvcListUrl
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: url
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-DocUrl').where(extension('docType').valueCodeableConcept.coding.code='caseSvcList').extension('url').valueUrl
  element definition.mapping.comment:
    value: 清冊路徑

index: 31
element.id:
  value: LTCFeeAuditDetailModel.auditResult.caseSvcListExcelUrl
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.caseSvcListExcelUrl
element definition.short:
  value: 清冊 EXCEL 下載路徑
element definition.definition:
  value: 服務記錄清冊 EXCEL 檔之下載路徑，長度 200（case_svc_list_excel_url）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.caseSvcListExcelUrl
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: url
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-DocUrl').where(extension('docType').valueCodeableConcept.coding.code='caseSvcListExcel').extension('url').valueUrl
  element definition.mapping.comment:
    value: 清冊 EXCEL 下載路徑

index: 32
element.id:
  value: LTCFeeAuditDetailModel.auditResult.caseASvcListUrl
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.caseASvcListUrl
element definition.short:
  value: A 碼清冊路徑
element definition.definition:
  value: A 碼加成清冊之下載路徑，長度 200（case_a_svc_list_url）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.caseASvcListUrl
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: url
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-DocUrl').where(extension('docType').valueCodeableConcept.coding.code='caseASvcList').extension('url').valueUrl
  element definition.mapping.comment:
    value: A 碼清冊路徑

index: 33
element.id:
  value: LTCFeeAuditDetailModel.auditResult.caseASvcListExcelUrl
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.caseASvcListExcelUrl
element definition.short:
  value: A 碼清冊 EXCEL 下載路徑
element definition.definition:
  value: A 碼加成清冊 EXCEL 檔之下載路徑，長度 200（case_a_svc_list_excel_url）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.caseASvcListExcelUrl
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: url
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-DocUrl').where(extension('docType').valueCodeableConcept.coding.code='caseASvcListExcel').extension('url').valueUrl
  element definition.mapping.comment:
    value: A 碼清冊 EXCEL 下載路徑

index: 34
element.id:
  value: LTCFeeAuditDetailModel.auditResult.caseErrListUrl
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.caseErrListUrl
element definition.short:
  value: 申請記錄不通過清冊路徑
element definition.definition:
  value: 申請記錄審核不通過清冊之下載路徑，長度 200（case_err_list_url）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.caseErrListUrl
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: url
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-DocUrl').where(extension('docType').valueCodeableConcept.coding.code='caseErrList').extension('url').valueUrl
  element definition.mapping.comment:
    value: 申請記錄不通過清冊路徑

index: 35
element.id:
  value: LTCFeeAuditDetailModel.auditResult.caseErrListExcelUrl
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.caseErrListExcelUrl
element definition.short:
  value: 申請記錄不通過 EXCEL 清冊路徑
element definition.definition:
  value: 申請記錄審核不通過清冊 EXCEL 檔之下載路徑，長度 200（case_err_list_excel_url）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.caseErrListExcelUrl
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: url
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-DocUrl').where(extension('docType').valueCodeableConcept.coding.code='caseErrListExcel').extension('url').valueUrl
  element definition.mapping.comment:
    value: 申請記錄不通過 EXCEL 清冊路徑

index: 36
element.id:
  value: LTCFeeAuditDetailModel.auditResult.transNos
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.transNos
element definition.short:
  value: 分案已處理之單號
element definition.definition:
  value: 本分案已處理之申請單單號陣列（trans_nos）
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.transNos
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-AuditSummary').extension('transNo').valueString
  element definition.mapping.comment:
    value: 分案已處理之申請單單號，為多筆字串，逐筆各為一個子擴充實例；不可使用 ClaimResponse.request，該元素於 FHIR R4 為 0..1 Reference

index: 37
element.id:
  value: LTCFeeAuditDetailModel.auditResult.incInAcc
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.incInAcc
element definition.short:
  value: 核增金額
element definition.definition:
  value: 審核後核增之金額（inc_in_acc）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.incInAcc
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: decimal
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.total.where(category.coding.code='incInAcc').amount
  element definition.mapping.comment:
    value: 核增金額，屬分案層級金額，落於 total

index: 38
element.id:
  value: LTCFeeAuditDetailModel.auditResult.incInReason
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.incInReason
element definition.short:
  value: 核增原因
element definition.definition:
  value: 核增金額之原因說明，長度 4000（inc_in_reason）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.incInReason
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.processNote.text
  element definition.mapping.comment:
    value: 核增原因，以審核附註之自由文字表達

index: 39
element.id:
  value: LTCFeeAuditDetailModel.auditResult.decInAcc
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.decInAcc
element definition.short:
  value: 核減金額
element definition.definition:
  value: 審核後核減之金額（dec_in_acc）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.decInAcc
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: decimal
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.total.where(category.coding.code='decInAcc').amount
  element definition.mapping.comment:
    value: 核減金額，屬分案層級金額，落於 total

index: 40
element.id:
  value: LTCFeeAuditDetailModel.auditResult.decInReason
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.decInReason
element definition.short:
  value: 核減原因
element definition.definition:
  value: 核減金額之原因說明，長度 4000（dec_in_reason）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.decInReason
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.processNote.text
  element definition.mapping.comment:
    value: 核減原因，以審核附註之自由文字表達

index: 41
element.id:
  value: LTCFeeAuditDetailModel.auditResult.approveRecords
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.approveRecords
element definition.short:
  value: 審核通過服務記錄
element definition.definition:
  value: 審核通過之服務記錄明細，多筆（approve_records）
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.approveRecords
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: BackboneElement
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.item
  element definition.mapping.comment:
    value: 審核通過服務記錄，逐筆對應 ClaimResponse.item；item.itemSequence 僅為本資源內之流水序號

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

index: 43
element.id:
  value: LTCFeeAuditDetailModel.auditResult.approveRecords.extension
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.approveRecords.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional content defined by implementations
element definition.definition:
  value: 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: 1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 44
element.id:
  value: LTCFeeAuditDetailModel.auditResult.approveRecords.modifierExtension
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.approveRecords.modifierExtension
element definition.short:
  value: Extensions that cannot be ignored even if unrecognized
element definition.definition:
  value: 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).
element definition.comment:
  value: 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.
element definition.requirements:
  value: 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).
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.alias:
  value: modifiers
  index: 2
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: BackboneElement.modifierExtension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: 1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: true
element definition.is modifier reason:
  value: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 45
element.id:
  value: LTCFeeAuditDetailModel.auditResult.approveRecords.sourceSystem
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.approveRecords.sourceSystem
element definition.short:
  value: 來源系統別
element definition.definition:
  value: 服務記錄之來源系統別，長度 20（source_system）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.approveRecords.sourceSystem
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.item.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-RecordRef').extension('sourceSystem').valueString
  element definition.mapping.comment:
    value: 來源系統別

index: 46
element.id:
  value: LTCFeeAuditDetailModel.auditResult.approveRecords.objid
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.approveRecords.objid
element definition.short:
  value: 識別碼
element definition.definition:
  value: 服務記錄之識別碼，長度 20（objid）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.approveRecords.objid
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.item.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-RecordRef').extension('objid').valueString
  element definition.mapping.comment:
    value: 服務記錄識別碼；不可使用 item.itemSequence，該元素於 FHIR R4 為 positiveInt

index: 47
element.id:
  value: LTCFeeAuditDetailModel.auditResult.approveRecords.transNo
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.approveRecords.transNo
element definition.short:
  value: 交易序號
element definition.definition:
  value: 服務記錄申報時之交易序號，長度 10（trans_no）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.approveRecords.transNo
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.item.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-RecordRef').extension('transNo').valueString
  element definition.mapping.comment:
    value: 交易序號

index: 48
element.id:
  value: LTCFeeAuditDetailModel.auditResult.approveRecords.price
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.approveRecords.price
element definition.short:
  value: 單價
element definition.definition:
  value: 該筆服務記錄之核定單價（price）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.approveRecords.price
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: decimal
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.item.adjudication.where(category.coding.code='price').amount
  element definition.mapping.comment:
    value: 單價，屬逐筆服務記錄之金額，落於 item.adjudication

index: 49
element.id:
  value: LTCFeeAuditDetailModel.auditResult.approveRecords.copayment
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.approveRecords.copayment
element definition.short:
  value: 自付額
element definition.definition:
  value: 該筆服務記錄之個案自付額（copayment）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.approveRecords.copayment
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: decimal
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.item.adjudication.where(category.coding.code='copayment').amount
  element definition.mapping.comment:
    value: 自付額，屬逐筆服務記錄之金額，落於 item.adjudication

index: 50
element.id:
  value: LTCFeeAuditDetailModel.auditResult.errRecords
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.errRecords
element definition.short:
  value: 錯誤服務記錄
element definition.definition:
  value: 審核不通過（錯誤）之服務記錄明細，多筆（err_records）
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.errRecords
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: BackboneElement
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.error
  element definition.mapping.comment:
    value: 錯誤服務記錄，逐筆對應 ClaimResponse.error；若該筆之 err_code／err_message 為空而無法填入 error.code（1..1 且綁定錯誤代碼值集），得改以隨附之 LTCOperationOutcomeFeeAudit 表達

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

index: 52
element.id:
  value: LTCFeeAuditDetailModel.auditResult.errRecords.extension
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.errRecords.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional content defined by implementations
element definition.definition:
  value: 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: 1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 53
element.id:
  value: LTCFeeAuditDetailModel.auditResult.errRecords.modifierExtension
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.errRecords.modifierExtension
element definition.short:
  value: Extensions that cannot be ignored even if unrecognized
element definition.definition:
  value: 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).
element definition.comment:
  value: 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.
element definition.requirements:
  value: 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).
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.alias:
  value: modifiers
  index: 2
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: BackboneElement.modifierExtension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: 1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: true
element definition.is modifier reason:
  value: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 54
element.id:
  value: LTCFeeAuditDetailModel.auditResult.errRecords.sourceSystem
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.errRecords.sourceSystem
element definition.short:
  value: 來源系統別
element definition.definition:
  value: 服務記錄之來源系統別，長度 20（source_system）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.errRecords.sourceSystem
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.error.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-RecordRef').extension('sourceSystem').valueString
  element definition.mapping.comment:
    value: 來源系統別

index: 55
element.id:
  value: LTCFeeAuditDetailModel.auditResult.errRecords.objid
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.errRecords.objid
element definition.short:
  value: 識別碼
element definition.definition:
  value: 服務記錄之識別碼，長度 20（objid）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.errRecords.objid
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.error.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-RecordRef').extension('objid').valueString
  element definition.mapping.comment:
    value: 服務記錄識別碼；不可使用 error.itemSequence，該元素於 FHIR R4 為 positiveInt

index: 56
element.id:
  value: LTCFeeAuditDetailModel.auditResult.errRecords.transNo
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.errRecords.transNo
element definition.short:
  value: 交易序號
element definition.definition:
  value: 服務記錄申報時之交易序號，長度 10（trans_no）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.errRecords.transNo
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.error.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-RecordRef').extension('transNo').valueString
  element definition.mapping.comment:
    value: 交易序號

index: 57
element.id:
  value: LTCFeeAuditDetailModel.auditResult.errRecords.errCode
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.errRecords.errCode
element definition.short:
  value: 錯誤碼
element definition.definition:
  value: 審核不通過之錯誤代碼，長度 5（err_code）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.errRecords.errCode
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.error.code.coding.code
  element definition.mapping.comment:
    value: 錯誤碼

index: 58
element.id:
  value: LTCFeeAuditDetailModel.auditResult.errRecords.errMessage
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.errRecords.errMessage
element definition.short:
  value: 錯誤原因
element definition.definition:
  value: 審核不通過之錯誤原因說明，長度 200（err_message）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.errRecords.errMessage
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.error.code.text
  element definition.mapping.comment:
    value: 錯誤原因

index: 59
element.id:
  value: LTCFeeAuditDetailModel.auditResult.aSvcRecords
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.aSvcRecords
element definition.short:
  value: A 碼加成資料區
element definition.definition:
  value: A 碼加成（政策鼓勵）之給付明細，多筆（a_svc_records）
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.aSvcRecords
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: BackboneElement
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.addItem
  element definition.mapping.comment:
    value: A 碼加成資料，逐筆對應 ClaimResponse.addItem

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

index: 61
element.id:
  value: LTCFeeAuditDetailModel.auditResult.aSvcRecords.extension
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.aSvcRecords.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional content defined by implementations
element definition.definition:
  value: 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: 1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 62
element.id:
  value: LTCFeeAuditDetailModel.auditResult.aSvcRecords.modifierExtension
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.aSvcRecords.modifierExtension
element definition.short:
  value: Extensions that cannot be ignored even if unrecognized
element definition.definition:
  value: 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).
element definition.comment:
  value: 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.
element definition.requirements:
  value: 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).
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.alias:
  value: modifiers
  index: 2
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: BackboneElement.modifierExtension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: 1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: true
element definition.is modifier reason:
  value: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 63
element.id:
  value: LTCFeeAuditDetailModel.auditResult.aSvcRecords.refSourceSystem
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.aSvcRecords.refSourceSystem
element definition.short:
  value: 審核通過服務記錄來源系統別
element definition.definition:
  value: 所加成之審核通過服務記錄來源系統別，長度 20（ref_source_system）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.aSvcRecords.refSourceSystem
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.addItem.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-RecordRef').extension('sourceSystem').valueString
  element definition.mapping.comment:
    value: 所加成之審核通過服務記錄來源系統別

index: 64
element.id:
  value: LTCFeeAuditDetailModel.auditResult.aSvcRecords.refObjid
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.aSvcRecords.refObjid
element definition.short:
  value: 審核通過服務記錄識別碼
element definition.definition:
  value: 所加成之審核通過服務記錄識別碼，長度 20（ref_objid）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.aSvcRecords.refObjid
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.addItem.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-RecordRef').extension('objid').valueString
  element definition.mapping.comment:
    value: 所加成之審核通過服務記錄識別碼；不可使用 addItem.itemSequence，該元素於 FHIR R4 為 positiveInt 且語意上指向原申請單之項目序號

index: 65
element.id:
  value: LTCFeeAuditDetailModel.auditResult.aSvcRecords.aGovItemCd
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.aSvcRecords.aGovItemCd
element definition.short:
  value: A 碼
element definition.definition:
  value: A 碼加成之給付項目代碼，長度 10（a_gov_item_cd）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.aSvcRecords.aGovItemCd
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.addItem.productOrService
  element definition.mapping.comment:
    value: A 碼加成之給付項目代碼

index: 66
element.id:
  value: LTCFeeAuditDetailModel.auditResult.aSvcRecords.price
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.aSvcRecords.price
element definition.short:
  value: 單價
element definition.definition:
  value: 該筆 A 碼加成之單價（price）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: LTCFeeAuditDetailModel.auditResult.aSvcRecords.price
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: decimal
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.addItem.adjudication.where(category.coding.code='price').amount
  element definition.mapping.comment:
    value: 單價，落於 addItem.adjudication

structure definition.differential.element:
  index: 0
  element.id:
    value: LTCFeeAuditDetailModel
  element definition.path:
    value: LTCFeeAuditDetailModel
  element definition.short:
    value: 長照支付審查－分案審核明細邏輯模型
  element definition.definition:
    value: 此邏輯模型以《衛生福利部 支付審核系統 API 規格說明書（照管平台）v2.2.1》「五、(查詢B)分案審核明細查詢」為基礎，用以描述分案審核明細查詢之傳送資料與回覆明細的資料結構與欄位準備指引。需先執行（查詢A）取得案件之核銷案號、核銷狀況與總表版次，當為新核銷案號或核銷狀況、總表版次有異動時，才執行（查詢B）取得該案件之明細資料。
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: LTCFeeAuditDetailModelMapping
    element definition.mapping.map:
      value: ClaimResponse
    element definition.mapping.comment:
      value: 分案審核明細整體對應至 ClaimResponse
structure definition.differential.element:
  index: 1
  element.id:
    value: LTCFeeAuditDetailModel.queryInfo
  element definition.path:
    value: LTCFeeAuditDetailModel.queryInfo
  element definition.short:
    value: 查詢輸入資訊
  element definition.definition:
    value: 分案審核明細查詢的傳送資料（app_result_query_info），單筆物件
  element definition.min:
    value: 1
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: BackboneElement
structure definition.differential.element:
  index: 2
  element.id:
    value: LTCFeeAuditDetailModel.queryInfo.writeoffYyyymm
  element definition.path:
    value: LTCFeeAuditDetailModel.queryInfo.writeoffYyyymm
  element definition.short:
    value: 支審年月
  element definition.definition:
    value: 支付審查年月，格式 yyyyMM，長度 6（writeoff_yyyymm）
  element definition.min:
    value: 1
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: string
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: LTCFeeAuditDetailModelMapping
    element definition.mapping.map:
      value: ClaimResponse.identifier.where(system='http://ltc-ig.fhir.tw/identifier/feeaudit/yyyymm').value
    element definition.mapping.comment:
      value: 支審年月（yyyyMM）
structure definition.differential.element:
  index: 3
  element.id:
    value: LTCFeeAuditDetailModel.queryInfo.transNo
  element definition.path:
    value: LTCFeeAuditDetailModel.queryInfo.transNo
  element definition.short:
    value: 交易序號
  element definition.definition:
    value: 本次查詢的交易序號，長度 10（trans_no）
  element definition.min:
    value: 1
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: string
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: LTCFeeAuditDetailModelMapping
    element definition.mapping.map:
      value: ClaimResponse
    element definition.mapping.comment:
      value: 本次查詢之交易序號，屬傳輸層查詢參數，不落於回覆之 ClaimResponse
structure definition.differential.element:
  index: 4
  element.id:
    value: LTCFeeAuditDetailModel.queryInfo.queryType
  element definition.path:
    value: LTCFeeAuditDetailModel.queryInfo.queryType
  element definition.short:
    value: 查詢類別
  element definition.definition:
    value: 查詢類別，長度 1，固定值：B，代表分案審核明細查詢（query_type）
  element definition.min:
    value: 1
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: string
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: LTCFeeAuditDetailModelMapping
    element definition.mapping.map:
      value: ClaimResponse
    element definition.mapping.comment:
      value: 查詢類別固定值 B，屬傳輸層查詢參數，不落於回覆之 ClaimResponse
structure definition.differential.element:
  index: 5
  element.id:
    value: LTCFeeAuditDetailModel.queryInfo.cityCd
  element definition.path:
    value: LTCFeeAuditDetailModel.queryInfo.cityCd
  element definition.short:
    value: 縣市代碼
  element definition.definition:
    value: 受理案件之縣市代碼，長度 5（city_cd）
  element definition.min:
    value: 1
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: string
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: LTCFeeAuditDetailModelMapping
    element definition.mapping.map:
      value: ClaimResponse.insurer
    element definition.mapping.comment:
      value: 縣市代碼，以 Reference(LTCOrganization) 指向受理本分案之縣市主管機關，代碼記錄於 Organization.identifier.value
structure definition.differential.element:
  index: 6
  element.id:
    value: LTCFeeAuditDetailModel.queryInfo.caseNo
  element definition.path:
    value: LTCFeeAuditDetailModel.queryInfo.caseNo
  element definition.short:
    value: 核銷案號
  element definition.definition:
    value: 欲查詢明細之核銷案號，長度 30（case_no）
  element definition.min:
    value: 1
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: string
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: LTCFeeAuditDetailModelMapping
    element definition.mapping.map:
      value: ClaimResponse.identifier.where(system='http://ltc-ig.fhir.tw/identifier/feeaudit/case-no').value
    element definition.mapping.comment:
      value: 核銷案號
structure definition.differential.element:
  index: 7
  element.id:
    value: LTCFeeAuditDetailModel.auditResult
  element definition.path:
    value: LTCFeeAuditDetailModel.auditResult
  element definition.short:
    value: 分案審核明細
  element definition.definition:
    value: 分案審核明細查詢的回覆內容（Response.result）
  element definition.min:
    value: 1
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: BackboneElement
structure definition.differential.element:
  index: 8
  element.id:
    value: LTCFeeAuditDetailModel.auditResult.caseNo
  element definition.path:
    value: LTCFeeAuditDetailModel.auditResult.caseNo
  element definition.short:
    value: 核銷案號
  element definition.definition:
    value: 本分案之核銷案號，長度 30（case_no）
  element definition.min:
    value: 1
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: string

index: 0
element definition.mapping.identity:
  value: LTCFeeAuditDetailModelMapping
element definition.mapping.map:
  value: ClaimResponse.identifier.where(system='http://ltc-ig.fhir.tw/identifier/feeaudit/case-no').value
element definition.mapping.comment:
  value: 核銷案號，以 identifier[caseNo] 切片表達

index: 9
element.id:
  value: LTCFeeAuditDetailModel.auditResult.records
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.records
element definition.short:
  value: 服務記錄筆數
element definition.definition:
  value: 本分案申請之服務記錄總筆數（records），為審核通過服務記錄（approve_records）與錯誤服務記錄（err_records）之筆數合計
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: integer
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-AuditSummary').extension('records').valueInteger
  element definition.mapping.comment:
    value: 服務記錄筆數；亦等於 ClaimResponse.item 與 ClaimResponse.error 之筆數合計

index: 10
element.id:
  value: LTCFeeAuditDetailModel.auditResult.cases
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.cases
element definition.short:
  value: 個案數
element definition.definition:
  value: 本分案申請之個案數（cases）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: integer
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-AuditSummary').extension('cases').valueInteger
  element definition.mapping.comment:
    value: 個案數

index: 11
element.id:
  value: LTCFeeAuditDetailModel.auditResult.amount
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.amount
element definition.short:
  value: 申請核銷金額
element definition.definition:
  value: 本分案申請核銷之總金額（amount）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: decimal
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.total.where(category.coding.code='submitted').amount
  element definition.mapping.comment:
    value: 申請核銷金額，落於分案層級之 total，category 為 submitted

index: 12
element.id:
  value: LTCFeeAuditDetailModel.auditResult.auditMan
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.auditMan
element definition.short:
  value: 承辦人員
element definition.definition:
  value: 承辦審核之人員姓名，長度 10（audit_man）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-AuditSummary').extension('auditMan').valueString
  element definition.mapping.comment:
    value: 承辦人員；不可使用 ClaimResponse.requestor，該元素於 FHIR R4 之語意為提出申報之服務提供方，與審查機關之承辦人語意方向相反

index: 13
element.id:
  value: LTCFeeAuditDetailModel.auditResult.auditReason
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.auditReason
element definition.short:
  value: 承辦審核意見
element definition.definition:
  value: 承辦人員之審核意見說明，長度 4000（audit_reason）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.disposition
  element definition.mapping.comment:
    value: 承辦審核意見

index: 14
element.id:
  value: LTCFeeAuditDetailModel.auditResult.docVer
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.docVer
element definition.short:
  value: 總表版次
element definition.definition:
  value: 核銷總表之版次，長度 15（doc_ver）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.identifier.where(system='http://ltc-ig.fhir.tw/identifier/feeaudit/doc-ver').value
  element definition.mapping.comment:
    value: 總表版次，以 identifier[docVer] 切片表達

index: 15
element.id:
  value: LTCFeeAuditDetailModel.auditResult.verDt
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.verDt
element definition.short:
  value: 版次時間
element definition.definition:
  value: 總表版次產生時間，格式 yyyyMMddhhmmss，長度 14（ver_dt）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.created
  element definition.mapping.comment:
    value: 版次時間（yyyyMMddhhmmss），以 dateTime 表達

index: 16
element.id:
  value: LTCFeeAuditDetailModel.auditResult.approveCaseNum
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.approveCaseNum
element definition.short:
  value: 核定個案數
element definition.definition:
  value: 審核核定通過之個案數（approve_case_num）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: integer
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-AuditSummary').extension('approveCaseNum').valueInteger
  element definition.mapping.comment:
    value: 核定個案數

index: 17
element.id:
  value: LTCFeeAuditDetailModel.auditResult.approveRecordCount
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.approveRecordCount
element definition.short:
  value: 核定服務記錄數
element definition.definition:
  value: 審核核定通過之服務記錄筆數（approve_record_count）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: integer
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-AuditSummary').extension('approveRecordCount').valueInteger
  element definition.mapping.comment:
    value: 核定服務記錄數；亦等於 ClaimResponse.item 之筆數

index: 18
element.id:
  value: LTCFeeAuditDetailModel.auditResult.approveFee
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.approveFee
element definition.short:
  value: 核定金額
element definition.definition:
  value: 審核核定之給付金額（approve_fee）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: decimal
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.total.where(category.coding.code='approveFee').amount
  element definition.mapping.comment:
    value: 核定金額，屬分案層級金額，落於 total

index: 19
element.id:
  value: LTCFeeAuditDetailModel.auditResult.aSvcFee
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.aSvcFee
element definition.short:
  value: 政策鼓勵金額
element definition.definition:
  value: A 碼加成之政策鼓勵給付金額（a_svc_fee）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: decimal
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.total.where(category.coding.code='aSvcFee').amount
  element definition.mapping.comment:
    value: 政策鼓勵金額，屬分案層級金額，落於 total

index: 20
element.id:
  value: LTCFeeAuditDetailModel.auditResult.tempPaymentStatus
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.tempPaymentStatus
element definition.short:
  value: 暫付申請狀態
element definition.definition:
  value: 暫付申請之處理狀態，長度 15，有申請暫付才顯示（temp_payment_status）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-AuditSummary').extension('tempPaymentStatus').valueString
  element definition.mapping.comment:
    value: 暫付申請狀態，有申請暫付才顯示

index: 21
element.id:
  value: LTCFeeAuditDetailModel.auditResult.tempPaymentFee
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.tempPaymentFee
element definition.short:
  value: 分案暫付金額
element definition.definition:
  value: 本分案之暫付金額，有申請暫付才顯示（temp_payment_fee）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: decimal
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.total.where(category.coding.code='tempPaymentFee').amount
  element definition.mapping.comment:
    value: 分案暫付金額，屬分案層級金額，落於 total

index: 22
element.id:
  value: LTCFeeAuditDetailModel.auditResult.tempPaymentDocUrl
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.tempPaymentDocUrl
element definition.short:
  value: 暫付總表下載路徑
element definition.definition:
  value: 暫付總表檔案之下載路徑，長度 200（temp_payment_doc_url）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: url
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-DocUrl').where(extension('docType').valueCodeableConcept.coding.code='tempPaymentDoc').extension('url').valueUrl
  element definition.mapping.comment:
    value: 暫付總表下載路徑

index: 23
element.id:
  value: LTCFeeAuditDetailModel.auditResult.caseSummaryNoticeUrl
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.caseSummaryNoticeUrl
element definition.short:
  value: 總表下載路徑
element definition.definition:
  value: 核銷總表檔案之下載路徑，長度 200（case_summary_notice_url）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: url
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-DocUrl').where(extension('docType').valueCodeableConcept.coding.code='caseSummaryNotice').extension('url').valueUrl
  element definition.mapping.comment:
    value: 總表下載路徑

index: 24
element.id:
  value: LTCFeeAuditDetailModel.auditResult.caseSvcListUrl
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.caseSvcListUrl
element definition.short:
  value: 清冊路徑
element definition.definition:
  value: 服務記錄清冊之下載路徑，長度 200（case_svc_list_url）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: url
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-DocUrl').where(extension('docType').valueCodeableConcept.coding.code='caseSvcList').extension('url').valueUrl
  element definition.mapping.comment:
    value: 清冊路徑

index: 25
element.id:
  value: LTCFeeAuditDetailModel.auditResult.caseSvcListExcelUrl
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.caseSvcListExcelUrl
element definition.short:
  value: 清冊 EXCEL 下載路徑
element definition.definition:
  value: 服務記錄清冊 EXCEL 檔之下載路徑，長度 200（case_svc_list_excel_url）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: url
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-DocUrl').where(extension('docType').valueCodeableConcept.coding.code='caseSvcListExcel').extension('url').valueUrl
  element definition.mapping.comment:
    value: 清冊 EXCEL 下載路徑

index: 26
element.id:
  value: LTCFeeAuditDetailModel.auditResult.caseASvcListUrl
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.caseASvcListUrl
element definition.short:
  value: A 碼清冊路徑
element definition.definition:
  value: A 碼加成清冊之下載路徑，長度 200（case_a_svc_list_url）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: url
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-DocUrl').where(extension('docType').valueCodeableConcept.coding.code='caseASvcList').extension('url').valueUrl
  element definition.mapping.comment:
    value: A 碼清冊路徑

index: 27
element.id:
  value: LTCFeeAuditDetailModel.auditResult.caseASvcListExcelUrl
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.caseASvcListExcelUrl
element definition.short:
  value: A 碼清冊 EXCEL 下載路徑
element definition.definition:
  value: A 碼加成清冊 EXCEL 檔之下載路徑，長度 200（case_a_svc_list_excel_url）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: url
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-DocUrl').where(extension('docType').valueCodeableConcept.coding.code='caseASvcListExcel').extension('url').valueUrl
  element definition.mapping.comment:
    value: A 碼清冊 EXCEL 下載路徑

index: 28
element.id:
  value: LTCFeeAuditDetailModel.auditResult.caseErrListUrl
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.caseErrListUrl
element definition.short:
  value: 申請記錄不通過清冊路徑
element definition.definition:
  value: 申請記錄審核不通過清冊之下載路徑，長度 200（case_err_list_url）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: url
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-DocUrl').where(extension('docType').valueCodeableConcept.coding.code='caseErrList').extension('url').valueUrl
  element definition.mapping.comment:
    value: 申請記錄不通過清冊路徑

index: 29
element.id:
  value: LTCFeeAuditDetailModel.auditResult.caseErrListExcelUrl
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.caseErrListExcelUrl
element definition.short:
  value: 申請記錄不通過 EXCEL 清冊路徑
element definition.definition:
  value: 申請記錄審核不通過清冊 EXCEL 檔之下載路徑，長度 200（case_err_list_excel_url）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: url
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-DocUrl').where(extension('docType').valueCodeableConcept.coding.code='caseErrListExcel').extension('url').valueUrl
  element definition.mapping.comment:
    value: 申請記錄不通過 EXCEL 清冊路徑

index: 30
element.id:
  value: LTCFeeAuditDetailModel.auditResult.transNos
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.transNos
element definition.short:
  value: 分案已處理之單號
element definition.definition:
  value: 本分案已處理之申請單單號陣列（trans_nos）
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-AuditSummary').extension('transNo').valueString
  element definition.mapping.comment:
    value: 分案已處理之申請單單號，為多筆字串，逐筆各為一個子擴充實例；不可使用 ClaimResponse.request，該元素於 FHIR R4 為 0..1 Reference

index: 31
element.id:
  value: LTCFeeAuditDetailModel.auditResult.incInAcc
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.incInAcc
element definition.short:
  value: 核增金額
element definition.definition:
  value: 審核後核增之金額（inc_in_acc）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: decimal
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.total.where(category.coding.code='incInAcc').amount
  element definition.mapping.comment:
    value: 核增金額，屬分案層級金額，落於 total

index: 32
element.id:
  value: LTCFeeAuditDetailModel.auditResult.incInReason
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.incInReason
element definition.short:
  value: 核增原因
element definition.definition:
  value: 核增金額之原因說明，長度 4000（inc_in_reason）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.processNote.text
  element definition.mapping.comment:
    value: 核增原因，以審核附註之自由文字表達

index: 33
element.id:
  value: LTCFeeAuditDetailModel.auditResult.decInAcc
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.decInAcc
element definition.short:
  value: 核減金額
element definition.definition:
  value: 審核後核減之金額（dec_in_acc）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: decimal
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.total.where(category.coding.code='decInAcc').amount
  element definition.mapping.comment:
    value: 核減金額，屬分案層級金額，落於 total

index: 34
element.id:
  value: LTCFeeAuditDetailModel.auditResult.decInReason
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.decInReason
element definition.short:
  value: 核減原因
element definition.definition:
  value: 核減金額之原因說明，長度 4000（dec_in_reason）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.processNote.text
  element definition.mapping.comment:
    value: 核減原因，以審核附註之自由文字表達

index: 35
element.id:
  value: LTCFeeAuditDetailModel.auditResult.approveRecords
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.approveRecords
element definition.short:
  value: 審核通過服務記錄
element definition.definition:
  value: 審核通過之服務記錄明細，多筆（approve_records）
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: BackboneElement
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.item
  element definition.mapping.comment:
    value: 審核通過服務記錄，逐筆對應 ClaimResponse.item；item.itemSequence 僅為本資源內之流水序號

index: 36
element.id:
  value: LTCFeeAuditDetailModel.auditResult.approveRecords.sourceSystem
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.approveRecords.sourceSystem
element definition.short:
  value: 來源系統別
element definition.definition:
  value: 服務記錄之來源系統別，長度 20（source_system）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.item.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-RecordRef').extension('sourceSystem').valueString
  element definition.mapping.comment:
    value: 來源系統別

index: 37
element.id:
  value: LTCFeeAuditDetailModel.auditResult.approveRecords.objid
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.approveRecords.objid
element definition.short:
  value: 識別碼
element definition.definition:
  value: 服務記錄之識別碼，長度 20（objid）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.item.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-RecordRef').extension('objid').valueString
  element definition.mapping.comment:
    value: 服務記錄識別碼；不可使用 item.itemSequence，該元素於 FHIR R4 為 positiveInt

index: 38
element.id:
  value: LTCFeeAuditDetailModel.auditResult.approveRecords.transNo
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.approveRecords.transNo
element definition.short:
  value: 交易序號
element definition.definition:
  value: 服務記錄申報時之交易序號，長度 10（trans_no）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.item.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-RecordRef').extension('transNo').valueString
  element definition.mapping.comment:
    value: 交易序號

index: 39
element.id:
  value: LTCFeeAuditDetailModel.auditResult.approveRecords.price
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.approveRecords.price
element definition.short:
  value: 單價
element definition.definition:
  value: 該筆服務記錄之核定單價（price）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: decimal
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.item.adjudication.where(category.coding.code='price').amount
  element definition.mapping.comment:
    value: 單價，屬逐筆服務記錄之金額，落於 item.adjudication

index: 40
element.id:
  value: LTCFeeAuditDetailModel.auditResult.approveRecords.copayment
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.approveRecords.copayment
element definition.short:
  value: 自付額
element definition.definition:
  value: 該筆服務記錄之個案自付額（copayment）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: decimal
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.item.adjudication.where(category.coding.code='copayment').amount
  element definition.mapping.comment:
    value: 自付額，屬逐筆服務記錄之金額，落於 item.adjudication

index: 41
element.id:
  value: LTCFeeAuditDetailModel.auditResult.errRecords
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.errRecords
element definition.short:
  value: 錯誤服務記錄
element definition.definition:
  value: 審核不通過（錯誤）之服務記錄明細，多筆（err_records）
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: BackboneElement
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.error
  element definition.mapping.comment:
    value: 錯誤服務記錄，逐筆對應 ClaimResponse.error；若該筆之 err_code／err_message 為空而無法填入 error.code（1..1 且綁定錯誤代碼值集），得改以隨附之 LTCOperationOutcomeFeeAudit 表達

index: 42
element.id:
  value: LTCFeeAuditDetailModel.auditResult.errRecords.sourceSystem
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.errRecords.sourceSystem
element definition.short:
  value: 來源系統別
element definition.definition:
  value: 服務記錄之來源系統別，長度 20（source_system）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.error.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-RecordRef').extension('sourceSystem').valueString
  element definition.mapping.comment:
    value: 來源系統別

index: 43
element.id:
  value: LTCFeeAuditDetailModel.auditResult.errRecords.objid
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.errRecords.objid
element definition.short:
  value: 識別碼
element definition.definition:
  value: 服務記錄之識別碼，長度 20（objid）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.error.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-RecordRef').extension('objid').valueString
  element definition.mapping.comment:
    value: 服務記錄識別碼；不可使用 error.itemSequence，該元素於 FHIR R4 為 positiveInt

index: 44
element.id:
  value: LTCFeeAuditDetailModel.auditResult.errRecords.transNo
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.errRecords.transNo
element definition.short:
  value: 交易序號
element definition.definition:
  value: 服務記錄申報時之交易序號，長度 10（trans_no）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.error.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-RecordRef').extension('transNo').valueString
  element definition.mapping.comment:
    value: 交易序號

index: 45
element.id:
  value: LTCFeeAuditDetailModel.auditResult.errRecords.errCode
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.errRecords.errCode
element definition.short:
  value: 錯誤碼
element definition.definition:
  value: 審核不通過之錯誤代碼，長度 5（err_code）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.error.code.coding.code
  element definition.mapping.comment:
    value: 錯誤碼

index: 46
element.id:
  value: LTCFeeAuditDetailModel.auditResult.errRecords.errMessage
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.errRecords.errMessage
element definition.short:
  value: 錯誤原因
element definition.definition:
  value: 審核不通過之錯誤原因說明，長度 200（err_message）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.error.code.text
  element definition.mapping.comment:
    value: 錯誤原因

index: 47
element.id:
  value: LTCFeeAuditDetailModel.auditResult.aSvcRecords
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.aSvcRecords
element definition.short:
  value: A 碼加成資料區
element definition.definition:
  value: A 碼加成（政策鼓勵）之給付明細，多筆（a_svc_records）
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: BackboneElement
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.addItem
  element definition.mapping.comment:
    value: A 碼加成資料，逐筆對應 ClaimResponse.addItem

index: 48
element.id:
  value: LTCFeeAuditDetailModel.auditResult.aSvcRecords.refSourceSystem
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.aSvcRecords.refSourceSystem
element definition.short:
  value: 審核通過服務記錄來源系統別
element definition.definition:
  value: 所加成之審核通過服務記錄來源系統別，長度 20（ref_source_system）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.addItem.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-RecordRef').extension('sourceSystem').valueString
  element definition.mapping.comment:
    value: 所加成之審核通過服務記錄來源系統別

index: 49
element.id:
  value: LTCFeeAuditDetailModel.auditResult.aSvcRecords.refObjid
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.aSvcRecords.refObjid
element definition.short:
  value: 審核通過服務記錄識別碼
element definition.definition:
  value: 所加成之審核通過服務記錄識別碼，長度 20（ref_objid）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.addItem.extension('http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-FeeAudit-RecordRef').extension('objid').valueString
  element definition.mapping.comment:
    value: 所加成之審核通過服務記錄識別碼；不可使用 addItem.itemSequence，該元素於 FHIR R4 為 positiveInt 且語意上指向原申請單之項目序號

index: 50
element.id:
  value: LTCFeeAuditDetailModel.auditResult.aSvcRecords.aGovItemCd
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.aSvcRecords.aGovItemCd
element definition.short:
  value: A 碼
element definition.definition:
  value: A 碼加成之給付項目代碼，長度 10（a_gov_item_cd）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.addItem.productOrService
  element definition.mapping.comment:
    value: A 碼加成之給付項目代碼

index: 51
element.id:
  value: LTCFeeAuditDetailModel.auditResult.aSvcRecords.price
element definition.path:
  value: LTCFeeAuditDetailModel.auditResult.aSvcRecords.price
element definition.short:
  value: 單價
element definition.definition:
  value: 該筆 A 碼加成之單價（price）
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: decimal
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: LTCFeeAuditDetailModelMapping
  element definition.mapping.map:
    value: ClaimResponse.addItem.adjudication.where(category.coding.code='price').amount
  element definition.mapping.comment:
    value: 單價，落於 addItem.adjudication