Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Page Properties

Link

https://uaehealthapi.docs.apiary.io/#reference/internal.-nhs-admin/program-medications/get-program-medication-by-id

Resource

/program_medications/{{id}}

Scope

program_medication:read

Components

Drugs and Program medications

Microservices

API paragraph not found

Protocol type

API paragraph not foundREST

Request type

GET

Sync/Async

Sync

Public/Private/Internal

Internal. NHS Admin

Logic

  1. Get program medication by id.

  2. Render detailed program medication data according to schema.

Key points

  1. This is a graphQl method used in Administration panel only

  2. Only authenticated and authorized NHS employee with an appropriate scope can get a Program medication.

Input parameters

Parameter

Value

Type

Description

Example

id

String

d290f1ee-6c54-4b01-90e6-d701748f0851

...

  • Extract client_id from token.

  • Check client scopes in order to perform this action (scope = 'program_medication:read')

    • in case of error - return 403 (“Your scope does not allow to access this resource. Missing allowances: program_medication:read”).

Validate params

  1. Validate program medication id exists in DB

    1. in case of error - return 404 ('not_found').

Processing

API paragraph not found

...