This repository was archived by the owner on Jul 28, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathopenapi.yaml
More file actions
68 lines (65 loc) · 1.9 KB
/
openapi.yaml
File metadata and controls
68 lines (65 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
openapi: 3.0.3
info:
title: Service Layer API
version: 1.0.0
description: API used to ingest episodes from screening services into NSP
paths:
/bsselect/episodes/ingress:
post:
summary: BS Select Episode Ingress
description: Validates the incoming BS Select episode and enqueues it for further processing within the NSP
operationId: BS Select Episode Ingress
tags:
- Episodes
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/BSSelectEpisode"
responses:
'200':
description: Episode accepted
content:
application/json:
schema:
$ref: "#/components/schemas/BSSelectEpisode"
'400':
description: Bad request. Supplied episode payload invalid.
content:
text/plain:
schema:
type: string
example: "nhs_number is required"
'500':
description: Internal server error. This indicates an unexpected failure in the service.
components:
schemas:
BSSelectEpisode:
type: object
required:
- episode_id
- nhs_number
- date_of_birth
- first_given_name
- family_name
properties:
episode_id:
type: string
description: Unique identifier for the Episode
nhs_number:
type: string
pattern: '^\d{10}$'
description: NHS Number (exactly 10 digits)
date_of_birth:
type: string
format: date
description: Date of birth of the Participant
first_given_name:
type: string
maxLength: 100
description: First name of the Participant
family_name:
type: string
maxLength: 100
description: Surname of the Participant