Skip to content

Commit

Permalink
[ERSSUP-81431]-[]-[Refactor Worklists before update]-[DMW]
Browse files Browse the repository at this point in the history
  • Loading branch information
nhsd-david-wass committed Nov 16, 2024
1 parent afc1ca2 commit 95818ae
Show file tree
Hide file tree
Showing 29 changed files with 779 additions and 796 deletions.
804 changes: 8 additions & 796 deletions specification/components/stu3/schemas/eRS-FetchWorklist-List.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
title: Extension-eRS-AdviceAndGuidanceRequests-WorkListItem
type: object
required:
- url
- extension
properties:
url:
type: string
enum:
- 'https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-AdviceAndGuidanceRequests-WorkListItem-1'
example: 'https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-AdviceAndGuidanceRequests-WorkListItem-1'
extension:
type: array
description: |
| Field | Cardinality | Notes |
| ------------------------------ | ----------- | ------------------------------------------ |
| `priority` | `1..1` | |
| `specialty` | `1..1` | |
| `patient` | `1..1` | |
| `namedClinician` | `0..1` | |
| `category` | `1..1` | |
| `adviceFirstRequested` | `1..1` | |
| `adviceLastUpdated` | `1..1` | |
| `referrer` | `1..1` | |
| `service` | `1..1` | |
| `clinicType` | `0..1` | |
items:
anyOf:
- $ref: './worklists/Extension-WorklistItem-Priority.yaml'
- $ref: './worklists/Extension-WorklistItem-Specialty.yaml'
- $ref: './worklists/Extension-WorklistItem-Patient.yaml'
- $ref: './worklists/Extension-WorklistItem-NamedClinician.yaml'
- $ref: './worklists/Extension-WorklistItem-Category.yaml'
- $ref: './worklists/Extension-WorklistItem-AdviceFirstRequested.yaml'
- $ref: './worklists/Extension-WorklistItem-AdviceLastUpdated.yaml'
- $ref: './worklists/Extension-WorklistItem-Referrer.yaml'
- $ref: './worklists/Extension-WorklistItem-Service.yaml'
- $ref: './worklists/Extension-WorklistItem-ClinicType.yaml'
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
title: Extension-eRS-AppointmentSlotIssues-WorkListItem
type: object
required:
- url
- extension
properties:
url:
type: string
enum:
- 'https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-AppointmentSlotIssues-WorkListItem-1'
example: 'https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-AppointmentSlotIssues-WorkListItem-1'
extension:
type: array
description: |
| Field | Cardinality | Notes |
| ------------------------------ | ----------- | ------------------------------------------ |
| `priority` | `1..1` | |
| `specialty` | `1..1` | |
| `patient` | `1..1` | |
| `namedClinician` | `0..1` | |
| `eReferralPathwayStart` | `1..1` | |
| `clinicalInfoPrinted` | `1..1` | |
| `ubrnReceived` | `0..1` | |
| `patientContactExpected` | `0..1` | |
| `clinicalInformationStatus` | `0..1` | |
| `reason` | `0..1` | |
| `lastContact` | `0..1` | |
| `service` | `1..1` | |
items:
anyOf:
- $ref: './worklists/Extension-WorklistItem-Priority.yaml'
- $ref: './worklists/Extension-WorklistItem-Specialty.yaml'
- $ref: './worklists/Extension-WorklistItem-Patient.yaml'
- $ref: './worklists/Extension-WorklistItem-NamedClinician.yaml'
- $ref: './worklists/Extension-WorklistItem-ReferralPathwayStart.yaml'
- $ref: './worklists/Extension-WorklistItem-ClinicalInfoPrinted.yaml'
- $ref: './worklists/Extension-WorklistItem-UbrnReceived.yaml'
- $ref: './worklists/Extension-WorklistItem-PatientContactExpected.yaml'
- $ref: './worklists/Extension-WorklistItem-ClinicalInformationStatus.yaml'
- $ref: './worklists/Extension-WorklistItem-ReviewReason.yaml'
- $ref: './worklists/Extension-WorklistItem-LastContact.yaml'
- $ref: './worklists/Extension-WorklistItem-Service.yaml'
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
title: 'Extension-eRS-AssessmentReturnedCancelledDna-WorklistItem'
type: object
required:
- url
- extension
properties:
url:
type: string
enum:
- 'https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-AssessmentReturnedCancelledDna-WorkListItem-1'
example: 'https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-AssessmentReturnedCancelledDna-WorkListItem-1'
extension:
description: |
| Field | Cardinality | Notes |
| ------------------------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `patient` | `1..1` | The patient associated with the `ReferralRequest` |
| `priority` | `1..1` | The priority associated with the `ReferralRequest` |
| `referralCreated` | `1..1` | The Date and Time the `ReferralRequest` was initiated |
| `clinicalContext` | `1..1` | The clinical context for the `ReferralRequest` |
| `referrer` | `1..1` | The `Practitioner` who initially creates the `ReferralRequest` |
| `referralLastUpdated` | `1..1` | The `dateTime` the `ReferralRequest` was last updated |
| `status` | `1..1` | The status of the `ReferralRequest` |
| `reason` | `0..1` | The reason the `ReferralRequest` is on the Assessment Returned / Cancelled / DNA worklist, only included if `status` is `CANCELLED_REFERRAL` |
type: array
items:
anyOf:
- $ref: './worklists/Extension-WorklistItem-Patient.yaml'
- $ref: './worklists/Extension-WorklistItem-Priority.yaml'
- $ref: './worklists/Extension-WorklistItem-ReferralCreated.yaml'
- $ref: './worklists/Extension-WorklistItem-ClinicalContext.yaml'
- $ref: './worklists/Extension-WorklistItem-Referrer.yaml'
- $ref: './worklists/Extension-WorklistItem-ReferralLastUpdated.yaml'
- $ref: './worklists/Extension-WorklistItem-Status.yaml'
- $ref: './worklists/Extension-WorklistItem-ReferralCancellationReason.yaml'

Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
title: 'Extension-eRS-AwaitingBooking-WorklistItem'
type: object
required:
- url
- extension
properties:
url:
type: string
enum:
- 'https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-AwaitingBooking-WorkListItem-1'
example: 'https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-AwaitingBooking-WorkListItem-1'
extension:
description: |
| Field | Cardinality | Notes |
| ------------------------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------- |
| `patient` | `1..1` | The patient associated with the `ReferralRequest` |
| `priority` | `1..1` | The priority associated with the `ReferralRequest` |
| `referralCreated` | `1..1` | The Date and Time the `ReferralRequest` was initiated |
| `clinicalContext` | `1..1` | The clinical context for the `ReferralRequest` |
| `referrer` | `1..1` | The `Practitioner` who initially creates the `ReferralRequest` |
| `referralLastUpdated` | `1..1` | The `dateTime` the `ReferralRequest` was last updated |
| `status` | `1..1` | The status of the `ReferralRequest` |
| `reason` | `0..1` | The reason the `ReferralRequest` is on the Awaiting Booking worklist, only included if `status` is `APPOINTMENT_CANCELLED_BY_PROVIDER` or `APPOINTMENT_CANCELLED_BY_PATIENT` |
type: array
items:
anyOf:
- $ref: './worklists/Extension-WorklistItem-Patient.yaml'
- $ref: './worklists/Extension-WorklistItem-Priority.yaml'
- $ref: './worklists/Extension-WorklistItem-ReferralCreated.yaml'
- $ref: './worklists/Extension-WorklistItem-ClinicalContext.yaml'
- $ref: './worklists/Extension-WorklistItem-Referrer.yaml'
- $ref: './worklists/Extension-WorklistItem-ReferralLastUpdated.yaml'
- $ref: './worklists/Extension-WorklistItem-Status.yaml'
- $ref: './worklists/Extension-WorklistItem-AppointmentCancellationReason.yaml'
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
title: Extension-eRS-LettersOutstanding-WorklistItem
type: object
required:
- url
- extension
properties:
url:
type: string
enum:
- 'https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-LettersOutstanding-WorkListItem-1'
example: 'https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-LettersOutstanding-WorkListItem-1'
extension:
description: |
| Field | Cardinality | Notes |
| ------------------------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `patient` | `1..1` | The patient associated with the `ReferralRequest` |
| `priority` | `1..1` | The priority associated with the `ReferralRequest` |
| `referralCreated` | `1..1` | The Date and Time the `ReferralRequest` was initiated |
| `clinicalContext` | `1..1` | The clinical context for the `ReferralRequest` |
| `referrer` | `1..1` | The `Practitioner` who initially creates the `ReferralRequest` |
| `letterDue` | `1..1` | The `date` a referral letter is due for the `ReferralRequest` |
type: array
items:
anyOf:
- $ref: './worklists/Extension-WorklistItem-Patient.yaml'
- $ref: './worklists/Extension-WorklistItem-Priority.yaml'
- $ref: './worklists/Extension-WorklistItem-ReferralCreated.yaml'
- $ref: './worklists/Extension-WorklistItem-ClinicalContext.yaml'
- $ref: './worklists/Extension-WorklistItem-Referrer.yaml'
- $ref: './worklists/Extension-WorklistItem-LetterDue.yaml'
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
title: Extension-eRS-ReferralsforReview-WorkListItem
type: object
required:
- url
- extension
properties:
url:
type: string
enum:
- 'https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-ReferralsforReview-WorkListItem-1'
example: 'https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-ReferralsforReview-WorkListItem-1'
extension:
type: array
description: |
| Field | Cardinality | Notes |
| ------------------------------ | ----------- | ------------------------------------------ |
| `priority` | `1..1` | |
| `specialty` | `1..1` | |
| `patient` | `1..1` | |
| `namedClinician` | `0..1` | |
| `eReferralPathwayStart` | `1..1` | |
| `clinicalInfoPrinted` | `1..1` | |
| `requestContextStatus` | `1..1` | |
| `clinicalInfoFirstSubmitted` | `0..1` | |
| `clinicalInfoLastUpdated` | `0..1` | |
| `referralType` | `0..1` | |
| `appointmentStart` | `0..1` | |
| `allocatedClinician` | `0..1` | |
| `service` | `1..1` | |
items:
anyOf:
- $ref: './worklists/Extension-WorklistItem-Priority.yaml'
- $ref: './worklists/Extension-WorklistItem-Specialty.yaml'
- $ref: './worklists/Extension-WorklistItem-PatientReference.yaml'
- $ref: './worklists/Extension-WorklistItem-NamedClinicianReference.yaml'
- $ref: './worklists/Extension-WorklistItem-ReferralPathwayStart.yaml'
- $ref: './worklists/Extension-WorklistItem-ClinicalInfoPrinted.yaml'
- $ref: './worklists/Extension-WorklistItem-RequestContextStatus.yaml'
- $ref: './worklists/Extension-WorklistItem-ClinicalInfoFirstSubmitted.yaml'
- $ref: './worklists/Extension-WorklistItem-ClinicalInfoLastUpdated.yaml'
- $ref: './worklists/Extension-WorklistItem-ReferralType.yaml'
- $ref: './worklists/Extension-WorklistItem-AppointmentStart.yaml'
- $ref: './worklists/Extension-WorklistItem-AllocatedClinician.yaml'
- $ref: './worklists/Extension-WorklistItem-Service.yaml'
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
title: Extension-eRS-RejectedTriageResponse-WorkListItem
type: object
required:
- url
- extension
properties:
url:
type: string
enum:
- 'https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-RejectedTriageResponse-WorkListItem-1'
example: 'https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-RejectedTriageResponse-WorkListItem-1'
extension:
type: array
description: |
| Field | Cardinality | Notes |
| ------------------------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------- |
| `patient` | `1..1` | The patient associated with the `ReferralRequest` |
| `priority` | `1..1` | The priority associated with the `ReferralRequest` |
| `referralCreated` | `1..1` | The Date and Time the `ReferralRequest` was initiated |
| `clinicalContext` | `1..1` | The clinical context for the `ReferralRequest` |
| `referrer` | `1..1` | The `Practitioner` who initially creates the `ReferralRequest` |
| `referralLastUpdated` | `1..1` | The `dateTime` the `ReferralRequest` was last updated |
| `status` | `1..1` | The status of the `ReferralRequest` |
| `reason` | `0..1` | The reason the `ReferralRequest` is on the Rejected/TriageRequest worklist, only included if `status` is `TRIAGE_RESPONSE` |
items:
anyOf:
- $ref: './worklists/Extension-WorklistItem-Patient.yaml'
- $ref: './worklists/Extension-WorklistItem-Priority.yaml'
- $ref: './worklists/Extension-WorklistItem-ReferralCreated.yaml'
- $ref: './worklists/Extension-WorklistItem-ClinicalContext.yaml'
- $ref: './worklists/Extension-WorklistItem-Referrer.yaml'
- $ref: './worklists/Extension-WorklistItem-ReferralLastUpdated.yaml'
- $ref: './worklists/Extension-WorklistItem-Status.yaml'
- $ref: './worklists/Extension-WorklistItem-AppointmentCancellationReason.yaml'
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
title: adviceFirstRequested
type: object
required:
- url
- valueDateTime
properties:
url:
type: string
enum:
- adviceFirstRequested
example: 'adviceFirstRequested'
valueDateTime:
type: string
format: date-time
example: '2021-09-01T14:26:18.314Z'
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
title: adviceLastUpdated
type: object
required:
- url
- valueDateTime
properties:
url:
type: string
enum:
- adviceLastUpdated
example: 'adviceLastUpdated'
valueDateTime:
type: string
format: date-time
example: '2021-09-01T14:26:18.314Z'
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
title: allocatedClinician
type: object
required:
- url
- valueReference
properties:
url:
type: string
enum:
- allocatedClinician
example: 'allocatedClinician'
valueReference:
type: object
required:
- reference
properties:
reference:
type: string
example: '#Practitioner-021600556514'
Loading

0 comments on commit 95818ae

Please sign in to comment.