臺灣核心實作指引(TW Core IG)
0.1.1 - Trial Use

This page is part of the 臺灣核心實作指引(TW Core IG) (v0.1.1: Releases) based on FHIR R4. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions

Resource Profile: TWCoreEncounter - TTL Profile

Active as of 2023-08-30

TTL representation of the Encounter-twcore resource profile.

Raw ttl | Download

@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 -------------------------------------------------------------------

 a fhir:StructureDefinition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "Encounter-twcore"] ; # 
  fhir:text [
fhir:status [ fhir:v "extensions" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">Placeholder</div>"
  ] ; # 
  fhir:url [ fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Encounter-twcore"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "0.1.1"] ; # 
  fhir:name [ fhir:v "TWCoreEncounter"] ; # 
  fhir:title [ fhir:v "TW Core Encounter"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:date [ fhir:v "2023-08-30T12:27:08+08:00"^^xsd:dateTime] ; # 
  fhir:contact ( [
fhir:name [ fhir:v "衛生福利部" ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "https://www.mohw.gov.tw/" ]     ] [
fhir:system [ fhir:v "email" ] ;
fhir:value [ fhir:v "CCYU@mohw.gov.tw" ]     ] )
  ] ) ; # 
  fhir:description [ fhir:v "此臺灣核心-就醫事件(TW Core Encounter) Profile說明本IG如何進一步定義FHIR的Encounter Resource以呈現就醫事件  [[*FMM1*](http://build.fhir.org/versions.html#maturity)]"] ; # 
  fhir:fhirVersion [ fhir:v "4.0.1"] ; # 
  fhir:mapping ( [
fhir:identity [ fhir:v "workflow" ] ;
fhir:uri [ fhir:v "http://hl7.org/fhir/workflow"^^xsd:anyURI ] ;
fhir:name [ fhir:v "Workflow Pattern" ]
  ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:uri [ fhir:v "http://hl7.org/v3"^^xsd:anyURI ] ;
fhir:name [ fhir:v "RIM Mapping" ]
  ] [
fhir:identity [ fhir:v "w5" ] ;
fhir:uri [ fhir:v "http://hl7.org/fhir/fivews"^^xsd:anyURI ] ;
fhir:name [ fhir:v "FiveWs Pattern Mapping" ]
  ] [
fhir:identity [ fhir:v "v2" ] ;
fhir:uri [ fhir:v "http://hl7.org/v2"^^xsd:anyURI ] ;
fhir:name [ fhir:v "HL7 v2 Mapping" ]
  ] ) ; # 
  fhir:kind [ fhir:v "resource"] ; # 
  fhir:abstract [ fhir:v "false"^^xsd:boolean] ; # 
  fhir:type [ fhir:v "Encounter"^^xsd:anyURI] ; # 
  fhir:baseDefinition [
fhir:v "http://hl7.org/fhir/StructureDefinition/Encounter"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter>
  ] ; # 
  fhir:derivation [ fhir:v "constraint"] ; # 
  fhir:snapshot [
    ( fhir:element [
fhir:id [ fhir:v "Encounter" ] ;
fhir:path [ fhir:v "Encounter" ] ;
fhir:short [ fhir:v "提供病人服務的一種互動" ] ;
fhir:definition [ fhir:v "病人和健康照護服務提供人員之間的互動,目的是提供健康照護服務或評估病人的健康狀況。" ] ;
      ( fhir:alias [ fhir:v "Visit" ] ) ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:constraint [
fhir:key [ fhir:v "dom-2" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "If the resource is contained in another resource, it SHALL NOT contain nested Resources" ] ;
fhir:expression [ fhir:v "contained.contained.empty()" ] ;
fhir:xpath [ fhir:v "not(parent::f:contained and f:contained)" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/DomainResource>         ]       ] [
fhir:key [ fhir:v "dom-3" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "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" ] ;
fhir:expression [ fhir:v "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()" ] ;
fhir:xpath [ fhir:v "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/DomainResource>         ]       ] [
fhir:key [ fhir:v "dom-4" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated" ] ;
fhir:expression [ fhir:v "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" ] ;
fhir:xpath [ fhir:v "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/DomainResource>         ]       ] [
fhir:key [ fhir:v "dom-5" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "If a resource is contained in another resource, it SHALL NOT have a security label" ] ;
fhir:expression [ fhir:v "contained.meta.security.empty()" ] ;
fhir:xpath [ fhir:v "not(exists(f:contained/*/f:meta/f:security))" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/DomainResource>         ]       ] [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"^^xsd:anyURI ] ;
fhir:value [ fhir:v "true"^^xsd:boolean ]         ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"^^xsd:anyURI ] ;
fhir:value [ fhir:v "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." ]         ] ) ;
fhir:key [ fhir:v "dom-6" ] ;
fhir:severity [ fhir:v "warning" ] ;
fhir:human [ fhir:v "A resource should have narrative for robust management" ] ;
fhir:expression [ fhir:v "text.`div`.exists()" ] ;
fhir:xpath [ fhir:v "exists(f:text/h:div)" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/DomainResource>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "Entity. Role, or Act" ]       ] [
fhir:identity [ fhir:v "workflow" ] ;
fhir:map [ fhir:v "Event" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "Encounter[@moodCode='EVN']" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.id" ] ;
fhir:path [ fhir:v "Encounter.id" ] ;
fhir:short [ fhir:v "不重複的ID用以識別儲存在特定FHIR Server中的Encounter紀錄,通常又稱為邏輯性ID。" ] ;
fhir:definition [ fhir:v "resource的邏輯ID,在resource的URL中使用。一旦指定,這個值永遠不會改變。" ] ;
fhir:comment [ fhir:v "一個resource使用新增操作(create operation)提交給伺服器時是此resource唯一沒有id的時刻" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Resource.id" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "id"^^xsd:anyURI ]         ] ) ;
fhir:code [ fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "true"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.meta" ] ;
fhir:path [ fhir:v "Encounter.meta" ] ;
fhir:short [ fhir:v "此Encounter Resource的metadata" ] ;
fhir:definition [ fhir:v "關於resource的metadata。這是由基礎建設維護的內容。對內容的改變可能並不總是與resource的版本改變相關。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Resource.meta" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Meta"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "true"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.implicitRules" ] ;
fhir:path [ fhir:v "Encounter.implicitRules" ] ;
fhir:short [ fhir:v "創建此內容所依據的一組規則" ] ;
fhir:definition [ fhir:v "構建resource時遵循的一系列規則的參照,在處理內容時必須理解這些規則。通常這是IG定義特殊規則及其他profiles的參照。" ] ;
fhir:comment [ fhir:v "宣告這套規則限制了內容只能被有限的貿易夥伴所理解。這從本質上限制了資料的長期有用性。然而,現有的健康生態體系高度分裂,還沒有準備好以普遍可計算的方式定義、收集和交換資料。只要有可能,實作者和(或)規範編寫者應該避免使用這個資料項目。通常,在使用時,此URL是對實作指引的參照,此指引將這些特殊規則與其他profiles、value sets等一起定義為其敘述的一部分。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Resource.implicitRules" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "uri"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "true"^^xsd:boolean ] ;
fhir:isModifierReason [ fhir:v "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation" ] ;
fhir:isSummary [ fhir:v "true"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.language" ] ;
fhir:path [ fhir:v "Encounter.language" ] ;
fhir:short [ fhir:v "用以表述Encounter Resource內容的語言" ] ;
fhir:definition [ fhir:v "編寫此resource的基礎語言" ] ;
fhir:comment [ fhir:v "提供語言是為了支援索引和可存取性(通常,文字表述轉語音等服務使用此語言標籤)。html lanuage tag適用於此敘述。resource上的語言標籤可用於指定從resource中的資料所產成的其他表述之語言。不是所有的內容都必須使用此基礎語言。不應該假定Resource.language自動適用於敘述。如果指定語言,它也應該被指定在html中的div元素(關於xml:lang和html lang屬性之間的關係,見HTML5中的規則)。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Resource.language" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "code"^^xsd:anyURI ]       ] ) ;
      ( fhir:example [
fhir:label [ fhir:v "Value" ] ;
fhir:value [ fhir:v "zh-TW" ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"^^xsd:anyURI ] ;
fhir:value [
fhir:v "http://hl7.org/fhir/ValueSet/all-languages"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/all-languages>           ]         ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Language" ]         ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"^^xsd:anyURI ] ;
fhir:value [ fhir:v "true"^^xsd:boolean ]         ] ) ;
fhir:strength [ fhir:v "preferred" ] ;
fhir:description [ fhir:v "人類語言;鼓勵使用[CommonLanguages](http://hl7.org/fhir/R4/valueset-languages.html)值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/languages"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/languages>         ]       ]     ] [
fhir:id [ fhir:v "Encounter.text" ] ;
fhir:path [ fhir:v "Encounter.text" ] ;
fhir:short [ fhir:v "Encounter Resource之內容摘要以供人閱讀" ] ;
fhir:definition [ fhir:v "人可讀的敘述,包含resource的摘要,可用於向人表述resource的內容。敘述不需要對所有的結構化資料進行編碼,但需要包含足夠的細節使人在閱讀敘述時理解「臨床安全性」。resource定義可定義哪些內容應該在敘述中表示,以確保臨床安全。" ] ;
fhir:comment [ fhir:v "內嵌(contained)的resource沒有敘述,非內嵌(contained)的resource則 **建議應該(SHOULD)** 有敘述。在某些情況下,resource可能只有文字表述,很少或沒有額外的離散資料(只要滿足所有minOccurs=1的資料項目)。這對於來自舊有系統的資料可能是必要的,在這些系統中,從 「文字表述區塊(text blob) 」獲取訊息,或者文字表述是額外的原始輸入或敘述,而編碼訊息是後來添加的。" ] ;
      ( fhir:alias [ fhir:v "narrative" ] [ fhir:v "html" ] [ fhir:v "xhtml" ] [ fhir:v "display" ] ) ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "DomainResource.text" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Narrative"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ] ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "Act.text?" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.contained" ] ;
fhir:path [ fhir:v "Encounter.contained" ] ;
fhir:short [ fhir:v "內嵌的(contained)、行內的Resources" ] ;
fhir:definition [ fhir:v "這些resource內嵌(contains)的resource不會另外存於任何FHIR伺服器,意即它們無法在任何FHIR伺服器中被找到,也無法有自己獨立的資料異動/交易(transaction)範圍。" ] ;
fhir:comment [ fhir:v "內嵌(contained)的resource沒有敘述,非內嵌(contained)的resource則 **建議應該(SHOULD)** 有敘述。在某些情況下,resource可能只有文字表述,很少或沒有額外的離散資料(只要滿足所有minOccurs=1的資料項目)。這對於來自舊有系統的資料可能是必要的,在這些系統中,從 「文字表述區塊(text blob) 」獲取訊息,或者文字表述是額外的原始輸入或敘述,而編碼訊息是後來添加的。" ] ;
      ( fhir:alias [ fhir:v "inline resources" ] [ fhir:v "anonymous resources" ] [ fhir:v "contained resources" ] ) ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "DomainResource.contained" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Resource"^^xsd:anyURI ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "N/A" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.extension" ] ;
fhir:path [ fhir:v "Encounter.extension" ] ;
fhir:short [ fhir:v "擴充的資料項目" ] ;
fhir:definition [ fhir:v "可用於表示不屬於此資料項目基本定義的附加資訊。為了擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。" ] ;
fhir:comment [ fhir:v "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何污名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "DomainResource.extension" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
fhir:key [ fhir:v "ext-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.modifierExtension" ] ;
fhir:path [ fhir:v "Encounter.modifierExtension" ] ;
fhir:short [ fhir:v "此擴充的資料項目可能會完全修正或改變其他資料項目的意涵,需特別留意。" ] ;
fhir:definition [ fhir:v "可以用來表示不屬於資料項目的基本定義的附加資訊,並且修改對它所內嵌(contained)的資料項目的理解和(或)對包含資料項目之後續使用的理解。通常,修飾用的資料項目提供否定或限定。為了使擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。處理resource的應用程式被要求檢查修飾用的擴充資料項目。  \r\n修飾用的擴充資料項目 **必須沒有(SHALL NOT)** 改變resource或DomainResource上任何資料項目的含義(包括不能改變modifierExtension本身的含義)。" ] ;
fhir:comment [ fhir:v "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何污名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。" ] ;
fhir:requirements [ fhir:v "修飾用的資料項目擴充將不能安全地忽略的擴充與絕大多數可以安全地忽略的擴充明確區分開來。透過消除禁止實作者擴充存在的需求來促進可互操作性。更多訊息,請參見[修飾用的資料項目擴充之定義](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "DomainResource.modifierExtension" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
fhir:key [ fhir:v "ext-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
fhir:isModifier [ fhir:v "true"^^xsd:boolean ] ;
fhir:isModifierReason [ fhir:v "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them" ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.identifier" ] ;
fhir:path [ fhir:v "Encounter.identifier" ] ;
fhir:short [ fhir:v "此就醫事件的識別碼" ] ;
fhir:definition [ fhir:v "此就醫事件的識別碼" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.identifier" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Identifier"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ] ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "true"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "workflow" ] ;
fhir:map [ fhir:v "Event.identifier" ]       ] [
fhir:identity [ fhir:v "w5" ] ;
fhir:map [ fhir:v "FiveWs.identifier" ]       ] [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "PV1-19" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v ".id" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.identifier.id" ] ;
fhir:path [ fhir:v "Encounter.identifier.id" ] ;
      ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
fhir:short [ fhir:v "唯一可識別ID,以供資料項目間相互參照。" ] ;
fhir:definition [ fhir:v "resource中資料項目的唯一ID(用於內部參照)。這可以是任何不含空格的字串。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Element.id" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "string"^^xsd:anyURI ]         ] ) ;
fhir:code [ fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "n/a" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.identifier.extension" ] ;
fhir:path [ fhir:v "Encounter.identifier.extension" ] ;
fhir:slicing [
        ( fhir:discriminator [
fhir:type [ fhir:v "value" ] ;
fhir:path [ fhir:v "url" ]         ] ) ;
fhir:description [ fhir:v "Extensions are always sliced by (at least) url" ] ;
fhir:rules [ fhir:v "open" ]       ] ;
fhir:short [ fhir:v "擴充的資料項目" ] ;
fhir:definition [ fhir:v "擴充的資料項目" ] ;
fhir:comment [ fhir:v "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "Element.extension" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
fhir:key [ fhir:v "ext-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.identifier.use" ] ;
fhir:path [ fhir:v "Encounter.identifier.use" ] ;
fhir:short [ fhir:v "usual | official | temp | secondary | old (如果知道)" ] ;
fhir:definition [ fhir:v "這個唯一識別碼(identifier)的用途" ] ;
fhir:comment [ fhir:v "應用程式可以假定一個識別碼是永久的,除非它明確說它是暫時的。" ] ;
fhir:requirements [ fhir:v "允許從一組識別碼中為特定的使用情境選擇適當的識別碼" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Identifier.use" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "code"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "true"^^xsd:boolean ] ;
fhir:isModifierReason [ fhir:v "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one." ] ;
fhir:isSummary [ fhir:v "true"^^xsd:boolean ] ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "IdentifierUse" ]         ] ) ;
fhir:strength [ fhir:v "required" ] ;
fhir:description [ fhir:v "如果知道,請說明此識別碼的用途;應填入[IdentifierUse](http://hl7.org/fhir/R4/valueset-identifier-use.html)值集中的其中一個代碼。" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/identifier-use|4.0.1>         ]       ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "N/A" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "Role.code or implied by context" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.identifier.type" ] ;
fhir:path [ fhir:v "Encounter.identifier.type" ] ;
fhir:short [ fhir:v "識別碼(identifier)的型別說明" ] ;
fhir:definition [ fhir:v "識別碼的代碼型別,用於決定特定目的適用的識別碼。" ] ;
fhir:comment [ fhir:v "這個資料項目只涉及識別碼的一般類別。它 **必須沒有(SHALL NOT)** 被用於與Identifier.system 1..1對應的代碼。一些識別碼可能由於常見的用法而屬於多個類別。在系統是已知的情況下,型別是不必要的,因為型別總是系統定義的一部分。然而,系統經常需要處理系統不為人知的識別碼。型別和系統之間不是1:1的關係,因為許多不同的系統有相同的型別。" ] ;
fhir:requirements [ fhir:v "允許使用者在不知道識別碼系統的情況下利用識別碼" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Identifier.type" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ] ;
        ( fhir:profile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw>         ] )       ] ) ;
      ( fhir:condition [ fhir:v "ele-1" ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "IdentifierType" ]         ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"^^xsd:anyURI ] ;
fhir:value [ fhir:v "true"^^xsd:boolean ]         ] ) ;
fhir:strength [ fhir:v "extensible" ] ;
fhir:description [ fhir:v "應填入[Identifier Type Codes](http://hl7.org/fhir/R4/valueset-identifier-type.html)值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/identifier-type"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/identifier-type>         ]       ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "n/a" ]       ] [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "CE/CNE/CWE" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "CD" ]       ] [
fhir:identity [ fhir:v "orim" ] ;
fhir:map [ fhir:v "fhir:CodeableConcept rdfs:subClassOf dt:CD" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.identifier.system" ] ;
fhir:path [ fhir:v "Encounter.identifier.system" ] ;
fhir:short [ fhir:v "識別碼(identifier)的命名空間(namespace)" ] ;
fhir:definition [ fhir:v "建立值的命名空間-即一個描述一組值的唯一URL" ] ;
fhir:comment [ fhir:v "Identifier.system總是區分大小寫" ] ;
fhir:requirements [ fhir:v "有許多識別碼的集合。為了進行兩個識別碼的對應,我們需要知道我們處理的是哪一組。系統指明了一個特定的唯一識別碼集。" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Identifier.system" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "uri"^^xsd:anyURI ]       ] ) ;
      ( fhir:example [
fhir:label [ fhir:v "General" ] ;
fhir:value [ fhir:v "http://www.acme.com/identifiers/patient"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ] ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "true"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "CX.4 / EI-2-4" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "II.root or Role.id.root" ]       ] [
fhir:identity [ fhir:v "servd" ] ;
fhir:map [ fhir:v "./IdentifierType" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.identifier.value" ] ;
fhir:path [ fhir:v "Encounter.identifier.value" ] ;
fhir:short [ fhir:v "唯一值" ] ;
fhir:definition [ fhir:v "識別碼中通常與使用者有關的部分,在系統情境內是唯一的。" ] ;
fhir:comment [ fhir:v "如果此值是一個完整的URI,那麼此系統 **必須(SHALL)** 是urn:ietf:rfc:3986。此值的主要目的是為了可運算的對應。因此,為了比較的目的,它可能會被正規化(例如:去除不重要的空白、破折號等)。一個為人顯示的格式化的值可以使用[Rendered Value](http://hl7.org/fhir/R4/extension-rendered-value.html)擴充來傳達。除非對Identifier.system的了解使處理者確信不區分大小寫的處理是安全的,否則Identifier.value應被視為區分大小寫。" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Identifier.value" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] ) ;
      ( fhir:example [
fhir:label [ fhir:v "General" ] ;
fhir:value [ fhir:v "123456" ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ] ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "true"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "CX.1 / EI.1" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)" ]       ] [
fhir:identity [ fhir:v "servd" ] ;
fhir:map [ fhir:v "./Value" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.identifier.period" ] ;
fhir:path [ fhir:v "Encounter.identifier.period" ] ;
fhir:short [ fhir:v "此就醫事件識別碼(identifier)的使用效期" ] ;
fhir:definition [ fhir:v "識別碼有效/曾經有效使用的時段或期間" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Identifier.period" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Period"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "true"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "CX.7 + CX.8" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "Role.effectiveTime or implied by context" ]       ] [
fhir:identity [ fhir:v "servd" ] ;
fhir:map [ fhir:v "./StartDate and ./EndDate" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.identifier.assigner" ] ;
fhir:path [ fhir:v "Encounter.identifier.assigner" ] ;
fhir:short [ fhir:v "簽發identifier的機構(可以只是文字表述)" ] ;
fhir:definition [ fhir:v "簽發/管理識別碼的機構" ] ;
fhir:comment [ fhir:v "Identifier.assigner可以省略.reference資料項目,只包含一個.display資料項目,反映指定機構的名稱或其他文字表述資訊。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Identifier.assigner" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
        ( fhir:targetProfile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-hosp-twcore"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-hosp-twcore>         ] )       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "true"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "CX.4 / (CX.4,CX.9,CX.10)" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "II.assigningAuthorityName but note that this is an improper use by the definition of the field.  Also Role.scoper" ]       ] [
fhir:identity [ fhir:v "servd" ] ;
fhir:map [ fhir:v "./IdentifierIssuingAuthority" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.status" ] ;
fhir:path [ fhir:v "Encounter.status" ] ;
fhir:short [ fhir:v "planned | arrived | triaged | in-progress | onleave | finished | cancelled +" ] ;
fhir:definition [ fhir:v "planned | arrived | triaged | in-progress | onleave | finished | cancelled +." ] ;
fhir:comment [ fhir:v "請注意,內部業務規則將決定於狀態(也包括類別)間可能發生的適當轉換。" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.status" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "code"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ] ;
fhir:isModifier [ fhir:v "true"^^xsd:boolean ] ;
fhir:isModifierReason [ fhir:v "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid" ] ;
fhir:isSummary [ fhir:v "true"^^xsd:boolean ] ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "EncounterStatus" ]         ] ) ;
fhir:strength [ fhir:v "required" ] ;
fhir:description [ fhir:v "就醫現況的代碼;應填入[EncounterStatus](http://hl7.org/fhir/R4/valueset-encounter-status.html)值集中的其中一個代碼" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/encounter-status|4.0.1"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/encounter-status|4.0.1>         ]       ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "workflow" ] ;
fhir:map [ fhir:v "Event.status" ]       ] [
fhir:identity [ fhir:v "w5" ] ;
fhir:map [ fhir:v "FiveWs.status" ]       ] [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "No clear equivalent in HL7 v2; active/finished could be inferred from PV1-44, PV1-45, PV2-24; inactive could be inferred from PV2-16" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v ".statusCode" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.statusHistory" ] ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name"^^xsd:anyURI ] ;
fhir:value [ fhir:v "StatusHistory" ]       ] ) ;
fhir:path [ fhir:v "Encounter.statusHistory" ] ;
fhir:short [ fhir:v "過去的就醫狀態清單" ] ;
fhir:definition [ fhir:v "Encounter resource包含狀態歷史,因而不需閱讀resource的歷史版本,甚至不需讓伺服器儲存這些版本。" ] ;
fhir:comment [ fhir:v "總是可在resource的目前版本找到目前狀態,而不是在狀態歷史中找到。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.statusHistory" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "BackboneElement"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "n/a" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.statusHistory.id" ] ;
fhir:path [ fhir:v "Encounter.statusHistory.id" ] ;
      ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
fhir:short [ fhir:v "唯一可識別ID,以供資料項目間相互參照。" ] ;
fhir:definition [ fhir:v "resource中資料項目的唯一ID(用於內部參照)。這可以是任何不含空格的字串。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Element.id" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "string"^^xsd:anyURI ]         ] ) ;
fhir:code [ fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "n/a" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.statusHistory.extension" ] ;
fhir:path [ fhir:v "Encounter.statusHistory.extension" ] ;
fhir:short [ fhir:v "擴充的資料項目" ] ;
fhir:definition [ fhir:v "可用於表示不屬於此資料項目基本定義的附加資訊。為了擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。" ] ;
fhir:comment [ fhir:v "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "Element.extension" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
fhir:key [ fhir:v "ext-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.statusHistory.modifierExtension" ] ;
fhir:path [ fhir:v "Encounter.statusHistory.modifierExtension" ] ;
fhir:short [ fhir:v "此擴充的資料項目可能會完全修正或改變其他資料項目的意涵,需特別留意。" ] ;
fhir:definition [ fhir:v "可以用來表示不屬於資料項目的基本定義的附加資訊,並且修改對它所內嵌(contained)的資料項目的理解和(或)對包含資料項目之後續使用的理解。通常,修飾用的資料項目提供否定或限定。為了使擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。處理resource的應用程式被要求檢查修飾用的擴充資料項目。 \r\n 修飾用的擴充資料項目 **必須沒有(SHALL NOT)** 改變resource或DomainResource上任何資料項目的含義(包括不能改變modifierExtension本身的含義)。" ] ;
fhir:comment [ fhir:v "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。" ] ;
fhir:requirements [ fhir:v "修飾用的資料項目擴充將不能安全地忽略的擴充與絕大多數可以安全地忽略的擴充明確區分開來。透過消除禁止實作者擴充存在的需求來促進可互通性。更多訊息,請參見[修飾用的資料項目擴充之定義](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
fhir:key [ fhir:v "ext-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
fhir:isModifier [ fhir:v "true"^^xsd:boolean ] ;
fhir:isModifierReason [ fhir:v "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ] ;
fhir:isSummary [ fhir:v "true"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.statusHistory.status" ] ;
fhir:path [ fhir:v "Encounter.statusHistory.status" ] ;
fhir:short [ fhir:v "planned | arrived | triaged | in-progress | onleave | finished | cancelled +" ] ;
fhir:definition [ fhir:v "planned | arrived | triaged | in-progress | onleave | finished | cancelled +" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.statusHistory.status" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "code"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "EncounterStatus" ]         ] ) ;
fhir:strength [ fhir:v "required" ] ;
fhir:description [ fhir:v "就醫現狀的代碼;應填入[EncounterStatus](http://hl7.org/fhir/R4/valueset-encounter-status.html)值集中的其中一個代碼" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/encounter-status|4.0.1"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/encounter-status|4.0.1>         ]       ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "n/a" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.statusHistory.period" ] ;
fhir:path [ fhir:v "Encounter.statusHistory.period" ] ;
fhir:short [ fhir:v "該事件處於特定狀態的時間" ] ;
fhir:definition [ fhir:v "該事件處於特定狀態的時間" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.statusHistory.period" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Period"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "n/a" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.class" ] ;
fhir:path [ fhir:v "Encounter.class" ] ;
fhir:short [ fhir:v "病人就醫的分類" ] ;
fhir:definition [ fhir:v "病人就醫分類的概念,例如:門診病人、住院病人、急診病人、居家照護或其他因地方不同而產生的概念。" ] ;
fhir:comment [ fhir:v "代碼可以在列舉清單(enumerations)或代碼清單(code lists)中非常隨意地定義,直至有非常正式的定義,例如:SNOMED CT—更多資訊見HL7 v3核心原則(Core Principles )。編碼的排序是未定義的因而 **必須沒有(SHALL NOT)** 被用來推斷意義。一般來說,最多只有一個編碼值(coding values)會被標記為UserSelected = true。" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.class" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Coding"^^xsd:anyURI ] ;
        ( fhir:profile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw>         ] )       ] ) ;
      ( fhir:condition [ fhir:v "ele-1" ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ] ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "EncounterClass" ]         ] ) ;
fhir:strength [ fhir:v "extensible" ] ;
fhir:description [ fhir:v "就醫的分類;應填入[ActEncounterCode](https://terminology.hl7.org/4.0.0/ValueSet-v3-ActEncounterCode.html)值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。" ] ;
fhir:valueSet [
fhir:v "http://terminology.hl7.org/ValueSet/v3-ActEncounterCode"^^xsd:anyURI ;
fhir:link <http://terminology.hl7.org/ValueSet/v3-ActEncounterCode>         ]       ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "n/a" ]       ] [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "CV" ]       ] [
fhir:identity [ fhir:v "orim" ] ;
fhir:map [ fhir:v "fhir:Coding rdfs:subClassOf dt:CDCoding" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.classHistory" ] ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name"^^xsd:anyURI ] ;
fhir:value [ fhir:v "ClassHistory" ]       ] ) ;
fhir:path [ fhir:v "Encounter.classHistory" ] ;
fhir:short [ fhir:v "過去就醫類別的列表" ] ;
fhir:definition [ fhir:v "可透過類別歷史而不需要透過resource歷史紀錄來追蹤就醫的轉變,這將用於一個案例,即住院急診,然後轉住院的情況。這樣做而不重新啟動一個新的就醫,可以確保任何實驗室/診斷結果可以更容易地跟隨病人,不需要重新處理,也不會在從急診到住院的出院過程中丟失或取消。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.classHistory" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "BackboneElement"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "n/a" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.classHistory.id" ] ;
fhir:path [ fhir:v "Encounter.classHistory.id" ] ;
      ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
fhir:short [ fhir:v "唯一可識別ID,以供資料項目間相互參照。" ] ;
fhir:definition [ fhir:v "resource中資料項目的唯一ID(用於內部參照)。這可以是任何不含空格的字串。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Element.id" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "string"^^xsd:anyURI ]         ] ) ;
fhir:code [ fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "n/a" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.classHistory.extension" ] ;
fhir:path [ fhir:v "Encounter.classHistory.extension" ] ;
fhir:short [ fhir:v "擴充的資料項目" ] ;
fhir:definition [ fhir:v "可用於表示不屬於此資料項目基本定義的附加資訊。為了擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。" ] ;
fhir:comment [ fhir:v "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "Element.extension" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
fhir:key [ fhir:v "ext-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.classHistory.modifierExtension" ] ;
fhir:path [ fhir:v "Encounter.classHistory.modifierExtension" ] ;
fhir:short [ fhir:v "此擴充的資料項目可能會完全修正或改變其他資料項目的意涵,需特別留意。" ] ;
fhir:definition [ fhir:v "可以用來表示不屬於資料項目的基本定義的附加資訊,並且修改對它所內嵌(contained)的資料項目的理解和(或)對包含資料項目之後續使用的理解。通常,修飾用的資料項目提供否定或限定。為了使擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。處理resource的應用程式被要求檢查修飾用的擴充資料項目。 \r\n 修飾用的擴充資料項目 **必須沒有(SHALL NOT)** 改變resource或DomainResource上任何資料項目的含義(包括不能改變modifierExtension本身的含義)。" ] ;
fhir:comment [ fhir:v "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。" ] ;
fhir:requirements [ fhir:v "修飾用的資料項目擴充將不能安全地忽略的擴充與絕大多數可以安全地忽略的擴充明確區分開來。透過消除禁止實作者擴充存在的需求來促進可互通性。更多訊息,請參見[修飾用的資料項目擴充之定義](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
fhir:key [ fhir:v "ext-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
fhir:isModifier [ fhir:v "true"^^xsd:boolean ] ;
fhir:isModifierReason [ fhir:v "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ] ;
fhir:isSummary [ fhir:v "true"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.classHistory.class" ] ;
fhir:path [ fhir:v "Encounter.classHistory.class" ] ;
fhir:short [ fhir:v "inpatient | outpatient | ambulatory | emergency +" ] ;
fhir:definition [ fhir:v "inpatient | outpatient | ambulatory | emergency +.\r\n住院病人 | 門診病人 | 非臥床(可行走)病人醫療服務 | 急診 +" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.classHistory.class" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Coding"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "EncounterClass" ]         ] ) ;
fhir:strength [ fhir:v "extensible" ] ;
fhir:description [ fhir:v "就醫類別;應填入[ActEncounterCode](https://terminology.hl7.org/4.0.0/ValueSet-v3-ActEncounterCode.html)值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。" ] ;
fhir:valueSet [
fhir:v "http://terminology.hl7.org/ValueSet/v3-ActEncounterCode"^^xsd:anyURI ;
fhir:link <http://terminology.hl7.org/ValueSet/v3-ActEncounterCode>         ]       ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "n/a" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.classHistory.period" ] ;
fhir:path [ fhir:v "Encounter.classHistory.period" ] ;
fhir:short [ fhir:v "此就醫事件處於特定類別的時間" ] ;
fhir:definition [ fhir:v "此就醫事件處於特定類別的時間" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.classHistory.period" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Period"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "n/a" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.type" ] ;
fhir:path [ fhir:v "Encounter.type" ] ;
fhir:short [ fhir:v "就醫的特定型別" ] ;
fhir:definition [ fhir:v "就醫的特定型別(如電子郵件諮詢、手術日間照護、專業護理、復健)。" ] ;
fhir:comment [ fhir:v "由於有許多方法可以對就醫進行進一步的分類,所以這個資料項目的基數是0...* ,意即可不填寫或填寫數筆。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.type" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ] ;
        ( fhir:profile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw>         ] )       ] ) ;
      ( fhir:condition [ fhir:v "ele-1" ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "EncounterType" ]         ] ) ;
fhir:strength [ fhir:v "example" ] ;
fhir:description [ fhir:v "就醫的型別;可參考[EncounterType](http://hl7.org/fhir/R4/valueset-encounter-type.html)值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/encounter-type"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/encounter-type>         ]       ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "n/a" ]       ] [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "CE/CNE/CWE" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "CD" ]       ] [
fhir:identity [ fhir:v "orim" ] ;
fhir:map [ fhir:v "fhir:CodeableConcept rdfs:subClassOf dt:CD" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.serviceType" ] ;
fhir:path [ fhir:v "Encounter.serviceType" ] ;
fhir:short [ fhir:v "服務的特定型別" ] ;
fhir:definition [ fhir:v "對所提供的服務進行廣泛的分類(如心臟科)" ] ;
fhir:comment [ fhir:v "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination." ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.serviceType" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ] ;
        ( fhir:profile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw>         ] )       ] ) ;
      ( fhir:example [
fhir:label [ fhir:v "Value" ] ;
fhir:value [ fhir:v "397(Outpatients);557(Inpatients)" ]       ] ) ;
      ( fhir:condition [ fhir:v "ele-1" ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ] ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:binding [
fhir:strength [ fhir:v "extensible" ] ;
fhir:description [ fhir:v "對提供的服務進行廣泛分類;應填入[ServiceType](http://hl7.org/fhir/R4/valueset-service-type.html)值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/service-type"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/service-type>         ]       ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "n/a" ]       ] [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "CE/CNE/CWE" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "CD" ]       ] [
fhir:identity [ fhir:v "orim" ] ;
fhir:map [ fhir:v "fhir:CodeableConcept rdfs:subClassOf dt:CD" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.priority" ] ;
fhir:path [ fhir:v "Encounter.priority" ] ;
fhir:short [ fhir:v "表明就醫的急迫性" ] ;
fhir:definition [ fhir:v "表明就醫的急迫性" ] ;
fhir:comment [ fhir:v "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination." ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.priority" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ] ;
        ( fhir:profile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw>         ] )       ] ) ;
      ( fhir:condition [ fhir:v "ele-1" ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Priority" ]         ] ) ;
fhir:strength [ fhir:v "example" ] ;
fhir:description [ fhir:v "表明就醫的迫切性;可參考[ActPriority](https://terminology.hl7.org/4.0.0/ValueSet-v3-ActPriority.html)值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。" ] ;
fhir:valueSet [
fhir:v "http://terminology.hl7.org/ValueSet/v3-ActPriority"^^xsd:anyURI ;
fhir:link <http://terminology.hl7.org/ValueSet/v3-ActPriority>         ]       ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "n/a" ]       ] [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "CE/CNE/CWE" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "CD" ]       ] [
fhir:identity [ fhir:v "orim" ] ;
fhir:map [ fhir:v "fhir:CodeableConcept rdfs:subClassOf dt:CD" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.subject" ] ;
fhir:path [ fhir:v "Encounter.subject" ] ;
fhir:short [ fhir:v "在場就醫的病人或實體集合(Group)" ] ;
fhir:definition [ fhir:v "在場就醫的病人或實體集合(Group)" ] ;
fhir:comment [ fhir:v "雖然就醫總是關於病人,但在所有的使用情境中,病人實際上可能並不為人所知及可能有一群病人是匿名的(例如:匿名酗酒者的團體治療中—就醫紀錄是以人數/工作人員數計費,而具體病人的情境並不重要);或者在獸醫照護中,一群羊接受治療(動物沒有被單獨追蹤)。" ] ;
      ( fhir:alias [ fhir:v "patient" ] ) ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.subject" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
        ( fhir:targetProfile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Patient-twcore"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Patient-twcore>         ] [
fhir:v "http://hl7.org/fhir/StructureDefinition/Group"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Group>         ] )       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ] ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "true"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "workflow" ] ;
fhir:map [ fhir:v "Event.subject" ]       ] [
fhir:identity [ fhir:v "w5" ] ;
fhir:map [ fhir:v "FiveWs.subject[x]" ]       ] [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "PID-3" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v ".participation[typeCode=SBJ]/role[classCode=PAT]" ]       ] [
fhir:identity [ fhir:v "w5" ] ;
fhir:map [ fhir:v "FiveWs.subject" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.episodeOfCare" ] ;
fhir:path [ fhir:v "Encounter.episodeOfCare" ] ;
fhir:short [ fhir:v "此次就醫應記錄的照護事件" ] ;
fhir:definition [ fhir:v "當某一特定就醫應被歸類為某一特定照護事件的一部分時,應使用這一個資料項目。這種關聯可方便地將相關的就醫分類,以達到特定的目的,如政府報告、問題追蹤、透過共同的問題進行關聯,關聯通常會在照護事件之後記錄在就醫紀錄上,並在紀錄上分類;而不是將另一個就醫(照護事件可能橫跨多年)附件到照護事件紀錄。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.episodeOfCare" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
        ( fhir:targetProfile [
fhir:v "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/EpisodeOfCare>         ] )       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "true"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "workflow" ] ;
fhir:map [ fhir:v "Event.context" ]       ] [
fhir:identity [ fhir:v "w5" ] ;
fhir:map [ fhir:v "FiveWs.context" ]       ] [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "PV1-54, PV1-53" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "n/a" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.basedOn" ] ;
fhir:path [ fhir:v "Encounter.basedOn" ] ;
fhir:short [ fhir:v "開始此次就醫的服務請求(ServiceRequest)" ] ;
fhir:definition [ fhir:v "此就醫事件所要滿足的請求(例如:轉診或手術請求)" ] ;
      ( fhir:alias [ fhir:v "incomingReferral" ] ) ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.basedOn" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
        ( fhir:targetProfile [
fhir:v "http://hl7.org/fhir/StructureDefinition/ServiceRequest"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/ServiceRequest>         ] )       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "workflow" ] ;
fhir:map [ fhir:v "Event.basedOn" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v ".reason.ClinicalDocument" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.participant" ] ;
fhir:path [ fhir:v "Encounter.participant" ] ;
fhir:short [ fhir:v "參與就醫的健康照護服務提供人員之名單" ] ;
fhir:definition [ fhir:v "負責提供健康照護服務的人員名單" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.participant" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "BackboneElement"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ] ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "true"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "workflow" ] ;
fhir:map [ fhir:v "Event.performer" ]       ] [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "ROL" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v ".participation[typeCode=PFM]" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.participant.id" ] ;
fhir:path [ fhir:v "Encounter.participant.id" ] ;
      ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
fhir:short [ fhir:v "唯一可識別ID,以供資料項目間相互參照。" ] ;
fhir:definition [ fhir:v "resource中資料項目的唯一ID(用於內部參照)。這可以是任何不含空格的字串。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Element.id" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "string"^^xsd:anyURI ]         ] ) ;
fhir:code [ fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "n/a" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.participant.extension" ] ;
fhir:path [ fhir:v "Encounter.participant.extension" ] ;
fhir:short [ fhir:v "擴充的資料項目" ] ;
fhir:definition [ fhir:v "可用於表示不屬於此資料項目基本定義的附加資訊。為了擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。" ] ;
fhir:comment [ fhir:v "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "Element.extension" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
fhir:key [ fhir:v "ext-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.participant.modifierExtension" ] ;
fhir:path [ fhir:v "Encounter.participant.modifierExtension" ] ;
fhir:short [ fhir:v "此擴充的資料項目可能會完全修正或改變其他資料項目的意涵,需特別留意。" ] ;
fhir:definition [ fhir:v "可以用來表示不屬於資料項目的基本定義的附加資訊,並且修改對它所內嵌(contained)的資料項目的理解和(或)對包含資料項目之後續使用的理解。通常,修飾用的資料項目提供否定或限定。為了使擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。處理resource的應用程式被要求檢查修飾用的擴充資料項目。 \r\n 修飾用的擴充資料項目 **必須沒有(SHALL NOT)** 改變resource或DomainResource上任何資料項目的含義(包括不能改變modifierExtension本身的含義)。" ] ;
fhir:comment [ fhir:v "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。" ] ;
fhir:requirements [ fhir:v "修飾用的資料項目擴充將不能安全地忽略的擴充與絕大多數可以安全地忽略的擴充明確區分開來。透過消除禁止實作者擴充存在的需求來促進可互通性。更多訊息,請參見[修飾用的資料項目擴充之定義](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
fhir:key [ fhir:v "ext-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
fhir:isModifier [ fhir:v "true"^^xsd:boolean ] ;
fhir:isModifierReason [ fhir:v "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ] ;
fhir:isSummary [ fhir:v "true"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.participant.type" ] ;
fhir:path [ fhir:v "Encounter.participant.type" ] ;
fhir:short [ fhir:v "參與者在病人就醫事件中的角色" ] ;
fhir:definition [ fhir:v "參與者在病人就醫事件中的角色" ] ;
fhir:comment [ fhir:v "參與者的型別表明個人如何參與病人的就醫事件。它包括非執業醫師的參與者,而對於執業醫師來說,這是為了描述在這次就醫中的活動型別(例如:住院醫生、主治醫生、翻譯者、諮詢醫生)。這與執業醫師的角色不同,執業醫師是功能性的角色,衍生自來僱用、教育、執照等。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.participant.type" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ] ;
        ( fhir:profile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw>         ] )       ] ) ;
      ( fhir:condition [ fhir:v "ele-1" ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ] ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "ParticipantType" ]         ] ) ;
fhir:strength [ fhir:v "extensible" ] ;
fhir:description [ fhir:v "參與者在病人就醫事件中的角色;應填入[ParticipantType](http://hl7.org/fhir/R4/valueset-encounter-participant-type.html)值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/encounter-participant-type"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/encounter-participant-type>         ]       ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "n/a" ]       ] [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "CE/CNE/CWE" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "CD" ]       ] [
fhir:identity [ fhir:v "orim" ] ;
fhir:map [ fhir:v "fhir:CodeableConcept rdfs:subClassOf dt:CD" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.participant.period" ] ;
fhir:path [ fhir:v "Encounter.participant.period" ] ;
fhir:short [ fhir:v "參與者在病人就醫期間參與的時段" ] ;
fhir:definition [ fhir:v "指定的參與者參與病人就醫的時段。這些時段可以是重疊的,也可以是整個就醫的時段的子集。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.participant.period" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Period"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ] ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "ROL-5, ROL-6 (or maybe PRT-5)" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v ".time" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.participant.individual" ] ;
fhir:path [ fhir:v "Encounter.participant.individual" ] ;
fhir:short [ fhir:v "除病人外,參與病人就醫事件的人。" ] ;
fhir:definition [ fhir:v "除病人外,參與病人就醫事件的人。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.participant.individual" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
        ( fhir:targetProfile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Practitioner-twcore"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Practitioner-twcore>         ] [
fhir:v "http://hl7.org/fhir/StructureDefinition/PractitionerRole"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/PractitionerRole>         ] [
fhir:v "http://hl7.org/fhir/StructureDefinition/RelatedPerson"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/RelatedPerson>         ] )       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ] ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "true"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "workflow" ] ;
fhir:map [ fhir:v "Event.performer.actor" ]       ] [
fhir:identity [ fhir:v "w5" ] ;
fhir:map [ fhir:v "FiveWs.who" ]       ] [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "ROL-4" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v ".role" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.appointment" ] ;
fhir:path [ fhir:v "Encounter.appointment" ] ;
fhir:short [ fhir:v "這次就醫的預約紀錄" ] ;
fhir:definition [ fhir:v "這次就醫的預約紀錄" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.appointment" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
        ( fhir:targetProfile [
fhir:v "http://hl7.org/fhir/StructureDefinition/Appointment"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Appointment>         ] )       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "true"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "workflow" ] ;
fhir:map [ fhir:v "Event.basedOn" ]       ] [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "SCH-1 / SCH-2" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v ".outboundRelationship[typeCode=FLFS].target[classCode=ENC, moodCode=APT]" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.period" ] ;
fhir:path [ fhir:v "Encounter.period" ] ;
fhir:short [ fhir:v "就醫的開始和結束時間" ] ;
fhir:definition [ fhir:v "就醫的開始和結束時間" ] ;
fhir:comment [ fhir:v "如果(尚)不知道,可以省略「期間」裡的結束日期時間。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.period" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Period"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ] ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "workflow" ] ;
fhir:map [ fhir:v "Event.occurrence[x]" ]       ] [
fhir:identity [ fhir:v "w5" ] ;
fhir:map [ fhir:v "FiveWs.done[x]" ]       ] [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "PV1-44, PV1-45" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v ".effectiveTime (low & high)" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.length" ] ;
fhir:path [ fhir:v "Encounter.length" ] ;
fhir:short [ fhir:v "就醫持續的時間(扣除缺席時間)" ] ;
fhir:definition [ fhir:v "就醫持續的時間,這不包括請假缺席的時間。" ] ;
fhir:comment [ fhir:v "由於請假,可能與就醫的開始和結束時間(Encounter.period)不同。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.length" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Duration"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "workflow" ] ;
fhir:map [ fhir:v "Event.occurrence[x]" ]       ] [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "(PV1-45 less PV1-44) iff ( (PV1-44 not empty) and (PV1-45 not empty) ); units in minutes" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v ".lengthOfStayQuantity" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.reasonCode" ] ;
fhir:path [ fhir:v "Encounter.reasonCode" ] ;
fhir:short [ fhir:v "就醫發生的編碼原因" ] ;
fhir:definition [ fhir:v "就醫發生的原因,以代碼表示。對於住院,這可用於住院診斷代碼。" ] ;
fhir:comment [ fhir:v "對於需要知道哪個是主要診斷的系統來說,這些將用標準擴充primaryDiagnosis(這是一個序列值而不是一個標誌,1=主要診斷)來標記。" ] ;
      ( fhir:alias [ fhir:v "Indication" ] [ fhir:v "Admission diagnosis" ] ) ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.reasonCode" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ] ;
        ( fhir:profile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw>         ] )       ] ) ;
      ( fhir:condition [ fhir:v "ele-1" ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ] ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "EncounterReason" ]         ] ) ;
fhir:strength [ fhir:v "preferred" ] ;
fhir:description [ fhir:v "發生此就醫事件的原因;鼓勵使用[EncounterReasonCodes](http://hl7.org/fhir/R4/valueset-encounter-reason.html)值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/encounter-reason"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/encounter-reason>         ]       ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "n/a" ]       ] [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "CE/CNE/CWE" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "CD" ]       ] [
fhir:identity [ fhir:v "orim" ] ;
fhir:map [ fhir:v "fhir:CodeableConcept rdfs:subClassOf dt:CD" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.reasonReference" ] ;
fhir:path [ fhir:v "Encounter.reasonReference" ] ;
fhir:short [ fhir:v "就醫發生的原因(參照)" ] ;
fhir:definition [ fhir:v "就醫發生的原因,以代碼表示。對於住院,這可用於住院診斷代碼。" ] ;
fhir:comment [ fhir:v "對於需要知道哪個是主要診斷的系統來說,這些將用標準擴充primaryDiagnosis(這是一個序列值而不是一個標誌,1=主要診斷)來標記。" ] ;
      ( fhir:alias [ fhir:v "Indication" ] [ fhir:v "Admission diagnosis" ] ) ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.reasonReference" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
        ( fhir:targetProfile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Condition-twcore"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Condition-twcore>         ] [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Procedure-twcore"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Procedure-twcore>         ] [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Observation-laboratoryResult-twcore"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Observation-laboratoryResult-twcore>         ] [
fhir:v "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation>         ] )       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "true"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "workflow" ] ;
fhir:map [ fhir:v "Event.reasonCode" ]       ] [
fhir:identity [ fhir:v "w5" ] ;
fhir:map [ fhir:v "FiveWs.why[x]" ]       ] [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "EVN-4 / PV2-3 (note: PV2-3 is nominally constrained to inpatient admissions; HL7 v2 makes no vocabulary suggestions for PV2-3; would not expect PV2 segment or PV2-3 to be in use in all implementations )" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v ".reasonCode" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.diagnosis" ] ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Diagnosis" ]       ] ) ;
fhir:path [ fhir:v "Encounter.diagnosis" ] ;
fhir:short [ fhir:v "與此就醫相關的診斷清單" ] ;
fhir:definition [ fhir:v "與此就醫相關的診斷清單" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.diagnosis" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "BackboneElement"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "true"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v ".outboundRelationship[typeCode=RSON]" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.diagnosis.id" ] ;
fhir:path [ fhir:v "Encounter.diagnosis.id" ] ;
      ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
fhir:short [ fhir:v "唯一可識別ID,以供資料項目間相互參照。" ] ;
fhir:definition [ fhir:v "resource中資料項目的唯一ID(用於內部參照)。這可以是任何不含空格的字串。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Element.id" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "string"^^xsd:anyURI ]         ] ) ;
fhir:code [ fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "n/a" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.diagnosis.extension" ] ;
fhir:path [ fhir:v "Encounter.diagnosis.extension" ] ;
fhir:short [ fhir:v "擴充的資料項目" ] ;
fhir:definition [ fhir:v "可用於表示不屬於此資料項目基本定義的附加資訊。為了擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。" ] ;
fhir:comment [ fhir:v "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "Element.extension" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
fhir:key [ fhir:v "ext-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.diagnosis.modifierExtension" ] ;
fhir:path [ fhir:v "Encounter.diagnosis.modifierExtension" ] ;
fhir:short [ fhir:v "此擴充的資料項目可能會完全修正或改變其他資料項目的意涵,需特別留意。" ] ;
fhir:definition [ fhir:v "可以用來表示不屬於資料項目的基本定義的附加資訊,並且修改對它所內嵌(contained)的資料項目的理解和(或)對包含資料項目之後續使用的理解。通常,修飾用的資料項目提供否定或限定。為了使擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。處理resource的應用程式被要求檢查修飾用的擴充資料項目。 \r\n 修飾用的擴充資料項目 **必須沒有(SHALL NOT)** 改變resource或DomainResource上任何資料項目的含義(包括不能改變modifierExtension本身的含義)。" ] ;
fhir:comment [ fhir:v "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。" ] ;
fhir:requirements [ fhir:v "修飾用的資料項目擴充將不能安全地忽略的擴充與絕大多數可以安全地忽略的擴充明確區分開來。透過消除禁止實作者擴充存在的需求來促進可互通性。更多訊息,請參見[修飾用的資料項目擴充之定義](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
fhir:key [ fhir:v "ext-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
fhir:isModifier [ fhir:v "true"^^xsd:boolean ] ;
fhir:isModifierReason [ fhir:v "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ] ;
fhir:isSummary [ fhir:v "true"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.diagnosis.condition" ] ;
fhir:path [ fhir:v "Encounter.diagnosis.condition" ] ;
fhir:short [ fhir:v "與就醫事件相關的診斷或處置" ] ;
fhir:definition [ fhir:v "就醫的原因,使用其他resource的資訊以具體說明。對於住院,這就是住院診斷。指示通常是一個病情、問題或診斷(Condition)(在evidence.detail中參照其他resource),或一個處置(Procedure)。" ] ;
fhir:comment [ fhir:v "對於需要知道哪個是主要診斷的系統來說,這些將用標準擴充primaryDiagnosis(這是一個序列值而不是一個標誌,1=主要診斷)來標記。" ] ;
      ( fhir:alias [ fhir:v "Admission diagnosis" ] [ fhir:v "discharge diagnosis" ] [ fhir:v "indication" ] ) ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.diagnosis.condition" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
        ( fhir:targetProfile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Condition-twcore"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Condition-twcore>         ] [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Procedure-twcore"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Procedure-twcore>         ] )       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "true"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "workflow" ] ;
fhir:map [ fhir:v "Event.reasonReference" ]       ] [
fhir:identity [ fhir:v "w5" ] ;
fhir:map [ fhir:v "FiveWs.why[x]" ]       ] [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "Resources that would commonly referenced at Encounter.indication would be Condition and/or Procedure. These most closely align with DG1/PRB and PR1 respectively." ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v ".outboundRelationship[typeCode=RSON].target" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.diagnosis.use" ] ;
fhir:path [ fhir:v "Encounter.diagnosis.use" ] ;
fhir:short [ fhir:v "此診斷在病人就醫事件中的作用(例如:住院、收費、出院...)。" ] ;
fhir:definition [ fhir:v "此診斷在病人就醫事件中的作用(例如:住院、收費、出院...)。" ] ;
fhir:comment [ fhir:v "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination." ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.diagnosis.use" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ] ;
        ( fhir:profile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw>         ] )       ] ) ;
      ( fhir:condition [ fhir:v "ele-1" ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "DiagnosisRole" ]         ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"^^xsd:anyURI ] ;
fhir:value [ fhir:v "true"^^xsd:boolean ]         ] ) ;
fhir:strength [ fhir:v "preferred" ] ;
fhir:description [ fhir:v "此情況所代表的診斷型別;鼓勵使用[DiagnosisRole](http://hl7.org/fhir/R4/valueset-diagnosis-role.html)值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/diagnosis-role"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/diagnosis-role>         ]       ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "n/a" ]       ] [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "CE/CNE/CWE" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "CD" ]       ] [
fhir:identity [ fhir:v "orim" ] ;
fhir:map [ fhir:v "fhir:CodeableConcept rdfs:subClassOf dt:CD" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.diagnosis.rank" ] ;
fhir:path [ fhir:v "Encounter.diagnosis.rank" ] ;
fhir:short [ fhir:v "診斷的排序(針對每個角色型別)" ] ;
fhir:definition [ fhir:v "診斷的排序(針對每個角色型別)" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.diagnosis.rank" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "positiveInt"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v ".outboundRelationship[typeCode=RSON].priority" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.account" ] ;
fhir:path [ fhir:v "Encounter.account" ] ;
fhir:short [ fhir:v "可用於為此病人就醫事件計費的一組帳戶" ] ;
fhir:definition [ fhir:v "可用於為此病人就醫事件計費的一組帳戶" ] ;
fhir:comment [ fhir:v "計費系統可依據內部業務規則,選擇將與就醫(Encounter)相關的應計費項目分配給不同的參照帳戶。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.account" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
        ( fhir:targetProfile [
fhir:v "http://hl7.org/fhir/StructureDefinition/Account"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Account>         ] )       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v ".pertains.A_Account" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.hospitalization" ] ;
fhir:path [ fhir:v "Encounter.hospitalization" ] ;
fhir:short [ fhir:v "關於入院接受健康照護服務的細節" ] ;
fhir:definition [ fhir:v "關於入院接受健康照護服務的細節" ] ;
fhir:comment [ fhir:v "就醫可能不僅僅包括住院治療。其他情境像是門診病人、社區診所和老年照護機構等情況也包括在內。在此就醫期間記錄的持續時間含概此住院紀錄的整個範圍。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.hospitalization" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "BackboneElement"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ] ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v ".outboundRelationship[typeCode=COMP].target[classCode=ENC, moodCode=EVN]" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.hospitalization.id" ] ;
fhir:path [ fhir:v "Encounter.hospitalization.id" ] ;
      ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
fhir:short [ fhir:v "唯一可識別ID,以供資料項目間相互參照。" ] ;
fhir:definition [ fhir:v "resource中資料項目的唯一ID(用於內部參照)。這可以是任何不含空格的字串。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Element.id" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "string"^^xsd:anyURI ]         ] ) ;
fhir:code [ fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "n/a" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.hospitalization.extension" ] ;
fhir:path [ fhir:v "Encounter.hospitalization.extension" ] ;
fhir:short [ fhir:v "擴充的資料項目" ] ;
fhir:definition [ fhir:v "可用於表示不屬於此資料項目基本定義的附加資訊。為了擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。" ] ;
fhir:comment [ fhir:v "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "Element.extension" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
fhir:key [ fhir:v "ext-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.hospitalization.modifierExtension" ] ;
fhir:path [ fhir:v "Encounter.hospitalization.modifierExtension" ] ;
fhir:short [ fhir:v "此擴充的資料項目可能會完全修正或改變其他資料項目的意涵,需特別留意。" ] ;
fhir:definition [ fhir:v "可以用來表示不屬於資料項目的基本定義的附加資訊,並且修改對它所內嵌(contained)的資料項目的理解和(或)對包含資料項目之後續使用的理解。通常,修飾用的資料項目提供否定或限定。為了使擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。處理resource的應用程式被要求檢查修飾用的擴充資料項目。 \r\n 修飾用的擴充資料項目 **必須沒有(SHALL NOT)** 改變resource或DomainResource上任何資料項目的含義(包括不能改變modifierExtension本身的含義)。" ] ;
fhir:comment [ fhir:v "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。" ] ;
fhir:requirements [ fhir:v "修飾用的資料項目擴充將不能安全地忽略的擴充與絕大多數可以安全地忽略的擴充明確區分開來。透過消除禁止實作者擴充存在的需求來促進可互通性。更多訊息,請參見[修飾用的資料項目擴充之定義](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
fhir:key [ fhir:v "ext-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
fhir:isModifier [ fhir:v "true"^^xsd:boolean ] ;
fhir:isModifierReason [ fhir:v "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ] ;
fhir:isSummary [ fhir:v "true"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.hospitalization.preAdmissionIdentifier" ] ;
fhir:path [ fhir:v "Encounter.hospitalization.preAdmissionIdentifier" ] ;
fhir:short [ fhir:v "住院前識別碼" ] ;
fhir:definition [ fhir:v "住院前識別碼" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.hospitalization.preAdmissionIdentifier" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Identifier"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "PV1-5" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v ".id" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.hospitalization.origin" ] ;
fhir:path [ fhir:v "Encounter.hospitalization.origin" ] ;
fhir:short [ fhir:v "病人住院前來自的地點/機構" ] ;
fhir:definition [ fhir:v "病人住院前來自的地點/機構" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.hospitalization.origin" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
        ( fhir:targetProfile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore>         ] [
fhir:v "http://hl7.org/fhir/StructureDefinition/Location"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Location>         ] )       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v ".participation[typeCode=ORG].role" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.hospitalization.admitSource" ] ;
fhir:path [ fhir:v "Encounter.hospitalization.admitSource" ] ;
fhir:short [ fhir:v "病人從哪裡住院(醫生轉介、轉院)?" ] ;
fhir:definition [ fhir:v "病人從哪裡住院(醫生轉介、轉院)?" ] ;
fhir:comment [ fhir:v "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination." ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.hospitalization.admitSource" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ] ;
        ( fhir:profile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw>         ] )       ] ) ;
      ( fhir:condition [ fhir:v "ele-1" ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "AdmitSource" ]         ] ) ;
fhir:strength [ fhir:v "preferred" ] ;
fhir:description [ fhir:v "病人從哪裡住院;鼓勵使用[AdmitSource](http://hl7.org/fhir/R4/valueset-encounter-admit-source.html)值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/encounter-admit-source"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/encounter-admit-source>         ]       ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "n/a" ]       ] [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "CE/CNE/CWE" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "CD" ]       ] [
fhir:identity [ fhir:v "orim" ] ;
fhir:map [ fhir:v "fhir:CodeableConcept rdfs:subClassOf dt:CD" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.hospitalization.reAdmission" ] ;
fhir:path [ fhir:v "Encounter.hospitalization.reAdmission" ] ;
fhir:short [ fhir:v "已發生的醫院再入院型別(如果有的話)。如果該值不存在,則不被認定為再入院。" ] ;
fhir:definition [ fhir:v "此次住院是否為再入院,如果知道的話,請說明原因。" ] ;
fhir:comment [ fhir:v "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination." ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.hospitalization.reAdmission" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ] ;
        ( fhir:profile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw>         ] )       ] ) ;
      ( fhir:condition [ fhir:v "ele-1" ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "ReAdmissionType" ]         ] ) ;
fhir:strength [ fhir:v "example" ] ;
fhir:description [ fhir:v "這次住院就醫的再入院原因;可參考[hl7VS-re-admissionIndicator](https://terminology.hl7.org/4.0.0/ValueSet-v2-0092.html)值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。" ] ;
fhir:valueSet [
fhir:v "http://terminology.hl7.org/ValueSet/v2-0092"^^xsd:anyURI ;
fhir:link <http://terminology.hl7.org/ValueSet/v2-0092>         ]       ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "n/a" ]       ] [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "CE/CNE/CWE" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "CD" ]       ] [
fhir:identity [ fhir:v "orim" ] ;
fhir:map [ fhir:v "fhir:CodeableConcept rdfs:subClassOf dt:CD" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.hospitalization.dietPreference" ] ;
fhir:path [ fhir:v "Encounter.hospitalization.dietPreference" ] ;
fhir:short [ fhir:v "病人報告的飲食偏好" ] ;
fhir:definition [ fhir:v "病人報告的飲食偏好" ] ;
fhir:comment [ fhir:v "例如:一個病人可能同時要求無乳製品和無堅果的飲食偏好(不相互排斥)。" ] ;
fhir:requirements [ fhir:v "用於追蹤病人的飲食限制和/或偏好。如果要完整描述病人在住院期間的營養需求,應該使用與Encounter連結的nutritionOrder resource。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.hospitalization.dietPreference" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ] ;
        ( fhir:profile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw>         ] )       ] ) ;
      ( fhir:condition [ fhir:v "ele-1" ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "PatientDiet" ]         ] ) ;
fhir:strength [ fhir:v "example" ] ;
fhir:description [ fhir:v "醫療、文化或道德方面的食物偏好,以幫助滿足飲食要求;可參考[Diet](http://hl7.org/fhir/R4/valueset-encounter-diet.html)值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/encounter-diet"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/encounter-diet>         ]       ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "n/a" ]       ] [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "CE/CNE/CWE" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "CD" ]       ] [
fhir:identity [ fhir:v "orim" ] ;
fhir:map [ fhir:v "fhir:CodeableConcept rdfs:subClassOf dt:CD" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.hospitalization.specialCourtesy" ] ;
fhir:path [ fhir:v "Encounter.hospitalization.specialCourtesy" ] ;
fhir:short [ fhir:v "特別禮遇(貴賓、董事會成員)" ] ;
fhir:definition [ fhir:v "特別禮遇(貴賓、董事會成員)" ] ;
fhir:comment [ fhir:v "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination." ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.hospitalization.specialCourtesy" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ] ;
        ( fhir:profile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw>         ] )       ] ) ;
      ( fhir:condition [ fhir:v "ele-1" ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Courtesies" ]         ] ) ;
fhir:strength [ fhir:v "preferred" ] ;
fhir:description [ fhir:v "特別禮遇;鼓勵使用[SpecialCourtesy](http://hl7.org/fhir/R4/valueset-encounter-special-courtesy.html)值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/encounter-special-courtesy"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/encounter-special-courtesy>         ]       ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "n/a" ]       ] [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "CE/CNE/CWE" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "CD" ]       ] [
fhir:identity [ fhir:v "orim" ] ;
fhir:map [ fhir:v "fhir:CodeableConcept rdfs:subClassOf dt:CD" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.hospitalization.specialArrangement" ] ;
fhir:path [ fhir:v "Encounter.hospitalization.specialArrangement" ] ;
fhir:short [ fhir:v "輪椅、翻譯人員、擔架等。" ] ;
fhir:definition [ fhir:v "對此次住院就醫提出的任何特殊要求,如提供特定設備或其他東西。" ] ;
fhir:comment [ fhir:v "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination." ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.hospitalization.specialArrangement" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ] ;
        ( fhir:profile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw>         ] )       ] ) ;
      ( fhir:condition [ fhir:v "ele-1" ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Arrangements" ]         ] ) ;
fhir:strength [ fhir:v "preferred" ] ;
fhir:description [ fhir:v "特殊安排;鼓勵使用[SpecialArrangements](http://hl7.org/fhir/R4/valueset-encounter-special-arrangements.html)值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/encounter-special-arrangements"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/encounter-special-arrangements>         ]       ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "n/a" ]       ] [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "CE/CNE/CWE" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "CD" ]       ] [
fhir:identity [ fhir:v "orim" ] ;
fhir:map [ fhir:v "fhir:CodeableConcept rdfs:subClassOf dt:CD" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.hospitalization.destination" ] ;
fhir:path [ fhir:v "Encounter.hospitalization.destination" ] ;
fhir:short [ fhir:v "病人出院地點/機構" ] ;
fhir:definition [ fhir:v "病人出院地點/機構" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.hospitalization.destination" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
        ( fhir:targetProfile [
fhir:v "http://hl7.org/fhir/StructureDefinition/Location"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Location>         ] [
fhir:v "http://hl7.org/fhir/StructureDefinition/Organization"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Organization>         ] )       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "PV1-37" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v ".participation[typeCode=DST]" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.hospitalization.dischargeDisposition" ] ;
fhir:path [ fhir:v "Encounter.hospitalization.dischargeDisposition" ] ;
fhir:short [ fhir:v "出院後的地點類別或種類" ] ;
fhir:definition [ fhir:v "出院後的地點類別或種類" ] ;
fhir:comment [ fhir:v "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination." ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.hospitalization.dischargeDisposition" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ] ;
        ( fhir:profile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw>         ] )       ] ) ;
      ( fhir:condition [ fhir:v "ele-1" ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ] ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "DischargeDisp" ]         ] ) ;
fhir:strength [ fhir:v "example" ] ;
fhir:description [ fhir:v "出院處置;可參考[DischargeDisposition](http://hl7.org/fhir/R4/valueset-encounter-discharge-disposition.html)值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/encounter-discharge-disposition"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/encounter-discharge-disposition>         ]       ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "n/a" ]       ] [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "CE/CNE/CWE" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "CD" ]       ] [
fhir:identity [ fhir:v "orim" ] ;
fhir:map [ fhir:v "fhir:CodeableConcept rdfs:subClassOf dt:CD" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.location" ] ;
fhir:path [ fhir:v "Encounter.location" ] ;
fhir:short [ fhir:v "病人曾去過的一個或多個地點" ] ;
fhir:definition [ fhir:v "此次就醫期間,病人曾去過的一個或多個地點" ] ;
fhir:comment [ fhir:v "透過指定一個型別「種類(kind)」的地點參照,例如「客戶的家」,以及encounter.class =「虛擬(virtual)」。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.location" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "BackboneElement"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ] ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v ".participation[typeCode=LOC]" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.location.id" ] ;
fhir:path [ fhir:v "Encounter.location.id" ] ;
      ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
fhir:short [ fhir:v "唯一可識別ID,以供資料項目間相互參照。" ] ;
fhir:definition [ fhir:v "resource中資料項目的唯一ID(用於內部參照)。這可以是任何不含空格的字串。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Element.id" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "string"^^xsd:anyURI ]         ] ) ;
fhir:code [ fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "n/a" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.location.extension" ] ;
fhir:path [ fhir:v "Encounter.location.extension" ] ;
fhir:short [ fhir:v "擴充的資料項目" ] ;
fhir:definition [ fhir:v "可用於表示不屬於此資料項目基本定義的附加資訊。為了擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。" ] ;
fhir:comment [ fhir:v "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "Element.extension" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
fhir:key [ fhir:v "ext-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.location.modifierExtension" ] ;
fhir:path [ fhir:v "Encounter.location.modifierExtension" ] ;
fhir:short [ fhir:v "此擴充的資料項目可能會完全修正或改變其他資料項目的意涵,需特別留意。" ] ;
fhir:definition [ fhir:v "可以用來表示不屬於資料項目的基本定義的附加資訊,並且修改對它所內嵌(contained)的資料項目的理解和(或)對包含資料項目之後續使用的理解。通常,修飾用的資料項目提供否定或限定。為了使擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。處理resource的應用程式被要求檢查修飾用的擴充資料項目。 \r\n 修飾用的擴充資料項目 **必須沒有(SHALL NOT)** 改變resource或DomainResource上任何資料項目的含義(包括不能改變modifierExtension本身的含義)。" ] ;
fhir:comment [ fhir:v "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。" ] ;
fhir:requirements [ fhir:v "修飾用的資料項目擴充將不能安全地忽略的擴充與絕大多數可以安全地忽略的擴充明確區分開來。透過消除禁止實作者擴充存在的需求來促進可互通性。更多訊息,請參見[修飾用的資料項目擴充之定義](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
fhir:key [ fhir:v "ext-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
fhir:isModifier [ fhir:v "true"^^xsd:boolean ] ;
fhir:isModifierReason [ fhir:v "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ] ;
fhir:isSummary [ fhir:v "true"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.location.location" ] ;
fhir:path [ fhir:v "Encounter.location.location" ] ;
fhir:short [ fhir:v "就醫發生的地點" ] ;
fhir:definition [ fhir:v "就醫發生的地點" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.location.location" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
        ( fhir:targetProfile [
fhir:v "http://hl7.org/fhir/StructureDefinition/Location"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Location>         ] )       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ] ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "workflow" ] ;
fhir:map [ fhir:v "Event.location" ]       ] [
fhir:identity [ fhir:v "w5" ] ;
fhir:map [ fhir:v "FiveWs.where[x]" ]       ] [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "PV1-3 / PV1-6 / PV1-11 / PV1-42 / PV1-43" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v ".role" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.location.status" ] ;
fhir:path [ fhir:v "Encounter.location.status" ] ;
fhir:short [ fhir:v "planned | active | reserved | completed" ] ;
fhir:definition [ fhir:v "參與者在指定期間於特定地點的狀態。如果參與者已不在此地點,那麼其期間將有一個結束日期/時間。" ] ;
fhir:comment [ fhir:v "當病人不再在某一地點活動時,則要輸入期間結束日期,狀態可改為完成。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.location.status" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "code"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "EncounterLocationStatus" ]         ] ) ;
fhir:strength [ fhir:v "required" ] ;
fhir:description [ fhir:v "就醫地點的狀態;應填入[EncounterLocationStatus](http://hl7.org/fhir/R4/valueset-encounter-location-status.html)值集中的其中一個代碼。" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/encounter-location-status|4.0.1"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/encounter-location-status|4.0.1>         ]       ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v ".role.statusCode" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.location.physicalType" ] ;
fhir:path [ fhir:v "Encounter.location.physicalType" ] ;
fhir:short [ fhir:v "地點的實體型別(通常是地點的層級—床位、房間、病房等)。" ] ;
fhir:definition [ fhir:v "這將被用來指定所需的地點層級(床位/病房/房間/等),以簡化訊息傳遞或查詢。" ] ;
fhir:comment [ fhir:v "此資訊是從Location resource中反正規化(de-normalized),以較易理解Encounter resource及支持訊息傳遞或查詢的處理。地點的層級結構中可能有許多層級,這可能只挑選特定使用情境所需的特定層級。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.location.physicalType" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ] ;
        ( fhir:profile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw>         ] )       ] ) ;
      ( fhir:condition [ fhir:v "ele-1" ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "PhysicalType" ]         ] ) ;
fhir:strength [ fhir:v "example" ] ;
fhir:description [ fhir:v "地點的實體型別;可參考[LocationType](http://hl7.org/fhir/R4/valueset-location-physical-type.html)值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/location-physical-type"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/location-physical-type>         ]       ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "n/a" ]       ] [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "CE/CNE/CWE" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "CD" ]       ] [
fhir:identity [ fhir:v "orim" ] ;
fhir:map [ fhir:v "fhir:CodeableConcept rdfs:subClassOf dt:CD" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.location.period" ] ;
fhir:path [ fhir:v "Encounter.location.period" ] ;
fhir:short [ fhir:v "病人出現在此地點的時段" ] ;
fhir:definition [ fhir:v "病人出現在此地點的時段" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.location.period" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Period"^^xsd:anyURI ]       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v ".time" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.serviceProvider" ] ;
fhir:path [ fhir:v "Encounter.serviceProvider" ] ;
fhir:short [ fhir:v "負責這次就醫的機構" ] ;
fhir:definition [ fhir:v "對此次就醫的服務負主要責任的機構。這可能與病人紀錄中的機構相同,但也可能不同,例如:如果執行服務的人員來自外部機構(可單獨計費)的外部諮詢。請參考Bundle範例顯示結腸鏡檢查就醫縮略集。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.serviceProvider" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
        ( fhir:targetProfile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore>         ] )       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ] ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "workflow" ] ;
fhir:map [ fhir:v "Event.performer.actor" ]       ] [
fhir:identity [ fhir:v "v2" ] ;
fhir:map [ fhir:v "PL.6  & PL.1" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v ".particiaption[typeCode=PFM].role" ]       ] )     ] [
fhir:id [ fhir:v "Encounter.partOf" ] ;
fhir:path [ fhir:v "Encounter.partOf" ] ;
fhir:short [ fhir:v "此就醫是哪次就醫的一部份?" ] ;
fhir:definition [ fhir:v "此就醫是哪次就醫的一部分(行政上或時間上)" ] ;
fhir:comment [ fhir:v "這也用於將小孩的就醫與母親的就醫作關聯。 詳情請參考Patient resource中的Notes小節。" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "Encounter.partOf" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy"^^xsd:anyURI ] ;
fhir:value [ fhir:v "true"^^xsd:boolean ]         ] ) ;
fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
        ( fhir:targetProfile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Encounter-twcore"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Encounter-twcore>         ] )       ] ) ;
      ( fhir:constraint [
fhir:key [ fhir:v "ele-1" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
fhir:source [
fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ;
fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ;
      ( fhir:mapping [
fhir:identity [ fhir:v "workflow" ] ;
fhir:map [ fhir:v "Event.partOf" ]       ] [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v ".inboundRelationship[typeCode=COMP].source[classCode=COMP, moodCode=EVN]" ]       ] )     ] )
  ] ; # 
  fhir:differential [
    ( fhir:element [
fhir:id [ fhir:v "Encounter" ] ;
fhir:path [ fhir:v "Encounter" ] ;
fhir:short [ fhir:v "提供病人服務的一種互動" ] ;
fhir:definition [ fhir:v "病人和健康照護服務提供人員之間的互動,目的是提供健康照護服務或評估病人的健康狀況。" ]     ] [
fhir:id [ fhir:v "Encounter.id" ] ;
fhir:path [ fhir:v "Encounter.id" ] ;
fhir:short [ fhir:v "不重複的ID用以識別儲存在特定FHIR Server中的Encounter紀錄,通常又稱為邏輯性ID。" ] ;
fhir:definition [ fhir:v "resource的邏輯ID,在resource的URL中使用。一旦指定,這個值永遠不會改變。" ] ;
fhir:comment [ fhir:v "一個resource使用新增操作(create operation)提交給伺服器時是此resource唯一沒有id的時刻" ]     ] [
fhir:id [ fhir:v "Encounter.meta" ] ;
fhir:path [ fhir:v "Encounter.meta" ] ;
fhir:short [ fhir:v "此Encounter Resource的metadata" ] ;
fhir:definition [ fhir:v "關於resource的metadata。這是由基礎建設維護的內容。對內容的改變可能並不總是與resource的版本改變相關。" ]     ] [
fhir:id [ fhir:v "Encounter.implicitRules" ] ;
fhir:path [ fhir:v "Encounter.implicitRules" ] ;
fhir:short [ fhir:v "創建此內容所依據的一組規則" ] ;
fhir:definition [ fhir:v "構建resource時遵循的一系列規則的參照,在處理內容時必須理解這些規則。通常這是IG定義特殊規則及其他profiles的參照。" ] ;
fhir:comment [ fhir:v "宣告這套規則限制了內容只能被有限的貿易夥伴所理解。這從本質上限制了資料的長期有用性。然而,現有的健康生態體系高度分裂,還沒有準備好以普遍可計算的方式定義、收集和交換資料。只要有可能,實作者和(或)規範編寫者應該避免使用這個資料項目。通常,在使用時,此URL是對實作指引的參照,此指引將這些特殊規則與其他profiles、value sets等一起定義為其敘述的一部分。" ]     ] [
fhir:id [ fhir:v "Encounter.language" ] ;
fhir:path [ fhir:v "Encounter.language" ] ;
fhir:short [ fhir:v "用以表述Encounter Resource內容的語言" ] ;
fhir:definition [ fhir:v "編寫此resource的基礎語言" ] ;
fhir:comment [ fhir:v "提供語言是為了支援索引和可存取性(通常,文字表述轉語音等服務使用此語言標籤)。html lanuage tag適用於此敘述。resource上的語言標籤可用於指定從resource中的資料所產成的其他表述之語言。不是所有的內容都必須使用此基礎語言。不應該假定Resource.language自動適用於敘述。如果指定語言,它也應該被指定在html中的div元素(關於xml:lang和html lang屬性之間的關係,見HTML5中的規則)。" ] ;
      ( fhir:example [
fhir:label [ fhir:v "Value" ] ;
fhir:value [ fhir:v "zh-TW" ]       ] ) ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"^^xsd:anyURI ] ;
fhir:value [
fhir:v "http://hl7.org/fhir/ValueSet/all-languages"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/all-languages>           ]         ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Language" ]         ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"^^xsd:anyURI ] ;
fhir:value [ fhir:v "true"^^xsd:boolean ]         ] ) ;
fhir:strength [ fhir:v "preferred" ] ;
fhir:description [ fhir:v "人類語言;鼓勵使用[CommonLanguages](http://hl7.org/fhir/R4/valueset-languages.html)值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/languages"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/languages>         ]       ]     ] [
fhir:id [ fhir:v "Encounter.text" ] ;
fhir:path [ fhir:v "Encounter.text" ] ;
fhir:short [ fhir:v "Encounter Resource之內容摘要以供人閱讀" ] ;
fhir:definition [ fhir:v "人可讀的敘述,包含resource的摘要,可用於向人表述resource的內容。敘述不需要對所有的結構化資料進行編碼,但需要包含足夠的細節使人在閱讀敘述時理解「臨床安全性」。resource定義可定義哪些內容應該在敘述中表示,以確保臨床安全。" ] ;
fhir:comment [ fhir:v "內嵌(contained)的resource沒有敘述,非內嵌(contained)的resource則 **建議應該(SHOULD)** 有敘述。在某些情況下,resource可能只有文字表述,很少或沒有額外的離散資料(只要滿足所有minOccurs=1的資料項目)。這對於來自舊有系統的資料可能是必要的,在這些系統中,從 「文字表述區塊(text blob) 」獲取訊息,或者文字表述是額外的原始輸入或敘述,而編碼訊息是後來添加的。" ] ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.contained" ] ;
fhir:path [ fhir:v "Encounter.contained" ] ;
fhir:short [ fhir:v "內嵌的(contained)、行內的Resources" ] ;
fhir:definition [ fhir:v "這些resource內嵌(contains)的resource不會另外存於任何FHIR伺服器,意即它們無法在任何FHIR伺服器中被找到,也無法有自己獨立的資料異動/交易(transaction)範圍。" ] ;
fhir:comment [ fhir:v "內嵌(contained)的resource沒有敘述,非內嵌(contained)的resource則 **建議應該(SHOULD)** 有敘述。在某些情況下,resource可能只有文字表述,很少或沒有額外的離散資料(只要滿足所有minOccurs=1的資料項目)。這對於來自舊有系統的資料可能是必要的,在這些系統中,從 「文字表述區塊(text blob) 」獲取訊息,或者文字表述是額外的原始輸入或敘述,而編碼訊息是後來添加的。" ]     ] [
fhir:id [ fhir:v "Encounter.extension" ] ;
fhir:path [ fhir:v "Encounter.extension" ] ;
fhir:short [ fhir:v "擴充的資料項目" ] ;
fhir:definition [ fhir:v "可用於表示不屬於此資料項目基本定義的附加資訊。為了擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。" ] ;
fhir:comment [ fhir:v "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何污名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。" ]     ] [
fhir:id [ fhir:v "Encounter.modifierExtension" ] ;
fhir:path [ fhir:v "Encounter.modifierExtension" ] ;
fhir:short [ fhir:v "此擴充的資料項目可能會完全修正或改變其他資料項目的意涵,需特別留意。" ] ;
fhir:definition [ fhir:v "可以用來表示不屬於資料項目的基本定義的附加資訊,並且修改對它所內嵌(contained)的資料項目的理解和(或)對包含資料項目之後續使用的理解。通常,修飾用的資料項目提供否定或限定。為了使擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。處理resource的應用程式被要求檢查修飾用的擴充資料項目。  \r\n修飾用的擴充資料項目 **必須沒有(SHALL NOT)** 改變resource或DomainResource上任何資料項目的含義(包括不能改變modifierExtension本身的含義)。" ] ;
fhir:comment [ fhir:v "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何污名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。" ] ;
fhir:requirements [ fhir:v "修飾用的資料項目擴充將不能安全地忽略的擴充與絕大多數可以安全地忽略的擴充明確區分開來。透過消除禁止實作者擴充存在的需求來促進可互操作性。更多訊息,請參見[修飾用的資料項目擴充之定義](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)。" ]     ] [
fhir:id [ fhir:v "Encounter.identifier" ] ;
fhir:path [ fhir:v "Encounter.identifier" ] ;
fhir:short [ fhir:v "此就醫事件的識別碼" ] ;
fhir:definition [ fhir:v "此就醫事件的識別碼" ] ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.identifier.id" ] ;
fhir:path [ fhir:v "Encounter.identifier.id" ] ;
fhir:short [ fhir:v "唯一可識別ID,以供資料項目間相互參照。" ] ;
fhir:definition [ fhir:v "resource中資料項目的唯一ID(用於內部參照)。這可以是任何不含空格的字串。" ]     ] [
fhir:id [ fhir:v "Encounter.identifier.extension" ] ;
fhir:path [ fhir:v "Encounter.identifier.extension" ] ;
fhir:short [ fhir:v "擴充的資料項目" ] ;
fhir:definition [ fhir:v "擴充的資料項目" ] ;
fhir:comment [ fhir:v "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。" ]     ] [
fhir:id [ fhir:v "Encounter.identifier.use" ] ;
fhir:path [ fhir:v "Encounter.identifier.use" ] ;
fhir:short [ fhir:v "usual | official | temp | secondary | old (如果知道)" ] ;
fhir:definition [ fhir:v "這個唯一識別碼(identifier)的用途" ] ;
fhir:comment [ fhir:v "應用程式可以假定一個識別碼是永久的,除非它明確說它是暫時的。" ] ;
fhir:requirements [ fhir:v "允許從一組識別碼中為特定的使用情境選擇適當的識別碼" ] ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "IdentifierUse" ]         ] ) ;
fhir:strength [ fhir:v "required" ] ;
fhir:description [ fhir:v "如果知道,請說明此識別碼的用途;應填入[IdentifierUse](http://hl7.org/fhir/R4/valueset-identifier-use.html)值集中的其中一個代碼。" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/identifier-use|4.0.1>         ]       ]     ] [
fhir:id [ fhir:v "Encounter.identifier.type" ] ;
fhir:path [ fhir:v "Encounter.identifier.type" ] ;
fhir:short [ fhir:v "識別碼(identifier)的型別說明" ] ;
fhir:definition [ fhir:v "識別碼的代碼型別,用於決定特定目的適用的識別碼。" ] ;
fhir:comment [ fhir:v "這個資料項目只涉及識別碼的一般類別。它 **必須沒有(SHALL NOT)** 被用於與Identifier.system 1..1對應的代碼。一些識別碼可能由於常見的用法而屬於多個類別。在系統是已知的情況下,型別是不必要的,因為型別總是系統定義的一部分。然而,系統經常需要處理系統不為人知的識別碼。型別和系統之間不是1:1的關係,因為許多不同的系統有相同的型別。" ] ;
fhir:requirements [ fhir:v "允許使用者在不知道識別碼系統的情況下利用識別碼" ] ;
      ( fhir:type [
fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ] ;
        ( fhir:profile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw>         ] )       ] ) ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "IdentifierType" ]         ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"^^xsd:anyURI ] ;
fhir:value [ fhir:v "true"^^xsd:boolean ]         ] ) ;
fhir:strength [ fhir:v "extensible" ] ;
fhir:description [ fhir:v "應填入[Identifier Type Codes](http://hl7.org/fhir/R4/valueset-identifier-type.html)值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/identifier-type"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/identifier-type>         ]       ]     ] [
fhir:id [ fhir:v "Encounter.identifier.system" ] ;
fhir:path [ fhir:v "Encounter.identifier.system" ] ;
fhir:short [ fhir:v "識別碼(identifier)的命名空間(namespace)" ] ;
fhir:definition [ fhir:v "建立值的命名空間-即一個描述一組值的唯一URL" ] ;
fhir:comment [ fhir:v "Identifier.system總是區分大小寫" ] ;
fhir:requirements [ fhir:v "有許多識別碼的集合。為了進行兩個識別碼的對應,我們需要知道我們處理的是哪一組。系統指明了一個特定的唯一識別碼集。" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.identifier.value" ] ;
fhir:path [ fhir:v "Encounter.identifier.value" ] ;
fhir:short [ fhir:v "唯一值" ] ;
fhir:definition [ fhir:v "識別碼中通常與使用者有關的部分,在系統情境內是唯一的。" ] ;
fhir:comment [ fhir:v "如果此值是一個完整的URI,那麼此系統 **必須(SHALL)** 是urn:ietf:rfc:3986。此值的主要目的是為了可運算的對應。因此,為了比較的目的,它可能會被正規化(例如:去除不重要的空白、破折號等)。一個為人顯示的格式化的值可以使用[Rendered Value](http://hl7.org/fhir/R4/extension-rendered-value.html)擴充來傳達。除非對Identifier.system的了解使處理者確信不區分大小寫的處理是安全的,否則Identifier.value應被視為區分大小寫。" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.identifier.period" ] ;
fhir:path [ fhir:v "Encounter.identifier.period" ] ;
fhir:short [ fhir:v "此就醫事件識別碼(identifier)的使用效期" ] ;
fhir:definition [ fhir:v "識別碼有效/曾經有效使用的時段或期間" ]     ] [
fhir:id [ fhir:v "Encounter.identifier.assigner" ] ;
fhir:path [ fhir:v "Encounter.identifier.assigner" ] ;
fhir:short [ fhir:v "簽發identifier的機構(可以只是文字表述)" ] ;
fhir:definition [ fhir:v "簽發/管理識別碼的機構" ] ;
fhir:comment [ fhir:v "Identifier.assigner可以省略.reference資料項目,只包含一個.display資料項目,反映指定機構的名稱或其他文字表述資訊。" ] ;
      ( fhir:type [
fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
        ( fhir:targetProfile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-hosp-twcore"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-hosp-twcore>         ] )       ] )     ] [
fhir:id [ fhir:v "Encounter.status" ] ;
fhir:path [ fhir:v "Encounter.status" ] ;
fhir:comment [ fhir:v "請注意,內部業務規則將決定於狀態(也包括類別)間可能發生的適當轉換。" ] ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ] ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "EncounterStatus" ]         ] ) ;
fhir:strength [ fhir:v "required" ] ;
fhir:description [ fhir:v "就醫現況的代碼;應填入[EncounterStatus](http://hl7.org/fhir/R4/valueset-encounter-status.html)值集中的其中一個代碼" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/encounter-status|4.0.1"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/encounter-status|4.0.1>         ]       ]     ] [
fhir:id [ fhir:v "Encounter.statusHistory" ] ;
fhir:path [ fhir:v "Encounter.statusHistory" ] ;
fhir:short [ fhir:v "過去的就醫狀態清單" ] ;
fhir:definition [ fhir:v "Encounter resource包含狀態歷史,因而不需閱讀resource的歷史版本,甚至不需讓伺服器儲存這些版本。" ] ;
fhir:comment [ fhir:v "總是可在resource的目前版本找到目前狀態,而不是在狀態歷史中找到。" ]     ] [
fhir:id [ fhir:v "Encounter.statusHistory.id" ] ;
fhir:path [ fhir:v "Encounter.statusHistory.id" ] ;
fhir:short [ fhir:v "唯一可識別ID,以供資料項目間相互參照。" ] ;
fhir:definition [ fhir:v "resource中資料項目的唯一ID(用於內部參照)。這可以是任何不含空格的字串。" ]     ] [
fhir:id [ fhir:v "Encounter.statusHistory.extension" ] ;
fhir:path [ fhir:v "Encounter.statusHistory.extension" ] ;
fhir:short [ fhir:v "擴充的資料項目" ] ;
fhir:definition [ fhir:v "可用於表示不屬於此資料項目基本定義的附加資訊。為了擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。" ] ;
fhir:comment [ fhir:v "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。" ]     ] [
fhir:id [ fhir:v "Encounter.statusHistory.modifierExtension" ] ;
fhir:path [ fhir:v "Encounter.statusHistory.modifierExtension" ] ;
fhir:short [ fhir:v "此擴充的資料項目可能會完全修正或改變其他資料項目的意涵,需特別留意。" ] ;
fhir:definition [ fhir:v "可以用來表示不屬於資料項目的基本定義的附加資訊,並且修改對它所內嵌(contained)的資料項目的理解和(或)對包含資料項目之後續使用的理解。通常,修飾用的資料項目提供否定或限定。為了使擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。處理resource的應用程式被要求檢查修飾用的擴充資料項目。 \r\n 修飾用的擴充資料項目 **必須沒有(SHALL NOT)** 改變resource或DomainResource上任何資料項目的含義(包括不能改變modifierExtension本身的含義)。" ] ;
fhir:comment [ fhir:v "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。" ] ;
fhir:requirements [ fhir:v "修飾用的資料項目擴充將不能安全地忽略的擴充與絕大多數可以安全地忽略的擴充明確區分開來。透過消除禁止實作者擴充存在的需求來促進可互通性。更多訊息,請參見[修飾用的資料項目擴充之定義](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)。" ]     ] [
fhir:id [ fhir:v "Encounter.statusHistory.status" ] ;
fhir:path [ fhir:v "Encounter.statusHistory.status" ] ;
fhir:definition [ fhir:v "planned | arrived | triaged | in-progress | onleave | finished | cancelled +" ] ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "EncounterStatus" ]         ] ) ;
fhir:strength [ fhir:v "required" ] ;
fhir:description [ fhir:v "就醫現狀的代碼;應填入[EncounterStatus](http://hl7.org/fhir/R4/valueset-encounter-status.html)值集中的其中一個代碼" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/encounter-status|4.0.1"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/encounter-status|4.0.1>         ]       ]     ] [
fhir:id [ fhir:v "Encounter.statusHistory.period" ] ;
fhir:path [ fhir:v "Encounter.statusHistory.period" ] ;
fhir:short [ fhir:v "該事件處於特定狀態的時間" ] ;
fhir:definition [ fhir:v "該事件處於特定狀態的時間" ]     ] [
fhir:id [ fhir:v "Encounter.class" ] ;
fhir:path [ fhir:v "Encounter.class" ] ;
fhir:short [ fhir:v "病人就醫的分類" ] ;
fhir:definition [ fhir:v "病人就醫分類的概念,例如:門診病人、住院病人、急診病人、居家照護或其他因地方不同而產生的概念。" ] ;
      ( fhir:type [
fhir:code [ fhir:v "Coding"^^xsd:anyURI ] ;
        ( fhir:profile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw>         ] )       ] ) ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ] ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "EncounterClass" ]         ] ) ;
fhir:strength [ fhir:v "extensible" ] ;
fhir:description [ fhir:v "就醫的分類;應填入[ActEncounterCode](https://terminology.hl7.org/4.0.0/ValueSet-v3-ActEncounterCode.html)值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。" ] ;
fhir:valueSet [
fhir:v "http://terminology.hl7.org/ValueSet/v3-ActEncounterCode"^^xsd:anyURI ;
fhir:link <http://terminology.hl7.org/ValueSet/v3-ActEncounterCode>         ]       ]     ] [
fhir:id [ fhir:v "Encounter.classHistory" ] ;
fhir:path [ fhir:v "Encounter.classHistory" ] ;
fhir:short [ fhir:v "過去就醫類別的列表" ] ;
fhir:definition [ fhir:v "可透過類別歷史而不需要透過resource歷史紀錄來追蹤就醫的轉變,這將用於一個案例,即住院急診,然後轉住院的情況。這樣做而不重新啟動一個新的就醫,可以確保任何實驗室/診斷結果可以更容易地跟隨病人,不需要重新處理,也不會在從急診到住院的出院過程中丟失或取消。" ]     ] [
fhir:id [ fhir:v "Encounter.classHistory.id" ] ;
fhir:path [ fhir:v "Encounter.classHistory.id" ] ;
fhir:short [ fhir:v "唯一可識別ID,以供資料項目間相互參照。" ] ;
fhir:definition [ fhir:v "resource中資料項目的唯一ID(用於內部參照)。這可以是任何不含空格的字串。" ]     ] [
fhir:id [ fhir:v "Encounter.classHistory.extension" ] ;
fhir:path [ fhir:v "Encounter.classHistory.extension" ] ;
fhir:short [ fhir:v "擴充的資料項目" ] ;
fhir:definition [ fhir:v "可用於表示不屬於此資料項目基本定義的附加資訊。為了擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。" ] ;
fhir:comment [ fhir:v "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。" ]     ] [
fhir:id [ fhir:v "Encounter.classHistory.modifierExtension" ] ;
fhir:path [ fhir:v "Encounter.classHistory.modifierExtension" ] ;
fhir:short [ fhir:v "此擴充的資料項目可能會完全修正或改變其他資料項目的意涵,需特別留意。" ] ;
fhir:definition [ fhir:v "可以用來表示不屬於資料項目的基本定義的附加資訊,並且修改對它所內嵌(contained)的資料項目的理解和(或)對包含資料項目之後續使用的理解。通常,修飾用的資料項目提供否定或限定。為了使擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。處理resource的應用程式被要求檢查修飾用的擴充資料項目。 \r\n 修飾用的擴充資料項目 **必須沒有(SHALL NOT)** 改變resource或DomainResource上任何資料項目的含義(包括不能改變modifierExtension本身的含義)。" ] ;
fhir:comment [ fhir:v "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。" ] ;
fhir:requirements [ fhir:v "修飾用的資料項目擴充將不能安全地忽略的擴充與絕大多數可以安全地忽略的擴充明確區分開來。透過消除禁止實作者擴充存在的需求來促進可互通性。更多訊息,請參見[修飾用的資料項目擴充之定義](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)。" ]     ] [
fhir:id [ fhir:v "Encounter.classHistory.class" ] ;
fhir:path [ fhir:v "Encounter.classHistory.class" ] ;
fhir:short [ fhir:v "inpatient | outpatient | ambulatory | emergency +" ] ;
fhir:definition [ fhir:v "inpatient | outpatient | ambulatory | emergency +.\r\n住院病人 | 門診病人 | 非臥床(可行走)病人醫療服務 | 急診 +" ] ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "EncounterClass" ]         ] ) ;
fhir:strength [ fhir:v "extensible" ] ;
fhir:description [ fhir:v "就醫類別;應填入[ActEncounterCode](https://terminology.hl7.org/4.0.0/ValueSet-v3-ActEncounterCode.html)值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。" ] ;
fhir:valueSet [
fhir:v "http://terminology.hl7.org/ValueSet/v3-ActEncounterCode"^^xsd:anyURI ;
fhir:link <http://terminology.hl7.org/ValueSet/v3-ActEncounterCode>         ]       ]     ] [
fhir:id [ fhir:v "Encounter.classHistory.period" ] ;
fhir:path [ fhir:v "Encounter.classHistory.period" ] ;
fhir:short [ fhir:v "此就醫事件處於特定類別的時間" ] ;
fhir:definition [ fhir:v "此就醫事件處於特定類別的時間" ]     ] [
fhir:id [ fhir:v "Encounter.type" ] ;
fhir:path [ fhir:v "Encounter.type" ] ;
fhir:short [ fhir:v "就醫的特定型別" ] ;
fhir:definition [ fhir:v "就醫的特定型別(如電子郵件諮詢、手術日間照護、專業護理、復健)。" ] ;
fhir:comment [ fhir:v "由於有許多方法可以對就醫進行進一步的分類,所以這個資料項目的基數是0...* ,意即可不填寫或填寫數筆。" ] ;
      ( fhir:type [
fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ] ;
        ( fhir:profile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw>         ] )       ] ) ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "EncounterType" ]         ] ) ;
fhir:strength [ fhir:v "example" ] ;
fhir:description [ fhir:v "就醫的型別;可參考[EncounterType](http://hl7.org/fhir/R4/valueset-encounter-type.html)值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/encounter-type"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/encounter-type>         ]       ]     ] [
fhir:id [ fhir:v "Encounter.serviceType" ] ;
fhir:path [ fhir:v "Encounter.serviceType" ] ;
fhir:short [ fhir:v "服務的特定型別" ] ;
fhir:definition [ fhir:v "對所提供的服務進行廣泛的分類(如心臟科)" ] ;
      ( fhir:type [
fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ] ;
        ( fhir:profile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw>         ] )       ] ) ;
      ( fhir:example [
fhir:label [ fhir:v "Value" ] ;
fhir:value [ fhir:v "397(Outpatients);557(Inpatients)" ]       ] ) ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ] ;
fhir:binding [
fhir:strength [ fhir:v "extensible" ] ;
fhir:description [ fhir:v "對提供的服務進行廣泛分類;應填入[ServiceType](http://hl7.org/fhir/R4/valueset-service-type.html)值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/service-type"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/service-type>         ]       ]     ] [
fhir:id [ fhir:v "Encounter.priority" ] ;
fhir:path [ fhir:v "Encounter.priority" ] ;
fhir:short [ fhir:v "表明就醫的急迫性" ] ;
fhir:definition [ fhir:v "表明就醫的急迫性" ] ;
      ( fhir:type [
fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ] ;
        ( fhir:profile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw>         ] )       ] ) ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Priority" ]         ] ) ;
fhir:strength [ fhir:v "example" ] ;
fhir:description [ fhir:v "表明就醫的迫切性;可參考[ActPriority](https://terminology.hl7.org/4.0.0/ValueSet-v3-ActPriority.html)值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。" ] ;
fhir:valueSet [
fhir:v "http://terminology.hl7.org/ValueSet/v3-ActPriority"^^xsd:anyURI ;
fhir:link <http://terminology.hl7.org/ValueSet/v3-ActPriority>         ]       ]     ] [
fhir:id [ fhir:v "Encounter.subject" ] ;
fhir:path [ fhir:v "Encounter.subject" ] ;
fhir:short [ fhir:v "在場就醫的病人或實體集合(Group)" ] ;
fhir:definition [ fhir:v "在場就醫的病人或實體集合(Group)" ] ;
fhir:comment [ fhir:v "雖然就醫總是關於病人,但在所有的使用情境中,病人實際上可能並不為人所知及可能有一群病人是匿名的(例如:匿名酗酒者的團體治療中—就醫紀錄是以人數/工作人員數計費,而具體病人的情境並不重要);或者在獸醫照護中,一群羊接受治療(動物沒有被單獨追蹤)。" ] ;
      ( fhir:type [
fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
        ( fhir:targetProfile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Patient-twcore"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Patient-twcore>         ] [
fhir:v "http://hl7.org/fhir/StructureDefinition/Group"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Group>         ] )       ] ) ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.episodeOfCare" ] ;
fhir:path [ fhir:v "Encounter.episodeOfCare" ] ;
fhir:short [ fhir:v "此次就醫應記錄的照護事件" ] ;
fhir:definition [ fhir:v "當某一特定就醫應被歸類為某一特定照護事件的一部分時,應使用這一個資料項目。這種關聯可方便地將相關的就醫分類,以達到特定的目的,如政府報告、問題追蹤、透過共同的問題進行關聯,關聯通常會在照護事件之後記錄在就醫紀錄上,並在紀錄上分類;而不是將另一個就醫(照護事件可能橫跨多年)附件到照護事件紀錄。" ]     ] [
fhir:id [ fhir:v "Encounter.basedOn" ] ;
fhir:path [ fhir:v "Encounter.basedOn" ] ;
fhir:short [ fhir:v "開始此次就醫的服務請求(ServiceRequest)" ] ;
fhir:definition [ fhir:v "此就醫事件所要滿足的請求(例如:轉診或手術請求)" ]     ] [
fhir:id [ fhir:v "Encounter.participant" ] ;
fhir:path [ fhir:v "Encounter.participant" ] ;
fhir:short [ fhir:v "參與就醫的健康照護服務提供人員之名單" ] ;
fhir:definition [ fhir:v "負責提供健康照護服務的人員名單" ] ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.participant.id" ] ;
fhir:path [ fhir:v "Encounter.participant.id" ] ;
fhir:short [ fhir:v "唯一可識別ID,以供資料項目間相互參照。" ] ;
fhir:definition [ fhir:v "resource中資料項目的唯一ID(用於內部參照)。這可以是任何不含空格的字串。" ]     ] [
fhir:id [ fhir:v "Encounter.participant.extension" ] ;
fhir:path [ fhir:v "Encounter.participant.extension" ] ;
fhir:short [ fhir:v "擴充的資料項目" ] ;
fhir:definition [ fhir:v "可用於表示不屬於此資料項目基本定義的附加資訊。為了擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。" ] ;
fhir:comment [ fhir:v "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。" ]     ] [
fhir:id [ fhir:v "Encounter.participant.modifierExtension" ] ;
fhir:path [ fhir:v "Encounter.participant.modifierExtension" ] ;
fhir:short [ fhir:v "此擴充的資料項目可能會完全修正或改變其他資料項目的意涵,需特別留意。" ] ;
fhir:definition [ fhir:v "可以用來表示不屬於資料項目的基本定義的附加資訊,並且修改對它所內嵌(contained)的資料項目的理解和(或)對包含資料項目之後續使用的理解。通常,修飾用的資料項目提供否定或限定。為了使擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。處理resource的應用程式被要求檢查修飾用的擴充資料項目。 \r\n 修飾用的擴充資料項目 **必須沒有(SHALL NOT)** 改變resource或DomainResource上任何資料項目的含義(包括不能改變modifierExtension本身的含義)。" ] ;
fhir:comment [ fhir:v "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。" ] ;
fhir:requirements [ fhir:v "修飾用的資料項目擴充將不能安全地忽略的擴充與絕大多數可以安全地忽略的擴充明確區分開來。透過消除禁止實作者擴充存在的需求來促進可互通性。更多訊息,請參見[修飾用的資料項目擴充之定義](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)。" ]     ] [
fhir:id [ fhir:v "Encounter.participant.type" ] ;
fhir:path [ fhir:v "Encounter.participant.type" ] ;
fhir:short [ fhir:v "參與者在病人就醫事件中的角色" ] ;
fhir:definition [ fhir:v "參與者在病人就醫事件中的角色" ] ;
fhir:comment [ fhir:v "參與者的型別表明個人如何參與病人的就醫事件。它包括非執業醫師的參與者,而對於執業醫師來說,這是為了描述在這次就醫中的活動型別(例如:住院醫生、主治醫生、翻譯者、諮詢醫生)。這與執業醫師的角色不同,執業醫師是功能性的角色,衍生自來僱用、教育、執照等。" ] ;
      ( fhir:type [
fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ] ;
        ( fhir:profile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw>         ] )       ] ) ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ] ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "ParticipantType" ]         ] ) ;
fhir:strength [ fhir:v "extensible" ] ;
fhir:description [ fhir:v "參與者在病人就醫事件中的角色;應填入[ParticipantType](http://hl7.org/fhir/R4/valueset-encounter-participant-type.html)值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/encounter-participant-type"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/encounter-participant-type>         ]       ]     ] [
fhir:id [ fhir:v "Encounter.participant.period" ] ;
fhir:path [ fhir:v "Encounter.participant.period" ] ;
fhir:short [ fhir:v "參與者在病人就醫期間參與的時段" ] ;
fhir:definition [ fhir:v "指定的參與者參與病人就醫的時段。這些時段可以是重疊的,也可以是整個就醫的時段的子集。" ] ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.participant.individual" ] ;
fhir:path [ fhir:v "Encounter.participant.individual" ] ;
fhir:short [ fhir:v "除病人外,參與病人就醫事件的人。" ] ;
fhir:definition [ fhir:v "除病人外,參與病人就醫事件的人。" ] ;
      ( fhir:type [
fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
        ( fhir:targetProfile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Practitioner-twcore"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Practitioner-twcore>         ] [
fhir:v "http://hl7.org/fhir/StructureDefinition/PractitionerRole"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/PractitionerRole>         ] [
fhir:v "http://hl7.org/fhir/StructureDefinition/RelatedPerson"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/RelatedPerson>         ] )       ] ) ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.appointment" ] ;
fhir:path [ fhir:v "Encounter.appointment" ] ;
fhir:short [ fhir:v "這次就醫的預約紀錄" ] ;
fhir:definition [ fhir:v "這次就醫的預約紀錄" ]     ] [
fhir:id [ fhir:v "Encounter.period" ] ;
fhir:path [ fhir:v "Encounter.period" ] ;
fhir:short [ fhir:v "就醫的開始和結束時間" ] ;
fhir:definition [ fhir:v "就醫的開始和結束時間" ] ;
fhir:comment [ fhir:v "如果(尚)不知道,可以省略「期間」裡的結束日期時間。" ] ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.length" ] ;
fhir:path [ fhir:v "Encounter.length" ] ;
fhir:short [ fhir:v "就醫持續的時間(扣除缺席時間)" ] ;
fhir:definition [ fhir:v "就醫持續的時間,這不包括請假缺席的時間。" ] ;
fhir:comment [ fhir:v "由於請假,可能與就醫的開始和結束時間(Encounter.period)不同。" ]     ] [
fhir:id [ fhir:v "Encounter.reasonCode" ] ;
fhir:path [ fhir:v "Encounter.reasonCode" ] ;
fhir:short [ fhir:v "就醫發生的編碼原因" ] ;
fhir:definition [ fhir:v "就醫發生的原因,以代碼表示。對於住院,這可用於住院診斷代碼。" ] ;
fhir:comment [ fhir:v "對於需要知道哪個是主要診斷的系統來說,這些將用標準擴充primaryDiagnosis(這是一個序列值而不是一個標誌,1=主要診斷)來標記。" ] ;
      ( fhir:type [
fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ] ;
        ( fhir:profile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw>         ] )       ] ) ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ] ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "EncounterReason" ]         ] ) ;
fhir:strength [ fhir:v "preferred" ] ;
fhir:description [ fhir:v "發生此就醫事件的原因;鼓勵使用[EncounterReasonCodes](http://hl7.org/fhir/R4/valueset-encounter-reason.html)值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/encounter-reason"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/encounter-reason>         ]       ]     ] [
fhir:id [ fhir:v "Encounter.reasonReference" ] ;
fhir:path [ fhir:v "Encounter.reasonReference" ] ;
fhir:short [ fhir:v "就醫發生的原因(參照)" ] ;
fhir:definition [ fhir:v "就醫發生的原因,以代碼表示。對於住院,這可用於住院診斷代碼。" ] ;
fhir:comment [ fhir:v "對於需要知道哪個是主要診斷的系統來說,這些將用標準擴充primaryDiagnosis(這是一個序列值而不是一個標誌,1=主要診斷)來標記。" ] ;
      ( fhir:type [
fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
        ( fhir:targetProfile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Condition-twcore"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Condition-twcore>         ] [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Procedure-twcore"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Procedure-twcore>         ] [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Observation-laboratoryResult-twcore"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Observation-laboratoryResult-twcore>         ] [
fhir:v "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation>         ] )       ] )     ] [
fhir:id [ fhir:v "Encounter.diagnosis" ] ;
fhir:path [ fhir:v "Encounter.diagnosis" ] ;
fhir:short [ fhir:v "與此就醫相關的診斷清單" ] ;
fhir:definition [ fhir:v "與此就醫相關的診斷清單" ]     ] [
fhir:id [ fhir:v "Encounter.diagnosis.id" ] ;
fhir:path [ fhir:v "Encounter.diagnosis.id" ] ;
fhir:short [ fhir:v "唯一可識別ID,以供資料項目間相互參照。" ] ;
fhir:definition [ fhir:v "resource中資料項目的唯一ID(用於內部參照)。這可以是任何不含空格的字串。" ]     ] [
fhir:id [ fhir:v "Encounter.diagnosis.extension" ] ;
fhir:path [ fhir:v "Encounter.diagnosis.extension" ] ;
fhir:short [ fhir:v "擴充的資料項目" ] ;
fhir:definition [ fhir:v "可用於表示不屬於此資料項目基本定義的附加資訊。為了擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。" ] ;
fhir:comment [ fhir:v "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。" ]     ] [
fhir:id [ fhir:v "Encounter.diagnosis.modifierExtension" ] ;
fhir:path [ fhir:v "Encounter.diagnosis.modifierExtension" ] ;
fhir:short [ fhir:v "此擴充的資料項目可能會完全修正或改變其他資料項目的意涵,需特別留意。" ] ;
fhir:definition [ fhir:v "可以用來表示不屬於資料項目的基本定義的附加資訊,並且修改對它所內嵌(contained)的資料項目的理解和(或)對包含資料項目之後續使用的理解。通常,修飾用的資料項目提供否定或限定。為了使擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。處理resource的應用程式被要求檢查修飾用的擴充資料項目。 \r\n 修飾用的擴充資料項目 **必須沒有(SHALL NOT)** 改變resource或DomainResource上任何資料項目的含義(包括不能改變modifierExtension本身的含義)。" ] ;
fhir:comment [ fhir:v "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。" ] ;
fhir:requirements [ fhir:v "修飾用的資料項目擴充將不能安全地忽略的擴充與絕大多數可以安全地忽略的擴充明確區分開來。透過消除禁止實作者擴充存在的需求來促進可互通性。更多訊息,請參見[修飾用的資料項目擴充之定義](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)。" ]     ] [
fhir:id [ fhir:v "Encounter.diagnosis.condition" ] ;
fhir:path [ fhir:v "Encounter.diagnosis.condition" ] ;
fhir:short [ fhir:v "與就醫事件相關的診斷或處置" ] ;
fhir:definition [ fhir:v "就醫的原因,使用其他resource的資訊以具體說明。對於住院,這就是住院診斷。指示通常是一個病情、問題或診斷(Condition)(在evidence.detail中參照其他resource),或一個處置(Procedure)。" ] ;
fhir:comment [ fhir:v "對於需要知道哪個是主要診斷的系統來說,這些將用標準擴充primaryDiagnosis(這是一個序列值而不是一個標誌,1=主要診斷)來標記。" ] ;
      ( fhir:type [
fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
        ( fhir:targetProfile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Condition-twcore"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Condition-twcore>         ] [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Procedure-twcore"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Procedure-twcore>         ] )       ] )     ] [
fhir:id [ fhir:v "Encounter.diagnosis.use" ] ;
fhir:path [ fhir:v "Encounter.diagnosis.use" ] ;
fhir:short [ fhir:v "此診斷在病人就醫事件中的作用(例如:住院、收費、出院...)。" ] ;
fhir:definition [ fhir:v "此診斷在病人就醫事件中的作用(例如:住院、收費、出院...)。" ] ;
      ( fhir:type [
fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ] ;
        ( fhir:profile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw>         ] )       ] ) ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "DiagnosisRole" ]         ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"^^xsd:anyURI ] ;
fhir:value [ fhir:v "true"^^xsd:boolean ]         ] ) ;
fhir:strength [ fhir:v "preferred" ] ;
fhir:description [ fhir:v "此情況所代表的診斷型別;鼓勵使用[DiagnosisRole](http://hl7.org/fhir/R4/valueset-diagnosis-role.html)值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/diagnosis-role"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/diagnosis-role>         ]       ]     ] [
fhir:id [ fhir:v "Encounter.diagnosis.rank" ] ;
fhir:path [ fhir:v "Encounter.diagnosis.rank" ] ;
fhir:short [ fhir:v "診斷的排序(針對每個角色型別)" ] ;
fhir:definition [ fhir:v "診斷的排序(針對每個角色型別)" ]     ] [
fhir:id [ fhir:v "Encounter.account" ] ;
fhir:path [ fhir:v "Encounter.account" ] ;
fhir:short [ fhir:v "可用於為此病人就醫事件計費的一組帳戶" ] ;
fhir:definition [ fhir:v "可用於為此病人就醫事件計費的一組帳戶" ] ;
fhir:comment [ fhir:v "計費系統可依據內部業務規則,選擇將與就醫(Encounter)相關的應計費項目分配給不同的參照帳戶。" ]     ] [
fhir:id [ fhir:v "Encounter.hospitalization" ] ;
fhir:path [ fhir:v "Encounter.hospitalization" ] ;
fhir:short [ fhir:v "關於入院接受健康照護服務的細節" ] ;
fhir:definition [ fhir:v "關於入院接受健康照護服務的細節" ] ;
fhir:comment [ fhir:v "就醫可能不僅僅包括住院治療。其他情境像是門診病人、社區診所和老年照護機構等情況也包括在內。在此就醫期間記錄的持續時間含概此住院紀錄的整個範圍。" ] ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.hospitalization.id" ] ;
fhir:path [ fhir:v "Encounter.hospitalization.id" ] ;
fhir:short [ fhir:v "唯一可識別ID,以供資料項目間相互參照。" ] ;
fhir:definition [ fhir:v "resource中資料項目的唯一ID(用於內部參照)。這可以是任何不含空格的字串。" ]     ] [
fhir:id [ fhir:v "Encounter.hospitalization.extension" ] ;
fhir:path [ fhir:v "Encounter.hospitalization.extension" ] ;
fhir:short [ fhir:v "擴充的資料項目" ] ;
fhir:definition [ fhir:v "可用於表示不屬於此資料項目基本定義的附加資訊。為了擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。" ] ;
fhir:comment [ fhir:v "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。" ]     ] [
fhir:id [ fhir:v "Encounter.hospitalization.modifierExtension" ] ;
fhir:path [ fhir:v "Encounter.hospitalization.modifierExtension" ] ;
fhir:short [ fhir:v "此擴充的資料項目可能會完全修正或改變其他資料項目的意涵,需特別留意。" ] ;
fhir:definition [ fhir:v "可以用來表示不屬於資料項目的基本定義的附加資訊,並且修改對它所內嵌(contained)的資料項目的理解和(或)對包含資料項目之後續使用的理解。通常,修飾用的資料項目提供否定或限定。為了使擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。處理resource的應用程式被要求檢查修飾用的擴充資料項目。 \r\n 修飾用的擴充資料項目 **必須沒有(SHALL NOT)** 改變resource或DomainResource上任何資料項目的含義(包括不能改變modifierExtension本身的含義)。" ] ;
fhir:comment [ fhir:v "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。" ] ;
fhir:requirements [ fhir:v "修飾用的資料項目擴充將不能安全地忽略的擴充與絕大多數可以安全地忽略的擴充明確區分開來。透過消除禁止實作者擴充存在的需求來促進可互通性。更多訊息,請參見[修飾用的資料項目擴充之定義](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)。" ]     ] [
fhir:id [ fhir:v "Encounter.hospitalization.preAdmissionIdentifier" ] ;
fhir:path [ fhir:v "Encounter.hospitalization.preAdmissionIdentifier" ] ;
fhir:short [ fhir:v "住院前識別碼" ] ;
fhir:definition [ fhir:v "住院前識別碼" ]     ] [
fhir:id [ fhir:v "Encounter.hospitalization.origin" ] ;
fhir:path [ fhir:v "Encounter.hospitalization.origin" ] ;
fhir:short [ fhir:v "病人住院前來自的地點/機構" ] ;
fhir:definition [ fhir:v "病人住院前來自的地點/機構" ] ;
      ( fhir:type [
fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
        ( fhir:targetProfile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore>         ] [
fhir:v "http://hl7.org/fhir/StructureDefinition/Location"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Location>         ] )       ] )     ] [
fhir:id [ fhir:v "Encounter.hospitalization.admitSource" ] ;
fhir:path [ fhir:v "Encounter.hospitalization.admitSource" ] ;
fhir:short [ fhir:v "病人從哪裡住院(醫生轉介、轉院)?" ] ;
fhir:definition [ fhir:v "病人從哪裡住院(醫生轉介、轉院)?" ] ;
      ( fhir:type [
fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ] ;
        ( fhir:profile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw>         ] )       ] ) ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "AdmitSource" ]         ] ) ;
fhir:strength [ fhir:v "preferred" ] ;
fhir:description [ fhir:v "病人從哪裡住院;鼓勵使用[AdmitSource](http://hl7.org/fhir/R4/valueset-encounter-admit-source.html)值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/encounter-admit-source"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/encounter-admit-source>         ]       ]     ] [
fhir:id [ fhir:v "Encounter.hospitalization.reAdmission" ] ;
fhir:path [ fhir:v "Encounter.hospitalization.reAdmission" ] ;
fhir:short [ fhir:v "已發生的醫院再入院型別(如果有的話)。如果該值不存在,則不被認定為再入院。" ] ;
fhir:definition [ fhir:v "此次住院是否為再入院,如果知道的話,請說明原因。" ] ;
      ( fhir:type [
fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ] ;
        ( fhir:profile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw>         ] )       ] ) ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "ReAdmissionType" ]         ] ) ;
fhir:strength [ fhir:v "example" ] ;
fhir:description [ fhir:v "這次住院就醫的再入院原因;可參考[hl7VS-re-admissionIndicator](https://terminology.hl7.org/4.0.0/ValueSet-v2-0092.html)值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。" ] ;
fhir:valueSet [
fhir:v "http://terminology.hl7.org/ValueSet/v2-0092"^^xsd:anyURI ;
fhir:link <http://terminology.hl7.org/ValueSet/v2-0092>         ]       ]     ] [
fhir:id [ fhir:v "Encounter.hospitalization.dietPreference" ] ;
fhir:path [ fhir:v "Encounter.hospitalization.dietPreference" ] ;
fhir:short [ fhir:v "病人報告的飲食偏好" ] ;
fhir:definition [ fhir:v "病人報告的飲食偏好" ] ;
fhir:comment [ fhir:v "例如:一個病人可能同時要求無乳製品和無堅果的飲食偏好(不相互排斥)。" ] ;
fhir:requirements [ fhir:v "用於追蹤病人的飲食限制和/或偏好。如果要完整描述病人在住院期間的營養需求,應該使用與Encounter連結的nutritionOrder resource。" ] ;
      ( fhir:type [
fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ] ;
        ( fhir:profile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw>         ] )       ] ) ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "PatientDiet" ]         ] ) ;
fhir:strength [ fhir:v "example" ] ;
fhir:description [ fhir:v "醫療、文化或道德方面的食物偏好,以幫助滿足飲食要求;可參考[Diet](http://hl7.org/fhir/R4/valueset-encounter-diet.html)值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/encounter-diet"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/encounter-diet>         ]       ]     ] [
fhir:id [ fhir:v "Encounter.hospitalization.specialCourtesy" ] ;
fhir:path [ fhir:v "Encounter.hospitalization.specialCourtesy" ] ;
fhir:short [ fhir:v "特別禮遇(貴賓、董事會成員)" ] ;
fhir:definition [ fhir:v "特別禮遇(貴賓、董事會成員)" ] ;
      ( fhir:type [
fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ] ;
        ( fhir:profile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw>         ] )       ] ) ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Courtesies" ]         ] ) ;
fhir:strength [ fhir:v "preferred" ] ;
fhir:description [ fhir:v "特別禮遇;鼓勵使用[SpecialCourtesy](http://hl7.org/fhir/R4/valueset-encounter-special-courtesy.html)值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/encounter-special-courtesy"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/encounter-special-courtesy>         ]       ]     ] [
fhir:id [ fhir:v "Encounter.hospitalization.specialArrangement" ] ;
fhir:path [ fhir:v "Encounter.hospitalization.specialArrangement" ] ;
fhir:short [ fhir:v "輪椅、翻譯人員、擔架等。" ] ;
fhir:definition [ fhir:v "對此次住院就醫提出的任何特殊要求,如提供特定設備或其他東西。" ] ;
      ( fhir:type [
fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ] ;
        ( fhir:profile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw>         ] )       ] ) ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Arrangements" ]         ] ) ;
fhir:strength [ fhir:v "preferred" ] ;
fhir:description [ fhir:v "特殊安排;鼓勵使用[SpecialArrangements](http://hl7.org/fhir/R4/valueset-encounter-special-arrangements.html)值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/encounter-special-arrangements"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/encounter-special-arrangements>         ]       ]     ] [
fhir:id [ fhir:v "Encounter.hospitalization.destination" ] ;
fhir:path [ fhir:v "Encounter.hospitalization.destination" ] ;
fhir:short [ fhir:v "病人出院地點/機構" ] ;
fhir:definition [ fhir:v "病人出院地點/機構" ]     ] [
fhir:id [ fhir:v "Encounter.hospitalization.dischargeDisposition" ] ;
fhir:path [ fhir:v "Encounter.hospitalization.dischargeDisposition" ] ;
fhir:short [ fhir:v "出院後的地點類別或種類" ] ;
fhir:definition [ fhir:v "出院後的地點類別或種類" ] ;
      ( fhir:type [
fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ] ;
        ( fhir:profile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw>         ] )       ] ) ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ] ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "DischargeDisp" ]         ] ) ;
fhir:strength [ fhir:v "example" ] ;
fhir:description [ fhir:v "出院處置;可參考[DischargeDisposition](http://hl7.org/fhir/R4/valueset-encounter-discharge-disposition.html)值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/encounter-discharge-disposition"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/encounter-discharge-disposition>         ]       ]     ] [
fhir:id [ fhir:v "Encounter.location" ] ;
fhir:path [ fhir:v "Encounter.location" ] ;
fhir:short [ fhir:v "病人曾去過的一個或多個地點" ] ;
fhir:definition [ fhir:v "此次就醫期間,病人曾去過的一個或多個地點" ] ;
fhir:comment [ fhir:v "透過指定一個型別「種類(kind)」的地點參照,例如「客戶的家」,以及encounter.class =「虛擬(virtual)」。" ] ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.location.id" ] ;
fhir:path [ fhir:v "Encounter.location.id" ] ;
fhir:short [ fhir:v "唯一可識別ID,以供資料項目間相互參照。" ] ;
fhir:definition [ fhir:v "resource中資料項目的唯一ID(用於內部參照)。這可以是任何不含空格的字串。" ]     ] [
fhir:id [ fhir:v "Encounter.location.extension" ] ;
fhir:path [ fhir:v "Encounter.location.extension" ] ;
fhir:short [ fhir:v "擴充的資料項目" ] ;
fhir:definition [ fhir:v "可用於表示不屬於此資料項目基本定義的附加資訊。為了擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。" ] ;
fhir:comment [ fhir:v "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。" ]     ] [
fhir:id [ fhir:v "Encounter.location.modifierExtension" ] ;
fhir:path [ fhir:v "Encounter.location.modifierExtension" ] ;
fhir:short [ fhir:v "此擴充的資料項目可能會完全修正或改變其他資料項目的意涵,需特別留意。" ] ;
fhir:definition [ fhir:v "可以用來表示不屬於資料項目的基本定義的附加資訊,並且修改對它所內嵌(contained)的資料項目的理解和(或)對包含資料項目之後續使用的理解。通常,修飾用的資料項目提供否定或限定。為了使擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。處理resource的應用程式被要求檢查修飾用的擴充資料項目。 \r\n 修飾用的擴充資料項目 **必須沒有(SHALL NOT)** 改變resource或DomainResource上任何資料項目的含義(包括不能改變modifierExtension本身的含義)。" ] ;
fhir:comment [ fhir:v "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。" ] ;
fhir:requirements [ fhir:v "修飾用的資料項目擴充將不能安全地忽略的擴充與絕大多數可以安全地忽略的擴充明確區分開來。透過消除禁止實作者擴充存在的需求來促進可互通性。更多訊息,請參見[修飾用的資料項目擴充之定義](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)。" ]     ] [
fhir:id [ fhir:v "Encounter.location.location" ] ;
fhir:path [ fhir:v "Encounter.location.location" ] ;
fhir:short [ fhir:v "就醫發生的地點" ] ;
fhir:definition [ fhir:v "就醫發生的地點" ] ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.location.status" ] ;
fhir:path [ fhir:v "Encounter.location.status" ] ;
fhir:definition [ fhir:v "參與者在指定期間於特定地點的狀態。如果參與者已不在此地點,那麼其期間將有一個結束日期/時間。" ] ;
fhir:comment [ fhir:v "當病人不再在某一地點活動時,則要輸入期間結束日期,狀態可改為完成。" ] ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "EncounterLocationStatus" ]         ] ) ;
fhir:strength [ fhir:v "required" ] ;
fhir:description [ fhir:v "就醫地點的狀態;應填入[EncounterLocationStatus](http://hl7.org/fhir/R4/valueset-encounter-location-status.html)值集中的其中一個代碼。" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/encounter-location-status|4.0.1"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/encounter-location-status|4.0.1>         ]       ]     ] [
fhir:id [ fhir:v "Encounter.location.physicalType" ] ;
fhir:path [ fhir:v "Encounter.location.physicalType" ] ;
fhir:short [ fhir:v "地點的實體型別(通常是地點的層級—床位、房間、病房等)。" ] ;
fhir:definition [ fhir:v "這將被用來指定所需的地點層級(床位/病房/房間/等),以簡化訊息傳遞或查詢。" ] ;
fhir:comment [ fhir:v "此資訊是從Location resource中反正規化(de-normalized),以較易理解Encounter resource及支持訊息傳遞或查詢的處理。地點的層級結構中可能有許多層級,這可能只挑選特定使用情境所需的特定層級。" ] ;
      ( fhir:type [
fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ] ;
        ( fhir:profile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw>         ] )       ] ) ;
fhir:binding [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "PhysicalType" ]         ] ) ;
fhir:strength [ fhir:v "example" ] ;
fhir:description [ fhir:v "地點的實體型別;可參考[LocationType](http://hl7.org/fhir/R4/valueset-location-physical-type.html)值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。" ] ;
fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/location-physical-type"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/location-physical-type>         ]       ]     ] [
fhir:id [ fhir:v "Encounter.location.period" ] ;
fhir:path [ fhir:v "Encounter.location.period" ] ;
fhir:short [ fhir:v "病人出現在此地點的時段" ] ;
fhir:definition [ fhir:v "病人出現在此地點的時段" ]     ] [
fhir:id [ fhir:v "Encounter.serviceProvider" ] ;
fhir:path [ fhir:v "Encounter.serviceProvider" ] ;
fhir:short [ fhir:v "負責這次就醫的機構" ] ;
fhir:definition [ fhir:v "對此次就醫的服務負主要責任的機構。這可能與病人紀錄中的機構相同,但也可能不同,例如:如果執行服務的人員來自外部機構(可單獨計費)的外部諮詢。請參考Bundle範例顯示結腸鏡檢查就醫縮略集。" ] ;
      ( fhir:type [
fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
        ( fhir:targetProfile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore>         ] )       ] ) ;
fhir:mustSupport [ fhir:v "true"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "Encounter.partOf" ] ;
fhir:path [ fhir:v "Encounter.partOf" ] ;
fhir:short [ fhir:v "此就醫是哪次就醫的一部份?" ] ;
fhir:definition [ fhir:v "此就醫是哪次就醫的一部分(行政上或時間上)" ] ;
fhir:comment [ fhir:v "這也用於將小孩的就醫與母親的就醫作關聯。 詳情請參考Patient resource中的Notes小節。" ] ;
      ( fhir:type [
        ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy"^^xsd:anyURI ] ;
fhir:value [ fhir:v "true"^^xsd:boolean ]         ] ) ;
fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
        ( fhir:targetProfile [
fhir:v "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Encounter-twcore"^^xsd:anyURI ;
fhir:link <https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Encounter-twcore>         ] )       ] )     ] )
  ] . #