Skip to content

Commit

Permalink
Merge pull request #127 from tidepool-org/tk-scheduled-reports-cadence
Browse files Browse the repository at this point in the history
Add additional EHR configuration options
  • Loading branch information
toddkazakov authored Dec 4, 2024
2 parents 2958a6c + afb7dba commit 0561199
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 8 deletions.
48 changes: 40 additions & 8 deletions reference/clinic.v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1193,8 +1193,7 @@ paths:
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 @@ paths:
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 @@ -2330,11 +2328,11 @@ components:
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 @@ -2380,6 +2378,8 @@ components:
properties:
messageRef:
$ref: '#/components/schemas/EHRMatchMessageRef'
patients:
$ref: '#/components/schemas/EHRMatchRequestPatientsOptions'
EHRMatchResponse:
title: EHRMatchResponse
x-stoplight:
Expand Down Expand Up @@ -2492,6 +2492,38 @@ components:
properties:
sourceId:
$ref: ./clinic/models/clinicid.v1.yaml
EHRTagsSettings:
$ref: ./clinic/models/ehrtagssettings.v1.yaml
EHRMatchRequestPatientsOptions:
title: Patient Matching Options
x-stoplight:
id: 43n6iid3zghxm
type: object
properties:
criteria:
type: array
x-stoplight:
id: 1odrg3q8zzdil
description: Performs an "OR" match for each item in the array
minItems: 1
items:
x-stoplight:
id: mgi1k2jyojc4k
type: string
enum:
- MRN
- MRN_DOB
- DOB_FULLNAME
onUniqueMatch:
type: string
x-stoplight:
id: s9ujf5ce4vhc1
enum:
- ENABLE_REPORTS
- DISABLE_REPORTS
description: Optional action to be performed when a unique match has been found
required:
- criteria
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

0 comments on commit 0561199

Please sign in to comment.