PackagesCanonicalsLogsProblems
    Packages
    uk.nhsdigital.r4@2.7.0
    https://fhir.nhs.uk/StructureDefinition/NHSDigital-HealthcareService
description: null
package_name: uk.nhsdigital.r4
derivation: constraint
name: NHSDigitalHealthcareService
type: HealthcareService
elements:
  availableTime: {mustSupport: true, index: 38}
  specialty:
    mustSupport: true
    index: 17
    elements:
      coding:
        index: 18
        elements:
          system: {index: 19}
          code: {index: 20}
        required: [system, code]
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: null
          slices:
            NHSDataDictionarySpecialty:
              match: {system: 'https://fhir.nhs.uk/CodeSystem/NHSDataModelAndDictionary-clinical-specialty'}
              schema:
                binding: {strength: required, valueSet: 'https://fhir.nhs.uk/ValueSet/NHSDataModelAndDictionary-clinical-specialty'}
                mustSupport: true
                index: 21
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://fhir.nhs.uk/CodeSystem/NHSDataModelAndDictionary-clinical-specialty'}
                    index: 22
            SNOMEDPracticeCode:
              match: {system: 'http://snomed.info/sct'}
              schema:
                binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/c80-practice-codes'}
                mustSupport: true
                index: 23
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                    index: 24
            eRSSpecialty:
              match: {system: 'https://fhir.nhs.uk/CodeSystem/eRS-Specialty'}
              schema:
                binding: {strength: preferred, valueSet: 'https://fhir.nhs.uk/ValueSet/NHSDigital-eRS-Specialty'}
                mustSupport: true
                index: 25
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://fhir.nhs.uk/CodeSystem/eRS-Specialty'}
                    index: 26
  name: {mustSupport: true, index: 30}
  providedBy:
    type: Reference
    mustSupport: true
    refers: ['https://fhir.nhs.uk/StructureDefinition/NHSDigital-Organization']
    index: 7
    elements:
      identifier:
        index: 8
        elements:
          system:
            pattern: {type: Uri, value: 'https://fhir.nhs.uk/Id/ods-organization-code'}
            index: 9
          value: {index: 10}
        required: [value, system]
    required: [identifier]
  type:
    mustSupport: true
    index: 11
    elements:
      coding:
        index: 12
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: null
          slices:
            UKCoreCareSettingType:
              match: {system: 'http://snomed.info/sct'}
              schema:
                binding: {strength: preferred, valueSet: 'https://fhir.hl7.org.uk/ValueSet/UKCore-CareSettingType'}
                mustSupport: true
                index: 13
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                    index: 14
            eRSAppointmentType:
              match: {system: 'https://fhir.nhs.uk/CodeSystem/eRS-AppointmentType'}
              schema:
                short: e-RS Appointment Type
                mustSupport: true
                index: 15
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://fhir.nhs.uk/CodeSystem/eRS-AppointmentType'}
                    index: 16
  identifier:
    mustSupport: true
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: system, type: value}
      min: null
      slices:
        ersServiceId:
          match: {system: 'https://fhir.nhs.uk/Id/ers-service'}
          schema:
            mustSupport: true
            index: 1
            elements:
              system:
                pattern: {type: Uri, value: 'https://fhir.nhs.uk/Id/ers-service'}
                index: 2
              value: {index: 3}
            required: [value, system]
        dosServiceId:
          match: {system: 'http://fhir.nhs.uk/Id/dos-service-id'}
          schema:
            mustSupport: true
            index: 4
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.nhs.uk/Id/dos-service-id'}
                index: 5
              value: {index: 6}
            required: [value, system]
  serviceProvisionCode:
    mustSupport: true
    index: 34
    elements:
      coding:
        index: 35
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: null
          slices:
            eRSClinicType:
              match: {system: 'https://fhir.nhs.uk/CodeSystem/NHSDigital-ClinicType'}
              schema:
                binding: {strength: required, valueSet: 'https://fhir.nhs.uk/ValueSet/NHSDigital-eRS-ClinicType'}
                mustSupport: true
                index: 36
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://fhir.nhs.uk/CodeSystem/NHSDigital-ClinicType'}
                    index: 37
  telecom:
    mustSupport: true
    index: 31
    elements:
      value: {index: 32}
      use: {index: 33}
    required: [value, use]
  location:
    type: Reference
    constraint:
      nhsd-8: {human: location - An identifier reference or resource reference must be provided, severity: error, expression: (reference.exists() or identifier.exists())}
    mustSupport: true
    refers: ['https://fhir.nhs.uk/StructureDefinition/NHSDigital-Location']
    index: 27
    elements:
      identifier:
        elements:
          system:
            pattern: {type: Uri, value: 'https://fhir.nhs.uk/Id/ods-site-code'}
            index: 28
          value: {index: 29}
        required: [value, system]
  endpoint:
    mustSupport: true
    index: 39
    elements:
      identifier:
        index: 40
        elements:
          system: {index: 41}
          value: {index: 42}
        required: [value, system]
    required: [identifier]
    slicing:
      rules: open
      discriminator:
      - {path: identifier.system, type: value}
      min: null
      slices:
        nhsMhsPartyKey:
          match:
            identifier: {system: 'https://fhir.nhs.uk/Id/nhsMhsPartyKey'}
          schema:
            index: 43
            elements:
              identifier:
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://fhir.nhs.uk/Id/nhsMhsPartyKey'}
                    index: 44
        nhsSpineASID:
          match:
            identifier: {system: 'https://fhir.nhs.uk/Id/nhsSpineASID'}
          schema:
            index: 45
            elements:
              identifier:
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://fhir.nhs.uk/Id/nhsSpineASID'}
                    index: 46
package_version: 2.7.0
class: profile
kind: resource
url: https://fhir.nhs.uk/StructureDefinition/NHSDigital-HealthcareService
base: https://fhir.hl7.org.uk/StructureDefinition/UKCore-HealthcareService
version: null
required: [name]