Error Accessing RESTful APIs via Sandbox Environment – NHS Care Identity Service 2

Dear Support Team,

I have followed all the steps provided in the user-restricted “RESTful APIs - NHS Care Identity Service 2 combined authentication and authorisation” documentation. However, I am encountering an issue when attempting to access any of the APIs in the Sandbox environment.

Instead of a JSON response, I receive the following error:

This response seems to indicate a server-side or endpoint availability issue.

Steps Taken:

Verified all authentication and authorisation steps.

Ensured all headers and tokens were correctly set.

Attempted access via different endpoints and times.

Could you please assist in identifying the cause of this issue or confirm whether there is a known problem with the Sandbox environment?

Any guidance would be highly appreciated.

Best regards,
Asad Rehman

@vikas.nautiyal1 thanks for the help you have been providing to @Assad_Rehman on this issue, are you able to update this post once you have resolved. Thanks, Jenna

@vikas.nautiyal1
I am registering application at NHS CIS2 via https://digital.nhs.uk/services/care-identity-service/applications-and-services/cis2-authentication/integration-toolkit/nhs-cis-service-assessment-questionnaire but it is not working. Could you please rearrange a call today?

@vikas.nautiyal1
Is it possible to download the prescription in pdf?

Hi @Assad_Rehman, did you manage to finish registering your application?

Hi @Allison_Loose
I have successfully registered my application on the API platform but I am still unclear about the application registration process with NHS CIS and how it ties into accessing certain functionalities. Specifically, I’m struggling to understand how to download the prescription in PDF format, as this step isn’t clearly outlined in the documentation.

However I have consumed the Electronic Prescription Service - FHIR API in open access mode within the sandbox environment. I received a 200 OK response, confirming that the API is functioning correctly. But still I would need to know how to download the prescription in PDF or any other format?

Hi @Assad_Rehman
Some APIs allow for a separate authentication mode, and some used a combined authentication flow from the APIM platform. You can read more about about the authorisation mechanisms here

I don’t know EPS FHIR API in detail, but the guidance on this page states that dispensing is only available on Integration and Production. It might be worth evaluating what functionality you’re trying to use and whether there’s a sandbox for it, or if you’d be able to work with more functionality on an integration environment. Alternatively, you might want to contact the onboarding team directly for further help. (Contact should be on the page)

For CIS2 Authentication, I can say it’s more realistic to use an integration environment. You’d need to review the documentation here and follow the onboarding steps outlined here

Hi @Allison_Loose

Thanks for the detailed explanation.

I’ve reviewed the documentation, and I can confirm that the EPS FHIR API is available in the Sandbox environment. I’ve successfully integrated it and am receiving responses, please see below:

{"status":200,"response":{"resourceType":"Parameters","parameter":[{"name":"passedPrescriptions","resource":{"resourceType":"Bundle","id":"8e75111f-f0a9-4453-bc93-cdcb2621c983","meta":{"lastUpdated":"2013-12-10T17:22:07+00:00"},"identifier":{"system":"https:\/\/tools.ietf.org\/html\/rfc4122","value":"285e5cce-8bc8-a7be-6b05-675051da69b0"},"type":"searchset","total":0,"entry":[]}},{"name":"failedPrescriptions","resource":{"resourceType":"Bundle","id":"bc6274fc-174d-440c-b0a4-1771395325ac","meta":{"lastUpdated":"2013-12-10T17:22:07+00:00"},"identifier":{"system":"https:\/\/tools.ietf.org\/html\/rfc4122","value":"285e5cce-8bc8-a7be-6b05-675051da69b0"},"type":"searchset","total":2,"entry":[{"fullUrl":"urn:uuid:4f47e45c-3b1d-4304-b142-c8f5ea87c2ad","resource":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2025-04-14T17:32:20+00:00"},"id":"4f47e45c-3b1d-4304-b142-c8f5ea87c2ad","extension":[{"url":"https:\/\/fhir.nhs.uk\/StructureDefinition\/Extension-Spine-supportingInfo-prescription","valueReference":{"identifier":{"system":"https:\/\/tools.ietf.org\/html\/rfc4122","value":"83df678d-daa5-1a24-9776-14806d837ca7"}}}],"issue":[{"severity":"error","code":"invalid","details":{"coding":[{"system":"https:\/\/fhir.nhs.uk\/CodeSystem\/Spine-ErrorOrWarningCode","code":"INVALID_VALUE","display":"Signature is invalid."}]},"expression":["Provenance.signature.data"]}]}},{"fullUrl":"urn:uuid:0dce667c-7267-433e-a8ef-c5f85be0ff59","resource":{"resourceType":"Bundle","id":"0dce667c-7267-433e-a8ef-c5f85be0ff59","meta":{"lastUpdated":"2013-11-21T12:11:00+00:00"},"identifier":{"system":"https:\/\/tools.ietf.org\/html\/rfc4122","value":"83df678d-daa5-1a24-9776-14806d837ca7"},"type":"message","entry":[{"fullUrl":"urn:uuid:4d550928-d32e-4d3d-8320-5fb9dd08e901","resource":{"resourceType":"MessageHeader","id":"4d550928-d32e-4d3d-8320-5fb9dd08e901","extension":[{"url":"https:\/\/fhir.nhs.uk\/StructureDefinition\/Extension-MessageHeader-messageId","valueIdentifier":{"system":"https:\/\/tools.ietf.org\/html\/rfc4122","value":"83df678d-daa5-1a24-9776-14806d837ca7"}}],"eventCoding":{"system":"https:\/\/fhir.nhs.uk\/CodeSystem\/message-event","code":"prescription-order","display":"Prescription Order"},"destination":[{"endpoint":"urn:nhs-uk:addressing:ods:FCP99","receiver":{"identifier":{"system":"https:\/\/fhir.nhs.uk\/Id\/ods-organization-code","value":"FCP99"}}}],"sender":{"identifier":{"system":"https:\/\/fhir.nhs.uk\/Id\/ods-organization-code","value":"X2601"},"display":"NHS Digital Spine"},"source":{"name":"NHS Spine","endpoint":"https:\/\/sandbox.api.service.nhs.uk\/electronic-prescriptions\/$process-message"},"response":{"identifier":"ebaf4a14-3350-322c-e040-950ae0731b49","code":"ok"},"focus":[{"reference":"urn:uuid:1ab820df-b1d8-489d-b365-5073c87d693c"},{"reference":"urn:uuid:b349c385-e253-41e9-8486-b2e0b79813a0"},{"reference":"urn:uuid:baecd25b-3a44-4f09-b057-fefba0424fde"},{"reference":"urn:uuid:b289d8c8-ea6d-4011-b2a6-21f65ea1ee88"},{"reference":"urn:uuid:13bbf16c-ee21-4669-a4ba-75ac7faa9f11"}]}},{"fullUrl":"urn:uuid:b349c385-e253-41e9-8486-b2e0b79813a0","resource":{"resourceType":"MedicationRequest","id":"b349c385-e253-41e9-8486-b2e0b79813a0","extension":[{"url":"https:\/\/fhir.nhs.uk\/StructureDefinition\/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:a8b29383-8b6e-4613-8a0a-0696ea5e28f4"}},{"url":"https:\/\/fhir.nhs.uk\/StructureDefinition\/Extension-DM-PrescriptionType","valueCoding":{"system":"https:\/\/fhir.nhs.uk\/CodeSystem\/prescription-type","code":"0101"}}],"identifier":[{"system":"https:\/\/fhir.nhs.uk\/Id\/prescription-order-item-number","value":"ebaf4a14-3094-322c-e040-950ae0731b49"}],"status":"active","intent":"order","medicationCodeableConcept":{"coding":[{"system":"http:\/\/snomed.info\/sct","code":"10795711000001100","display":"Diphtheria \/ Tetanus \/ Pertussis (acellular component) \/ Poliomyelitis (inactivated) \/ Haemophilus type b conjugate vaccine (adsorbed) powder and suspension for suspension for injection 0.5ml pre-filled syringes"}]},"subject":{"reference":"urn:uuid:1ab820df-b1d8-489d-b365-5073c87d693c"},"authoredOn":"2013-11-21T12:11:00+00:00","category":[{"coding":[{"system":"http:\/\/terminology.hl7.org\/CodeSystem\/medicationrequest-category","code":"outpatient","display":"Outpatient"}]}],"requester":{"reference":"urn:uuid:a8b29383-8b6e-4613-8a0a-0696ea5e28f4"},"groupIdentifier":{"system":"https:\/\/fhir.nhs.uk\/Id\/prescription-order-number","value":"145981-B83002-5ABE9Z","extension":[{"url":"https:\/\/fhir.nhs.uk\/StructureDefinition\/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https:\/\/fhir.nhs.uk\/Id\/prescription","value":"ebaf4a14-2fed-322c-e040-950ae0731b49"}}]},"courseOfTherapyType":{"coding":[{"system":"http:\/\/terminology.hl7.org\/CodeSystem\/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"As Directed"}],"dispenseRequest":{"extension":[{"url":"https:\/\/fhir.nhs.uk\/StructureDefinition\/Extension-DM-PerformerSiteType","valueCoding":{"system":"https:\/\/fhir.nhs.uk\/CodeSystem\/dispensing-site-preference","code":"P1"}}],"numberOfRepeatsAllowed":0,"quantity":{"value":1,"unit":"pre-filled disposable injection","system":"http:\/\/snomed.info\/sct","code":"non_dmd_units"},"expectedSupplyDuration":{"unit":"days","value":28,"system":"http:\/\/unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https:\/\/fhir.nhs.uk\/Id\/ods-organization-code","value":"FCP99"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:baecd25b-3a44-4f09-b057-fefba0424fde","resource":{"resourceType":"MedicationRequest","id":"baecd25b-3a44-4f09-b057-fefba0424fde","extension":[{"url":"https:\/\/fhir.nhs.uk\/StructureDefinition\/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:a8b29383-8b6e-4613-8a0a-0696ea5e28f4"}},{"url":"https:\/\/fhir.nhs.uk\/StructureDefinition\/Extension-DM-PrescriptionType","valueCoding":{"system":"https:\/\/fhir.nhs.uk\/CodeSystem\/prescription-type","code":"0101"}}],"identifier":[{"system":"https:\/\/fhir.nhs.uk\/Id\/prescription-order-item-number","value":"ebaf4a14-3099-322c-e040-950ae0731b49"}],"status":"active","intent":"order","medicationCodeableConcept":{"coding":[{"system":"http:\/\/snomed.info\/sct","code":"10816511000001101","display":"Shelter Soft & Secure ileostomy bag with filter, bio dressing resin and microporous adhesive, extra large SS3600\/00 Cut to fit 13mm-80mm Beige (Charles S. Bullen Stomacare Ltd)"}]},"subject":{"reference":"urn:uuid:1ab820df-b1d8-489d-b365-5073c87d693c"},"authoredOn":"2013-11-21T12:11:00+00:00","category":[{"coding":[{"system":"http:\/\/terminology.hl7.org\/CodeSystem\/medicationrequest-category","code":"outpatient","display":"Outpatient"}]}],"requester":{"reference":"urn:uuid:a8b29383-8b6e-4613-8a0a-0696ea5e28f4"},"groupIdentifier":{"system":"https:\/\/fhir.nhs.uk\/Id\/prescription-order-number","value":"145981-B83002-5ABE9Z","extension":[{"url":"https:\/\/fhir.nhs.uk\/StructureDefinition\/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https:\/\/fhir.nhs.uk\/Id\/prescription","value":"ebaf4a14-2fed-322c-e040-950ae0731b49"}}]},"courseOfTherapyType":{"coding":[{"system":"http:\/\/terminology.hl7.org\/CodeSystem\/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"As Directed"}],"dispenseRequest":{"extension":[{"url":"https:\/\/fhir.nhs.uk\/StructureDefinition\/Extension-DM-PerformerSiteType","valueCoding":{"system":"https:\/\/fhir.nhs.uk\/CodeSystem\/dispensing-site-preference","code":"P1"}}],"numberOfRepeatsAllowed":0,"quantity":{"value":15,"unit":"device","system":"http:\/\/snomed.info\/sct","code":"3318711000001107"},"expectedSupplyDuration":{"unit":"days","value":28,"system":"http:\/\/unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https:\/\/fhir.nhs.uk\/Id\/ods-organization-code","value":"FCP99"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:b289d8c8-ea6d-4011-b2a6-21f65ea1ee88","resource":{"resourceType":"MedicationRequest","id":"b289d8c8-ea6d-4011-b2a6-21f65ea1ee88","extension":[{"url":"https:\/\/fhir.nhs.uk\/StructureDefinition\/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:a8b29383-8b6e-4613-8a0a-0696ea5e28f4"}},{"url":"https:\/\/fhir.nhs.uk\/StructureDefinition\/Extension-DM-PrescriptionType","valueCoding":{"system":"https:\/\/fhir.nhs.uk\/CodeSystem\/prescription-type","code":"0101"}}],"identifier":[{"system":"https:\/\/fhir.nhs.uk\/Id\/prescription-order-item-number","value":"ebaf4a14-309e-322c-e040-950ae0731b49"}],"status":"active","intent":"order","medicationCodeableConcept":{"coding":[{"system":"http:\/\/snomed.info\/sct","code":"7199311000001102","display":"Urinary all silicone suprapubic catheter with integral balloon and shaped tip long 16Ch 084616101 10ml balloon (L.In.C. (Leicester Integrated Clinical) Medical Systems Ltd)"}]},"subject":{"reference":"urn:uuid:1ab820df-b1d8-489d-b365-5073c87d693c"},"authoredOn":"2013-11-21T12:11:00+00:00","category":[{"coding":[{"system":"http:\/\/terminology.hl7.org\/CodeSystem\/medicationrequest-category","code":"outpatient","display":"Outpatient"}]}],"requester":{"reference":"urn:uuid:a8b29383-8b6e-4613-8a0a-0696ea5e28f4"},"groupIdentifier":{"system":"https:\/\/fhir.nhs.uk\/Id\/prescription-order-number","value":"145981-B83002-5ABE9Z","extension":[{"url":"https:\/\/fhir.nhs.uk\/StructureDefinition\/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https:\/\/fhir.nhs.uk\/Id\/prescription","value":"ebaf4a14-2fed-322c-e040-950ae0731b49"}}]},"courseOfTherapyType":{"coding":[{"system":"http:\/\/terminology.hl7.org\/CodeSystem\/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"As Directed"}],"dispenseRequest":{"extension":[{"url":"https:\/\/fhir.nhs.uk\/StructureDefinition\/Extension-DM-PerformerSiteType","valueCoding":{"system":"https:\/\/fhir.nhs.uk\/CodeSystem\/dispensing-site-preference","code":"P1"}}],"numberOfRepeatsAllowed":0,"quantity":{"value":1,"unit":"catheter","system":"http:\/\/snomed.info\/sct","code":"3319911000001101"},"expectedSupplyDuration":{"unit":"days","value":28,"system":"http:\/\/unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https:\/\/fhir.nhs.uk\/Id\/ods-organization-code","value":"FCP99"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:13bbf16c-ee21-4669-a4ba-75ac7faa9f11","resource":{"resourceType":"MedicationRequest","id":"13bbf16c-ee21-4669-a4ba-75ac7faa9f11","extension":[{"url":"https:\/\/fhir.nhs.uk\/StructureDefinition\/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:a8b29383-8b6e-4613-8a0a-0696ea5e28f4"}},{"url":"https:\/\/fhir.nhs.uk\/StructureDefinition\/Extension-DM-PrescriptionType","valueCoding":{"system":"https:\/\/fhir.nhs.uk\/CodeSystem\/prescription-type","code":"0101"}}],"identifier":[{"system":"https:\/\/fhir.nhs.uk\/Id\/prescription-order-item-number","value":"ebaf4a14-30a3-322c-e040-950ae0731b49"}],"status":"active","intent":"order","medicationCodeableConcept":{"coding":[{"system":"http:\/\/snomed.info\/sct","code":"11416711000001106","display":"Interferon beta-1a 6million units\/0.5ml solution for injection pre-filled syringes and Interferon beta-1a 2.4million units\/0.2ml solution for injection pre-filled syringes"}]},"subject":{"reference":"urn:uuid:1ab820df-b1d8-489d-b365-5073c87d693c"},"authoredOn":"2013-11-21T12:11:00+00:00","category":[{"coding":[{"system":"http:\/\/terminology.hl7.org\/CodeSystem\/medicationrequest-category","code":"outpatient","display":"Outpatient"}]}],"requester":{"reference":"urn:uuid:a8b29383-8b6e-4613-8a0a-0696ea5e28f4"},"groupIdentifier":{"system":"https:\/\/fhir.nhs.uk\/Id\/prescription-order-number","value":"145981-B83002-5ABE9Z","extension":[{"url":"https:\/\/fhir.nhs.uk\/StructureDefinition\/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https:\/\/fhir.nhs.uk\/Id\/prescription","value":"ebaf4a14-2fed-322c-e040-950ae0731b49"}}]},"courseOfTherapyType":{"coding":[{"system":"http:\/\/terminology.hl7.org\/CodeSystem\/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"As Directed"}],"dispenseRequest":{"extension":[{"url":"https:\/\/fhir.nhs.uk\/StructureDefinition\/Extension-DM-PerformerSiteType","valueCoding":{"system":"https:\/\/fhir.nhs.uk\/CodeSystem\/dispensing-site-preference","code":"P1"}}],"numberOfRepeatsAllowed":0,"quantity":{"value":12,"unit":"pre-filled disposable injection","system":"http:\/\/snomed.info\/sct","code":"non_dmd_units"},"expectedSupplyDuration":{"unit":"days","value":28,"system":"http:\/\/unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https:\/\/fhir.nhs.uk\/Id\/ods-organization-code","value":"FCP99"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:1ab820df-b1d8-489d-b365-5073c87d693c","resource":{"resourceType":"Patient","id":"1ab820df-b1d8-489d-b365-5073c87d693c","identifier":[{"system":"https:\/\/fhir.nhs.uk\/Id\/nhs-number","value":"9446362962"}],"name":[{"use":"usual","family":"BATTERSBY","given":["BYSSHE","WILLIS"],"prefix":["MR"],"suffix":[null]}],"gender":"male","birthDate":"1974-07-29","address":[{"use":"home","line":["10 WARDEN CLOSE","STOCKTON-ON-TEES","CLEVELAND"],"postalCode":"TS19 8LN"}],"generalPractitioner":[{"identifier":{"system":"https:\/\/fhir.nhs.uk\/Id\/ods-organization-code","value":"B83002"}}]}},{"fullUrl":"urn:uuid:19dab0ab-1fca-4335-8d4f-d290c251d0a8","resource":{"resourceType":"Practitioner","id":"19dab0ab-1fca-4335-8d4f-d290c251d0a8","identifier":[{"system":"https:\/\/fhir.hl7.org.uk\/Id\/professional-code","value":"3308000"},{"system":"https:\/\/fhir.hl7.org.uk\/Id\/professional-code","value":"G33080"}],"name":[{"use":"usual","text":"RAWLING"}]}},{"fullUrl":"urn:uuid:a8b29383-8b6e-4613-8a0a-0696ea5e28f4","resource":{"resourceType":"PractitionerRole","id":"a8b29383-8b6e-4613-8a0a-0696ea5e28f4","identifier":[{"system":"https:\/\/fhir.nhs.uk\/Id\/sds-role-profile-id","value":"100098448986"}],"practitioner":{"reference":"urn:uuid:19dab0ab-1fca-4335-8d4f-d290c251d0a8"},"code":[{"coding":[{"system":"https:\/\/fhir.hl7.org.uk\/CodeSystem\/UKCore-SDSJobRoleName","code":"R0260","display":"General Medical Practitioner"}]}],"telecom":[{"system":"phone","use":"work","value":"01943604455"}],"organization":{"reference":"urn:uuid:71a3e164-192a-4f38-98d3-01c4c32f2402"}}},{"fullUrl":"urn:uuid:71a3e164-192a-4f38-98d3-01c4c32f2402","resource":{"resourceType":"Organization","id":"71a3e164-192a-4f38-98d3-01c4c32f2402","identifier":[{"system":"https:\/\/fhir.nhs.uk\/Id\/ods-organization-code","value":"B83002"}],"name":"ILKLEY & WHARFEDALE MEDICAL PRACTICE","telecom":[{"system":"phone","use":"work","value":"01943604455"}],"address":[{"use":"work","line":["SPRINGS LANE","ILKLEY","WEST YORKSHIRE"],"postalCode":"LS29 8TH"}],"partOf":{"identifier":{"system":"https:\/\/fhir.nhs.uk\/Id\/ods-organization-code","value":"5AW"}}}},{"fullUrl":"urn:uuid:3d3dc9d4-35da-4061-83d9-b27111e9076a","resource":{"resourceType":"Provenance","id":"3d3dc9d4-35da-4061-83d9-b27111e9076a","agent":[{"who":{"reference":"urn:uuid:a8b29383-8b6e-4613-8a0a-0696ea5e28f4"}}],"recorded":"2013-11-21T12:11:00+00:00","signature":[{"who":{"reference":"urn:uuid:a8b29383-8b6e-4613-8a0a-0696ea5e28f4"},"when":"2013-11-21T12:11:00+00:00","data":"PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+PFNpZ25lZEluZm8+PENhbm9uaWNhbGl6YXRpb25NZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzEwL3htbC1leGMtYzE0biMiPjwvQ2Fub25pY2FsaXphdGlvbk1ldGhvZD48U2lnbmF0dXJlTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnI3JzYS1zaGExIj48L1NpZ25hdHVyZU1ldGhvZD48UmVmZXJlbmNlPjxUcmFuc2Zvcm1zPjxUcmFuc2Zvcm0gQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzEwL3htbC1leGMtYzE0biMiPjwvVHJhbnNmb3JtPjwvVHJhbnNmb3Jtcz48RGlnZXN0TWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnI3NoYTEiPjwvRGlnZXN0TWV0aG9kPjxEaWdlc3RWYWx1ZT5KQ3Y2TXdlRHdJdUVpU0lKcldubFRkU25Eekk9PC9EaWdlc3RWYWx1ZT48L1JlZmVyZW5jZT48L1NpZ25lZEluZm8+PFNpZ25hdHVyZVZhbHVlPm9tSHhPSEZCaFRLVVd6UUgwbkRnWGhuK3NhYVd0S0RqMXhKMnIyVFE3QkNjVjJadDNBVTMycytwU3YxOVF6ejNhR1NtTklpYjhJZysgSW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1IzKzFUR2hzblNZTmVoaktOa3NQa3ZXODFsbXV2RnE5dlFLZXJ2Z01YcFEwNWtLeG1BVHZMWUZNIGowdUs4ZFBmZ0pkNVVZczJLWlJ2bGhSUDwvWDUwOUNlcnRpZmljYXRlPjwvWDUwOURhdGE+PC9LZXlJbmZvPjwvU2lnbmF0dXJlPg==","type":[{"code":"1.2.840.10065.1.12.1.1","system":"urn:iso-astm:E1762-95:2013"}]}],"target":[{"reference":"urn:uuid:4d550928-d32e-4d3d-8320-5fb9dd08e901"},{"reference":"urn:uuid:1ab820df-b1d8-489d-b365-5073c87d693c"},{"reference":"urn:uuid:a8b29383-8b6e-4613-8a0a-0696ea5e28f4"},{"reference":"urn:uuid:19dab0ab-1fca-4335-8d4f-d290c251d0a8"},{"reference":"urn:uuid:71a3e164-192a-4f38-98d3-01c4c32f2402"},{"reference":"urn:uuid:b349c385-e253-41e9-8486-b2e0b79813a0"},{"reference":"urn:uuid:baecd25b-3a44-4f09-b057-fefba0424fde"},{"reference":"urn:uuid:b289d8c8-ea6d-4011-b2a6-21f65ea1ee88"},{"reference":"urn:uuid:13bbf16c-ee21-4669-a4ba-75ac7faa9f11"}]}}]}}]}}]}}

My current concern is whether the prescription data returned from the API can be programmatically converted into a downloadable PDF file that includes the patient’s details in a readable format. I’d appreciate any guidance on whether this is a supported use case or if there’s a recommended approach for rendering the response into a user-friendly PDF.

Looking forward to your feedback.

Best regards,
Assad Rehman

Hi @Assad_Rehman, again, I’m not sure that all of the functionality of EPS FHIR is fully available in sandbox. Your best bet would be to consult EPS Onboarding (contact is on the pages I’ve provided above)

Hi @Allison_Loose
Thank you for the guidance and for pointing me in the right direction. I’ll follow up with the EPS Onboarding team for further clarification.

Hi @vikas.nautiyal1
I have created new application with the following clientID and SecretID in integration environment following the guide in document.

ClientID: d8HEfL6qjCIiTUqNXTVisfN5DU1ZW1du
Secret: sgVwXQjpWmLItUsR

But when I execute it, it says client not found. however it works fine with the client_id and Secret_id given in tutorial. Why I cannot use my own application which I have created in API platform.

Below is the URL generated for Auth:
https://identity.ptl.api.platform.nhs.uk/realms/Cis2-mock-sandbox/protocol/openid-connect/auth?response_type=code&client_id=d8HEfL6qjCIiTUqNXTVisfN5DU1ZW1du&redirect_uri=http%3A%2F%2Flocalhost%3A8000%2Fhello&scope=openid+nationalrbacaccess