[build] `npm run bundle` now works properly.

EH/population-statistics-authorisation
Reinier Zwitserloot 3 years ago
parent f09e1fc75d
commit fe0023c56a
No known key found for this signature in database
GPG Key ID: DADEDCAA42950296

1
.gitignore vendored

@ -1 +1,2 @@
/zoo-api.html
/zoo-api-bundle.yaml

@ -7,7 +7,7 @@
"private": true,
"scripts": {
"start": "npx @redocly/cli@^1.0.0-beta build-docs -o zoo-api.html",
"bundle": "npx @redocly/cli@^1.0.0-beta bundle -o dist.yaml",
"bundle": "npx @redocly/cli@^1.0.0-beta bundle -o zoo-api-bundle.yaml",
"test": "npx @redocly/cli@^1.0.0-beta lint"
}
}

@ -11,7 +11,7 @@ get:
schema:
type: string
example: 123456789
- $ref: '#/components/parameters/Authorization'
- $ref: '../zoo-api.yaml#/components/parameters/Authorization'
responses:
'200':
description: Basic personal information for the patient is returned.
@ -30,38 +30,38 @@ get:
- start_date
properties:
bsn:
$ref: 'schemas/PatIdentity.yaml#/bsn'
$ref: '../schemas/PatIdentity.yaml#/bsn'
name:
$ref: 'schemas/PatIdentity.yaml#/name'
$ref: '../schemas/PatIdentity.yaml#/name'
gender:
$ref: 'schemas/PatIdentity.yaml#/gender'
$ref: '../schemas/PatIdentity.yaml#/gender'
dob:
$ref: 'schemas/PatIdentity.yaml#/dob'
$ref: '../schemas/PatIdentity.yaml#/dob'
category:
$ref: 'schemas/PatIdentity.yaml#/category'
$ref: '../schemas/PatIdentity.yaml#/category'
doctor:
$ref: 'schemas/PatIdentity.yaml#/doctor'
$ref: '../schemas/PatIdentity.yaml#/doctor'
address:
$ref: 'schemas/PatIdentity.yaml#/address'
$ref: '../schemas/PatIdentity.yaml#/address'
contact:
$ref: 'schemas/PatIdentity.yaml#/contact'
$ref: '../schemas/PatIdentity.yaml#/contact'
insurance:
$ref: 'schemas/PatIdentity.yaml#/insurance'
$ref: '../schemas/PatIdentity.yaml#/insurance'
patid:
$ref: 'schemas/PatIdentity.yaml#/patid'
$ref: '../schemas/PatIdentity.yaml#/patid'
pat_unid:
$ref: 'schemas/PatIdentity.yaml#/pat_unid'
$ref: '../schemas/PatIdentity.yaml#/pat_unid'
start_date:
$ref: 'schemas/PatIdentity.yaml#/start_date'
$ref: '../schemas/PatIdentity.yaml#/start_date'
end_date:
$ref: 'schemas/PatIdentity.yaml#/end_date'
$ref: '../schemas/PatIdentity.yaml#/end_date'
end_reason:
$ref: 'schemas/PatIdentity.yaml#/end_reason'
$ref: '../schemas/PatIdentity.yaml#/end_reason'
'400':
description: The request is invalid; for example, it doesn't contain the required `BSN` parameter.
'401':
$ref: '#/components/responses/JwtFailure'
$ref: '../zoo-api.yaml#/components/responses/JwtFailure'
'403':
description: Indicated practice is known but has not authorized ZOO to share this information with signer.
'404':
$ref: '#/components/responses/PatNotFound'
$ref: '../zoo-api.yaml#/components/responses/PatNotFound'

@ -53,16 +53,16 @@ get:
example: diet-dm2
responses:
'400':
$ref: '#/components/responses/ReqFailure'
$ref: '../zoo-api.yaml#/components/responses/ReqFailure'
'401':
$ref: '#/components/responses/JwtFailure'
$ref: '../zoo-api.yaml#/components/responses/JwtFailure'
'403':
description: |-
Practice associated with the JWT is known but has not authorized ZOO to share information with signer for the provided purpose.
This error also occurs if the provided purpose isn't a known key.
'404':
$ref: '#/components/responses/PatNotFound'
$ref: '../zoo-api.yaml#/components/responses/PatNotFound'
'200':
description: |-
Detailed medical dossier information for the patient is returned.
@ -80,39 +80,39 @@ get:
type: object
properties:
bsn:
$ref: 'schemas/PatIdentity.yaml#/bsn'
$ref: '../schemas/PatIdentity.yaml#/bsn'
name:
$ref: 'schemas/PatIdentity.yaml#/name'
$ref: '../schemas/PatIdentity.yaml#/name'
gender:
$ref: 'schemas/PatIdentity.yaml#/gender'
$ref: '../schemas/PatIdentity.yaml#/gender'
dob:
$ref: 'schemas/PatIdentity.yaml#/dob'
$ref: '../schemas/PatIdentity.yaml#/dob'
category:
$ref: 'schemas/PatIdentity.yaml#/category'
$ref: '../schemas/PatIdentity.yaml#/category'
doctor:
$ref: 'schemas/PatIdentity.yaml#/doctor'
$ref: '../schemas/PatIdentity.yaml#/doctor'
address:
$ref: 'schemas/PatIdentity.yaml#/address'
$ref: '../schemas/PatIdentity.yaml#/address'
contact:
$ref: 'schemas/PatIdentity.yaml#/contact'
$ref: '../schemas/PatIdentity.yaml#/contact'
insurance:
$ref: 'schemas/PatIdentity.yaml#/insurance'
$ref: '../schemas/PatIdentity.yaml#/insurance'
patid:
$ref: 'schemas/PatIdentity.yaml#/patid'
$ref: '../schemas/PatIdentity.yaml#/patid'
pat_unid:
$ref: 'schemas/PatIdentity.yaml#/pat_unid'
$ref: '../schemas/PatIdentity.yaml#/pat_unid'
start_date:
$ref: 'schemas/PatIdentity.yaml#/start_date'
$ref: '../schemas/PatIdentity.yaml#/start_date'
end_date:
$ref: 'schemas/PatIdentity.yaml#/end_date'
$ref: '../schemas/PatIdentity.yaml#/end_date'
end_reason:
$ref: 'schemas/PatIdentity.yaml#/end_reason'
$ref: '../schemas/PatIdentity.yaml#/end_reason'
episodes:
type: array
description: |-
Lists chronic problems or other diagnosed medical issues (dutch: _behandelingen / episodes / problemen_) based on ICPC1-NL.
items:
$ref: 'schemas/med_dossier/Episode.yaml'
$ref: '../schemas/med_dossier/Episode.yaml'
measurements:
type: array
description: |-
@ -121,7 +121,7 @@ get:
(such as 'responsible for chronic diabetes care: Specialist'), and answers to questionnaires such as 'do you have trouble
walking up stairs').
items:
$ref: 'schemas/med_dossier/Measurement.yaml'
$ref: '../schemas/med_dossier/Measurement.yaml'
feats:
type: array
description: |-
@ -130,19 +130,19 @@ get:
* material that is paid separately (such some nitrogen to burn off a wart)
* 'subscription' fees such as the standard subscription fee as well as extras charged for each patient per quarter (dutch: _inschrijf_ en _module_ tarieven).
items:
$ref: 'schemas/med_dossier/Feat.yaml'
$ref: '../schemas/med_dossier/Feat.yaml'
correspondence:
type: array
description: |-
Lists records of correspondence (excluding correspondence within the GP office and correspondence with the patient themselves).
items:
$ref: 'schemas/med_dossier/Correspondence.yaml'
$ref: '../schemas/med_dossier/Correspondence.yaml'
medications:
type: array
description: |-
Lists medication, either prescribed, or delivered to the patient (or both, of course).
items:
$ref: 'schemas/med_dossier/Medication.yaml'
$ref: '../schemas/med_dossier/Medication.yaml'
contraindications:
type: array
description: |-
@ -150,7 +150,7 @@ get:
this patient's information is shown to a practicioner. Generally simply is an alternate take on a list of problems
a patient suffers from; specifically issues that may affect unrelated care (such as allergies, mental issues, and so on).
items:
$ref: 'schemas/med_dossier/Contraindication.yaml'
$ref: '../schemas/med_dossier/Contraindication.yaml'
journals:
type: array
description: |-
@ -158,4 +158,4 @@ get:
patient themselves tells the practicioner (can include verbatim copies of what the patient wrote for text-based telehealth systems),
as well as explaining in text the conclusions included in a lab report received via mail.
items:
$ref: 'schemas/med_dossier/Journal.yaml'
$ref: '../schemas/med_dossier/Journal.yaml'

@ -20,8 +20,8 @@ get:
programs:
type: array
items:
$ref: '#/components/schemas/CareProgram'
$ref: '../schemas/CareProgram.yaml'
'401':
$ref: '#/components/responses/NoAuth'
$ref: '../zoo-api.yaml/#/components/responses/NoAuth'
'403':
$ref: '#/components/responses/NoAccess'
$ref: '../zoo-api.yaml/#/components/responses/NoAccess'

@ -46,6 +46,6 @@ put:
description: Whether this care program should be default-shown or not.
type: boolean
'401':
$ref: '#/components/responses/NoAuth'
$ref: '../zoo-api.yaml/#/components/responses/NoAuth'
'403':
$ref: '#/components/responses/NoAccess'
$ref: '../zoo-api.yaml/#/components/responses/NoAccess'

@ -31,11 +31,11 @@ get:
content:
application/json:
schema:
$ref: '#/components/schemas/IndicatorSet'
$ref: '../schemas/IndicatorSet.yaml'
'401':
$ref: '#/components/responses/NoAuth'
$ref: '../zoo-api.yaml/#/components/responses/NoAuth'
'403':
$ref: '#/components/responses/NoAccess'
$ref: '../zoo-api.yaml#/components/responses/NoAccess'
'404':
description: The provided `setKey` doesn't refer to a valid program.

@ -35,4 +35,4 @@ properties:
items:
type: array
items:
$ref: '#/components/schemas/Indicator'
$ref: 'Indicator.yaml'

@ -3,6 +3,8 @@ info:
title: Zorg op Orde API
description: |-
Copyright Zorg op Orde All rights reserved.
This documentation is available in <a href="/zoo-api-bundle.yaml">OpenAPI 3.1.0 yaml format</a>.
contact:
name: Zorg op Orde
email: api@zorgoporde.nl
@ -49,16 +51,6 @@ paths:
/qoc/indicatorset/{setKey}:
$ref: 'paths/qoc_indicatorset_{setKey}.yaml'
components:
schemas:
IndicatorSet:
$ref: 'schemas/IndicatorSet.yaml'
Indicator:
$ref: 'schemas/Indicator.yaml'
CareProgram:
$ref: 'schemas/CareProgram.yaml'
CareProgramSet:
$ref: 'schemas/CareProgramSet.yaml'
parameters:
Authorization:
name: Authorization
@ -79,7 +71,6 @@ components:
type: string
example: >-
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJraWQiOiJaT08tQVBJLVBLSS1JRCIsImFnYiI6IjAxMDEyMzQ1IiwiaWF0IjoxNTE2MjM5MDIyLCJqdGkiOiJ0MTIzNC01Njc4LUFCQ0QifQ.wTesCfFTq1Mz8z7hUWU6zzKSc3dopWnpeETR7eDzFtc
responses:
ReqFailure:
description: |-

Loading…
Cancel
Save