description: null package_name: uk.nhsdigital.r4.test derivation: constraint name: NHSDigitalAppointment type: Appointment elements: serviceCategory: index: 6 elements: coding: elements: system: {index: 7} code: {index: 8} required: [code, system] slicing: rules: open discriminator: - {path: coding.system, type: value} min: null slices: NHSDataDictionaryTreatmentFunction: match: coding: {system: 'https://fhir.nhs.uk/CodeSystem/NHSDataModelAndDictionary-treatment-function'} schema: index: 9 elements: coding: binding: {strength: required, valueSet: 'https://fhir.nhs.uk/ValueSet/NHSDigital-CareSettingType'} index: 10 elements: system: pattern: {type: uri, value: 'https://fhir.nhs.uk/CodeSystem/NHSDataModelAndDictionary-treatment-function'} type: uri index: 11 eRSClinicType: match: coding: {system: 'https://fhir.nhs.uk/CodeSystem/NHSDigital-ClinicType'} schema: index: 12 elements: coding: binding: {strength: required, valueSet: 'https://fhir.nhs.uk/ValueSet/NHSDigital-eRS-ClinicType'} index: 13 elements: system: pattern: {type: uri, value: 'https://fhir.nhs.uk/CodeSystem/NHSDigital-ClinicType'} type: uri index: 14 slot: mustSupport: true index: 20 slicing: rules: open discriminator: - {path: identifier.system, type: value} min: null slices: alternativeSlot: match: identifier: {system: 'https://fhir.nhs.uk/CodeSystem/unique-slot-reference-number'} schema: index: 21 elements: identifier: elements: system: pattern: {type: uri, value: 'https://fhir.nhs.uk/CodeSystem/unique-slot-reference-number'} type: uri index: 22 specialty: binding: {strength: required, valueSet: 'https://fhir.nhs.uk/ValueSet/NHSDataModelAndDictionary-clinical-specialty'} index: 16 start: {short: Appointment Start Date Time, mustSupport: true, index: 18} reasonCode: {mustSupport: true, index: 17} participant: mustSupport: true index: 27 elements: actor: type: Reference constraint: participant: {human: An identifier reference or resource reference must be provided, source: 'https://fhir.nhs.uk/StructureDefinition/NHSDigital-Appointment', severity: error, expression: (reference.exists() or identifier.exists())} mustSupport: true refers: ['https://fhir.nhs.uk/StructureDefinition/NHSDigital-HealthcareService', 'https://fhir.nhs.uk/StructureDefinition/NHSDigital-Location', 'https://fhir.nhs.uk/StructureDefinition/NHSDigital-Patient', 'https://fhir.nhs.uk/StructureDefinition/NHSDigital-Practitioner', 'https://fhir.nhs.uk/StructureDefinition/NHSDigital-PractitionerRole-Minimal'] index: 28 elements: identifier: elements: system: {index: 29} value: {index: 30} required: [system, value] required: [actor] serviceType: binding: {strength: required, valueSet: 'https://fhir.nhs.uk/ValueSet/NHSDigital-CareSettingType'} index: 15 extension: index: 0 slicing: rules: open discriminator: - {path: url, type: value} min: 0 slices: requester: match: {url: null} schema: {type: Extension, url: 'https://fhir.nhs.uk/StructureDefinition/Extension-Provenance-agent', index: 1} min: 0 max: 1 status: {mustSupport: true, index: 5} identifier: mustSupport: true index: 2 elements: system: {index: 3} value: {index: 4} required: [system, value] basedOn: type: Reference mustSupport: true refers: ['https://fhir.nhs.uk/StructureDefinition/NHSDigital-ServiceRequest'] index: 23 elements: identifier: mustSupport: true index: 24 elements: system: {index: 25} value: {index: 26} required: [system, value] end: {short: Appointment End Date Time, mustSupport: true, index: 19} package_version: 2.16.0-prerelease extensions: requester: {url: 'https://fhir.nhs.uk/StructureDefinition/Extension-Provenance-agent', min: 0, max: 1, type: Extension, index: 1} class: profile kind: resource url: https://fhir.nhs.uk/StructureDefinition/NHSDigital-Appointment base: https://fhir.hl7.org.uk/StructureDefinition/UKCore-Appointment version: null required: [end, start]