dh-practitionerrole-core-1
type: StructureDefinition
node role: treeRoot
id:
  v: dh-practitionerrole-core-1
text:
  status:
    v: extensions
  div: Generated Narrative: StructureDefinition dh-practitionerrole-core-1 Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> PractitionerRole C 0..* AUCorePractitionerRole A person with formal responsibility in a role providing one or more services inv-dh-prarol-01: If present, an organization shall at least have a reference, an identifier or a display inv-dh-prarol-02: If present, a location shall at least have a reference, an identifier or a display inv-dh-prarol-03: If present, a healthcare service shall at least have a reference, an identifier or a display Slices for identifier S 1..* Identifier, AUMedicareProviderNumber, AUNationalProviderIdentifierAtOrganisation, AUEmployeeNumber Business Identifiers that are specific to a role/location Slice: Unordered, Open by pattern:type identifier:hpii S 0..1 AUHPII Business Identifiers that are specific to a role/location identifier:caei S 0..1 AUCareAgencyEmployeeIdentifier Business Identifiers that are specific to a role/location active 0..1 boolean Whether this practitioner role record is in active use Fixed Value: true organization SC 0..1 Reference(ADHA Core Organization) Organization where the roles are available location SC 0..* Reference(ADHA Core Location) The location(s) at which this practitioner provides care healthcareService SC 0..1 Reference(ADHA Core HealthcareService) The list of healthcare services that this worker provides for this role's Organization/Location(s) <img src="[binary]" alt="doco" style="background-color: inherit"/> Documentation for this format
url:
  v: http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-practitionerrole-core-1
version:
  v: 1.2.0
name:
  v: ADHAPractitionerRoleCore
title:
  v: ADHA Core PractitionerRole
status:
  v: active
experimental:
  v: false
date:
  v: 2024-09-19T11:15:09+10:00
publisher:
  v: Australian Digital Health Agency
contact:
  name:
    v: Australian Digital Health Agency
  telecom:
    system:
      v: email
description:
  v: The purpose of this profile is to define a core representation of a practitioner in a role, on behalf of an organisation, for the electronic exchange of health information between individuals, healthcare providers, and the My Health Record system infrastructure in Australia.
jurisdiction:
  coding:
    system:
      v: urn:iso:std:iso:3166
    code:
      v: AU
copyright:
  v: Copyright © 2022 Australian Digital Health Agency - All rights reserved. This content is licensed under a Creative Commons Attribution 4.0 International License. See https://creativecommons.org/licenses/by/4.0/.
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.au/fhir/core/StructureDefinition/au-core-practitionerrole
  link: http://hl7.org.au/fhir/core/StructureDefinition/au-core-practitionerrole
derivation:
  v: constraint
snapshot:
  element:
    id:
      v: PractitionerRole
    path:
      v: PractitionerRole
    short:
      v: A person with formal responsibility in a role providing one or more services
    definition:
      v: A specific set of Roles/Locations/specialties/services that a practitioner may perform at an organization for a period of time.
    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
    constraint:
      key:
        v: inv-dh-prarol-01
      severity:
        v: error
      human:
        v: If present, an organization shall at least have a reference, an identifier or a display
      expression:
        v: organization.exists() implies organization.all($this.reference.exists() or $this.identifier.exists() or $this.display.exists())
      xpath:
        v: not(exists(f:organization)) or exists(f:organization/f:reference) or exists(f:organization/f:identifier) or exists(f:organization/f:display)
      source:
        v: http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-practitionerrole-core-1
        link: http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-practitionerrole-core-1
    constraint:
      key:
        v: inv-dh-prarol-02
      severity:
        v: error
      human:
        v: If present, a location shall at least have a reference, an identifier or a display
      expression:
        v: location.exists() implies location.all($this.reference.exists() or $this.identifier.exists() or $this.display.exists())
      xpath:
        v: not(exists(f:location)) or exists(f:location/f:reference) or exists(f:location/f:identifier) or exists(f:location/f:display)
      source:
        v: http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-practitionerrole-core-1
        link: http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-practitionerrole-core-1
    constraint:
      key:
        v: inv-dh-prarol-03

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.

v: error

v: If present, a healthcare service shall at least have a reference, an identifier or a display

v: healthcareService.exists() implies healthcareService.all($this.reference.exists() or $this.identifier.exists() or $this.display.exists())

v: not(exists(f:healthcareService)) or exists(f:healthcareService/f:reference) or exists(f:healthcareService/f:identifier) or exists(f:healthcareService/f:display)

v: false

v: false

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

identity:
  v: v2
map:
  v: PRD (as one example)

identity:
  v: rim
map:
  v: Role

identity:
  v: servd
map:
  v: ServiceSiteProvider

id:
  v: PractitionerRole.id
path:
  v: PractitionerRole.id
short:
  v: Logical id of this artifact
definition:
  v: The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
comment:
  v: The only time that a resource does not have an id is when it is being submitted to the server using a create operation.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: id
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: true

id:
  v: 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: 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
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.modifierExtension
path:
  v: PractitionerRole.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
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
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: PractitionerRole.identifier
extension:
  extension:
    url:
      v: code
    value:
      v: SHALL:populate-if-known
  extension:
    url:
      v: actor
    value:
      v: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-responder
      link: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-responder
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
extension:
  extension:
    url:
      v: code
    value:
      v: SHALL:no-error
  extension:
    url:
      v: actor
    value:
      v: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-requester
      link: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-requester
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
path:
  v: PractitionerRole.identifier
slicing:
  discriminator:
    type:
      v: pattern
    path:
      v: type
  rules:
    v: open
short:
  v: Business Identifiers that are specific to a role/location
definition:
  v: Business Identifiers that are specific to a role/location.
requirements:
  v: Often, specific identities are assigned for the agent.
min:
  v: 1
max:
  v: *
base:
  path:
    v: PractitionerRole.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
  profile:
    v: http://hl7.org/fhir/StructureDefinition/Identifier
    link: http://hl7.org/fhir/StructureDefinition/Identifier
  profile:
    v: http://hl7.org.au/fhir/StructureDefinition/au-medicareprovidernumber
    link: http://hl7.org.au/fhir/StructureDefinition/au-medicareprovidernumber
  profile:
    v: http://hl7.org.au/fhir/StructureDefinition/au-nationalprovideridentifieratorganisation
    link: http://hl7.org.au/fhir/StructureDefinition/au-nationalprovideridentifieratorganisation
  profile:
    v: http://hl7.org.au/fhir/StructureDefinition/au-employeenumber
    link: http://hl7.org.au/fhir/StructureDefinition/au-employeenumber
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CX / EI (occasionally, more often EI maps to a resource id or a URL)
mapping:
  identity:
    v: rim
  map:
    v: II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]
mapping:
  identity:
    v: servd
  map:
    v: Identifier

id:
  v: PractitionerRole.identifier:medicareProvider
extension:
  extension:
    url:
      v: code
    value:
      v: SHALL:populate-if-known
  extension:
    url:
      v: actor
    value:
      v: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-responder
      link: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-responder
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
extension:
  extension:
    url:
      v: code
    value:
      v: SHALL:no-error
  extension:
    url:
      v: actor
    value:
      v: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-requester
      link: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-requester
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
path:
  v: PractitionerRole.identifier
slice name:
  v: medicareProvider
short:
  v: Medicare Provider Number
definition:
  v: Medicare provider number assigned by Services Australia to practitioners who provide services covered by Medicare Benefits Schedule (MBS) at a specific location.
requirements:
  v: Often, specific identities are assigned for the agent.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PractitionerRole.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
  profile:
    v: http://hl7.org.au/fhir/StructureDefinition/au-medicareprovidernumber
    link: http://hl7.org.au/fhir/StructureDefinition/au-medicareprovidernumber
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CX / EI (occasionally, more often EI maps to a resource id or a URL)
mapping:
  identity:
    v: rim
  map:
    v: II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]
mapping:
  identity:
    v: servd
  map:
    v: Identifier

id:
  v: PractitionerRole.identifier:hpii
extension:
  extension:
    url:
      v: code
    value:
      v: SHALL:populate-if-known
  extension:
    url:
      v: actor
    value:
      v: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-responder
      link: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-responder
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
extension:
  extension:
    url:
      v: code
    value:
      v: SHALL:no-error
  extension:
    url:
      v: actor
    value:
      v: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-requester
      link: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-requester
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
path:
  v: PractitionerRole.identifier
slice name:
  v: hpii
short:
  v: Business Identifiers that are specific to a role/location
definition:
  v: Business Identifiers that are specific to a role/location.
requirements:
  v: Often, specific identities are assigned for the agent.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PractitionerRole.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
  profile:
    v: http://hl7.org.au/fhir/StructureDefinition/au-hpii
    link: http://hl7.org.au/fhir/StructureDefinition/au-hpii
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CX / EI (occasionally, more often EI maps to a resource id or a URL)
mapping:
  identity:
    v: rim
  map:
    v: II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]
mapping:
  identity:
    v: servd
  map:
    v: Identifier

id:
  v: PractitionerRole.identifier:caei
extension:
  extension:
    url:
      v: code
    value:
      v: SHALL:populate-if-known
  extension:
    url:
      v: actor
    value:
      v: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-responder
      link: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-responder
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
extension:
  extension:
    url:
      v: code
    value:
      v: SHALL:no-error
  extension:
    url:
      v: actor
    value:
      v: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-requester
      link: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-requester
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
path:
  v: PractitionerRole.identifier
slice name:
  v: caei
short:
  v: Business Identifiers that are specific to a role/location
definition:
  v: Business Identifiers that are specific to a role/location.
requirements:
  v: Often, specific identities are assigned for the agent.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PractitionerRole.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
  profile:
    v: http://hl7.org.au/fhir/StructureDefinition/au-careagencyemployeeidentifier
    link: http://hl7.org.au/fhir/StructureDefinition/au-careagencyemployeeidentifier
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CX / EI (occasionally, more often EI maps to a resource id or a URL)
mapping:
  identity:
    v: rim
  map:
    v: II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]
mapping:
  identity:
    v: servd
  map:
    v: Identifier

id:
  v: PractitionerRole.active
path:
  v: PractitionerRole.active
short:
  v: Whether this practitioner role record is in active use
definition:
  v: Whether this practitioner role record is in active use.
comment:
  v: If this value is false, you may refer to the period to see when the role was in active use. If there is no period specified, no inference can be made about when it was active.
requirements:
  v: Need to be able to mark a practitioner role record as not to be used because it was created in error, or otherwise no longer in active use.
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
fixed:
  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
    link: http://hl7.org/fhir/StructureDefinition/Element
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: The period during which the practitioner is authorized to perform in these role(s)
definition:
  v: The period during which the person is authorized to act as a practitioner in these role(s) for the organization.
requirements:
  v: Even after the agencies is revoked, the fact that it existed must still be recorded.
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
extension:
  extension:
    url:
      v: code
    value:
      v: SHALL:populate-if-known
  extension:
    url:
      v: actor
    value:
      v: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-responder
      link: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-responder
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
extension:
  extension:
    url:
      v: code
    value:
      v: SHALL:no-error
  extension:
    url:
      v: actor
    value:
      v: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-requester
      link: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-requester
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
path:
  v: PractitionerRole.practitioner
short:
  v: Practitioner that is able to provide the defined services for the organization
definition:
  v: Practitioner that is able to provide the defined services for the organization.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: PractitionerRole.practitioner
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org.au/fhir/core/StructureDefinition/au-core-practitioner
    link: http://hl7.org.au/fhir/core/StructureDefinition/au-core-practitioner
condition:
  v: au-core-prarol-01
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: au-core-prarol-01
  severity:
    v: error
  human:
    v: At least a reference, identifier or display shall be present, or, if neither is available, the Data Absent Reason extension shall be present
  expression:
    v: (reference.exists() or identifier.exists() or display.exists()) xor extension('http://hl7.org/fhir/StructureDefinition/data-absent-reason').exists()
  xpath:
    v: (exists(f:reference) or exists(f:display) or exists(f:identifier)) and not(exists(f:extension[@url='http://hl7.org/fhir/StructureDefinition/data-absent-reason'])) or not(exists(f:reference) or exists(f:display) or exists(f:identifier)) and exists(f:extension[@url='http://hl7.org/fhir/StructureDefinition/data-absent-reason'])
  source:
    v: http://hl7.org.au/fhir/core/StructureDefinition/au-core-practitionerrole
    link: http://hl7.org.au/fhir/core/StructureDefinition/au-core-practitionerrole
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .player

id:
  v: PractitionerRole.organization
extension:
  extension:
    url:
      v: code
    value:
      v: SHALL:populate-if-known
  extension:
    url:
      v: actor
    value:
      v: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-responder
      link: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-responder
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
extension:
  extension:
    url:
      v: code
    value:
      v: SHALL:no-error
  extension:
    url:
      v: actor
    value:
      v: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-requester
      link: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-requester
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
path:
  v: PractitionerRole.organization
short:
  v: Organization where the roles are available
definition:
  v: The organization where the Practitioner performs the roles associated.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PractitionerRole.organization
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-organization-core-1
    link: http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-organization-core-1
condition:
  v: inv-dh-prarol-01
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
extension:
  extension:
    url:
      v: code
    value:
      v: SHALL:populate-if-known
  extension:
    url:
      v: actor
    value:
      v: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-responder
      link: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-responder
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
extension:
  extension:
    url:
      v: code
    value:
      v: SHALL:no-error
  extension:
    url:
      v: actor
    value:
      v: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-requester
      link: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-requester
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
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
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: preferred
  value set:
    v: https://healthterminologies.gov.au/fhir/ValueSet/practitioner-role-1
    link: https://healthterminologies.gov.au/fhir/ValueSet/practitioner-role-1
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
extension:
  extension:
    url:
      v: code
    value:
      v: SHALL:populate-if-known
  extension:
    url:
      v: actor
    value:
      v: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-responder
      link: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-responder
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
extension:
  extension:
    url:
      v: code
    value:
      v: SHALL:no-error
  extension:
    url:
      v: actor
    value:
      v: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-requester
      link: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-requester
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
path:
  v: PractitionerRole.specialty
short:
  v: Specific specialty of the practitioner
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:
  strength:
    v: preferred
  value set:
    v: https://healthterminologies.gov.au/fhir/ValueSet/clinical-specialty-1
    link: https://healthterminologies.gov.au/fhir/ValueSet/clinical-specialty-1
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: The location(s) at which this practitioner provides care
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: http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-location-core-1
    link: http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-location-core-1
condition:
  v: inv-dh-prarol-02
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: The list of healthcare services that this worker provides for this role's Organization/Location(s)
definition:
  v: The list of healthcare services that this worker provides for this role's Organization/Location(s).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PractitionerRole.healthcareService
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-healthcareservice-core-1
    link: http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-healthcareservice-core-1
condition:
  v: inv-dh-prarol-03
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: v2
  map:
    v: EDU-2 / AFF-3
mapping:
  identity:
    v: rim
  map:
    v: .player.QualifiedEntity[@classCode = 'QUAL'].code

id:
  v: PractitionerRole.telecom
extension:
  extension:
    url:
      v: code
    value:
      v: SHALL:populate-if-known
  extension:
    url:
      v: actor
    value:
      v: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-responder
      link: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-responder
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
extension:
  extension:
    url:
      v: code
    value:
      v: SHALL:no-error
  extension:
    url:
      v: actor
    value:
      v: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-requester
      link: http://hl7.org.au/fhir/core/ActorDefinition/au-core-actor-requester
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
path:
  v: PractitionerRole.telecom
short:
  v: Contact details that are specific to the 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.availableTime
path:
  v: PractitionerRole.availableTime
short:
  v: Times the Service Site is available
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: Indicates which days of the week are available between the start and end Times.
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: DaysOfWeek
  strength:
    v: required
  description:
    v: The days of the week.
  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: Always available? e.g. 24 hour service
definition:
  v: Is this always available? (hence times are irrelevant) e.g. 24 hour service.
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: Opening time of day (ignored if 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.availableStartTime.id
path:
  v: PractitionerRole.availableTime.availableStartTime.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references)
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

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

id:
  v: PractitionerRole.availableTime.availableStartTime.extension:timeZone
path:
  v: PractitionerRole.availableTime.availableStartTime.extension
slice name:
  v: timeZone
short:
  v: AU time zone
definition:
  v: Australian time zone.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://hl7.org.au/fhir/StructureDefinition/au-timezone
    link: http://hl7.org.au/fhir/StructureDefinition/au-timezone
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
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

id:
  v: PractitionerRole.availableTime.availableStartTime.value
path:
  v: PractitionerRole.availableTime.availableStartTime.value
representation:
  v: xmlAttr
short:
  v: Primitive value for time
definition:
  v: The actual value
min:
  v: 0
max:
  v: 1
base:
  path:
    v: time.value
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: time
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/regex
    value:
      v: ([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\.[0-9]+)?
  code:
    v: http://hl7.org/fhirpath/System.Time
is modifier:
  v: false
is summary:
  v: false

id:
  v: PractitionerRole.availableTime.availableEndTime
path:
  v: PractitionerRole.availableTime.availableEndTime
short:
  v: Closing time of day (ignored if 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.availableTime.availableEndTime.id
path:
  v: PractitionerRole.availableTime.availableEndTime.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references)
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

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

id:
  v: PractitionerRole.availableTime.availableEndTime.extension:timeZone
path:
  v: PractitionerRole.availableTime.availableEndTime.extension
slice name:
  v: timeZone
short:
  v: AU time zone
definition:
  v: Australian time zone.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://hl7.org.au/fhir/StructureDefinition/au-timezone
    link: http://hl7.org.au/fhir/StructureDefinition/au-timezone
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
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

id:
  v: PractitionerRole.availableTime.availableEndTime.value
path:
  v: PractitionerRole.availableTime.availableEndTime.value
representation:
  v: xmlAttr
short:
  v: Primitive value for time
definition:
  v: The actual value
min:
  v: 0
max:
  v: 1
base:
  path:
    v: time.value
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: time
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/regex
    value:
      v: ([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\.[0-9]+)?
  code:
    v: http://hl7.org/fhirpath/System.Time
is modifier:
  v: false
is summary:
  v: false

id:
  v: PractitionerRole.notAvailable
path:
  v: PractitionerRole.notAvailable
short:
  v: Not available during this time due to provided reason
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: Reason presented to the user explaining why time not available
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: Service not available from this date
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: Description of availability exceptions
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: Technical endpoints providing access to services operated for the practitioner with this role
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: A person with formal responsibility in a role providing one or more services
  constraint:
    key:
      v: inv-dh-prarol-01
    severity:
      v: error
    human:
      v: If present, an organization shall at least have a reference, an identifier or a display
    expression:
      v: organization.exists() implies organization.all($this.reference.exists() or $this.identifier.exists() or $this.display.exists())
    xpath:
      v: not(exists(f:organization)) or exists(f:organization/f:reference) or exists(f:organization/f:identifier) or exists(f:organization/f:display)
    source:
      v: http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-practitionerrole-core-1
      link: http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-practitionerrole-core-1
  constraint:
    key:
      v: inv-dh-prarol-02
    severity:
      v: error
    human:
      v: If present, a location shall at least have a reference, an identifier or a display
    expression:
      v: location.exists() implies location.all($this.reference.exists() or $this.identifier.exists() or $this.display.exists())
    xpath:
      v: not(exists(f:location)) or exists(f:location/f:reference) or exists(f:location/f:identifier) or exists(f:location/f:display)
    source:
      v: http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-practitionerrole-core-1
      link: http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-practitionerrole-core-1
  constraint:
    key:
      v: inv-dh-prarol-03
    severity:
      v: error
    human:
      v: If present, a healthcare service shall at least have a reference, an identifier or a display
    expression:
      v: healthcareService.exists() implies healthcareService.all($this.reference.exists() or $this.identifier.exists() or $this.display.exists())
    xpath:
      v: not(exists(f:healthcareService)) or exists(f:healthcareService/f:reference) or exists(f:healthcareService/f:identifier) or exists(f:healthcareService/f:display)
    source:
      v: http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-practitionerrole-core-1
      link: http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-practitionerrole-core-1
element:
  id:
    v: PractitionerRole.identifier
  path:
    v: PractitionerRole.identifier
  slicing:
    discriminator:
      type:
        v: pattern
      path:
        v: type
    rules:
      v: open
  definition:
    v: Business Identifiers that are specific to a role/location.
  min:
    v: 1
  must support:
    v: true
element:
  id:
    v: PractitionerRole.identifier:hpii
  path:
    v: PractitionerRole.identifier
  slice name:
    v: hpii
  max:
    v: 1
  type:
    code:
      v: Identifier
    profile:
      v: http://hl7.org.au/fhir/StructureDefinition/au-hpii
      link: http://hl7.org.au/fhir/StructureDefinition/au-hpii
  must support:
    v: true
element:
  id:
    v: PractitionerRole.identifier:caei
  path:
    v: PractitionerRole.identifier
  slice name:
    v: caei
  max:
    v: 1
  type:
    code:
      v: Identifier
    profile:
      v: http://hl7.org.au/fhir/StructureDefinition/au-careagencyemployeeidentifier
      link: http://hl7.org.au/fhir/StructureDefinition/au-careagencyemployeeidentifier
  must support:
    v: true
element:
  id:
    v: PractitionerRole.active
  path:
    v: PractitionerRole.active
  fixed:
    v: true
element:
  id:
    v: PractitionerRole.organization
  path:
    v: PractitionerRole.organization
  type:
    code:
      v: Reference
    target profile:
      v: http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-organization-core-1
      link: http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-organization-core-1
  condition:
    v: inv-dh-prarol-01
  must support:
    v: true
element:
  id:
    v: PractitionerRole.location
  path:
    v: PractitionerRole.location
  type:
    code:
      v: Reference
    target profile:
      v: http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-location-core-1
      link: http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-location-core-1
  condition:
    v: inv-dh-prarol-02
  must support:
    v: true
element:
  id:
    v: PractitionerRole.healthcareService
  path:
    v: PractitionerRole.healthcareService
  max:
    v: 1
  type:
    code:
      v: Reference
    target profile:
      v: http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-healthcareservice-core-1
      link: http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-healthcareservice-core-1
  condition:
    v: inv-dh-prarol-03
  must support:
    v: true