...
1---
2swagger: '2.0'
3info:
4 version: "1.0.0"
5 title: FHIR API
6 description: |
7 #### FHIR API
8schemes:
9- http
10host: "fhir.test.lan"
11basePath: /
12
13parameters:
14 patientID:
15 name: patientID
16 in: path
17 description: "patient ID"
18 type: string
19 required: true
20
21paths:
22 /Patient/{patientID}:
23 parameters:
24 - $ref: "#/parameters/patientID"
25 get:
26 tags:
27 - fhir
28 produces:
29 - application/fhir+json
30 consumes:
31 - application/fhir+json
32 responses:
33 200:
34 $ref: "#/responses/Patient"
35 put:
36 tags:
37 - fhir
38 produces:
39 - application/fhir+json
40 consumes:
41 - application/fhir+json
42 responses:
43 200:
44 $ref: "#/responses/Patient"
45
46responses:
47 Patient:
48 description: "Patient"
49 schema:
50 allOf:
51 - $ref: 'Patient.yaml'
View as plain text