-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #254 from NHSDigital/feature/ERSSUP-61102
Merge of ERSSUP-58954, ERSSUP-60930, and ERSSUP-61102
- Loading branch information
Showing
102 changed files
with
1,418 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
sandbox/src/mocks/cancelReferral/requests/IntendPrivateWithoutComment.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"meta": { | ||
"profile": [ | ||
"https://fhir.nhs.uk/STU3/StructureDefinition/eRS-CancelReferral-Request-Parameters-1" | ||
] | ||
}, | ||
"resourceType": "Parameters", | ||
"parameter": [ | ||
{ | ||
"name": "cancellationReason", | ||
"valueCoding": { | ||
"system": "_baseurl_/STU3/CodeSystem/REFERRAL-CANCELLATION-REASON", | ||
"code": "INTEND_PRIVATE" | ||
} | ||
} | ||
] | ||
} |
21 changes: 21 additions & 0 deletions
21
sandbox/src/mocks/cancelReferral/requests/NoLongerRequired.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"meta": { | ||
"profile": [ | ||
"https://fhir.nhs.uk/STU3/StructureDefinition/eRS-CancelReferral-Request-Parameters-1" | ||
] | ||
}, | ||
"resourceType": "Parameters", | ||
"parameter": [ | ||
{ | ||
"name": "cancellationReason", | ||
"valueCoding": { | ||
"system": "_baseurl_/STU3/CodeSystem/REFERRAL-CANCELLATION-REASON", | ||
"code": "TREATMENT_NO_LONGER_REQUIRED" | ||
} | ||
}, | ||
{ | ||
"name": "cancellationComments", | ||
"valueString": "This is a cancellation reason comment" | ||
} | ||
] | ||
} |
21 changes: 21 additions & 0 deletions
21
sandbox/src/mocks/cancelReferral/requests/PatientRequestCancellationOther.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"meta": { | ||
"profile": [ | ||
"https://fhir.nhs.uk/STU3/StructureDefinition/eRS-CancelReferral-Request-Parameters-1" | ||
] | ||
}, | ||
"resourceType": "Parameters", | ||
"parameter": [ | ||
{ | ||
"name": "cancellationReason", | ||
"valueCoding": { | ||
"system": "_baseurl_/STU3/CodeSystem/REFERRAL-CANCELLATION-REASON", | ||
"code": "PATIENT_REQUEST_CANCELLATION_OTHER" | ||
} | ||
}, | ||
{ | ||
"name": "cancellationComments", | ||
"valueString": "This is a cancellation reason comment" | ||
} | ||
] | ||
} |
21 changes: 21 additions & 0 deletions
21
sandbox/src/mocks/cancelReferral/requests/RaisedInError.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"meta": { | ||
"profile": [ | ||
"https://fhir.nhs.uk/STU3/StructureDefinition/eRS-CancelReferral-Request-Parameters-1" | ||
] | ||
}, | ||
"resourceType": "Parameters", | ||
"parameter": [ | ||
{ | ||
"name": "cancellationReason", | ||
"valueCoding": { | ||
"system": "_baseurl_/STU3/CodeSystem/REFERRAL-CANCELLATION-REASON", | ||
"code": "RAISED_IN_ERROR" | ||
} | ||
}, | ||
{ | ||
"name": "cancellationComments", | ||
"valueString": "This is a cancellation reason comment" | ||
} | ||
] | ||
} |
21 changes: 21 additions & 0 deletions
21
sandbox/src/mocks/cancelReferral/requests/ReferrerCancellation.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"meta": { | ||
"profile": [ | ||
"https://fhir.nhs.uk/STU3/StructureDefinition/eRS-CancelReferral-Request-Parameters-1" | ||
] | ||
}, | ||
"resourceType": "Parameters", | ||
"parameter": [ | ||
{ | ||
"name": "cancellationReason", | ||
"valueCoding": { | ||
"system": "_baseurl_/STU3/CodeSystem/REFERRAL-CANCELLATION-REASON", | ||
"code": "REFERRER_CANCELLATION" | ||
} | ||
}, | ||
{ | ||
"name": "cancellationComments", | ||
"valueString": "This is a cancellation reason comment" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
164 changes: 164 additions & 0 deletions
164
sandbox/src/mocks/cancelReferral/responses/CancelledReferralIntendPrivateWithoutComment.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,164 @@ | ||
{ | ||
"meta": { | ||
"profile": [ | ||
"https://fhir.nhs.uk/STU3/StructureDefinition/eRS-CancelReferral-Response-Parameters-1" | ||
] | ||
}, | ||
"resourceType": "Parameters", | ||
"parameter": [ | ||
{ | ||
"name": "updatedReferralRequest", | ||
"resource": { | ||
"id": "000000070000", | ||
"meta": { | ||
"versionId": "4", | ||
"profile": [ | ||
"https://fhir.nhs.uk/STU3/StructureDefinition/eRS-ReferralRequest-1" | ||
] | ||
}, | ||
"resourceType": "ReferralRequest", | ||
"extension": [ | ||
{ | ||
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-ReferralPriority-1", | ||
"valueCodeableConcept": { | ||
"coding": [ | ||
{ | ||
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-Priority-1", | ||
"code": "ROUTINE", | ||
"display": "Routine" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-ReferralShortlist-1", | ||
"valueReference": { | ||
"reference": "#shortlist" | ||
} | ||
}, | ||
{ | ||
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-Commissioning-Rule-Org-1", | ||
"valueIdentifier": { | ||
"system": "https://fhir.nhs.uk/Id/ods-organization-code", | ||
"value": "R69" | ||
} | ||
}, | ||
{ | ||
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-ReferralState-1", | ||
"extension": [ | ||
{ | ||
"url": "state", | ||
"valueCoding": { | ||
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-ReferralState-1", | ||
"code": "CANCELLED_REFERRAL", | ||
"display": "Cancelled Referral" | ||
} | ||
}, | ||
{ | ||
"url": "reason", | ||
"valueCoding": { | ||
"system": "_baseUrl_/FHIR/STU3/CodeSystem/REFERRAL-CANCELLATION-REASON", | ||
"code": "INTEND_PRIVATE", | ||
"display": "Intend to go private" | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"contained": [ | ||
{ | ||
"id": "serviceSearchCriteria", | ||
"meta": { | ||
"profile": [ | ||
"https://fhir.nhs.uk/STU3/StructureDefinition/eRS-ServiceSearchCriteria-Parameters-1" | ||
] | ||
}, | ||
"resourceType": "Parameters", | ||
"parameter": [ | ||
{ | ||
"name": "priority", | ||
"valueCoding": { | ||
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-Priority-1", | ||
"code": "ROUTINE" | ||
} | ||
}, | ||
{ | ||
"name": "specialty", | ||
"valueCoding": { | ||
"system": "_baseUrl_/FHIR/STU3/CodeSystem/SPECIALTY", | ||
"code": "CARDIOLOGY" | ||
} | ||
}, | ||
{ | ||
"name": "clinicType", | ||
"valueCoding": { | ||
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-ClinicType-1", | ||
"code": "HEART_FAILURE" | ||
} | ||
}, | ||
{ | ||
"name": "ageAndGenderAppropriate", | ||
"valueBoolean": false | ||
}, | ||
{ | ||
"name": "commissioningProvisioning", | ||
"valueCoding": { | ||
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-CommissioningProvisioning-1", | ||
"code": "ALL_AVAILABLE_FOR_BOOKING" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "shortlist", | ||
"meta": { | ||
"profile": [ | ||
"https://fhir.nhs.uk/STU3/StructureDefinition/eRS-Shortlist-List-1" | ||
] | ||
}, | ||
"resourceType": "List", | ||
"extension": [ | ||
{ | ||
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-Shortlist-SearchCriteria-1", | ||
"valueReference": { | ||
"reference": "#serviceSearchCriteria" | ||
} | ||
} | ||
], | ||
"status": "current", | ||
"mode": "snapshot", | ||
"entry": [ | ||
{ | ||
"item": { | ||
"identifier": { | ||
"system": "http://fhir.nhs.net/Id/ers-service", | ||
"value": "11004" | ||
}, | ||
"display": "Cardiology Triage Business Service" | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"status": "cancelled", | ||
"specialty": { | ||
"coding": [ | ||
{ | ||
"system": "_baseUrl_/FHIR/STU3/CodeSystem/SPECIALTY", | ||
"code": "CARDIOLOGY", | ||
"display": "Cardiology" | ||
} | ||
] | ||
}, | ||
"subject": { | ||
"identifier": { | ||
"system": "http://fhir.nhs.net/Id/nhs-number", | ||
"value": "9912003888" | ||
} | ||
}, | ||
"supportingInfo": [], | ||
"intent": "plan" | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.