-
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-65227]-[]-[initial sandbox and get endpoint]-[DMW]
- Loading branch information
1 parent
30e09b1
commit dafc9b1
Showing
33 changed files
with
964 additions
and
11 deletions.
There are no files selected for viewing
78 changes: 78 additions & 0 deletions
78
sandbox/src/mocks/r4/getCommunication/responses/initialCommunication.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,78 @@ | ||
{ | ||
"id": "cf8d99c4-b4b1-4ad3-b5b0-2381bee8c6e8", | ||
"meta": { | ||
"versionId": 1 | ||
}, | ||
"resourceType": "Communication", | ||
"status": "completed", | ||
"received": "2022-12-11T13:01:33+00:00", | ||
"basedOn": [ | ||
{ | ||
"reference": "ServiceRequest/a.832db7fa-ebdd-44b6-ab3b-8329c2d43149" | ||
} | ||
], | ||
"subject": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/nhs-number", | ||
"value": "9912003888" | ||
} | ||
}, | ||
"category": [ | ||
{ | ||
"coding": [ | ||
{ | ||
"system": "https://fhir.nhs.uk/CodeSystem/eRS-CommunicationSentBy", | ||
"code": "REQUESTER" | ||
} | ||
] | ||
} | ||
], | ||
"recipient": [ | ||
{ | ||
"reference": "HealthcareService/54b0506d-49af-4245-9d40-d7d64902055e" | ||
} | ||
], | ||
"payload": [ | ||
{ | ||
"contentReference": { | ||
"reference": "DocumentReference/6f693b93-fc6f-4aa1-955e-d9548b5a6a9a" | ||
} | ||
}, | ||
{ | ||
"contentString": "Please advise me on this patient who ...(information about patient)" | ||
} | ||
], | ||
"contained": [ | ||
{ | ||
"resourceType": "PractitionerRole", | ||
"id": "sender", | ||
"practitioner": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/sds-user-id", | ||
"value": "103264992985" | ||
}, | ||
"display": "DR AA BHATIA" | ||
}, | ||
"organization": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/ods-organization-code", | ||
"value": "C81007" | ||
}, | ||
"display": "VERNON STREET MEDICAL CTR" | ||
}, | ||
"code": [ | ||
{ | ||
"coding": [ | ||
{ | ||
"system": "https://fhir.nhs.uk/CodeSystem/eRS-BusinessFunction-1", | ||
"code": "REFERRING_CLINICIAN" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"sender": { | ||
"reference": "#sender" | ||
} | ||
} |
86 changes: 86 additions & 0 deletions
86
sandbox/src/mocks/r4/getDocumentReference/responses/AdviceRequestAttachment.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,86 @@ | ||
{ | ||
"id": "03f55377-33e0-4ad2-9ecc-0788342f24a1", | ||
"meta": { | ||
"versionId": 1 | ||
}, | ||
"resourceType": "DocumentReference", | ||
"type": { | ||
"coding": [ | ||
{ | ||
"system": "https://fhir.nhs.uk/CodeSystem/eRS-AttachmentType", | ||
"code": "ADVICE_REQUEST", | ||
"display": "Advice Request" | ||
} | ||
] | ||
}, | ||
"status": "current", | ||
"subject": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/nhs-number", | ||
"value": "9912003888" | ||
} | ||
}, | ||
"content": [ | ||
{ | ||
"attachment": { | ||
"contentType": "application/pdf", | ||
"url": "Binary/959724e3-8719-4ff3-ae37-5198c450e0f6", | ||
"size": 18592, | ||
"title": "upload.png", | ||
"creation": "2022-01-31", | ||
"extension": [ | ||
{ | ||
"url": "https://fhir.nhs.uk/StructureDefinition/Extension-eRS-AttachedBy", | ||
"valueReference": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/sds-user-id", | ||
"value": "987654321" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"context": { | ||
"related" : [ | ||
{ | ||
"type": "ServiceRequest", | ||
"reference": "ServiceRequest/a.832db7fa-ebdd-44b6-ab3b-8329c2d43149" | ||
} | ||
] | ||
}, | ||
"contained": [ | ||
{ | ||
"resourceType": "PractitionerRole", | ||
"id": "author", | ||
"practitioner": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/sds-user-id", | ||
"value": "103264992985" | ||
}, | ||
"display": "DR AA BHATIA" | ||
}, | ||
"organization": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/ods-organization-code", | ||
"value": "C81007" | ||
}, | ||
"display": "VERNON STREET MEDICAL CTR" | ||
}, | ||
"code": [ | ||
{ | ||
"coding": [ | ||
{ | ||
"system": "https://fhir.nhs.uk/CodeSystem/eRS-BusinessFunction-1", | ||
"code": "REFERRING_CLINICIAN" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"author": { | ||
"reference": "#author" | ||
} | ||
} |
79 changes: 79 additions & 0 deletions
79
sandbox/src/mocks/r4/getQuestionnaireResponse/responses/basicQuestionnaireResponse.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,79 @@ | ||
{ | ||
"resourceType": "QuestionnaireResponse", | ||
"id": "d9d4cf80-3f9d-4435-9f3b-e6efb09ad654", | ||
"meta": { | ||
"versionId": 2 | ||
}, | ||
"questionnaire": "https://fhir.nhs.uk/Questionnaire/ERS-ShortList", | ||
"basedOn": [ | ||
{ | ||
"reference": "ServiceRequest/a.832db7fa-ebdd-44b6-ab3b-8329c2d43149" | ||
} | ||
], | ||
"subject": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/nhs-number", | ||
"value": "9912003888" | ||
} | ||
}, | ||
"status": "completed", | ||
"authored" : "2022-01-11T16:40:00+00:00", | ||
"contained": [ | ||
{ | ||
"resourceType": "PractitionerRole", | ||
"id": "source", | ||
"practitioner": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/sds-user-id", | ||
"value": "103264992985" | ||
}, | ||
"display": "DR AA BHATIA" | ||
}, | ||
"organization": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/ods-organization-code", | ||
"value": "C81007" | ||
}, | ||
"display": "VERNON STREET MEDICAL CTR" | ||
}, | ||
"code": [ | ||
{ | ||
"coding": [ | ||
{ | ||
"system": "https://fhir.nhs.uk/CodeSystem/eRS-BusinessFunction-1", | ||
"code": "REFERRING_CLINICIAN" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"source": { | ||
"reference": "#source" | ||
}, | ||
"item": [ | ||
{ | ||
"linkId": "searchCriteria", | ||
"answer": [ | ||
{ | ||
"valueString": "HealthcareService?supportedSpecialty=general-medicine&supportedPriority=routine" | ||
} | ||
] | ||
}, | ||
{ | ||
"linkId": "services", | ||
"answer": [ | ||
{ | ||
"valueReference": { | ||
"reference": "HealthcareService/76de72bc-f001-49fa-84c6-af15a4fdb72c" | ||
} | ||
}, | ||
{ | ||
"valueReference": { | ||
"reference": "HealthcareService/54b0506d-49af-4245-9d40-d7d64902055e" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
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
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
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.