Condition-HealthBank
type: StructureDefinition
node role: treeRoot
id:
  v: Condition-HealthBank
text:
  status:
    v: extensions
  div: Generated Narrative: StructureDefinition Condition-HealthBank Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> Condition 0..* TWCoreCondition 此IG將非FHIR標準的健康存摺JSON格式與目前次世代數位醫療平台採用的FHIR國際標準整合 id 0..1 id 不重複的ID用以識別儲存在特定FHIR Server中的Condition紀錄，通常又稱為邏輯性ID。 meta 0..1 Meta 此Condition Resource的metadata implicitRules 0..1 uri 創建此內容所依據的一組規則 language 0..1 code 用以表述Condition Resource內容的語言。 Binding: CommonLanguages (preferred): 人類語言；鼓勵使用CommonLanguages代碼表中的代碼，但不強制一定要使用此代碼表，你也可使用其他代碼表的代碼或單純以文字表示。 Additional Bindings Purpose AllLanguages Max Binding Example Value: zh-TW text 0..1 Narrative Condition Resource之內容摘要以供人閱讀 identifier 0..* Identifier 此病情、問題或診斷的外部識別碼 clinicalStatus S 1..1 CodeableConceptTW active | recurrence | relapse | inactive | remission | resolved ，病情、問題或診斷的臨床狀態。 Binding: ConditionClinicalStatusCodes (required): 應填入所綁定值集中的其中一個代碼。 Required Pattern: At least the following coding 1..* Coding Code defined by a terminology system Fixed Value: (complex) code 1..1 code Symbol in syntax defined by the system Fixed Value: active verificationStatus S 0..1 CodeableConceptTW unconfirmed | provisional | differential | confirmed | refuted | entered-in-error ，支持或拒絕病情、問題或診斷的臨床狀態的驗證狀態。 Binding: ConditionVerificationStatus (required): 應填入所綁定值集中的其中一個代碼。 category S 1..1 CodeableConceptTW encounter-diagnosis ，指定病情、問題或診斷的類別。 Binding: ConditionCategoryCodes (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。 severity S 0..1 CodeableConceptTW 病情、問題或診斷的主觀嚴重程度 Binding: Condition/DiagnosisSeverity (extensible): 臨床醫生對病情、問題或診斷嚴重程度的主觀評價；應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。 code S 0..1 CodeableConceptTW 病情、問題或診斷的識別 Binding: Condition/Problem/DiagnosisCodes (example): 此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。 Slices for coding 0..* CodingTW 由專門術語系統（terminology system）定義的代碼。此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任…
url:
  v: https://ig.dicom.tw/healthbank/StructureDefinition/Condition-HealthBank
version:
  v: 0.1.0
name:
  v: HealthBankCondition
title:
  v: HealthBank Condition
status:
  v: active
date:
  v: 2024-08-16T15:26:01+08:00
publisher:
  v: 臺灣醫學資訊學會 TAMI
contact:
  name:
    v: 臺灣醫學資訊學會 TAMI
  telecom:
    system:
      v: url
    value:
      v: http://www.medinfo.org.tw
  telecom:
    system:
      v: email
description:
  v: 此健康存摺-病情、問題或診斷（HealthBank Condition) Profile說明本IG如何進一步定義FHIR的Condition Resource以呈現有關病情、問題或診斷的詳細資料。
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: workflow
  uri:
    v: http://hl7.org/fhir/workflow
  name:
    v: Workflow Pattern
mapping:
  identity:
    v: sct-concept
  uri:
    v: http://snomed.info/conceptdomain
  name:
    v: SNOMED CT Concept Domain Binding
mapping:
  identity:
    v: v2
  uri:
    v: http://hl7.org/v2
  name:
    v: HL7 v2 Mapping
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
  name:
    v: RIM Mapping
mapping:
  identity:
    v: w5
  uri:
    v: http://hl7.org/fhir/fivews
  name:
    v: FiveWs Pattern Mapping
mapping:
  identity:
    v: sct-attr
  uri:
    v: http://snomed.org/attributebinding
  name:
    v: SNOMED CT Attribute Binding
kind:
  v: resource
abstract:
  v: false
type:
  v: Condition
base definition:
  v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Condition-twcore
  link: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Condition-twcore
derivation:
  v: constraint
snapshot:
  element:
    id:
      v: Condition
    path:
      v: Condition
    short:
      v: 此IG將非FHIR標準的健康存摺JSON格式與目前次世代數位醫療平台採用的FHIR國際標準整合
    definition:
      v: 一個臨床病情、問題、診斷或其他事件、情況、或臨床概念，已上升到需要關注的程度。
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Condition
      min:
        v: 0
      max:
        v: *
    constraint:
      key:
        v: con-3
      severity:
        v: warning
      human:
        v: Condition.clinicalStatus SHALL be present if verificationStatus is not entered-in-error and category is problem-list-item
      expression:
        v: clinicalStatus.exists() or verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code = 'entered-in-error').exists() or category.select($this='problem-list-item').empty()
      xpath:
        v: exists(f:clinicalStatus) or exists(f:verificationStatus/f:coding/f:code/@value='entered-in-error') or not(exists(category[@value='problem-list-item']))
      source:
        v: http://hl7.org/fhir/StructureDefinition/Condition
        link: http://hl7.org/fhir/StructureDefinition/Condition
    constraint:
      key:
        v: con-4
      severity:
        v: error
      human:
        v: If condition is abated, then clinicalStatus must be either inactive, resolved, or remission
      expression:
        v: abatement.empty() or clinicalStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-clinical' and (code='resolved' or code='remission' or code='inactive')).exists()
      xpath:
        v: not(exists(*[starts-with(local-name(.), 'abatement')])) or exists(f:clinicalStatus/f:coding[f:system/@value='http://terminology.hl7.org/CodeSystem/condition-clinical' and f:code/@value=('resolved', 'remission', 'inactive')])
      source:
        v: http://hl7.org/fhir/StructureDefinition/Condition
        link: http://hl7.org/fhir/StructureDefinition/Condition
    constraint:
      key:
        v: con-5
      severity:
        v: error
      human:
        v: Condition.clinicalStatus SHALL NOT be present if verification Status is entered-in-error
      expression:
        v: verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code='entered-in-error').empty() or clinicalStatus.empty()
      xpath:
        v: not(exists(f:verificationStatus/f:coding[f:system/@value='http://terminology.hl7.org/CodeSystem/condition-ver-status' and f:code/@value='entered-in-error'])) or not(exists(f:clinicalStatus))
      source:
        v: http://hl7.org/fhir/StructureDefinition/Condition
        link: http://hl7.org/fhir/StructureDefinition/Condition
    constraint:
      key:
        v: dom-2
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL NOT contain nested Resources
      expression:
        v: contained.contained.empty()
      xpath:
        v: not(parent::f:contained and f:contained)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-3
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
      expression:
        v: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
      xpath:
        v: not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-4
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
      expression:
        v: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-5
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a security label
      expression:
        v: contained.meta.security.empty()

v: true

v: Most systems will expect a clinicalStatus to be valued for problem-list-items that are managed over time, but might not need a clinicalStatus for point in time encounter-diagnosis.

v: not(exists(f:contained/*/f:meta/f:security))

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice
  value:
    v: true
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation
  value:
    v: When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time.
key:
  v: dom-6
severity:
  v: warning
human:
  v: A resource should have narrative for robust management
expression:
  v: text.`div`.exists()
xpath:
  v: exists(f:text/h:div)
source:
  v: http://hl7.org/fhir/StructureDefinition/DomainResource
  link: http://hl7.org/fhir/StructureDefinition/DomainResource

v: false

v: false

identity:
  v: rim
map:
  v: Entity. Role, or Act

identity:
  v: workflow
map:
  v: Event

identity:
  v: sct-concept
map:
  v: < 243796009 |Situation with explicit context| : 246090004 |Associated finding| = ( ( < 404684003 |Clinical finding| MINUS ( << 420134006 |Propensity to adverse reactions| OR << 473010000 |Hypersensitivity condition| OR << 79899007 |Drug interaction| OR << 69449002 |Drug action| OR << 441742003 |Evaluation finding| OR << 307824009 |Administrative status| OR << 385356007 |Tumor stage finding|)) OR < 272379006 |Event|)

identity:
  v: v2
map:
  v: PPR message

identity:
  v: rim
map:
  v: Observation[classCode=OBS, moodCode=EVN, code=ASSERTION, value<Diagnosis]

id:
  v: Condition.id
path:
  v: Condition.id
short:
  v: 不重複的ID用以識別儲存在特定FHIR Server中的Condition紀錄，通常又稱為邏輯性ID。
definition:
  v: resource的邏輯ID，在resource的URL中使用。一旦指定，這個值永遠不會改變。
comment:
  v: 一個resource使用新增操作（create operation）提交給伺服器時，此resource沒有id，它的id在resource被創建後由伺器分配/指定。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: id
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: true

id:
  v: Condition.meta
path:
  v: Condition.meta
short:
  v: 此Condition Resource的metadata
definition:
  v: 關於resource的metadata。這是由基礎建設維護的內容。內容的更改可能並不總是與resource的版本更改相關聯。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.meta
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Meta
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: Condition.implicitRules
path:
  v: Condition.implicitRules
short:
  v: 創建此內容所依據的一組規則
definition:
  v: 構建resource時遵循的一系列規則的參照，在處理內容時必須理解這些規則。通常這是對IG所定義之特殊規則及其他profiles的參照。
comment:
  v: 宣告這套規則限制了內容只能被有限的交易夥伴所理解。這從本質上限制了資料的長期有用性。然而，現有的健康生態體系高度分裂，還沒有準備好以普遍可計算的方式定義、收集和交換資料。只要有可能，實作者和/或規範編寫者應該避免使用這個資料項目。通常在使用時，此URL是對IG的參照，此IG將這些特殊規則與其他profiles、value sets等一起定義為其敘述的一部分。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.implicitRules
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: true
is modifier reason:
  v: This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation
is summary:
  v: true

id:
  v: Condition.language
path:
  v: Condition.language
short:
  v: 用以表述Condition Resource內容的語言。
definition:
  v: 編寫此resource的語言
comment:
  v: 提供語言是為了支援索引和可存取性（通常，文字表述轉語音等服務使用此語言標籤）。html lanuage tag適用於此敘述。resource上的語言標籤可用於指定從resource中的資料所產成的其他表述之語言。不是所有的內容都必須使用此語言。不應該假定Resource.language自動適用於敘述。如果指定語言，它也應該被指定在html中的div資料項目（關於xml:lang和html lang屬性之間的關係，見HTML5中的規則）。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.language
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
example:
  label:
    v: Value
  value:
    v: zh-TW
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
    value:
      v: http://hl7.org/fhir/ValueSet/all-languages
      link: http://hl7.org/fhir/ValueSet/all-languages
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: Language
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding
    value:
      v: true
  strength:
    v: preferred
  description:
    v: 人類語言；鼓勵使用CommonLanguages代碼表中的代碼，但不強制一定要使用此代碼表，你也可使用其他代碼表的代碼或單純以文字表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/languages
    link: http://hl7.org/fhir/ValueSet/languages

id:
  v: Condition.text
path:
  v: Condition.text
short:
  v: Condition Resource之內容摘要以供人閱讀
definition:
  v: 人可讀的敘述，包含resource的摘要，可用於向人表述resource的內容。敘述不需要對所有的結構化資料進行編碼，但需要包含足夠的細節使人在閱讀敘述時理解「臨床安全性」。resource定義有哪些內容應該在敘述中表示，以確保臨床安全。
comment:
  v: 內嵌（contained）的resource沒有敘述，非內嵌（contained）的resource則 **建議應該（SHOULD）** 有敘述。有時resource可能只有文字表述，很少或沒有額外的結構化資料（只要滿足所有minOccurs=1的資料項目）。這可能出現在舊系統的資料，當資訊以 「文字表述區塊（text blob） 」的形式被取得，或者文字表述是原始輸入或說明，而編碼資訊稍後再添加。
alias:
  v: narrative
alias:
  v: html
alias:
  v: xhtml
alias:
  v: display
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Narrative
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: Act.text?

id:
  v: Condition.contained
path:
  v: Condition.contained
short:
  v: 內嵌的（contained）、行內的Resources
definition:
  v: 這些resource內嵌（contains）的resource不會另外存於任何FHIR伺服器，意即它們無法在任何FHIR伺服器中被找到，也無法有自己獨立的資料異動／交易（transaction）範圍。
comment:
  v: 當內容可以從任何FHIR伺服器找到時，不應該以內嵌（contained）resource的方式呈現，因為一旦失去識別，再次恢復它是非常困難的（並且取決於情境）。內嵌（contained）的resource可在它們的meta資料項目中表述profiles和tag，但不應該有安全標號（security labels）。
alias:
  v: inline resources
alias:
  v: anonymous resources
alias:
  v: contained resources
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.contained
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Resource
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Condition.extension
path:
  v: Condition.extension
short:
  v: 擴充的資料項目
definition:
  v: 可用於表示不屬於此resource基本定義的額外資訊。為了擴充的使用安全和可管理，對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充，但作為擴充定義的一部分，**必須（SHALL）** 滿足一系列要求。
comment:
  v: 任何應用程式、專案或標準使用擴充時，都不應該帶有任何負面的聯想。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: Condition.modifierExtension
path:
  v: Condition.modifierExtension
short:
  v: 此擴充的資料項目可能會完全修正或改變其他資料項目的意涵，需特別留意。
definition:
  v: 可以用來表示不屬於此resource的基本定義的額外資訊，並修改包含它所內嵌（contained）的資料項目的理解和/或對包含資料項目之後續使用的理解。通常修飾用的資料項目提供否定或限定的資訊。為了使擴充的使用安全和可管理，對擴充的定義和使用有一套嚴格的管理。雖然任何實作者都可以定義一個擴充，但在定義擴充時 **必須（SHALL）** 滿足一組要求。處理resource的應用程式需要檢查修飾用的擴充資料項目。 修飾用的擴充資料項目 **必須沒有（SHALL NOT）** 改變resource或DomainResource上任何資料項目的含義（包括不能改變modifierExtension本身的含義）。
comment:
  v: 任何應用程式、專案或標準使用擴充時，都不應該帶有任何負面的聯想。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。
requirements:
  v: 修飾用的資料項目擴充允許將不能安全地忽略的擴充，與絕大多數可以安全地忽略的擴充明確區分開來。這樣做有助於促進可互操作性，因為無需禁止實作者使用擴充，想要瞭解更多資訊，請參見[修飾用的資料項目擴充之定義]（http://hl7.org/fhir/R4/extensibility.html#modifierExtension）。
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them
is summary:
  v: false

id:
  v: Condition.identifier
path:
  v: Condition.identifier
short:
  v: 此病情、問題或診斷的外部識別碼
definition:
  v: 由執行者或其他系統指定給此病情、問題或診斷的業務用識別碼，即使此resource作更新及在伺服器之間的傳遞，此識別碼仍保持不變。
comment:
  v: 這是一個業務識別碼，不是一個resource識別碼（詳見討論）。最好的做法是該識別碼只出現在單個resource實例上，但是業務實務有可能會規定可以在多個resource實例中具有相同識別碼—甚至可能具有不同的resource型例。例如：多個 「Patient（病人）」和 「Person（個人）」resource實例可能共用同一個社會保險號碼。
requirements:
  v: 允許識別各參與系統所知的此病情、問題或診斷資訊，並在各伺服器之間保持一致的方式。
min:
  v: 0
max:
  v: *
base:
  path:
    v: Condition.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.identifier
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.identifier
mapping:
  identity:
    v: rim
  map:
    v: .id

id:
  v: Condition.clinicalStatus
path:
  v: Condition.clinicalStatus
short:
  v: active | recurrence | relapse | inactive | remission | resolved ，病情、問題或診斷的臨床狀態。
definition:
  v: 此病情、問題或診斷的臨床狀態
comment:
  v: data type是CodeableConcept，因為clinicalStatus涉及到一些臨床判斷，例如：可能需要比所需的FHIR值集更多的特殊性。例如：SNOMED編碼可能允許更多的特殊性。
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Condition.clinicalStatus
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    link: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
pattern: CodeableConcept
  coding:
    code:
      v: active
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: ConditionClinicalStatus
  strength:
    v: required
  description:
    v: 應填入所綁定值集中的其中一個代碼。
  value set:
    v: http://hl7.org/fhir/ValueSet/condition-clinical|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE
mapping:
  identity:
    v: rim
  map:
    v: CD
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept rdfs:subClassOf dt:CD

id:
  v: Condition.verificationStatus
path:
  v: Condition.verificationStatus
short:
  v: unconfirmed | provisional | differential | confirmed | refuted | entered-in-error ，支持或拒絕病情、問題或診斷的臨床狀態的驗證狀態。
definition:
  v: 支持此病情、問題或診斷的臨床狀態之驗證狀態
comment:
  v: verificationStatus不是必須的。例如：當病人在急診室出現腹痛時，不可能出現驗證狀態。資料類型是CodeableConcept，因為verificationStatus涉及到一些臨床判斷，因此可能需要比所需的FHIR值集更多的特殊性。例如：SNOMED編碼可能允許更多的特殊性。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Condition.verificationStatus
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    link: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: ConditionVerificationStatus
  strength:
    v: required
  description:
    v: 應填入所綁定值集中的其中一個代碼。
  value set:
    v: http://hl7.org/fhir/ValueSet/condition-ver-status|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE
mapping:
  identity:
    v: rim
  map:
    v: CD
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept rdfs:subClassOf dt:CD

id:
  v: Condition.category
path:
  v: Condition.category
short:
  v: encounter-diagnosis ，指定病情、問題或診斷的類別。
definition:
  v: 指定此病情、問題或診斷的類別
comment:
  v: 這種分類往往具有很強的情境性，在其他情境下可能顯得區分度不高，或沒有什麼用處。
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Condition.category
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    link: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: ConditionCategory
  strength:
    v: extensible
  description:
    v: 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/condition-category
    link: http://hl7.org/fhir/ValueSet/condition-category
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE
mapping:
  identity:
    v: rim
  map:
    v: CD
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept rdfs:subClassOf dt:CD

id:
  v: Condition.severity
path:
  v: Condition.severity
short:
  v: 病情、問題或診斷的主觀嚴重程度
definition:
  v: 臨床醫生對病情、問題或診斷嚴重程度的主觀評估
comment:
  v: 如有可能，最好用專門術語對嚴重程度進行編碼。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Condition.severity
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    link: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
binding:
  strength:
    v: extensible
  description:
    v: 臨床醫生對病情、問題或診斷嚴重程度的主觀評價；應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/condition-severity
    link: http://hl7.org/fhir/ValueSet/condition-severity
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE
mapping:
  identity:
    v: rim
  map:
    v: CD
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept rdfs:subClassOf dt:CD

id:
  v: Condition.code
path:
  v: Condition.code
short:
  v: 病情、問題或診斷的識別
definition:
  v: 病情、問題或診斷的識別
comment:
  v: Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.
requirements:
  v: 0..1，主要用於說明敘述性resource。
alias:
  v: type
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Condition.code
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    link: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: ConditionKind
  strength:
    v: example
  description:
    v: 此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。
  value set:
    v: http://hl7.org/fhir/ValueSet/condition-code
    link: http://hl7.org/fhir/ValueSet/condition-code
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE
mapping:
  identity:
    v: rim
  map:
    v: CD
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept rdfs:subClassOf dt:CD

id:
  v: Condition.code.id
path:
  v: Condition.code.id
representation:
  v: xmlAttr
short:
  v: 唯一可識別ID，以供資料項目間相互參照。
definition:
  v: resource中資料項目的唯一ID（用於內部參照）。這可以是任何不含空格的字串。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Condition.code.extension
path:
  v: Condition.code.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
comment:
  v: 無論使用或定義擴充的機構或管轄區，任何應用程式、專案或標準使用擴充都不背負任何汙名（stigma）。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: Condition.code.coding
path:
  v: Condition.code.coding
slicing:
  discriminator:
    type:
      v: pattern
    path:
      v: $this
  rules:
    v: open
short:
  v: 由專門術語系統（terminology system）定義的代碼。此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。
definition:
  v: 由專門術語系統（terminology system）所定義之代碼的參照。
comment:
  v: 代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，如SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。
requirements:
  v: 允許使用者在不知道識別碼系統的情況下利用識別碼
min:
  v: 0
max:
  v: *
base:
  path:
    v: CodeableConcept.coding
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw
    link: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE subset one of the sets of component 1-3 or 4-6
mapping:
  identity:
    v: rim
  map:
    v: CV
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding rdfs:subClassOf dt:CDCoding

id:
  v: Condition.code.coding:icd10-cm-2021
path:
  v: Condition.code.coding
slice name:
  v: icd10-cm-2021
short:
  v: 此為臺灣衛生福利部中央健康保險署維護之2021年中文版ICD-10-CM代碼，涵蓋範圍相對完整，可免費使用，可優先選用此代碼。
definition:
  v: 由專門術語系統（terminology system）所定義之代碼的參照。
comment:
  v: 代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，如SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles ）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。
requirements:
  v: 允許使用者在不知道識別碼系統的情況下利用識別碼
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CodeableConcept.coding
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw
    link: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
binding:
  strength:
    v: required
  description:
    v: 病情、問題或診斷的識別；應填入所綁定值集中的其中一個代碼。
  value set:
    v: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/icd-10-cm-2021-tw
    link: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/icd-10-cm-2021-tw
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE subset one of the sets of component 1-3 or 4-6
mapping:
  identity:
    v: rim
  map:
    v: CV
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding rdfs:subClassOf dt:CDCoding

id:
  v: Condition.code.coding:icd10-cm-2014
path:
  v: Condition.code.coding
slice name:
  v: icd10-cm-2014
short:
  v: 此為臺灣衛生福利部中央健康保險署維護之2014年中文版ICD-10-CM代碼，涵蓋範圍相對完整，可免費使用，可優先選用此代碼。
definition:
  v: 由專門術語系統（terminology system）所定義之代碼的參照。
comment:
  v: 代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，如SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles ）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。
requirements:
  v: 允許使用者在不知道識別碼系統的情況下利用識別碼
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CodeableConcept.coding
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw
    link: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
binding:
  strength:
    v: required
  description:
    v: 病情、問題或診斷的識別；應填入所綁定值集中的其中一個代碼。
  value set:
    v: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/icd-10-cm-2014-tw
    link: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/icd-10-cm-2014-tw
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE subset one of the sets of component 1-3 or 4-6
mapping:
  identity:
    v: rim
  map:
    v: CV
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding rdfs:subClassOf dt:CDCoding

id:
  v: Condition.code.coding:icd9-cm-2001
path:
  v: Condition.code.coding
slice name:
  v: icd9-cm-2001
short:
  v: 由專門術語系統（terminology system）定義的代碼
definition:
  v: 由專門術語系統（terminology system）所定義之代碼的參照
comment:
  v: 代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，例如：SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles ）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。
requirements:
  v: 允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CodeableConcept.coding
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw
    link: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
binding:
  strength:
    v: required
  value set:
    v: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/icd-9-cm-2001-tw
    link: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/icd-9-cm-2001-tw
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE subset one of the sets of component 1-3 or 4-6
mapping:
  identity:
    v: rim
  map:
    v: CV
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding rdfs:subClassOf dt:CDCoding

id:
  v: Condition.code.coding:absentOrUnknownProblem
path:
  v: Condition.code.coding
slice name:
  v: absentOrUnknownProblem
short:
  v: 不存在的問題或未知問題的代碼
definition:
  v: 表示「absent problem」或「problems unknown」的代碼
comment:
  v: 代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，例如：SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles ）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。
requirements:
  v: 允許使用者在不知道識別碼系統的情況下利用識別碼
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CodeableConcept.coding
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw
    link: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
binding:
  strength:
    v: required
  description:
    v: 應填入所綁定值集中的其中一個代碼。
  value set:
    v: http://hl7.org/fhir/uv/ips/ValueSet/absent-or-unknown-problems-uv-ips
    link: http://hl7.org/fhir/uv/ips/ValueSet/absent-or-unknown-problems-uv-ips
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE subset one of the sets of component 1-3 or 4-6
mapping:
  identity:
    v: rim
  map:
    v: CV
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding rdfs:subClassOf dt:CDCoding

id:
  v: Condition.code.coding:sct
path:
  v: Condition.code.coding
slice name:
  v: sct
short:
  v: 此為SNOMED CT診斷代碼，若機構已有購買相關授權，亦可使用。
definition:
  v: 由專門術語系統（terminology system）所定義之代碼的參照
comment:
  v: 代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，例如：SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles ）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。
requirements:
  v: 允許使用者在不知道識別碼系統的情況下利用識別碼
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CodeableConcept.coding
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw
    link: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
binding:
  strength:
    v: required
  description:
    v: 應填入所綁定值集中的其中一個代碼。
  value set:
    v: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/condition-code-sct-tw
    link: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/condition-code-sct-tw
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE subset one of the sets of component 1-3 or 4-6
mapping:
  identity:
    v: rim
  map:
    v: CV
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding rdfs:subClassOf dt:CDCoding

id:
  v: Condition.code.text
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value:
    v: true
path:
  v: Condition.code.text
short:
  v: 概念的文字表示法
definition:
  v: 輸入資料的使用者所見／所選／所說的人類可讀文字表述，和（或）其代表使用者的預期含義。
comment:
  v: 很多時候，此文字表述與其中一個代碼的顯示名稱相同。
requirements:
  v: 專門術語中的代碼並不總是能捕捉人類使用的細微差別的正確意義，或者根本就沒有合適的代碼；這些情況下，文字表述被用來捕捉來源的全部意義。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CodeableConcept.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: C*E.9. But note many systems use C*E.2 for this
mapping:
  identity:
    v: rim
  map:
    v: ./originalText[mediaType/code="text/plain"]/data
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText

id:
  v: Condition.bodySite
path:
  v: Condition.bodySite
short:
  v: 如果相關請填寫解剖位置
definition:
  v: 此病情、問題或診斷表現出來的解剖位置
comment:
  v: 只有在Condition.code中找到的代碼未隱含此資料項目概念時才使用。如果使用案例（use-case）要求將BodySite作為一個單獨的resource來處理（例如：識別和追踪），那麼就使用標準的資料項目擴充方式來擴充bodySite。可以是一個摘要代碼，也可以是對一個非常精確位置定義的參照，或者兩者都是。
min:
  v: 0
max:
  v: *
base:
  path:
    v: Condition.bodySite
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    link: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
binding:
  strength:
    v: extensible
  description:
    v: 描述解剖位置的代碼。可包括側面；應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/body-site
    link: http://hl7.org/fhir/ValueSet/body-site
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE
mapping:
  identity:
    v: rim
  map:
    v: CD
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept rdfs:subClassOf dt:CD

id:
  v: Condition.subject
path:
  v: Condition.subject
short:
  v: Patient Resource urn:uuid:ResourceID
definition:
  v: 表示與此病情、問題或診斷紀錄相關的病人或實體集合（Group resource）
requirements:
  v: 實體集合（Group resource）通常用於獸醫或公共衛生的案例
alias:
  v: patient
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Condition.subject
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Group
    link: http://hl7.org/fhir/StructureDefinition/Group
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.subject
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.subject[x]
mapping:
  identity:
    v: v2
  map:
    v: PID-3
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=SBJ].role[classCode=PAT]
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.subject

id:
  v: Condition.encounter
path:
  v: Condition.encounter
short:
  v: 作為病情、問題或診斷紀錄的一部分的就醫（Encounter）紀錄
definition:
  v: 此病情、問題或診斷記載在哪次的「就醫（Encounter）」紀錄或者與此病情、問題或診斷紀錄密切相關的「就醫（Encounter）」紀錄
comment:
  v: 通常是此病情、問題或診斷發生的就醫事件，雖然有些活動可能在就醫結束之前或之後開始，但仍與就醫事件的情境有關。這筆紀錄表明與此病情、問題或診斷紀錄相關的就醫事件（Encounter）。「新的」診斷的情況下，反映病情、問題或診斷的持續/修訂資訊可能與首次就醫所知道的病情、問題或診斷不同。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Condition.encounter
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Encounter-twcore
    link: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Encounter-twcore
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.context
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.context
mapping:
  identity:
    v: v2
  map:
    v: PV1-19 (+PV1-54)
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]

id:
  v: Condition.onset[x]
path:
  v: Condition.onset[x]
short:
  v: 估計的或實際的日期、日期—時間或年齡。
definition:
  v: 醫師認為此病情、問題或診斷之推估或實際發生時間或日期時間等
comment:
  v: onsetAge通常是指病人說明病情何時開始發生的年齡
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Condition.onset[x]
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support
    value:
      v: true
  code:
    v: dateTime
type:
  code:
    v: Age
type:
  code:
    v: Period
type:
  code:
    v: Range
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.occurrence[x]
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.init
mapping:
  identity:
    v: v2
  map:
    v: PRB-16
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime.low or .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code="age at onset"].value

id:
  v: Condition.abatement[x]
path:
  v: Condition.abatement[x]
short:
  v: 何時解決/緩解
definition:
  v: 病情、問題或診斷緩解或開始緩解的日期或估計日期。因為與「緩解（remissio）」或 「解決（resolution）」相關的許多過多含義—病情、問題或診斷不會真正解決，但它們可以緩解，所以稱為「緩解 （abatement）」，
comment:
  v: 解決（resolution）和緩解（remission）之間沒有明確的區別，因為在許多情況下，兩者的區別並不明顯。當病人說明病情、問題或診斷緩解的年齡時，一般使用onsetAge。如果沒有abatement這個資料項目，就不知道狀況是否已經解決或緩解；應用程式和使用者一般應假定病情、問題或診斷仍存在。當abatementString存在時，它意味著病情、問題或診斷已緩解。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Condition.abatement[x]
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support
    value:
      v: true
  code:
    v: dateTime
type:
  code:
    v: Age
type:
  code:
    v: Period
type:
  code:
    v: Range
type:
  code:
    v: string
condition:
  v: con-4
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.done[x]
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime.high or .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code="age at remission"].value or .inboundRelationship[typeCode=SUBJ]source[classCode=CONC, moodCode=EVN].status=completed

id:
  v: Condition.recordedDate
path:
  v: Condition.recordedDate
short:
  v: 記錄的日期
definition:
  v: recordedDate表述此Condition記錄何時於系統中建立，這通常是系統產生的日期。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Condition.recordedDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.recorded
mapping:
  identity:
    v: v2
  map:
    v: REL-11
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=AUT].time

id:
  v: Condition.recorder
path:
  v: Condition.recorder
short:
  v: 誰記錄此病情、問題或診斷
definition:
  v: 記錄病情、問題或診斷內容並對其內容負責的個人
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Condition.recorder
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    link: http://hl7.org/fhir/StructureDefinition/RelatedPerson
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.author
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=AUT].role

id:
  v: Condition.asserter
path:
  v: Condition.asserter
short:
  v: 聲稱有此病情、問題或診斷的人
definition:
  v: 提出此病情、問題或診斷說明的人
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Condition.asserter
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    link: http://hl7.org/fhir/StructureDefinition/RelatedPerson
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.source
mapping:
  identity:
    v: v2
  map:
    v: REL-7.1 identifier + REL-7.12 type code
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=INF].role

id:
  v: Condition.stage
path:
  v: Condition.stage
short:
  v: 分期（stage）／分級（grade），通常是正式的評估。
definition:
  v: 病情、問題或診斷的臨床分期或分級，可能包括正式的嚴重程度評估。
min:
  v: 0
max:
  v: *
base:
  path:
    v: Condition.stage
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: con-1
  severity:
    v: error
  human:
    v: Stage SHALL have summary or assessment
  expression:
    v: summary.exists() or assessment.exists()
  xpath:
    v: exists(f:summary) or exists(f:assessment)
  source:
    v: http://hl7.org/fhir/StructureDefinition/Condition
    link: http://hl7.org/fhir/StructureDefinition/Condition
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: ./inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code="stage/grade"]

id:
  v: Condition.stage.id
path:
  v: Condition.stage.id
representation:
  v: xmlAttr
short:
  v: 唯一可識別ID，以供資料項目間相互參照。
definition:
  v: resource中資料項目的唯一ID（用於內部參照）。這可以是任何不含空格的字串。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Condition.stage.extension
path:
  v: Condition.stage.extension
short:
  v: 擴充的資料項目
definition:
  v: 可用於表示不屬於此資料項目基本定義的附加資訊。為了擴充的使用安全和可管理，對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充，但作為擴充定義的一部分，有一套要求 **必須（SHALL）** 滿足。
comment:
  v: 無論使用或定義擴充的機構或管轄區，任何應用程式、專案或標準使用擴充都不背負任何污名（stigma）。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: Condition.stage.modifierExtension
path:
  v: Condition.stage.modifierExtension
short:
  v: 此擴充的資料項目可能會完全修正或改變其他資料項目的意涵，需特別留意。
definition:
  v: 可以用來表示不屬於資料項目的基本定義的附加資訊，並且修改對它所內嵌（contained）的資料項目的理解和（或）對包含資料項目之後續使用的理解。通常，修飾用的資料項目提供否定或限定。為了使擴充的使用安全和可管理，對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充，但作為擴充定義的一部分，有一套要求 **必須（SHALL）** 滿足。處理resource的應用程式被要求檢查修飾用的擴充資料項目。 修飾用的擴充資料項目 **必須沒有（SHALL NOT）** 改變resource或DomainResource上任何資料項目的含義（包括不能改變modifierExtension本身的含義）。
comment:
  v: 無論使用或定義擴充的機構或管轄區，任何應用程式、專案或標準使用擴充都不背負任何污名（stigma）。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。
requirements:
  v: 修飾用的資料項目擴充將不能安全地忽略的擴充與絕大多數可以安全地忽略的擴充明確區分開來。透過消除禁止實作者擴充存在的需求來促進可互操作性。更多訊息，請參見[修飾用的資料項目擴充之定義](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)。
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true

id:
  v: Condition.stage.summary
path:
  v: Condition.stage.summary
short:
  v: 簡單的摘要（特定疾病）。
definition:
  v: 對分期的簡單摘要，如「第3期」。針對特定疾病的分期測定。
comment:
  v: Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Condition.stage.summary
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    link: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
binding:
  strength:
    v: extensible
  description:
    v: 描述病情、問題或診斷分期的代碼（例如：癌症分期）。應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/condition-stage
    link: http://hl7.org/fhir/ValueSet/condition-stage
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE
mapping:
  identity:
    v: rim
  map:
    v: CD
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept rdfs:subClassOf dt:CD

id:
  v: Condition.stage.assessment
path:
  v: Condition.stage.assessment
short:
  v: 正式的評估記錄
definition:
  v: 分期評估所依據的證據之正式記錄
min:
  v: 0
max:
  v: *
base:
  path:
    v: Condition.stage.assessment
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ClinicalImpression
    link: http://hl7.org/fhir/StructureDefinition/ClinicalImpression
condition:
  v: con-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .self

id:
  v: Condition.stage.type
path:
  v: Condition.stage.type
short:
  v: 分期的種類
definition:
  v: 分期的種類，如病理分期或臨床分期。
comment:
  v: Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Condition.stage.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    link: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
binding:
  strength:
    v: extensible
  description:
    v: 病情、問題或診斷分期種類的代碼（如臨床或病理）；應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/condition-stage-type
    link: http://hl7.org/fhir/ValueSet/condition-stage-type
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE
mapping:
  identity:
    v: rim
  map:
    v: CD
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept rdfs:subClassOf dt:CD

id:
  v: Condition.evidence
path:
  v: Condition.evidence
short:
  v: 支持的證據
definition:
  v: 作為病情、問題或診斷驗證狀態基礎的支持證據／臨床表現，如證實或反駁病情、問題或診斷的證據。
comment:
  v: 證據可以是一個簡單的編碼症狀／臨床表現的清單，或參考檢驗檢查或者正式評估，或者兩者都是。
min:
  v: 0
max:
  v: *
base:
  path:
    v: Condition.evidence
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: con-2
  severity:
    v: error
  human:
    v: evidence SHALL have code or details
  expression:
    v: code.exists() or detail.exists()
  xpath:
    v: exists(f:code) or exists(f:detail)
  source:
    v: http://hl7.org/fhir/StructureDefinition/Condition
    link: http://hl7.org/fhir/StructureDefinition/Condition
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=SPRT].target[classCode=OBS, moodCode=EVN]

id:
  v: Condition.evidence.id
path:
  v: Condition.evidence.id
representation:
  v: xmlAttr
short:
  v: 唯一可識別ID，以供資料項目間相互參照。
definition:
  v: resource中資料項目的唯一ID（用於內部參照）。這可以是任何不含空格的字串。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Condition.evidence.extension
path:
  v: Condition.evidence.extension
short:
  v: 擴充的資料項目
definition:
  v: 可用於表示不屬於此資料項目基本定義的附加資訊。為了擴充的使用安全和可管理，對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充，但作為擴充定義的一部分，有一套要求 **必須（SHALL）** 滿足。
comment:
  v: 無論使用或定義擴充的機構或管轄區，任何應用程式、專案或標準使用擴充都不背負任何污名（stigma）。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: Condition.evidence.modifierExtension
path:
  v: Condition.evidence.modifierExtension
short:
  v: 此擴充的資料項目可能會完全修正或改變其他資料項目的意涵，需特別留意。
definition:
  v: 可以用來表示不屬於資料項目的基本定義的附加資訊，並且修改對它所內嵌（contained）的資料項目的理解和（或）對包含資料項目之後續使用的理解。通常，修飾用的資料項目提供否定或限定。為了使擴充的使用安全和可管理，對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充，但作為擴充定義的一部分，有一套要求 **必須（SHALL）** 滿足。處理resource的應用程式被要求檢查修飾用的擴充資料項目。 修飾用的擴充資料項目 **必須沒有（SHALL NOT）** 改變resource或DomainResource上任何資料項目的含義（包括不能改變modifierExtension本身的含義）。
comment:
  v: 無論使用或定義擴充的機構或管轄區，任何應用程式、專案或標準使用擴充都不背負任何污名（stigma）。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。
requirements:
  v: 修飾用的資料項目擴充將不能安全地忽略的擴充與絕大多數可以安全地忽略的擴充明確區分開來。透過消除禁止實作者擴充存在的需求來促進可互操作性。更多訊息，請參見[修飾用的資料項目擴充之定義](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)。
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true

id:
  v: Condition.evidence.code
path:
  v: Condition.evidence.code
short:
  v: 表現／症狀
definition:
  v: 導致記錄此病情、問題或診斷的表現或症狀
comment:
  v: Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Condition.evidence.code
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
  profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
    link: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
binding:
  strength:
    v: extensible
  description:
    v: 病情、問題或診斷的表現或症狀之代碼；應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/manifestation-or-symptom
    link: http://hl7.org/fhir/ValueSet/manifestation-or-symptom
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE
mapping:
  identity:
    v: rim
  map:
    v: CD
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept rdfs:subClassOf dt:CD

id:
  v: Condition.evidence.detail
path:
  v: Condition.evidence.detail
short:
  v: 在其他地方找到的支持資訊
definition:
  v: 其他相關資訊的連接，包括病理報告。
min:
  v: 0
max:
  v: *
base:
  path:
    v: Condition.evidence.detail
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource
    link: http://hl7.org/fhir/StructureDefinition/Resource
condition:
  v: con-2
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.why[x]
mapping:
  identity:
    v: rim
  map:
    v: .self

id:
  v: Condition.note
path:
  v: Condition.note
short:
  v: 關於此Condition的附加資訊
definition:
  v: 關於此Condition的附加資訊。這是一個一般的註釋／意見紀錄，用於描述病情、問題或診斷、其診斷和預後。
min:
  v: 0
max:
  v: *
base:
  path:
    v: Condition.note
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Annotation
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Event.note
mapping:
  identity:
    v: v2
  map:
    v: NTE child of PRB
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code="annotation"].value

element:
  id:
    v: Condition
  path:
    v: Condition
  short:
    v: 此IG將非FHIR標準的健康存摺JSON格式與目前次世代數位醫療平台採用的FHIR國際標準整合
  definition:
    v: 一個臨床病情、問題、診斷或其他事件、情況、或臨床概念，已上升到需要關注的程度。
element:
  id:
    v: Condition.id
  path:
    v: Condition.id
  short:
    v: 不重複的ID用以識別儲存在特定FHIR Server中的Condition紀錄，通常又稱為邏輯性ID。
  definition:
    v: resource的邏輯ID，在resource的URL中使用。一旦指定，這個值永遠不會改變。
  comment:
    v: 一個resource使用新增操作（create operation）提交給伺服器時，此resource沒有id，它的id在resource被創建後由伺器分配/指定。
element:
  id:
    v: Condition.meta
  path:
    v: Condition.meta
  short:
    v: 此Condition Resource的metadata
  definition:
    v: 關於resource的metadata。這是由基礎建設維護的內容。內容的更改可能並不總是與resource的版本更改相關聯。
element:
  id:
    v: Condition.implicitRules
  path:
    v: Condition.implicitRules
  short:
    v: 創建此內容所依據的一組規則
  definition:
    v: 構建resource時遵循的一系列規則的參照，在處理內容時必須理解這些規則。通常這是對IG所定義之特殊規則及其他profiles的參照。
  comment:
    v: 宣告這套規則限制了內容只能被有限的交易夥伴所理解。這從本質上限制了資料的長期有用性。然而，現有的健康生態體系高度分裂，還沒有準備好以普遍可計算的方式定義、收集和交換資料。只要有可能，實作者和/或規範編寫者應該避免使用這個資料項目。通常在使用時，此URL是對IG的參照，此IG將這些特殊規則與其他profiles、value sets等一起定義為其敘述的一部分。
element:
  id:
    v: Condition.language
  path:
    v: Condition.language
  short:
    v: 用以表述Condition Resource內容的語言。
  definition:
    v: 編寫此resource的語言
  comment:
    v: 提供語言是為了支援索引和可存取性（通常，文字表述轉語音等服務使用此語言標籤）。html lanuage tag適用於此敘述。resource上的語言標籤可用於指定從resource中的資料所產成的其他表述之語言。不是所有的內容都必須使用此語言。不應該假定Resource.language自動適用於敘述。如果指定語言，它也應該被指定在html中的div資料項目（關於xml:lang和html lang屬性之間的關係，見HTML5中的規則）。
  example:
    label:
      v: Value
    value:
      v: zh-TW
  binding:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
      value:
        v: http://hl7.org/fhir/ValueSet/all-languages
        link: http://hl7.org/fhir/ValueSet/all-languages
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      value:
        v: Language
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding
      value:
        v: true
    strength:
      v: preferred
    description:
      v: 人類語言；鼓勵使用CommonLanguages代碼表中的代碼，但不強制一定要使用此代碼表，你也可使用其他代碼表的代碼或單純以文字表示。
    value set:
      v: http://hl7.org/fhir/ValueSet/languages
      link: http://hl7.org/fhir/ValueSet/languages
element:
  id:
    v: Condition.text
  path:
    v: Condition.text
  short:
    v: Condition Resource之內容摘要以供人閱讀
  definition:
    v: 人可讀的敘述，包含resource的摘要，可用於向人表述resource的內容。敘述不需要對所有的結構化資料進行編碼，但需要包含足夠的細節使人在閱讀敘述時理解「臨床安全性」。resource定義有哪些內容應該在敘述中表示，以確保臨床安全。
  comment:
    v: 內嵌（contained）的resource沒有敘述，非內嵌（contained）的resource則 **建議應該（SHOULD）** 有敘述。有時resource可能只有文字表述，很少或沒有額外的結構化資料（只要滿足所有minOccurs=1的資料項目）。這可能出現在舊系統的資料，當資訊以 「文字表述區塊（text blob） 」的形式被取得，或者文字表述是原始輸入或說明，而編碼資訊稍後再添加。
element:
  id:
    v: Condition.identifier
  path:
    v: Condition.identifier
  short:
    v: 此病情、問題或診斷的外部識別碼
  definition:
    v: 由執行者或其他系統指定給此病情、問題或診斷的業務用識別碼，即使此resource作更新及在伺服器之間的傳遞，此識別碼仍保持不變。
  comment:
    v: 這是一個業務識別碼，不是一個resource識別碼（詳見討論）。最好的做法是該識別碼只出現在單個resource實例上，但是業務實務有可能會規定可以在多個resource實例中具有相同識別碼—甚至可能具有不同的resource型例。例如：多個 「Patient（病人）」和 「Person（個人）」resource實例可能共用同一個社會保險號碼。
  requirements:
    v: 允許識別各參與系統所知的此病情、問題或診斷資訊，並在各伺服器之間保持一致的方式。
element:
  id:
    v: Condition.clinicalStatus
  path:
    v: Condition.clinicalStatus
  short:
    v: active | recurrence | relapse | inactive | remission | resolved ，病情、問題或診斷的臨床狀態。
  definition:
    v: 此病情、問題或診斷的臨床狀態
  comment:
    v: data type是CodeableConcept，因為clinicalStatus涉及到一些臨床判斷，例如：可能需要比所需的FHIR值集更多的特殊性。例如：SNOMED編碼可能允許更多的特殊性。
  min:
    v: 1
  pattern: CodeableConcept
    coding:
      code:
        v: active
  must support:
    v: true
  binding:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      value:
        v: ConditionClinicalStatus
    strength:
      v: required
    description:
      v: 應填入所綁定值集中的其中一個代碼。
    value set:
      v: http://hl7.org/fhir/ValueSet/condition-clinical|4.0.1
      link: 4.0
      link: .1
element:
  id:
    v: Condition.verificationStatus
  path:
    v: Condition.verificationStatus
  short:
    v: unconfirmed | provisional | differential | confirmed | refuted | entered-in-error ，支持或拒絕病情、問題或診斷的臨床狀態的驗證狀態。
  definition:
    v: 支持此病情、問題或診斷的臨床狀態之驗證狀態
  comment:
    v: verificationStatus不是必須的。例如：當病人在急診室出現腹痛時，不可能出現驗證狀態。資料類型是CodeableConcept，因為verificationStatus涉及到一些臨床判斷，因此可能需要比所需的FHIR值集更多的特殊性。例如：SNOMED編碼可能允許更多的特殊性。
  must support:
    v: true
  binding:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      value:
        v: ConditionVerificationStatus
    strength:
      v: required
    description:
      v: 應填入所綁定值集中的其中一個代碼。
    value set:
      v: http://hl7.org/fhir/ValueSet/condition-ver-status|4.0.1
      link: 4.0
      link: .1
element:
  id:
    v: Condition.category
  path:
    v: Condition.category
  short:
    v: encounter-diagnosis ，指定病情、問題或診斷的類別。
  definition:
    v: 指定此病情、問題或診斷的類別
  comment:
    v: 這種分類往往具有很強的情境性，在其他情境下可能顯得區分度不高，或沒有什麼用處。
  min:
    v: 1
  max:
    v: 1
  must support:
    v: true
  binding:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      value:
        v: ConditionCategory
    strength:
      v: extensible
    description:
      v: 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
    value set:
      v: http://hl7.org/fhir/ValueSet/condition-category
      link: http://hl7.org/fhir/ValueSet/condition-category
element:
  id:
    v: Condition.severity
  path:
    v: Condition.severity
  short:
    v: 病情、問題或診斷的主觀嚴重程度

v: 臨床醫生對病情、問題或診斷嚴重程度的主觀評估

v: 如有可能，最好用專門術語對嚴重程度進行編碼。

v: true

strength:
  v: extensible
description:
  v: 臨床醫生對病情、問題或診斷嚴重程度的主觀評價；應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
value set:
  v: http://hl7.org/fhir/ValueSet/condition-severity
  link: http://hl7.org/fhir/ValueSet/condition-severity

id:
  v: Condition.code
path:
  v: Condition.code
short:
  v: 病情、問題或診斷的識別
definition:
  v: 病情、問題或診斷的識別
requirements:
  v: 0..1，主要用於說明敘述性resource。
must support:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: ConditionKind
  strength:
    v: example
  description:
    v: 此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。
  value set:
    v: http://hl7.org/fhir/ValueSet/condition-code
    link: http://hl7.org/fhir/ValueSet/condition-code

id:
  v: Condition.code.coding
path:
  v: Condition.code.coding
slicing:
  discriminator:
    type:
      v: pattern
    path:
      v: $this
  rules:
    v: open
short:
  v: 由專門術語系統（terminology system）定義的代碼。此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。
definition:
  v: 由專門術語系統（terminology system）所定義之代碼的參照。
comment:
  v: 代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，如SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。
requirements:
  v: 允許使用者在不知道識別碼系統的情況下利用識別碼

id:
  v: Condition.code.coding:absentOrUnknownProblem
path:
  v: Condition.code.coding
slice name:
  v: absentOrUnknownProblem
short:
  v: 不存在的問題或未知問題的代碼
definition:
  v: 表示「absent problem」或「problems unknown」的代碼
min:
  v: 0
max:
  v: 1
must support:
  v: true
binding:
  strength:
    v: required
  description:
    v: 應填入所綁定值集中的其中一個代碼。
  value set:
    v: http://hl7.org/fhir/uv/ips/ValueSet/absent-or-unknown-problems-uv-ips
    link: http://hl7.org/fhir/uv/ips/ValueSet/absent-or-unknown-problems-uv-ips

id:
  v: Condition.code.coding:sct
path:
  v: Condition.code.coding
slice name:
  v: sct
short:
  v: 此為SNOMED CT診斷代碼，若機構已有購買相關授權，亦可使用。
min:
  v: 0
max:
  v: 1
must support:
  v: true
binding:
  strength:
    v: required
  description:
    v: 應填入所綁定值集中的其中一個代碼。
  value set:
    v: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/condition-code-sct-tw
    link: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/condition-code-sct-tw

id:
  v: Condition.bodySite
path:
  v: Condition.bodySite
short:
  v: 如果相關請填寫解剖位置
definition:
  v: 此病情、問題或診斷表現出來的解剖位置
comment:
  v: 只有在Condition.code中找到的代碼未隱含此資料項目概念時才使用。如果使用案例（use-case）要求將BodySite作為一個單獨的resource來處理（例如：識別和追踪），那麼就使用標準的資料項目擴充方式來擴充bodySite。可以是一個摘要代碼，也可以是對一個非常精確位置定義的參照，或者兩者都是。
must support:
  v: true
binding:
  strength:
    v: extensible
  description:
    v: 描述解剖位置的代碼。可包括側面；應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/body-site
    link: http://hl7.org/fhir/ValueSet/body-site

id:
  v: Condition.subject
path:
  v: Condition.subject
short:
  v: Patient Resource urn:uuid:ResourceID
definition:
  v: 表示與此病情、問題或診斷紀錄相關的病人或實體集合（Group resource）
requirements:
  v: 實體集合（Group resource）通常用於獸醫或公共衛生的案例
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Group
    link: http://hl7.org/fhir/StructureDefinition/Group
must support:
  v: true

id:
  v: Condition.encounter
path:
  v: Condition.encounter
short:
  v: 作為病情、問題或診斷紀錄的一部分的就醫（Encounter）紀錄
definition:
  v: 此病情、問題或診斷記載在哪次的「就醫（Encounter）」紀錄或者與此病情、問題或診斷紀錄密切相關的「就醫（Encounter）」紀錄
comment:
  v: 通常是此病情、問題或診斷發生的就醫事件，雖然有些活動可能在就醫結束之前或之後開始，但仍與就醫事件的情境有關。這筆紀錄表明與此病情、問題或診斷紀錄相關的就醫事件（Encounter）。「新的」診斷的情況下，反映病情、問題或診斷的持續/修訂資訊可能與首次就醫所知道的病情、問題或診斷不同。

id:
  v: Condition.onset[x]
path:
  v: Condition.onset[x]
short:
  v: 估計的或實際的日期、日期—時間或年齡。
definition:
  v: 醫師認為此病情、問題或診斷之推估或實際發生時間或日期時間等
comment:
  v: onsetAge通常是指病人說明病情何時開始發生的年齡
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support
    value:
      v: true
  code:
    v: dateTime
type:
  code:
    v: Age
type:
  code:
    v: Period
type:
  code:
    v: Range
type:
  code:
    v: string
must support:
  v: true

id:
  v: Condition.abatement[x]
path:
  v: Condition.abatement[x]
short:
  v: 何時解決/緩解
definition:
  v: 病情、問題或診斷緩解或開始緩解的日期或估計日期。因為與「緩解（remissio）」或 「解決（resolution）」相關的許多過多含義—病情、問題或診斷不會真正解決，但它們可以緩解，所以稱為「緩解 （abatement）」，
comment:
  v: 解決（resolution）和緩解（remission）之間沒有明確的區別，因為在許多情況下，兩者的區別並不明顯。當病人說明病情、問題或診斷緩解的年齡時，一般使用onsetAge。如果沒有abatement這個資料項目，就不知道狀況是否已經解決或緩解；應用程式和使用者一般應假定病情、問題或診斷仍存在。當abatementString存在時，它意味著病情、問題或診斷已緩解。
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support
    value:
      v: true
  code:
    v: dateTime
type:
  code:
    v: Age
type:
  code:
    v: Period
type:
  code:
    v: Range
type:
  code:
    v: string
must support:
  v: true

id:
  v: Condition.recordedDate
path:
  v: Condition.recordedDate
short:
  v: 記錄的日期
definition:
  v: recordedDate表述此Condition記錄何時於系統中建立，這通常是系統產生的日期。

id:
  v: Condition.recorder
path:
  v: Condition.recorder
short:
  v: 誰記錄此病情、問題或診斷
definition:
  v: 記錄病情、問題或診斷內容並對其內容負責的個人
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    link: http://hl7.org/fhir/StructureDefinition/RelatedPerson

id:
  v: Condition.asserter
path:
  v: Condition.asserter
short:
  v: 聲稱有此病情、問題或診斷的人
definition:
  v: 提出此病情、問題或診斷說明的人
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    link: http://hl7.org/fhir/StructureDefinition/RelatedPerson
must support:
  v: true

id:
  v: Condition.stage
path:
  v: Condition.stage
short:
  v: 分期（stage）／分級（grade），通常是正式的評估。
definition:
  v: 病情、問題或診斷的臨床分期或分級，可能包括正式的嚴重程度評估。

id:
  v: Condition.stage.summary
path:
  v: Condition.stage.summary
short:
  v: 簡單的摘要（特定疾病）。
definition:
  v: 對分期的簡單摘要，如「第3期」。針對特定疾病的分期測定。
binding:
  strength:
    v: extensible
  description:
    v: 描述病情、問題或診斷分期的代碼（例如：癌症分期）。應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/condition-stage
    link: http://hl7.org/fhir/ValueSet/condition-stage

id:
  v: Condition.stage.assessment
path:
  v: Condition.stage.assessment
short:
  v: 正式的評估記錄
definition:
  v: 分期評估所依據的證據之正式記錄
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ClinicalImpression
    link: http://hl7.org/fhir/StructureDefinition/ClinicalImpression

id:
  v: Condition.stage.type
path:
  v: Condition.stage.type
short:
  v: 分期的種類
definition:
  v: 分期的種類，如病理分期或臨床分期。
binding:
  strength:
    v: extensible
  description:
    v: 病情、問題或診斷分期種類的代碼（如臨床或病理）；應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/condition-stage-type
    link: http://hl7.org/fhir/ValueSet/condition-stage-type

id:
  v: Condition.evidence
path:
  v: Condition.evidence
short:
  v: 支持的證據
definition:
  v: 作為病情、問題或診斷驗證狀態基礎的支持證據／臨床表現，如證實或反駁病情、問題或診斷的證據。
comment:
  v: 證據可以是一個簡單的編碼症狀／臨床表現的清單，或參考檢驗檢查或者正式評估，或者兩者都是。

id:
  v: Condition.evidence.code
path:
  v: Condition.evidence.code
short:
  v: 表現／症狀
definition:
  v: 導致記錄此病情、問題或診斷的表現或症狀
binding:
  strength:
    v: extensible
  description:
    v: 病情、問題或診斷的表現或症狀之代碼；應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/manifestation-or-symptom
    link: http://hl7.org/fhir/ValueSet/manifestation-or-symptom

id:
  v: Condition.evidence.detail
path:
  v: Condition.evidence.detail
short:
  v: 在其他地方找到的支持資訊
definition:
  v: 其他相關資訊的連接，包括病理報告。

id:
  v: Condition.note
path:
  v: Condition.note
short:
  v: 關於此Condition的附加資訊
definition:
  v: 關於此Condition的附加資訊。這是一個一般的註釋／意見紀錄，用於描述病情、問題或診斷、其診斷和預後。
must support:
  v: true