@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://twniis.cdc.gov.tw/twniis/CodeSystem/twniis-operationoutcome-values> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "twniis-operationoutcome-values"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: 代码系统 twniis-operationoutcome-values</b></p><a name=\"twniis-operationoutcome-values\"> </a><a name=\"hctwniis-operationoutcome-values\"> </a><p>This case-sensitive code system <code>https://twniis.cdc.gov.tw/twniis/CodeSystem/twniis-operationoutcome-values</code> defines the following codes:</p><table class=\"codes\"><tr><td style=\"white-space:nowrap\"><b>Code</b></td><td><b>Display</b></td></tr><tr><td style=\"white-space:nowrap\">I00000<a name=\"twniis-operationoutcome-values-I00000\"> </a></td><td>作業完成</td></tr><tr><td style=\"white-space:nowrap\">I00001<a name=\"twniis-operationoutcome-values-I00001\"> </a></td><td>新增成功</td></tr><tr><td style=\"white-space:nowrap\">I00002<a name=\"twniis-operationoutcome-values-I00002\"> </a></td><td>修改成功</td></tr><tr><td style=\"white-space:nowrap\">I00003<a name=\"twniis-operationoutcome-values-I00003\"> </a></td><td>刪除成功</td></tr><tr><td style=\"white-space:nowrap\">E00001<a name=\"twniis-operationoutcome-values-E00001\"> </a></td><td>非正確之JSON格式</td></tr><tr><td style=\"white-space:nowrap\">E00002<a name=\"twniis-operationoutcome-values-E00002\"> </a></td><td>非正確之交易檢查碼</td></tr><tr><td style=\"white-space:nowrap\">E00003<a name=\"twniis-operationoutcome-values-E00003\"> </a></td><td>缺少交易參數(必填欄位不足)</td></tr><tr><td style=\"white-space:nowrap\">E00004<a name=\"twniis-operationoutcome-values-E00004\"> </a></td><td>輸入之交易參數異常</td></tr><tr><td style=\"white-space:nowrap\">E00005<a name=\"twniis-operationoutcome-values-E00005\"> </a></td><td>查無此證號(指身分證號、居留證號及護照號碼)</td></tr><tr><td style=\"white-space:nowrap\">E00006<a name=\"twniis-operationoutcome-values-E00006\"> </a></td><td>資料型別錯誤(欄位1|欄位2|欄位3)</td></tr><tr><td style=\"white-space:nowrap\">E00018<a name=\"twniis-operationoutcome-values-E00018\"> </a></td><td>身分證號錯誤(未轉入NIIS系統)</td></tr><tr><td style=\"white-space:nowrap\">E00019<a name=\"twniis-operationoutcome-values-E00019\"> </a></td><td>出生日期異常(未轉入NIIS系統)</td></tr><tr><td style=\"white-space:nowrap\">E00022<a name=\"twniis-operationoutcome-values-E00022\"> </a></td><td>接種機構格式錯誤(未轉入NIIS系統)</td></tr><tr><td style=\"white-space:nowrap\">E00023<a name=\"twniis-operationoutcome-values-E00023\"> </a></td><td>身分證號未填寫(未轉入NIIS系統)</td></tr><tr><td style=\"white-space:nowrap\">E00024<a name=\"twniis-operationoutcome-values-E00024\"> </a></td><td>出生日期未填寫(未轉入NIIS系統)</td></tr><tr><td style=\"white-space:nowrap\">E00025<a name=\"twniis-operationoutcome-values-E00025\"> </a></td><td>醫事機構代碼未填寫(未轉入NIIS系統)</td></tr><tr><td style=\"white-space:nowrap\">E00032<a name=\"twniis-operationoutcome-values-E00032\"> </a></td><td>DataKey不存在系統中</td></tr><tr><td style=\"white-space:nowrap\">E00033<a name=\"twniis-operationoutcome-values-E00033\"> </a></td><td>對應不到該筆資料</td></tr><tr><td style=\"white-space:nowrap\">E00041<a name=\"twniis-operationoutcome-values-E00041\"> </a></td><td>身分證號格式錯誤</td></tr><tr><td style=\"white-space:nowrap\">E00042<a name=\"twniis-operationoutcome-values-E00042\"> </a></td><td>居留證號格式錯誤</td></tr><tr><td style=\"white-space:nowrap\">E00043<a name=\"twniis-operationoutcome-values-E00043\"> </a></td><td>院所不存在</td></tr><tr><td style=\"white-space:nowrap\">E00046<a name=\"twniis-operationoutcome-values-E00046\"> </a></td><td>抽血日不得為未來日期</td></tr><tr><td style=\"white-space:nowrap\">E00047<a name=\"twniis-operationoutcome-values-E00047\"> </a></td><td>抽血日期異常</td></tr><tr><td style=\"white-space:nowrap\">E00048<a name=\"twniis-operationoutcome-values-E00048\"> </a></td><td>無RIA及EIA檢驗結果</td></tr><tr><td style=\"white-space:nowrap\">E00049<a name=\"twniis-operationoutcome-values-E00049\"> </a></td><td>s(-)e(+)</td></tr><tr><td style=\"white-space:nowrap\">E00050<a name=\"twniis-operationoutcome-values-E00050\"> </a></td><td>s(+/-)</td></tr><tr><td style=\"white-space:nowrap\">E00051<a name=\"twniis-operationoutcome-values-E00051\"> </a></td><td>e(+/-)</td></tr><tr><td style=\"white-space:nowrap\">E00052<a name=\"twniis-operationoutcome-values-E00052\"> </a></td><td>檢驗結果異常</td></tr><tr><td style=\"white-space:nowrap\">E00053<a name=\"twniis-operationoutcome-values-E00053\"> </a></td><td>個案筆數與總筆數不符</td></tr><tr><td style=\"white-space:nowrap\">E00054<a name=\"twniis-operationoutcome-values-E00054\"> </a></td><td>抽血日大於預產日</td></tr><tr><td style=\"white-space:nowrap\">E00055<a name=\"twniis-operationoutcome-values-E00055\"> </a></td><td>(抽血日-預產日)小於等於270天</td></tr><tr><td style=\"white-space:nowrap\">E00056<a name=\"twniis-operationoutcome-values-E00056\"> </a></td><td>重複資料</td></tr><tr><td style=\"white-space:nowrap\">E00057<a name=\"twniis-operationoutcome-values-E00057\"> </a></td><td>預產期不得小於出生日</td></tr><tr><td style=\"white-space:nowrap\">E00058<a name=\"twniis-operationoutcome-values-E00058\"> </a></td><td>抽血日不得小於出生日</td></tr><tr><td style=\"white-space:nowrap\">E00059<a name=\"twniis-operationoutcome-values-E00059\"> </a></td><td>HBsAg其他檢驗方法結果有值，則其他檢驗方法名稱必填</td></tr><tr><td style=\"white-space:nowrap\">E00060<a name=\"twniis-operationoutcome-values-E00060\"> </a></td><td>HBeAg其他檢驗方法結果有值，則其他檢驗方法名稱必填</td></tr><tr><td style=\"white-space:nowrap\">E00069<a name=\"twniis-operationoutcome-values-E00069\"> </a></td><td>B肝病毒量採檢單位不存在</td></tr><tr><td style=\"white-space:nowrap\">E00070<a name=\"twniis-operationoutcome-values-E00070\"> </a></td><td>B肝病毒量採檢日期不得為未來日期</td></tr><tr><td style=\"white-space:nowrap\">E00071<a name=\"twniis-operationoutcome-values-E00071\"> </a></td><td>B肝病毒量採檢日期異常</td></tr><tr><td style=\"white-space:nowrap\">E00072<a name=\"twniis-operationoutcome-values-E00072\"> </a></td><td>B肝病毒量採檢日期大於抽血日</td></tr><tr><td style=\"white-space:nowrap\">E00073<a name=\"twniis-operationoutcome-values-E00073\"> </a></td><td>抗病毒藥物治療起日不得為未來日期</td></tr><tr><td style=\"white-space:nowrap\">E00074<a name=\"twniis-operationoutcome-values-E00074\"> </a></td><td>抗病毒藥物治療起日異常</td></tr><tr><td style=\"white-space:nowrap\">E00075<a name=\"twniis-operationoutcome-values-E00075\"> </a></td><td>抗病毒藥物治療起日不得小於出生日</td></tr><tr><td style=\"white-space:nowrap\">E99999<a name=\"twniis-operationoutcome-values-E99999\"> </a></td><td>非預期錯誤，請洽詢服務廠商協助</td></tr><tr><td style=\"white-space:nowrap\">W00000<a name=\"twniis-operationoutcome-values-W00000\"> </a></td><td>此API版本不再支援</td></tr><tr><td style=\"white-space:nowrap\">W00004<a name=\"twniis-operationoutcome-values-W00004\"> </a></td><td>資料庫伺服器沒有回應</td></tr><tr><td style=\"white-space:nowrap\">W00005<a name=\"twniis-operationoutcome-values-W00005\"> </a></td><td>(預產日-出生日)小於13歲</td></tr><tr><td style=\"white-space:nowrap\">W00006<a name=\"twniis-operationoutcome-values-W00006\"> </a></td><td>該個案大於49歲</td></tr><tr><td style=\"white-space:nowrap\">W00007<a name=\"twniis-operationoutcome-values-W00007\"> </a></td><td>單位未具此API使用權限</td></tr><tr><td style=\"white-space:nowrap\">W00009<a name=\"twniis-operationoutcome-values-W00009\"> </a></td><td>系統維護期間API服務暫停</td></tr><tr><td style=\"white-space:nowrap\">D00001<a name=\"twniis-operationoutcome-values-D00001\"> </a></td><td>HISKEY錯誤(僅測試機回應此代碼，正式機回應代碼E00004)</td></tr></table></div>"
  ] ;
  fhir:CodeSystem.url [ fhir:value "https://twniis.cdc.gov.tw/twniis/CodeSystem/twniis-operationoutcome-values"] ;
  fhir:CodeSystem.version [ fhir:value "0.0.1"] ;
  fhir:CodeSystem.name [ fhir:value "TWNIISOperationOutcome"] ;
  fhir:CodeSystem.title [ fhir:value "CDC-NIIS系統-系統回應訊息"] ;
  fhir:CodeSystem.status [ fhir:value "active"] ;
  fhir:CodeSystem.experimental [ fhir:value "false"^^xsd:boolean] ;
  fhir:CodeSystem.date [ fhir:value "2026-08-15"^^xsd:date] ;
  fhir:CodeSystem.publisher [ fhir:value "衛福部疾病管制署"] ;
  fhir:CodeSystem.contact [
     fhir:index 0 ;
     fhir:ContactDetail.name [ fhir:value "衛福部疾病管制署" ] ;
     fhir:ContactDetail.telecom [
       fhir:index 0 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://www.cdc.gov.tw" ]
     ]
  ] ;
  fhir:CodeSystem.description [ fhir:value "臺灣衛生福利部疾管署NIIS系統「系統回應訊息」代碼，代碼出版日期：2026-08-15；資料所屬單位：臺灣衛生福利部疾管署。\n\n*因原始資料無代碼版本資訊，故使用其「生效日期」作為版本資訊。*"] ;
  fhir:CodeSystem.jurisdiction [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ] ;
       fhir:Coding.code [ fhir:value "TW" ]
     ]
  ] ;
  fhir:CodeSystem.caseSensitive [ fhir:value "true"^^xsd:boolean] ;
  fhir:CodeSystem.content [ fhir:value "complete"] ;
  fhir:CodeSystem.count [ fhir:value "51"^^xsd:nonNegativeInteger] ;
  fhir:CodeSystem.concept [
     fhir:index 0 ;
     fhir:CodeSystem.concept.code [ fhir:value "I00000" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "作業完成" ]
  ], [
     fhir:index 1 ;
     fhir:CodeSystem.concept.code [ fhir:value "I00001" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "新增成功" ]
  ], [
     fhir:index 2 ;
     fhir:CodeSystem.concept.code [ fhir:value "I00002" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "修改成功" ]
  ], [
     fhir:index 3 ;
     fhir:CodeSystem.concept.code [ fhir:value "I00003" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "刪除成功" ]
  ], [
     fhir:index 4 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00001" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "非正確之JSON格式" ]
  ], [
     fhir:index 5 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00002" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "非正確之交易檢查碼" ]
  ], [
     fhir:index 6 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00003" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "缺少交易參數(必填欄位不足)" ]
  ], [
     fhir:index 7 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00004" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "輸入之交易參數異常" ]
  ], [
     fhir:index 8 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00005" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "查無此證號(指身分證號、居留證號及護照號碼)" ]
  ], [
     fhir:index 9 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00006" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "資料型別錯誤(欄位1|欄位2|欄位3)" ]
  ], [
     fhir:index 10 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00018" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "身分證號錯誤(未轉入NIIS系統)" ]
  ], [
     fhir:index 11 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00019" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "出生日期異常(未轉入NIIS系統)" ]
  ], [
     fhir:index 12 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00022" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "接種機構格式錯誤(未轉入NIIS系統)" ]
  ], [
     fhir:index 13 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00023" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "身分證號未填寫(未轉入NIIS系統)" ]
  ], [
     fhir:index 14 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00024" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "出生日期未填寫(未轉入NIIS系統)" ]
  ], [
     fhir:index 15 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00025" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "醫事機構代碼未填寫(未轉入NIIS系統)" ]
  ], [
     fhir:index 16 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00032" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "DataKey不存在系統中" ]
  ], [
     fhir:index 17 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00033" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "對應不到該筆資料" ]
  ], [
     fhir:index 18 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00041" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "身分證號格式錯誤" ]
  ], [
     fhir:index 19 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00042" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "居留證號格式錯誤" ]
  ], [
     fhir:index 20 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00043" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "院所不存在" ]
  ], [
     fhir:index 21 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00046" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "抽血日不得為未來日期" ]
  ], [
     fhir:index 22 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00047" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "抽血日期異常" ]
  ], [
     fhir:index 23 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00048" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "無RIA及EIA檢驗結果" ]
  ], [
     fhir:index 24 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00049" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "s(-)e(+)" ]
  ], [
     fhir:index 25 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00050" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "s(+/-)" ]
  ], [
     fhir:index 26 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00051" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "e(+/-)" ]
  ], [
     fhir:index 27 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00052" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "檢驗結果異常" ]
  ], [
     fhir:index 28 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00053" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "個案筆數與總筆數不符" ]
  ], [
     fhir:index 29 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00054" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "抽血日大於預產日" ]
  ], [
     fhir:index 30 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00055" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "(抽血日-預產日)小於等於270天" ]
  ], [
     fhir:index 31 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00056" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "重複資料" ]
  ], [
     fhir:index 32 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00057" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "預產期不得小於出生日" ]
  ], [
     fhir:index 33 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00058" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "抽血日不得小於出生日" ]
  ], [
     fhir:index 34 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00059" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "HBsAg其他檢驗方法結果有值，則其他檢驗方法名稱必填" ]
  ], [
     fhir:index 35 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00060" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "HBeAg其他檢驗方法結果有值，則其他檢驗方法名稱必填" ]
  ], [
     fhir:index 36 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00069" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "B肝病毒量採檢單位不存在" ]
  ], [
     fhir:index 37 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00070" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "B肝病毒量採檢日期不得為未來日期" ]
  ], [
     fhir:index 38 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00071" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "B肝病毒量採檢日期異常" ]
  ], [
     fhir:index 39 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00072" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "B肝病毒量採檢日期大於抽血日" ]
  ], [
     fhir:index 40 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00073" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "抗病毒藥物治療起日不得為未來日期" ]
  ], [
     fhir:index 41 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00074" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "抗病毒藥物治療起日異常" ]
  ], [
     fhir:index 42 ;
     fhir:CodeSystem.concept.code [ fhir:value "E00075" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "抗病毒藥物治療起日不得小於出生日" ]
  ], [
     fhir:index 43 ;
     fhir:CodeSystem.concept.code [ fhir:value "E99999" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "非預期錯誤，請洽詢服務廠商協助" ]
  ], [
     fhir:index 44 ;
     fhir:CodeSystem.concept.code [ fhir:value "W00000" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "此API版本不再支援" ]
  ], [
     fhir:index 45 ;
     fhir:CodeSystem.concept.code [ fhir:value "W00004" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "資料庫伺服器沒有回應" ]
  ], [
     fhir:index 46 ;
     fhir:CodeSystem.concept.code [ fhir:value "W00005" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "(預產日-出生日)小於13歲" ]
  ], [
     fhir:index 47 ;
     fhir:CodeSystem.concept.code [ fhir:value "W00006" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "該個案大於49歲" ]
  ], [
     fhir:index 48 ;
     fhir:CodeSystem.concept.code [ fhir:value "W00007" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "單位未具此API使用權限" ]
  ], [
     fhir:index 49 ;
     fhir:CodeSystem.concept.code [ fhir:value "W00009" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "系統維護期間API服務暫停" ]
  ], [
     fhir:index 50 ;
     fhir:CodeSystem.concept.code [ fhir:value "D00001" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "HISKEY錯誤(僅測試機回應此代碼，正式機回應代碼E00004)" ]
  ] .

# - ontology header ------------------------------------------------------------

<https://twniis.cdc.gov.tw/twniis/CodeSystem/twniis-operationoutcome-values.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

