{ "description": null, "_filename": "NHSDigital-Task.StructureDefinition.json", "package_name": "uk.nhsdigital.r4", "date": null, "derivation": "constraint", "publisher": null, "fhirVersion": "4.0.1", "name": "NHSDigital-Task", "mapping": [ { "uri": "http://hl7.org/fhir/workflow", "name": "Workflow Pattern", "identity": "workflow" }, { "uri": "http://hl7.org/v3", "name": "RIM Mapping", "identity": "rim" }, { "uri": "http://hl7.org/fhir/fivews", "name": "FiveWs Pattern Mapping", "identity": "w5" }, { "uri": "http://hl7.org/v2", "name": "HL7 v2 Mapping", "identity": "v2" } ], "abstract": false, "type": "Task", "experimental": null, "resourceType": "StructureDefinition", "title": null, "package_version": "2.1.23-discovery", "status": "draft", "id": "5bb11ce1-5357-4646-9d0d-cba6b9ea43e2", "kind": "resource", "url": "https://fhir.nhs.uk/StructureDefinition/NHSDigital-Task", "version": null, "differential": { "element": [ { "id": "Task", "path": "Task", "constraint": [ { "key": "nhds-10", "human": "groupIdentifier and reasonCode are mandatory for EPS interactions", "source": "https://fhir.nhs.uk/StructureDefinition/NHSDigital-Task", "severity": "error", "expression": "code.coding.where(system = 'http://hl7.org/fhir/CodeSystem/task-code').exists().not() or (code.coding.where(system = 'http://hl7.org/fhir/CodeSystem/task-code').exists() and groupIdentifier.exists() and reasonCode.exists())" } ] }, { "id": "Task.identifier", "min": 1, "path": "Task.identifier" }, { "id": "Task.identifier.system", "min": 1, "path": "Task.identifier.system" }, { "id": "Task.identifier.value", "min": 1, "path": "Task.identifier.value" }, { "id": "Task.groupIdentifier.system", "min": 1, "path": "Task.groupIdentifier.system" }, { "id": "Task.groupIdentifier.value", "min": 1, "path": "Task.groupIdentifier.value" }, { "id": "Task.businessStatus", "path": "Task.businessStatus", "binding": { "strength": "required", "valueSet": "https://fhir.nhs.uk/ValueSet/DM-task-business-status" } }, { "id": "Task.businessStatus.coding", "min": 1, "path": "Task.businessStatus.coding" }, { "id": "Task.businessStatus.coding.system", "min": 1, "path": "Task.businessStatus.coding.system" }, { "id": "Task.businessStatus.coding.code", "min": 1, "path": "Task.businessStatus.coding.code" }, { "id": "Task.businessStatus.coding.display", "min": 1, "path": "Task.businessStatus.coding.display" }, { "id": "Task.code", "min": 1, "path": "Task.code" }, { "id": "Task.code.coding", "min": 1, "path": "Task.code.coding", "slicing": { "rules": "open", "discriminator": [ { "path": "system", "type": "value" } ] } }, { "id": "Task.code.coding.system", "min": 1, "path": "Task.code.coding.system" }, { "id": "Task.code.coding.code", "min": 1, "path": "Task.code.coding.code" }, { "id": "Task.code.coding.display", "min": 1, "path": "Task.code.coding.display" }, { "id": "Task.code.coding:dispensingCodes", "max": "1", "path": "Task.code.coding", "binding": { "strength": "required", "valueSet": "https://fhir.nhs.uk/ValueSet/DM-task-code", "description": "Dispensing Codes" }, "sliceName": "dispensingCodes" }, { "id": "Task.code.coding:dispensingCodes.system", "path": "Task.code.coding.system", "fixedUri": "http://hl7.org/fhir/CodeSystem/task-code" }, { "id": "Task.code.coding:workflowCodes", "max": "1", "path": "Task.code.coding", "binding": { "strength": "required", "valueSet": "https://fhir.nhs.uk/ValueSet/NHSDigital-message-events", "description": "Workflow/event type code" }, "sliceName": "workflowCodes" }, { "id": "Task.code.coding:workflowCodes.system", "path": "Task.code.coding.system", "fixedUri": "https://fhir.nhs.uk/CodeSystem/message-event" }, { "id": "Task.code.coding:prescriptionTherapyCodesUK", "max": "1", "path": "Task.code.coding", "binding": { "strength": "required", "valueSet": "https://fhir.nhs.uk/ValueSet/DM-medicationrequest-course-of-therapy", "description": "Prescription Course Of Therapy Codes" }, "sliceName": "prescriptionTherapyCodesUK" }, { "id": "Task.code.coding:prescriptionTherapyCodesUK.system", "path": "Task.code.coding.system", "fixedUri": "https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy" }, { "id": "Task.code.coding:prescriptionTherapyCodes", "max": "1", "path": "Task.code.coding", "binding": { "strength": "required", "valueSet": "https://fhir.nhs.uk/ValueSet/DM-medicationrequest-course-of-therapy" }, "sliceName": "prescriptionTherapyCodes" }, { "id": "Task.code.coding:prescriptionTherapyCodes.system", "path": "Task.code.coding.system", "fixedUri": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy" }, { "id": "Task.focus", "min": 1, "path": "Task.focus", "type": [ { "code": "Reference", "targetProfile": [ "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Bundle" ] } ] }, { "id": "Task.focus.identifier", "min": 1, "path": "Task.focus.identifier" }, { "id": "Task.focus.identifier.system", "min": 1, "path": "Task.focus.identifier.system" }, { "id": "Task.focus.identifier.value", "min": 1, "path": "Task.focus.identifier.value" }, { "id": "Task.for", "min": 1, "path": "Task.for" }, { "id": "Task.for.identifier", "min": 1, "path": "Task.for.identifier" }, { "id": "Task.for.identifier.system", "min": 1, "path": "Task.for.identifier.system" }, { "id": "Task.for.identifier.value", "min": 1, "path": "Task.for.identifier.value" }, { "id": "Task.authoredOn", "min": 1, "path": "Task.authoredOn" }, { "id": "Task.owner", "min": 1, "path": "Task.owner", "type": [ { "code": "Reference", "targetProfile": [ "https://fhir.nhs.uk/StructureDefinition/NHSDigital-Organization" ] } ] }, { "id": "Task.owner.identifier", "min": 1, "path": "Task.owner.identifier" }, { "id": "Task.owner.identifier.system", "min": 1, "path": "Task.owner.identifier.system" }, { "id": "Task.owner.identifier.value", "min": 1, "path": "Task.owner.identifier.value" }, { "id": "Task.reasonCode", "path": "Task.reasonCode", "binding": { "strength": "required", "valueSet": "https://fhir.nhs.uk/ValueSet/DM-task-reason-code" } }, { "id": "Task.reasonCode.coding", "min": 1, "path": "Task.reasonCode.coding" }, { "id": "Task.reasonCode.coding.system", "min": 1, "path": "Task.reasonCode.coding.system" }, { "id": "Task.reasonCode.coding.code", "min": 1, "path": "Task.reasonCode.coding.code" }, { "id": "Task.reasonCode.coding.display", "min": 1, "path": "Task.reasonCode.coding.display" } ] }, "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Task" }