pca-healthcare-service
type: StructureDefinition
node role: treeRoot
id:
  v: pca-healthcare-service
text:
  status:
    v: extensions
  div: Generated Narrative: StructureDefinition pca-healthcare-service Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> HealthcareService C 0..* AUBaseHealthcareService A service offered by a publisher inv-pca-1: telecom use shall not be 'home' inv-pca-2: providedBy shall be a relative reference to an Organization inv-pca-3: location shall be a relative reference to a Location inv-pca-4: If eligibility contains 'coverage-restrictedResidents', then coverageArea shall be present inv-pca-5: exactly one type shall be preferred inv-pca-6: If present, au-timezone shall be the same as all other au-timezone codes that are present within all availableTime elements inv-pca-7: If one or more availableTime elements using the availableTimeApplicability extension are present, then at least one availableTime (without the availableTimeApplicability extension) shall be present contained S 0..* PcaServiceCoverageArea Contained inline pca-service-coverage-area resource Slices for extension Content/Rules for all slices pca-postal-address S 0..1 AustralianAddress Postal address URL: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-postal-address pca-key-contact S 0..* (Complex) Key Contact details URL: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-key-contact pca-referral-information-for-consumer S 0..1 markdown Referral instructions and information for consumers URL: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-referral-information-for-consumer pca-referral-information-for-provider S 0..1 markdown Referral instructions and information for providers URL: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-referral-information-for-provider pca-new-patient-availability S 1..1 CodeableConcept Whether the service is accepting new patients URL: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-new-patient-availability Binding: PCA New Patient Availabili…
url:
  v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
version:
  v: 24.2.0.0
name:
  v: PcaHealthcareService
title:
  v: PCA Healthcare Service
status:
  v: active
date:
  v: 2024-09-23T10:57:22+10:00
publisher:
  v: Australian Digital Health Agency
contact:
  telecom:
    system:
      v: email
description:
  v: This profile of HealthcareService defines a PCA Healthcare Service. A PCA Healthcare Service is a service offered at a location by a PCA publisher.
jurisdiction:
  coding:
    system:
      v: urn:iso:std:iso:3166
    code:
      v: AU
copyright:
  v: Copyright © 2024 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: rim
  uri:
    v: http://hl7.org/v3
  name:
    v: RIM Mapping
mapping:
  identity:
    v: w5
  uri:
    v: http://hl7.org/fhir/fivews
  name:
    v: FiveWs Pattern Mapping
kind:
  v: resource
abstract:
  v: false
type:
  v: HealthcareService
base definition:
  v: http://hl7.org.au/fhir/StructureDefinition/au-healthcareservice
  link: http://hl7.org.au/fhir/StructureDefinition/au-healthcareservice
derivation:
  v: constraint
snapshot:
  element:
    id:
      v: HealthcareService
    path:
      v: HealthcareService
    short:
      v: A service offered by a publisher
    definition:
      v: A service offered at a location by a publisher.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: HealthcareService
      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-pca-1
      severity:
        v: error
      human:
        v: telecom use shall not be 'home'
      expression:
        v: telecom.where(use = 'home').empty()
      source:
        v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
        link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
    constraint:
      key:
        v: inv-pca-2
      severity:
        v: error
      human:
        v: providedBy shall be a relative reference to an Organization
      expression:
        v: providedBy.reference.startsWith('Organization/')
      source:
        v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
        link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
    constraint:
      key:
        v: inv-pca-3
      severity:
        v: error
      human:
        v: location shall be a relative reference to a Location
      expression:
        v: location.reference.startsWith('Location/')
      source:
        v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
        link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
    constraint:
      key:
        v: inv-pca-4
      severity:
        v: error
      human:
        v: If eligibility contains 'coverage-restrictedResidents', then coverageArea shall be present
      expression:
        v: eligibility.where(code.coding.code='coverage-restrictedResidents').exists() implies coverageArea.exists()
      source:
        v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
        link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service

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.

key:
  v: inv-pca-5
severity:
  v: error
human:
  v: exactly one type shall be preferred
expression:
  v: type.extension.where(url='http://hl7.org/fhir/StructureDefinition/iso21090-preferred' and value=true).count()=1
source:
  v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
  link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service

key:
  v: inv-pca-6
severity:
  v: error
human:
  v: If present, au-timezone shall be the same as all other au-timezone codes that are present within all availableTime elements
expression:
  v: (availableTime.availableStartTime.extension.where(url='http://hl7.org.au/fhir/StructureDefinition/au-timezone').exists() or availableTime.availableEndTime.extension.where(url='http://hl7.org.au/fhir/StructureDefinition/au-timezone').exists()) implies (((availableTime.availableStartTime.extension.where(url='http://hl7.org.au/fhir/StructureDefinition/au-timezone')) | (availableTime.availableEndTime.extension.where(url='http://hl7.org.au/fhir/StructureDefinition/au-timezone'))).distinct().count() = 1)
source:
  v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
  link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service

key:
  v: inv-pca-7
severity:
  v: error
human:
  v: If one or more availableTime elements using the availableTimeApplicability extension are present, then at least one availableTime (without the availableTimeApplicability extension) shall be present
expression:
  v: (availableTime.modifierExtension.where(url='http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-available-time-applicability').exists()) implies (availableTime.count() > availableTime.modifierExtension.where(url='http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-available-time-applicability').count())
source:
  v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
  link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service

v: false

v: false

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

identity:
  v: rim
map:
  v: act[classCode=ACT][moodCode=DEF]

id:
  v: HealthcareService.id
path:
  v: HealthcareService.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: HealthcareService.meta
path:
  v: HealthcareService.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: HealthcareService.implicitRules
path:
  v: HealthcareService.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: HealthcareService.language
path:
  v: HealthcareService.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: HealthcareService.text
path:
  v: HealthcareService.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: HealthcareService.contained
path:
  v: HealthcareService.contained
short:
  v: Contained inline pca-service-coverage-area resource
definition:
  v: Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained, or accommodated.
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.
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.contained
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Resource
  profile:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-service-coverage-area
    link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-service-coverage-area
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: Entity. Role, or Act
mapping:
  identity:
    v: rim
  map:
    v: .Role[classCode=SDLC]

id:
  v: HealthcareService.extension
path:
  v: HealthcareService.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 1
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: HealthcareService.extension:pca-postal-address
path:
  v: HealthcareService.extension
slice name:
  v: pca-postal-address
short:
  v: Postal address
definition:
  v: Postal address.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-postal-address
    link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-postal-address
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
must support:
  v: true
is modifier:
  v: false

id:
  v: HealthcareService.extension:pca-key-contact
path:
  v: HealthcareService.extension
slice name:
  v: pca-key-contact
short:
  v: Key Contact details
definition:
  v: Key contact details for the PCA healthcare service record.
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-key-contact
    link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-key-contact
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
must support:
  v: true
is modifier:
  v: false

id:
  v: HealthcareService.extension:pca-referral-information-for-consumer
path:
  v: HealthcareService.extension
slice name:
  v: pca-referral-information-for-consumer
short:
  v: Referral instructions and information for consumers
definition:
  v: Referral instructions and information for consumers of a healthcare service.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-referral-information-for-consumer
    link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-referral-information-for-consumer
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
must support:
  v: true
is modifier:
  v: false

id:
  v: HealthcareService.extension:pca-referral-information-for-provider
path:
  v: HealthcareService.extension
slice name:
  v: pca-referral-information-for-provider
short:
  v: Referral instructions and information for providers
definition:
  v: Instructions and information for providers referring consumers to a healthcare service.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-referral-information-for-provider
    link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-referral-information-for-provider
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
must support:
  v: true
is modifier:
  v: false

id:
  v: HealthcareService.extension:pca-new-patient-availability
path:
  v: HealthcareService.extension
slice name:
  v: pca-new-patient-availability
short:
  v: Whether the service is accepting new patients
definition:
  v: Whether the service is accepting new patients.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-new-patient-availability
    link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-new-patient-availability
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
must support:
  v: true
is modifier:
  v: false

id:
  v: HealthcareService.extension:pca-active-period
path:
  v: HealthcareService.extension
slice name:
  v: pca-active-period
short:
  v: Period when the healthcare service is active
definition:
  v: Period when the healthcare service is active.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-active-period
    link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-active-period
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
must support:
  v: true
is modifier:
  v: false

id:
  v: HealthcareService.extension:pca-bank-account
path:
  v: HealthcareService.extension
slice name:
  v: pca-bank-account
short:
  v: Bank account details
definition:
  v: Bank account details for the healthcare service, practitioner or practitioner role record.
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-bank-account
    link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-bank-account
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
must support:
  v: true
is modifier:
  v: false

id:
  v: HealthcareService.extension:pca-iar-levels-of-care
path:
  v: HealthcareService.extension
slice name:
  v: pca-iar-levels-of-care
short:
  v: Levels of care that the service provides
definition:
  v: The levels of care that the service provides.
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-iar-levels-of-care
    link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-iar-levels-of-care
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
must support:
  v: true
is modifier:
  v: false

id:
  v: HealthcareService.modifierExtension
path:
  v: HealthcareService.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: HealthcareService.identifier
path:
  v: HealthcareService.identifier
slicing:
  discriminator:
    type:
      v: value
    path:
      v: system
  rules:
    v: open
short:
  v: External identifiers for this item
definition:
  v: External identifiers for this item.
min:
  v: 1
max:
  v: *
base:
  path:
    v: HealthcareService.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-hpio
    link: http://hl7.org.au/fhir/StructureDefinition/au-hpio
  profile:
    v: http://hl7.org.au/fhir/StructureDefinition/au-residentialagedcareserviceidentifier
    link: http://hl7.org.au/fhir/StructureDefinition/au-residentialagedcareserviceidentifier
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: HealthcareService.identifier:pca-hsi
path:
  v: HealthcareService.identifier
slice name:
  v: pca-hsi
short:
  v: PCA Healthcare Service Identifier (PCA-HSI) issued by the PCA service
definition:
  v: The PCA Healthcare Service Identifier (PCA-HSI) issued by the PCA service to each Healthcare Service.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HealthcareService.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
  profile:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service-identifier
    link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service-identifier
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: HealthcareService.active
path:
  v: HealthcareService.active
short:
  v: Whether this HealthcareService record is in active use
definition:
  v: This flag is used to mark the record to not be used. This is not used when a center is closed for maintenance, or for holidays, the notAvailable period is to be used for this.
comment:
  v: This element is labeled as a modifier because it may be used to mark that the resource was created in error.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HealthcareService.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: true
is modifier reason:
  v: This element is labelled as a modifier because it is a status element that can indicate that a record should not be treated as valid
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.status
mapping:
  identity:
    v: rim
  map:
    v: .statusCode

id:
  v: HealthcareService.providedBy
path:
  v: HealthcareService.providedBy
short:
  v: Organization that provides this service
definition:
  v: The organization that provides this healthcare service.
comment:
  v: This property is recommended to be the same as the Location's managingOrganization, and if not provided should be interpreted as such. If the Location does not have a managing Organization, then this property should be populated.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HealthcareService.providedBy
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-organization
    link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-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: .scopingRole.Organization

id:
  v: HealthcareService.category
path:
  v: HealthcareService.category
short:
  v: Broad category of service being performed or delivered
definition:
  v: Identifies the broad category of service being performed or delivered.
comment:
  v: Selecting a Service Category then determines the list of relevant service types that can be selected in the primary service type.
alias:
  v: service category
min:
  v: 0
max:
  v: *
base:
  path:
    v: HealthcareService.category
  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: service-category
  strength:
    v: example
  description:
    v: A category of the service(s) that could be provided.
  value set:
    v: http://hl7.org/fhir/ValueSet/service-category
    link: http://hl7.org/fhir/ValueSet/service-category
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class
mapping:
  identity:
    v: rim
  map:
    v: .code

id:
  v: HealthcareService.type
path:
  v: HealthcareService.type
short:
  v: Type of service that may be delivered or performed
definition:
  v: The specific type of service that may be delivered or performed.
alias:
  v: service type
min:
  v: 1
max:
  v: *
base:
  path:
    v: HealthcareService.type
  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: required
  value set:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/ValueSet/pca-healthcare-service-type
    link: http://pca.digitalhealth.gov.au/fhir/4.0/ValueSet/pca-healthcare-service-type
mapping:
  identity:
    v: rim
  map:
    v: .actrelationship[typeCode=COMP.act[classCode=ACT][moodCode=DEF].code

id:
  v: HealthcareService.type.id
path:
  v: HealthcareService.type.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: HealthcareService.type.extension
path:
  v: HealthcareService.type.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: HealthcareService.type.extension:preferred
path:
  v: HealthcareService.type.extension
slice name:
  v: preferred
short:
  v: Whether this is the primary service type for this HealthcareService
definition:
  v: Whether this is the primary service type for this HealthcareService.
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/fhir/StructureDefinition/iso21090-preferred
    link: http://hl7.org/fhir/StructureDefinition/iso21090-preferred
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
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false

id:
  v: HealthcareService.type.coding
path:
  v: HealthcareService.type.coding
short:
  v: Code defined by a terminology system
definition:
  v: A reference to a code defined by a terminology system.
comment:
  v: Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.
requirements:
  v: Allows for alternative encodings within a code system, and translations to other code systems.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CodeableConcept.coding
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
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: C*E.1-8, C*E.10-22
mapping:
  identity:
    v: rim
  map:
    v: union(., ./translation)
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding

id:
  v: HealthcareService.type.text
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value:
    v: true
path:
  v: HealthcareService.type.text
short:
  v: Plain text representation of the concept
definition:
  v: A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.
comment:
  v: Very often the text is the same as a displayName of one of the codings.
requirements:
  v: The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CodeableConcept.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: C*E.9. But note many systems use C*E.2 for this
mapping:
  identity:
    v: rim
  map:
    v: ./originalText[mediaType/code="text/plain"]/data
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText

id:
  v: HealthcareService.specialty
path:
  v: HealthcareService.specialty
short:
  v: Specialties handled by the HealthcareService
definition:
  v: Collection of specialties handled by the service site. This is more of a medical term.
min:
  v: 0
max:
  v: *
base:
  path:
    v: HealthcareService.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
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: rim
  map:
    v: .actrelationship[typeCode=COMP.act[classCode=ACT][moodCode=DEF].code

id:
  v: HealthcareService.location
path:
  v: HealthcareService.location
short:
  v: Location where service is provided
definition:
  v: The location where this healthcare service is provided.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HealthcareService.location
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-location
    link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-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: .location.role[classCode=SDLOC]

id:
  v: HealthcareService.name
path:
  v: HealthcareService.name
short:
  v: Description of service as presented to a consumer while searching
definition:
  v: Further description of the service as it would be presented to a consumer while searching.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HealthcareService.name
  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: rim
  map:
    v: .name

id:
  v: HealthcareService.comment
path:
  v: HealthcareService.comment
short:
  v: Additional description and/or any specific issues not covered elsewhere
definition:
  v: Any additional description of the service and/or any specific issues not covered by the other attributes, which can be displayed as further detail under the serviceName.
comment:
  v: Would expect that a user would not see this information on a search results, and it would only be available when viewing the complete details of the service.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HealthcareService.comment
  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: rim
  map:
    v: .location.role[classCode=SDLOC].desc

id:
  v: HealthcareService.extraDetails
path:
  v: HealthcareService.extraDetails
short:
  v: Extra details about the service that can't be placed in the other fields
definition:
  v: Extra details about the service that can't be placed in the other fields.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HealthcareService.extraDetails
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: markdown
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: .actrelationship[typeCode=COMP.act[classCode=ACT][moodCode=DEF].text

id:
  v: HealthcareService.photo
path:
  v: HealthcareService.photo
short:
  v: Facilitates quick identification of the service
definition:
  v: If there is a photo/symbol associated with this HealthcareService, it may be included here to facilitate quick identification of the service in a list.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HealthcareService.photo
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Attachment
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: rim
  map:
    v: .actrelationship[typeCode=SBJ].observation.value

id:
  v: HealthcareService.telecom
path:
  v: HealthcareService.telecom
short:
  v: Contacts related to the healthcare service
definition:
  v: List of contacts related to this specific healthcare service.
comment:
  v: If this is empty, then refer to the location's contacts.
min:
  v: 0
max:
  v: *
base:
  path:
    v: HealthcareService.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: false
mapping:
  identity:
    v: rim
  map:
    v: .telecom

id:
  v: HealthcareService.telecom.id
path:
  v: HealthcareService.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: HealthcareService.telecom.extension
path:
  v: HealthcareService.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: HealthcareService.telecom.extension:contactPurpose
path:
  v: HealthcareService.telecom.extension
slice name:
  v: contactPurpose
short:
  v: Contact purpose
definition:
  v: Indicates a purpose for which the contact can be reached.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://hl7.org.au/fhir/StructureDefinition/contact-purpose
    link: http://hl7.org.au/fhir/StructureDefinition/contact-purpose
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
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false

id:
  v: HealthcareService.telecom.system
path:
  v: HealthcareService.telecom.system
short:
  v: phone | fax | email | pager | url | sms | other
definition:
  v: Telecommunications form for contact point - what communications system is required to make use of the contact.
min:
  v: 0
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
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: ContactPointSystem
  strength:
    v: required
  description:
    v: Telecommunications form for contact point.
  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: HealthcareService.telecom.value
path:
  v: HealthcareService.telecom.value
short:
  v: The actual contact point details
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: 0
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
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: HealthcareService.telecom.use
path:
  v: HealthcareService.telecom.use
short:
  v: home | work | temp | old | mobile - purpose of this contact point
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
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: ContactPointUse
  strength:
    v: required
  description:
    v: Use of contact point.
  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: HealthcareService.telecom.rank
path:
  v: HealthcareService.telecom.rank
short:
  v: Specify preferred order of use (1 = highest)
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: HealthcareService.telecom.period
path:
  v: HealthcareService.telecom.period
short:
  v: Time period when the contact point was/is in use
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
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: HealthcareService.coverageArea
path:
  v: HealthcareService.coverageArea
short:
  v: Location(s) service is intended for/available to
definition:
  v: The location(s) that this service is available to (not where the service is provided).
comment:
  v: The locations referenced by the coverage area can include both specific locations, including areas, and also conceptual domains too (mode = kind), such as a physical area (tri-state area) and some other attribute (covered by Example Care Organization). These types of Locations are often not managed by any specific organization. This could also include generic locations such as "in-home".
min:
  v: 0
max:
  v: *
base:
  path:
    v: HealthcareService.coverageArea
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-service-coverage-area
    link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-service-coverage-area
  aggregation:
    v: contained
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: rim
  map:
    v: .location.role[classCode=SDLOC].subjectOf.A_SpatialCoordinate

id:
  v: HealthcareService.serviceProvisionCode
path:
  v: HealthcareService.serviceProvisionCode
short:
  v: Condition under which this service is available/offered
definition:
  v: The code that details the condition under which the healthcare service is available/offered.
comment:
  v: The provision means being commissioned by, contractually obliged or financially sourced. Types of costings that may apply to this healthcare service, such if the service may be available for free, some discounts available, or fees apply.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HealthcareService.serviceProvisionCode
  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: false
binding:
  strength:
    v: required
  value set:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/ValueSet/pca-service-provision-code
    link: http://pca.digitalhealth.gov.au/fhir/4.0/ValueSet/pca-service-provision-code
mapping:
  identity:
    v: rim
  map:
    v: .actrelationship[typeCode=PRCN].observation[moodCode=EVN.CRT]

id:
  v: HealthcareService.eligibility
path:
  v: HealthcareService.eligibility
short:
  v: Specific eligibility requirements required to use the service
definition:
  v: Does this service have specific eligibility requirements that need to be met in order to use the service?
min:
  v: 0
max:
  v: *
base:
  path:
    v: HealthcareService.eligibility
  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
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false

id:
  v: HealthcareService.eligibility.id
path:
  v: HealthcareService.eligibility.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: HealthcareService.eligibility.extension
path:
  v: HealthcareService.eligibility.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: HealthcareService.eligibility.modifierExtension
path:
  v: HealthcareService.eligibility.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: HealthcareService.eligibility.code
path:
  v: HealthcareService.eligibility.code
short:
  v: Coded value for the eligibility
definition:
  v: Coded value for the eligibility.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: HealthcareService.eligibility.code
  min:
    v: 0
  max:
    v: 1
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: false
binding:
  strength:
    v: required
  value set:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/ValueSet/pca-eligibility
    link: http://pca.digitalhealth.gov.au/fhir/4.0/ValueSet/pca-eligibility
mapping:
  identity:
    v: rim
  map:
    v: .actrelationship[typeCode=PRCN].observation[moodCode=EVN.CRT]

id:
  v: HealthcareService.eligibility.comment
path:
  v: HealthcareService.eligibility.comment
short:
  v: Describes the eligibility conditions for the service
definition:
  v: Describes the eligibility conditions for the service.
comment:
  v: The description of service eligibility should, in general, not exceed one or two paragraphs. It should be sufficient for a prospective consumer to determine if they are likely to be eligible or not. Where eligibility requirements and conditions are complex, it may simply be noted that an eligibility assessment is required. Where eligibility is determined by an outside source, such as an Act of Parliament, this should be noted, preferably with a reference to a commonly available copy of the source document such as a web page.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HealthcareService.eligibility.comment
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: markdown
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: .actrelationship[typeCode=PRCN].observation[moodCode=EVN.CRT].text

id:
  v: HealthcareService.program
path:
  v: HealthcareService.program
short:
  v: Programs that this service is applicable to
definition:
  v: Programs that this service is applicable to.
comment:
  v: Programs are often defined externally to an Organization, commonly by governments; e.g. Home and Community Care Programs, Homeless Program, ….
min:
  v: 0
max:
  v: *
base:
  path:
    v: HealthcareService.program
  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: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: Program
  strength:
    v: example
  description:
    v: Government or local programs that this service applies to.
  value set:
    v: http://hl7.org/fhir/ValueSet/program
    link: http://hl7.org/fhir/ValueSet/program
mapping:
  identity:
    v: rim
  map:
    v: .actrelationship[typeCode=PERT].observation

id:
  v: HealthcareService.characteristic
path:
  v: HealthcareService.characteristic
short:
  v: Collection of characteristics (attributes)
definition:
  v: Collection of characteristics (attributes).
comment:
  v: These could be such things as is wheelchair accessible.
min:
  v: 0
max:
  v: *
base:
  path:
    v: HealthcareService.characteristic
  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: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: ServiceCharacteristic
  strength:
    v: example
  description:
    v: A custom attribute that could be provided at a service (e.g. Wheelchair accessibiliy).
mapping:
  identity:
    v: rim
  map:
    v: .actrelationship[typeCode=PERT].observation

id:
  v: HealthcareService.communication
path:
  v: HealthcareService.communication
short:
  v: The language that this service is offered in
definition:
  v: Some services are specifically made available in multiple languages, this property permits a directory to declare the languages this is offered in. Typically this is only provided where a service operates in communities with mixed languages used.
comment:
  v: When using this property it indicates that the service is available with this language, it is not derived from the practitioners, and not all are required to use this language, just that this language is available while scheduling.
min:
  v: 0
max:
  v: *
base:
  path:
    v: HealthcareService.communication
  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: false
binding:
  strength:
    v: required
  value set:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/ValueSet/pca-common-languages-australia
    link: http://pca.digitalhealth.gov.au/fhir/4.0/ValueSet/pca-common-languages-australia

id:
  v: HealthcareService.referralMethod
path:
  v: HealthcareService.referralMethod
short:
  v: Ways that the service accepts referrals
definition:
  v: Ways that the service accepts referrals, if this is not provided then it is implied that no referral is required.
min:
  v: 0
max:
  v: *
base:
  path:
    v: HealthcareService.referralMethod
  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: false
binding:
  strength:
    v: required
  value set:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/ValueSet/pca-referral-method
    link: http://pca.digitalhealth.gov.au/fhir/4.0/ValueSet/pca-referral-method
mapping:
  identity:
    v: rim
  map:
    v: .actrelationship[typeCode=PERT].observation

id:
  v: HealthcareService.appointmentRequired
path:
  v: HealthcareService.appointmentRequired
short:
  v: If an appointment is required for access to this service
definition:
  v: Indicates whether or not a prospective consumer will require an appointment for a particular service at a site to be provided by the Organization. Indicates if an appointment is required for access to this service.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HealthcareService.appointmentRequired
  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
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .actrelationship[typeCode=PERT].observation

id:
  v: HealthcareService.availableTime
path:
  v: HealthcareService.availableTime
short:
  v: Times the Service Site is available
definition:
  v: A collection of times that the Service Site is available.
comment:
  v: More detailed availability information may be provided in associated Schedule/Slot resources.
min:
  v: 0
max:
  v: *
base:
  path:
    v: HealthcareService.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
constraint:
  key:
    v: inv-pca-8
  severity:
    v: error
  human:
    v: If an availableTime uses the availableTimeApplicability extension, then daysOfWeek shall not be present
  expression:
    v: (modifierExtension.where(url='http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-available-time-applicability').exists()) implies (daysOfWeek.exists().not())
  source:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
    link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
constraint:
  key:
    v: inv-pca-9
  severity:
    v: error
  human:
    v: If an availableTime does not use the availableTimeApplicability extension, then daysOfWeek shall be present
  expression:
    v: (modifierExtension.where(url='http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-available-time-applicability').exists().not()) implies (daysOfWeek.exists())
  source:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
    link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime

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

id:
  v: HealthcareService.availableTime.modifierExtension:availableTimeApplicability
path:
  v: HealthcareService.availableTime.modifierExtension
slice name:
  v: availableTimeApplicability
short:
  v: Indicates the period and reason that this instance of availableTime applies
definition:
  v: Used to indicate a change in the pattern of availability during a particular period and the reason for the change.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-available-time-applicability
    link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-available-time-applicability
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
must support:
  v: true
is modifier:
  v: true
is modifier reason:
  v: This extension limits the period during which HealthcareService.availableTime applies.

id:
  v: HealthcareService.availableTime.daysOfWeek
path:
  v: HealthcareService.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: HealthcareService.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
must support:
  v: true
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: HealthcareService.availableTime.allDay
path:
  v: HealthcareService.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: HealthcareService.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
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime

id:
  v: HealthcareService.availableTime.availableStartTime
path:
  v: HealthcareService.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 time zone is expected to be for where this HealthcareService is provided at.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HealthcareService.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
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime

id:
  v: HealthcareService.availableTime.availableStartTime.id
path:
  v: HealthcareService.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: HealthcareService.availableTime.availableStartTime.extension
path:
  v: HealthcareService.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: HealthcareService.availableTime.availableStartTime.extension:timeZone
path:
  v: HealthcareService.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
must support:
  v: true
is modifier:
  v: false

id:
  v: HealthcareService.availableTime.availableStartTime.value
path:
  v: HealthcareService.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: HealthcareService.availableTime.availableEndTime
path:
  v: HealthcareService.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 time zone is expected to be for where this HealthcareService is provided at.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HealthcareService.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
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime

id:
  v: HealthcareService.availableTime.availableEndTime.id
path:
  v: HealthcareService.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: HealthcareService.availableTime.availableEndTime.extension
path:
  v: HealthcareService.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: HealthcareService.availableTime.availableEndTime.extension:timeZone
path:
  v: HealthcareService.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
must support:
  v: true
is modifier:
  v: false

id:
  v: HealthcareService.availableTime.availableEndTime.value
path:
  v: HealthcareService.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: HealthcareService.notAvailable
path:
  v: HealthcareService.notAvailable
short:
  v: Not available during this time due to provided reason
definition:
  v: The HealthcareService is not available during this period of time due to the provided reason.
min:
  v: 0
max:
  v: *
base:
  path:
    v: HealthcareService.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
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime

id:
  v: HealthcareService.notAvailable.id
path:
  v: HealthcareService.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: HealthcareService.notAvailable.extension
path:
  v: HealthcareService.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: HealthcareService.notAvailable.modifierExtension
path:
  v: HealthcareService.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: HealthcareService.notAvailable.description
path:
  v: HealthcareService.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: HealthcareService.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
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: HealthcareService.notAvailable.during
path:
  v: HealthcareService.notAvailable.during
short:
  v: Date range that the service is not available - can be open-ended if service is closing
definition:
  v: Date range that the service is not available - can be open-ended if service is closing.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: HealthcareService.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
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime

id:
  v: HealthcareService.availabilityExceptions
path:
  v: HealthcareService.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: HealthcareService.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: HealthcareService.endpoint
path:
  v: HealthcareService.endpoint
short:
  v: Technical endpoints providing access to electronic services operated for the healthcare service
definition:
  v: Technical endpoints providing access to services operated for the specific healthcare services defined at this resource.
min:
  v: 0
max:
  v: *
base:
  path:
    v: HealthcareService.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: HealthcareService
  path:
    v: HealthcareService
  short:
    v: A service offered by a publisher
  definition:
    v: A service offered at a location by a publisher.
  constraint:
    key:
      v: inv-pca-1
    severity:
      v: error
    human:
      v: telecom use shall not be 'home'
    expression:
      v: telecom.where(use = 'home').empty()
    source:
      v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
      link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
  constraint:
    key:
      v: inv-pca-2
    severity:
      v: error
    human:
      v: providedBy shall be a relative reference to an Organization
    expression:
      v: providedBy.reference.startsWith('Organization/')
    source:
      v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
      link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
  constraint:
    key:
      v: inv-pca-3
    severity:
      v: error
    human:
      v: location shall be a relative reference to a Location
    expression:
      v: location.reference.startsWith('Location/')
    source:
      v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
      link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
  constraint:
    key:
      v: inv-pca-4
    severity:
      v: error
    human:
      v: If eligibility contains 'coverage-restrictedResidents', then coverageArea shall be present
    expression:
      v: eligibility.where(code.coding.code='coverage-restrictedResidents').exists() implies coverageArea.exists()
    source:
      v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
      link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
  constraint:
    key:
      v: inv-pca-5
    severity:
      v: error
    human:
      v: exactly one type shall be preferred
    expression:
      v: type.extension.where(url='http://hl7.org/fhir/StructureDefinition/iso21090-preferred' and value=true).count()=1
    source:
      v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
      link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
  constraint:
    key:
      v: inv-pca-6
    severity:
      v: error
    human:
      v: If present, au-timezone shall be the same as all other au-timezone codes that are present within all availableTime elements
    expression:
      v: (availableTime.availableStartTime.extension.where(url='http://hl7.org.au/fhir/StructureDefinition/au-timezone').exists() or availableTime.availableEndTime.extension.where(url='http://hl7.org.au/fhir/StructureDefinition/au-timezone').exists()) implies (((availableTime.availableStartTime.extension.where(url='http://hl7.org.au/fhir/StructureDefinition/au-timezone')) | (availableTime.availableEndTime.extension.where(url='http://hl7.org.au/fhir/StructureDefinition/au-timezone'))).distinct().count() = 1)
    source:
      v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
      link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
  constraint:
    key:
      v: inv-pca-7
    severity:
      v: error
    human:
      v: If one or more availableTime elements using the availableTimeApplicability extension are present, then at least one availableTime (without the availableTimeApplicability extension) shall be present
    expression:
      v: (availableTime.modifierExtension.where(url='http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-available-time-applicability').exists()) implies (availableTime.count() > availableTime.modifierExtension.where(url='http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-available-time-applicability').count())
    source:
      v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
      link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
element:
  id:
    v: HealthcareService.contained
  path:
    v: HealthcareService.contained
  short:
    v: Contained inline pca-service-coverage-area resource
  type:
    code:
      v: Resource
    profile:
      v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-service-coverage-area
      link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-service-coverage-area
  must support:
    v: true
element:
  id:
    v: HealthcareService.extension:pca-postal-address
  path:
    v: HealthcareService.extension
  slice name:
    v: pca-postal-address
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Extension
    profile:
      v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-postal-address
      link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-postal-address
  must support:
    v: true
element:
  id:
    v: HealthcareService.extension:pca-key-contact
  path:
    v: HealthcareService.extension
  slice name:
    v: pca-key-contact
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: Extension
    profile:
      v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-key-contact
      link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-key-contact
  must support:
    v: true
element:
  id:
    v: HealthcareService.extension:pca-referral-information-for-consumer
  path:
    v: HealthcareService.extension
  slice name:
    v: pca-referral-information-for-consumer
  max:
    v: 1
  type:
    code:
      v: Extension
    profile:
      v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-referral-information-for-consumer
      link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-referral-information-for-consumer
  must support:
    v: true
element:
  id:
    v: HealthcareService.extension:pca-referral-information-for-provider
  path:
    v: HealthcareService.extension
  slice name:
    v: pca-referral-information-for-provider
  max:
    v: 1
  type:
    code:
      v: Extension
    profile:
      v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-referral-information-for-provider
      link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-referral-information-for-provider
  must support:
    v: true
element:
  id:
    v: HealthcareService.extension:pca-new-patient-availability
  path:
    v: HealthcareService.extension
  slice name:
    v: pca-new-patient-availability
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: Extension
    profile:
      v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-new-patient-availability
      link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-new-patient-availability
  must support:
    v: true
element:
  id:
    v: HealthcareService.extension:pca-active-period

v: HealthcareService.extension

v: pca-active-period

v: 0

v: 1

code:
  v: Extension
profile:
  v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-active-period
  link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-active-period

v: true

id:
  v: HealthcareService.extension:pca-bank-account
path:
  v: HealthcareService.extension
slice name:
  v: pca-bank-account
min:
  v: 0
max:
  v: *
type:
  code:
    v: Extension
  profile:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-bank-account
    link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-bank-account
must support:
  v: true

id:
  v: HealthcareService.extension:pca-iar-levels-of-care
path:
  v: HealthcareService.extension
slice name:
  v: pca-iar-levels-of-care
min:
  v: 0
max:
  v: *
type:
  code:
    v: Extension
  profile:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-iar-levels-of-care
    link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-iar-levels-of-care
must support:
  v: true

id:
  v: HealthcareService.identifier
path:
  v: HealthcareService.identifier
slicing:
  discriminator:
    type:
      v: value
    path:
      v: system
  rules:
    v: open
min:
  v: 1
must support:
  v: true

id:
  v: HealthcareService.identifier:pca-hsi
path:
  v: HealthcareService.identifier
slice name:
  v: pca-hsi
short:
  v: PCA Healthcare Service Identifier (PCA-HSI) issued by the PCA service
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Identifier
  profile:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service-identifier
    link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service-identifier
must support:
  v: true

id:
  v: HealthcareService.active
path:
  v: HealthcareService.active
min:
  v: 1
must support:
  v: true

id:
  v: HealthcareService.providedBy
path:
  v: HealthcareService.providedBy
min:
  v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-organization
    link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-organization
must support:
  v: true

id:
  v: HealthcareService.type
path:
  v: HealthcareService.type
min:
  v: 1
must support:
  v: true
binding:
  strength:
    v: required
  value set:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/ValueSet/pca-healthcare-service-type
    link: http://pca.digitalhealth.gov.au/fhir/4.0/ValueSet/pca-healthcare-service-type

id:
  v: HealthcareService.type.extension:preferred
path:
  v: HealthcareService.type.extension
slice name:
  v: preferred
short:
  v: Whether this is the primary service type for this HealthcareService
definition:
  v: Whether this is the primary service type for this HealthcareService.
max:
  v: 1
type:
  code:
    v: Extension
  profile:
    v: http://hl7.org/fhir/StructureDefinition/iso21090-preferred
    link: http://hl7.org/fhir/StructureDefinition/iso21090-preferred
must support:
  v: true

id:
  v: HealthcareService.location
path:
  v: HealthcareService.location
short:
  v: Location where service is provided
definition:
  v: The location where this healthcare service is provided.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-location
    link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-location
must support:
  v: true

id:
  v: HealthcareService.name
path:
  v: HealthcareService.name
min:
  v: 1
must support:
  v: true

id:
  v: HealthcareService.comment
path:
  v: HealthcareService.comment
must support:
  v: true

id:
  v: HealthcareService.telecom
path:
  v: HealthcareService.telecom
must support:
  v: true

id:
  v: HealthcareService.telecom.extension:contactPurpose
path:
  v: HealthcareService.telecom.extension
slice name:
  v: contactPurpose
type:
  code:
    v: Extension
  profile:
    v: http://hl7.org.au/fhir/StructureDefinition/contact-purpose
    link: http://hl7.org.au/fhir/StructureDefinition/contact-purpose
must support:
  v: true

id:
  v: HealthcareService.coverageArea
path:
  v: HealthcareService.coverageArea
type:
  code:
    v: Reference
  target profile:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-service-coverage-area
    link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-service-coverage-area
  aggregation:
    v: contained
must support:
  v: true

id:
  v: HealthcareService.serviceProvisionCode
path:
  v: HealthcareService.serviceProvisionCode
short:
  v: Condition under which this service is available/offered
definition:
  v: The code that details the condition under which the healthcare service is available/offered.
min:
  v: 1
max:
  v: 1
must support:
  v: true
binding:
  strength:
    v: required
  value set:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/ValueSet/pca-service-provision-code
    link: http://pca.digitalhealth.gov.au/fhir/4.0/ValueSet/pca-service-provision-code

id:
  v: HealthcareService.eligibility
path:
  v: HealthcareService.eligibility
must support:
  v: true

id:
  v: HealthcareService.eligibility.code
path:
  v: HealthcareService.eligibility.code
min:
  v: 1
must support:
  v: true
binding:
  strength:
    v: required
  value set:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/ValueSet/pca-eligibility
    link: http://pca.digitalhealth.gov.au/fhir/4.0/ValueSet/pca-eligibility

id:
  v: HealthcareService.communication
path:
  v: HealthcareService.communication
must support:
  v: true
binding:
  strength:
    v: required
  value set:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/ValueSet/pca-common-languages-australia
    link: http://pca.digitalhealth.gov.au/fhir/4.0/ValueSet/pca-common-languages-australia

id:
  v: HealthcareService.referralMethod
path:
  v: HealthcareService.referralMethod
must support:
  v: true
binding:
  strength:
    v: required
  value set:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/ValueSet/pca-referral-method
    link: http://pca.digitalhealth.gov.au/fhir/4.0/ValueSet/pca-referral-method

id:
  v: HealthcareService.appointmentRequired
path:
  v: HealthcareService.appointmentRequired
must support:
  v: true

id:
  v: HealthcareService.availableTime
path:
  v: HealthcareService.availableTime
constraint:
  key:
    v: inv-pca-8
  severity:
    v: error
  human:
    v: If an availableTime uses the availableTimeApplicability extension, then daysOfWeek shall not be present
  expression:
    v: (modifierExtension.where(url='http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-available-time-applicability').exists()) implies (daysOfWeek.exists().not())
  source:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
    link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
constraint:
  key:
    v: inv-pca-9
  severity:
    v: error
  human:
    v: If an availableTime does not use the availableTimeApplicability extension, then daysOfWeek shall be present
  expression:
    v: (modifierExtension.where(url='http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-available-time-applicability').exists().not()) implies (daysOfWeek.exists())
  source:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
    link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-healthcare-service
must support:
  v: true

id:
  v: HealthcareService.availableTime.modifierExtension:availableTimeApplicability
path:
  v: HealthcareService.availableTime.modifierExtension
slice name:
  v: availableTimeApplicability
short:
  v: Indicates the period and reason that this instance of availableTime applies
definition:
  v: Used to indicate a change in the pattern of availability during a particular period and the reason for the change.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Extension
  profile:
    v: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-available-time-applicability
    link: http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-available-time-applicability
must support:
  v: true

id:
  v: HealthcareService.availableTime.daysOfWeek
path:
  v: HealthcareService.availableTime.daysOfWeek
must support:
  v: true

id:
  v: HealthcareService.availableTime.allDay
path:
  v: HealthcareService.availableTime.allDay
must support:
  v: true

id:
  v: HealthcareService.availableTime.availableStartTime
path:
  v: HealthcareService.availableTime.availableStartTime
must support:
  v: true

id:
  v: HealthcareService.availableTime.availableStartTime.extension:timeZone
path:
  v: HealthcareService.availableTime.availableStartTime.extension
slice name:
  v: timeZone
must support:
  v: true

id:
  v: HealthcareService.availableTime.availableEndTime
path:
  v: HealthcareService.availableTime.availableEndTime
must support:
  v: true

id:
  v: HealthcareService.availableTime.availableEndTime.extension:timeZone
path:
  v: HealthcareService.availableTime.availableEndTime.extension
slice name:
  v: timeZone
must support:
  v: true

id:
  v: HealthcareService.notAvailable
path:
  v: HealthcareService.notAvailable
must support:
  v: true

id:
  v: HealthcareService.notAvailable.description
path:
  v: HealthcareService.notAvailable.description
must support:
  v: true

id:
  v: HealthcareService.notAvailable.during
path:
  v: HealthcareService.notAvailable.during
short:
  v: Date range that the service is not available - can be open-ended if service is closing
definition:
  v: Date range that the service is not available - can be open-ended if service is closing.
must support:
  v: true