Skip to content

Instantly share code, notes, and snippets.

@dpritchett
Created March 26, 2020 15:33
Show Gist options
  • Save dpritchett/74e4d00ff7d67885edb12d3a9482c825 to your computer and use it in GitHub Desktop.
Save dpritchett/74e4d00ff7d67885edb12d3a9482c825 to your computer and use it in GitHub Desktop.
pulseox openapi3 yaml
title: User
type: object
properties:
uid:
type: string
description: Possibly received from our auth frontend.
diagnoses:
type: object
required:
- timestamp
properties:
timestamp:
type: string
format: date-time
questions:
type: array
items:
type: object
properties:
questionID:
type: string
answer:
type: string
timestamp:
type: string
format: date-time
required:
- questionID
- answer
- timestamp
status:
type: array
items:
type: object
properties:
action:
type: string
status:
type: string
timestamp:
type: string
format: date-time
required:
- action
- status
- timestamp
symptoms:
type: array
items:
type: object
properties:
symptom:
type: string
status:
type: array
items:
type: object
properties:
timestamp:
type: string
format: date-time
severity:
type: string
required:
- timestamp
- severity
required:
- symptom
readings:
type: array
items:
type: object
properties:
BPM:
type: string
SPO2:
type: string
Temperature:
type: string
location:
type: object
properties:
type:
type: string
enum:
- Point
coordinates:
type: array
maxItems: 2
minItems: 2
items:
type: number
timestamp:
type: string
format: date-time
required:
- type
- coordinates
- timestamp
required:
- BPM
- SPO2
- Temperature
age:
type: number
role:
type: string
gender:
type: string
schema_version:
type: integer
required:
- uid
- age
- gender
- schema_version
x-examples: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment