Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

...

This WS allows to create a new medical program.

Key points

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

  2. Only authenticated and authorized NHS employee with an appropriate scope can create a medical program.

  3. A medical program with the type MEDICATION or SERVICE can be created.

Specification

Page Properties

Link

See GraphQl Specification

Посилання на Apiary або Swagger

Resource

See GraphQl Specification

Посилання на ресурс, наприклад: /api/persons/create

Scope

medical_program:write

Scope для доступу

Components

API paragraph not foundMedical Programs

Зазначається перелік бізнес компонентів, які використовують цей метод, наприклад: ePrescription

Microservices

API paragraph not found

Перелік мікросервісів, які використовує метод API, наприклад: Auth, ABAC

Protocol type

API paragraph not found

Тип протоколу, який використовується запитом, наприклад: SOAP | REST

Request type

API paragraph not found

Тип запиту API, наприклад: GET, POST, PATCH…

Sync/Async

API paragraph not found

Метод є синхронним чи асинхронним?

Logic

  1. Create medical program entity in medical_programs table (prm).

  2. Set fields submitted on input: name and type.

  3. Set following fields by default:

    1. id = generate UUID value

    2. is_active = true

    3. medication_request_allowed = true

    4. medication_dispense_allowed = true

    5. medical_program_settings = null

    6. inserted_at, updated_at = current date and time

    7. inserted_by, updated_by = current user (from token).

Preconditions

API paragraph not found

...