diff --git a/schemas/fundus-status.yaml b/schemas/fundus-status.yaml index d591b36..bf258d3 100644 --- a/schemas/fundus-status.yaml +++ b/schemas/fundus-status.yaml @@ -74,9 +74,6 @@ properties: - careprogram - director - lastEval - - retinoVal - - left - - right properties: careprogram: description: |- @@ -123,18 +120,17 @@ properties: description: |- The normalized retinopathy category for the worst eye, in terms of the 2017 Retinopathy level standard (richtlijn Diabetische Retinopathie 2017). - * `-1` – retinopathy level is unknown or cannot be determined. * `0` – Retinopathy level R0: No visible retinopathy. * `1` - Retinopathy level R1: Mild background retinopathy. * `2` - Retinopathy level R2: Pre-proliferative retinopathy. * `3` - Retinopathy level R3: Proliferative retinopathy. type: integer format: int32 - minimum: -1 + minimum: 0 maximum: 3 left: description: |- - Details about specifically the left eye. + Details about specifically the left eye. Only present if a left eye retinopathy measurement is available. type: object required: - lastEval @@ -147,16 +143,8 @@ properties: description: Same as previous level, specifically for left eye. type: integer format: int32 - minimum: -1 + minimum: 0 maximum: 3 - note: - description: |- - If present, describes why this measurement is missing, unclear, or suboptimal. - - For example, might mention that the result from the lab is likely available, but has not - been properly registered in the medical dossier, or that a result is available but only after - the provided `refDate`. In dutch, and human readable. - type: string nhgCode: description: |- If present, the NHG memocode used to register the retinopathy level. Will be in the terms dictionary. @@ -181,10 +169,8 @@ properties: retinoVal: type: integer format: int32 - minimum: -1 + minimum: 0 maximum: 3 - note: - type: string nhgCode: type: string nhgResult: @@ -192,7 +178,10 @@ properties: format: int32 followup: type: object - description: Contains information about advice given to patient about scheduling future fundus inspections (aka fundus followup). + description: Contains information about advice given to patient about scheduling future fundus inspections (aka fundus followup). Only present if a followup decision is registered. + required: + - nhgResult + - timestamp properties: nhgResult: description: |- @@ -227,3 +216,11 @@ properties: advice, is provided (e.g. if on April 5th the followup advice is 'within one month', this value will be 'May 5th'). Will be the sentinel value 'Jan 1st, 9999' if no followup advice is needed. + note: + description: |- + If present, describes why this measurement is missing, unclear, or suboptimal. + + For example, might mention that the result from the lab is likely available, but has not + been properly registered in the medical dossier, or that a result is available but only after + the provided `refDate`. In dutch, and human readable. + type: string