description: MessageHeader for MedCom messages package_name: rs/medcom.fhir.dk.messaging derivation: constraint name: MedComMessagingMessageHeader type: MessageHeader elements: id: {short: Each message shall include a globally unique id., mustSupport: true, index: 0} text: {short: A summary of the resource content. The narrative text shall always be included when exchanging a MedCom message. All MustSupport elements and extensions shall be included., mustSupport: true, index: 1} event: short: The event element shall contain a value from MedComMessagingMessageTypes choices: [eventCoding] index: 3 eventCoding: type: Coding short: The event element shall contain a value from MedComMessagingMessageTypes choiceOf: event index: 4 elements: code: {index: 6} required: [code] destination: index: 7 extensions: use: {url: 'http://medcomfhir.dk/ig/messaging/StructureDefinition/medcom-messaging-destinationUseExtension', min: 1, max: 1, type: Extension, mustSupport: true, index: 9} elements: extension: index: 8 slicing: rules: open ordered: false discriminator: - {path: url, type: value} min: 1 slices: use: match: {url: null} schema: {type: Extension, mustSupport: true, url: 'http://medcomfhir.dk/ig/messaging/StructureDefinition/medcom-messaging-destinationUseExtension', index: 9} min: 1 max: 1 required: [extension] slicing: rules: closed discriminator: - {path: $this.extension.value, type: value} min: 1 slices: primary: match: $this: extension: {value: null} schema: mustSupport: true _required: true index: 10 extensions: use: url: http://medcomfhir.dk/ig/messaging/StructureDefinition/medcom-messaging-destinationUseExtension type: Extension mustSupport: true index: 11 elements: valueCoding: pattern: type: Coding value: {code: primary, system: 'http://medcomfhir.dk/ig/terminology/CodeSystem/medcom-messaging-destinationUse'} type: Coding index: 12 elements: extension: type: Extension mustSupport: true url: http://medcomfhir.dk/ig/messaging/StructureDefinition/medcom-messaging-destinationUseExtension index: 11 slicing: slices: use: match: {} schema: type: Extension mustSupport: true url: http://medcomfhir.dk/ig/messaging/StructureDefinition/medcom-messaging-destinationUseExtension index: 11 elements: valueCoding: pattern: type: Coding value: {code: primary, system: 'http://medcomfhir.dk/ig/terminology/CodeSystem/medcom-messaging-destinationUse'} type: Coding index: 12 endpoint: {mustSupport: true, index: 13} receiver: type: Reference short: The primary reciever of the message mustSupport: true refers: ['http://medcomfhir.dk/ig/messaging/StructureDefinition/medcom-messaging-organization'] index: 14 required: [receiver] cc: match: $this: extension: {value: null} schema: array: true index: 15 extensions: use: url: http://medcomfhir.dk/ig/messaging/StructureDefinition/medcom-messaging-destinationUseExtension type: Extension mustSupport: true index: 16 elements: valueCoding: pattern: type: Coding value: {code: cc, system: 'http://medcomfhir.dk/ig/terminology/CodeSystem/medcom-messaging-destinationUse'} type: Coding index: 17 elements: extension: type: Extension mustSupport: true url: http://medcomfhir.dk/ig/messaging/StructureDefinition/medcom-messaging-destinationUseExtension index: 16 slicing: slices: use: match: {} schema: type: Extension mustSupport: true url: http://medcomfhir.dk/ig/messaging/StructureDefinition/medcom-messaging-destinationUseExtension index: 16 elements: valueCoding: pattern: type: Coding value: {code: cc, system: 'http://medcomfhir.dk/ig/terminology/CodeSystem/medcom-messaging-destinationUse'} type: Coding index: 17 endpoint: {mustSupport: true, index: 18} receiver: type: Reference short: The carbon copy reciever of the message. Is only used when a message has multiple recievers. mustSupport: true refers: ['http://medcomfhir.dk/ig/messaging/StructureDefinition/medcom-messaging-organization'] index: 19 required: [receiver] sender: type: Reference short: The actual sender of the message mustSupport: true refers: ['http://medcomfhir.dk/ig/messaging/StructureDefinition/medcom-messaging-organization'] index: 20 source: short: Contains the information about the target for the Acknowledgement message. mustSupport: true index: 21 elements: endpoint: {mustSupport: true, index: 22} package_version: 2.0.0 class: profile kind: resource url: http://medcomfhir.dk/ig/messaging/StructureDefinition/medcom-messaging-messageHeader base: http://hl7.org/fhir/StructureDefinition/MessageHeader version: 2.0.0 required: [destination, id, sender]