CareTeam-twcore
type: StructureDefinition
node role: treeRoot
id:
  v: CareTeam-twcore
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition CareTeam-twcore Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> CareTeam 0..* CareTeam 在健康照護過程中提供服務的照護團隊 #xD; id 0..1 id 不重複的 ID 用以識別儲存在特定 FHIR Server 中的 CareTeam 紀錄，通常又稱為邏輯性 ID。 #xD; meta 0..1 Meta 此 CareTeam Resource 的 metadata #xD; language 0..1 code 用以表述 CareTeam Resource 內容的語言。 Binding: CommonLanguages (preferred): 人類語言；鼓勵使用 CommonLanguages 代碼表中的代碼，但不強制一定要使用此代碼表，你也可使用其他代碼表的代碼或單純以文字表示。 Additional Bindings Purpose AllLanguages Max Binding #xD; status S 0..1 code proposed | active | suspended | inactive | entered-in-error Binding: CareTeamStatus (required): 代表照護團隊狀態的代碼；應填入所綁定值集中的其中一個代碼。 #xD; subject S 1..1 Reference(TW Core Patient S | Group) 照護團隊所照護的對象是誰？ #xD; encounter 0..1 Reference(TW Core Encounter) 與此 CareTeam 相關的就醫事件 #xD; participant S 1..* BackboneElement 照護團隊中的成員 #xD; role S 1..1 CodeableConcept 照護團隊成員的角色 Binding: ParticipantRoles (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。 #xD; member S 1..1 Reference(TW Core Practitioner S | TW Core Organization | TW Core Patient | TW Core PractitionerRole S | TW Core CareTeam | TW Core RelatedPerson S) 團隊成員是誰 #xD; onBehalfOf 0..1 Reference(TW Core Organization) 組織成員代表誰 #xD; reasonReference 0..* Reference(TW Core Condition) 為何需要此照護團隊 #xD; managingOrganization 0..* Reference(TW Core Organization) 照護團隊所屬的組織 #xD; <img src="[binary]" alt="doco" style="background-color: inherit"/> Documentation for this format
url:
  v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CareTeam-twcore
  l: CareTeam-twcore
version:
  v: 1.0.0
name:
  v: TWCoreCareTeam
title:
  v: TW Core CareTeam
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 CareTeam) Profile 說明本 IG 如何進一步定義 FHIR 的 CareTeam Resource 以呈現照護團隊資料。
fhir version:
  v: 4.0.1
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
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
    l: v3
  name:
    v: RIM Mapping
kind:
  v: resource
abstract:
  v: false
type:
  v: CareTeam
  l: CareTeam
base definition:
  v: http://hl7.org/fhir/StructureDefinition/CareTeam
  l: CareTeam
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: CareTeam
    path:
      v: CareTeam
    short:
      v: 在健康照護過程中提供服務的照護團隊
    definition:
      v: 指明受照護者所需要的團隊，此資源用來識別參與關照受照護者或為受照護者(個人或群體)提供醫療保健服務的一群人及其在團隊中的角色。
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: CareTeam
      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
  element:
    id:
      v: CareTeam.id
    path:
      v: CareTeam.id
    short:
      v: 不重複的 ID 用以識別儲存在特定 FHIR Server 中的 CareTeam 紀錄，通常又稱為邏輯性 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

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.

v: 1

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

v: false

v: true

id:
  v: CareTeam.meta
path:
  v: CareTeam.meta
short:
  v: 此 CareTeam 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: CareTeam.implicitRules
path:
  v: CareTeam.implicitRules
short:
  v: A set of rules under which this content was created
definition:
  v: A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
comment:
  v: Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.
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: CareTeam.language
path:
  v: CareTeam.language
short:
  v: 用以表述 CareTeam 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
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: CareTeam.text
path:
  v: CareTeam.text
short:
  v: Text summary of the resource, for human interpretation
definition:
  v: A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.
comment:
  v: Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a "text blob" or where text is additionally entered raw or narrated and encoded information is added later.
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
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: Act.text?

id:
  v: CareTeam.contained
path:
  v: CareTeam.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: CareTeam.extension
path:
  v: CareTeam.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: CareTeam.modifierExtension
path:
  v: CareTeam.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: CareTeam.identifier
path:
  v: CareTeam.identifier
short:
  v: External Ids for this team
definition:
  v: Business identifiers assigned to this care team 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 team 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: CareTeam.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: w5
  map:
    v: FiveWs.identifier

id:
  v: CareTeam.status
path:
  v: CareTeam.status
short:
  v: proposed | active | suspended | inactive | entered-in-error
definition:
  v: 照護團隊目前的狀態。
comment:
  v: This element is labeled as a modifier because the status contains the code entered-in-error that marks the care team as not currently valid.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CareTeam.status
  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
must support:
  v: true
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 resource should not be treated as valid
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: CareTeamStatus
  strength:
    v: required
  description:
    v: 代表照護團隊狀態的代碼；應填入所綁定值集中的其中一個代碼。
  value set:
    v: http://hl7.org/fhir/ValueSet/care-team-status|4.0.1
    l: http://hl7.org/fhir/ValueSet/care-team-status
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.status

id:
  v: CareTeam.category
path:
  v: CareTeam.category
short:
  v: Type of team
definition:
  v: Identifies what kind of team. This is to support differentiation between multiple co-existing teams, such as care plan team, episode of care team, longitudinal care team.
comment:
  v: There may be multiple axis of categorization and one team may serve multiple purposes.
requirements:
  v: Used for filtering what teams(s) are retrieved and displayed to different types of users.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CareTeam.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
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: CareTeamCategory
  strength:
    v: example
  description:
    v: Indicates the type of care team.
  value set:
    v: http://hl7.org/fhir/ValueSet/care-team-category|4.0.1
    l: http://hl7.org/fhir/ValueSet/care-team-category
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class

id:
  v: CareTeam.name
path:
  v: CareTeam.name
short:
  v: Name of the team, such as crisis assessment team
definition:
  v: A label for human use intended to distinguish like teams. E.g. the "red" vs. "green" trauma teams.
comment:
  v: The meaning/purpose of the team is conveyed in CareTeam.category. This element may also convey semantics of the team (e.g. "Red trauma team"), but its primary purpose is to distinguish between identical teams in a human-friendly way. ("Team 18735" isn't as friendly.).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CareTeam.name
  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: CareTeam.subject
path:
  v: CareTeam.subject
short:
  v: 照護團隊所照護的對象是誰？
definition:
  v: 照護團隊所關照的個人或群體。
comment:
  v: 參照可能是相對的，絕對的或內部的。
requirements:
  v: Allows the team to care for a group (e.g. marriage) therapy. Allows for an organization to designate a team such as the PICC line team.
alias:
  v: patient
min:
  v: 1
max:
  v: 1
base:
  path:
    v: CareTeam.subject
  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
    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: w5
  map:
    v: FiveWs.subject[x]
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.subject

id:
  v: CareTeam.encounter
path:
  v: CareTeam.encounter
short:
  v: 與此 CareTeam 相關的就醫事件
definition:
  v: 此 CareTeam 是在哪次就醫情境中確定或修正的。
comment:
  v: 此資料項目不用於記錄照護團隊負責的所有就診。就診用來提供建立或變更照護團隊的情境。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CareTeam.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: w5
  map:
    v: FiveWs.context

id:
  v: CareTeam.period
path:
  v: CareTeam.period
short:
  v: Time period team covers
definition:
  v: Indicates when the team did (or is intended to) come into effect and end.
requirements:
  v: Allows tracking what team(s) are in effect at a particular time.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CareTeam.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: w5
  map:
    v: FiveWs.init

id:
  v: CareTeam.participant
path:
  v: CareTeam.participant
short:
  v: 照護團隊中的成員
definition:
  v: 照護團隊的成員，包含他們在團隊中扮演的角色和負責的時間段。
min:
  v: 1
max:
  v: *
base:
  path:
    v: CareTeam.participant
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
condition:
  v: ctm-1
constraint:
  key:
    v: ctm-1
  severity:
    v: error
  human:
    v: CareTeam.participant.onBehalfOf can only be populated when CareTeam.participant.member is a Practitioner
  expression:
    v: onBehalfOf.exists() implies (member.resolve().iif(empty(), true, ofType(Practitioner).exists()))
  xpath:
    v: starts-with(f:member/f:reference/@value, 'Practitioner/') or contains(f:member/f:reference/@value, '/Practitioner/') or exists(ancestor::*/f:contains/f:Practitioner/f:id[@value=substring-after(current()/f:member/f:reference/@value, '#')]) or not(exists(f:onBehalfOf))
  source:
    v: http://hl7.org/fhir/StructureDefinition/CareTeam
    l: CareTeam
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: v2
  map:
    v: REL (REL.4 is always the Patient) ( or PRT?)
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=PRF]

id:
  v: CareTeam.participant.id
path:
  v: CareTeam.participant.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: CareTeam.participant.extension
path:
  v: CareTeam.participant.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: CareTeam.participant.modifierExtension
path:
  v: CareTeam.participant.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: CareTeam.participant.role
path:
  v: CareTeam.participant.role
short:
  v: 照護團隊成員的角色
definition:
  v: 指明此照護團隊成員在團隊中所扮演的角色。
comment:
  v: Roles may sometimes be inferred by type of Practitioner. These are relationships that hold only within the context of the care team. General relationships should be handled as properties of the Patient resource directly.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: CareTeam.participant.role
  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:
  strength:
    v: extensible
  description:
    v: 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/participant-role
    l: participant-role
mapping:
  identity:
    v: v2
  map:
    v: REL.2 (or PRT-4?)
mapping:
  identity:
    v: rim
  map:
    v: .functionCode

id:
  v: CareTeam.participant.member
path:
  v: CareTeam.participant.member
short:
  v: 團隊成員是誰
definition:
  v: 團隊成員可能是個人、組織、照護者，或是具有特定角色的醫事人員，或是將角色代表給特定個人或組織的醫事職務。
comment:
  v: 參照可能是相對的，絕對的或內部的。
min:
  v: 1
max:
  v: 1
base:
  path:
    v: CareTeam.participant.member
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Practitioner-twcore
    l: Practitioner-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: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore
    l: Organization-twcore
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support
        l: elementdefinition-type-must-support
      value: Boolean
        v: false
  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: false
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore
    l: PractitionerRole-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: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CareTeam-twcore
    l: CareTeam-twcore
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support
        l: elementdefinition-type-must-support
      value: Boolean
        v: false
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/RelatedPerson-twcore
    l: RelatedPerson-twcore
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support
        l: elementdefinition-type-must-support
      value: Boolean
        v: true
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: w5
  map:
    v: FiveWs.actor
mapping:
  identity:
    v: v2
  map:
    v: REL.5 (or 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: .role

id:
  v: CareTeam.participant.onBehalfOf
path:
  v: CareTeam.participant.onBehalfOf
short:
  v: 組織成員代表誰
definition:
  v: 團隊成員代表的組織。
comment:
  v: 若成員是個人，此資料項目可用來表示此個人代表某個組織。
requirements:
  v: Practitioners can be associated with multiple organizations. This element indicates which organization they were acting on behalf of.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CareTeam.participant.onBehalfOf
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore
    l: Organization-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: CareTeam.participant.period
path:
  v: CareTeam.participant.period
short:
  v: Time period of participant
definition:
  v: Indicates when the specific member or organization did (or is intended to) come into effect and end.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CareTeam.participant.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: false

id:
  v: CareTeam.reasonCode
path:
  v: CareTeam.reasonCode
short:
  v: Why the care team exists
definition:
  v: Describes why the care team exists.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CareTeam.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: CareTeamReason
  strength:
    v: example
  description:
    v: Indicates the reason for the care team.
  value set:
    v: http://hl7.org/fhir/ValueSet/clinical-findings|4.0.1
    l: http://hl7.org/fhir/ValueSet/clinical-findings
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.why[x]

id:
  v: CareTeam.reasonReference
path:
  v: CareTeam.reasonReference
short:
  v: 為何需要此照護團隊
definition:
  v: 描述建立照護團隊的原因或需要照護團隊服務的情況。
comment:
  v: 可能的原因包括：病人目前的健康狀況、潛在的健康問題、複雜的醫療需求、已安排的程序(例如：手術)或出院後服務計畫。
min:
  v: 0
max:
  v: *
base:
  path:
    v: CareTeam.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
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: w5
  map:
    v: FiveWs.why[x]

id:
  v: CareTeam.managingOrganization
path:
  v: CareTeam.managingOrganization
short:
  v: 照護團隊所屬的組織
definition:
  v: 負責召集或管理此照護團隊的組織。
comment:
  v: 此資料項目與 participant.member 中包含的組織不同，它特指負責管理照護團隊的組織。
requirements:
  v: Allows for multiple organizations to collaboratively manage cross-organizational, longitudinal care plan.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CareTeam.managingOrganization
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore
    l: Organization-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: CareTeam.telecom
path:
  v: CareTeam.telecom
short:
  v: A contact detail for the care team (that applies to all members)
definition:
  v: A central contact detail for the care team (that applies to all members).
comment:
  v: The ContactPoint.use code of home is not appropriate to use. These contacts are not the contact details of individual care team members.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CareTeam.telecom
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: ContactPoint
    l: ContactPoint
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: CareTeam.note
path:
  v: CareTeam.note
short:
  v: Comments made about the CareTeam
definition:
  v: Comments made about the CareTeam.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CareTeam.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

element:
  id:
    v: CareTeam
  path:
    v: CareTeam
  short:
    v: 在健康照護過程中提供服務的照護團隊
  definition:
    v: 指明受照護者所需要的團隊，此資源用來識別參與關照受照護者或為受照護者(個人或群體)提供醫療保健服務的一群人及其在團隊中的角色。
element:
  id:
    v: CareTeam.id
  path:
    v: CareTeam.id
  short:
    v: 不重複的 ID 用以識別儲存在特定 FHIR Server 中的 CareTeam 紀錄，通常又稱為邏輯性 ID。
  definition:
    v: resource 的邏輯 ID，在 resource 的 URL 中使用。一旦指定，這個值永遠不會改變。
  comment:
    v: 一個 resource 使用新增操作(create operation)提交給伺服器時，此 resource 沒有 id，它的 id 在 resource 被創建後由伺器分配/指定。
element:
  id:
    v: CareTeam.meta
  path:
    v: CareTeam.meta
  short:
    v: 此 CareTeam Resource 的 metadata
  definition:
    v: 關於 resource 的 metadata。這是由基礎建設維護的內容。內容的更改可能並不總是與 resource 的版本更改相關聯。
element:
  id:
    v: CareTeam.language
  path:
    v: CareTeam.language
  short:
    v: 用以表述 CareTeam Resource 內容的語言。
  definition:
    v: 編寫此 resource 的語言
  comment:
    v: 提供語言是為了支援索引和可存取性(通常，文字表述轉語音等服務使用此語言標籤)。html lanuage tag 適用於此敘述。resource 上的語言標籤可用於指定從 resource 中的資料所產成的其他表述之語言。不是所有的內容都必須使用此語言。不應該假定 Resource.language 自動適用於敘述。如果指定語言，它也應該被指定在 html 中的 div 資料項目(關於 xml:lang 和 html lang 屬性之間的關係，見 HTML5 中的規則)。
  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: CareTeam.status
  path:
    v: CareTeam.status
  definition:
    v: 照護團隊目前的狀態。
  must support:
    v: true
  binding:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
        l: elementdefinition-bindingName
      value: String
        v: CareTeamStatus
    strength:
      v: required
    description:
      v: 代表照護團隊狀態的代碼；應填入所綁定值集中的其中一個代碼。
    value set:
      v: http://hl7.org/fhir/ValueSet/care-team-status|4.0.1
      l: http://hl7.org/fhir/ValueSet/care-team-status
element:
  id:
    v: CareTeam.subject
  path:
    v: CareTeam.subject
  short:
    v: 照護團隊所照護的對象是誰？
  definition:
    v: 照護團隊所關照的個人或群體。
  comment:
    v: 參照可能是相對的，絕對的或內部的。
  min:
    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:
        value: Boolean
    target profile:
      v: http://hl7.org/fhir/StructureDefinition/Group
      l: Group
      extension:
        value: Boolean
  must support:
    v: true
element:
  id:
    v: CareTeam.encounter
  path:
    v: CareTeam.encounter
  short:
    v: 與此 CareTeam 相關的就醫事件
  definition:
    v: 此 CareTeam 是在哪次就醫情境中確定或修正的。
  comment:
    v: 此資料項目不用於記錄照護團隊負責的所有就診。就診用來提供建立或變更照護團隊的情境。
  type:
    code:
      v: Reference
      l: Reference
    target profile:
      v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Encounter-twcore
      l: Encounter-twcore
element:
  id:
    v: CareTeam.participant
  path:
    v: CareTeam.participant
  short:
    v: 照護團隊中的成員
  definition:
    v: 照護團隊的成員，包含他們在團隊中扮演的角色和負責的時間段。
  min:
    v: 1
  must support:
    v: true
element:
  id:
    v: CareTeam.participant.role
  path:
    v: CareTeam.participant.role
  short:
    v: 照護團隊成員的角色
  definition:
    v: 指明此照護團隊成員在團隊中所扮演的角色。
  min:
    v: 1
  max:
    v: 1
  must support:
    v: true
  binding:
    strength:
      v: extensible
    description:
      v: 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
    value set:
      v: http://hl7.org/fhir/ValueSet/participant-role
      l: participant-role
element:
  id:
    v: CareTeam.participant.member
  path:
    v: CareTeam.participant.member
  short:
    v: 團隊成員是誰
  definition:
    v: 團隊成員可能是個人、組織、照護者，或是具有特定角色的醫事人員，或是將角色代表給特定個人或組織的醫事職務。
  comment:
    v: 參照可能是相對的，絕對的或內部的。
  min:
    v: 1
  type:
    code:
      v: Reference
      l: Reference
    target profile:
      v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Practitioner-twcore
      l: Practitioner-twcore
      extension:
        value: Boolean
    target profile:
      v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore
      l: Organization-twcore
      extension:
        value: Boolean
    target profile:
      v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Patient-twcore
      l: Patient-twcore

Boolean
v: true

Boolean
v: false

Boolean
v: true

Boolean
v: false

url:
  v: http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support
  l: elementdefinition-type-must-support
value: Boolean
  v: false

v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore
l: PractitionerRole-twcore
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support
    l: elementdefinition-type-must-support
  value: Boolean
    v: true

v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CareTeam-twcore
l: CareTeam-twcore
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support
    l: elementdefinition-type-must-support
  value: Boolean
    v: false

v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/RelatedPerson-twcore
l: RelatedPerson-twcore
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support
    l: elementdefinition-type-must-support
  value: Boolean
    v: true

v: true

id:
  v: CareTeam.participant.onBehalfOf
path:
  v: CareTeam.participant.onBehalfOf
short:
  v: 組織成員代表誰
definition:
  v: 團隊成員代表的組織。
comment:
  v: 若成員是個人，此資料項目可用來表示此個人代表某個組織。
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore
    l: Organization-twcore

id:
  v: CareTeam.reasonReference
path:
  v: CareTeam.reasonReference
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: CareTeam.managingOrganization
path:
  v: CareTeam.managingOrganization
short:
  v: 照護團隊所屬的組織
definition:
  v: 負責召集或管理此照護團隊的組織。
comment:
  v: 此資料項目與 participant.member 中包含的組織不同，它特指負責管理照護團隊的組織。
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore
    l: Organization-twcore