sm-practitioner-role
type: StructureDefinition
node role: treeRoot
id:
  v: sm-practitioner-role
text:
  status:
    v: extensions
  div: Generated Narrative: StructureDefinition sm-practitioner-role Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> PractitionerRole 0..* PractitionerRole 健康医护服务提供者所关联的角色/机构 id 0..1 id 不重复的ID用以识别储存在特定FHIR Server中的PractitionerRole纪录，通常又称为逻辑性ID。 extension 0..* Extension 扩展字段 modifierExtension 0..* Extension 此扩展字段可能会完全修正或改变其他资料项目的涵意，需特别留意。 identifier S 0..* Identifier 与角色（role）/地点（location）相关的特定业务识别码 active S 0..1 boolean 此健康医护服务提供者角色纪录是否有效 period 0..1 Period 健康医护服务提供者在这些角色里被授权执行工作的时间范围 practitioner S 0..1 Reference(SmPractitioner) 能够为机构提供所定义服务的健康医护服务提供者 organization S 0..1 Reference(SmOrganization) 提供这此健康医护服务提供者角色的机构 specialty S 0..* CodeableConcept 健康医护服务提供者的特定专业 location S 0..* Reference(SmLocation) 此健康医护服务提供者提供医护的地点 healthcareService 0..* Reference(HealthcareService) 此工作者为此角色的机构（Organizatoin）/地点（Location）提供的健康医护服务清单 telecom S 0..* ContactPoint 与角色（role）/地点（location）/服务（service）相关的联络细节 system S 1..1 code phone | fax | email | pager | url | sms | other Binding: ContactPointSystem (required) value S 1..1 string 实际的联络方式之细节 use S 0..1 code home | work | temp | old | mobile－此联络方式的用途 Binding: ContactPointUse (required) rank 0..1 positiveInt 具体说明偏好的使用顺序（1=最高优先顺序） period S 0..1 Period 此联络方式的使用效期 availableTime 0..* BackboneElement 服务地点可用的时间 daysOfWeek 0..* code mon | tue | wed | thu | fri | sat | sun Binding: DaysOfWeek (required) allDay 0..1 boolean 随时可用？ 例如：24 小时服务。 availableStartTime 0..1 time 每天的开放时间（如果 allDay = true，则忽略。） availableEndTime 0..1 time 每天的关闭时间（如果 allDay = true，则忽略。） notAvailable 0..* BackboneElement 由于提供的原因，在此期间无法使用。 description 1..1 string 向使用者说明为什么此期间无法使用的原因 during 0..1 Period 从这个日期起，服务将不再提供。 availabilityExceptions 0..1 string 描述在特定情况下服务不可用的特例 endpoint 0..* Reference(Endpoint) 提供用于此健康医护服务提供者角色运营服务的技术端点 <img src="[binary]" alt="doco" style="background-color: inherit"/> Documentation for this format
url:
  v: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-practitioner-role
version:
  v: 1.0.0
name:
  v: SmPractitionerRole
title:
  v: SmPractitionerRole
status:
  v: draft
date:
  v: 2024-11-11T09:31:51+00:00
publisher:
  v: whcater
contact:
  name:
    v: whcater
  telecom:
    system:
      v: url
    value:
      v: https://whcater.github.io/serious-med-ig/
description:
  v: 健康医护服务提供者角色
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: v2
  uri:
    v: http://hl7.org/v2
  name:
    v: HL7 v2 Mapping
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
  name:
    v: RIM Mapping
mapping:
  identity:
    v: servd
  uri:
    v: http://www.omg.org/spec/ServD/1.0/
  name:
    v: ServD
mapping:
  identity:
    v: w5
  uri:
    v: http://hl7.org/fhir/fivews
  name:
    v: FiveWs Pattern Mapping
kind:
  v: resource
abstract:
  v: false
type:
  v: PractitionerRole
base definition:
  v: http://hl7.org/fhir/StructureDefinition/PractitionerRole
  link: http://hl7.org/fhir/StructureDefinition/PractitionerRole
derivation:
  v: constraint
snapshot:
  element:
    id:
      v: PractitionerRole
    path:
      v: PractitionerRole
    short:
      v: 健康医护服务提供者所关联的角色/机构
    definition:
      v: 健康医护服务提供者可能在一个机构内，一段时间内可能承担的一系列职务角色（Roles）/工作地点（Locations）/专业领域（specialties）/所提供的服务（services）。
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: PractitionerRole
      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
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-3
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
      expression:
        v: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
      xpath:
        v: not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-4
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
      expression:
        v: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-5
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a security label
      expression:
        v: contained.meta.security.empty()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:security))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-6
      severity:
        v: warning
      human:
        v: A resource should have narrative for robust management
      expression:
        v: text.`div`.exists()
      xpath:
        v: exists(f:text/h:div)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    is modifier:
      v: false
    is summary:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: Entity. Role, or Act
    mapping:
      identity:
        v: v2
      map:
        v: PRD (as one example)
    mapping:
      identity:
        v: rim
      map:
        v: Role
    mapping:
      identity:
        v: servd
      map:
        v: ServiceSiteProvider
  element:
    id:
      v: PractitionerRole.id
    path:
      v: PractitionerRole.id
    short:
      v: 不重复的ID用以识别储存在特定FHIR Server中的PractitionerRole纪录，通常又称为逻辑性ID。
    definition:
      v: The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
    comment:
      v: 一个resource使用新增操作（create operation）提交给服务器时，此resource没有id，它的id在resource被创建后由服务器分配/指定。
    min:
      v: 0
    max:
      v: 1

v: true

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.

path:
  v: Resource.id
min:
  v: 0
max:
  v: 1

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
  value:
    v: id
code:
  v: http://hl7.org/fhirpath/System.String

v: false

v: true

id:
  v: PractitionerRole.meta
path:
  v: PractitionerRole.meta
short:
  v: Metadata about the resource
definition:
  v: The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.meta
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Meta
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: PractitionerRole.implicitRules
path:
  v: PractitionerRole.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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: true
is modifier reason:
  v: This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation
is summary:
  v: true

id:
  v: PractitionerRole.language
path:
  v: PractitionerRole.language
short:
  v: Language of the resource content
definition:
  v: The base language in which the resource is written.
comment:
  v: Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.language
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: 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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
    value:
      v: http://hl7.org/fhir/ValueSet/all-languages
      link: http://hl7.org/fhir/ValueSet/all-languages
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: Language
  strength:
    v: preferred
  description:
    v: A human language.
  value set:
    v: http://hl7.org/fhir/ValueSet/languages
    link: http://hl7.org/fhir/ValueSet/languages

id:
  v: PractitionerRole.text
path:
  v: PractitionerRole.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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: Act.text?

id:
  v: PractitionerRole.contained
path:
  v: PractitionerRole.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
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: PractitionerRole.extension
path:
  v: PractitionerRole.extension
short:
  v: 扩展字段
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: PractitionerRole.modifierExtension
path:
  v: PractitionerRole.modifierExtension
short:
  v: 此扩展字段可能会完全修正或改变其他资料项目的涵意，需特别留意。
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them
is summary:
  v: false

id:
  v: PractitionerRole.identifier
path:
  v: PractitionerRole.identifier
short:
  v: 与角色（role）/地点（location）相关的特定业务识别码
definition:
  v: 与角色(role)/地点（location）相关的特定业务识别码
requirements:
  v: 通常会为代理人指派特定的身份识别
min:
  v: 0
max:
  v: *
base:
  path:
    v: PractitionerRole.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.identifier
mapping:
  identity:
    v: v2
  map:
    v: PRD-7 (or XCN.1)
mapping:
  identity:
    v: rim
  map:
    v: .id
mapping:
  identity:
    v: servd
  map:
    v: ./Identifiers

id:
  v: PractitionerRole.active
path:
  v: PractitionerRole.active
short:
  v: 此健康医护服务提供者角色纪录是否有效
definition:
  v: 此健康医护服务提供者角色纪录是否有效
comment:
  v: 如果此值为 false，则可以参考period资料项目来了解角色的有效时间。如果没有指定eriod，则无法推断角色的有效时间。
requirements:
  v: 需要能够将健康医护服务提供者角色纪录标记为无效，因为该记录是错误创建的，或已不再有效。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PractitionerRole.active
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
meaning when missing:
  v: This resource is generally assumed to be active if no value is provided for the active element
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.status
mapping:
  identity:
    v: v2
  map:
    v: STF-7
mapping:
  identity:
    v: rim
  map:
    v: .statusCode

id:
  v: PractitionerRole.period
path:
  v: PractitionerRole.period
short:
  v: 健康医护服务提供者在这些角色里被授权执行工作的时间范围
definition:
  v: 健康医护服务提供者被授权在这些角色中为机构执行工作的时间范围
requirements:
  v: 即使授权被撤销，仍需记录该授权曾经存在的事实。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PractitionerRole.period
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: 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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.done[x]
mapping:
  identity:
    v: v2
  map:
    v: PRD-8/9 / PRA-5.4
mapping:
  identity:
    v: rim
  map:
    v: .performance[@typeCode <= 'PPRF'].ActDefinitionOrEvent.effectiveTime
mapping:
  identity:
    v: servd
  map:
    v: (ServD maps Practitioners and Organizations via another entity, so this concept is not available)

id:
  v: PractitionerRole.practitioner
path:
  v: PractitionerRole.practitioner
short:
  v: 能够为机构提供所定义服务的健康医护服务提供者
definition:
  v: 能够为机构提供所定义服务的健康医护服务提供者
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PractitionerRole.practitioner
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-practitioner
    link: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-practitioner
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .player

id:
  v: PractitionerRole.organization
path:
  v: PractitionerRole.organization
short:
  v: 提供这此健康医护服务提供者角色的机构
definition:
  v: 此健康医护服务提供者履行相关角色职责的机构
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PractitionerRole.organization
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-organization
    link: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-organization
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .scoper

id:
  v: PractitionerRole.code
path:
  v: PractitionerRole.code
short:
  v: Roles which this practitioner may perform
definition:
  v: Roles which this practitioner is authorized to perform for the organization.
comment:
  v: A person may have more than one role.
requirements:
  v: Need to know what authority the practitioner has - what can they do?
min:
  v: 0
max:
  v: *
base:
  path:
    v: PractitionerRole.code
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: 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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: PractitionerRole
  strength:
    v: example
  description:
    v: The role a person plays representing an organization.
  value set:
    v: http://hl7.org/fhir/ValueSet/practitioner-role
    link: http://hl7.org/fhir/ValueSet/practitioner-role
mapping:
  identity:
    v: v2
  map:
    v: PRD-1 / STF-18 / PRA-3 / PRT-4 / ROL-3 / ORC-12 / OBR-16 / PV1-7 / PV1-8 / PV1-9 / PV1-17
mapping:
  identity:
    v: rim
  map:
    v: .code
mapping:
  identity:
    v: servd
  map:
    v: (ServD maps Practitioners and Organizations via another entity, so this concept is not available)

id:
  v: PractitionerRole.specialty
path:
  v: PractitionerRole.specialty
short:
  v: 健康医护服务提供者的特定专业
definition:
  v: Specific specialty of the practitioner.
min:
  v: 0
max:
  v: *
base:
  path:
    v: PractitionerRole.specialty
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: 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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: PractitionerSpecialty
  strength:
    v: preferred
  description:
    v: Specific specialty associated with the agency.
  value set:
    v: http://hl7.org/fhir/ValueSet/c80-practice-codes
    link: http://hl7.org/fhir/ValueSet/c80-practice-codes
mapping:
  identity:
    v: v2
  map:
    v: PRA-5
mapping:
  identity:
    v: rim
  map:
    v: .player.HealthCareProvider[@classCode = 'PROV'].code
mapping:
  identity:
    v: servd
  map:
    v: ./Specialty

id:
  v: PractitionerRole.location
path:
  v: PractitionerRole.location
short:
  v: 此健康医护服务提供者提供医护的地点
definition:
  v: The location(s) at which this practitioner provides care.
min:
  v: 0
max:
  v: *
base:
  path:
    v: PractitionerRole.location
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-location
    link: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-location
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.where[x]
mapping:
  identity:
    v: rim
  map:
    v: .performance.ActDefinitionOrEvent.ServiceDeliveryLocation[@classCode = 'SDLOC']
mapping:
  identity:
    v: servd
  map:
    v: (ServD maps Practitioners and Organizations via another entity, so this concept is not available) However these are accessed via the Site.ServiceSite.ServiceSiteProvider record. (The Site has the location)

id:
  v: PractitionerRole.healthcareService
path:
  v: PractitionerRole.healthcareService
short:
  v: 此工作者为此角色的机构（Organizatoin）/地点（Location）提供的健康医护服务清单
definition:
  v: The list of healthcare services that this worker provides for this role's Organization/Location(s).
min:
  v: 0
max:
  v: *
base:
  path:
    v: PractitionerRole.healthcareService
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/HealthcareService
    link: http://hl7.org/fhir/StructureDefinition/HealthcareService
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: v2
  map:
    v: EDU-2 / AFF-3
mapping:
  identity:
    v: rim
  map:
    v: .player.QualifiedEntity[@classCode = 'QUAL'].code

id:
  v: PractitionerRole.telecom
path:
  v: PractitionerRole.telecom
short:
  v: 与角色（role）/地点（location）/服务（service）相关的联络细节
definition:
  v: Contact details that are specific to the role/location/service.
requirements:
  v: Often practitioners have a dedicated line for each location (or service) that they work at, and need to be able to define separate contact details for each of these.
min:
  v: 0
max:
  v: *
base:
  path:
    v: PractitionerRole.telecom
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: 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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .telecom

id:
  v: PractitionerRole.telecom.id
path:
  v: PractitionerRole.telecom.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
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: PractitionerRole.telecom.extension
path:
  v: PractitionerRole.telecom.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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: PractitionerRole.telecom.system
path:
  v: PractitionerRole.telecom.system
short:
  v: phone | fax | email | pager | url | sms | other
definition:
  v: 联络方式的通讯形式－需要什么通讯系统进行联络
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ContactPoint.system
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
condition:
  v: cpt-2
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/ValueSet/contact-point-system|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: v2
  map:
    v: XTN.3
mapping:
  identity:
    v: rim
  map:
    v: ./scheme
mapping:
  identity:
    v: servd
  map:
    v: ./ContactPointType

id:
  v: PractitionerRole.telecom.value
path:
  v: PractitionerRole.telecom.value
short:
  v: 实际的联络方式之细节
definition:
  v: The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address).
comment:
  v: Additional text data such as phone extension numbers, or notes about use of the contact are sometimes included in the value.
requirements:
  v: Need to support legacy numbers that are not in a tightly controlled format.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ContactPoint.value
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: XTN.1 (or XTN.12)
mapping:
  identity:
    v: rim
  map:
    v: ./url
mapping:
  identity:
    v: servd
  map:
    v: ./Value

id:
  v: PractitionerRole.telecom.use
path:
  v: PractitionerRole.telecom.use
short:
  v: home | work | temp | old | mobile－此联络方式的用途
definition:
  v: Identifies the purpose for the contact point.
comment:
  v: Applications can assume that a contact is current unless it explicitly says that it is temporary or old.
requirements:
  v: Need to track the way a person uses this contact, so a user can choose which is appropriate for their purpose.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ContactPoint.use
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: 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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: true
is modifier reason:
  v: This is labeled as "Is Modifier" because applications should not mistake a temporary or old contact etc.for a current/permanent one
is summary:
  v: true
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/ValueSet/contact-point-use|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: v2
  map:
    v: XTN.2 - but often indicated by field
mapping:
  identity:
    v: rim
  map:
    v: unique(./use)
mapping:
  identity:
    v: servd
  map:
    v: ./ContactPointPurpose

id:
  v: PractitionerRole.telecom.rank
path:
  v: PractitionerRole.telecom.rank
short:
  v: 具体说明偏好的使用顺序（1=最高优先顺序）
definition:
  v: Specifies a preferred order in which to use a set of contacts. ContactPoints with lower rank values are more preferred than those with higher rank values.
comment:
  v: Note that rank does not necessarily follow the order in which the contacts are represented in the instance.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ContactPoint.rank
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: positiveInt
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: PractitionerRole.telecom.period
path:
  v: PractitionerRole.telecom.period
short:
  v: 此联络方式的使用效期
definition:
  v: Time period when the contact point was/is in use.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ContactPoint.period
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: 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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: N/A
mapping:
  identity:
    v: rim
  map:
    v: ./usablePeriod[type="IVL<TS>"]
mapping:
  identity:
    v: servd
  map:
    v: ./StartDate and ./EndDate

id:
  v: PractitionerRole.availableTime
path:
  v: PractitionerRole.availableTime
short:
  v: 服务地点可用的时间
definition:
  v: A collection of times the practitioner is available or performing this role at the location and/or healthcareservice.
comment:
  v: More detailed availability information may be provided in associated Schedule/Slot resources.
min:
  v: 0
max:
  v: *
base:
  path:
    v: PractitionerRole.availableTime
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime

id:
  v: PractitionerRole.availableTime.id
path:
  v: PractitionerRole.availableTime.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
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: PractitionerRole.availableTime.extension
path:
  v: PractitionerRole.availableTime.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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: PractitionerRole.availableTime.modifierExtension
path:
  v: PractitionerRole.availableTime.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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: PractitionerRole.availableTime.daysOfWeek
path:
  v: PractitionerRole.availableTime.daysOfWeek
short:
  v: mon | tue | wed | thu | fri | sat | sun
definition:
  v: 此服务地点，在规定的开始和结束时间内，一周中哪些天是开放的。
min:
  v: 0
max:
  v: *
base:
  path:
    v: PractitionerRole.availableTime.daysOfWeek
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: 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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/ValueSet/days-of-week|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime

id:
  v: PractitionerRole.availableTime.allDay
path:
  v: PractitionerRole.availableTime.allDay
short:
  v: 随时可用？ 例如：24 小时服务。
definition:
  v: 此服务地点是否始终开放？（因此时间并不重要），例如 24 小时服务。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PractitionerRole.availableTime.allDay
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime

id:
  v: PractitionerRole.availableTime.availableStartTime
path:
  v: PractitionerRole.availableTime.availableStartTime
short:
  v: 每天的开放时间（如果 allDay = true，则忽略。）
definition:
  v: The opening time of day. Note: If the AllDay flag is set, then this time is ignored.
comment:
  v: The timezone is expected to be for where this HealthcareService is provided at.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PractitionerRole.availableTime.availableStartTime
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: time
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime

id:
  v: PractitionerRole.availableTime.availableEndTime
path:
  v: PractitionerRole.availableTime.availableEndTime
short:
  v: 每天的关闭时间（如果 allDay = true，则忽略。）
definition:
  v: The closing time of day. Note: If the AllDay flag is set, then this time is ignored.
comment:
  v: The timezone is expected to be for where this HealthcareService is provided at.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PractitionerRole.availableTime.availableEndTime
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: time
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime

id:
  v: PractitionerRole.notAvailable
path:
  v: PractitionerRole.notAvailable
short:
  v: 由于提供的原因，在此期间无法使用。
definition:
  v: The practitioner is not available or performing this role during this period of time due to the provided reason.
min:
  v: 0
max:
  v: *
base:
  path:
    v: PractitionerRole.notAvailable
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime

id:
  v: PractitionerRole.notAvailable.id
path:
  v: PractitionerRole.notAvailable.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
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: PractitionerRole.notAvailable.extension
path:
  v: PractitionerRole.notAvailable.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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: PractitionerRole.notAvailable.modifierExtension
path:
  v: PractitionerRole.notAvailable.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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: PractitionerRole.notAvailable.description
path:
  v: PractitionerRole.notAvailable.description
short:
  v: 向使用者说明为什么此期间无法使用的原因
definition:
  v: The reason that can be presented to the user as to why this time is not available.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: PractitionerRole.notAvailable.description
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: PractitionerRole.notAvailable.during
path:
  v: PractitionerRole.notAvailable.during
short:
  v: 从这个日期起，服务将不再提供。
definition:
  v: Service is not available (seasonally or for a public holiday) from this date.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PractitionerRole.notAvailable.during
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: 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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime

id:
  v: PractitionerRole.availabilityExceptions
path:
  v: PractitionerRole.availabilityExceptions
short:
  v: 描述在特定情况下服务不可用的特例
definition:
  v: A description of site availability exceptions, e.g. public holiday availability. Succinctly describing all possible exceptions to normal site availability as details in the available Times and not available Times.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PractitionerRole.availabilityExceptions
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime

id:
  v: PractitionerRole.endpoint
path:
  v: PractitionerRole.endpoint
short:
  v: 提供用于此健康医护服务提供者角色运营服务的技术端点
definition:
  v: Technical endpoints providing access to services operated for the practitioner with this role.
requirements:
  v: Organizations have multiple systems that provide various services and ,ay also be different for practitioners too. So the endpoint satisfies the need to be able to define the technical connection details for how to connect to them, and for what purpose.
min:
  v: 0
max:
  v: *
base:
  path:
    v: PractitionerRole.endpoint
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Endpoint
    link: http://hl7.org/fhir/StructureDefinition/Endpoint
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

element:
  id:
    v: PractitionerRole
  path:
    v: PractitionerRole
  short:
    v: 健康医护服务提供者所关联的角色/机构
  definition:
    v: 健康医护服务提供者可能在一个机构内，一段时间内可能承担的一系列职务角色（Roles）/工作地点（Locations）/专业领域（specialties）/所提供的服务（services）。
element:
  id:
    v: PractitionerRole.id
  path:
    v: PractitionerRole.id
  short:
    v: 不重复的ID用以识别储存在特定FHIR Server中的PractitionerRole纪录，通常又称为逻辑性ID。
  comment:
    v: 一个resource使用新增操作（create operation）提交给服务器时，此resource没有id，它的id在resource被创建后由服务器分配/指定。
element:
  id:
    v: PractitionerRole.extension
  path:
    v: PractitionerRole.extension
  short:
    v: 扩展字段
element:
  id:
    v: PractitionerRole.modifierExtension
  path:
    v: PractitionerRole.modifierExtension
  short:
    v: 此扩展字段可能会完全修正或改变其他资料项目的涵意，需特别留意。
element:
  id:
    v: PractitionerRole.identifier
  path:
    v: PractitionerRole.identifier
  short:
    v: 与角色（role）/地点（location）相关的特定业务识别码
  definition:
    v: 与角色(role)/地点（location）相关的特定业务识别码
  requirements:
    v: 通常会为代理人指派特定的身份识别
  must support:
    v: true
element:
  id:
    v: PractitionerRole.active
  path:
    v: PractitionerRole.active
  short:
    v: 此健康医护服务提供者角色纪录是否有效
  definition:
    v: 此健康医护服务提供者角色纪录是否有效
  comment:
    v: 如果此值为 false，则可以参考period资料项目来了解角色的有效时间。如果没有指定eriod，则无法推断角色的有效时间。
  requirements:
    v: 需要能够将健康医护服务提供者角色纪录标记为无效，因为该记录是错误创建的，或已不再有效。
  must support:
    v: true
element:
  id:
    v: PractitionerRole.period
  path:
    v: PractitionerRole.period
  short:
    v: 健康医护服务提供者在这些角色里被授权执行工作的时间范围
  definition:
    v: 健康医护服务提供者被授权在这些角色中为机构执行工作的时间范围
  requirements:
    v: 即使授权被撤销，仍需记录该授权曾经存在的事实。
element:
  id:
    v: PractitionerRole.practitioner
  path:
    v: PractitionerRole.practitioner
  short:
    v: 能够为机构提供所定义服务的健康医护服务提供者
  definition:
    v: 能够为机构提供所定义服务的健康医护服务提供者
  type:
    code:
      v: Reference
    target profile:
      v: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-practitioner
      link: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-practitioner
  must support:
    v: true
element:
  id:
    v: PractitionerRole.organization
  path:
    v: PractitionerRole.organization
  short:
    v: 提供这此健康医护服务提供者角色的机构
  definition:
    v: 此健康医护服务提供者履行相关角色职责的机构
  type:
    code:
      v: Reference
    target profile:
      v: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-organization
      link: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-organization
  must support:
    v: true
element:
  id:
    v: PractitionerRole.specialty
  path:
    v: PractitionerRole.specialty
  short:
    v: 健康医护服务提供者的特定专业
  must support:
    v: true
element:
  id:
    v: PractitionerRole.location
  path:
    v: PractitionerRole.location
  short:
    v: 此健康医护服务提供者提供医护的地点
  type:
    code:
      v: Reference
    target profile:
      v: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-location
      link: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-location
  must support:
    v: true
element:
  id:
    v: PractitionerRole.healthcareService
  path:
    v: PractitionerRole.healthcareService
  short:
    v: 此工作者为此角色的机构（Organizatoin）/地点（Location）提供的健康医护服务清单
element:
  id:
    v: PractitionerRole.telecom
  path:
    v: PractitionerRole.telecom
  short:
    v: 与角色（role）/地点（location）/服务（service）相关的联络细节
  must support:
    v: true
element:
  id:
    v: PractitionerRole.telecom.system
  path:
    v: PractitionerRole.telecom.system
  definition:
    v: 联络方式的通讯形式－需要什么通讯系统进行联络
  min:
    v: 1
  must support:
    v: true
  binding:
    strength:
      v: required
    value set:
      v: http://hl7.org/fhir/ValueSet/contact-point-system|4.0.1
      link: 4.0
      link: .1
element:
  id:
    v: PractitionerRole.telecom.value
  path:
    v: PractitionerRole.telecom.value
  short:
    v: 实际的联络方式之细节
  min:
    v: 1
  must support:
    v: true
element:
  id:
    v: PractitionerRole.telecom.use
  path:
    v: PractitionerRole.telecom.use
  short:
    v: home | work | temp | old | mobile－此联络方式的用途
  must support:
    v: true
  binding:
    strength:
      v: required
    value set:
      v: http://hl7.org/fhir/ValueSet/contact-point-use|4.0.1
      link: 4.0
      link: .1
element:
  id:
    v: PractitionerRole.telecom.rank
  path:
    v: PractitionerRole.telecom.rank
  short:
    v: 具体说明偏好的使用顺序（1=最高优先顺序）
element:
  id:
    v: PractitionerRole.telecom.period
  path:
    v: PractitionerRole.telecom.period

v: 此联络方式的使用效期

v: true

id:
  v: PractitionerRole.availableTime
path:
  v: PractitionerRole.availableTime
short:
  v: 服务地点可用的时间

id:
  v: PractitionerRole.availableTime.daysOfWeek
path:
  v: PractitionerRole.availableTime.daysOfWeek
definition:
  v: 此服务地点，在规定的开始和结束时间内，一周中哪些天是开放的。
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/ValueSet/days-of-week|4.0.1
    link: 4.0
    link: .1

id:
  v: PractitionerRole.availableTime.allDay
path:
  v: PractitionerRole.availableTime.allDay
short:
  v: 随时可用？ 例如：24 小时服务。
definition:
  v: 此服务地点是否始终开放？（因此时间并不重要），例如 24 小时服务。

id:
  v: PractitionerRole.availableTime.availableStartTime
path:
  v: PractitionerRole.availableTime.availableStartTime
short:
  v: 每天的开放时间（如果 allDay = true，则忽略。）

id:
  v: PractitionerRole.availableTime.availableEndTime
path:
  v: PractitionerRole.availableTime.availableEndTime
short:
  v: 每天的关闭时间（如果 allDay = true，则忽略。）

id:
  v: PractitionerRole.notAvailable
path:
  v: PractitionerRole.notAvailable
short:
  v: 由于提供的原因，在此期间无法使用。

id:
  v: PractitionerRole.notAvailable.description
path:
  v: PractitionerRole.notAvailable.description
short:
  v: 向使用者说明为什么此期间无法使用的原因

id:
  v: PractitionerRole.notAvailable.during
path:
  v: PractitionerRole.notAvailable.during
short:
  v: 从这个日期起，服务将不再提供。

id:
  v: PractitionerRole.availabilityExceptions
path:
  v: PractitionerRole.availabilityExceptions
short:
  v: 描述在特定情况下服务不可用的特例

id:
  v: PractitionerRole.endpoint
path:
  v: PractitionerRole.endpoint
short:
  v: 提供用于此健康医护服务提供者角色运营服务的技术端点