description: Constrained version of FHIR Task resource to support the CareDataService (CDS). The CDS-Task resource is used to share details of tasks, events and assessments that the Local Authority has perfomed (or is perfoming) on befalf of a patient. package_name: socialcaredataservice.stu3 derivation: constraint name: CDS-Task type: Task elements: executionPeriod: mustSupport: true index: 12 elements: start: {index: 13} end: {mustSupport: true, index: 14} required: [start] output: index: 16 elements: type: {index: 17} slicing: rules: open discriminator: - {path: type.coding.system, type: value} - {path: type.coding.code, type: value} min: null slices: outcomeSummary: match: type: coding: {system: 'https://fhir.nottinghamshire.gov.uk/STU3/codesystem/CDS-SocialCareTaskOutcomeType', code: outcome-summary} schema: short: Summary of outcome of assessment mustSupport: true index: 18 elements: type: index: 19 elements: coding: index: 20 elements: system: pattern: {type: Uri, value: 'https://fhir.nottinghamshire.gov.uk/STU3/codesystem/CDS-SocialCareTaskOutcomeType'} index: 21 code: pattern: {type: Code, value: outcome-summary} index: 22 display: pattern: {type: String, value: Outcome Summary} index: 23 required: [system, code] text: pattern: {type: String, value: Outcome Summary} index: 24 required: [coding, text] valueString: type: string index: 25 slicing: slices: valueString: match: {} schema: {type: string, index: 25} outcomeDocumentation: match: type: coding: {system: 'https://fhir.nottinghamshire.gov.uk/STU3/codesystem/CDS-SocialCareTaskOutcomeType', code: outcome-documentation} schema: short: Copy of documentation produced index: 26 elements: type: index: 27 elements: coding: index: 28 elements: system: pattern: {type: Uri, value: 'https://fhir.nottinghamshire.gov.uk/STU3/codesystem/CDS-SocialCareTaskOutcomeType'} index: 29 code: pattern: {type: Code, value: outcome-documentation} index: 30 display: pattern: {type: String, value: Outcome Documentation} index: 31 required: [system, code] text: pattern: {type: String, value: Outcome Documentation} index: 32 required: [coding, text] value: choices: [valueReference, valueReference] index: 34 slicing: slices: valueReference: match: {} schema: choices: [valueReference, valueReference] index: 34 valueReference: type: Reference choiceOf: value refers: ['http://hl7.org/fhir/StructureDefinition/DocumentReference'] index: 35 slicing: slices: valueReference: match: {} schema: type: Reference choiceOf: value refers: ['http://hl7.org/fhir/StructureDefinition/DocumentReference'] index: 35 outcomeEffectivePeriod: match: type: coding: {system: 'https://fhir.nottinghamshire.gov.uk/STU3/codesystem/CDS-SocialCareTaskOutcomeType', code: outcome-effective-period} schema: short: Period of which outcome is effective index: 37 elements: type: index: 38 elements: coding: index: 39 elements: system: pattern: {type: Uri, value: 'https://fhir.nottinghamshire.gov.uk/STU3/codesystem/CDS-SocialCareTaskOutcomeType'} index: 40 code: pattern: {type: Code, value: outcome-effective-period} index: 41 display: pattern: {type: String, value: Outcome Effective Period} index: 42 required: [system, code] text: pattern: {type: String, value: Outcome Effective Period} index: 43 required: [coding, text] valuePeriod: type: Period index: 44 slicing: slices: valuePeriod: match: {} schema: {type: Period, index: 44} for: type: Reference mustSupport: true refers: ['https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-Patient-1'] index: 11 status: {mustSupport: true, index: 2} id: {mustSupport: true, index: 0} code: index: 4 elements: coding: index: 5 slicing: rules: open discriminator: - {path: system, type: value} - {path: code, type: value} min: null slices: socialCareTaskName: match: {system: 'https://fhir.nottinghamshire.gov.uk/STU3/codesystem/CDS-SocialCareTaskDetailCategory', code: task-name} schema: mustSupport: true _required: true index: 6 elements: system: pattern: {type: Uri, value: 'https://fhir.nottinghamshire.gov.uk/STU3/codesystem/CDS-SocialCareTaskDetailCategory'} index: 7 code: pattern: {type: Code, value: task-name} index: 8 display: pattern: {type: String, value: Task Name} index: 9 required: [display, system, code] text: {index: 10} required: [text] intent: {mustSupport: true, index: 3} basedOn: type: Reference mustSupport: true refers: ['https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-ReferralRequest-1'] index: 1 owner: type: Reference mustSupport: true refers: ['https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-Organization-1', 'https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-Practitioner-1'] index: 15 package_version: 0.0.3 class: profile kind: resource url: https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CDS-Task base: http://hl7.org/fhir/StructureDefinition/Task version: 0.0.1 required: [executionPeriod, id, for, code]