Skip to content

Commit

Permalink
[ERSSUP-65227]-[]-[initial sandbox and get endpoint]-[DMW]
Browse files Browse the repository at this point in the history
  • Loading branch information
nhsd-david-wass committed Dec 22, 2022
1 parent 0253bef commit f90d7f3
Show file tree
Hide file tree
Showing 33 changed files with 964 additions and 11 deletions.
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"
}
}
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"
}
}
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"
}
}
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"resourceType": "ServiceRequest",
"id": "a.832db7fa-ebdd-44b6-ab3b-8329c2d43149",
"meta": {
"versionId": "5"
"versionId": 5
},
"subject": {
"identifier": {
Expand Down Expand Up @@ -81,7 +81,17 @@
"value": "C81007"
},
"display": "VERNON STREET MEDICAL CTR"
}
},
"code": [
{
"coding": [
{
"system": "https://fhir.nhs.uk/CodeSystem/eRS-BusinessFunction-1",
"code": "REFERRING_CLINICIAN"
}
]
}
]
}
],
"requester": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"resourceType": "ServiceRequest",
"id": "a.832db7fa-ebdd-44b6-ab3b-8329c2d43149",
"meta": {
"versionId": "5"
"versionId": 5
},
"subject": {
"identifier": {
Expand Down Expand Up @@ -86,7 +86,7 @@
{
"coding": [
{
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-BusinessFunction-1",
"system": "https://fhir.nhs.uk/CodeSystem/eRS-BusinessFunction-1",
"code": "REFERRING_CLINICIAN"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"resourceType": "ServiceRequest",
"id": "a.832db7fa-ebdd-44b6-ab3b-8329c2d43149",
"meta": {
"versionId": "5"
"versionId": 5
},
"subject": {
"identifier": {
Expand Down Expand Up @@ -81,7 +81,17 @@
"value": "C81007"
},
"display": "VERNON STREET MEDICAL CTR"
}
},
"code": [
{
"coding": [
{
"system": "https://fhir.nhs.uk/CodeSystem/eRS-BusinessFunction-1",
"code": "REFERRING_CLINICIAN"
}
]
}
]
}
],
"requester": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"resourceType": "ServiceRequest",
"id": "a.832db7fa-ebdd-44b6-ab3b-8329c2d43149",
"meta": {
"versionId": "5"
"versionId": 5
},
"subject": {
"identifier": {
Expand Down Expand Up @@ -81,7 +81,18 @@
"value": "C81007"
},
"display": "VERNON STREET MEDICAL CTR"
}
},

"code": [
{
"coding": [
{
"system": "https://fhir.nhs.uk/CodeSystem/eRS-BusinessFunction-1",
"code": "REFERRING_CLINICIAN"
}
]
}
]
}
],
"requester": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"identifier": {
"system": "https://fhir.nhs.uk/Id/nhs-number",
"value": "9912003888"
},
}
},
"status" : "completed",
"authored" : "2022-01-11T16:40:00+00:00",
Expand Down
18 changes: 17 additions & 1 deletion sandbox/src/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ const retrieveBusinessFunctions = require('./r4/retrieveBusinessFunctions')
const retrieveOboUsers = require('./r4/retrieveOboUsers')
const retrieveHealthcareService = require('./r4/retrieveHealthcareService')
const searchForHealthcareServices = require('./r4/searchForHealthcareServices')
const createUpdateServiceRequest = require('./r4/postServiceRequest')
const createUpdateDocumentReference = require('./r4/postDocumentReference')
const sendCommunication = require('./r4/postCommunication')
const sendQuestionnaireResponse = require('./r4/postQuestionnaireResponse')
const retrieveServiceRequest = require('./r4/retrieveServiceRequest')
const retrieveDocumentReference = require('./r4/retrieveDocumentReference')
const retrieveCommunication = require('./r4/retrieveCommunication')
const retrieveQuestionnaireResponse = require('./r4/retrieveQuestionnaireResponse')

const routes = [].concat(
getStatus,
Expand Down Expand Up @@ -76,7 +84,15 @@ const routes = [].concat(
cancelAppointmentActionLater,
cancelReferral,
retrieveAppointment,
retrieveAdviceAndGuidanceOverviewPdf
retrieveAdviceAndGuidanceOverviewPdf,
createUpdateServiceRequest,
createUpdateDocumentReference,
sendCommunication,
sendQuestionnaireResponse,
retrieveServiceRequest,
retrieveDocumentReference,
retrieveCommunication,
retrieveQuestionnaireResponse
)

module.exports = routes
Loading

0 comments on commit f90d7f3

Please sign in to comment.