description: This Task resource has been constrained to represent the action to be taken for an EMS Event Message Response, to support the Events Management Service project. package_name: NHSD.Assets.STU3 derivation: constraint name: EMS-EventMessageResponse-Task1 type: Task elements: restriction: {index: 49} description: pattern: {type: String, value: Rejection} index: 27 performerType: {index: 37} executionPeriod: {index: 31} definition: choices: [] index: 8 relevantHistory: {index: 48} statusReason: index: 13 elements: coding: {index: 14} text: {index: 15} required: [coding] authoredOn: {index: 32} output: {index: 93} businessStatus: {index: 16} note: {index: 47} reason: index: 39 elements: coding: index: 40 elements: system: pattern: {type: Uri, value: 'https://fhir.nhs.uk/STU3/ValueSet/EMS-EventMessageResponseCode-1'} index: 41 version: {index: 42} code: {index: 43} display: {index: 44} userSelected: {index: 45} required: [display, system, code] text: {index: 46} required: [coding] for: {index: 29} requester: index: 34 elements: agent: type: Reference refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/EMS-HealthcareService-1'] index: 35 onBehalfOf: type: Reference refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1'] index: 36 required: [onBehalfOf] lastModified: {index: 33} priority: {index: 18} status: pattern: {type: Code, value: requested} index: 12 groupIdentifier: {index: 10} code: short: Event resolution code index: 19 elements: coding: index: 20 elements: system: pattern: {type: Uri, value: 'https://fhir.nhs.uk/STU3/CodeSystem/EMS-EventMessageActionCode-1'} index: 21 version: {index: 22} code: {index: 23} display: {index: 24} userSelected: {index: 25} required: [display, system, code] text: {index: 26} required: [coding] identifier: index: 0 elements: use: {index: 1} type: {index: 2} system: {index: 3} value: {index: 4} period: {index: 5} assigner: {index: 6} required: [value, system] context: {index: 30} intent: pattern: {type: Code, value: order} index: 17 focus: {index: 28} input: array: true min: 2 max: 3 index: 50 elements: type: elements: coding: index: 51 elements: system: {index: 52} code: {index: 53} display: {index: 54} required: [display, system, code] text: {index: 55} required: [coding] slicing: rules: closed ordered: true description: Information indicating the error level applicable to the event message identified and the corresponding line number. discriminator: - {path: type.coding.code, type: value} min: 2 max: 3 slices: responseLevel: match: type: coding: {code: '001'} schema: short: Response level applicable to the event message _required: true index: 56 elements: type: short: Input item index: 57 elements: coding: index: 58 elements: system: pattern: {type: Uri, value: 'https://fhir.nhs.uk/STU3/CodeSystem/EMS-EventMessageResponseInput-1'} index: 59 version: {index: 60} code: pattern: {type: Code, value: '001'} index: 61 display: pattern: {type: String, value: Response Level} index: 62 userSelected: {index: 63} required: [display, system, code] text: {index: 64} required: [coding] valueCodeableConcept: type: CodeableConcept short: Indication that the response relates to the success or rejection of an event message index: 65 slicing: slices: valueCodeableConcept: match: {} schema: type: CodeableConcept short: Indication that the response relates to the success or rejection of an event message index: 65 elements: coding: index: 66 elements: system: pattern: {type: Uri, value: 'https://fhir.nhs.uk/STU3/CodeSystem/EMS-EventMessageResponseLevel-1'} index: 67 version: {index: 68} code: {index: 69} display: {index: 70} userSelected: {index: 71} required: [display, system, code] text: {index: 72} required: [coding] messageID: match: type: coding: {code: '002'} schema: short: Message ID of the event message subject to the Event Message Response _required: true index: 73 elements: type: short: Input item index: 74 elements: coding: index: 75 elements: system: pattern: {type: Uri, value: 'https://fhir.nhs.uk/STU3/CodeSystem/EMS-EventErrorInput-1'} index: 76 version: {index: 77} code: pattern: {type: Code, value: '002'} index: 78 display: pattern: {type: String, value: Message ID} index: 79 userSelected: {index: 80} required: [display, system, code] text: {index: 81} required: [coding] valueId: type: id short: The message id of the event message containing the error index: 82 slicing: slices: valueId: match: {} schema: {type: id, short: The message id of the event message containing the error, index: 82} lineNumber: match: type: coding: {code: '003'} schema: short: Line number of error present in a rejected event message index: 83 elements: type: short: Input item index: 84 elements: coding: index: 85 elements: system: pattern: {type: Uri, value: 'https://fhir.nhs.uk/STU3/CodeSystem/EMS-EventErrorInput-1'} index: 86 version: {index: 87} code: pattern: {type: Code, value: '003'} index: 88 display: pattern: {type: String, value: Line Number} index: 89 userSelected: {index: 90} required: [display, system, code] text: {index: 91} required: [coding] valuePositiveInt: type: positiveInt short: The line number within the event message containing the error index: 92 slicing: slices: valuePositiveInt: match: {} schema: {type: positiveInt, short: The line number within the event message containing the error, index: 92} basedOn: {index: 9} partOf: {index: 11} owner: {index: 38} package_version: 1.5.0 class: profile kind: resource url: https://fhir.nhs.uk/STU3/StructureDefinition/EMS-EventMessageResponse-Task-1 base: http://hl7.org/fhir/StructureDefinition/Task version: 1.1.0 required: [authoredOn, reason]