PackagesCanonicalsLogsProblems
    Packages
    tw.gov.mohw.emr@0.1.0
    https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/Encounter-EP
{
  "description": "此Profile繼承於臺灣核心-就醫事件(TW Core Encounter) ,並用於描述電子處方箋的門診基本資料[[*FMM1*](http://build.fhir.org/versions.html#maturity)]",
  "_filename": "StructureDefinition-Encounter-EP.json",
  "package_name": "tw.gov.mohw.emr",
  "date": "2023-10-30",
  "derivation": "constraint",
  "publisher": "衛生福利部",
  "fhirVersion": "4.0.1",
  "name": "EncounterEP",
  "mapping": [ {
    "uri": "http://hl7.org/fhir/workflow",
    "name": "Workflow Pattern",
    "identity": "workflow"
  }, {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  }, {
    "uri": "http://hl7.org/fhir/fivews",
    "name": "FiveWs Pattern Mapping",
    "identity": "w5"
  }, {
    "uri": "http://hl7.org/v2",
    "name": "HL7 v2 Mapping",
    "identity": "v2"
  } ],
  "abstract": false,
  "type": "Encounter",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": "電子處方箋-門診基本資料",
  "package_version": "0.1.0",
  "snapshot": {
    "element": [ {
      "constraint": [ {
        "key": "dom-2",
        "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
        "xpath": "not(parent::f:contained and f:contained)",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.contained.empty()"
      }, {
        "key": "dom-3",
        "human": "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",
        "xpath": "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='#'])]))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "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()"
      }, {
        "key": "dom-4",
        "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
        "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"
      }, {
        "key": "dom-5",
        "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
        "xpath": "not(exists(f:contained/*/f:meta/f:security))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.meta.security.empty()"
      }, {
        "key": "dom-6",
        "human": "A resource should have narrative for robust management",
        "xpath": "exists(f:text/h:div)",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "warning",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
          "valueBoolean": true
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
          "valueMarkdown": "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."
        } ],
        "expression": "text.`div`.exists()"
      } ],
      "path": "Encounter",
      "min": 0,
      "definition": "病人和健康照護服務提供者之間的互動,目的是提供健康照護服務或評估病人的健康狀況。",
      "isModifier": false,
      "short": "提供病人服務的一種互動",
      "mapping": [ {
        "map": "Entity. Role, or Act",
        "identity": "rim"
      }, {
        "map": "Event",
        "identity": "workflow"
      }, {
        "map": "Encounter[@moodCode='EVN']",
        "identity": "rim"
      } ],
      "alias": [ "Visit" ],
      "max": "*",
      "id": "Encounter",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Encounter"
      },
      "isSummary": false
    }, {
      "path": "Encounter.id",
      "min": 0,
      "definition": "resource的邏輯ID,在resource的URL中使用。一旦指定,這個值永遠不會改變。",
      "isModifier": false,
      "short": "不重複的ID用以識別儲存在特定FHIR Server中的Encounter紀錄,通常又稱為邏輯性ID。",
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "id"
        } ]
      } ],
      "max": "1",
      "id": "Encounter.id",
      "comment": "一個resource使用新增操作(create operation)提交給伺服器時,此resource沒有id,它的id在resource被創建後由伺器分配/指定。",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.id"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.meta",
      "min": 0,
      "definition": "關於resource的metadata。這是由基礎建設維護的內容。內容的更改可能並不總是與resource的版本更改相關聯。",
      "isModifier": false,
      "short": "此Encounter Resource的metadata",
      "type": [ {
        "code": "Meta"
      } ],
      "max": "1",
      "id": "Encounter.meta",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.meta"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.implicitRules",
      "min": 0,
      "definition": "構建resource時遵循的一系列規則的參照,在處理內容時必須理解這些規則。通常這是對IG所定義之特殊規則及其他profiles的參照。",
      "isModifier": true,
      "short": "創建此內容所依據的一組規則",
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "Encounter.implicitRules",
      "comment": "宣告這套規則限制了內容只能被有限的交易夥伴所理解。這從本質上限制了資料的長期有用性。然而,現有的健康生態體系高度分裂,還沒有準備好以普遍可計算的方式定義、收集和交換資料。只要有可能,實作者和/或規範編寫者應該避免使用這個資料項目。通常在使用時,此URL是對IG的參照,此IG將這些特殊規則與其他profiles、value sets等一起定義為其敘述的一部分。",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.implicitRules"
      },
      "isModifierReason": "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",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.language",
      "min": 0,
      "definition": "編寫此resource的語言",
      "isModifier": false,
      "short": "用以表述Encounter Resource內容的語言。",
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/languages",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
          "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "Language"
        } ],
        "description": "人類語言;鼓勵使用CommonLanguages代碼表中的代碼,但不強制一定要使用此代碼表,你也可使用其他代碼表的代碼或單純以文字表示。"
      },
      "max": "1",
      "id": "Encounter.language",
      "comment": "提供語言是為了支援索引和可存取性(通常,文字表述轉語音等服務使用此語言標籤)。html lanuage tag適用於此敘述。resource上的語言標籤可用於指定從resource中的資料所產成的其他表述之語言。不是所有的內容都必須使用此語言。不應該假定Resource.language自動適用於敘述。如果指定語言,它也應該被指定在html中的div資料項目(關於xml:lang和html lang屬性之間的關係,見HTML5中的規則)。",
      "example": [ {
        "label": "Value",
        "valueString": "zh-TW"
      } ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.language"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.text",
      "min": 0,
      "definition": "人可讀的敘述,包含resource的摘要,可用於向人表述resource的內容。敘述不需要對所有的結構化資料進行編碼,但需要包含足夠的細節使人在閱讀敘述時理解「臨床安全性」。resource定義有哪些內容應該在敘述中表示,以確保臨床安全。",
      "isModifier": false,
      "short": "Encounter Resource之內容摘要以供人閱讀",
      "mapping": [ {
        "map": "Act.text?",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Narrative"
      } ],
      "alias": [ "narrative", "html", "xhtml", "display" ],
      "max": "1",
      "id": "Encounter.text",
      "comment": "內嵌(contained)的resource沒有敘述,非內嵌(contained)的resource則**建議應該(SHOULD)**有敘述。有時resource可能只有文字表述,很少或沒有額外的結構化資料(只要滿足所有minOccurs=1的資料項目)。這可能出現在舊系統的資料,當資訊以 「文字表述區塊(text blob) 」的形式被取得,或者文字表述是原始輸入或說明,而編碼資訊稍後再添加。",
      "base": {
        "max": "1",
        "min": 0,
        "path": "DomainResource.text"
      },
      "isSummary": false
    }, {
      "path": "Encounter.contained",
      "min": 0,
      "definition": "這些resource內嵌(contains)的resource不會另外存於任何FHIR伺服器,意即它們無法在任何FHIR伺服器中被找到,也無法有自己獨立的資料異動/交易(transaction)範圍。",
      "isModifier": false,
      "short": "內嵌的(contained)、行內的Resources",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Resource"
      } ],
      "alias": [ "inline resources", "anonymous resources", "contained resources" ],
      "max": "*",
      "id": "Encounter.contained",
      "comment": "當內容可以從任何FHIR伺服器找到時,不應該以內嵌(contained)resource的方式呈現,因為一旦失去識別,再次恢復它是非常困難的(並且取決於情境)。內嵌(contained)的resource可在它們的meta資料項目中表述profiles和tag,但不應該有安全標號(security labels)。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.contained"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Encounter.extension",
      "min": 0,
      "definition": "可用於表示不屬於此resource基本定義的額外資訊。為了擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,**必須(SHALL)** 滿足一系列要求。",
      "isModifier": false,
      "short": "擴充的資料項目",
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Encounter.extension",
      "comment": "任何應用程式、專案或標準使用擴充時,都不應該帶有任何負面的聯想。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Encounter.modifierExtension",
      "requirements": "修飾用的資料項目擴充允許將不能安全地忽略的擴充,與絕大多數可以安全地忽略的擴充明確區分開來。這樣做有助於促進可互操作性,因為無需禁止實作者使用擴充,想要瞭解更多資訊,請參見[修飾用的資料項目擴充之定義](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)。",
      "min": 0,
      "definition": "可以用來表示不屬於此resource的基本定義的額外資訊,並修改包含它所內嵌(contained)的資料項目的理解和/或對包含資料項目之後續使用的理解。通常修飾用的資料項目提供否定或限定的資訊。為了使擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。雖然任何實作者都可以定義一個擴充,但在定義擴充時 **必須(SHALL)** 滿足一組要求。處理resource的應用程式需要檢查修飾用的擴充資料項目。  \r\n修飾用的擴充資料項目 **必須沒有(SHALL NOT)** 改變resource或DomainResource上任何資料項目的含義(包括不能改變modifierExtension本身的含義)。",
      "isModifier": true,
      "short": "此擴充的資料項目可能會完全修正或改變其他資料項目的意涵,需特別留意。",
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Encounter.modifierExtension",
      "comment": "任何應用程式、專案或標準使用擴充時,都不應該帶有任何負面的聯想。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.identifier",
      "min": 0,
      "definition": "此就醫事件的識別碼",
      "isModifier": false,
      "short": "此就醫事件的識別碼。[應填入就醫識別碼與健保卡就醫序號]",
      "mapping": [ {
        "map": "Event.identifier",
        "identity": "workflow"
      }, {
        "map": "FiveWs.identifier",
        "identity": "w5"
      }, {
        "map": "PV1-19",
        "identity": "v2"
      }, {
        "map": ".id",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "mustSupport": true,
      "max": "2",
      "id": "Encounter.identifier",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Encounter.identifier"
      },
      "isSummary": true
    }, {
      "path": "Encounter.identifier.id",
      "min": 0,
      "definition": "resource中資料項目的唯一ID(用於內部參照)。這可以是任何不含空格的字串。",
      "isModifier": false,
      "short": "唯一可識別ID,以供資料項目間相互參照。",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Encounter.identifier.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Encounter.identifier.extension",
      "min": 0,
      "definition": "擴充的資料項目",
      "isModifier": false,
      "short": "擴充的資料項目",
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Encounter.identifier.extension",
      "comment": "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.identifier.use",
      "requirements": "允許從一組識別碼中為特定的使用情境選擇適當的識別碼",
      "min": 0,
      "definition": "這個唯一識別碼(identifier)的用途",
      "isModifier": true,
      "short": "usual | official | temp | secondary | old (如果知道)",
      "mapping": [ {
        "map": "N/A",
        "identity": "v2"
      }, {
        "map": "Role.code or implied by context",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "IdentifierUse"
        } ],
        "description": "如果知道,請說明此識別碼的用途;應填入所綁定值集中的其中一個代碼。"
      },
      "max": "1",
      "id": "Encounter.identifier.use",
      "comment": "應用程式可以假定一個識別碼是永久的,除非它明確說它是暫時的。",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Identifier.use"
      },
      "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.identifier.type",
      "requirements": "允許使用者在不知道識別碼系統的情況下利用識別碼",
      "min": 0,
      "definition": "識別碼的代碼型別,用於決定特定目的適用的識別碼。",
      "isModifier": false,
      "short": "識別碼(identifier)的型別說明",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE",
        "identity": "v2"
      }, {
        "map": "CD",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw" ]
      } ],
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "IdentifierType"
        } ],
        "description": "應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。"
      },
      "max": "1",
      "id": "Encounter.identifier.type",
      "condition": [ "ele-1" ],
      "comment": "這個資料項目只涉及識別碼的一般類別。它 **必須沒有(SHALL NOT)** 被用於與Identifier.system 1..1對應的代碼。一些識別碼可能由於常見的用法而屬於多個類別。在系統是已知的情況下,型別是不必要的,因為型別總是系統定義的一部分。然而,系統經常需要處理系統不為人知的識別碼。型別和系統之間不是1:1的關係,因為許多不同的系統有相同的型別。",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Identifier.type"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.identifier.system",
      "requirements": "有許多識別碼的集合。為了進行兩個識別碼的對應,我們需要知道我們處理的是哪一組。系統指明了一個特定的唯一識別碼集。",
      "min": 1,
      "definition": "建立值的命名空間-即一個描述一組值的唯一URL",
      "isModifier": false,
      "short": "識別碼(identifier)的命名空間(namespace)",
      "mapping": [ {
        "map": "CX.4 / EI-2-4",
        "identity": "v2"
      }, {
        "map": "II.root or Role.id.root",
        "identity": "rim"
      }, {
        "map": "./IdentifierType",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Encounter.identifier.system",
      "comment": "Identifier.system總是區分大小寫",
      "example": [ {
        "label": "General",
        "valueUri": "http://www.acme.com/identifiers/patient"
      } ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Identifier.system"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.identifier.value",
      "min": 1,
      "definition": "識別碼中通常與使用者有關的部分,在系統情境內是唯一的。",
      "isModifier": false,
      "short": "唯一值",
      "mapping": [ {
        "map": "CX.1 / EI.1",
        "identity": "v2"
      }, {
        "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)",
        "identity": "rim"
      }, {
        "map": "./Value",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Encounter.identifier.value",
      "comment": "如果此值是一個完整的URI,那麼此系統 **必須(SHALL)** 是urn:ietf:rfc:3986。此值的主要目的是為了可運算的對應。因此,為了比較的目的,它可能會被正規化(例如:去除不重要的空白、破折號等)。一個為人顯示的格式化的值可以使用[Rendered Value](http://hl7.org/fhir/R4/extension-rendered-value.html)擴充來傳達。除非對Identifier.system的了解使處理者確信不區分大小寫的處理是安全的,否則Identifier.value應被視為區分大小寫。",
      "example": [ {
        "label": "General",
        "valueString": "123456"
      } ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Identifier.value"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.identifier.period",
      "min": 0,
      "definition": "識別碼有效/曾經有效使用的時段或期間",
      "isModifier": false,
      "short": "此就醫事件識別碼(identifier)的使用效期",
      "mapping": [ {
        "map": "CX.7 + CX.8",
        "identity": "v2"
      }, {
        "map": "Role.effectiveTime or implied by context",
        "identity": "rim"
      }, {
        "map": "./StartDate and ./EndDate",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "Period"
      } ],
      "max": "1",
      "id": "Encounter.identifier.period",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Identifier.period"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.identifier.assigner",
      "min": 0,
      "definition": "簽發/管理識別碼的機構",
      "isModifier": false,
      "short": "簽發identifier的機構(可以只是文字表述)",
      "mapping": [ {
        "map": "CX.4 / (CX.4,CX.9,CX.10)",
        "identity": "v2"
      }, {
        "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field.  Also Role.scoper",
        "identity": "rim"
      }, {
        "map": "./IdentifierIssuingAuthority",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore" ]
      } ],
      "max": "1",
      "id": "Encounter.identifier.assigner",
      "comment": "Identifier.assigner可以省略.reference資料項目,只包含一個.display資料項目,反映指定機構的名稱或其他文字表述資訊。",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Identifier.assigner"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.status",
      "min": 1,
      "definition": "planned | arrived | triaged | in-progress | onleave | finished | cancelled +.",
      "isModifier": true,
      "short": "planned | arrived | triaged | in-progress | onleave | finished | cancelled +",
      "mapping": [ {
        "map": "Event.status",
        "identity": "workflow"
      }, {
        "map": "FiveWs.status",
        "identity": "w5"
      }, {
        "map": "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",
        "identity": "v2"
      }, {
        "map": ".statusCode",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/encounter-status|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "EncounterStatus"
        } ],
        "description": "就醫現況的代碼;應填入所綁定值集中的其中一個代碼"
      },
      "max": "1",
      "id": "Encounter.status",
      "comment": "請注意,內部業務規則將決定於狀態(也包括類別)間可能發生的適當轉換。",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Encounter.status"
      },
      "isModifierReason": "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",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.statusHistory",
      "min": 0,
      "definition": "Encounter resource包含狀態歷史,因而不需閱讀resource的歷史版本,甚至不需讓伺服器儲存這些版本。",
      "isModifier": false,
      "short": "過去的就醫狀態清單",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "*",
      "id": "Encounter.statusHistory",
      "comment": "總是可在resource的目前版本找到目前狀態,而不是在狀態歷史中找到。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Encounter.statusHistory"
      },
      "isSummary": false
    }, {
      "path": "Encounter.statusHistory.id",
      "min": 0,
      "definition": "resource中資料項目的唯一ID(用於內部參照)。這可以是任何不含空格的字串。",
      "isModifier": false,
      "short": "唯一可識別ID,以供資料項目間相互參照。",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Encounter.statusHistory.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Encounter.statusHistory.extension",
      "min": 0,
      "definition": "可用於表示不屬於此資料項目基本定義的附加資訊。為了擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。",
      "isModifier": false,
      "short": "擴充的資料項目",
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Encounter.statusHistory.extension",
      "comment": "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Encounter.statusHistory.modifierExtension",
      "requirements": "修飾用的資料項目擴充將不能安全地忽略的擴充與絕大多數可以安全地忽略的擴充明確區分開來。透過消除禁止實作者擴充存在的需求來促進可互通性。更多訊息,請參見[修飾用的資料項目擴充之定義](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)。",
      "min": 0,
      "definition": "可以用來表示不屬於資料項目的基本定義的附加資訊,並且修改對它所內嵌(contained)的資料項目的理解和(或)對包含資料項目之後續使用的理解。通常,修飾用的資料項目提供否定或限定。為了使擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。處理resource的應用程式被要求檢查修飾用的擴充資料項目。 \r\n 修飾用的擴充資料項目 **必須沒有(SHALL NOT)** 改變resource或DomainResource上任何資料項目的含義(包括不能改變modifierExtension本身的含義)。",
      "isModifier": true,
      "short": "此擴充的資料項目可能會完全修正或改變其他資料項目的意涵,需特別留意。",
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Encounter.statusHistory.modifierExtension",
      "comment": "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.statusHistory.status",
      "min": 1,
      "definition": "planned | arrived | triaged | in-progress | onleave | finished | cancelled +",
      "isModifier": false,
      "short": "planned | arrived | triaged | in-progress | onleave | finished | cancelled +",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/encounter-status|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "EncounterStatus"
        } ],
        "description": "就醫現狀的代碼;應填入所綁定值集中的其中一個代碼"
      },
      "max": "1",
      "id": "Encounter.statusHistory.status",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Encounter.statusHistory.status"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.statusHistory.period",
      "min": 1,
      "definition": "該事件處於特定狀態的時間",
      "isModifier": false,
      "short": "該事件處於特定狀態的時間",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Period"
      } ],
      "max": "1",
      "id": "Encounter.statusHistory.period",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Encounter.statusHistory.period"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.class",
      "min": 1,
      "definition": "病人就醫分類的概念,例如:門診病人、住院病人、急診病人、居家照護或其他因地方不同而產生的概念。\r\n健保案件分類,如:01:西醫一般案件 02:西醫急診 03: 西醫門診手術 04:西醫慢性病 05:洗腎 06:結核病 08:慢性病連續處方調劑 09:西醫其他專案 11:牙醫一般案件 12:牙醫急診 13:牙醫門診手術等。",
      "isModifier": false,
      "short": "病人就醫的分類。[應填入案件分類]。(如為自費案件請使用代碼\"00\")",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6",
        "identity": "v2"
      }, {
        "map": "CV",
        "identity": "rim"
      }, {
        "map": "fhir:Coding rdfs:subClassOf dt:CDCoding",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "Coding",
        "profile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw" ]
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "extensible",
        "valueSet": "https://twcore.mohw.gov.tw/ig/emr/ValueSet/CaseType",
        "description": "案件分類;應填入[CaseType](https://silcoet.ntunhs.edu.tw/HEALTHYCloud/ValueSet-casetype.html)值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。"
      },
      "max": "1",
      "id": "Encounter.class",
      "condition": [ "ele-1" ],
      "comment": "代碼可以在列舉清單(enumerations)或代碼清單(code lists)中非常隨意地定義,直至有非常正式的定義,例如:SNOMED CT—更多資訊見HL7 v3核心原則(Core Principles )。編碼的排序是未定義的因而 **必須沒有(SHALL NOT)** 被用來推斷意義。一般來說,最多只有一個編碼值(coding values)會被標記為UserSelected = true。",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Encounter.class"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.classHistory",
      "min": 0,
      "definition": "可透過類別歷史而不需要透過resource歷史紀錄來追蹤就醫的轉變,這將用於一個案例,即住院急診,然後轉住院的情況。這樣做而不重新啟動一個新的就醫,可以確保任何實驗室/診斷結果可以更容易地跟隨病人,不需要重新處理,也不會在從急診到住院的出院過程中丟失或取消。",
      "isModifier": false,
      "short": "過去就醫類別的列表",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "*",
      "id": "Encounter.classHistory",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Encounter.classHistory"
      },
      "isSummary": false
    }, {
      "path": "Encounter.classHistory.id",
      "min": 0,
      "definition": "resource中資料項目的唯一ID(用於內部參照)。這可以是任何不含空格的字串。",
      "isModifier": false,
      "short": "唯一可識別ID,以供資料項目間相互參照。",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Encounter.classHistory.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Encounter.classHistory.extension",
      "min": 0,
      "definition": "可用於表示不屬於此資料項目基本定義的附加資訊。為了擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。",
      "isModifier": false,
      "short": "擴充的資料項目",
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Encounter.classHistory.extension",
      "comment": "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Encounter.classHistory.modifierExtension",
      "requirements": "修飾用的資料項目擴充將不能安全地忽略的擴充與絕大多數可以安全地忽略的擴充明確區分開來。透過消除禁止實作者擴充存在的需求來促進可互通性。更多訊息,請參見[修飾用的資料項目擴充之定義](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)。",
      "min": 0,
      "definition": "可以用來表示不屬於資料項目的基本定義的附加資訊,並且修改對它所內嵌(contained)的資料項目的理解和(或)對包含資料項目之後續使用的理解。通常,修飾用的資料項目提供否定或限定。為了使擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。處理resource的應用程式被要求檢查修飾用的擴充資料項目。 \r\n 修飾用的擴充資料項目 **必須沒有(SHALL NOT)** 改變resource或DomainResource上任何資料項目的含義(包括不能改變modifierExtension本身的含義)。",
      "isModifier": true,
      "short": "此擴充的資料項目可能會完全修正或改變其他資料項目的意涵,需特別留意。",
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Encounter.classHistory.modifierExtension",
      "comment": "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.classHistory.class",
      "min": 1,
      "definition": "inpatient | outpatient | ambulatory | emergency +.\r\n住院病人 | 門診病人 | 非臥床(可行走)病人醫療服務 | 急診 +",
      "isModifier": false,
      "short": "inpatient | outpatient | ambulatory | emergency +",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Coding"
      } ],
      "binding": {
        "strength": "extensible",
        "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActEncounterCode",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "EncounterClass"
        } ],
        "description": "就醫類別;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。"
      },
      "max": "1",
      "id": "Encounter.classHistory.class",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Encounter.classHistory.class"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.classHistory.period",
      "min": 1,
      "definition": "此就醫事件處於特定類別的時間",
      "isModifier": false,
      "short": "此就醫事件處於特定類別的時間",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Period"
      } ],
      "max": "1",
      "id": "Encounter.classHistory.period",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Encounter.classHistory.period"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.type",
      "min": 1,
      "definition": "就醫的特定型別(如電子郵件諮詢、手術日間照護、專業護理、復健)。",
      "isModifier": false,
      "short": "就醫的特定型別。[應填入科別 Department]",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE",
        "identity": "v2"
      }, {
        "map": "CD",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw" ]
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/encounter-type",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "EncounterType"
        } ],
        "description": "就醫的型別;可參考所綁定值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。"
      },
      "max": "1",
      "id": "Encounter.type",
      "condition": [ "ele-1" ],
      "comment": "由於有許多方法可以對就醫進行進一步的分類,所以這個資料項目的基數是0...* ,意即可不填寫或填寫數筆。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Encounter.type"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.serviceType",
      "min": 0,
      "definition": "對所提供的服務進行廣泛的分類(如心臟科)",
      "isModifier": false,
      "short": "服務的特定型別",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE",
        "identity": "v2"
      }, {
        "map": "CD",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw" ]
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "extensible",
        "valueSet": "https://twcore.mohw.gov.tw/ig/twcore/ValueSet/health-department-sct-tw",
        "description": "對提供的服務進行廣泛分類;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。"
      },
      "max": "1",
      "id": "Encounter.serviceType",
      "condition": [ "ele-1" ],
      "comment": "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Encounter.serviceType"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.priority",
      "min": 0,
      "definition": "表明就醫的急迫性",
      "isModifier": false,
      "short": "表明就醫的急迫性",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE",
        "identity": "v2"
      }, {
        "map": "CD",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw" ]
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActPriority",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "Priority"
        } ],
        "description": "表明就醫的迫切性;可參考所綁定值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。"
      },
      "max": "1",
      "id": "Encounter.priority",
      "condition": [ "ele-1" ],
      "comment": "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Encounter.priority"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.subject",
      "min": 1,
      "definition": "在場就醫的病人或實體集合(Group)",
      "isModifier": false,
      "short": "在場就醫的病人或實體集合(Group)",
      "mapping": [ {
        "map": "Event.subject",
        "identity": "workflow"
      }, {
        "map": "FiveWs.subject[x]",
        "identity": "w5"
      }, {
        "map": "PID-3",
        "identity": "v2"
      }, {
        "map": ".participation[typeCode=SBJ]/role[classCode=PAT]",
        "identity": "rim"
      }, {
        "map": "FiveWs.subject",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Patient-twcore", "http://hl7.org/fhir/StructureDefinition/Group" ]
      } ],
      "mustSupport": true,
      "alias": [ "patient" ],
      "max": "1",
      "id": "Encounter.subject",
      "comment": "雖然就醫總是關於病人,但在所有的使用情境中,病人實際上可能並不為人所知及可能有一群病人是匿名的(例如:匿名酗酒者的團體治療中—就醫紀錄是以人數/工作人員數計費,而具體病人的情境並不重要);或者在獸醫照護中,一群羊接受治療(動物沒有被單獨追蹤)。",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Encounter.subject"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.episodeOfCare",
      "min": 0,
      "definition": "當某一特定就醫應被歸類為某一特定照護事件的一部分時,應使用這一個資料項目。這種關聯可方便地將相關的就醫分類,以達到特定的目的,如政府報告、問題追蹤、透過共同的問題進行關聯,關聯通常會在照護事件之後記錄在就醫紀錄上,並在紀錄上分類;而不是將另一個就醫(照護事件可能橫跨多年)附件到照護事件紀錄。",
      "isModifier": false,
      "short": "此次就醫應記錄的照護事件",
      "mapping": [ {
        "map": "Event.context",
        "identity": "workflow"
      }, {
        "map": "FiveWs.context",
        "identity": "w5"
      }, {
        "map": "PV1-54, PV1-53",
        "identity": "v2"
      }, {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" ]
      } ],
      "max": "*",
      "id": "Encounter.episodeOfCare",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Encounter.episodeOfCare"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.basedOn",
      "min": 0,
      "definition": "此就醫事件所要滿足的請求(例如:轉診或手術請求)",
      "isModifier": false,
      "short": "開始此次就醫的服務請求(ServiceRequest)",
      "mapping": [ {
        "map": "Event.basedOn",
        "identity": "workflow"
      }, {
        "map": ".reason.ClinicalDocument",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/ServiceRequest" ]
      } ],
      "alias": [ "incomingReferral" ],
      "max": "*",
      "id": "Encounter.basedOn",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Encounter.basedOn"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.participant",
      "min": 0,
      "definition": "負責提供健康照護服務的人員名單",
      "isModifier": false,
      "short": "參與就醫的健康照護服務提供者之名單",
      "mapping": [ {
        "map": "Event.performer",
        "identity": "workflow"
      }, {
        "map": "ROL",
        "identity": "v2"
      }, {
        "map": ".participation[typeCode=PFM]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Encounter.participant",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Encounter.participant"
      },
      "isSummary": true
    }, {
      "path": "Encounter.participant.id",
      "min": 0,
      "definition": "resource中資料項目的唯一ID(用於內部參照)。這可以是任何不含空格的字串。",
      "isModifier": false,
      "short": "唯一可識別ID,以供資料項目間相互參照。",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Encounter.participant.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Encounter.participant.extension",
      "min": 0,
      "definition": "可用於表示不屬於此資料項目基本定義的附加資訊。為了擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。",
      "isModifier": false,
      "short": "擴充的資料項目",
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Encounter.participant.extension",
      "comment": "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Encounter.participant.modifierExtension",
      "requirements": "修飾用的資料項目擴充將不能安全地忽略的擴充與絕大多數可以安全地忽略的擴充明確區分開來。透過消除禁止實作者擴充存在的需求來促進可互通性。更多訊息,請參見[修飾用的資料項目擴充之定義](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)。",
      "min": 0,
      "definition": "可以用來表示不屬於資料項目的基本定義的附加資訊,並且修改對它所內嵌(contained)的資料項目的理解和(或)對包含資料項目之後續使用的理解。通常,修飾用的資料項目提供否定或限定。為了使擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。處理resource的應用程式被要求檢查修飾用的擴充資料項目。 \r\n 修飾用的擴充資料項目 **必須沒有(SHALL NOT)** 改變resource或DomainResource上任何資料項目的含義(包括不能改變modifierExtension本身的含義)。",
      "isModifier": true,
      "short": "此擴充的資料項目可能會完全修正或改變其他資料項目的意涵,需特別留意。",
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Encounter.participant.modifierExtension",
      "comment": "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.participant.type",
      "min": 0,
      "definition": "參與者在病人就醫事件中的角色",
      "isModifier": false,
      "short": "參與者在病人就醫事件中的角色",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE",
        "identity": "v2"
      }, {
        "map": "CD",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw" ]
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/encounter-participant-type",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ParticipantType"
        } ],
        "description": "參與者在病人就醫事件中的角色;應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。"
      },
      "max": "*",
      "id": "Encounter.participant.type",
      "condition": [ "ele-1" ],
      "comment": "參與者的型別表明個人如何參與病人的就醫事件。它包括非執業醫師的參與者,而對於執業醫師來說,這是為了描述在這次就醫中的活動型別(例如:住院醫生、主治醫生、翻譯者、諮詢醫生)。這與執業醫師的角色不同,執業醫師是功能性的角色,衍生自來僱用、教育、執照等。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Encounter.participant.type"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.participant.period",
      "min": 0,
      "definition": "指定的參與者參與病人就醫的時段。這些時段可以是重疊的,也可以是整個就醫的時段的子集。",
      "isModifier": false,
      "short": "參與者在病人就醫期間參與的時段",
      "mapping": [ {
        "map": "ROL-5, ROL-6 (or maybe PRT-5)",
        "identity": "v2"
      }, {
        "map": ".time",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Period"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Encounter.participant.period",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Encounter.participant.period"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.participant.individual",
      "min": 0,
      "definition": "除病人外,參與病人就醫事件的人。",
      "isModifier": false,
      "short": "除病人外,參與病人就醫事件的人。",
      "mapping": [ {
        "map": "Event.performer.actor",
        "identity": "workflow"
      }, {
        "map": "FiveWs.who",
        "identity": "w5"
      }, {
        "map": "ROL-4",
        "identity": "v2"
      }, {
        "map": ".role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Practitioner-twcore", "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore", "http://hl7.org/fhir/StructureDefinition/RelatedPerson" ]
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Encounter.participant.individual",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Encounter.participant.individual"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.appointment",
      "min": 0,
      "definition": "這次就醫的預約紀錄",
      "isModifier": false,
      "short": "這次就醫的預約紀錄",
      "mapping": [ {
        "map": "Event.basedOn",
        "identity": "workflow"
      }, {
        "map": "SCH-1 / SCH-2",
        "identity": "v2"
      }, {
        "map": ".outboundRelationship[typeCode=FLFS].target[classCode=ENC, moodCode=APT]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Appointment" ]
      } ],
      "max": "*",
      "id": "Encounter.appointment",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Encounter.appointment"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.period",
      "min": 1,
      "definition": "就醫的開始和結束時間",
      "isModifier": false,
      "short": "就醫的開始和結束時間",
      "mapping": [ {
        "map": "Event.occurrence[x]",
        "identity": "workflow"
      }, {
        "map": "FiveWs.done[x]",
        "identity": "w5"
      }, {
        "map": "PV1-44, PV1-45",
        "identity": "v2"
      }, {
        "map": ".effectiveTime (low & high)",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Period"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Encounter.period",
      "comment": "如果(尚)不知道,可以省略「期間」裡的結束日期時間。",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Encounter.period"
      },
      "isSummary": false
    }, {
      "path": "Encounter.period.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Encounter.period.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Encounter.period.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Encounter.period.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.period.start",
      "min": 1,
      "definition": "The start of the period. The boundary is inclusive.",
      "isModifier": false,
      "short": "Starting time with inclusive boundary.[應填入門診日期 OPD Date]。日期格式為西元 YYYYMMDD",
      "mapping": [ {
        "map": "DR.1",
        "identity": "v2"
      }, {
        "map": "./low",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Encounter.period.start",
      "condition": [ "per-1" ],
      "comment": "If the low element is missing, the meaning is that the low boundary is not known.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Period.start"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.period.end",
      "min": 0,
      "definition": "The end of the period. If the end of the period is missing, it means no end was known or planned at the time the instance was created. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.",
      "isModifier": false,
      "short": "End time with inclusive boundary, if not ongoing",
      "mapping": [ {
        "map": "DR.2",
        "identity": "v2"
      }, {
        "map": "./high",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "meaningWhenMissing": "If the end of the period is missing, it means that the period is ongoing",
      "max": "1",
      "id": "Encounter.period.end",
      "condition": [ "per-1" ],
      "comment": "The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has an end value of 2012-02-03.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Period.end"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.length",
      "min": 0,
      "definition": "就醫持續的時間,這不包括請假缺席的時間。",
      "isModifier": false,
      "short": "就醫持續的時間(扣除缺席時間)",
      "mapping": [ {
        "map": "Event.occurrence[x]",
        "identity": "workflow"
      }, {
        "map": "(PV1-45 less PV1-44) iff ( (PV1-44 not empty) and (PV1-45 not empty) ); units in minutes",
        "identity": "v2"
      }, {
        "map": ".lengthOfStayQuantity",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Duration"
      } ],
      "max": "1",
      "id": "Encounter.length",
      "comment": "由於請假,可能與就醫的開始和結束時間(Encounter.period)不同。",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Encounter.length"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.reasonCode",
      "min": 0,
      "definition": "就醫發生的原因,以代碼表示。對於住院,這可用於住院診斷代碼。",
      "isModifier": false,
      "short": "就醫發生的編碼原因",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE",
        "identity": "v2"
      }, {
        "map": "CD",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw" ]
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/encounter-reason",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "EncounterReason"
        } ],
        "description": "發生此就醫事件的原因;鼓勵使用所綁定值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。"
      },
      "alias": [ "Indication", "Admission diagnosis" ],
      "max": "*",
      "id": "Encounter.reasonCode",
      "condition": [ "ele-1" ],
      "comment": "對於需要知道哪個是主要診斷的系統來說,這些將用標準擴充primaryDiagnosis(這是一個序列值而不是一個標誌,1=主要診斷)來標記。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Encounter.reasonCode"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.reasonReference",
      "min": 0,
      "definition": "就醫發生的原因,以代碼表示。對於住院,這可用於住院診斷代碼。",
      "isModifier": false,
      "short": "就醫發生的原因(參照)",
      "mapping": [ {
        "map": "Event.reasonCode",
        "identity": "workflow"
      }, {
        "map": "FiveWs.why[x]",
        "identity": "w5"
      }, {
        "map": "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 )",
        "identity": "v2"
      }, {
        "map": ".reasonCode",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Condition-twcore", "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Procedure-twcore", "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Observation-laboratoryResult-twcore", "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation" ]
      } ],
      "alias": [ "Indication", "Admission diagnosis" ],
      "max": "*",
      "id": "Encounter.reasonReference",
      "comment": "對於需要知道哪個是主要診斷的系統來說,這些將用標準擴充primaryDiagnosis(這是一個序列值而不是一個標誌,1=主要診斷)來標記。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Encounter.reasonReference"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.diagnosis",
      "min": 0,
      "definition": "與此就醫相關的診斷清單",
      "isModifier": false,
      "short": "與此就醫相關的診斷清單",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=RSON]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "*",
      "id": "Encounter.diagnosis",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Encounter.diagnosis"
      },
      "isSummary": true
    }, {
      "path": "Encounter.diagnosis.id",
      "min": 0,
      "definition": "resource中資料項目的唯一ID(用於內部參照)。這可以是任何不含空格的字串。",
      "isModifier": false,
      "short": "唯一可識別ID,以供資料項目間相互參照。",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Encounter.diagnosis.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Encounter.diagnosis.extension",
      "min": 0,
      "definition": "可用於表示不屬於此資料項目基本定義的附加資訊。為了擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。",
      "isModifier": false,
      "short": "擴充的資料項目",
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Encounter.diagnosis.extension",
      "comment": "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Encounter.diagnosis.modifierExtension",
      "requirements": "修飾用的資料項目擴充將不能安全地忽略的擴充與絕大多數可以安全地忽略的擴充明確區分開來。透過消除禁止實作者擴充存在的需求來促進可互通性。更多訊息,請參見[修飾用的資料項目擴充之定義](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)。",
      "min": 0,
      "definition": "可以用來表示不屬於資料項目的基本定義的附加資訊,並且修改對它所內嵌(contained)的資料項目的理解和(或)對包含資料項目之後續使用的理解。通常,修飾用的資料項目提供否定或限定。為了使擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。處理resource的應用程式被要求檢查修飾用的擴充資料項目。 \r\n 修飾用的擴充資料項目 **必須沒有(SHALL NOT)** 改變resource或DomainResource上任何資料項目的含義(包括不能改變modifierExtension本身的含義)。",
      "isModifier": true,
      "short": "此擴充的資料項目可能會完全修正或改變其他資料項目的意涵,需特別留意。",
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Encounter.diagnosis.modifierExtension",
      "comment": "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.diagnosis.condition",
      "min": 1,
      "definition": "就醫的原因,使用其他resource的資訊以具體說明。對於住院,這就是住院診斷。指示通常是一個病情、問題或診斷(Condition)(在evidence.detail中參照其他resource),或一個處置(Procedure)。",
      "isModifier": false,
      "short": "與就醫事件相關的診斷或處置",
      "mapping": [ {
        "map": "Event.reasonReference",
        "identity": "workflow"
      }, {
        "map": "FiveWs.why[x]",
        "identity": "w5"
      }, {
        "map": "Resources that would commonly referenced at Encounter.indication would be Condition and/or Procedure. These most closely align with DG1/PRB and PR1 respectively.",
        "identity": "v2"
      }, {
        "map": ".outboundRelationship[typeCode=RSON].target",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Condition-twcore", "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Procedure-twcore" ]
      } ],
      "alias": [ "Admission diagnosis", "discharge diagnosis", "indication" ],
      "max": "1",
      "id": "Encounter.diagnosis.condition",
      "comment": "對於需要知道哪個是主要診斷的系統來說,這些將用標準擴充primaryDiagnosis(這是一個序列值而不是一個標誌,1=主要診斷)來標記。",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Encounter.diagnosis.condition"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.diagnosis.use",
      "min": 0,
      "definition": "此診斷在病人就醫事件中的作用(例如:住院、收費、出院...)。",
      "isModifier": false,
      "short": "此診斷在病人就醫事件中的作用(例如:住院、收費、出院...)。",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE",
        "identity": "v2"
      }, {
        "map": "CD",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw" ]
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/diagnosis-role",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "DiagnosisRole"
        } ],
        "description": "此情況所代表的診斷型別;鼓勵使用所綁定值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。"
      },
      "max": "1",
      "id": "Encounter.diagnosis.use",
      "condition": [ "ele-1" ],
      "comment": "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Encounter.diagnosis.use"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.diagnosis.rank",
      "min": 0,
      "definition": "診斷的排序(針對每個角色型別)",
      "isModifier": false,
      "short": "診斷的排序(針對每個角色型別)",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=RSON].priority",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "positiveInt"
      } ],
      "max": "1",
      "id": "Encounter.diagnosis.rank",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Encounter.diagnosis.rank"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.account",
      "min": 0,
      "definition": "可用於為此病人就醫事件計費的一組帳戶",
      "isModifier": false,
      "short": "可用於為此病人就醫事件計費的一組帳戶",
      "mapping": [ {
        "map": ".pertains.A_Account",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Account" ]
      } ],
      "max": "*",
      "id": "Encounter.account",
      "comment": "計費系統可依據內部業務規則,選擇將與就醫(Encounter)相關的應計費項目分配給不同的參照帳戶。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Encounter.account"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.hospitalization",
      "min": 0,
      "definition": "關於入院接受健康照護服務的細節",
      "isModifier": false,
      "short": "關於入院接受健康照護服務的細節",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=COMP].target[classCode=ENC, moodCode=EVN]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Encounter.hospitalization",
      "comment": "就醫可能不僅僅包括住院治療。其他情境像是門診病人、社區診所和老年照護機構等情況也包括在內。在此就醫期間記錄的持續時間含概此住院紀錄的整個範圍。",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Encounter.hospitalization"
      },
      "isSummary": false
    }, {
      "path": "Encounter.hospitalization.id",
      "min": 0,
      "definition": "resource中資料項目的唯一ID(用於內部參照)。這可以是任何不含空格的字串。",
      "isModifier": false,
      "short": "唯一可識別ID,以供資料項目間相互參照。",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Encounter.hospitalization.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Encounter.hospitalization.extension",
      "min": 0,
      "definition": "可用於表示不屬於此資料項目基本定義的附加資訊。為了擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。",
      "isModifier": false,
      "short": "擴充的資料項目",
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Encounter.hospitalization.extension",
      "comment": "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Encounter.hospitalization.modifierExtension",
      "requirements": "修飾用的資料項目擴充將不能安全地忽略的擴充與絕大多數可以安全地忽略的擴充明確區分開來。透過消除禁止實作者擴充存在的需求來促進可互通性。更多訊息,請參見[修飾用的資料項目擴充之定義](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)。",
      "min": 0,
      "definition": "可以用來表示不屬於資料項目的基本定義的附加資訊,並且修改對它所內嵌(contained)的資料項目的理解和(或)對包含資料項目之後續使用的理解。通常,修飾用的資料項目提供否定或限定。為了使擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。處理resource的應用程式被要求檢查修飾用的擴充資料項目。 \r\n 修飾用的擴充資料項目 **必須沒有(SHALL NOT)** 改變resource或DomainResource上任何資料項目的含義(包括不能改變modifierExtension本身的含義)。",
      "isModifier": true,
      "short": "此擴充的資料項目可能會完全修正或改變其他資料項目的意涵,需特別留意。",
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Encounter.hospitalization.modifierExtension",
      "comment": "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.hospitalization.preAdmissionIdentifier",
      "min": 0,
      "definition": "住院前識別碼",
      "isModifier": false,
      "short": "住院前識別碼",
      "mapping": [ {
        "map": "PV1-5",
        "identity": "v2"
      }, {
        "map": ".id",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "max": "1",
      "id": "Encounter.hospitalization.preAdmissionIdentifier",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Encounter.hospitalization.preAdmissionIdentifier"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.hospitalization.origin",
      "min": 0,
      "definition": "病人住院前來自的地點/機構",
      "isModifier": false,
      "short": "病人住院前來自的地點/機構",
      "mapping": [ {
        "map": ".participation[typeCode=ORG].role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore", "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Location-twcore" ]
      } ],
      "max": "1",
      "id": "Encounter.hospitalization.origin",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Encounter.hospitalization.origin"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.hospitalization.admitSource",
      "min": 0,
      "definition": "病人從哪裡住院(醫生轉介、轉院)?",
      "isModifier": false,
      "short": "病人從哪裡住院(醫生轉介、轉院)?",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE",
        "identity": "v2"
      }, {
        "map": "CD",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw" ]
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/encounter-admit-source",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "AdmitSource"
        } ],
        "description": "病人從哪裡住院;鼓勵使用所綁定值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。"
      },
      "max": "1",
      "id": "Encounter.hospitalization.admitSource",
      "condition": [ "ele-1" ],
      "comment": "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Encounter.hospitalization.admitSource"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.hospitalization.reAdmission",
      "min": 0,
      "definition": "此次住院是否為再入院,如果知道的話,請說明原因。",
      "isModifier": false,
      "short": "已發生的醫院再入院型別(如果有的話)。如果該值不存在,則不被認定為再入院。",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE",
        "identity": "v2"
      }, {
        "map": "CD",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw" ]
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://terminology.hl7.org/ValueSet/v2-0092",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ReAdmissionType"
        } ],
        "description": "這次住院就醫的再入院原因;可參考所綁定值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。"
      },
      "max": "1",
      "id": "Encounter.hospitalization.reAdmission",
      "condition": [ "ele-1" ],
      "comment": "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Encounter.hospitalization.reAdmission"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.hospitalization.dietPreference",
      "requirements": "用於追蹤病人的飲食限制和/或偏好。如果要完整描述病人在住院期間的營養需求,應該使用與Encounter連結的nutritionOrder resource。",
      "min": 0,
      "definition": "病人報告的飲食偏好",
      "isModifier": false,
      "short": "病人報告的飲食偏好",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE",
        "identity": "v2"
      }, {
        "map": "CD",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw" ]
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/encounter-diet",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "PatientDiet"
        } ],
        "description": "醫療、文化或道德方面的食物偏好,以幫助滿足飲食要求;可參考所綁定值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。"
      },
      "max": "*",
      "id": "Encounter.hospitalization.dietPreference",
      "condition": [ "ele-1" ],
      "comment": "例如:一個病人可能同時要求無乳製品和無堅果的飲食偏好(不相互排斥)。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Encounter.hospitalization.dietPreference"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.hospitalization.specialCourtesy",
      "min": 0,
      "definition": "特別禮遇(貴賓、董事會成員)",
      "isModifier": false,
      "short": "特別禮遇(貴賓、董事會成員)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE",
        "identity": "v2"
      }, {
        "map": "CD",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw" ]
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/encounter-special-courtesy",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "Courtesies"
        } ],
        "description": "特別禮遇;鼓勵使用所綁定值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。"
      },
      "max": "*",
      "id": "Encounter.hospitalization.specialCourtesy",
      "condition": [ "ele-1" ],
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Encounter.hospitalization.specialCourtesy"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.hospitalization.specialArrangement",
      "min": 0,
      "definition": "對此次住院就醫提出的任何特殊要求,如提供特定設備或其他東西。",
      "isModifier": false,
      "short": "輪椅、翻譯人員、擔架等。",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE",
        "identity": "v2"
      }, {
        "map": "CD",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw" ]
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/encounter-special-arrangements",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "Arrangements"
        } ],
        "description": "特殊安排;鼓勵使用所綁定值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。"
      },
      "max": "*",
      "id": "Encounter.hospitalization.specialArrangement",
      "condition": [ "ele-1" ],
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Encounter.hospitalization.specialArrangement"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.hospitalization.destination",
      "min": 0,
      "definition": "病人出院地點/機構",
      "isModifier": false,
      "short": "病人出院地點/機構",
      "mapping": [ {
        "map": "PV1-37",
        "identity": "v2"
      }, {
        "map": ".participation[typeCode=DST]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Location-twcore", "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore" ]
      } ],
      "max": "1",
      "id": "Encounter.hospitalization.destination",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Encounter.hospitalization.destination"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.hospitalization.dischargeDisposition",
      "min": 0,
      "definition": "出院後的地點類別或種類",
      "isModifier": false,
      "short": "出院後的地點類別或種類",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE",
        "identity": "v2"
      }, {
        "map": "CD",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw" ]
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/encounter-discharge-disposition",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "DischargeDisp"
        } ],
        "description": "出院處置;可參考所綁定值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。"
      },
      "max": "1",
      "id": "Encounter.hospitalization.dischargeDisposition",
      "condition": [ "ele-1" ],
      "comment": "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Encounter.hospitalization.dischargeDisposition"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.location",
      "min": 0,
      "definition": "此次就醫期間,病人曾去過的一個或多個地點",
      "isModifier": false,
      "short": "病人曾去過的一個或多個地點",
      "mapping": [ {
        "map": ".participation[typeCode=LOC]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Encounter.location",
      "comment": "透過指定一個型別「種類(kind)」的地點參照,例如「客戶的家」,以及encounter.class =「虛擬(virtual)」。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Encounter.location"
      },
      "isSummary": false
    }, {
      "path": "Encounter.location.id",
      "min": 0,
      "definition": "resource中資料項目的唯一ID(用於內部參照)。這可以是任何不含空格的字串。",
      "isModifier": false,
      "short": "唯一可識別ID,以供資料項目間相互參照。",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Encounter.location.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Encounter.location.extension",
      "min": 0,
      "definition": "可用於表示不屬於此資料項目基本定義的附加資訊。為了擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。",
      "isModifier": false,
      "short": "擴充的資料項目",
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Encounter.location.extension",
      "comment": "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Encounter.location.modifierExtension",
      "requirements": "修飾用的資料項目擴充將不能安全地忽略的擴充與絕大多數可以安全地忽略的擴充明確區分開來。透過消除禁止實作者擴充存在的需求來促進可互通性。更多訊息,請參見[修飾用的資料項目擴充之定義](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)。",
      "min": 0,
      "definition": "可以用來表示不屬於資料項目的基本定義的附加資訊,並且修改對它所內嵌(contained)的資料項目的理解和(或)對包含資料項目之後續使用的理解。通常,修飾用的資料項目提供否定或限定。為了使擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。處理resource的應用程式被要求檢查修飾用的擴充資料項目。 \r\n 修飾用的擴充資料項目 **必須沒有(SHALL NOT)** 改變resource或DomainResource上任何資料項目的含義(包括不能改變modifierExtension本身的含義)。",
      "isModifier": true,
      "short": "此擴充的資料項目可能會完全修正或改變其他資料項目的意涵,需特別留意。",
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Encounter.location.modifierExtension",
      "comment": "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.location.location",
      "min": 1,
      "definition": "就醫發生的地點",
      "isModifier": false,
      "short": "就醫發生的地點",
      "mapping": [ {
        "map": "Event.location",
        "identity": "workflow"
      }, {
        "map": "FiveWs.where[x]",
        "identity": "w5"
      }, {
        "map": "PV1-3 / PV1-6 / PV1-11 / PV1-42 / PV1-43",
        "identity": "v2"
      }, {
        "map": ".role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Location-twcore" ]
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Encounter.location.location",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Encounter.location.location"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.location.status",
      "min": 0,
      "definition": "參與者在指定期間於特定地點的狀態。如果參與者已不在此地點,那麼其期間將有一個結束日期/時間。",
      "isModifier": false,
      "short": "planned | active | reserved | completed",
      "mapping": [ {
        "map": ".role.statusCode",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/encounter-location-status|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "EncounterLocationStatus"
        } ],
        "description": "就醫地點的狀態;應填入所綁定值集中的其中一個代碼。"
      },
      "max": "1",
      "id": "Encounter.location.status",
      "comment": "當病人不再在某一地點活動時,則要輸入期間結束日期,狀態可改為完成。",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Encounter.location.status"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.location.physicalType",
      "min": 0,
      "definition": "這將被用來指定所需的地點層級(床位/病房/房間/等),以簡化訊息傳遞或查詢。",
      "isModifier": false,
      "short": "地點的實體型別(通常是地點的層級—床位、房間、病房等)。",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE",
        "identity": "v2"
      }, {
        "map": "CD",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw" ]
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/location-physical-type",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "PhysicalType"
        } ],
        "description": "地點的實體型別;可參考所綁定值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。"
      },
      "max": "1",
      "id": "Encounter.location.physicalType",
      "condition": [ "ele-1" ],
      "comment": "此資訊是從Location resource中反正規化(de-normalized),以較易理解Encounter resource及支持訊息傳遞或查詢的處理。地點的層級結構中可能有許多層級,這可能只挑選特定使用情境所需的特定層級。",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Encounter.location.physicalType"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.location.period",
      "min": 0,
      "definition": "病人出現在此地點的時段",
      "isModifier": false,
      "short": "病人出現在此地點的時段",
      "mapping": [ {
        "map": ".time",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Period"
      } ],
      "max": "1",
      "id": "Encounter.location.period",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Encounter.location.period"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.serviceProvider",
      "min": 0,
      "definition": "對此次就醫的服務負主要責任的機構。這可能與病人紀錄中的機構相同,但也可能不同,例如:如果執行服務的人員來自外部機構(可單獨計費)的外部諮詢。請參考Bundle範例顯示結腸鏡檢查就醫縮略集。",
      "isModifier": false,
      "short": "負責這次就醫的機構",
      "mapping": [ {
        "map": "Event.performer.actor",
        "identity": "workflow"
      }, {
        "map": "PL.6  & PL.1",
        "identity": "v2"
      }, {
        "map": ".particiaption[typeCode=PFM].role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore" ]
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Encounter.serviceProvider",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Encounter.serviceProvider"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Encounter.partOf",
      "min": 0,
      "definition": "此就醫是哪次就醫的一部分(行政上或時間上)",
      "isModifier": false,
      "short": "此就醫是哪次就醫的一部份?",
      "mapping": [ {
        "map": "Event.partOf",
        "identity": "workflow"
      }, {
        "map": ".inboundRelationship[typeCode=COMP].source[classCode=COMP, moodCode=EVN]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
          "valueBoolean": true
        } ],
        "targetProfile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Encounter-twcore" ]
      } ],
      "max": "1",
      "id": "Encounter.partOf",
      "comment": "這也用於將小孩的就醫與母親的就醫作關聯。 詳情請參考Patient resource中的Notes小節。",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Encounter.partOf"
      },
      "isSummary": false
    } ]
  },
  "status": "draft",
  "id": "570da81a-a43f-4c08-a178-8cb2f9262f25",
  "kind": "resource",
  "url": "https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/Encounter-EP",
  "version": "0.1.0",
  "differential": {
    "element": [ {
      "id": "Encounter",
      "path": "Encounter"
    }, {
      "id": "Encounter.identifier",
      "max": "2",
      "path": "Encounter.identifier",
      "short": "此就醫事件的識別碼。[應填入就醫識別碼與健保卡就醫序號]"
    }, {
      "id": "Encounter.class",
      "path": "Encounter.class",
      "short": "病人就醫的分類。[應填入案件分類]。(如為自費案件請使用代碼\"00\")",
      "binding": {
        "strength": "extensible",
        "valueSet": "https://twcore.mohw.gov.tw/ig/emr/ValueSet/CaseType",
        "description": "案件分類;應填入[CaseType](https://silcoet.ntunhs.edu.tw/HEALTHYCloud/ValueSet-casetype.html)值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。"
      },
      "definition": "病人就醫分類的概念,例如:門診病人、住院病人、急診病人、居家照護或其他因地方不同而產生的概念。\r\n健保案件分類,如:01:西醫一般案件 02:西醫急診 03: 西醫門診手術 04:西醫慢性病 05:洗腎 06:結核病 08:慢性病連續處方調劑 09:西醫其他專案 11:牙醫一般案件 12:牙醫急診 13:牙醫門診手術等。"
    }, {
      "id": "Encounter.type",
      "max": "1",
      "min": 1,
      "path": "Encounter.type",
      "short": "就醫的特定型別。[應填入科別 Department]",
      "mustSupport": true
    }, {
      "id": "Encounter.subject",
      "min": 1,
      "path": "Encounter.subject"
    }, {
      "id": "Encounter.period",
      "min": 1,
      "path": "Encounter.period"
    }, {
      "id": "Encounter.period.start",
      "min": 1,
      "path": "Encounter.period.start",
      "short": "Starting time with inclusive boundary.[應填入門診日期 OPD Date]。日期格式為西元 YYYYMMDD",
      "mustSupport": true
    } ]
  },
  "contact": [ {
    "telecom": [ {
      "value": "https://www.mohw.gov.tw/mp-1.html",
      "system": "url"
    } ]
  } ],
  "baseDefinition": "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Encounter-twcore"
}