Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional EHR configuration options #127

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions reference/clinic.v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1193,8 +1193,7 @@
application/json:
schema:
$ref: '#/components/schemas/PatientReviews'
description: |-
Update the patient's last reviewed date and clinician ID
description: Update the patient's last reviewed date and clinician ID
tags:
- Clinics
delete:
Expand All @@ -1207,12 +1206,11 @@
application/json:
schema:
$ref: '#/components/schemas/PatientReviews'
'409':
description: Cannot revert a different clinician's review
'404':
description: No review to delete
description: |-
Revert the patient's last reviewed date to the previous set
'409':
description: Cannot revert a different clinician's review
description: Revert the patient's last reviewed date to the previous set
tags:
- Clinics
'/v1/clinics/{clinicId}/patients/{patientId}/permissions':
Expand Down Expand Up @@ -1967,7 +1965,7 @@

https://sandbox.xealth.io/app/api-docs#tag/Digital-Care/paths/preorder/post
/v1/xealth/programs:
put:

Check warning on line 1968 in reference/clinic.v1.yaml

View workflow job for this annotation

GitHub Actions / check / check (check_specs)

operation-description Operation "description" must be present and non-empty string.
summary: Get Programs
operationId: XealthGetPrograms
responses:
Expand All @@ -1984,7 +1982,7 @@
responses:
'200':
description: OK
description: ''

Check warning on line 1985 in reference/clinic.v1.yaml

View workflow job for this annotation

GitHub Actions / check / check (check_specs)

operation-description Operation "description" must be present and non-empty string.
tags:
- Clinics
- Internal
Expand All @@ -1996,7 +1994,7 @@
responses:
'200':
description: OK
description: ''

Check warning on line 1997 in reference/clinic.v1.yaml

View workflow job for this annotation

GitHub Actions / check / check (check_specs)

operation-description Operation "description" must be present and non-empty string.
tags:
- Clinics
- Internal
Expand Down Expand Up @@ -2127,11 +2125,11 @@
$ref: ./clinic/models/patient.v1.yaml
PatientTag:
$ref: ./clinic/models/patienttag.v1.yaml
PatientTags:

Check warning on line 2128 in reference/clinic.v1.yaml

View workflow job for this annotation

GitHub Actions / check / check (check_specs)

oas3-unused-component Potentially unused component has been detected.
type: array
items:
$ref: '#/components/schemas/PatientTag'
DateTime:

Check warning on line 2132 in reference/clinic.v1.yaml

View workflow job for this annotation

GitHub Actions / check / check (check_specs)

oas3-unused-component Potentially unused component has been detected.
$ref: ./common/models/datetime.v1.yaml
DataSource:
$ref: ./clinic/models/datasource.v1.yaml
Expand All @@ -2152,13 +2150,13 @@
minItems: 1
maxItems: 1000
uniqueItems: true
ClinicianRoles:

Check warning on line 2153 in reference/clinic.v1.yaml

View workflow job for this annotation

GitHub Actions / check / check (check_specs)

oas3-unused-component Potentially unused component has been detected.
$ref: ./clinic/models/clinicianroles.v1.yaml
PhoneNumber:

Check warning on line 2155 in reference/clinic.v1.yaml

View workflow job for this annotation

GitHub Actions / check / check (check_specs)

oas3-unused-component Potentially unused component has been detected.
$ref: ./clinic/models/phonenumber.v1.yaml
PatientPermissions:
$ref: ./clinic/models/patientpermissions.v1.yaml
Id:

Check warning on line 2159 in reference/clinic.v1.yaml

View workflow job for this annotation

GitHub Actions / check / check (check_specs)

oas3-unused-component Potentially unused component has been detected.
$ref: ./clinic/models/clinicid.v1.yaml
PatientClinicRelationship:
title: PatientClinicRelationship
Expand Down Expand Up @@ -2265,7 +2263,7 @@
$ref: ./clinic/models/migrationstatus.v1.yaml
required:
- status
MigrationStatus:

Check warning on line 2266 in reference/clinic.v1.yaml

View workflow job for this annotation

GitHub Actions / check / check (check_specs)

oas3-unused-component Potentially unused component has been detected.
$ref: ./clinic/models/migrationstatus.v1.yaml
Meta:
title: Meta
Expand Down Expand Up @@ -2301,7 +2299,7 @@
type: boolean
PatientTagIds:
$ref: ./clinic/models/patienttagids.v1.yaml
TideConfig:

Check warning on line 2302 in reference/clinic.v1.yaml

View workflow job for this annotation

GitHub Actions / check / check (check_specs)

oas3-unused-component Potentially unused component has been detected.
$ref: ./clinic/models/tide/config.v1.yaml
TideFilters:
$ref: ./clinic/models/tide/filters.v1.yaml
Expand Down Expand Up @@ -2330,11 +2328,11 @@
PatientSummary:
$ref: ./clinic/models/summaries/patientsummary.v1.yaml
PatientReview:
$ref: "./clinic/models/patientreview.v1.yaml"
$ref: ./clinic/models/patientreview.v1.yaml
PatientReviews:
type: array
items:
$ref: "#/components/schemas/PatientReview"
$ref: '#/components/schemas/PatientReview'
FloatFilter:
type: string
pattern: '^(>=|>|<=|<)[+-]?((\d+(\.\d*)?)|(\.\d+))$'
Expand Down Expand Up @@ -2492,6 +2490,8 @@
properties:
sourceId:
$ref: ./clinic/models/clinicid.v1.yaml
EHRTagsSettings:
$ref: ./clinic/models/ehrtagssettings.v1.yaml
securitySchemes:
sessionToken:
name: x-tidepool-session-token
Expand Down
5 changes: 5 additions & 0 deletions reference/clinic/models/ehrsettings.v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,15 @@ properties:
x-stoplight:
id: lgfrpsps4x37a
description: Scheduled Report Settings
tags:
$ref: ./ehrtagssettings.v1.yaml
x-stoplight:
id: hp97ilzsssprv
required:
- enabled
- sourceId
- procedureCodes
- mrnIdType
- provider
- scheduledReports
- tags
21 changes: 21 additions & 0 deletions reference/clinic/models/ehrtagssettings.v1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
title: EHR Tags Settings
x-stoplight:
id: w3h05rpqc45iv
type: object
description: This configuration only applies to integrations using Redox Data Model
properties:
codes:
type: array
x-stoplight:
id: fcr5es83pzi6r
description: Codes of the clinical info items used to select the tags to associate with the patient. If defined, all tags of a patient will be replaced every time an enrollment order for the patient is processed.
items:
x-stoplight:
id: h40mu6ujxknzf
type: string
separator:
type: string
x-stoplight:
id: ic7t703igp2rn
description: 'If set to a non-empty string, the tag values will be split using this separator'
minLength: 1
11 changes: 11 additions & 0 deletions reference/clinic/models/scheduledreports.v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,16 @@ properties:
- New
- Replace
default: New
cadence:
type: string
x-stoplight:
id: ibtk59wcgho89
enum:
- 7d
- 14d
- 30d
- DISABLED
description: The cadence of the scheduled reports. Disabling the scheduled reports does not affect reports which are generated after a dataset is uploaded.
required:
- onUploadEnabled
- cadence
Loading