臺灣長期照顧實作指引(TW LTC IG)
1.0.0 - STU 1.0.0

臺灣長期照顧實作指引(TW LTC IG), published by 經濟部產業發展署. This guide is not an authorized publication; it is the continuous build for version 1.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/Lorex/TWLongTermCare_IG_Build/ and changes regularly. See the Directory of published versions

Resource Profile: 長照支付審查-申報檢核結果

Official URL: http://ltc-ig.fhir.tw/StructureDefinition/LTCOperationOutcomeFeeAudit Version: 1.0.0
Draft as of 2026-07-29 Computable Name: LTCOperationOutcomeFeeAudit

此 Profile 說明本 IG 如何進一步定義 FHIR 的 OperationOutcome Resource,以呈現衛生福利部支付審核系統(照管平台)回覆的服務紀錄檢核錯誤與 API 回覆結果代碼。適用情境包含:(1)「服務記錄申報」(FeeApply)之回覆明細中的錯誤服務記錄(err_record),每筆含識別碼(objid)與多筆錯誤訊息(err_info:err_code 錯誤碼、err_message 錯誤原因);(2)「(查詢A) 申報結果查詢」回覆之分案異常資料(exception_records)與服務紀錄刪除失敗資料(delete_exception_records),其結構同為 objid、err_code、err_message;(3)API 交易層級之回覆結果代碼(rtncode)與回覆訊息(errmsg)。每一筆錯誤訊息(err_info)對應一個 OperationOutcome.issue。

Usages:

You can also check for usages in the FHIR IG Statistics

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. OperationOutcome 0..* OperationOutcome 支付審核系統之申報檢核結果;API 交易層級之回覆結果代碼(rtncode)由 VS_TW_LTC_FeeAuditRtnCode(vs-tw-ltc-feeaudit-rtncode)表達,例:0 成功回傳、1 Request 輸入參數錯誤、40 查無資料、90 發生無法預期錯誤;本 Profile 之 issue 則表達個別服務紀錄之檢核錯誤(err_code/err_message)
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:caseNo S 0..1 string 核銷案號(case_no,最長 30 碼);OperationOutcome 無 identifier 元素,故沿用既有 Extension ExtTWLTCExportCaseNo(Ext-TW-LTC-Export-CaseNo)承載案件編號,該 Extension 之 ^context 已涵蓋 OperationOutcome,於本 Profile 中其語意為支付審核系統之核銷案號
URL: http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-Export-CaseNo
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... severity SΣ 1..1 code 錯誤嚴重程度;因檢核未通過而導致該筆服務紀錄申報、分案或刪除失敗者,使用 error
Binding: IssueSeverity (required): How the issue affects the success of the action.
.... code SΣ 1..1 code FHIR 問題類型代碼;欄位必填或長度/格式檢核(E1xxx、E2xxx)建議使用 required 或 value,資料查詢與寫入異常(E4xxx)建議使用 not-found 或 processing,審核規則與支付碼專屬檢核(E5xxx、EBA/EBC/ECB/EGA/EOT/ESC 系列)建議使用 business-rule
Binding: IssueType (required): A code that describes the type of issue.
.... details SΣ 1..1 CodeableConcept 錯誤內容,承載回覆明細之錯誤碼(err_code,最長 5 碼)與錯誤原因(err_message,最長 200 字)
Binding: OperationOutcomeCodes (example): A code that provides details as the exact issue.
..... coding SΣ 1..1 Coding 錯誤碼(err_code),綁定支付審查錯誤代碼值集 VS_TW_LTC_FeeAuditErrorCode,例:E1001(服務紀錄識別碼不可空白)、E4015(單位已執行申報確認通知,不在受理新的服務紀錄申報)、E4032(此筆服務紀錄不存在)
Binding: 支付審查-錯誤代碼 (extensible)
..... text SΣ 0..1 string 錯誤原因(err_message)之顯示文字
.... diagnostics SΣ 0..1 string 錯誤原因原文或補充說明,可放回覆明細之 err_message 全文,或 API 層級之回覆訊息(errmsg)、批次處理結果(batch_proc_result)等敘述文字
.... expression SΣ 0..* string 指向出錯的服務紀錄識別碼(objid),即 err_record.objid、exception_records.objid 或 delete_exception_records.objid。表述時須將實際的 objid 值寫入條件,方能唯一指出是哪一筆服務紀錄,例:Claim.identifier.where(system='http://ltc-ig.fhir.tw/identifier/feeaudit/objid' and value='882601914');僅寫出路徑而未帶入 objid 值者無法定位錯誤來源

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
OperationOutcome.issue.​severity Base required IssueSeverity 📍4.0.1 FHIR Std.
OperationOutcome.issue.​code Base required IssueType 📍4.0.1 FHIR Std.
OperationOutcome.issue.​details Base example Operation Outcome Codes 📍4.0.1 FHIR Std.
OperationOutcome.issue.​details.coding Base extensible 支付審查-錯誤代碼 📦1.0.0 This IG

Constraints

Id Grade Path(s) Description Expression
dom-2 error OperationOutcome If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error OperationOutcome If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error OperationOutcome If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error OperationOutcome If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice OperationOutcome A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

This structure is derived from OperationOutcome

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. OperationOutcome 0..* OperationOutcome 支付審核系統之申報檢核結果;API 交易層級之回覆結果代碼(rtncode)由 VS_TW_LTC_FeeAuditRtnCode(vs-tw-ltc-feeaudit-rtncode)表達,例:0 成功回傳、1 Request 輸入參數錯誤、40 查無資料、90 發生無法預期錯誤;本 Profile 之 issue 則表達個別服務紀錄之檢核錯誤(err_code/err_message)
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:caseNo S 0..1 string 核銷案號(case_no,最長 30 碼);OperationOutcome 無 identifier 元素,故沿用既有 Extension ExtTWLTCExportCaseNo(Ext-TW-LTC-Export-CaseNo)承載案件編號,該 Extension 之 ^context 已涵蓋 OperationOutcome,於本 Profile 中其語意為支付審核系統之核銷案號
URL: http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-Export-CaseNo
... issue S 1..* BackboneElement 檢核錯誤項目;每一筆錯誤訊息(err_info/exception_records/delete_exception_records)對應一個 issue,同一筆服務紀錄有多筆錯誤時以多個 issue 表達
.... severity S 1..1 code 錯誤嚴重程度;因檢核未通過而導致該筆服務紀錄申報、分案或刪除失敗者,使用 error
.... code S 1..1 code FHIR 問題類型代碼;欄位必填或長度/格式檢核(E1xxx、E2xxx)建議使用 required 或 value,資料查詢與寫入異常(E4xxx)建議使用 not-found 或 processing,審核規則與支付碼專屬檢核(E5xxx、EBA/EBC/ECB/EGA/EOT/ESC 系列)建議使用 business-rule
.... details S 1..1 CodeableConcept 錯誤內容,承載回覆明細之錯誤碼(err_code,最長 5 碼)與錯誤原因(err_message,最長 200 字)
..... coding S 1..1 Coding 錯誤碼(err_code),綁定支付審查錯誤代碼值集 VS_TW_LTC_FeeAuditErrorCode,例:E1001(服務紀錄識別碼不可空白)、E4015(單位已執行申報確認通知,不在受理新的服務紀錄申報)、E4032(此筆服務紀錄不存在)
Binding: 支付審查-錯誤代碼 (extensible)
..... text S 0..1 string 錯誤原因(err_message)之顯示文字
.... diagnostics S 0..1 string 錯誤原因原文或補充說明,可放回覆明細之 err_message 全文,或 API 層級之回覆訊息(errmsg)、批次處理結果(batch_proc_result)等敘述文字
.... expression S 0..* string 指向出錯的服務紀錄識別碼(objid),即 err_record.objid、exception_records.objid 或 delete_exception_records.objid。表述時須將實際的 objid 值寫入條件,方能唯一指出是哪一筆服務紀錄,例:Claim.identifier.where(system='http://ltc-ig.fhir.tw/identifier/feeaudit/objid' and value='882601914');僅寫出路徑而未帶入 objid 值者無法定位錯誤來源

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
OperationOutcome.issue.​details.coding Base extensible 支付審查-錯誤代碼 📦1.0.0 This IG
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. OperationOutcome 0..* OperationOutcome 支付審核系統之申報檢核結果;API 交易層級之回覆結果代碼(rtncode)由 VS_TW_LTC_FeeAuditRtnCode(vs-tw-ltc-feeaudit-rtncode)表達,例:0 成功回傳、1 Request 輸入參數錯誤、40 查無資料、90 發生無法預期錯誤;本 Profile 之 issue 則表達個別服務紀錄之檢核錯誤(err_code/err_message)
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... text 0..1 Narrative Text summary of the resource, for human interpretation
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
... contained 0..* Resource Contained, inline Resources
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:caseNo S 0..1 string 核銷案號(case_no,最長 30 碼);OperationOutcome 無 identifier 元素,故沿用既有 Extension ExtTWLTCExportCaseNo(Ext-TW-LTC-Export-CaseNo)承載案件編號,該 Extension 之 ^context 已涵蓋 OperationOutcome,於本 Profile 中其語意為支付審核系統之核銷案號
URL: http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-Export-CaseNo
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... issue SΣ 1..* BackboneElement 檢核錯誤項目;每一筆錯誤訊息(err_info/exception_records/delete_exception_records)對應一個 issue,同一筆服務紀錄有多筆錯誤時以多個 issue 表達
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... severity SΣ 1..1 code 錯誤嚴重程度;因檢核未通過而導致該筆服務紀錄申報、分案或刪除失敗者,使用 error
Binding: IssueSeverity (required): How the issue affects the success of the action.
.... code SΣ 1..1 code FHIR 問題類型代碼;欄位必填或長度/格式檢核(E1xxx、E2xxx)建議使用 required 或 value,資料查詢與寫入異常(E4xxx)建議使用 not-found 或 processing,審核規則與支付碼專屬檢核(E5xxx、EBA/EBC/ECB/EGA/EOT/ESC 系列)建議使用 business-rule
Binding: IssueType (required): A code that describes the type of issue.
.... details SΣ 1..1 CodeableConcept 錯誤內容,承載回覆明細之錯誤碼(err_code,最長 5 碼)與錯誤原因(err_message,最長 200 字)
Binding: OperationOutcomeCodes (example): A code that provides details as the exact issue.
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... coding SΣ 1..1 Coding 錯誤碼(err_code),綁定支付審查錯誤代碼值集 VS_TW_LTC_FeeAuditErrorCode,例:E1001(服務紀錄識別碼不可空白)、E4015(單位已執行申報確認通知,不在受理新的服務紀錄申報)、E4032(此筆服務紀錄不存在)
Binding: 支付審查-錯誤代碼 (extensible)
..... text SΣ 0..1 string 錯誤原因(err_message)之顯示文字
.... diagnostics SΣ 0..1 string 錯誤原因原文或補充說明,可放回覆明細之 err_message 全文,或 API 層級之回覆訊息(errmsg)、批次處理結果(batch_proc_result)等敘述文字
.... location Σ 0..* string Deprecated: Path of element(s) related to issue
.... expression SΣ 0..* string 指向出錯的服務紀錄識別碼(objid),即 err_record.objid、exception_records.objid 或 delete_exception_records.objid。表述時須將實際的 objid 值寫入條件,方能唯一指出是哪一筆服務紀錄,例:Claim.identifier.where(system='http://ltc-ig.fhir.tw/identifier/feeaudit/objid' and value='882601914');僅寫出路徑而未帶入 objid 值者無法定位錯誤來源

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
OperationOutcome.language Base preferred Common Languages 📍4.0.1 FHIR Std.
OperationOutcome.issue.​severity Base required IssueSeverity 📍4.0.1 FHIR Std.
OperationOutcome.issue.​code Base required IssueType 📍4.0.1 FHIR Std.
OperationOutcome.issue.​details Base example Operation Outcome Codes 📍4.0.1 FHIR Std.
OperationOutcome.issue.​details.coding Base extensible 支付審查-錯誤代碼 📦1.0.0 This IG

Constraints

Id Grade Path(s) Description Expression
dom-2 error OperationOutcome If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error OperationOutcome If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error OperationOutcome If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error OperationOutcome If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice OperationOutcome A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

This structure is derived from OperationOutcome

Summary

Mandatory: 2 elements
Must-Support: 9 elements

Extensions

This structure refers to these extensions:

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. OperationOutcome 0..* OperationOutcome 支付審核系統之申報檢核結果;API 交易層級之回覆結果代碼(rtncode)由 VS_TW_LTC_FeeAuditRtnCode(vs-tw-ltc-feeaudit-rtncode)表達,例:0 成功回傳、1 Request 輸入參數錯誤、40 查無資料、90 發生無法預期錯誤;本 Profile 之 issue 則表達個別服務紀錄之檢核錯誤(err_code/err_message)
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:caseNo S 0..1 string 核銷案號(case_no,最長 30 碼);OperationOutcome 無 identifier 元素,故沿用既有 Extension ExtTWLTCExportCaseNo(Ext-TW-LTC-Export-CaseNo)承載案件編號,該 Extension 之 ^context 已涵蓋 OperationOutcome,於本 Profile 中其語意為支付審核系統之核銷案號
URL: http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-Export-CaseNo
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... severity SΣ 1..1 code 錯誤嚴重程度;因檢核未通過而導致該筆服務紀錄申報、分案或刪除失敗者,使用 error
Binding: IssueSeverity (required): How the issue affects the success of the action.
.... code SΣ 1..1 code FHIR 問題類型代碼;欄位必填或長度/格式檢核(E1xxx、E2xxx)建議使用 required 或 value,資料查詢與寫入異常(E4xxx)建議使用 not-found 或 processing,審核規則與支付碼專屬檢核(E5xxx、EBA/EBC/ECB/EGA/EOT/ESC 系列)建議使用 business-rule
Binding: IssueType (required): A code that describes the type of issue.
.... details SΣ 1..1 CodeableConcept 錯誤內容,承載回覆明細之錯誤碼(err_code,最長 5 碼)與錯誤原因(err_message,最長 200 字)
Binding: OperationOutcomeCodes (example): A code that provides details as the exact issue.
..... coding SΣ 1..1 Coding 錯誤碼(err_code),綁定支付審查錯誤代碼值集 VS_TW_LTC_FeeAuditErrorCode,例:E1001(服務紀錄識別碼不可空白)、E4015(單位已執行申報確認通知,不在受理新的服務紀錄申報)、E4032(此筆服務紀錄不存在)
Binding: 支付審查-錯誤代碼 (extensible)
..... text SΣ 0..1 string 錯誤原因(err_message)之顯示文字
.... diagnostics SΣ 0..1 string 錯誤原因原文或補充說明,可放回覆明細之 err_message 全文,或 API 層級之回覆訊息(errmsg)、批次處理結果(batch_proc_result)等敘述文字
.... expression SΣ 0..* string 指向出錯的服務紀錄識別碼(objid),即 err_record.objid、exception_records.objid 或 delete_exception_records.objid。表述時須將實際的 objid 值寫入條件,方能唯一指出是哪一筆服務紀錄,例:Claim.identifier.where(system='http://ltc-ig.fhir.tw/identifier/feeaudit/objid' and value='882601914');僅寫出路徑而未帶入 objid 值者無法定位錯誤來源

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
OperationOutcome.issue.​severity Base required IssueSeverity 📍4.0.1 FHIR Std.
OperationOutcome.issue.​code Base required IssueType 📍4.0.1 FHIR Std.
OperationOutcome.issue.​details Base example Operation Outcome Codes 📍4.0.1 FHIR Std.
OperationOutcome.issue.​details.coding Base extensible 支付審查-錯誤代碼 📦1.0.0 This IG

Constraints

Id Grade Path(s) Description Expression
dom-2 error OperationOutcome If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error OperationOutcome If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error OperationOutcome If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error OperationOutcome If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice OperationOutcome A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

Differential View

This structure is derived from OperationOutcome

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. OperationOutcome 0..* OperationOutcome 支付審核系統之申報檢核結果;API 交易層級之回覆結果代碼(rtncode)由 VS_TW_LTC_FeeAuditRtnCode(vs-tw-ltc-feeaudit-rtncode)表達,例:0 成功回傳、1 Request 輸入參數錯誤、40 查無資料、90 發生無法預期錯誤;本 Profile 之 issue 則表達個別服務紀錄之檢核錯誤(err_code/err_message)
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:caseNo S 0..1 string 核銷案號(case_no,最長 30 碼);OperationOutcome 無 identifier 元素,故沿用既有 Extension ExtTWLTCExportCaseNo(Ext-TW-LTC-Export-CaseNo)承載案件編號,該 Extension 之 ^context 已涵蓋 OperationOutcome,於本 Profile 中其語意為支付審核系統之核銷案號
URL: http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-Export-CaseNo
... issue S 1..* BackboneElement 檢核錯誤項目;每一筆錯誤訊息(err_info/exception_records/delete_exception_records)對應一個 issue,同一筆服務紀錄有多筆錯誤時以多個 issue 表達
.... severity S 1..1 code 錯誤嚴重程度;因檢核未通過而導致該筆服務紀錄申報、分案或刪除失敗者,使用 error
.... code S 1..1 code FHIR 問題類型代碼;欄位必填或長度/格式檢核(E1xxx、E2xxx)建議使用 required 或 value,資料查詢與寫入異常(E4xxx)建議使用 not-found 或 processing,審核規則與支付碼專屬檢核(E5xxx、EBA/EBC/ECB/EGA/EOT/ESC 系列)建議使用 business-rule
.... details S 1..1 CodeableConcept 錯誤內容,承載回覆明細之錯誤碼(err_code,最長 5 碼)與錯誤原因(err_message,最長 200 字)
..... coding S 1..1 Coding 錯誤碼(err_code),綁定支付審查錯誤代碼值集 VS_TW_LTC_FeeAuditErrorCode,例:E1001(服務紀錄識別碼不可空白)、E4015(單位已執行申報確認通知,不在受理新的服務紀錄申報)、E4032(此筆服務紀錄不存在)
Binding: 支付審查-錯誤代碼 (extensible)
..... text S 0..1 string 錯誤原因(err_message)之顯示文字
.... diagnostics S 0..1 string 錯誤原因原文或補充說明,可放回覆明細之 err_message 全文,或 API 層級之回覆訊息(errmsg)、批次處理結果(batch_proc_result)等敘述文字
.... expression S 0..* string 指向出錯的服務紀錄識別碼(objid),即 err_record.objid、exception_records.objid 或 delete_exception_records.objid。表述時須將實際的 objid 值寫入條件,方能唯一指出是哪一筆服務紀錄,例:Claim.identifier.where(system='http://ltc-ig.fhir.tw/identifier/feeaudit/objid' and value='882601914');僅寫出路徑而未帶入 objid 值者無法定位錯誤來源

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
OperationOutcome.issue.​details.coding Base extensible 支付審查-錯誤代碼 📦1.0.0 This IG

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. OperationOutcome 0..* OperationOutcome 支付審核系統之申報檢核結果;API 交易層級之回覆結果代碼(rtncode)由 VS_TW_LTC_FeeAuditRtnCode(vs-tw-ltc-feeaudit-rtncode)表達,例:0 成功回傳、1 Request 輸入參數錯誤、40 查無資料、90 發生無法預期錯誤;本 Profile 之 issue 則表達個別服務紀錄之檢核錯誤(err_code/err_message)
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... text 0..1 Narrative Text summary of the resource, for human interpretation
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
... contained 0..* Resource Contained, inline Resources
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:caseNo S 0..1 string 核銷案號(case_no,最長 30 碼);OperationOutcome 無 identifier 元素,故沿用既有 Extension ExtTWLTCExportCaseNo(Ext-TW-LTC-Export-CaseNo)承載案件編號,該 Extension 之 ^context 已涵蓋 OperationOutcome,於本 Profile 中其語意為支付審核系統之核銷案號
URL: http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-Export-CaseNo
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... issue SΣ 1..* BackboneElement 檢核錯誤項目;每一筆錯誤訊息(err_info/exception_records/delete_exception_records)對應一個 issue,同一筆服務紀錄有多筆錯誤時以多個 issue 表達
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... severity SΣ 1..1 code 錯誤嚴重程度;因檢核未通過而導致該筆服務紀錄申報、分案或刪除失敗者,使用 error
Binding: IssueSeverity (required): How the issue affects the success of the action.
.... code SΣ 1..1 code FHIR 問題類型代碼;欄位必填或長度/格式檢核(E1xxx、E2xxx)建議使用 required 或 value,資料查詢與寫入異常(E4xxx)建議使用 not-found 或 processing,審核規則與支付碼專屬檢核(E5xxx、EBA/EBC/ECB/EGA/EOT/ESC 系列)建議使用 business-rule
Binding: IssueType (required): A code that describes the type of issue.
.... details SΣ 1..1 CodeableConcept 錯誤內容,承載回覆明細之錯誤碼(err_code,最長 5 碼)與錯誤原因(err_message,最長 200 字)
Binding: OperationOutcomeCodes (example): A code that provides details as the exact issue.
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... coding SΣ 1..1 Coding 錯誤碼(err_code),綁定支付審查錯誤代碼值集 VS_TW_LTC_FeeAuditErrorCode,例:E1001(服務紀錄識別碼不可空白)、E4015(單位已執行申報確認通知,不在受理新的服務紀錄申報)、E4032(此筆服務紀錄不存在)
Binding: 支付審查-錯誤代碼 (extensible)
..... text SΣ 0..1 string 錯誤原因(err_message)之顯示文字
.... diagnostics SΣ 0..1 string 錯誤原因原文或補充說明,可放回覆明細之 err_message 全文,或 API 層級之回覆訊息(errmsg)、批次處理結果(batch_proc_result)等敘述文字
.... location Σ 0..* string Deprecated: Path of element(s) related to issue
.... expression SΣ 0..* string 指向出錯的服務紀錄識別碼(objid),即 err_record.objid、exception_records.objid 或 delete_exception_records.objid。表述時須將實際的 objid 值寫入條件,方能唯一指出是哪一筆服務紀錄,例:Claim.identifier.where(system='http://ltc-ig.fhir.tw/identifier/feeaudit/objid' and value='882601914');僅寫出路徑而未帶入 objid 值者無法定位錯誤來源

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
OperationOutcome.language Base preferred Common Languages 📍4.0.1 FHIR Std.
OperationOutcome.issue.​severity Base required IssueSeverity 📍4.0.1 FHIR Std.
OperationOutcome.issue.​code Base required IssueType 📍4.0.1 FHIR Std.
OperationOutcome.issue.​details Base example Operation Outcome Codes 📍4.0.1 FHIR Std.
OperationOutcome.issue.​details.coding Base extensible 支付審查-錯誤代碼 📦1.0.0 This IG

Constraints

Id Grade Path(s) Description Expression
dom-2 error OperationOutcome If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error OperationOutcome If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error OperationOutcome If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error OperationOutcome If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice OperationOutcome A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

This structure is derived from OperationOutcome

Summary

Mandatory: 2 elements
Must-Support: 9 elements

Extensions

This structure refers to these extensions:

 

Other representations of profile: CSV, Excel, Schematron