description: null package_name: dk.ehealth.sundhed.fhir.ig.core derivation: constraint name: ehealth-message type: Communication elements: category: index: 13 slicing: rules: open discriminator: - {path: coding.system, type: value} min: 1 slices: DkTmCategory: match: coding: {system: 'http://ehealth.sundhed.dk/cs/message-category'} schema: _required: true index: 14 elements: coding: elements: system: pattern: {type: Uri, value: 'http://ehealth.sundhed.dk/cs/message-category'} index: 15 code: binding: {strength: required, valueSet: 'http://ehealth.sundhed.dk/vs/message-category'} index: 16 required: [system] payload: index: 25 elements: content: choices: [] index: 27 slicing: rules: closed discriminator: - {path: $this, type: type} min: null slices: contentString: match: {} schema: choices: [contentString] _required: true index: 29 min: 1 max: 1 contentString: type: string choiceOf: content index: 30 slicing: slices: contentString: match: {} schema: {type: string, choiceOf: content, _required: true, index: 30} min: 1 max: 1 required: [contentString] medium: index: 17 slicing: rules: open discriminator: - {path: coding.system, type: value} min: null slices: DkTmMedium: match: coding: {system: 'http://ehealth.sundhed.dk/cs/message-medium'} schema: index: 18 elements: coding: elements: system: pattern: {type: Uri, value: 'http://ehealth.sundhed.dk/cs/message-medium'} index: 19 code: binding: {strength: required, valueSet: 'http://ehealth.sundhed.dk/vs/message-medium'} index: 20 required: [system] recipient: type: Reference refers: ['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner'] index: 21 reasonCode: binding: {strength: required, valueSet: 'http://ehealth.sundhed.dk/vs/message-reasonCode'} index: 23 note: elements: author: choices: [authorString] index: 37 slicing: slices: authorString: match: {} schema: choices: [authorString] index: 37 min: 0 max: 1 authorReference: type: Reference choiceOf: author 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'] index: 35 slicing: slices: authorReference: match: {} schema: type: Reference choiceOf: author 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'] index: 35 min: 0 max: 1 authorString: type: string choiceOf: author index: 38 slicing: slices: authorString: match: {} schema: {type: string, choiceOf: author, index: 38} min: 0 max: 1 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: 10} min: 0 max: 1 threadId: match: {url: null} schema: {type: Extension, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-thread-id', index: 5} min: 0 max: 1 onBehalfOf: match: {url: null} schema: {type: Extension, mustSupport: true, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-on-behalf-of', index: 11} min: 0 max: 1 restrictionCategory: match: {url: null} schema: {type: Extension, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-restriction-category', index: 4} min: 0 episodeOfCare: match: {url: null} schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare', index: 1} min: 0 max: 1 administrativeStatus: match: {url: null} schema: {type: Extension, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-administrative-status', index: 7} min: 1 max: 1 recipientCareTeam: match: {url: null} schema: {type: Extension, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-communication-recipientCareTeam', index: 2} min: 0 max: 1 title: match: {url: null} schema: {type: Extension, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-title', index: 8} min: 0 max: 1 priority: match: {url: null} schema: {type: Extension, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-priority', index: 9} min: 0 max: 1 period: match: {url: null} schema: {type: Extension, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-period', index: 6} min: 0 senderCareTeam: match: {url: null} schema: {type: Extension, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-communication-senderCareTeam', index: 3} min: 0 max: 1 sender: type: Reference refers: ['http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner'] index: 22 partOf: type: Reference refers: ['http://hl7.org/fhir/StructureDefinition/CarePlan'] index: 12 reasonReference: type: Reference refers: ['http://hl7.org/fhir/StructureDefinition/Condition', 'http://hl7.org/fhir/StructureDefinition/Observation'] index: 24 package_version: 3.5.1 extensions: groupId: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-group-id', min: 0, max: 1, type: Extension, index: 10} threadId: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-thread-id', min: 0, max: 1, type: Extension, index: 5} onBehalfOf: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-on-behalf-of', min: 0, max: 1, type: Extension, mustSupport: true, index: 11} restrictionCategory: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-restriction-category', min: 0, type: Extension, index: 4} episodeOfCare: {url: 'http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare', min: 0, max: 1, type: Extension, index: 1} administrativeStatus: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-administrative-status', min: 1, max: 1, type: Extension, index: 7} recipientCareTeam: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-communication-recipientCareTeam', min: 0, max: 1, type: Extension, index: 2} title: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-title', min: 0, max: 1, type: Extension, index: 8} priority: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-priority', min: 0, max: 1, type: Extension, index: 9} period: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-period', min: 0, type: Extension, index: 6} senderCareTeam: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-communication-senderCareTeam', min: 0, max: 1, type: Extension, index: 3} class: profile kind: resource url: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-message base: http://hl7.org/fhir/StructureDefinition/Communication version: 3.5.1 required: [extension, category]