description: Constrained version of CareConnect-EpisodeOfCare-1 Profile (v1.1.0) to support the CareDataService (CDS). The CareConnect-CDS-EpisodeOfCare-1 resource is used to share details of Social Care Packages that have been commissoned by the Local Authority package_name: socialcaredataservice.stu3 derivation: constraint name: CareConnect-CDS-EpisodeOfCare-1 type: EpisodeOfCare elements: id: {mustSupport: true, index: 0} status: {mustSupport: true, index: 1} statusHistory: {mustSupport: true, index: 2} type: array: true min: 2 index: 3 slicing: rules: open discriminator: - {path: coding.system, type: value} - {path: coding.code, type: value} min: 2 slices: socialCarePackageName: match: coding: {system: 'https://fhir.nottinghamshire.gov.uk/STU3/codesystem/CDS-SocialCarePackageDetailCategory', code: package-name} schema: short: Name of Service/Package being provided mustSupport: true _required: true index: 4 elements: coding: index: 5 elements: system: pattern: {type: Uri, value: 'https://fhir.nottinghamshire.gov.uk/STU3/codesystem/CDS-SocialCarePackageDetailCategory'} index: 6 code: pattern: {type: Code, value: package-name} index: 7 required: [system, code] text: {index: 8} required: [coding, text] socialCarePackageType: match: coding: {system: 'https://fhir.nottinghamshire.gov.uk/STU3/codesystem/CDS-SocialCarePackageDetailCategory', code: package-type} schema: short: Category/class of Service/Package being provided mustSupport: true _required: true index: 9 elements: coding: index: 10 elements: system: pattern: {type: Uri, value: 'https://fhir.nottinghamshire.gov.uk/STU3/codesystem/CDS-SocialCarePackageDetailCategory'} index: 11 code: pattern: {type: Code, value: package-type} index: 12 required: [system, code] text: {index: 13} required: [coding, text] patient: type: Reference mustSupport: true refers: ['https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-Patient-1'] index: 14 managingOrganization: type: Reference mustSupport: true refers: ['https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-Organization-1'] index: 15 period: mustSupport: true index: 16 elements: start: {index: 17} required: [start] package_version: 0.0.3 class: profile kind: resource url: https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-EpisodeOfCare-1 base: https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-EpisodeOfCare-1 version: 0.0.1 required: [managingOrganization, id, period]