@@ -501,6 +501,25 @@ paths:
501501 items :
502502 type : string
503503 example : ' parameters/conditions'
504+ examples :
505+ example_error_1 :
506+ summary : Invalid Input Data Error
507+ value :
508+ resourceType : " OperationOutcome"
509+ id : rrt-2959959087381887325-c-geu2-24001-77777777-1
510+ meta :
511+ lastUpdated : " 2025-02-12T16:11:22Z"
512+ issue :
513+ - severity : error
514+ code : value
515+ details :
516+ coding :
517+ - system : https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode
518+ code : VALIDATION_ERROR
519+ display : " The given conditions were not in the expected format."
520+ diagnostics : " FLU&COVID should be a single or comma separated list of condition strings with no other punctuation or special characters"
521+ location :
522+ - " parameters/conditions"
504523 ' 404 ' :
505524 description : Person not found.
506525 content :
@@ -556,6 +575,25 @@ paths:
556575 items :
557576 type : string
558577 example : ' parameters/patient'
578+ examples :
579+ example_error_1 :
580+ summary : Resource Not Found Error
581+ value :
582+ resourceType : " OperationOutcome"
583+ id : rrt-2959959087381887325-c-geu2-24001-77777777-1
584+ meta :
585+ lastUpdated : " 2025-02-12T16:11:22Z"
586+ issue :
587+ - severity : error
588+ code : processing
589+ details :
590+ coding :
591+ - system : https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode
592+ code : RESOURCE_NOT_FOUND
593+ display : " The given NHS number was not found in our datasets. This could be because the number is incorrect or some other reason we cannot process that number."
594+ diagnostics : " NHS Number 9000000404 was not recognised by the Eligibility Signposting API"
595+ location :
596+ - " parameters/id"
559597 ' 422 ' :
560598 description : ' Unrecognised input data. (Unprocessable Content)'
561599 content :
@@ -611,6 +649,25 @@ paths:
611649 items :
612650 type : string
613651 example : ' parameters/category'
652+ examples :
653+ example_error_1 :
654+ summary : Unrecognised Input Error
655+ value :
656+ resourceType : " OperationOutcome"
657+ id : rrt-2959959087381887325-c-geu2-24001-77777777-1
658+ meta :
659+ lastUpdated : " 2025-02-12T16:11:22Z"
660+ issue :
661+ - severity : error
662+ code : value
663+ details :
664+ coding :
665+ - system : https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode
666+ code : VALIDATION_ERROR
667+ display : " The supplied category was not recognised by the API."
668+ diagnostics : " HEALTHCHECKS is not a category that is supported by the API"
669+ location :
670+ - " parameters/category"
614671 ' 500 ' :
615672 description : Internal server error.
616673 content :
@@ -666,7 +723,25 @@ paths:
666723 items :
667724 type : string
668725 example : ' parameters/category'
669-
726+ examples :
727+ example_error_1 :
728+ summary : Internal Processing Error
729+ value :
730+ resourceType : " OperationOutcome"
731+ id : rrt-2959959087381887325-c-geu2-24001-77777777-1
732+ meta :
733+ lastUpdated : " 2025-02-12T16:11:22Z"
734+ issue :
735+ - severity : error
736+ code : processing
737+ details :
738+ coding :
739+ - system : https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode
740+ code : SERVICE_ERROR
741+ display : " An unknown error occurred processing this request. Contact us for assistance diagnosing this issue: https://digital.nhs.uk/developer/help-and-support quoting the id included in this message"
742+ diagnostics : " No diagnostics available"
743+ location :
744+ - " parameters/category"
670745# ###############################################################################
671746# Components #
672747# ###############################################################################
0 commit comments