-
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.
[ERSSUP-80429]-[]-[Updating samples]-[AP]
- Loading branch information
1 parent
88f1716
commit 365d6e8
Showing
31 changed files
with
1,701 additions
and
21 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
303 changes: 303 additions & 0 deletions
303
sandbox/src/mocks/stu3/acceptReferral/responses/ExampleResponseWithUnavailableDocument.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,303 @@ | ||
{ | ||
"id": "000000070000", | ||
"meta": { | ||
"versionId": "9", | ||
"profile": [ | ||
"https://fhir.nhs.uk/STU3/StructureDefinition/eRS-ReferralRequest-1" | ||
] | ||
}, | ||
"resourceType": "ReferralRequest", | ||
"extension": [ | ||
{ | ||
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-Appointment-1", | ||
"valueReference": { | ||
"reference": "#appointment" | ||
} | ||
}, | ||
{ | ||
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-Appointment-Reference-1", | ||
"valueReference": { | ||
"reference": "Appointment/70009" | ||
} | ||
}, | ||
{ | ||
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-ClinicalInfoFirstSubmitted-1", | ||
"valueDateTime": "2021-10-13T12:51:16.848Z" | ||
}, | ||
{ | ||
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-eReferralPathwayStart-1", | ||
"valueInstant": "2024-05-01T09:55:00.000Z" | ||
}, | ||
{ | ||
"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": "BOOKED", | ||
"display": "Booked" | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"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_/STU3/CodeSystem/SPECIALTY", | ||
"code": "CARDIOLOGY" | ||
} | ||
}, | ||
{ | ||
"name": "clinicType", | ||
"valueCoding": { | ||
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-ClinicType-1", | ||
"code": "HEART_FAILURE" | ||
} | ||
}, | ||
{ | ||
"name": "postcode", | ||
"valueString": "LS1 2TW" | ||
}, | ||
{ | ||
"name": "distanceLimit", | ||
"valueUnsignedInt": 123 | ||
}, | ||
{ | ||
"name": "ageAndGenderAppropriate", | ||
"valueBoolean": true | ||
} | ||
] | ||
}, | ||
{ | ||
"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": "11000" | ||
}, | ||
"display": "Forthright Cardiology Business Service" | ||
} | ||
}, | ||
{ | ||
"item": { | ||
"identifier": { | ||
"system": "http://fhir.nhs.net/Id/ers-service", | ||
"value": "11002" | ||
}, | ||
"display": "Good Cardiology Business Service" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "appointment", | ||
"meta": { | ||
"versionId": "0", | ||
"profile": [ | ||
"https://fhir.nhs.uk/STU3/StructureDefinition/eRS-Appointment-1", | ||
"https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Appointment-1" | ||
] | ||
}, | ||
"language": "en", | ||
"resourceType": "Appointment", | ||
"status": "booked", | ||
"description": "e-Referral Appointment", | ||
"start": "2021-10-15T12:51:12.625Z", | ||
"end": "2021-10-15T13:51:12.625Z", | ||
"slot": [ | ||
{ | ||
"reference": "Slot/11002001" | ||
} | ||
], | ||
"created": "2021-10-13T12:51:19.344Z", | ||
"incomingReferral": [ | ||
{ | ||
"reference": "ReferralRequest/000000070000/_history/9" | ||
} | ||
], | ||
"participant": [ | ||
{ | ||
"actor": { | ||
"identifier": { | ||
"system": "http://fhir.nhs.net/Id/ers-service", | ||
"value": "11002" | ||
}, | ||
"display": "Good Cardiology Business Service" | ||
}, | ||
"status": "accepted" | ||
}, | ||
{ | ||
"actor": { | ||
"identifier": { | ||
"system": "http://fhir.nhs.net/Id/nhs-number", | ||
"value": "1000000001" | ||
} | ||
}, | ||
"status": "accepted" | ||
}, | ||
{ | ||
"type": { | ||
"coding": [ | ||
{ | ||
"system": "http://hl7.org/fhir/ValueSet/encounter-participant-type", | ||
"code": "CON" | ||
} | ||
] | ||
}, | ||
"actor": { | ||
"identifier": { | ||
"system": "http://fhir.nhs.net/Id/sds-user-id", | ||
"value": "021600556514" | ||
} | ||
}, | ||
"status": "accepted" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "DocumentReference-70000", | ||
"meta": { | ||
"profile": [ | ||
"https://fhir.nhs.uk/STU3/StructureDefinition/eRS-DocumentReference-1" | ||
] | ||
}, | ||
"resourceType": "DocumentReference", | ||
"type": { | ||
"coding": [ | ||
{ | ||
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-AttachmentType-1", | ||
"code": "REFERRER", | ||
"display": "Referrer" | ||
} | ||
] | ||
}, | ||
"status": "current", | ||
"indexed": "2021-10-13T12:51:31.874Z", | ||
"description": "upload png", | ||
"content": [ | ||
{ | ||
"attachment": { | ||
"id": "70000", | ||
"extension": [ | ||
{ | ||
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-AttachedBy-1", | ||
"valueReference": { | ||
"identifier": { | ||
"system": "http://fhir.nhs.net/Id/sds-user-id", | ||
"value": "103264992985" | ||
} | ||
} | ||
}, | ||
{ | ||
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-AvailabilityStatus-1", | ||
"valueCoding": | ||
{ | ||
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-AvailabilityStatus-1", | ||
"code": "PENDING" | ||
} | ||
}, | ||
{ | ||
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-AttachedByOrganisation-1", | ||
"valueReference": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/ods-organization-code", | ||
"value": "R69" | ||
} | ||
} | ||
} | ||
], | ||
"contentType": "image/png", | ||
"url": "Binary/3816ca48-897a-4be0-907d-a4e830b4e213", | ||
"size": 6, | ||
"title": "upload.png", | ||
"creation": "2021-10-13" | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"status": "active", | ||
"specialty": { | ||
"coding": [ | ||
{ | ||
"system": "_baseUrl_/STU3/CodeSystem/SPECIALTY", | ||
"code": "CARDIOLOGY", | ||
"display": "Cardiology" | ||
} | ||
] | ||
}, | ||
"subject": { | ||
"identifier": { | ||
"system": "http://fhir.nhs.net/Id/nhs-number", | ||
"value": "1000000001" | ||
} | ||
}, | ||
"supportingInfo": [ | ||
{ | ||
"reference": "#DocumentReference-70000" | ||
} | ||
], | ||
"intent": "plan" | ||
} |
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
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
Oops, something went wrong.