[exports] Added API for initial delivery of feature
parent
9b0db7a439
commit
bbc351536b
@ -0,0 +1,52 @@
|
||||
get:
|
||||
operationId: exportsAvailable
|
||||
tags:
|
||||
- Exports
|
||||
summary: List available exports
|
||||
responses:
|
||||
'200':
|
||||
description: |-
|
||||
Lists all available HIS export snapshots.
|
||||
A HIS export snapshot contains parts of medical dossier info for a subset of all patients in a GP practice. Exactly which filters are applied,
|
||||
which data is provided, and how it is formatted is arranged between Zorg op Orde and a party using the ZOO API.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
exportSources:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
agb:
|
||||
$ref: ../schemas/agb.yaml
|
||||
name:
|
||||
type: string
|
||||
description: Name of the GP practice
|
||||
available:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
filename:
|
||||
type: string
|
||||
description: |-
|
||||
This filename can be used in the `/agb/filename` endpoint to fetch this data.
|
||||
timestamp:
|
||||
type: string
|
||||
format: date-time
|
||||
description: |-
|
||||
The export contains data sourced from an EPD system at this time; it will not
|
||||
contain any medical dossier data later than this timestamp.
|
||||
required:
|
||||
- filename
|
||||
- timestamp
|
||||
required:
|
||||
- agb
|
||||
- name
|
||||
- available
|
||||
'401':
|
||||
$ref: '../zoo-api.yaml/#/components/responses/NoAuth'
|
||||
'403':
|
||||
$ref: '../zoo-api.yaml/#/components/responses/NoAccess'
|
||||
@ -0,0 +1,26 @@
|
||||
get:
|
||||
operationId: exportsDownload
|
||||
tags:
|
||||
- Exports
|
||||
summary: Download an available export
|
||||
parameters:
|
||||
- name: agb
|
||||
in: path
|
||||
description: The AGB code of the practice for the export file you want to download.
|
||||
required: true
|
||||
schema:
|
||||
$ref: ../schemas/agb.yaml
|
||||
- name: filename
|
||||
in: path
|
||||
required: true
|
||||
description: The name of the file as provided by the `/exports/available` endpoint.
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
'200':
|
||||
description: |-
|
||||
Fetches the requested HIS export as ZIP file.
|
||||
'401':
|
||||
$ref: '../zoo-api.yaml/#/components/responses/NoAuth'
|
||||
'403':
|
||||
$ref: '../zoo-api.yaml/#/components/responses/NoAccess'
|
||||
Loading…
Reference in New Issue