description: Care related communication between two or more parties in Danish healthcare package_name: medcom.fhir.dk.carecommunication derivation: constraint name: MedComCareCommunication type: Communication elements: category: short: 'The category (Danish: kategori) describes the overall content of the message.' binding: {strength: required, valueSet: 'http://medcomfhir.dk/ig/terminology/ValueSet/medcom-careCommunication-categories|1.8.1'} mustSupport: true index: 9 elements: coding: mustSupport: true index: 10 elements: system: {mustSupport: true, index: 11} code: {mustSupport: true, index: 12} required: [system, code] required: [coding] payload: short: Each payload corresponds to a message segment with a message text or an attachment. At least one payload with a message text shall be included. index: 19 extensions: date: {url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-datetime-extension|3.0.0', min: 0, max: 1, type: Extension, index: 21} author: {url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-practitioner-extension|3.0.0', min: 0, max: 1, type: Extension, index: 22} authorContact: {url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-contact-extension|3.0.0', min: 0, max: 1, type: Extension, index: 23} identifier: {url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-identifier-extension|3.0.0', min: 0, max: 1, type: Extension, index: 24} elements: extension: index: 20 slicing: rules: open ordered: false discriminator: - {path: url, type: value} min: null slices: date: match: {url: null} schema: {type: Extension, url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-datetime-extension|3.0.0', index: 21} min: 0 max: 1 author: match: {url: null} schema: {type: Extension, url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-practitioner-extension|3.0.0', index: 22} min: 0 max: 1 authorContact: match: {url: null} schema: {type: Extension, url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-contact-extension|3.0.0', index: 23} min: 0 max: 1 identifier: match: {url: null} schema: {type: Extension, url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-identifier-extension|3.0.0', index: 24} min: 0 max: 1 slicing: rules: open discriminator: - {path: $this.content, type: type} min: 1 slices: string: match: {} schema: mustSupport: true array: true min: 1 _required: true index: 25 extensions: date: {url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-datetime-extension|3.0.0', min: 1, max: 1, type: Extension, mustSupport: true, index: 27} author: {url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-practitioner-extension|3.0.0', min: 1, max: 1, type: Extension, mustSupport: true, index: 28} authorContact: {url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-contact-extension|3.0.0', min: 1, max: 1, type: Extension, mustSupport: true, index: 29} identifier: {url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-identifier-extension|3.0.0', min: 1, max: 1, type: Extension, mustSupport: true, index: 30} elements: extension: array: true min: 4 index: 26 slicing: slices: date: match: {} schema: {type: Extension, mustSupport: true, url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-datetime-extension|3.0.0', index: 27} min: 1 max: 1 author: match: {} schema: {type: Extension, mustSupport: true, url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-practitioner-extension|3.0.0', index: 28} min: 1 max: 1 authorContact: match: {} schema: {type: Extension, mustSupport: true, url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-contact-extension|3.0.0', index: 29} min: 1 max: 1 identifier: match: {} schema: {type: Extension, mustSupport: true, url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-identifier-extension|3.0.0', index: 30} min: 1 max: 1 content: short: "Line breaks must be represented as \n in FHIR JSON and as in FHIR XML." mustSupport: true choices: [contentString] index: 32 contentString: type: string short: "Line breaks must be represented as \n in FHIR JSON and as in FHIR XML." mustSupport: true choiceOf: content index: 33 attachment: match: {} schema: short: The payload with an attachment shall contain a link or content attached to the message. mustSupport: true array: true index: 34 extensions: date: {url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-datetime-extension|3.0.0', min: 1, max: 1, type: Extension, mustSupport: true, index: 36} author: {url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-practitioner-extension|3.0.0', min: 0, max: 1, type: Extension, mustSupport: true, index: 37} authorContact: {url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-contact-extension|3.0.0', min: 0, max: 1, type: Extension, mustSupport: true, index: 38} identifier: {url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-identifier-extension|3.0.0', min: 1, max: 1, type: Extension, mustSupport: true, index: 39} elements: extension: array: true min: 2 index: 35 slicing: slices: date: match: {} schema: {type: Extension, mustSupport: true, url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-datetime-extension|3.0.0', index: 36} min: 1 max: 1 author: match: {} schema: {type: Extension, mustSupport: true, url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-practitioner-extension|3.0.0', index: 37} min: 0 max: 1 authorContact: match: {} schema: {type: Extension, mustSupport: true, url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-contact-extension|3.0.0', index: 38} min: 0 max: 1 identifier: match: {} schema: {type: Extension, mustSupport: true, url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-identifier-extension|3.0.0', index: 39} min: 1 max: 1 content: mustSupport: true choices: [contentAttachment] index: 41 contentAttachment: {type: Attachment, mustSupport: true, choiceOf: content, index: 42} content[x]: elements: contentType: short: The content type shall be present when the content is an attachment included in the data element. binding: {strength: required, valueSet: 'http://medcomfhir.dk/ig/terminology/ValueSet/medcom-core-attachmentMimeTypes|1.8.1'} mustSupport: true index: 43 data: {short: Shall be present and contain the base64 encoded content of the attachment., mustSupport: true, index: 44} url: {short: Shall be present if the attachment is a link to a web page., mustSupport: true, index: 45} title: {short: 'Note: it is not allowed for the system to automatically include ''.filetype'' in the title.', mustSupport: true, index: 46} creation: {short: The time the attachment was created, mustSupport: true, index: 47} required: [title] encounter: type: Reference short: Shall contain a reference to an Encounter resource with a episodeOfCare-identifier, if the identifier is included in a previous message. mustSupport: true refers: ['http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-encounter|3.0.0'] index: 17 recipient: type: Reference short: Describes a more specific receiver than the MessageHeader.destination.reciever, called a recipient. It may be a careteam a homecare group in the municipality or a named general practitioner. mustSupport: true refers: ['http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-careteam|3.0.0', 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-practitionerrole|3.0.0'] index: 18 topic: short: 'The topic (Danish: emne) may be added as a supplement to the category. Topic must be added in the text-element.' mustSupport: true index: 15 elements: text: {mustSupport: true, index: 16} required: [text] extension: index: 4 slicing: rules: open ordered: false discriminator: - {path: url, type: value} min: null slices: sender: match: {url: null} schema: {type: Extension, mustSupport: true, url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-sender-extension|3.0.0', index: 5} min: 0 max: 1 priority: short: Shall be present if the message priority is known to be ASAP, but is only allowed when the category is 'regarding referral', see medcom-careCommunication-5 binding: {strength: required, valueSet: 'http://medcomfhir.dk/ig/terminology/ValueSet/medcom-careCommunication-requestPriority|1.8.1'} mustSupport: true index: 13 status: mustSupport: true pattern: {type: Code, value: unknown} index: 8 id: {mustSupport: true, index: 0} identifier: short: The communication identifier constraint: medcom-uuidv4: {human: The value shall correspond to the structure of an UUID version 4, source: 'http://medcomfhir.dk/ig/carecommunication/StructureDefinition/medcom-careCommunication-communication', severity: error, expression: 'value.matches(''urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'')'} mustSupport: true index: 6 elements: value: {mustSupport: true, index: 7} required: [value] subject: type: Reference mustSupport: true refers: ['http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-patient|3.0.0'] index: 14 text: short: The narrative text SHALL always be included when exchanging a MedCom FHIR Bundle. mustSupport: true index: 1 elements: status: {mustSupport: true, index: 2} div: {mustSupport: true, index: 3} package_version: 5.0.0-trial-use extensions: sender: {url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-sender-extension|3.0.0', min: 0, max: 1, type: Extension, mustSupport: true, index: 5} class: profile kind: resource url: http://medcomfhir.dk/ig/carecommunication/StructureDefinition/medcom-careCommunication-communication base: http://hl7.org/fhir/StructureDefinition/Communication version: 5.0.0-trial-use required: [identifier, subject, category, payload]