Skip to content

Commit e8a9721

Browse files
committed
interim: restore POST search
1 parent ee459aa commit e8a9721

File tree

1 file changed

+54
-10
lines changed

1 file changed

+54
-10
lines changed

specification/immunisation-fhir-api.yaml

Lines changed: 54 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,11 +1399,6 @@ paths:
13991399
search interaction.
14001400
14011401
1402-
Note that the API call for the POST search is different:
1403-
1404-
1405-
`POST /Immunization/_search`
1406-
14071402
## Sandbox testing
14081403
14091404
You can test the following scenarios in our sandbox environment:
@@ -1435,11 +1430,8 @@ paths:
14351430
parameters:
14361431
- $ref: "#/components/parameters/CorrelationID"
14371432
- $ref: "#/components/parameters/RequestID"
1438-
- $ref: "#/components/parameters/PatientIdentifier"
1439-
- $ref: "#/components/parameters/ImmunizationTarget"
1440-
- $ref: "#/components/parameters/DateFrom"
1441-
- $ref: "#/components/parameters/DateTo"
1442-
- $ref: "#/components/parameters/Include"
1433+
requestBody:
1434+
$ref: "#/components/requestBodies/SearchImmunizationPost"
14431435
responses:
14441436
"200":
14451437
$ref: "#/components/responses/200-imms-search"
@@ -4598,6 +4590,58 @@ components:
45984590
schema:
45994591
type: integer
46004592
example: 1
4593+
requestBodies:
4594+
SearchImmunizationPost:
4595+
content:
4596+
application/x-www-form-urlencoded:
4597+
schema:
4598+
type: object
4599+
properties:
4600+
patient.identifier:
4601+
type: string
4602+
description: >
4603+
The patient's NHS number.
4604+
4605+
Expressed as `<type>|<value>` where `<type>` must be
4606+
`https://fhir.nhs.uk/Id/nhs-number` and `<value>` must be a [valid NHS
4607+
number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).
4608+
default: "https://fhir.nhs.uk/Id/nhs-number|9000000009"
4609+
"-immunization.target":
4610+
type: string
4611+
description: >
4612+
Specific procedures, disorders, diseases, infections or
4613+
organisms.
4614+
enum:
4615+
- 3IN1
4616+
- COVID
4617+
- FLU
4618+
- HPV
4619+
- MENACWY
4620+
- MMR
4621+
- MMRV
4622+
- PNEUMOCOCCAL
4623+
- PERTUSSIS
4624+
- RSV
4625+
- SHINGLES
4626+
"-date.from":
4627+
type: string
4628+
format: date
4629+
description: The earliest date to be included (e.g. 2020-01-01)
4630+
default: "1900-01-01"
4631+
"-date.to":
4632+
type: string
4633+
format: date
4634+
description: The latest date to be included (e.g. 2020-12-31)
4635+
default: "9999-12-31"
4636+
_include:
4637+
description: >-
4638+
Specifies other resources to be included in the response along
4639+
with the immunisations.
4640+
4641+
Must be `Immunization:patient`, which will include patient
4642+
demographic details.
4643+
type: string
4644+
default: "Immunization:patient"
46014645
parameters:
46024646
Id:
46034647
in: path

0 commit comments

Comments
 (0)