CarePlan-twcore
type: StructureDefinition
node role: treeRoot
id:
  v: CarePlan-twcore
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition CarePlan-twcore Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> CarePlan 0..* CarePlan 特定照護目標下為一位患者或一群患者識別的活動、干預和結果計畫 #xD; id 0..1 id 不重複的 ID 用以識別儲存在特定 FHIR Server 中的 CarePlan 紀錄，通常又稱為邏輯性 ID。 #xD; meta 0..1 Meta 此 CarePlan Resource 的 metadata #xD; implicitRules 0..1 uri 創建此內容所依據的一組規則 #xD; language 0..1 code 用以表述 CarePlan Resource 內容的語言 Binding: CommonLanguages (preferred): 人類語言；鼓勵使用 CommonLanguages 代碼表中的代碼，但不強制一定要使用此代碼表，你也可使用其他代碼表的代碼或單純以文字表示。 Additional Bindings Purpose AllLanguages Max Binding Example Value: zh-TW #xD; text S 0..1 Narrative CarePlan Resource 之內容摘要以供人閱讀 #xD; status S 1..1 code generated | additional Binding: 臺灣衛福部資訊處Narrative狀態值集 (required): 敘述狀態的受限值集。 #xD; div S 1..1 xhtml 有限的 xhtml 內容 #xD; basedOn 0..* Reference(TW Core CarePlan) 履行或延伸的照護計畫 #xD; replaces 0..* Reference(TW Core CarePlan) 被此計畫取代的照護計畫 #xD; partOf 0..* Reference(TW Core CarePlan) 作為父照護計畫的一部分 #xD; status S 1..1 code 照護計畫目前的狀態 Binding: RequestStatus (required): 指出計畫是否正在實施、代表未來意圖或是現在的歷史記錄。 #xD; intent S 1..1 code 照護計畫的意圖 Binding: CarePlanIntent (required): 表示與照護計畫相關的權威性/意向性程度的代碼 #xD; Slices for category S 1..* CodeableConcept 照護計畫的類型 Slice: Unordered, Open by pattern:$this #xD; category:AssessPlan S 1..1 CodeableConcept 評估計畫 Required Pattern: At least the following #xD; coding 1..* Coding Code defined by a terminology system Fixed Value: (Complex) #xD; system 1..1 uri Identity of the terminology system Fixed Value: https://twcore.mohw.gov.tw/ig/twcore/CodeSystem/careplan-category-tw #xD; code 1..1 code Symbol in syntax defined by the system Fixed Value: assess-plan #xD; subject S 1..1 Reference(TW Core Patient S | Group) 照護計畫的對象 #xD; encounter 0..1 Reference(TW Core Encounter) 與此照護計畫相關的就醫事件 #xD; author 0..1 Reference(TW Core Patient | TW Core Practitioner | TW Core PractitionerRole | TW Core Implantable Device | TW Core RelatedPerson | TW Core Organization | TW Core CareTeam) 照護計畫的作…
url:
  v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CarePlan-twcore
  l: CarePlan-twcore
version:
  v: 1.0.0
name:
  v: TWCoreCarePlan
title:
  v: TW Core CarePlan
status:
  v: active
date:
  v: 2026-01-07T07:13:09+00:00
contact:
  name:
    v: 衛生福利部
  telecom:
    system:
      v: url
    value:
      v: https://www.mohw.gov.tw/
  telecom:
    system:
      v: email
description:
  v: 此臺灣核心-照護計畫(TW Core CarePlan) Profile 說明本 IG 如何進一步定義 FHIR 的 CarePlan Resource 以呈現照護計畫資料。
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: workflow
  uri:
    v: http://hl7.org/fhir/workflow
    l: workflow
  name:
    v: Workflow Pattern
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
    l: v3
  name:
    v: RIM Mapping
mapping:
  identity:
    v: w5
  uri:
    v: http://hl7.org/fhir/fivews
    l: fivews
  name:
    v: FiveWs Pattern Mapping
mapping:
  identity:
    v: v2
  uri:
    v: http://hl7.org/v2
    l: v2
  name:
    v: HL7 v2 Mapping
kind:
  v: resource
abstract:
  v: false
type:
  v: CarePlan
  l: CarePlan
base definition:
  v: http://hl7.org/fhir/StructureDefinition/CarePlan
  l: CarePlan
derivation:
  v: constraint
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
      l: snapshot-base-version
    value: String
      v: 4.0.1
  element:
    id:
      v: CarePlan
    path:
      v: CarePlan
    short:
      v: 特定照護目標下為一位患者或一群患者識別的活動、干預和結果計畫
    definition:
      v: 描述為實現一個或多個目標而將為一位患者(或一群患者)進行的活動的計畫，包括診斷、監測、評估、治療、藥物治療、追蹤等。
    alias:
      v: Care Team
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: CarePlan
      min:
        v: 0
      max:
        v: *
    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
        l: 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
        l: 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
        l: 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()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:security))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      extension:
        value: Boolean
      extension:
        value: Markdown
      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
        l: DomainResource
    is modifier:
      v: false
    is summary:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: Entity. Role, or Act
    mapping:
      identity:
        v: workflow
      map:
        v: Request
    mapping:
      identity:
        v: rim
      map:
        v: Act[classCode=PCPR, moodCode=INT]

Boolean
v: true

Markdown
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.

id:
  v: CarePlan.id
path:
  v: CarePlan.id
short:
  v: 不重複的 ID 用以識別儲存在特定 FHIR Server 中的 CarePlan 紀錄，通常又稱為邏輯性 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
      l: structuredefinition-fhir-type
    value: Url
      v: id
      l: id
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: true

id:
  v: CarePlan.meta
path:
  v: CarePlan.meta
short:
  v: 此 CarePlan 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
    l: 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
    l: Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: CarePlan.implicitRules
path:
  v: CarePlan.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
    l: 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
    l: 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: CarePlan.language
path:
  v: CarePlan.language
short:
  v: 用以表述 CarePlan 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
    l: code
example:
  label:
    v: Value
  value: String
    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
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
      l: elementdefinition-maxValueSet
    value: Canonical
      v: http://hl7.org/fhir/ValueSet/all-languages
      l: all-languages
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: Language
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding
      l: elementdefinition-isCommonBinding
    value: Boolean
      v: true
  strength:
    v: preferred
  description:
    v: 人類語言；鼓勵使用 CommonLanguages 代碼表中的代碼，但不強制一定要使用此代碼表，你也可使用其他代碼表的代碼或單純以文字表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/languages
    l: languages

id:
  v: CarePlan.text
path:
  v: CarePlan.text
short:
  v: CarePlan 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
    l: 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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: Act.text?

id:
  v: CarePlan.text.id
path:
  v: CarePlan.text.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: CarePlan.text.extension
path:
  v: CarePlan.text.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: 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.
comment:
  v: 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.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: 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
    l: 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
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: CarePlan.text.status
path:
  v: CarePlan.text.status
short:
  v: generated | additional
definition:
  v: The status of the narrative - whether it's entirely generated (from just the defined data or the extensions too), or whether a human authored it and it may contain additional data.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Narrative.status
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
binding:
  strength:
    v: required
  description:
    v: 敘述狀態的受限值集。
  value set:
    v: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/narrative-status
    l: narrative-status
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: CarePlan.text.div
path:
  v: CarePlan.text.div
short:
  v: 有限的 xhtml 內容
definition:
  v: The actual narrative content, a stripped down version of XHTML.
comment:
  v: The contents of the html element are an XHTML fragment containing only the basic html formatting elements described in chapters 7-11 and 15 of the HTML 4.0 standard, elements (either name or href), images and internally contained stylesheets. The XHTML content SHALL NOT contain a head, a body, external stylesheet references, scripts, forms, base/link/xlink, frames, iframes and objects.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Narrative.div
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: xhtml
    l: http://hl7.org/fhir/xhtml
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
    l: Element
constraint:
  key:
    v: txt-1
  severity:
    v: error
  human:
    v: The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, elements (either name or href), images and internally contained style attributes
  expression:
    v: htmlChecks()
  xpath:
    v: not(descendant-or-self::*[not(local-name(.)=('a', 'abbr', 'acronym', 'b', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'))]) and not(descendant-or-self::*/@*[not(name(.)=('abbr', 'accesskey', 'align', 'alt', 'axis', 'bgcolor', 'border', 'cellhalign', 'cellpadding', 'cellspacing', 'cellvalign', 'char', 'charoff', 'charset', 'cite', 'class', 'colspan', 'compact', 'coords', 'dir', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'lang', 'longdesc', 'name', 'nowrap', 'rel', 'rev', 'rowspan', 'rules', 'scope', 'shape', 'span', 'src', 'start', 'style', 'summary', 'tabindex', 'title', 'type', 'valign', 'value', 'vspace', 'width'))])
  source:
    v: http://hl7.org/fhir/StructureDefinition/CarePlan
    l: CarePlan
constraint:
  key:
    v: txt-2
  severity:
    v: error
  human:
    v: The narrative SHALL have some non-whitespace content
  expression:
    v: htmlChecks()
  xpath:
    v: descendant::text()[normalize-space(.)!=''] or descendant::h:img[@src]
  source:
    v: http://hl7.org/fhir/StructureDefinition/CarePlan
    l: CarePlan
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: CarePlan.contained
path:
  v: CarePlan.contained
short:
  v: Contained, inline Resources
definition:
  v: These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
comment:
  v: This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have 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
    l: Resource
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: CarePlan.extension
path:
  v: CarePlan.extension
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the resource. 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.
comment:
  v: 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.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: 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
    l: 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
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: CarePlan.modifierExtension
path:
  v: CarePlan.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: 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
    l: 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
    l: 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
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: CarePlan.identifier
path:
  v: CarePlan.identifier
short:
  v: External Ids for this plan
definition:
  v: Business identifiers assigned to this care plan by the performer or other systems which remain constant as the resource is updated and propagates from server to server.
comment:
  v: This is a business identifier, not a resource identifier (see [discussion](http://hl7.org/fhir/R4/resource.html#identifiers)). It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types. For example, multiple Patient and a Person resource instance might share the same social insurance number.
requirements:
  v: Allows identification of the care plan as it is known by various participating systems and in a way that remains consistent across servers.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CarePlan.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
    l: 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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Request.identifier
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.identifier
mapping:
  identity:
    v: v2
  map:
    v: PTH-3
mapping:
  identity:
    v: rim
  map:
    v: .id

id:
  v: CarePlan.instantiatesCanonical
path:
  v: CarePlan.instantiatesCanonical
short:
  v: Instantiates FHIR protocol or definition
definition:
  v: The URL pointing to a FHIR-defined protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CarePlan.instantiatesCanonical
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: canonical
    l: canonical
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PlanDefinition|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/PlanDefinition
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Questionnaire|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Questionnaire
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Measure|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Measure
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ActivityDefinition|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/ActivityDefinition
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/OperationDefinition|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/OperationDefinition
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Request.instantiatesCanonical
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=DEFN].target

id:
  v: CarePlan.instantiatesUri
path:
  v: CarePlan.instantiatesUri
short:
  v: Instantiates external protocol or definition
definition:
  v: The URL pointing to an externally maintained protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan.
comment:
  v: This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CarePlan.instantiatesUri
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: uri
    l: 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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Request.instantiatesUri
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=DEFN].target

id:
  v: CarePlan.basedOn
path:
  v: CarePlan.basedOn
short:
  v: 履行或延伸的照護計畫
definition:
  v: 識別此照護計畫所建立的父計畫。
comment:
  v: 參照可以是相對的、絕對的或內部的。
requirements:
  v: Allows tracing of the care plan and tracking whether proposals/recommendations were acted upon.
alias:
  v: fulfills
min:
  v: 0
max:
  v: *
base:
  path:
    v: CarePlan.basedOn
  min:
    v: 0
  max:
    v: *
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy
      l: structuredefinition-hierarchy
    value: Boolean
      v: true
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CarePlan-twcore
    l: CarePlan-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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Request.basedOn

id:
  v: CarePlan.replaces
path:
  v: CarePlan.replaces
short:
  v: 被此計畫取代的照護計畫
definition:
  v: 識別被此照護計畫所取代的照護計畫。
comment:
  v: 參照可以是相對的、絕對的或內部的。
requirements:
  v: Allows tracing the continuation of a therapy or administrative process instantiated through multiple care plans.
alias:
  v: supersedes
min:
  v: 0
max:
  v: *
base:
  path:
    v: CarePlan.replaces
  min:
    v: 0
  max:
    v: *
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy
      l: structuredefinition-hierarchy
    value: Boolean
      v: true
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CarePlan-twcore
    l: CarePlan-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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Request.replaces

id:
  v: CarePlan.partOf
path:
  v: CarePlan.partOf
short:
  v: 作為父照護計畫的一部分
definition:
  v: 此照護計畫是另一個照護計畫的一部分。例如，專門針對骨折修復或糖尿病控制的計畫可能是出院護理計畫的一部分。
comment:
  v: 參照可以是相對的、絕對的或內部的。
min:
  v: 0
max:
  v: *
base:
  path:
    v: CarePlan.partOf
  min:
    v: 0
  max:
    v: *
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy
      l: structuredefinition-hierarchy
    value: Boolean
      v: true
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CarePlan-twcore
    l: CarePlan-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
    l: Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: CarePlan.status
path:
  v: CarePlan.status
short:
  v: 照護計畫目前的狀態
definition:
  v: 指明照護計畫是否正在執行中、表示未來意向或現在已成為歷史記錄。
comment:
v: 可以在 事件模式 文件中找到一個標準的狀態轉換圖。「未知」不代表「其他」狀態 - 必須使用其中一個已定義的狀態，「未知」用於表示不確定當前狀態。
requirements:
  v: 指出計畫是否正在實施、代表未來意圖或是現在的歷史記錄。
min:
  v: 1
max:
  v: 1
base:
  path:
    v: CarePlan.status
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
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
    l: Element
must support:
  v: true
is modifier:
  v: true
is modifier reason:
  v: This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid
is summary:
  v: true
binding:
  strength:
    v: required
  description:
    v: 指出計畫是否正在實施、代表未來意圖或是現在的歷史記錄。
  value set:
    v: http://hl7.org/fhir/ValueSet/request-status
    l: request-status
mapping:
  identity:
    v: workflow
  map:
    v: Request.status {uses different ValueSet}
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.status
mapping:
  identity:
    v: v2
  map:
    v: PTH-5
mapping:
  identity:
    v: rim
  map:
    v: .statusCode planned = new active = active completed = completed

id:
  v: CarePlan.intent
path:
  v: CarePlan.intent
short:
  v: 照護計畫的意圖
definition:
  v: 表示與照護計畫相關的權威性/意向性程度。
comment:
  v: This element is labeled as a modifier because the intent alters when and how the resource is actually applicable.
requirements:
  v: Proposals/recommendations, plans and orders all use the same structure and can exist in the same fulfillment chain.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: CarePlan.intent
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
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
    l: Element
must support:
  v: true
is modifier:
  v: true
is modifier reason:
  v: This element changes the interpretation of all descriptive attributes. For example "the time the request is recommended to occur" vs. "the time the request is authorized to occur" or "who is recommended to perform the request" vs. "who is authorized to perform the request"
is summary:
  v: true
binding:
  strength:
    v: required
  description:
    v: 表示與照護計畫相關的權威性/意向性程度的代碼
  value set:
    v: http://hl7.org/fhir/ValueSet/care-plan-intent
    l: care-plan-intent
mapping:
  identity:
    v: workflow
  map:
    v: Request.intent

id:
  v: CarePlan.category
path:
  v: CarePlan.category
slicing:
  discriminator:
    type:
      v: pattern
    path:
      v: $this
  rules:
    v: open
short:
  v: 照護計畫的類型
definition:
  v: 照護計畫的類型。
comment:
  v: There may be multiple axes of categorization and one plan may serve multiple purposes. In some cases, this may be redundant with references to CarePlan.concern.
requirements:
  v: 識別這是什麼「種類」的計畫，以支援多個共存計畫之間的區分；例如：「居家健康」、「精神科」、「氣喘」、「疾病管理」、「保健計畫」等。
min:
  v: 1
max:
  v: *
base:
  path:
    v: CarePlan.category
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: CarePlanCategory
  strength:
    v: example
  description:
    v: Identifies what "kind" of plan this is to support differentiation between multiple co-existing plans; e.g. "Home health", "psychiatric", "asthma", "disease management", etc.
  value set:
    v: http://hl7.org/fhir/ValueSet/care-plan-category|4.0.1
    l: http://hl7.org/fhir/ValueSet/care-plan-category
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class

id:
  v: CarePlan.category:AssessPlan
path:
  v: CarePlan.category
slice name:
  v: AssessPlan
short:
  v: 評估計畫
definition:
  v: Identifies what "kind" of plan this is to support differentiation between multiple co-existing plans; e.g. "Home health", "psychiatric", "asthma", "disease management", "wellness plan", etc.
comment:
  v: There may be multiple axes of categorization and one plan may serve multiple purposes. In some cases, this may be redundant with references to CarePlan.concern.
requirements:
  v: Used for filtering what plan(s) are retrieved and displayed to different types of users.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: CarePlan.category
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
pattern: CodeableConcept
  coding:
    system:
      v: https://twcore.mohw.gov.tw/ig/twcore/CodeSystem/careplan-category-tw
      l: careplan-category-tw
    code:
      v: assess-plan
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: CarePlanCategory
  strength:
    v: example
  description:
    v: Identifies what "kind" of plan this is to support differentiation between multiple co-existing plans; e.g. "Home health", "psychiatric", "asthma", "disease management", etc.
  value set:
    v: http://hl7.org/fhir/ValueSet/care-plan-category|4.0.1
    l: http://hl7.org/fhir/ValueSet/care-plan-category
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class

id:
  v: CarePlan.title
path:
  v: CarePlan.title
short:
  v: Human-friendly name for the care plan
definition:
  v: Human-friendly name for the care plan.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CarePlan.title
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: 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
    l: Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: CarePlan.description
path:
  v: CarePlan.description
short:
  v: Summary of nature of plan
definition:
  v: A description of the scope and nature of the plan.
requirements:
  v: Provides more detail than conveyed by category.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CarePlan.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: 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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.what[x]

id:
  v: CarePlan.subject
path:
  v: CarePlan.subject
short:
  v: 照護計畫的對象
definition:
  v: 照護計畫是為了誰。
requirements:
  v: 識別計畫描述其意圖照護的病人或群體。
alias:
  v: patient
min:
  v: 1
max:
  v: 1
base:
  path:
    v: CarePlan.subject
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Patient-twcore
    l: Patient-twcore
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support
        l: elementdefinition-type-must-support
      value: Boolean
        v: true
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Group
    l: Group
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support
        l: elementdefinition-type-must-support
      value: Boolean
        v: false
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Request.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=PAT].role[classCode=PAT]
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.subject

id:
  v: CarePlan.encounter
path:
  v: CarePlan.encounter
short:
  v: 與此照護計畫相關的就醫事件
definition:
  v: 此照護計畫是在哪個就醫情境產生的。
comment:
  v: 參照可以是相對的、絕對的或內部的。注意：如果 Encounter 參照是一個 Episode of Care 的一部分，則此資料點不足以隱含建立關聯。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CarePlan.encounter
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Encounter-twcore
    l: 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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Request.context
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.context
mapping:
  identity:
    v: v2
  map:
    v: Associated PV1
mapping:
  identity:
    v: rim
  map:
    v: .

id:
  v: CarePlan.period
path:
  v: CarePlan.period
short:
  v: Time period plan covers
definition:
  v: Indicates when the plan did (or is intended to) come into effect and end.
comment:
  v: Any activities scheduled as part of the plan should be constrained to the specified period regardless of whether the activities are planned within a single encounter/episode or across multiple encounters/episodes (e.g. the longitudinal management of a chronic condition).
requirements:
  v: Allows tracking what plan(s) are in effect at a particular time.
alias:
  v: timing
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CarePlan.period
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period
    l: Period
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Request.occurrence[x]
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.planned
mapping:
  identity:
    v: v2
  map:
    v: GOL-7 / GOL-8
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime

id:
  v: CarePlan.created
path:
  v: CarePlan.created
short:
  v: Date record was first recorded
definition:
  v: Represents when this particular CarePlan record was created in the system, which is often a system-generated date.
alias:
  v: authoredOn
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CarePlan.created
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: 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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Request.authoredOn
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.recorded
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=AUT].time

id:
  v: CarePlan.author
path:
  v: CarePlan.author
short:
  v: 照護計畫的作者
definition:
  v: 負責建立照護計畫內容的個人或組織。
comment:
  v: 參照可以是相對的、絕對的或內部的。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CarePlan.author
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Patient-twcore
    l: Patient-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Practitioner-twcore
    l: Practitioner-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore
    l: PractitionerRole-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Device-twcore
    l: Device-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/RelatedPerson-twcore
    l: RelatedPerson-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore
    l: Organization-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CareTeam-twcore
    l: CareTeam-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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Request.requester
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.author

id:
  v: CarePlan.contributor
path:
  v: CarePlan.contributor
short:
  v: 對計畫提供資訊的人員
definition:
  v: 對照護計畫的建立提供資訊的個人或組織，但不對照護計畫負責。
comment:
  v: 參照可以是相對的、絕對的或內部的。
min:
  v: 0
max:
  v: *
base:
  path:
    v: CarePlan.contributor
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Patient-twcore
    l: Patient-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Practitioner-twcore
    l: Practitioner-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore
    l: PractitionerRole-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Device-twcore
    l: Device-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/RelatedPerson-twcore
    l: RelatedPerson-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore
    l: Organization-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CareTeam-twcore
    l: CareTeam-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
    l: Element
is modifier:
  v: false
is summary:
  v: false

id:
  v: CarePlan.careTeam
path:
  v: CarePlan.careTeam
short:
  v: 執行照護工作的團隊
definition:
  v: 確定負責執行此照護計畫的照護團隊。
comment:
  v: 參照可以是相對的、絕對的或內部的。
requirements:
  v: Allows representation of care teams, helps scope care plan. In some cases may be a determiner of access permissions.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CarePlan.careTeam
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CareTeam-twcore
    l: CareTeam-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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Request.performer {similar but does not entail CareTeam}
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.actor

id:
  v: CarePlan.addresses
path:
  v: CarePlan.addresses
short:
  v: 本計畫處理的健康問題
definition:
  v: 本照護計畫試圖解決的健康問題(例如：疾病、病情、問題)。
comment:
  v: 參照可以是相對的、絕對的或內部的。
requirements:
  v: Links plan to the conditions it manages. The element can identify risks addressed by the plan as well as active conditions. (The Condition resource can include things like "at risk for hypertension" or "fall risk".) Also scopes plans - multiple plans may exist addressing different concerns.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CarePlan.addresses
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Condition-twcore
    l: Condition-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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Request.reasonReference
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.why[x]
mapping:
  identity:
    v: v2
  map:
    v: PRB-4
mapping:
  identity:
    v: rim
  map:
    v: .actRelationship[typeCode=SUBJ].target[classCode=CONC, moodCode=EVN]

id:
  v: CarePlan.supportingInfo
path:
  v: CarePlan.supportingInfo
short:
  v: Information considered as part of plan
definition:
  v: Identifies portions of the patient's record that specifically influenced the formation of the plan. These might include comorbidities, recent procedures, limitations, recent assessments, etc.
comment:
  v: Use "concern" to identify specific conditions addressed by the care plan.
requirements:
  v: Identifies barriers and other considerations associated with the care plan.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CarePlan.supportingInfo
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Resource
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Request.supportingInfo

id:
  v: CarePlan.goal
path:
  v: CarePlan.goal
short:
  v: Desired outcome of plan
definition:
  v: Describes the intended objective(s) of carrying out the care plan.
comment:
  v: Goal can be achieving a particular change or merely maintaining a current state or even slowing a decline.
requirements:
  v: Provides context for plan. Allows plan effectiveness to be evaluated by clinicians.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CarePlan.goal
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Goal|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Goal
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: v2
  map:
    v: GOL.1
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode<=OBJ].

id:
  v: CarePlan.activity
path:
  v: CarePlan.activity
short:
  v: Action to occur as part of plan
definition:
  v: Identifies a planned action to occur as part of the plan. For example, a medication to be used, lab tests to perform, self-monitoring, education, etc.
requirements:
  v: Allows systems to prompt for performance of planned activities, and validate plans against best practice.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CarePlan.activity
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: cpl-3
  severity:
    v: error
  human:
    v: Provide a reference or detail, not both
  expression:
    v: detail.empty() or reference.empty()
  xpath:
    v: not(exists(f:detail)) or not(exists(f:reference))
  source:
    v: http://hl7.org/fhir/StructureDefinition/CarePlan
    l: CarePlan
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: {no mapping NOTE: This is a list of contained Request-Event tuples!}
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=COMP].target

id:
  v: CarePlan.activity.id
path:
  v: CarePlan.activity.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: CarePlan.activity.extension
path:
  v: CarePlan.activity.extension
short:
  v: Additional content defined by implementations
definition:
  v: 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.
comment:
  v: 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.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: 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
    l: 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
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: CarePlan.activity.modifierExtension
path:
  v: CarePlan.activity.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: 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
    l: 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
    l: 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
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: CarePlan.activity.outcomeCodeableConcept
path:
  v: CarePlan.activity.outcomeCodeableConcept
short:
  v: Results of the activity
definition:
  v: Identifies the outcome at the point when the status of the activity is assessed. For example, the outcome of an education activity could be patient understands (or not).
comment:
  v: Note that this should not duplicate the activity status (e.g. completed or in progress).
min:
  v: 0
max:
  v: *
base:
  path:
    v: CarePlan.activity.outcomeCodeableConcept
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: CarePlanActivityOutcome
  strength:
    v: example
  description:
    v: Identifies the results of the activity.
  value set:
    v: http://hl7.org/fhir/ValueSet/care-plan-activity-outcome|4.0.1
    l: http://hl7.org/fhir/ValueSet/care-plan-activity-outcome

id:
  v: CarePlan.activity.outcomeReference
path:
  v: CarePlan.activity.outcomeReference
short:
  v: Appointment, Encounter, Procedure, etc.
definition:
  v: Details of the outcome or action resulting from the activity. The reference to an "event" resource, such as Procedure or Encounter or Observation, is the result/outcome of the activity itself. The activity can be conveyed using CarePlan.activity.detail OR using the CarePlan.activity.reference (a reference to a “request” resource).
comment:
  v: The activity outcome is independent of the outcome of the related goal(s). For example, if the goal is to achieve a target body weight of 150 lbs and an activity is defined to diet, then the activity outcome could be calories consumed whereas the goal outcome is an observation for the actual body weight measured.
requirements:
  v: Links plan to resulting actions.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CarePlan.activity.outcomeReference
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Resource
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: {Event that is outcome of Request in activity.reference}
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=FLFS].source

id:
  v: CarePlan.activity.progress
path:
  v: CarePlan.activity.progress
short:
  v: Comments about the activity status/progress
definition:
  v: Notes about the adherence/status/progress of the activity.
comment:
  v: This element should NOT be used to describe the activity to be performed - that occurs either within the resource pointed to by activity.detail.reference or in activity.detail.description.
requirements:
  v: Can be used to capture information about adherence, progress, concerns, etc.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CarePlan.activity.progress
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Annotation
    l: 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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: v2
  map:
    v: NTE?
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code="annotation"].value

id:
  v: CarePlan.activity.reference
path:
  v: CarePlan.activity.reference
short:
  v: 照護行動的明細
definition:
  v: 包含照護計畫之照護行動(診斷、治療等)明細的 request/request-like 資源。
comment:
  v: 參照可以是相對的、絕對的或內部的。
requirements:
  v: Details in a form consistent with other applications and contexts of use.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CarePlan.activity.reference
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Appointment
    l: Appointment
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/CommunicationRequest
    l: CommunicationRequest
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DeviceRequest
    l: DeviceRequest
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/MedicationRequest-twcore
    l: MedicationRequest-twcore
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/NutritionOrder
    l: NutritionOrder
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Task
    l: Task
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ServiceRequest
    l: ServiceRequest
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/VisionPrescription
    l: VisionPrescription
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RequestGroup
    l: RequestGroup
condition:
  v: cpl-3
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: {Request that resulted in Event in activity.actionResulting}
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=COMP].target

id:
  v: CarePlan.activity.detail
path:
  v: CarePlan.activity.detail
short:
  v: In-line definition of activity
definition:
  v: A simple summary of a planned activity suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc.
requirements:
  v: Details in a simple form for generic care plan systems.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CarePlan.activity.detail
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
condition:
  v: cpl-3
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=COMP, subsetCode=SUMM].target

id:
  v: CarePlan.activity.detail.id
path:
  v: CarePlan.activity.detail.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: CarePlan.activity.detail.extension
path:
  v: CarePlan.activity.detail.extension
short:
  v: Additional content defined by implementations
definition:
  v: 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.
comment:
  v: 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.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: 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
    l: 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
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: CarePlan.activity.detail.modifierExtension
path:
  v: CarePlan.activity.detail.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: 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
    l: 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
    l: 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
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: CarePlan.activity.detail.kind
path:
  v: CarePlan.activity.detail.kind
short:
  v: Appointment | CommunicationRequest | DeviceRequest | MedicationRequest | NutritionOrder | Task | ServiceRequest | VisionPrescription
definition:
  v: A description of the kind of resource the in-line definition of a care plan activity is representing. The CarePlan.activity.detail is an in-line definition when a resource is not referenced using CarePlan.activity.reference. For example, a MedicationRequest, a ServiceRequest, or a CommunicationRequest.
requirements:
  v: May determine what types of extensions are permitted.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CarePlan.activity.detail.kind
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: CarePlanActivityKind
  strength:
    v: required
  description:
    v: Resource types defined as part of FHIR that can be represented as in-line definitions of a care plan activity.
  value set:
    v: http://hl7.org/fhir/ValueSet/care-plan-activity-kind|4.0.1
    l: http://hl7.org/fhir/ValueSet/care-plan-activity-kind
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=COMP].source[classCode=LIST].code

id:
  v: CarePlan.activity.detail.instantiatesCanonical
path:
  v: CarePlan.activity.detail.instantiatesCanonical
short:
  v: Instantiates FHIR protocol or definition
definition:
  v: The URL pointing to a FHIR-defined protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan activity.
requirements:
  v: Allows Questionnaires that the patient (or practitioner) should fill in to fulfill the care plan activity.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CarePlan.activity.detail.instantiatesCanonical
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: canonical
    l: canonical
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PlanDefinition|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/PlanDefinition
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ActivityDefinition|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/ActivityDefinition
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Questionnaire|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Questionnaire
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Measure|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Measure
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/OperationDefinition|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/OperationDefinition
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Request.instantiatesCanonical
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=DEFN].target

id:
  v: CarePlan.activity.detail.instantiatesUri
path:
  v: CarePlan.activity.detail.instantiatesUri
short:
  v: Instantiates external protocol or definition
definition:
  v: The URL pointing to an externally maintained protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan activity.
comment:
  v: This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.
requirements:
  v: Allows Questionnaires that the patient (or practitioner) should fill in to fulfill the care plan activity.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CarePlan.activity.detail.instantiatesUri
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: uri
    l: 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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Request.instantiatesUri
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=DEFN].target

id:
  v: CarePlan.activity.detail.code
path:
  v: CarePlan.activity.detail.code
short:
  v: Detail type of activity
definition:
  v: Detailed description of the type of planned activity; e.g. what lab test, what procedure, what kind of encounter.
comment:
  v: Tends to be less relevant for activities involving particular products. Codes should not convey negation - use "prohibited" instead.
requirements:
  v: Allows matching performed to planned as well as validation against protocols.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CarePlan.activity.detail.code
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: CarePlanActivityType
  strength:
    v: example
  description:
    v: Detailed description of the type of activity; e.g. What lab test, what procedure, what kind of encounter.
  value set:
    v: http://hl7.org/fhir/ValueSet/procedure-code|4.0.1
    l: http://hl7.org/fhir/ValueSet/procedure-code
mapping:
  identity:
    v: workflow
  map:
    v: Request.code
mapping:
  identity:
    v: v2
  map:
    v: OBR-4 / RXE-2 / RXO-1 / RXD-2
mapping:
  identity:
    v: rim
  map:
    v: .code

id:
  v: CarePlan.activity.detail.reasonCode
path:
  v: CarePlan.activity.detail.reasonCode
short:
  v: Why activity should be done or why activity was prohibited
definition:
  v: Provides the rationale that drove the inclusion of this particular activity as part of the plan or the reason why the activity was prohibited.
comment:
  v: This could be a diagnosis code. If a full condition record exists or additional detail is needed, use reasonCondition instead.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CarePlan.activity.detail.reasonCode
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: CarePlanActivityReason
  strength:
    v: example
  description:
    v: Identifies why a care plan activity is needed. Can include any health condition codes as well as such concepts as "general wellness", prophylaxis, surgical preparation, etc.
  value set:
    v: http://hl7.org/fhir/ValueSet/clinical-findings|4.0.1
    l: http://hl7.org/fhir/ValueSet/clinical-findings
mapping:
  identity:
    v: workflow
  map:
    v: Request.reasonCode

id:
  v: CarePlan.activity.detail.reasonReference
path:
  v: CarePlan.activity.detail.reasonReference
short:
  v: 為何需要此行動
definition:
  v: 指出為何此行動是此照護計畫的一部分。
comment:
  v: Conditions can be identified at the activity level that are not identified as reasons for the overall plan.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CarePlan.activity.detail.reasonReference
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Condition-twcore
    l: Condition-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Observation-clinical-result-twcore
    l: Observation-clinical-result-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/DiagnosticReport-twcore
    l: DiagnosticReport-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/DocumentReference-twcore
    l: DocumentReference-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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Request.reasonReference

id:
  v: CarePlan.activity.detail.goal
path:
  v: CarePlan.activity.detail.goal
short:
  v: Goals this activity relates to
definition:
  v: Internal reference that identifies the goals that this activity is intended to contribute towards meeting.
requirements:
  v: So that participants know the link explicitly.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CarePlan.activity.detail.goal
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Goal|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Goal
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode<=OBJ].

id:
  v: CarePlan.activity.detail.status
path:
  v: CarePlan.activity.detail.status
short:
  v: not-started | scheduled | in-progress | on-hold | completed | cancelled | stopped | unknown | entered-in-error
definition:
  v: Identifies what progress is being made for the specific activity.
comment:
  v: Some aspects of status can be inferred based on the resources linked in actionTaken. Note that "status" is only as current as the plan was most recently updated. The unknown code is not to be used to convey other statuses. The unknown code should be used when one of the statuses applies, but the authoring system doesn't know the current state of the activity.
requirements:
  v: Indicates progress against the plan, whether the activity is still relevant for the plan.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: CarePlan.activity.detail.status
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
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
    l: Element
is modifier:
  v: true
is modifier reason:
  v: This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the activity should not be treated as valid
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: CarePlanActivityStatus
  strength:
    v: required
  description:
    v: Codes that reflect the current state of a care plan activity within its overall life cycle.
  value set:
    v: http://hl7.org/fhir/ValueSet/care-plan-activity-status|4.0.1
    l: http://hl7.org/fhir/ValueSet/care-plan-activity-status
mapping:
  identity:
    v: workflow
  map:
    v: Request.status
mapping:
  identity:
    v: v2
  map:
    v: ORC-5?
mapping:
  identity:
    v: rim
  map:
    v: .statusCode not-started = new scheduled = not-started (and fulfillment relationship to appointent) in-progress = active on-hold = suspended completed = completed cancelled = aborted

id:
  v: CarePlan.activity.detail.statusReason
path:
  v: CarePlan.activity.detail.statusReason
short:
  v: Reason for current status
definition:
  v: Provides reason why the activity isn't yet started, is on hold, was cancelled, etc.
comment:
  v: Will generally not be present if status is "complete". Be sure to prompt to update this (or at least remove the existing value) if the status is changed.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CarePlan.activity.detail.statusReason
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Request.statusReason

id:
  v: CarePlan.activity.detail.doNotPerform
path:
  v: CarePlan.activity.detail.doNotPerform
short:
  v: If true, activity is prohibiting action
definition:
  v: If true, indicates that the described activity is one that must NOT be engaged in when following the plan. If false, or missing, indicates that the described activity is one that should be engaged in when following the plan.
comment:
  v: This element is labeled as a modifier because it marks an activity as an activity that is not to be performed.
requirements:
  v: Captures intention to not do something that may have been previously typical.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CarePlan.activity.detail.doNotPerform
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
meaning when missing:
  v: If missing indicates that the described activity is one that should be engaged in when following the plan.
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
    l: Element
is modifier:
  v: true
is modifier reason:
  v: If true this element negates the specified action. For example, instead of a request for a procedure, it is a request for the procedure to not occur.
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Request.doNotPerform
mapping:
  identity:
    v: rim
  map:
    v: actionNegationInd

id:
  v: CarePlan.activity.detail.scheduled[x]
path:
  v: CarePlan.activity.detail.scheduled[x]
short:
  v: When activity is to occur
definition:
  v: The period, timing or frequency upon which the described activity is to occur.
requirements:
  v: Allows prompting for activities and detection of missed planned activities.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CarePlan.activity.detail.scheduled[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Timing
    l: Timing
type:
  code:
    v: Period
    l: Period
type:
  code:
    v: string
    l: 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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Request.occurrence[x]
mapping:
  identity:
    v: v2
  map:
    v: TQ1
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime

id:
  v: CarePlan.activity.detail.location
path:
  v: CarePlan.activity.detail.location
short:
  v: 行動發生的地點
definition:
  v: 預期要執行此行動的地點。
comment:
  v: 參照可以是相對的、絕對的或內部的。
requirements:
  v: Helps in planning of activity.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CarePlan.activity.detail.location
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Location-twcore
    l: Location-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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: v2
  map:
    v: OBR-24(???!!)
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=LOC].role

id:
  v: CarePlan.activity.detail.performer
path:
  v: CarePlan.activity.detail.performer
short:
  v: 執行或提供此行動的人員
definition:
  v: 確定預期要執行此行動的特定人員或組織。
comment:
  v: 參照可以是相對的、絕對的或內部的。
requirements:
  v: Helps in planning of activity.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CarePlan.activity.detail.performer
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Practitioner-twcore
    l: Practitioner-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore
    l: PractitionerRole-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore
    l: Organization-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/RelatedPerson-twcore
    l: RelatedPerson-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Patient-twcore
    l: Patient-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CareTeam-twcore
    l: CareTeam-twcore
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/HealthcareService
    l: HealthcareService
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Device-twcore
    l: Device-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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Request.performer
mapping:
  identity:
    v: v2
  map:
    v: PRT-5 : ( PRV-4 = (provider participations)); PRT-5 : ( PRV-4 = (non-provider person participations )) ; PRT-5 : ( PRV-4 = (patient non-subject of care) ) ; PRT-8
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=PFM]

id:
  v: CarePlan.activity.detail.product[x]
path:
  v: CarePlan.activity.detail.product[x]
slicing:
  discriminator:
    type:
      v: type
    path:
      v: $this
  ordered:
    v: false
  rules:
    v: open
short:
  v: What is to be administered/supplied
definition:
  v: Identifies the food, drug or other product to be consumed or supplied in the activity.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CarePlan.activity.detail.product[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Medication|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Medication
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Substance|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Substance
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: CarePlanProduct
  strength:
    v: example
  description:
    v: A product supplied or administered as part of a care plan activity.
  value set:
    v: http://hl7.org/fhir/ValueSet/medication-codes|4.0.1
    l: http://hl7.org/fhir/ValueSet/medication-codes
mapping:
  identity:
    v: v2
  map:
    v: RXE-2 / RXO-1 / RXD-2
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=PRD].role

id:
  v: CarePlan.activity.detail.product[x]:productReference
path:
  v: CarePlan.activity.detail.product[x]
slice name:
  v: productReference
short:
  v: 物料/主題/產品資訊要參照的資源
definition:
  v: 辨識行動所涉及的物料/主題/產品。
comment:
  v: 參照可以是相對的、絕對的或內部的。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CarePlan.activity.detail.product[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Medication-twcore
    l: Medication-twcore
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Substance
    l: Substance
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: v2
  map:
    v: RXE-2 / RXO-1 / RXD-2
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=PRD].role

id:
  v: CarePlan.activity.detail.dailyAmount
path:
  v: CarePlan.activity.detail.dailyAmount
short:
  v: How to consume/day?
definition:
  v: Identifies the quantity expected to be consumed in a given day.
requirements:
  v: Allows rough dose checking.
alias:
  v: daily dose
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CarePlan.activity.detail.dailyAmount
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Quantity
    l: Quantity
  profile:
    v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: v2
  map:
    v: RXO-23 / RXE-19 / RXD-12
mapping:
  identity:
    v: rim

id:
  v: CarePlan.activity.detail.quantity
path:
  v: CarePlan.activity.detail.quantity
short:
  v: How much to administer/supply/consume
definition:
  v: Identifies the quantity expected to be supplied, administered or consumed by the subject.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CarePlan.activity.detail.quantity
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Quantity
    l: Quantity
  profile:
    v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: v2
  map:
    v: RXO-11 / RXE-10 / RXD-4 / RXG-5 / RXA-6 / TQ1-2.1 *and* RXO-12 / RXE-11 / RXD-5 / RXG-7 / RXA-7 / TQ1-2.2
mapping:
  identity:
    v: rim

id:
  v: CarePlan.activity.detail.description
path:
  v: CarePlan.activity.detail.description
short:
  v: Extra info describing activity to perform
definition:
  v: This provides a textual description of constraints on the intended activity occurrence, including relation to other activities. It may also include objectives, pre-conditions and end-conditions. Finally, it may convey specifics about the activity such as body site, method, route, etc.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CarePlan.activity.detail.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: 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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: v2
  map:
    v: NTE?
mapping:
  identity:
    v: rim
  map:
    v: .text

id:
  v: CarePlan.note
path:
  v: CarePlan.note
short:
  v: Comments about the plan
definition:
  v: General notes about the care plan not covered elsewhere.
requirements:
  v: Used to capture information that applies to the plan as a whole that doesn't fit into discrete elements.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CarePlan.note
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Annotation
    l: 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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Request.note
mapping:
  identity:
    v: v2
  map:
    v: NTE?
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code="annotation"].value

element:
  id:
    v: CarePlan
  path:
    v: CarePlan
  short:
    v: 特定照護目標下為一位患者或一群患者識別的活動、干預和結果計畫
  definition:
    v: 描述為實現一個或多個目標而將為一位患者(或一群患者)進行的活動的計畫，包括診斷、監測、評估、治療、藥物治療、追蹤等。
element:
  id:
    v: CarePlan.id
  path:
    v: CarePlan.id
  short:
    v: 不重複的 ID 用以識別儲存在特定 FHIR Server 中的 CarePlan 紀錄，通常又稱為邏輯性 ID。
  definition:
    v: resource 的邏輯 ID，在 resource 的 URL 中使用。一旦指定，這個值永遠不會改變。
  comment:
    v: 一個 resource 使用新增操作(create operation)提交給伺服器時，此 resource 沒有 id，它的 id 在 resource 被創建後由伺器分配/指定。
element:
  id:
    v: CarePlan.meta
  path:
    v: CarePlan.meta
  short:
    v: 此 CarePlan Resource 的 metadata
  definition:
    v: 關於 resource 的 metadata。這是由基礎建設維護的內容。內容的更改可能並不總是與 resource 的版本更改相關聯。
element:
  id:
    v: CarePlan.implicitRules
  path:
    v: CarePlan.implicitRules
  short:
    v: 創建此內容所依據的一組規則
  definition:
    v: 構建 resource 時遵循的一系列規則的參照，在處理內容時必須理解這些規則。通常這是對 IG 所定義之特殊規則及其他 profiles 的參照。
  comment:
    v: 宣告這套規則限制了內容只能被有限的交易夥伴所理解。這從本質上限制了資料的長期有用性。然而，現有的健康生態體系高度分裂，還沒有準備好以普遍可計算的方式定義、收集和交換資料。只要有可能，實作者和/或規範編寫者應該避免使用這個資料項目。通常在使用時，此 URL 是對 IG 的參照，此 IG 將這些特殊規則與其他 profiles、value sets 等一起定義為其敘述的一部分。
element:
  id:
    v: CarePlan.language
  path:
    v: CarePlan.language
  short:
    v: 用以表述 CarePlan 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: String
      v: zh-TW
  binding:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
        l: elementdefinition-maxValueSet
      value: Canonical
        v: http://hl7.org/fhir/ValueSet/all-languages
        l: all-languages
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
        l: elementdefinition-bindingName
      value: String
        v: Language
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding
        l: elementdefinition-isCommonBinding
      value: Boolean
        v: true
    strength:
      v: preferred
    description:
      v: 人類語言；鼓勵使用 CommonLanguages 代碼表中的代碼，但不強制一定要使用此代碼表，你也可使用其他代碼表的代碼或單純以文字表示。
    value set:
      v: http://hl7.org/fhir/ValueSet/languages
      l: languages
element:
  id:
    v: CarePlan.text
  path:
    v: CarePlan.text
  short:
    v: CarePlan Resource 之內容摘要以供人閱讀
  definition:
    v: 人可讀的敘述，包含 resource 的摘要，可用於向人表述 resource 的內容。敘述不需要對所有的結構化資料進行編碼，但需要包含足夠的細節使人在閱讀敘述時理解「臨床安全性」。resource 定義有哪些內容應該在敘述中表示，以確保臨床安全。
  comment:
    v: 內嵌(contained)的 resource 沒有敘述，非內嵌(contained)的 resource 則 **建議應該(SHOULD)** 有敘述。有時 resource 可能只有文字表述，很少或沒有額外的結構化資料(只要滿足所有 minOccurs=1 的資料項目)。這可能出現在舊系統的資料，當資訊以 「文字表述區塊(text blob)」的形式被取得，或者文字表述是原始輸入或說明，而編碼資訊稍後再添加。
  must support:
    v: true
element:
  id:
    v: CarePlan.text.status
  path:
    v: CarePlan.text.status
  short:
    v: generated | additional
  must support:
    v: true
  binding:
    strength:
      v: required
    description:
      v: 敘述狀態的受限值集。
    value set:
      v: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/narrative-status
      l: narrative-status
element:
  id:
    v: CarePlan.text.div
  path:
    v: CarePlan.text.div
  short:
    v: 有限的 xhtml 內容
  must support:
    v: true
element:
  id:
    v: CarePlan.basedOn
  path:
    v: CarePlan.basedOn
  short:
    v: 履行或延伸的照護計畫
  definition:
    v: 識別此照護計畫所建立的父計畫。
  comment:
    v: 參照可以是相對的、絕對的或內部的。
  type:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy
        l: structuredefinition-hierarchy
      value: Boolean
        v: true
    code:
      v: Reference
      l: Reference
    target profile:
      v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CarePlan-twcore
      l: CarePlan-twcore
element:
  id:
    v: CarePlan.replaces
  path:
    v: CarePlan.replaces
  short:
    v: 被此計畫取代的照護計畫
  definition:
    v: 識別被此照護計畫所取代的照護計畫。
  comment:
    v: 參照可以是相對的、絕對的或內部的。
  type:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy
        l: structuredefinition-hierarchy
      value: Boolean
        v: true
    code:
      v: Reference
      l: Reference
    target profile:
      v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CarePlan-twcore
      l: CarePlan-twcore
element:
  id:
    v: CarePlan.partOf
  path:
    v: CarePlan.partOf
  short:
    v: 作為父照護計畫的一部分
  definition:
    v: 此照護計畫是另一個照護計畫的一部分。例如，專門針對骨折修復或糖尿病控制的計畫可能是出院護理計畫的一部分。
  comment:
    v: 參照可以是相對的、絕對的或內部的。
  type:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy
        l: structuredefinition-hierarchy
      value: Boolean
        v: true
    code:
      v: Reference
      l: Reference
    target profile:
      v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CarePlan-twcore
      l: CarePlan-twcore
element:
  id:
    v: CarePlan.status
  path:
    v: CarePlan.status
  short:
    v: 照護計畫目前的狀態

v: 指明照護計畫是否正在執行中、表示未來意向或現在已成為歷史記錄。

v: 可以在 事件模式 文件中找到一個標準的狀態轉換圖。「未知」不代表「其他」狀態 - 必須使用其中一個已定義的狀態，「未知」用於表示不確定當前狀態。

v: 指出計畫是否正在實施、代表未來意圖或是現在的歷史記錄。

v: true

strength:
  v: required
description:
  v: 指出計畫是否正在實施、代表未來意圖或是現在的歷史記錄。
value set:
  v: http://hl7.org/fhir/ValueSet/request-status
  l: request-status

id:
  v: CarePlan.intent
path:
  v: CarePlan.intent
short:
  v: 照護計畫的意圖
definition:
  v: 表示與照護計畫相關的權威性/意向性程度。
must support:
  v: true
binding:
  strength:
    v: required
  description:
    v: 表示與照護計畫相關的權威性/意向性程度的代碼
  value set:
    v: http://hl7.org/fhir/ValueSet/care-plan-intent
    l: care-plan-intent

id:
  v: CarePlan.category
path:
  v: CarePlan.category
slicing:
  discriminator:
    type:
      v: pattern
    path:
      v: $this
  rules:
    v: open
short:
  v: 照護計畫的類型
definition:
  v: 照護計畫的類型。
requirements:
  v: 識別這是什麼「種類」的計畫，以支援多個共存計畫之間的區分；例如：「居家健康」、「精神科」、「氣喘」、「疾病管理」、「保健計畫」等。
min:
  v: 1
must support:
  v: true

id:
  v: CarePlan.category:AssessPlan
path:
  v: CarePlan.category
slice name:
  v: AssessPlan
short:
  v: 評估計畫
min:
  v: 1
max:
  v: 1
pattern: CodeableConcept
  coding:
    system:
      v: https://twcore.mohw.gov.tw/ig/twcore/CodeSystem/careplan-category-tw
      l: careplan-category-tw
    code:
      v: assess-plan
must support:
  v: true

id:
  v: CarePlan.subject
path:
  v: CarePlan.subject
short:
  v: 照護計畫的對象
definition:
  v: 照護計畫是為了誰。
requirements:
  v: 識別計畫描述其意圖照護的病人或群體。
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Patient-twcore
    l: Patient-twcore
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support
        l: elementdefinition-type-must-support
      value: Boolean
        v: true
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Group
    l: Group
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support
        l: elementdefinition-type-must-support
      value: Boolean
        v: false
must support:
  v: true

id:
  v: CarePlan.encounter
path:
  v: CarePlan.encounter
short:
  v: 與此照護計畫相關的就醫事件
definition:
  v: 此照護計畫是在哪個就醫情境產生的。
comment:
  v: 參照可以是相對的、絕對的或內部的。注意：如果 Encounter 參照是一個 Episode of Care 的一部分，則此資料點不足以隱含建立關聯。
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Encounter-twcore
    l: Encounter-twcore

id:
  v: CarePlan.author
path:
  v: CarePlan.author
short:
  v: 照護計畫的作者
definition:
  v: 負責建立照護計畫內容的個人或組織。
comment:
  v: 參照可以是相對的、絕對的或內部的。
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Patient-twcore
    l: Patient-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Practitioner-twcore
    l: Practitioner-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore
    l: PractitionerRole-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Device-twcore
    l: Device-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/RelatedPerson-twcore
    l: RelatedPerson-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore
    l: Organization-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CareTeam-twcore
    l: CareTeam-twcore

id:
  v: CarePlan.contributor
path:
  v: CarePlan.contributor
short:
  v: 對計畫提供資訊的人員
definition:
  v: 對照護計畫的建立提供資訊的個人或組織，但不對照護計畫負責。
comment:
  v: 參照可以是相對的、絕對的或內部的。
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Patient-twcore
    l: Patient-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Practitioner-twcore
    l: Practitioner-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore
    l: PractitionerRole-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Device-twcore
    l: Device-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/RelatedPerson-twcore
    l: RelatedPerson-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore
    l: Organization-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CareTeam-twcore
    l: CareTeam-twcore

id:
  v: CarePlan.careTeam
path:
  v: CarePlan.careTeam
short:
  v: 執行照護工作的團隊
definition:
  v: 確定負責執行此照護計畫的照護團隊。
comment:
  v: 參照可以是相對的、絕對的或內部的。
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CareTeam-twcore
    l: CareTeam-twcore

id:
  v: CarePlan.addresses
path:
  v: CarePlan.addresses
short:
  v: 本計畫處理的健康問題
definition:
  v: 本照護計畫試圖解決的健康問題(例如：疾病、病情、問題)。
comment:
  v: 參照可以是相對的、絕對的或內部的。
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Condition-twcore
    l: Condition-twcore

id:
  v: CarePlan.activity.reference
path:
  v: CarePlan.activity.reference
short:
  v: 照護行動的明細
definition:
  v: 包含照護計畫之照護行動(診斷、治療等)明細的 request/request-like 資源。
comment:
  v: 參照可以是相對的、絕對的或內部的。
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Appointment
    l: Appointment
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/CommunicationRequest
    l: CommunicationRequest
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DeviceRequest
    l: DeviceRequest
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/MedicationRequest-twcore
    l: MedicationRequest-twcore
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/NutritionOrder
    l: NutritionOrder
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Task
    l: Task
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ServiceRequest
    l: ServiceRequest
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/VisionPrescription
    l: VisionPrescription
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RequestGroup
    l: RequestGroup

id:
  v: CarePlan.activity.detail.reasonReference
path:
  v: CarePlan.activity.detail.reasonReference
short:
  v: 為何需要此行動
definition:
  v: 指出為何此行動是此照護計畫的一部分。
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Condition-twcore
    l: Condition-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Observation-clinical-result-twcore
    l: Observation-clinical-result-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/DiagnosticReport-twcore
    l: DiagnosticReport-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/DocumentReference-twcore
    l: DocumentReference-twcore

id:
  v: CarePlan.activity.detail.location
path:
  v: CarePlan.activity.detail.location
short:
  v: 行動發生的地點
definition:
  v: 預期要執行此行動的地點。
comment:
  v: 參照可以是相對的、絕對的或內部的。
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Location-twcore
    l: Location-twcore

id:
  v: CarePlan.activity.detail.performer
path:
  v: CarePlan.activity.detail.performer
short:
  v: 執行或提供此行動的人員
definition:
  v: 確定預期要執行此行動的特定人員或組織。
comment:
  v: 參照可以是相對的、絕對的或內部的。
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Practitioner-twcore
    l: Practitioner-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore
    l: PractitionerRole-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore
    l: Organization-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/RelatedPerson-twcore
    l: RelatedPerson-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Patient-twcore
    l: Patient-twcore
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CareTeam-twcore
    l: CareTeam-twcore
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/HealthcareService
    l: HealthcareService
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Device-twcore
    l: Device-twcore

id:
  v: CarePlan.activity.detail.product[x]
path:
  v: CarePlan.activity.detail.product[x]
slicing:
  discriminator:
    type:
      v: type
    path:
      v: $this
  ordered:
    v: false
  rules:
    v: open

id:
  v: CarePlan.activity.detail.product[x]:productReference
path:
  v: CarePlan.activity.detail.product[x]
slice name:
  v: productReference
short:
  v: 物料/主題/產品資訊要參照的資源
definition:
  v: 辨識行動所涉及的物料/主題/產品。
comment:
  v: 參照可以是相對的、絕對的或內部的。
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Medication-twcore
    l: Medication-twcore
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Substance
    l: Substance