description: null package_name: dk.ehealth.sundhed.fhir.ig.core derivation: constraint name: ehealth-group-appointment type: Appointment elements: extension: index: 0 slicing: rules: open ordered: false discriminator: - {path: url, type: value} min: 1 slices: groupId: match: {url: null} schema: {type: Extension, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-group-id', index: 2} min: 0 max: 1 creator: match: {url: null} schema: {type: Extension, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-creator', index: 8} min: 0 max: 1 registrationDeadline: match: {url: null} schema: {type: Extension, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-registration-deadline', index: 10} min: 0 max: 1 legalBasis: match: {url: null} schema: type: Extension constraint: governance-1: {human: When extension is used a Episode of Care MUST be referenced, source: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-group-appointment', severity: error, expression: '%resource.supportingInformation.reference.contains(''EpisodeOfCare/'')'} responsible-2: {human: Both performing organization and responsible organization must be populated when legal basis is used, source: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-group-appointment', severity: error, expression: '%resource.extension.where(url = ''http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-performing-organization'').exists() and %resource.extension.where(url = ''http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-responsible-organization'').exists()'} url: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-legalBasis index: 3 min: 0 max: 1 intendedAudience: match: {url: null} schema: {type: Extension, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-intendedAudience', index: 9} min: 0 responsible: match: {url: null} schema: {type: Extension, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-responsible', index: 1} min: 1 max: 1 releasableResource: match: {url: null} schema: {type: Extension, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-releasableResource', index: 4} min: 0 max: 1 responsibleOrganization: match: {url: null} schema: {type: Extension, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-responsible-organization', index: 5} min: 0 max: 1 performingOrganization: match: {url: null} schema: {type: Extension, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-performing-organization', index: 7} min: 0 max: 1 performer: match: {url: null} schema: {type: Extension, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-performer', index: 6} min: 0 max: 1 serviceType: index: 11 slicing: rules: open discriminator: - {path: coding.code, type: value} min: 1 slices: appointmentType: match: coding: {code: group} schema: _required: true index: 12 elements: coding: binding: {strength: required, valueSet: 'http://ehealth.sundhed.dk/vs/appointment-servicetype'} index: 13 elements: code: pattern: {type: Code, value: group} index: 14 required: [code] appointmentType: binding: {strength: required, valueSet: 'http://ehealth.sundhed.dk/vs/appointmenttype-codes'} index: 15 reasonCode: binding: {strength: required, valueSet: 'http://ehealth.sundhed.dk/vs/appointment-reason'} index: 16 supportingInformation: type: Reference refers: ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan', 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare'] index: 17 participant: extensions: careteam: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-ext-careteam', min: 0, max: 1, type: Extension, index: 19} assigningCareteam: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-assigning-careteam', min: 1, max: 1, type: Extension, index: 20} elements: extension: index: 18 slicing: rules: open ordered: false discriminator: - {path: url, type: value} min: 1 slices: careteam: match: {url: null} schema: {type: Extension, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-ext-careteam', index: 19} min: 0 max: 1 assigningCareteam: match: {url: null} schema: {type: Extension, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-assigning-careteam', index: 20} min: 1 max: 1 actor: type: Reference refers: ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-patient', 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner', 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-relatedperson', 'http://hl7.org/fhir/StructureDefinition/Location'] index: 21 required: [extension] package_version: 3.5.1 extensions: groupId: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-group-id', min: 0, max: 1, type: Extension, index: 2} creator: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-creator', min: 0, max: 1, type: Extension, index: 8} registrationDeadline: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-registration-deadline', min: 0, max: 1, type: Extension, index: 10} legalBasis: url: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-legalBasis min: 0 max: 1 type: Extension constraint: governance-1: {human: When extension is used a Episode of Care MUST be referenced, source: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-group-appointment', severity: error, expression: '%resource.supportingInformation.reference.contains(''EpisodeOfCare/'')'} responsible-2: {human: Both performing organization and responsible organization must be populated when legal basis is used, source: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-group-appointment', severity: error, expression: '%resource.extension.where(url = ''http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-performing-organization'').exists() and %resource.extension.where(url = ''http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-responsible-organization'').exists()'} index: 3 intendedAudience: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-intendedAudience', min: 0, type: Extension, index: 9} responsible: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-responsible', min: 1, max: 1, type: Extension, index: 1} releasableResource: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-releasableResource', min: 0, max: 1, type: Extension, index: 4} responsibleOrganization: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-responsible-organization', min: 0, max: 1, type: Extension, index: 5} performingOrganization: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-performing-organization', min: 0, max: 1, type: Extension, index: 7} performer: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-performer', min: 0, max: 1, type: Extension, index: 6} class: profile kind: resource url: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-group-appointment base: http://hl7.org/fhir/StructureDefinition/Appointment version: 3.5.1 required: [serviceType, extension, appointmentType]