From a51f63348e3db036f54e08c6306bd2b5a4aeeda7 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Tue, 19 Dec 2023 05:07:09 +0100 Subject: [PATCH] [api] Add details about GP IS --- examples/qoc_indicatorset.1.json | 4 ++++ schemas/GPIS.yaml | 13 +++++++++++++ schemas/IndicatorSet.yaml | 2 ++ 3 files changed, 19 insertions(+) create mode 100644 schemas/GPIS.yaml diff --git a/examples/qoc_indicatorset.1.json b/examples/qoc_indicatorset.1.json index ee294a3..c514b9c 100644 --- a/examples/qoc_indicatorset.1.json +++ b/examples/qoc_indicatorset.1.json @@ -2,6 +2,10 @@ "key": "ZOO-dm", "name": "Diabetes Mellitus type 2", "refDate": "2023-07-01", + "gpis": { + "gpisType": "HealthConnected", + "timestamp": "2023-06-29T14:45:00.000Z" + }, "calculating": 1, "chapters": [ { diff --git a/schemas/GPIS.yaml b/schemas/GPIS.yaml new file mode 100644 index 0000000..e0c9c1d --- /dev/null +++ b/schemas/GPIS.yaml @@ -0,0 +1,13 @@ +description: The source of the medical data used to produce this report (which General Practitioner Information System used, and when the data was provided). +type: object +properties: + gpisType: + description: The type of GP Information System + type: string + timestamp: + description: |- + The report is based on dossier data as it was on this timestamp; due to inaccuracies by GP information systems that source the data, + this value is not always accurate and can be off by as much as a week. + type: string + format: dateTime + example: 2023-04-01T12:30:00.000Z diff --git a/schemas/IndicatorSet.yaml b/schemas/IndicatorSet.yaml index ff0d445..3c7c6c7 100644 --- a/schemas/IndicatorSet.yaml +++ b/schemas/IndicatorSet.yaml @@ -2,6 +2,8 @@ description: |- A report about a care program based on showing a number of ratios, such as 'how many people in your practice have diabetes', or 'for all diabetes patients in your care with a recent blood pressure measurement, how do these blood pressure measurements split into "problematic" / "concern" / "okay" categories type: object properties: + gpis: + $ref: 'GPIS.yaml' key: description: Unique identifier, not to be shown to the user, for referring to this indicator set in other API calls type: string