@brightoutcome/guidistry-client 0.11.1 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/schema.d.ts +1966 -140
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -341,6 +341,43 @@ export interface paths {
341
341
  patch?: never;
342
342
  trace?: never;
343
343
  };
344
+ "/v1/alerts": {
345
+ parameters: {
346
+ query?: never;
347
+ header?: never;
348
+ path?: never;
349
+ cookie?: never;
350
+ };
351
+ /**
352
+ * Questionnaire alerts in your cohorts
353
+ * @description Safety first, then urgent, then watch; newest first within each.
354
+ */
355
+ get: operations["list_alerts_v1_alerts_get"];
356
+ put?: never;
357
+ post?: never;
358
+ delete?: never;
359
+ options?: never;
360
+ head?: never;
361
+ patch?: never;
362
+ trace?: never;
363
+ };
364
+ "/v1/alerts/{alert_id}/events": {
365
+ parameters: {
366
+ query?: never;
367
+ header?: never;
368
+ path?: never;
369
+ cookie?: never;
370
+ };
371
+ get?: never;
372
+ put?: never;
373
+ /** Acknowledge, close (with an outcome) or reopen an alert */
374
+ post: operations["alert_event_v1_alerts__alert_id__events_post"];
375
+ delete?: never;
376
+ options?: never;
377
+ head?: never;
378
+ patch?: never;
379
+ trace?: never;
380
+ };
344
381
  "/v1/audit-events": {
345
382
  parameters: {
346
383
  query?: never;
@@ -439,6 +476,40 @@ export interface paths {
439
476
  patch?: never;
440
477
  trace?: never;
441
478
  };
479
+ "/v1/cohorts/{cohort_id}/questionnaires": {
480
+ parameters: {
481
+ query?: never;
482
+ header?: never;
483
+ path?: never;
484
+ cookie?: never;
485
+ };
486
+ /** Each member's questionnaires: due now, last answered, missed in a row, alerts */
487
+ get: operations["cohort_questionnaires_v1_cohorts__cohort_id__questionnaires_get"];
488
+ put?: never;
489
+ post?: never;
490
+ delete?: never;
491
+ options?: never;
492
+ head?: never;
493
+ patch?: never;
494
+ trace?: never;
495
+ };
496
+ "/v1/cohorts/{cohort_id}/review-summary": {
497
+ parameters: {
498
+ query?: never;
499
+ header?: never;
500
+ path?: never;
501
+ cookie?: never;
502
+ };
503
+ /** After-visit review totals for a cohort */
504
+ get: operations["cohort_review_summary_v1_cohorts__cohort_id__review_summary_get"];
505
+ put?: never;
506
+ post?: never;
507
+ delete?: never;
508
+ options?: never;
509
+ head?: never;
510
+ patch?: never;
511
+ trace?: never;
512
+ };
442
513
  "/v1/cohorts/{cohort_id}/settings": {
443
514
  parameters: {
444
515
  query?: never;
@@ -1012,6 +1083,74 @@ export interface paths {
1012
1083
  patch?: never;
1013
1084
  trace?: never;
1014
1085
  };
1086
+ "/v1/enrollments/{enrollment_id}/questionnaire-requests": {
1087
+ parameters: {
1088
+ query?: never;
1089
+ header?: never;
1090
+ path?: never;
1091
+ cookie?: never;
1092
+ };
1093
+ /** Requests sent to this patient, newest first */
1094
+ get: operations["list_requests_v1_enrollments__enrollment_id__questionnaire_requests_get"];
1095
+ put?: never;
1096
+ /**
1097
+ * Ask a patient for questionnaires: at sign-in, or by an emailed link
1098
+ * @description ``login_prompt``: shown after the patient signs in and the site agreement.
1099
+ * ``email_link``: an email with a single-use link (expires after
1100
+ * ``questionnaires.link_expiry_hours``); the email has the practice's name and no health
1101
+ * details; the link opens only these questionnaires and shows no name or earlier answers.
1102
+ */
1103
+ post: operations["create_request_v1_enrollments__enrollment_id__questionnaire_requests_post"];
1104
+ delete?: never;
1105
+ options?: never;
1106
+ head?: never;
1107
+ patch?: never;
1108
+ trace?: never;
1109
+ };
1110
+ "/v1/enrollments/{enrollment_id}/questionnaire-responses": {
1111
+ parameters: {
1112
+ query?: never;
1113
+ header?: never;
1114
+ path?: never;
1115
+ cookie?: never;
1116
+ };
1117
+ /** Answers and scores, newest first (own, or the care team's patients) */
1118
+ get: operations["list_responses_v1_enrollments__enrollment_id__questionnaire_responses_get"];
1119
+ put?: never;
1120
+ /**
1121
+ * Answer a questionnaire (patients), or enter the answers by phone or in person
1122
+ * @description The server scores every answer and runs the alert rules in the same transaction. A
1123
+ * re-send with the same ``client_submission_id`` returns the first answer. A positive PHQ-2
1124
+ * (or PHQ-9 item 9 above 0) returns ``safety``: show its message as is.
1125
+ */
1126
+ post: operations["submit_response_v1_enrollments__enrollment_id__questionnaire_responses_post"];
1127
+ delete?: never;
1128
+ options?: never;
1129
+ head?: never;
1130
+ patch?: never;
1131
+ trace?: never;
1132
+ };
1133
+ "/v1/enrollments/{enrollment_id}/questionnaires": {
1134
+ parameters: {
1135
+ query?: never;
1136
+ header?: never;
1137
+ path?: never;
1138
+ cookie?: never;
1139
+ };
1140
+ /**
1141
+ * What's due: check-ins, timepoints and open requests
1142
+ * @description Calculated from the schedule, visits, pauses and answers (last 60 days and what opens
1143
+ * next). Reading also raises the missed-check-ins alert when it's due.
1144
+ */
1145
+ get: operations["list_questionnaires_v1_enrollments__enrollment_id__questionnaires_get"];
1146
+ put?: never;
1147
+ post?: never;
1148
+ delete?: never;
1149
+ options?: never;
1150
+ head?: never;
1151
+ patch?: never;
1152
+ trace?: never;
1153
+ };
1015
1154
  "/v1/enrollments/{enrollment_id}/reviews": {
1016
1155
  parameters: {
1017
1156
  query?: never;
@@ -1253,6 +1392,28 @@ export interface paths {
1253
1392
  patch?: never;
1254
1393
  trace?: never;
1255
1394
  };
1395
+ "/v1/instruments": {
1396
+ parameters: {
1397
+ query?: never;
1398
+ header?: never;
1399
+ path?: never;
1400
+ cookie?: never;
1401
+ };
1402
+ /**
1403
+ * Questionnaires that can be assigned here (library and PROMIS)
1404
+ * @description Filtered by licence: public and BrightOutcome-licensed instruments, the practice's
1405
+ * own, and those licensed to it. With ``q``, PROMIS forms and batteries from the AC API
1406
+ * are searched too (imported into the library on first use).
1407
+ */
1408
+ get: operations["list_instruments_v1_instruments_get"];
1409
+ put?: never;
1410
+ post?: never;
1411
+ delete?: never;
1412
+ options?: never;
1413
+ head?: never;
1414
+ patch?: never;
1415
+ trace?: never;
1416
+ };
1256
1417
  "/v1/invitations": {
1257
1418
  parameters: {
1258
1419
  query?: never;
@@ -1643,6 +1804,23 @@ export interface paths {
1643
1804
  patch?: never;
1644
1805
  trace?: never;
1645
1806
  };
1807
+ "/v1/patients/{patient_id}/questionnaires": {
1808
+ parameters: {
1809
+ query?: never;
1810
+ header?: never;
1811
+ path?: never;
1812
+ cookie?: never;
1813
+ };
1814
+ /** A patient's answers and scores across their enrollments you can see */
1815
+ get: operations["patient_responses_v1_patients__patient_id__questionnaires_get"];
1816
+ put?: never;
1817
+ post?: never;
1818
+ delete?: never;
1819
+ options?: never;
1820
+ head?: never;
1821
+ patch?: never;
1822
+ trace?: never;
1823
+ };
1646
1824
  "/v1/patients/{record_id}": {
1647
1825
  parameters: {
1648
1826
  query?: never;
@@ -1856,6 +2034,91 @@ export interface paths {
1856
2034
  patch?: never;
1857
2035
  trace?: never;
1858
2036
  };
2037
+ "/v1/programs/{program_id}/review-summary": {
2038
+ parameters: {
2039
+ query?: never;
2040
+ header?: never;
2041
+ path?: never;
2042
+ cookie?: never;
2043
+ };
2044
+ /** After-visit review totals for a program */
2045
+ get: operations["program_review_summary_v1_programs__program_id__review_summary_get"];
2046
+ put?: never;
2047
+ post?: never;
2048
+ delete?: never;
2049
+ options?: never;
2050
+ head?: never;
2051
+ patch?: never;
2052
+ trace?: never;
2053
+ };
2054
+ "/v1/questionnaire-forms/{code}": {
2055
+ parameters: {
2056
+ query?: never;
2057
+ header?: never;
2058
+ path?: never;
2059
+ cookie?: never;
2060
+ };
2061
+ /** A questionnaire's exact wording, options and attribution */
2062
+ get: operations["get_form_v1_questionnaire_forms__code__get"];
2063
+ put?: never;
2064
+ post?: never;
2065
+ delete?: never;
2066
+ options?: never;
2067
+ head?: never;
2068
+ patch?: never;
2069
+ trace?: never;
2070
+ };
2071
+ "/v1/questionnaire-links/{token}": {
2072
+ parameters: {
2073
+ query?: never;
2074
+ header?: never;
2075
+ path?: never;
2076
+ cookie?: never;
2077
+ };
2078
+ /** Open a questionnaire link (no sign-in) */
2079
+ get: operations["open_link_v1_questionnaire_links__token__get"];
2080
+ put?: never;
2081
+ post?: never;
2082
+ delete?: never;
2083
+ options?: never;
2084
+ head?: never;
2085
+ patch?: never;
2086
+ trace?: never;
2087
+ };
2088
+ "/v1/questionnaire-links/{token}/responses": {
2089
+ parameters: {
2090
+ query?: never;
2091
+ header?: never;
2092
+ path?: never;
2093
+ cookie?: never;
2094
+ };
2095
+ get?: never;
2096
+ put?: never;
2097
+ /** Answer one questionnaire of a link (no sign-in) */
2098
+ post: operations["answer_link_v1_questionnaire_links__token__responses_post"];
2099
+ delete?: never;
2100
+ options?: never;
2101
+ head?: never;
2102
+ patch?: never;
2103
+ trace?: never;
2104
+ };
2105
+ "/v1/questionnaire-requests/{request_id}/cancel": {
2106
+ parameters: {
2107
+ query?: never;
2108
+ header?: never;
2109
+ path?: never;
2110
+ cookie?: never;
2111
+ };
2112
+ get?: never;
2113
+ put?: never;
2114
+ /** Cancel an open request (its link stops working) */
2115
+ post: operations["cancel_request_v1_questionnaire_requests__request_id__cancel_post"];
2116
+ delete?: never;
2117
+ options?: never;
2118
+ head?: never;
2119
+ patch?: never;
2120
+ trace?: never;
2121
+ };
1859
2122
  "/v1/roles": {
1860
2123
  parameters: {
1861
2124
  query?: never;
@@ -2274,6 +2537,27 @@ export interface paths {
2274
2537
  patch?: never;
2275
2538
  trace?: never;
2276
2539
  };
2540
+ "/v1/visits/{visit_id}/questionnaire-skips": {
2541
+ parameters: {
2542
+ query?: never;
2543
+ header?: never;
2544
+ path?: never;
2545
+ cookie?: never;
2546
+ };
2547
+ get?: never;
2548
+ put?: never;
2549
+ /**
2550
+ * 'Answer after the visit' in the join step (patients)
2551
+ * @description Recorded so the care team can see it; the questionnaires stay due until their window
2552
+ * closes.
2553
+ */
2554
+ post: operations["skip_for_now_v1_visits__visit_id__questionnaire_skips_post"];
2555
+ delete?: never;
2556
+ options?: never;
2557
+ head?: never;
2558
+ patch?: never;
2559
+ trace?: never;
2560
+ };
2277
2561
  "/v1/visits/{visit_id}/readiness": {
2278
2562
  parameters: {
2279
2563
  query?: never;
@@ -2281,7 +2565,7 @@ export interface paths {
2281
2565
  path?: never;
2282
2566
  cookie?: never;
2283
2567
  };
2284
- /** Session prep: waivers now; pre-work and questionnaires in later modules */
2568
+ /** Session prep: waivers, pre-work and questionnaires */
2285
2569
  get: operations["readiness_v1_visits__visit_id__readiness_get"];
2286
2570
  put?: never;
2287
2571
  post?: never;
@@ -2312,6 +2596,41 @@ export interface paths {
2312
2596
  patch?: never;
2313
2597
  trace?: never;
2314
2598
  };
2599
+ "/v1/visits/{visit_id}/review": {
2600
+ parameters: {
2601
+ query?: never;
2602
+ header?: never;
2603
+ path?: never;
2604
+ cookie?: never;
2605
+ };
2606
+ /** The after-visit review: questions and your own answers (patients) */
2607
+ get: operations["get_review_v1_visits__visit_id__review_get"];
2608
+ put?: never;
2609
+ /** Answer (or change) your after-visit review */
2610
+ post: operations["post_review_v1_visits__visit_id__review_post"];
2611
+ delete?: never;
2612
+ options?: never;
2613
+ head?: never;
2614
+ patch?: never;
2615
+ trace?: never;
2616
+ };
2617
+ "/v1/visits/{visit_id}/review-summary": {
2618
+ parameters: {
2619
+ query?: never;
2620
+ header?: never;
2621
+ path?: never;
2622
+ cookie?: never;
2623
+ };
2624
+ /** After-visit review totals for a visit (only with enough answers) */
2625
+ get: operations["visit_review_summary_v1_visits__visit_id__review_summary_get"];
2626
+ put?: never;
2627
+ post?: never;
2628
+ delete?: never;
2629
+ options?: never;
2630
+ head?: never;
2631
+ patch?: never;
2632
+ trace?: never;
2633
+ };
2315
2634
  "/v1/writing-attachments/{attachment_id}/complete": {
2316
2635
  parameters: {
2317
2636
  query?: never;
@@ -2742,15 +3061,128 @@ export interface components {
2742
3061
  /** Title */
2743
3062
  title: string;
2744
3063
  };
2745
- /** AppliedOut */
2746
- AppliedOut: {
2747
- close_out: components["schemas"]["CloseOutOut"];
3064
+ /** AlertEventIn */
3065
+ AlertEventIn: {
2748
3066
  /**
2749
- * Set
2750
- * @description Enrollments whose rows this set
3067
+ * Kind
3068
+ * @enum {string}
2751
3069
  */
2752
- set: string[];
2753
- };
3070
+ kind: "acknowledged" | "closed" | "reopened";
3071
+ /**
3072
+ * Note
3073
+ * @description Encrypted
3074
+ */
3075
+ note?: string | null;
3076
+ /**
3077
+ * Outcome
3078
+ * @description Required to close
3079
+ */
3080
+ outcome?: ("reached" | "phq9_done" | "referred" | "followup_scheduled" | "declined" | "not_reached" | "other") | null;
3081
+ };
3082
+ /** AlertEventOut */
3083
+ AlertEventOut: {
3084
+ /**
3085
+ * At
3086
+ * Format: date-time
3087
+ */
3088
+ at: string;
3089
+ /** By Person Id */
3090
+ by_person_id: string | null;
3091
+ /**
3092
+ * Kind
3093
+ * @enum {string}
3094
+ */
3095
+ kind: "raised" | "repeated" | "acknowledged" | "closed" | "reopened" | "emailed";
3096
+ /** Note */
3097
+ note: string | null;
3098
+ /** Outcome */
3099
+ outcome: ("reached" | "phq9_done" | "referred" | "followup_scheduled" | "declined" | "not_reached" | "other") | null;
3100
+ /** Response Id */
3101
+ response_id: string | null;
3102
+ };
3103
+ /** AlertOut */
3104
+ AlertOut: {
3105
+ /** Closed At */
3106
+ closed_at: string | null;
3107
+ /**
3108
+ * Cohort Id
3109
+ * Format: uuid
3110
+ */
3111
+ cohort_id: string;
3112
+ /** Display Name */
3113
+ display_name: string;
3114
+ /**
3115
+ * Enrollment Id
3116
+ * Format: uuid
3117
+ */
3118
+ enrollment_id: string;
3119
+ /** Events */
3120
+ events?: components["schemas"]["AlertEventOut"][];
3121
+ /**
3122
+ * Id
3123
+ * Format: uuid
3124
+ */
3125
+ id: string;
3126
+ /**
3127
+ * Patient Id
3128
+ * Format: uuid
3129
+ */
3130
+ patient_id: string;
3131
+ /**
3132
+ * Raised At
3133
+ * Format: date-time
3134
+ */
3135
+ raised_at: string;
3136
+ /**
3137
+ * Rule
3138
+ * @enum {string}
3139
+ */
3140
+ rule: "phq2_positive" | "phq9_item9" | "peg_high" | "peg_rise" | "checkins_missed";
3141
+ /**
3142
+ * Severity
3143
+ * @enum {string}
3144
+ */
3145
+ severity: "safety" | "urgent" | "watch";
3146
+ /** Source Response Id */
3147
+ source_response_id: string | null;
3148
+ /**
3149
+ * Status
3150
+ * @enum {string}
3151
+ */
3152
+ status: "open" | "closed";
3153
+ /** Threshold */
3154
+ threshold: {
3155
+ [key: string]: unknown;
3156
+ };
3157
+ };
3158
+ /** AlertPage */
3159
+ AlertPage: {
3160
+ /** Items */
3161
+ items: components["schemas"]["AlertOut"][];
3162
+ };
3163
+ /** AnswerIn */
3164
+ AnswerIn: {
3165
+ /** Item Id */
3166
+ item_id: string;
3167
+ /**
3168
+ * Skipped
3169
+ * @default false
3170
+ */
3171
+ skipped: boolean;
3172
+ /** Text */
3173
+ text?: string | null;
3174
+ /** Value */
3175
+ value?: number | null;
3176
+ };
3177
+ /** AppliedOut */
3178
+ AppliedOut: {
3179
+ close_out: components["schemas"]["CloseOutOut"];
3180
+ /**
3181
+ * Set
3182
+ * @description Enrollments whose rows this set
3183
+ */
3184
+ set: string[];
3185
+ };
2754
3186
  /** ApplyCode */
2755
3187
  ApplyCode: {
2756
3188
  /** Code */
@@ -3154,6 +3586,20 @@ export interface components {
3154
3586
  /** Stalled */
3155
3587
  stalled: number;
3156
3588
  };
3589
+ /** CohortQuestionnairesOut */
3590
+ CohortQuestionnairesOut: {
3591
+ /**
3592
+ * Cohort Id
3593
+ * Format: uuid
3594
+ */
3595
+ cohort_id: string;
3596
+ /** Members */
3597
+ members: components["schemas"]["MemberStatus"][];
3598
+ /** Schedule */
3599
+ schedule: {
3600
+ [key: string]: unknown;
3601
+ }[];
3602
+ };
3157
3603
  /** CohortUpdate */
3158
3604
  CohortUpdate: {
3159
3605
  /** Capacity */
@@ -3487,6 +3933,21 @@ export interface components {
3487
3933
  /** Status */
3488
3934
  status?: ("active" | "archived") | null;
3489
3935
  };
3936
+ /** Done */
3937
+ Done: {
3938
+ /** Code */
3939
+ code: string;
3940
+ /**
3941
+ * Response Id
3942
+ * Format: uuid
3943
+ */
3944
+ response_id: string;
3945
+ /**
3946
+ * Submitted At
3947
+ * Format: date-time
3948
+ */
3949
+ submitted_at: string;
3950
+ };
3490
3951
  /** DraftIn */
3491
3952
  DraftIn: {
3492
3953
  /** Body Md */
@@ -3505,6 +3966,24 @@ export interface components {
3505
3966
  /** Title */
3506
3967
  title?: string | null;
3507
3968
  };
3969
+ /** DueQuestionnaire */
3970
+ DueQuestionnaire: {
3971
+ /**
3972
+ * Due At
3973
+ * Format: date-time
3974
+ */
3975
+ due_at: string;
3976
+ /** Instruments */
3977
+ instruments: string[];
3978
+ /** Label */
3979
+ label: string;
3980
+ /** Occurrence Key */
3981
+ occurrence_key: string;
3982
+ /** Outstanding */
3983
+ outstanding: string[];
3984
+ /** Visit Id */
3985
+ visit_id: string | null;
3986
+ };
3508
3987
  /** EmrTextOut */
3509
3988
  EmrTextOut: {
3510
3989
  /**
@@ -3636,7 +4115,7 @@ export interface components {
3636
4115
  /** Moved From Id */
3637
4116
  moved_from_id: string | null;
3638
4117
  /** Open Reviews */
3639
- open_reviews: components["schemas"]["ReviewOut"][];
4118
+ open_reviews: components["schemas"]["guidistry_api__cohorts__schemas__ReviewOut"][];
3640
4119
  /**
3641
4120
  * Patient Id
3642
4121
  * Format: uuid
@@ -3804,6 +4283,30 @@ export interface components {
3804
4283
  /** Rows */
3805
4284
  rows?: number | null;
3806
4285
  };
4286
+ /** FormOut */
4287
+ FormOut: {
4288
+ /**
4289
+ * Attribution
4290
+ * @description Show under the form
4291
+ */
4292
+ attribution?: string | null;
4293
+ /** Code */
4294
+ code: string;
4295
+ /** Definition */
4296
+ definition: {
4297
+ [key: string]: unknown;
4298
+ };
4299
+ /** Family */
4300
+ family: string | null;
4301
+ /** Licence Basis */
4302
+ licence_basis: string;
4303
+ /** Name */
4304
+ name: string;
4305
+ /** Short Name */
4306
+ short_name: string | null;
4307
+ /** Version */
4308
+ version: string;
4309
+ };
3807
4310
  /** GardenSession */
3808
4311
  GardenSession: {
3809
4312
  /**
@@ -4058,6 +4561,32 @@ export interface components {
4058
4561
  */
4059
4562
  type: "image";
4060
4563
  };
4564
+ /** InstrumentOut */
4565
+ InstrumentOut: {
4566
+ /** Code */
4567
+ code: string;
4568
+ /** Family */
4569
+ family?: string | null;
4570
+ /**
4571
+ * In Library
4572
+ * @description False: a PROMIS form imported on first use
4573
+ * @default true
4574
+ */
4575
+ in_library: boolean;
4576
+ /** Licence Basis */
4577
+ licence_basis?: string | null;
4578
+ /** Name */
4579
+ name: string;
4580
+ /** Short Name */
4581
+ short_name?: string | null;
4582
+ /**
4583
+ * Source
4584
+ * @enum {string}
4585
+ */
4586
+ source: "library" | "promis" | "customer";
4587
+ /** Versions */
4588
+ versions?: string[];
4589
+ };
4061
4590
  /** InvitationAccept */
4062
4591
  InvitationAccept: {
4063
4592
  /**
@@ -4206,6 +4735,11 @@ export interface components {
4206
4735
  * Format: date-time
4207
4736
  */
4208
4737
  opens_at: string;
4738
+ /**
4739
+ * Questionnaires Due
4740
+ * @description Module 6b: this visit's questionnaires not yet answered. Advisory: offer them before the call (agreement, questionnaire, call) with 'Answer after the visit' (POST /v1/visits/{id}/questionnaire-skips). Joining is refused (409 questionnaires_required) only when the program turns join.questionnaires_required on.
4741
+ */
4742
+ questionnaires_due?: components["schemas"]["DueQuestionnaire"][];
4209
4743
  /**
4210
4744
  * Visit Mode
4211
4745
  * @enum {string}
@@ -4343,12 +4877,24 @@ export interface components {
4343
4877
  */
4344
4878
  label: string;
4345
4879
  };
4346
- /** LinkOut */
4347
- LinkOut: {
4348
- /** Expires In Seconds */
4349
- expires_in_seconds: number;
4350
- /** Url */
4351
- url: string;
4880
+ /** LinkResponseIn */
4881
+ LinkResponseIn: {
4882
+ /** Answers */
4883
+ answers: components["schemas"]["AnswerIn"][];
4884
+ /** Client Submission Id */
4885
+ client_submission_id: string;
4886
+ /** Code */
4887
+ code: string;
4888
+ };
4889
+ /** LinkResponseOut */
4890
+ LinkResponseOut: {
4891
+ /** Code */
4892
+ code: string;
4893
+ /** Done */
4894
+ done: boolean;
4895
+ /** Outstanding */
4896
+ outstanding: string[];
4897
+ safety?: components["schemas"]["SafetyOut"] | null;
4352
4898
  };
4353
4899
  /** ListenOut */
4354
4900
  ListenOut: {
@@ -4614,6 +5160,11 @@ export interface components {
4614
5160
  * Format: uuid
4615
5161
  */
4616
5162
  person_id: string;
5163
+ /**
5164
+ * Questionnaire Prompts
5165
+ * @description Patients: questionnaires the care team asked for at sign-in. Show them after the agreements, before other pages; keep Support, crisis information and sign-out reachable (module 6b, N3).
5166
+ */
5167
+ questionnaire_prompts?: components["schemas"]["guidistry_api__questionnaires__schemas__Prompt"][];
4617
5168
  };
4618
5169
  /**
4619
5170
  * MediaRef
@@ -4733,6 +5284,29 @@ export interface components {
4733
5284
  [key: string]: components["schemas"]["TypeProgress"];
4734
5285
  };
4735
5286
  };
5287
+ /** MemberStatus */
5288
+ MemberStatus: {
5289
+ /** Display Name */
5290
+ display_name: string;
5291
+ /** Due Now */
5292
+ due_now: components["schemas"]["OccurrenceOut"][];
5293
+ /**
5294
+ * Enrollment Id
5295
+ * Format: uuid
5296
+ */
5297
+ enrollment_id: string;
5298
+ /** Last Submitted At */
5299
+ last_submitted_at: string | null;
5300
+ /** Missed In A Row */
5301
+ missed_in_a_row: number;
5302
+ /** Open Alerts */
5303
+ open_alerts: ("phq2_positive" | "phq9_item9" | "peg_high" | "peg_rise" | "checkins_missed")[];
5304
+ /**
5305
+ * Patient Id
5306
+ * Format: uuid
5307
+ */
5308
+ patient_id: string;
5309
+ };
4736
5310
  /** MembershipOut */
4737
5311
  MembershipOut: {
4738
5312
  /** Ends At */
@@ -4787,7 +5361,7 @@ export interface components {
4787
5361
  /** Practices */
4788
5362
  practices?: components["schemas"]["Practice"][];
4789
5363
  /** Prompts */
4790
- prompts?: components["schemas"]["Prompt"][];
5364
+ prompts?: components["schemas"]["guidistry_api__content__schema__Prompt"][];
4791
5365
  /** Resources */
4792
5366
  resources?: components["schemas"]["Resource"][];
4793
5367
  /** Staff Notes */
@@ -4820,6 +5394,11 @@ export interface components {
4820
5394
  agreements_owed?: components["schemas"]["OwedOut"][];
4821
5395
  /** Can Request Pause */
4822
5396
  can_request_pause: boolean;
5397
+ /**
5398
+ * Cohort Id
5399
+ * @description Module 6b
5400
+ */
5401
+ cohort_id?: string | null;
4823
5402
  /**
4824
5403
  * Cohort Kind
4825
5404
  * @enum {string}
@@ -4842,6 +5421,11 @@ export interface components {
4842
5421
  * @description The program template, e.g. owl-chronic-pain
4843
5422
  */
4844
5423
  course_slug: string;
5424
+ /**
5425
+ * Due Questionnaires
5426
+ * @description Open now and not yet answered (the due card and the join step)
5427
+ */
5428
+ due_questionnaires?: components["schemas"]["DueQuestionnaire"][];
4845
5429
  /**
4846
5430
  * Features
4847
5431
  * @description The template's switches as they apply to this program, e.g. {group_visits: true, community: false}: what the portal needs to choose its frame (no version name or key)
@@ -5045,6 +5629,56 @@ export interface components {
5045
5629
  */
5046
5630
  source: "live_session" | "chart" | "close_out";
5047
5631
  };
5632
+ /** OccurrenceOut */
5633
+ OccurrenceOut: {
5634
+ /** Done */
5635
+ done?: components["schemas"]["Done"][];
5636
+ /**
5637
+ * Due At
5638
+ * Format: date-time
5639
+ */
5640
+ due_at: string;
5641
+ /** Instruments */
5642
+ instruments: string[];
5643
+ /**
5644
+ * Key
5645
+ * @description occurrence_key to send with the answers
5646
+ */
5647
+ key: string;
5648
+ /**
5649
+ * Kind
5650
+ * @enum {string}
5651
+ */
5652
+ kind: "checkin" | "timepoint";
5653
+ /** Label */
5654
+ label: string;
5655
+ /**
5656
+ * Opens At
5657
+ * Format: date-time
5658
+ */
5659
+ opens_at: string;
5660
+ /**
5661
+ * Outstanding
5662
+ * @description Instruments still to answer
5663
+ */
5664
+ outstanding: string[];
5665
+ /**
5666
+ * Paused
5667
+ * @description Inside a pause: excused if not answered
5668
+ */
5669
+ paused: boolean;
5670
+ /** Schedule Key */
5671
+ schedule_key: string;
5672
+ /** Session Number */
5673
+ session_number?: number | null;
5674
+ /**
5675
+ * State
5676
+ * @enum {string}
5677
+ */
5678
+ state: "not_open_yet" | "open" | "submitted" | "missed" | "excused" | "cancelled";
5679
+ /** Visit Id */
5680
+ visit_id?: string | null;
5681
+ };
5048
5682
  /** OnFileOut */
5049
5683
  OnFileOut: {
5050
5684
  /** Cohort Id */
@@ -5270,7 +5904,17 @@ export interface components {
5270
5904
  * Action
5271
5905
  * @enum {string}
5272
5906
  */
5273
- action: "approve" | "decline" | "end" | "extend" | "cancel";
5907
+ action: "approve" | "decline" | "end" | "extend" | "cancel" | "effects";
5908
+ /**
5909
+ * Affects Checkins
5910
+ * @description effects: check-ins covered
5911
+ */
5912
+ affects_checkins?: boolean | null;
5913
+ /**
5914
+ * Affects Timepoints
5915
+ * @description effects: timepoints covered
5916
+ */
5917
+ affects_timepoints?: boolean | null;
5274
5918
  /**
5275
5919
  * Ends At
5276
5920
  * @description approve: adjusted end; extend: new end
@@ -5283,9 +5927,29 @@ export interface components {
5283
5927
  * @description approve: adjusted start
5284
5928
  */
5285
5929
  starts_at?: string | null;
5930
+ /**
5931
+ * Timepoint Rule
5932
+ * @description effects: timepoint rule
5933
+ */
5934
+ timepoint_rule?: ("move" | "excuse" | "still_collect") | null;
5286
5935
  };
5287
5936
  /** PauseCreate */
5288
5937
  PauseCreate: {
5938
+ /**
5939
+ * Affects Checkins
5940
+ * @description Default from pause.default_effects
5941
+ */
5942
+ affects_checkins?: boolean | null;
5943
+ /**
5944
+ * Affects Timepoints
5945
+ * @description Default from pause.default_effects
5946
+ */
5947
+ affects_timepoints?: boolean | null;
5948
+ /**
5949
+ * Affects Visits
5950
+ * @description Module 6b: default from pause.default_effects (fixed once created)
5951
+ */
5952
+ affects_visits?: boolean | null;
5289
5953
  /**
5290
5954
  * Ends At
5291
5955
  * Format: date-time
@@ -5326,6 +5990,11 @@ export interface components {
5326
5990
  * Format: date-time
5327
5991
  */
5328
5992
  starts_at: string;
5993
+ /**
5994
+ * Timepoint Rule
5995
+ * @description Default from questionnaires.pause_timepoint_rule
5996
+ */
5997
+ timepoint_rule?: ("move" | "excuse" | "still_collect") | null;
5329
5998
  };
5330
5999
  /** PauseOut */
5331
6000
  PauseOut: {
@@ -5335,6 +6004,21 @@ export interface components {
5335
6004
  * @default 0
5336
6005
  */
5337
6006
  affected_visits: number;
6007
+ /**
6008
+ * Affects Checkins
6009
+ * @default true
6010
+ */
6011
+ affects_checkins: boolean;
6012
+ /**
6013
+ * Affects Timepoints
6014
+ * @default true
6015
+ */
6016
+ affects_timepoints: boolean;
6017
+ /**
6018
+ * Affects Visits
6019
+ * @default true
6020
+ */
6021
+ affects_visits: boolean;
5338
6022
  /**
5339
6023
  * Created At
5340
6024
  * Format: date-time
@@ -5388,6 +6072,12 @@ export interface components {
5388
6072
  * @enum {string}
5389
6073
  */
5390
6074
  status: "requested" | "active" | "declined" | "ended" | "cancelled";
6075
+ /**
6076
+ * Timepoint Rule
6077
+ * @default still_collect
6078
+ * @enum {string}
6079
+ */
6080
+ timepoint_rule: "move" | "excuse" | "still_collect";
5391
6081
  };
5392
6082
  /**
5393
6083
  * PauseRequest
@@ -5765,23 +6455,16 @@ export interface components {
5765
6455
  sessions: components["schemas"]["SessionState"][];
5766
6456
  vs_last_week: components["schemas"]["LastWeek"];
5767
6457
  };
5768
- /** Prompt */
5769
- Prompt: {
5770
- /**
5771
- * Key
5772
- * Format: uuid
5773
- */
5774
- key: string;
5775
- /** Markdown */
5776
- markdown: string;
5777
- /**
5778
- * Prompt Type
5779
- * @enum {string}
5780
- */
5781
- prompt_type: "community" | "journal";
5782
- tags?: components["schemas"]["Tags"] | null;
5783
- /** Title */
5784
- title: string;
6458
+ /** ProsDetail */
6459
+ ProsDetail: {
6460
+ /** Instruments */
6461
+ instruments: string[];
6462
+ /** Modes */
6463
+ modes: ("portal" | "login_prompt" | "email_link" | "text_link" | "ivr" | "interviewer_phone" | "interviewer_in_person")[];
6464
+ /** Outstanding */
6465
+ outstanding: string[];
6466
+ /** Submitted At */
6467
+ submitted_at: string | null;
5785
6468
  };
5786
6469
  /** PublishIn */
5787
6470
  PublishIn: {
@@ -5846,6 +6529,29 @@ export interface components {
5846
6529
  */
5847
6530
  visibility: "private" | "care_team" | "community";
5848
6531
  };
6532
+ /** QuestionnairesOut */
6533
+ QuestionnairesOut: {
6534
+ /**
6535
+ * Enrollment Id
6536
+ * Format: uuid
6537
+ */
6538
+ enrollment_id: string;
6539
+ /**
6540
+ * Occurrences
6541
+ * @description Last 60 days and what opens next; nothing is stored per occurrence
6542
+ */
6543
+ occurrences: components["schemas"]["OccurrenceOut"][];
6544
+ /**
6545
+ * Requests
6546
+ * @description Open requests from the care team
6547
+ */
6548
+ requests: components["schemas"]["RequestOut"][];
6549
+ /**
6550
+ * Streak Days
6551
+ * @description Daily check-ins answered in a row up to today (daily schedules)
6552
+ */
6553
+ streak_days?: number | null;
6554
+ };
5849
6555
  /** QueueEntry */
5850
6556
  QueueEntry: {
5851
6557
  /**
@@ -5896,10 +6602,12 @@ export interface components {
5896
6602
  prework_detail?: components["schemas"]["PreworkOut"] | null;
5897
6603
  /**
5898
6604
  * Pros
5899
- * @default not_available
5900
- * @constant
6605
+ * @description Module 6b: every questionnaire tied to this visit answered by the deadline (pros.deadline); a pause excuses
6606
+ * @default not_required
6607
+ * @enum {string}
5901
6608
  */
5902
- pros: "not_available";
6609
+ pros: "ok" | "outstanding" | "not_required" | "excused" | "not_open_yet";
6610
+ pros_detail?: components["schemas"]["ProsDetail"] | null;
5903
6611
  /**
5904
6612
  * Waiver
5905
6613
  * @enum {string}
@@ -5920,6 +6628,16 @@ export interface components {
5920
6628
  * @default 0
5921
6629
  */
5922
6630
  prework_required: number;
6631
+ /**
6632
+ * Pros Done
6633
+ * @default 0
6634
+ */
6635
+ pros_done: number;
6636
+ /**
6637
+ * Pros Required
6638
+ * @default 0
6639
+ */
6640
+ pros_required: number;
5923
6641
  /**
5924
6642
  * Visit Id
5925
6643
  * Format: uuid
@@ -6011,6 +6729,78 @@ export interface components {
6011
6729
  */
6012
6730
  relationship: "guardian" | "healthcare_agent" | "parent" | "other";
6013
6731
  };
6732
+ /** RequestCreate */
6733
+ RequestCreate: {
6734
+ /** Instruments */
6735
+ instruments: string[];
6736
+ /**
6737
+ * Mode
6738
+ * @enum {string}
6739
+ */
6740
+ mode: "login_prompt" | "email_link" | "text_link" | "ivr";
6741
+ /** Note */
6742
+ note?: string | null;
6743
+ /** Occurrence Key */
6744
+ occurrence_key?: string | null;
6745
+ };
6746
+ /** RequestOut */
6747
+ RequestOut: {
6748
+ /**
6749
+ * By Rule
6750
+ * @description Raised by phq2.positive_followup, not a person
6751
+ * @default false
6752
+ */
6753
+ by_rule: boolean;
6754
+ /** Completed At */
6755
+ completed_at: string | null;
6756
+ /**
6757
+ * Created At
6758
+ * Format: date-time
6759
+ */
6760
+ created_at: string;
6761
+ /**
6762
+ * Enrollment Id
6763
+ * Format: uuid
6764
+ */
6765
+ enrollment_id: string;
6766
+ /** Expires At */
6767
+ expires_at: string | null;
6768
+ /**
6769
+ * Id
6770
+ * Format: uuid
6771
+ */
6772
+ id: string;
6773
+ /** Instruments */
6774
+ instruments: string[];
6775
+ /**
6776
+ * Mode
6777
+ * @enum {string}
6778
+ */
6779
+ mode: "login_prompt" | "email_link" | "text_link" | "ivr";
6780
+ /**
6781
+ * Note
6782
+ * @description Shown to the patient (no health details)
6783
+ */
6784
+ note?: string | null;
6785
+ /** Occurrence Key */
6786
+ occurrence_key: string | null;
6787
+ /** Opened At */
6788
+ opened_at: string | null;
6789
+ /** Outstanding */
6790
+ outstanding?: string[];
6791
+ /** Sent At */
6792
+ sent_at: string | null;
6793
+ /**
6794
+ * Sent To Hint
6795
+ * @description e.g. d***@example.com (staff only)
6796
+ */
6797
+ sent_to_hint?: string | null;
6798
+ /**
6799
+ * State
6800
+ * @enum {string}
6801
+ */
6802
+ state: "open" | "completed" | "cancelled" | "expired";
6803
+ };
6014
6804
  /** Resource */
6015
6805
  Resource: {
6016
6806
  /** Category */
@@ -6057,6 +6847,95 @@ export interface components {
6057
6847
  */
6058
6848
  type: "resource";
6059
6849
  };
6850
+ /** ResponseIn */
6851
+ ResponseIn: {
6852
+ /**
6853
+ * Administration Mode
6854
+ * @description Patients: portal (default) or login_prompt; staff: interviewer_phone (default) or interviewer_in_person
6855
+ */
6856
+ administration_mode?: ("portal" | "login_prompt" | "email_link" | "text_link" | "ivr" | "interviewer_phone" | "interviewer_in_person") | null;
6857
+ /** Answers */
6858
+ answers: components["schemas"]["AnswerIn"][];
6859
+ /** Client Submission Id */
6860
+ client_submission_id: string;
6861
+ /**
6862
+ * Code
6863
+ * @description Instrument code, e.g. PEG, PHQ-2
6864
+ */
6865
+ code: string;
6866
+ /** Occurrence Key */
6867
+ occurrence_key?: string | null;
6868
+ /** Request Id */
6869
+ request_id?: string | null;
6870
+ /**
6871
+ * Version
6872
+ * @description Default: the occurrence's
6873
+ */
6874
+ version?: string | null;
6875
+ };
6876
+ /** ResponseOut */
6877
+ ResponseOut: {
6878
+ /**
6879
+ * Administration Mode
6880
+ * @enum {string}
6881
+ */
6882
+ administration_mode: "portal" | "login_prompt" | "email_link" | "text_link" | "ivr" | "interviewer_phone" | "interviewer_in_person";
6883
+ /**
6884
+ * Answers
6885
+ * @description Item-level answers (the patient's own, and their care team)
6886
+ */
6887
+ answers?: {
6888
+ [key: string]: unknown;
6889
+ }[] | null;
6890
+ /** Code */
6891
+ code: string;
6892
+ /**
6893
+ * Enrollment Id
6894
+ * Format: uuid
6895
+ */
6896
+ enrollment_id: string;
6897
+ /** Entered By Staff */
6898
+ entered_by_staff: boolean;
6899
+ /**
6900
+ * Id
6901
+ * Format: uuid
6902
+ */
6903
+ id: string;
6904
+ /**
6905
+ * Kind
6906
+ * @enum {string}
6907
+ */
6908
+ kind: "checkin" | "timepoint" | "request";
6909
+ /** Name */
6910
+ name: string;
6911
+ /** Occurrence Key */
6912
+ occurrence_key: string | null;
6913
+ /** Request Id */
6914
+ request_id: string | null;
6915
+ /** Revises Id */
6916
+ revises_id: string | null;
6917
+ /** @description Only on the submit response */
6918
+ safety?: components["schemas"]["SafetyOut"] | null;
6919
+ /** Scores */
6920
+ scores: components["schemas"]["ScoreOut"][];
6921
+ /**
6922
+ * Submitted At
6923
+ * Format: date-time
6924
+ */
6925
+ submitted_at: string;
6926
+ /**
6927
+ * Thank You
6928
+ * @default questionnaire.thank_you
6929
+ */
6930
+ thank_you: string;
6931
+ /** Version */
6932
+ version: string;
6933
+ };
6934
+ /** ResponsePage */
6935
+ ResponsePage: {
6936
+ /** Items */
6937
+ items: components["schemas"]["ResponseOut"][];
6938
+ };
6060
6939
  /** ReviewDecision */
6061
6940
  ReviewDecision: {
6062
6941
  /**
@@ -6067,31 +6946,83 @@ export interface components {
6067
6946
  /** Note */
6068
6947
  note?: string | null;
6069
6948
  };
6070
- /** ReviewOut */
6071
- ReviewOut: {
6072
- /** Decided At */
6073
- decided_at: string | null;
6074
- /** Decision */
6075
- decision: string | null;
6949
+ /** ReviewIn */
6950
+ ReviewIn: {
6951
+ /** Answers */
6952
+ answers: {
6953
+ [key: string]: number | null;
6954
+ };
6955
+ /** Comment */
6956
+ comment?: string | null;
6957
+ };
6958
+ /** ReviewQuestion */
6959
+ ReviewQuestion: {
6960
+ /** Id */
6961
+ id: string;
6076
6962
  /**
6077
- * Id
6078
- * Format: uuid
6963
+ * Optional
6964
+ * @default false
6079
6965
  */
6080
- id: string;
6081
- /** Note */
6082
- note: string | null;
6083
- /** Pause Id */
6084
- pause_id: string | null;
6966
+ optional: boolean;
6967
+ /** Options */
6968
+ options?: {
6969
+ [key: string]: unknown;
6970
+ }[] | null;
6971
+ /** Text */
6972
+ text: string;
6973
+ /** Type */
6974
+ type: string;
6085
6975
  /**
6086
- * Raised At
6087
- * Format: date-time
6976
+ * Validated
6977
+ * @description False for the team's own questions
6978
+ * @default true
6088
6979
  */
6089
- raised_at: string;
6980
+ validated: boolean;
6981
+ };
6982
+ /** ReviewSummaryOut */
6983
+ ReviewSummaryOut: {
6090
6984
  /**
6091
- * Reason
6985
+ * Comments
6986
+ * @description Unnamed, in random order; only when enough
6987
+ */
6988
+ comments?: string[];
6989
+ /** Communication Top Box */
6990
+ communication_top_box?: number | null;
6991
+ /**
6992
+ * Enough
6993
+ * @description False until review.min_responses answered
6994
+ */
6995
+ enough: boolean;
6996
+ /** Minimum */
6997
+ minimum: number;
6998
+ /** Nps */
6999
+ nps?: number | null;
7000
+ /** Own Means */
7001
+ own_means?: {
7002
+ [key: string]: number;
7003
+ } | null;
7004
+ /** Own Questions */
7005
+ own_questions?: string[];
7006
+ /** Rating 9 10 */
7007
+ rating_9_10?: number | null;
7008
+ /** Rating Mean */
7009
+ rating_mean?: number | null;
7010
+ /** Responses */
7011
+ responses: number;
7012
+ /**
7013
+ * Scope
6092
7014
  * @enum {string}
6093
7015
  */
6094
- reason: "pause_limit" | "missed_visits";
7016
+ scope: "visit" | "cohort" | "program";
7017
+ /**
7018
+ * Scope Id
7019
+ * Format: uuid
7020
+ */
7021
+ scope_id: string;
7022
+ /** Top Box */
7023
+ top_box?: {
7024
+ [key: string]: number | null;
7025
+ } | null;
6095
7026
  };
6096
7027
  /** RoleOut */
6097
7028
  RoleOut: {
@@ -6119,6 +7050,29 @@ export interface components {
6119
7050
  */
6120
7051
  billing_code?: string | null;
6121
7052
  };
7053
+ /** SafetyOut */
7054
+ SafetyOut: {
7055
+ /**
7056
+ * Crisis Lines
7057
+ * @default [
7058
+ * "988",
7059
+ * "911"
7060
+ * ]
7061
+ */
7062
+ crisis_lines: string[];
7063
+ /**
7064
+ * Kind
7065
+ * @enum {string}
7066
+ */
7067
+ kind: "phq2_positive" | "phq9_item9";
7068
+ /**
7069
+ * Message
7070
+ * @description Show as is; names the practice number when set
7071
+ */
7072
+ message: string;
7073
+ /** Urgent Phone */
7074
+ urgent_phone: string | null;
7075
+ };
6122
7076
  /** ScanLink */
6123
7077
  ScanLink: {
6124
7078
  /**
@@ -6200,6 +7154,30 @@ export interface components {
6200
7154
  /** Upload Url */
6201
7155
  upload_url: string;
6202
7156
  };
7157
+ /** ScoreOut */
7158
+ ScoreOut: {
7159
+ /**
7160
+ * Band
7161
+ * @description Interpretation band (with its source)
7162
+ */
7163
+ band?: string | null;
7164
+ /** Raw */
7165
+ raw: number | null;
7166
+ /**
7167
+ * Scale
7168
+ * @description e.g. total, phq2, item9; a PROMIS form's name
7169
+ */
7170
+ scale: string;
7171
+ /** Se */
7172
+ se?: number | null;
7173
+ /**
7174
+ * Status
7175
+ * @enum {string}
7176
+ */
7177
+ status: "ok" | "not_scorable";
7178
+ /** T Score */
7179
+ t_score?: number | null;
7180
+ };
6203
7181
  /** Section */
6204
7182
  Section: {
6205
7183
  /** Blocks */
@@ -6367,6 +7345,11 @@ export interface components {
6367
7345
  /** Revision Number */
6368
7346
  revision_number: number;
6369
7347
  };
7348
+ /** SkipIn */
7349
+ SkipIn: {
7350
+ /** Occurrence Keys */
7351
+ occurrence_keys: string[];
7352
+ };
6370
7353
  /** SpeakIn */
6371
7354
  SpeakIn: {
6372
7355
  /** Text */
@@ -7021,6 +8004,32 @@ export interface components {
7021
8004
  [key: string]: number;
7022
8005
  } | null;
7023
8006
  };
8007
+ /** ReviewOut */
8008
+ guidistry_api__cohorts__schemas__ReviewOut: {
8009
+ /** Decided At */
8010
+ decided_at: string | null;
8011
+ /** Decision */
8012
+ decision: string | null;
8013
+ /**
8014
+ * Id
8015
+ * Format: uuid
8016
+ */
8017
+ id: string;
8018
+ /** Note */
8019
+ note: string | null;
8020
+ /** Pause Id */
8021
+ pause_id: string | null;
8022
+ /**
8023
+ * Raised At
8024
+ * Format: date-time
8025
+ */
8026
+ raised_at: string;
8027
+ /**
8028
+ * Reason
8029
+ * @enum {string}
8030
+ */
8031
+ reason: "pause_limit" | "missed_visits";
8032
+ };
7024
8033
  /** RevisionOut */
7025
8034
  guidistry_api__content__api_schemas__RevisionOut: {
7026
8035
  /** Change Note */
@@ -7053,6 +8062,96 @@ export interface components {
7053
8062
  /** Version */
7054
8063
  version: string;
7055
8064
  };
8065
+ /** Prompt */
8066
+ guidistry_api__content__schema__Prompt: {
8067
+ /**
8068
+ * Key
8069
+ * Format: uuid
8070
+ */
8071
+ key: string;
8072
+ /** Markdown */
8073
+ markdown: string;
8074
+ /**
8075
+ * Prompt Type
8076
+ * @enum {string}
8077
+ */
8078
+ prompt_type: "community" | "journal";
8079
+ tags?: components["schemas"]["Tags"] | null;
8080
+ /** Title */
8081
+ title: string;
8082
+ };
8083
+ /** LinkOut */
8084
+ guidistry_api__progress__schemas__LinkOut: {
8085
+ /** Expires In Seconds */
8086
+ expires_in_seconds: number;
8087
+ /** Url */
8088
+ url: string;
8089
+ };
8090
+ /**
8091
+ * LinkOut
8092
+ * @description What a questionnaire link opens: no name, no earlier answers (design §6).
8093
+ */
8094
+ guidistry_api__questionnaires__schemas__LinkOut: {
8095
+ /** Expires At */
8096
+ expires_at: string | null;
8097
+ /** Forms */
8098
+ forms: components["schemas"]["FormOut"][];
8099
+ /** Note */
8100
+ note: string | null;
8101
+ /** Outstanding */
8102
+ outstanding: string[];
8103
+ /** Practice Name */
8104
+ practice_name: string;
8105
+ };
8106
+ /**
8107
+ * Prompt
8108
+ * @description A sign-in prompt (login_prompt request) the portal shows after the site agreement.
8109
+ */
8110
+ guidistry_api__questionnaires__schemas__Prompt: {
8111
+ /**
8112
+ * Enrollment Id
8113
+ * Format: uuid
8114
+ */
8115
+ enrollment_id: string;
8116
+ /** Instruments */
8117
+ instruments: string[];
8118
+ /** Note */
8119
+ note: string | null;
8120
+ /** Outstanding */
8121
+ outstanding: string[];
8122
+ /** Program Name */
8123
+ program_name: string;
8124
+ /**
8125
+ * Request Id
8126
+ * Format: uuid
8127
+ */
8128
+ request_id: string;
8129
+ };
8130
+ /** ReviewOut */
8131
+ guidistry_api__questionnaires__schemas__ReviewOut: {
8132
+ /**
8133
+ * Answers
8134
+ * @description Your own latest answers
8135
+ */
8136
+ answers?: {
8137
+ [key: string]: unknown;
8138
+ } | null;
8139
+ /** Closes At */
8140
+ closes_at: string | null;
8141
+ /** Comment */
8142
+ comment?: string | null;
8143
+ /** Open */
8144
+ open: boolean;
8145
+ /** Questions */
8146
+ questions: components["schemas"]["ReviewQuestion"][];
8147
+ /** Submitted At */
8148
+ submitted_at?: string | null;
8149
+ /**
8150
+ * Visit Id
8151
+ * Format: uuid
8152
+ */
8153
+ visit_id: string;
8154
+ };
7056
8155
  /** RevisionOut */
7057
8156
  guidistry_api__visits__schemas__RevisionOut: {
7058
8157
  /**
@@ -7854,12 +8953,13 @@ export interface operations {
7854
8953
  };
7855
8954
  };
7856
8955
  };
7857
- list_audit_events_v1_audit_events_get: {
8956
+ list_alerts_v1_alerts_get: {
7858
8957
  parameters: {
7859
8958
  query?: {
7860
- before_id?: number | null;
8959
+ cohort_id?: string | null;
8960
+ enrollment_id?: string | null;
8961
+ status?: string | null;
7861
8962
  limit?: number;
7862
- action?: string | null;
7863
8963
  };
7864
8964
  header?: {
7865
8965
  /** @description Membership the caller is acting through (from GET /v1/me) */
@@ -7876,7 +8976,7 @@ export interface operations {
7876
8976
  [name: string]: unknown;
7877
8977
  };
7878
8978
  content: {
7879
- "application/json": components["schemas"]["AuditEventOut"][];
8979
+ "application/json": components["schemas"]["AlertPage"];
7880
8980
  };
7881
8981
  };
7882
8982
  /** @description Validation Error */
@@ -7890,16 +8990,21 @@ export interface operations {
7890
8990
  };
7891
8991
  };
7892
8992
  };
7893
- auth_start_v1_auth_start_post: {
8993
+ alert_event_v1_alerts__alert_id__events_post: {
7894
8994
  parameters: {
7895
8995
  query?: never;
7896
- header?: never;
7897
- path?: never;
8996
+ header?: {
8997
+ /** @description Membership the caller is acting through (from GET /v1/me) */
8998
+ "X-Guidistry-Context"?: string | null;
8999
+ };
9000
+ path: {
9001
+ alert_id: string;
9002
+ };
7898
9003
  cookie?: never;
7899
9004
  };
7900
9005
  requestBody: {
7901
9006
  content: {
7902
- "application/json": components["schemas"]["AuthStartIn"];
9007
+ "application/json": components["schemas"]["AlertEventIn"];
7903
9008
  };
7904
9009
  };
7905
9010
  responses: {
@@ -7909,7 +9014,7 @@ export interface operations {
7909
9014
  [name: string]: unknown;
7910
9015
  };
7911
9016
  content: {
7912
- "application/json": components["schemas"]["AuthStartOut"];
9017
+ "application/json": components["schemas"]["AlertOut"];
7913
9018
  };
7914
9019
  };
7915
9020
  /** @description Validation Error */
@@ -7923,7 +9028,76 @@ export interface operations {
7923
9028
  };
7924
9029
  };
7925
9030
  };
7926
- list_cohorts_v1_cohorts_get: {
9031
+ list_audit_events_v1_audit_events_get: {
9032
+ parameters: {
9033
+ query?: {
9034
+ before_id?: number | null;
9035
+ limit?: number;
9036
+ action?: string | null;
9037
+ };
9038
+ header?: {
9039
+ /** @description Membership the caller is acting through (from GET /v1/me) */
9040
+ "X-Guidistry-Context"?: string | null;
9041
+ };
9042
+ path?: never;
9043
+ cookie?: never;
9044
+ };
9045
+ requestBody?: never;
9046
+ responses: {
9047
+ /** @description Successful Response */
9048
+ 200: {
9049
+ headers: {
9050
+ [name: string]: unknown;
9051
+ };
9052
+ content: {
9053
+ "application/json": components["schemas"]["AuditEventOut"][];
9054
+ };
9055
+ };
9056
+ /** @description Validation Error */
9057
+ 422: {
9058
+ headers: {
9059
+ [name: string]: unknown;
9060
+ };
9061
+ content: {
9062
+ "application/json": components["schemas"]["HTTPValidationError"];
9063
+ };
9064
+ };
9065
+ };
9066
+ };
9067
+ auth_start_v1_auth_start_post: {
9068
+ parameters: {
9069
+ query?: never;
9070
+ header?: never;
9071
+ path?: never;
9072
+ cookie?: never;
9073
+ };
9074
+ requestBody: {
9075
+ content: {
9076
+ "application/json": components["schemas"]["AuthStartIn"];
9077
+ };
9078
+ };
9079
+ responses: {
9080
+ /** @description Successful Response */
9081
+ 200: {
9082
+ headers: {
9083
+ [name: string]: unknown;
9084
+ };
9085
+ content: {
9086
+ "application/json": components["schemas"]["AuthStartOut"];
9087
+ };
9088
+ };
9089
+ /** @description Validation Error */
9090
+ 422: {
9091
+ headers: {
9092
+ [name: string]: unknown;
9093
+ };
9094
+ content: {
9095
+ "application/json": components["schemas"]["HTTPValidationError"];
9096
+ };
9097
+ };
9098
+ };
9099
+ };
9100
+ list_cohorts_v1_cohorts_get: {
7927
9101
  parameters: {
7928
9102
  query?: {
7929
9103
  program_id?: string | null;
@@ -8103,6 +9277,74 @@ export interface operations {
8103
9277
  };
8104
9278
  };
8105
9279
  };
9280
+ cohort_questionnaires_v1_cohorts__cohort_id__questionnaires_get: {
9281
+ parameters: {
9282
+ query?: never;
9283
+ header?: {
9284
+ /** @description Membership the caller is acting through (from GET /v1/me) */
9285
+ "X-Guidistry-Context"?: string | null;
9286
+ };
9287
+ path: {
9288
+ cohort_id: string;
9289
+ };
9290
+ cookie?: never;
9291
+ };
9292
+ requestBody?: never;
9293
+ responses: {
9294
+ /** @description Successful Response */
9295
+ 200: {
9296
+ headers: {
9297
+ [name: string]: unknown;
9298
+ };
9299
+ content: {
9300
+ "application/json": components["schemas"]["CohortQuestionnairesOut"];
9301
+ };
9302
+ };
9303
+ /** @description Validation Error */
9304
+ 422: {
9305
+ headers: {
9306
+ [name: string]: unknown;
9307
+ };
9308
+ content: {
9309
+ "application/json": components["schemas"]["HTTPValidationError"];
9310
+ };
9311
+ };
9312
+ };
9313
+ };
9314
+ cohort_review_summary_v1_cohorts__cohort_id__review_summary_get: {
9315
+ parameters: {
9316
+ query?: never;
9317
+ header?: {
9318
+ /** @description Membership the caller is acting through (from GET /v1/me) */
9319
+ "X-Guidistry-Context"?: string | null;
9320
+ };
9321
+ path: {
9322
+ cohort_id: string;
9323
+ };
9324
+ cookie?: never;
9325
+ };
9326
+ requestBody?: never;
9327
+ responses: {
9328
+ /** @description Successful Response */
9329
+ 200: {
9330
+ headers: {
9331
+ [name: string]: unknown;
9332
+ };
9333
+ content: {
9334
+ "application/json": components["schemas"]["ReviewSummaryOut"];
9335
+ };
9336
+ };
9337
+ /** @description Validation Error */
9338
+ 422: {
9339
+ headers: {
9340
+ [name: string]: unknown;
9341
+ };
9342
+ content: {
9343
+ "application/json": components["schemas"]["HTTPValidationError"];
9344
+ };
9345
+ };
9346
+ };
9347
+ };
8106
9348
  cohort_settings_v1_cohorts__cohort_id__settings_get: {
8107
9349
  parameters: {
8108
9350
  query?: never;
@@ -9447,7 +10689,7 @@ export interface operations {
9447
10689
  };
9448
10690
  };
9449
10691
  };
9450
- list_reviews_v1_enrollments__enrollment_id__reviews_get: {
10692
+ list_requests_v1_enrollments__enrollment_id__questionnaire_requests_get: {
9451
10693
  parameters: {
9452
10694
  query?: never;
9453
10695
  header?: {
@@ -9467,7 +10709,7 @@ export interface operations {
9467
10709
  [name: string]: unknown;
9468
10710
  };
9469
10711
  content: {
9470
- "application/json": components["schemas"]["ReviewOut"][];
10712
+ "application/json": components["schemas"]["RequestOut"][];
9471
10713
  };
9472
10714
  };
9473
10715
  /** @description Validation Error */
@@ -9481,7 +10723,7 @@ export interface operations {
9481
10723
  };
9482
10724
  };
9483
10725
  };
9484
- decide_review_v1_enrollments__enrollment_id__reviews__review_id__decide_post: {
10726
+ create_request_v1_enrollments__enrollment_id__questionnaire_requests_post: {
9485
10727
  parameters: {
9486
10728
  query?: never;
9487
10729
  header?: {
@@ -9490,24 +10732,30 @@ export interface operations {
9490
10732
  };
9491
10733
  path: {
9492
10734
  enrollment_id: string;
9493
- review_id: string;
9494
10735
  };
9495
10736
  cookie?: never;
9496
10737
  };
9497
10738
  requestBody: {
9498
10739
  content: {
9499
- "application/json": components["schemas"]["ReviewDecision"];
10740
+ "application/json": components["schemas"]["RequestCreate"];
9500
10741
  };
9501
10742
  };
9502
10743
  responses: {
9503
10744
  /** @description Successful Response */
9504
- 200: {
10745
+ 201: {
9505
10746
  headers: {
9506
10747
  [name: string]: unknown;
9507
10748
  };
9508
10749
  content: {
9509
- "application/json": components["schemas"]["ReviewOut"];
10750
+ "application/json": components["schemas"]["RequestOut"];
10751
+ };
10752
+ };
10753
+ /** @description mode_not_available_yet (text_link, ivr: 6b part 2) */
10754
+ 409: {
10755
+ headers: {
10756
+ [name: string]: unknown;
9510
10757
  };
10758
+ content?: never;
9511
10759
  };
9512
10760
  /** @description Validation Error */
9513
10761
  422: {
@@ -9520,9 +10768,12 @@ export interface operations {
9520
10768
  };
9521
10769
  };
9522
10770
  };
9523
- enrollment_schedule_v1_enrollments__enrollment_id__schedule_get: {
10771
+ list_responses_v1_enrollments__enrollment_id__questionnaire_responses_get: {
9524
10772
  parameters: {
9525
- query?: never;
10773
+ query?: {
10774
+ code?: string | null;
10775
+ limit?: number;
10776
+ };
9526
10777
  header?: {
9527
10778
  /** @description Membership the caller is acting through (from GET /v1/me) */
9528
10779
  "X-Guidistry-Context"?: string | null;
@@ -9540,7 +10791,7 @@ export interface operations {
9540
10791
  [name: string]: unknown;
9541
10792
  };
9542
10793
  content: {
9543
- "application/json": components["schemas"]["EnrollmentScheduleOut"];
10794
+ "application/json": components["schemas"]["ResponsePage"];
9544
10795
  };
9545
10796
  };
9546
10797
  /** @description Validation Error */
@@ -9554,7 +10805,7 @@ export interface operations {
9554
10805
  };
9555
10806
  };
9556
10807
  };
9557
- open_session_v1_enrollments__enrollment_id__sessions__number__open_post: {
10808
+ submit_response_v1_enrollments__enrollment_id__questionnaire_responses_post: {
9558
10809
  parameters: {
9559
10810
  query?: never;
9560
10811
  header?: {
@@ -9563,37 +10814,41 @@ export interface operations {
9563
10814
  };
9564
10815
  path: {
9565
10816
  enrollment_id: string;
9566
- number: number;
9567
10817
  };
9568
10818
  cookie?: never;
9569
10819
  };
9570
10820
  requestBody: {
9571
10821
  content: {
9572
- "application/json": components["schemas"]["OpenSessionIn"];
10822
+ "application/json": components["schemas"]["ResponseIn"];
9573
10823
  };
9574
10824
  };
9575
10825
  responses: {
9576
10826
  /** @description Successful Response */
9577
- 200: {
10827
+ 201: {
9578
10828
  headers: {
9579
10829
  [name: string]: unknown;
9580
10830
  };
9581
10831
  content: {
9582
- "application/json": components["schemas"]["ProgressOut"];
10832
+ "application/json": components["schemas"]["ResponseOut"];
9583
10833
  };
9584
10834
  };
9585
- /** @description Validation Error */
9586
- 422: {
10835
+ /** @description occurrence_closed, request_closed, mode not allowed */
10836
+ 409: {
9587
10837
  headers: {
9588
10838
  [name: string]: unknown;
9589
10839
  };
9590
- content: {
9591
- "application/json": components["schemas"]["HTTPValidationError"];
10840
+ content?: never;
10841
+ };
10842
+ /** @description incomplete, value_out_of_range, occurrence_required, … */
10843
+ 422: {
10844
+ headers: {
10845
+ [name: string]: unknown;
9592
10846
  };
10847
+ content?: never;
9593
10848
  };
9594
10849
  };
9595
10850
  };
9596
- transition_enrollment_v1_enrollments__enrollment_id__transition_post: {
10851
+ list_questionnaires_v1_enrollments__enrollment_id__questionnaires_get: {
9597
10852
  parameters: {
9598
10853
  query?: never;
9599
10854
  header?: {
@@ -9605,11 +10860,7 @@ export interface operations {
9605
10860
  };
9606
10861
  cookie?: never;
9607
10862
  };
9608
- requestBody: {
9609
- content: {
9610
- "application/json": components["schemas"]["EnrollmentTransition"];
9611
- };
9612
- };
10863
+ requestBody?: never;
9613
10864
  responses: {
9614
10865
  /** @description Successful Response */
9615
10866
  200: {
@@ -9617,7 +10868,7 @@ export interface operations {
9617
10868
  [name: string]: unknown;
9618
10869
  };
9619
10870
  content: {
9620
- "application/json": components["schemas"]["EnrollmentOut"];
10871
+ "application/json": components["schemas"]["QuestionnairesOut"];
9621
10872
  };
9622
10873
  };
9623
10874
  /** @description Validation Error */
@@ -9631,7 +10882,7 @@ export interface operations {
9631
10882
  };
9632
10883
  };
9633
10884
  };
9634
- start_attachment_v1_enrollments__enrollment_id__writing_attachments_post: {
10885
+ list_reviews_v1_enrollments__enrollment_id__reviews_get: {
9635
10886
  parameters: {
9636
10887
  query?: never;
9637
10888
  header?: {
@@ -9643,19 +10894,15 @@ export interface operations {
9643
10894
  };
9644
10895
  cookie?: never;
9645
10896
  };
9646
- requestBody: {
9647
- content: {
9648
- "application/json": components["schemas"]["AttachmentStart"];
9649
- };
9650
- };
10897
+ requestBody?: never;
9651
10898
  responses: {
9652
10899
  /** @description Successful Response */
9653
- 201: {
10900
+ 200: {
9654
10901
  headers: {
9655
10902
  [name: string]: unknown;
9656
10903
  };
9657
10904
  content: {
9658
- "application/json": components["schemas"]["AttachmentStartOut"];
10905
+ "application/json": components["schemas"]["guidistry_api__cohorts__schemas__ReviewOut"][];
9659
10906
  };
9660
10907
  };
9661
10908
  /** @description Validation Error */
@@ -9669,7 +10916,7 @@ export interface operations {
9669
10916
  };
9670
10917
  };
9671
10918
  };
9672
- writing_policy_v1_enrollments__enrollment_id__writing_policy_get: {
10919
+ decide_review_v1_enrollments__enrollment_id__reviews__review_id__decide_post: {
9673
10920
  parameters: {
9674
10921
  query?: never;
9675
10922
  header?: {
@@ -9678,10 +10925,15 @@ export interface operations {
9678
10925
  };
9679
10926
  path: {
9680
10927
  enrollment_id: string;
10928
+ review_id: string;
9681
10929
  };
9682
10930
  cookie?: never;
9683
10931
  };
9684
- requestBody?: never;
10932
+ requestBody: {
10933
+ content: {
10934
+ "application/json": components["schemas"]["ReviewDecision"];
10935
+ };
10936
+ };
9685
10937
  responses: {
9686
10938
  /** @description Successful Response */
9687
10939
  200: {
@@ -9689,7 +10941,7 @@ export interface operations {
9689
10941
  [name: string]: unknown;
9690
10942
  };
9691
10943
  content: {
9692
- "application/json": components["schemas"]["WritingPolicyOut"];
10944
+ "application/json": components["schemas"]["guidistry_api__cohorts__schemas__ReviewOut"];
9693
10945
  };
9694
10946
  };
9695
10947
  /** @description Validation Error */
@@ -9703,7 +10955,7 @@ export interface operations {
9703
10955
  };
9704
10956
  };
9705
10957
  };
9706
- list_writings_v1_enrollments__enrollment_id__writings_get: {
10958
+ enrollment_schedule_v1_enrollments__enrollment_id__schedule_get: {
9707
10959
  parameters: {
9708
10960
  query?: never;
9709
10961
  header?: {
@@ -9723,7 +10975,7 @@ export interface operations {
9723
10975
  [name: string]: unknown;
9724
10976
  };
9725
10977
  content: {
9726
- "application/json": components["schemas"]["WritingOut"][];
10978
+ "application/json": components["schemas"]["EnrollmentScheduleOut"];
9727
10979
  };
9728
10980
  };
9729
10981
  /** @description Validation Error */
@@ -9737,7 +10989,7 @@ export interface operations {
9737
10989
  };
9738
10990
  };
9739
10991
  };
9740
- submit_writing_v1_enrollments__enrollment_id__writings_post: {
10992
+ open_session_v1_enrollments__enrollment_id__sessions__number__open_post: {
9741
10993
  parameters: {
9742
10994
  query?: never;
9743
10995
  header?: {
@@ -9746,22 +10998,23 @@ export interface operations {
9746
10998
  };
9747
10999
  path: {
9748
11000
  enrollment_id: string;
11001
+ number: number;
9749
11002
  };
9750
11003
  cookie?: never;
9751
11004
  };
9752
11005
  requestBody: {
9753
11006
  content: {
9754
- "application/json": components["schemas"]["WritingIn"];
11007
+ "application/json": components["schemas"]["OpenSessionIn"];
9755
11008
  };
9756
11009
  };
9757
11010
  responses: {
9758
11011
  /** @description Successful Response */
9759
- 201: {
11012
+ 200: {
9760
11013
  headers: {
9761
11014
  [name: string]: unknown;
9762
11015
  };
9763
11016
  content: {
9764
- "application/json": components["schemas"]["WritingOut"];
11017
+ "application/json": components["schemas"]["ProgressOut"];
9765
11018
  };
9766
11019
  };
9767
11020
  /** @description Validation Error */
@@ -9775,19 +11028,23 @@ export interface operations {
9775
11028
  };
9776
11029
  };
9777
11030
  };
9778
- fidelity_report_v1_fidelity_get: {
11031
+ transition_enrollment_v1_enrollments__enrollment_id__transition_post: {
9779
11032
  parameters: {
9780
- query: {
9781
- cohort_id: string;
9782
- };
11033
+ query?: never;
9783
11034
  header?: {
9784
11035
  /** @description Membership the caller is acting through (from GET /v1/me) */
9785
11036
  "X-Guidistry-Context"?: string | null;
9786
11037
  };
9787
- path?: never;
11038
+ path: {
11039
+ enrollment_id: string;
11040
+ };
9788
11041
  cookie?: never;
9789
11042
  };
9790
- requestBody?: never;
11043
+ requestBody: {
11044
+ content: {
11045
+ "application/json": components["schemas"]["EnrollmentTransition"];
11046
+ };
11047
+ };
9791
11048
  responses: {
9792
11049
  /** @description Successful Response */
9793
11050
  200: {
@@ -9795,7 +11052,7 @@ export interface operations {
9795
11052
  [name: string]: unknown;
9796
11053
  };
9797
11054
  content: {
9798
- "application/json": components["schemas"]["FidelityVisitOut"][];
11055
+ "application/json": components["schemas"]["EnrollmentOut"];
9799
11056
  };
9800
11057
  };
9801
11058
  /** @description Validation Error */
@@ -9809,7 +11066,7 @@ export interface operations {
9809
11066
  };
9810
11067
  };
9811
11068
  };
9812
- revoke_grant_v1_grants__grant_id__delete: {
11069
+ start_attachment_v1_enrollments__enrollment_id__writing_attachments_post: {
9813
11070
  parameters: {
9814
11071
  query?: never;
9815
11072
  header?: {
@@ -9817,18 +11074,24 @@ export interface operations {
9817
11074
  "X-Guidistry-Context"?: string | null;
9818
11075
  };
9819
11076
  path: {
9820
- grant_id: string;
11077
+ enrollment_id: string;
9821
11078
  };
9822
11079
  cookie?: never;
9823
11080
  };
9824
- requestBody?: never;
11081
+ requestBody: {
11082
+ content: {
11083
+ "application/json": components["schemas"]["AttachmentStart"];
11084
+ };
11085
+ };
9825
11086
  responses: {
9826
11087
  /** @description Successful Response */
9827
- 204: {
11088
+ 201: {
9828
11089
  headers: {
9829
11090
  [name: string]: unknown;
9830
11091
  };
9831
- content?: never;
11092
+ content: {
11093
+ "application/json": components["schemas"]["AttachmentStartOut"];
11094
+ };
9832
11095
  };
9833
11096
  /** @description Validation Error */
9834
11097
  422: {
@@ -9841,14 +11104,16 @@ export interface operations {
9841
11104
  };
9842
11105
  };
9843
11106
  };
9844
- list_brightoutcome_guides_v1_guides_get: {
11107
+ writing_policy_v1_enrollments__enrollment_id__writing_policy_get: {
9845
11108
  parameters: {
9846
11109
  query?: never;
9847
11110
  header?: {
9848
11111
  /** @description Membership the caller is acting through (from GET /v1/me) */
9849
11112
  "X-Guidistry-Context"?: string | null;
9850
11113
  };
9851
- path?: never;
11114
+ path: {
11115
+ enrollment_id: string;
11116
+ };
9852
11117
  cookie?: never;
9853
11118
  };
9854
11119
  requestBody?: never;
@@ -9859,7 +11124,7 @@ export interface operations {
9859
11124
  [name: string]: unknown;
9860
11125
  };
9861
11126
  content: {
9862
- "application/json": components["schemas"]["BrightOutcomeGuideOut"][];
11127
+ "application/json": components["schemas"]["WritingPolicyOut"];
9863
11128
  };
9864
11129
  };
9865
11130
  /** @description Validation Error */
@@ -9873,9 +11138,179 @@ export interface operations {
9873
11138
  };
9874
11139
  };
9875
11140
  };
9876
- get_brightoutcome_guide_v1_guides__slug__facilitator_get: {
11141
+ list_writings_v1_enrollments__enrollment_id__writings_get: {
9877
11142
  parameters: {
9878
- query?: {
11143
+ query?: never;
11144
+ header?: {
11145
+ /** @description Membership the caller is acting through (from GET /v1/me) */
11146
+ "X-Guidistry-Context"?: string | null;
11147
+ };
11148
+ path: {
11149
+ enrollment_id: string;
11150
+ };
11151
+ cookie?: never;
11152
+ };
11153
+ requestBody?: never;
11154
+ responses: {
11155
+ /** @description Successful Response */
11156
+ 200: {
11157
+ headers: {
11158
+ [name: string]: unknown;
11159
+ };
11160
+ content: {
11161
+ "application/json": components["schemas"]["WritingOut"][];
11162
+ };
11163
+ };
11164
+ /** @description Validation Error */
11165
+ 422: {
11166
+ headers: {
11167
+ [name: string]: unknown;
11168
+ };
11169
+ content: {
11170
+ "application/json": components["schemas"]["HTTPValidationError"];
11171
+ };
11172
+ };
11173
+ };
11174
+ };
11175
+ submit_writing_v1_enrollments__enrollment_id__writings_post: {
11176
+ parameters: {
11177
+ query?: never;
11178
+ header?: {
11179
+ /** @description Membership the caller is acting through (from GET /v1/me) */
11180
+ "X-Guidistry-Context"?: string | null;
11181
+ };
11182
+ path: {
11183
+ enrollment_id: string;
11184
+ };
11185
+ cookie?: never;
11186
+ };
11187
+ requestBody: {
11188
+ content: {
11189
+ "application/json": components["schemas"]["WritingIn"];
11190
+ };
11191
+ };
11192
+ responses: {
11193
+ /** @description Successful Response */
11194
+ 201: {
11195
+ headers: {
11196
+ [name: string]: unknown;
11197
+ };
11198
+ content: {
11199
+ "application/json": components["schemas"]["WritingOut"];
11200
+ };
11201
+ };
11202
+ /** @description Validation Error */
11203
+ 422: {
11204
+ headers: {
11205
+ [name: string]: unknown;
11206
+ };
11207
+ content: {
11208
+ "application/json": components["schemas"]["HTTPValidationError"];
11209
+ };
11210
+ };
11211
+ };
11212
+ };
11213
+ fidelity_report_v1_fidelity_get: {
11214
+ parameters: {
11215
+ query: {
11216
+ cohort_id: string;
11217
+ };
11218
+ header?: {
11219
+ /** @description Membership the caller is acting through (from GET /v1/me) */
11220
+ "X-Guidistry-Context"?: string | null;
11221
+ };
11222
+ path?: never;
11223
+ cookie?: never;
11224
+ };
11225
+ requestBody?: never;
11226
+ responses: {
11227
+ /** @description Successful Response */
11228
+ 200: {
11229
+ headers: {
11230
+ [name: string]: unknown;
11231
+ };
11232
+ content: {
11233
+ "application/json": components["schemas"]["FidelityVisitOut"][];
11234
+ };
11235
+ };
11236
+ /** @description Validation Error */
11237
+ 422: {
11238
+ headers: {
11239
+ [name: string]: unknown;
11240
+ };
11241
+ content: {
11242
+ "application/json": components["schemas"]["HTTPValidationError"];
11243
+ };
11244
+ };
11245
+ };
11246
+ };
11247
+ revoke_grant_v1_grants__grant_id__delete: {
11248
+ parameters: {
11249
+ query?: never;
11250
+ header?: {
11251
+ /** @description Membership the caller is acting through (from GET /v1/me) */
11252
+ "X-Guidistry-Context"?: string | null;
11253
+ };
11254
+ path: {
11255
+ grant_id: string;
11256
+ };
11257
+ cookie?: never;
11258
+ };
11259
+ requestBody?: never;
11260
+ responses: {
11261
+ /** @description Successful Response */
11262
+ 204: {
11263
+ headers: {
11264
+ [name: string]: unknown;
11265
+ };
11266
+ content?: never;
11267
+ };
11268
+ /** @description Validation Error */
11269
+ 422: {
11270
+ headers: {
11271
+ [name: string]: unknown;
11272
+ };
11273
+ content: {
11274
+ "application/json": components["schemas"]["HTTPValidationError"];
11275
+ };
11276
+ };
11277
+ };
11278
+ };
11279
+ list_brightoutcome_guides_v1_guides_get: {
11280
+ parameters: {
11281
+ query?: never;
11282
+ header?: {
11283
+ /** @description Membership the caller is acting through (from GET /v1/me) */
11284
+ "X-Guidistry-Context"?: string | null;
11285
+ };
11286
+ path?: never;
11287
+ cookie?: never;
11288
+ };
11289
+ requestBody?: never;
11290
+ responses: {
11291
+ /** @description Successful Response */
11292
+ 200: {
11293
+ headers: {
11294
+ [name: string]: unknown;
11295
+ };
11296
+ content: {
11297
+ "application/json": components["schemas"]["BrightOutcomeGuideOut"][];
11298
+ };
11299
+ };
11300
+ /** @description Validation Error */
11301
+ 422: {
11302
+ headers: {
11303
+ [name: string]: unknown;
11304
+ };
11305
+ content: {
11306
+ "application/json": components["schemas"]["HTTPValidationError"];
11307
+ };
11308
+ };
11309
+ };
11310
+ };
11311
+ get_brightoutcome_guide_v1_guides__slug__facilitator_get: {
11312
+ parameters: {
11313
+ query?: {
9879
11314
  language?: string | null;
9880
11315
  };
9881
11316
  header?: {
@@ -9946,6 +11381,41 @@ export interface operations {
9946
11381
  };
9947
11382
  };
9948
11383
  };
11384
+ list_instruments_v1_instruments_get: {
11385
+ parameters: {
11386
+ query?: {
11387
+ q?: string | null;
11388
+ family?: string | null;
11389
+ };
11390
+ header?: {
11391
+ /** @description Membership the caller is acting through (from GET /v1/me) */
11392
+ "X-Guidistry-Context"?: string | null;
11393
+ };
11394
+ path?: never;
11395
+ cookie?: never;
11396
+ };
11397
+ requestBody?: never;
11398
+ responses: {
11399
+ /** @description Successful Response */
11400
+ 200: {
11401
+ headers: {
11402
+ [name: string]: unknown;
11403
+ };
11404
+ content: {
11405
+ "application/json": components["schemas"]["InstrumentOut"][];
11406
+ };
11407
+ };
11408
+ /** @description Validation Error */
11409
+ 422: {
11410
+ headers: {
11411
+ [name: string]: unknown;
11412
+ };
11413
+ content: {
11414
+ "application/json": components["schemas"]["HTTPValidationError"];
11415
+ };
11416
+ };
11417
+ };
11418
+ };
9949
11419
  list_invitations_v1_invitations_get: {
9950
11420
  parameters: {
9951
11421
  query?: {
@@ -10823,6 +12293,43 @@ export interface operations {
10823
12293
  };
10824
12294
  };
10825
12295
  };
12296
+ patient_responses_v1_patients__patient_id__questionnaires_get: {
12297
+ parameters: {
12298
+ query?: {
12299
+ code?: string | null;
12300
+ limit?: number;
12301
+ };
12302
+ header?: {
12303
+ /** @description Membership the caller is acting through (from GET /v1/me) */
12304
+ "X-Guidistry-Context"?: string | null;
12305
+ };
12306
+ path: {
12307
+ patient_id: string;
12308
+ };
12309
+ cookie?: never;
12310
+ };
12311
+ requestBody?: never;
12312
+ responses: {
12313
+ /** @description Successful Response */
12314
+ 200: {
12315
+ headers: {
12316
+ [name: string]: unknown;
12317
+ };
12318
+ content: {
12319
+ "application/json": components["schemas"]["ResponsePage"];
12320
+ };
12321
+ };
12322
+ /** @description Validation Error */
12323
+ 422: {
12324
+ headers: {
12325
+ [name: string]: unknown;
12326
+ };
12327
+ content: {
12328
+ "application/json": components["schemas"]["HTTPValidationError"];
12329
+ };
12330
+ };
12331
+ };
12332
+ };
10826
12333
  get_patient_v1_patients__record_id__get: {
10827
12334
  parameters: {
10828
12335
  query?: never;
@@ -11398,14 +12905,16 @@ export interface operations {
11398
12905
  };
11399
12906
  };
11400
12907
  };
11401
- list_roles_v1_roles_get: {
12908
+ program_review_summary_v1_programs__program_id__review_summary_get: {
11402
12909
  parameters: {
11403
12910
  query?: never;
11404
12911
  header?: {
11405
12912
  /** @description Membership the caller is acting through (from GET /v1/me) */
11406
12913
  "X-Guidistry-Context"?: string | null;
11407
12914
  };
11408
- path?: never;
12915
+ path: {
12916
+ program_id: string;
12917
+ };
11409
12918
  cookie?: never;
11410
12919
  };
11411
12920
  requestBody?: never;
@@ -11416,7 +12925,7 @@ export interface operations {
11416
12925
  [name: string]: unknown;
11417
12926
  };
11418
12927
  content: {
11419
- "application/json": components["schemas"]["RoleOut"][];
12928
+ "application/json": components["schemas"]["ReviewSummaryOut"];
11420
12929
  };
11421
12930
  };
11422
12931
  /** @description Validation Error */
@@ -11430,21 +12939,18 @@ export interface operations {
11430
12939
  };
11431
12940
  };
11432
12941
  };
11433
- get_settings_v1_settings_get: {
12942
+ get_form_v1_questionnaire_forms__code__get: {
11434
12943
  parameters: {
11435
12944
  query?: {
11436
- org_unit_id?: string | null;
11437
- /** @description Organization record ID, for patient-level values */
11438
- person_id?: string | null;
11439
- /** @description Include a program's values */
11440
- program_id?: string | null;
11441
- key?: string[] | null;
12945
+ version?: string | null;
11442
12946
  };
11443
12947
  header?: {
11444
12948
  /** @description Membership the caller is acting through (from GET /v1/me) */
11445
12949
  "X-Guidistry-Context"?: string | null;
11446
12950
  };
11447
- path?: never;
12951
+ path: {
12952
+ code: string;
12953
+ };
11448
12954
  cookie?: never;
11449
12955
  };
11450
12956
  requestBody?: never;
@@ -11455,7 +12961,7 @@ export interface operations {
11455
12961
  [name: string]: unknown;
11456
12962
  };
11457
12963
  content: {
11458
- "application/json": components["schemas"]["SettingOut"][];
12964
+ "application/json": components["schemas"]["FormOut"];
11459
12965
  };
11460
12966
  };
11461
12967
  /** @description Validation Error */
@@ -11469,7 +12975,185 @@ export interface operations {
11469
12975
  };
11470
12976
  };
11471
12977
  };
11472
- put_setting_v1_settings__key__put: {
12978
+ open_link_v1_questionnaire_links__token__get: {
12979
+ parameters: {
12980
+ query?: never;
12981
+ header?: never;
12982
+ path: {
12983
+ token: string;
12984
+ };
12985
+ cookie?: never;
12986
+ };
12987
+ requestBody?: never;
12988
+ responses: {
12989
+ /** @description Successful Response */
12990
+ 200: {
12991
+ headers: {
12992
+ [name: string]: unknown;
12993
+ };
12994
+ content: {
12995
+ "application/json": components["schemas"]["guidistry_api__questionnaires__schemas__LinkOut"];
12996
+ };
12997
+ };
12998
+ /** @description link_completed, link_expired, link_cancelled */
12999
+ 410: {
13000
+ headers: {
13001
+ [name: string]: unknown;
13002
+ };
13003
+ content?: never;
13004
+ };
13005
+ /** @description Validation Error */
13006
+ 422: {
13007
+ headers: {
13008
+ [name: string]: unknown;
13009
+ };
13010
+ content: {
13011
+ "application/json": components["schemas"]["HTTPValidationError"];
13012
+ };
13013
+ };
13014
+ };
13015
+ };
13016
+ answer_link_v1_questionnaire_links__token__responses_post: {
13017
+ parameters: {
13018
+ query?: never;
13019
+ header?: never;
13020
+ path: {
13021
+ token: string;
13022
+ };
13023
+ cookie?: never;
13024
+ };
13025
+ requestBody: {
13026
+ content: {
13027
+ "application/json": components["schemas"]["LinkResponseIn"];
13028
+ };
13029
+ };
13030
+ responses: {
13031
+ /** @description Successful Response */
13032
+ 201: {
13033
+ headers: {
13034
+ [name: string]: unknown;
13035
+ };
13036
+ content: {
13037
+ "application/json": components["schemas"]["LinkResponseOut"];
13038
+ };
13039
+ };
13040
+ /** @description Validation Error */
13041
+ 422: {
13042
+ headers: {
13043
+ [name: string]: unknown;
13044
+ };
13045
+ content: {
13046
+ "application/json": components["schemas"]["HTTPValidationError"];
13047
+ };
13048
+ };
13049
+ };
13050
+ };
13051
+ cancel_request_v1_questionnaire_requests__request_id__cancel_post: {
13052
+ parameters: {
13053
+ query?: never;
13054
+ header?: {
13055
+ /** @description Membership the caller is acting through (from GET /v1/me) */
13056
+ "X-Guidistry-Context"?: string | null;
13057
+ };
13058
+ path: {
13059
+ request_id: string;
13060
+ };
13061
+ cookie?: never;
13062
+ };
13063
+ requestBody?: never;
13064
+ responses: {
13065
+ /** @description Successful Response */
13066
+ 200: {
13067
+ headers: {
13068
+ [name: string]: unknown;
13069
+ };
13070
+ content: {
13071
+ "application/json": components["schemas"]["RequestOut"];
13072
+ };
13073
+ };
13074
+ /** @description Validation Error */
13075
+ 422: {
13076
+ headers: {
13077
+ [name: string]: unknown;
13078
+ };
13079
+ content: {
13080
+ "application/json": components["schemas"]["HTTPValidationError"];
13081
+ };
13082
+ };
13083
+ };
13084
+ };
13085
+ list_roles_v1_roles_get: {
13086
+ parameters: {
13087
+ query?: never;
13088
+ header?: {
13089
+ /** @description Membership the caller is acting through (from GET /v1/me) */
13090
+ "X-Guidistry-Context"?: string | null;
13091
+ };
13092
+ path?: never;
13093
+ cookie?: never;
13094
+ };
13095
+ requestBody?: never;
13096
+ responses: {
13097
+ /** @description Successful Response */
13098
+ 200: {
13099
+ headers: {
13100
+ [name: string]: unknown;
13101
+ };
13102
+ content: {
13103
+ "application/json": components["schemas"]["RoleOut"][];
13104
+ };
13105
+ };
13106
+ /** @description Validation Error */
13107
+ 422: {
13108
+ headers: {
13109
+ [name: string]: unknown;
13110
+ };
13111
+ content: {
13112
+ "application/json": components["schemas"]["HTTPValidationError"];
13113
+ };
13114
+ };
13115
+ };
13116
+ };
13117
+ get_settings_v1_settings_get: {
13118
+ parameters: {
13119
+ query?: {
13120
+ org_unit_id?: string | null;
13121
+ /** @description Organization record ID, for patient-level values */
13122
+ person_id?: string | null;
13123
+ /** @description Include a program's values */
13124
+ program_id?: string | null;
13125
+ key?: string[] | null;
13126
+ };
13127
+ header?: {
13128
+ /** @description Membership the caller is acting through (from GET /v1/me) */
13129
+ "X-Guidistry-Context"?: string | null;
13130
+ };
13131
+ path?: never;
13132
+ cookie?: never;
13133
+ };
13134
+ requestBody?: never;
13135
+ responses: {
13136
+ /** @description Successful Response */
13137
+ 200: {
13138
+ headers: {
13139
+ [name: string]: unknown;
13140
+ };
13141
+ content: {
13142
+ "application/json": components["schemas"]["SettingOut"][];
13143
+ };
13144
+ };
13145
+ /** @description Validation Error */
13146
+ 422: {
13147
+ headers: {
13148
+ [name: string]: unknown;
13149
+ };
13150
+ content: {
13151
+ "application/json": components["schemas"]["HTTPValidationError"];
13152
+ };
13153
+ };
13154
+ };
13155
+ };
13156
+ put_setting_v1_settings__key__put: {
11473
13157
  parameters: {
11474
13158
  query?: never;
11475
13159
  header?: {
@@ -12132,7 +13816,7 @@ export interface operations {
12132
13816
  "application/json": components["schemas"]["JoinOut"];
12133
13817
  };
12134
13818
  };
12135
- /** @description agreement_required, too_early or not_joinable */
13819
+ /** @description agreement_required, too_early, not_joinable or (when the program requires it) questionnaires_required */
12136
13820
  409: {
12137
13821
  headers: {
12138
13822
  [name: string]: unknown;
@@ -12328,6 +14012,42 @@ export interface operations {
12328
14012
  };
12329
14013
  };
12330
14014
  };
14015
+ skip_for_now_v1_visits__visit_id__questionnaire_skips_post: {
14016
+ parameters: {
14017
+ query?: never;
14018
+ header?: {
14019
+ /** @description Membership the caller is acting through (from GET /v1/me) */
14020
+ "X-Guidistry-Context"?: string | null;
14021
+ };
14022
+ path: {
14023
+ visit_id: string;
14024
+ };
14025
+ cookie?: never;
14026
+ };
14027
+ requestBody: {
14028
+ content: {
14029
+ "application/json": components["schemas"]["SkipIn"];
14030
+ };
14031
+ };
14032
+ responses: {
14033
+ /** @description Successful Response */
14034
+ 204: {
14035
+ headers: {
14036
+ [name: string]: unknown;
14037
+ };
14038
+ content?: never;
14039
+ };
14040
+ /** @description Validation Error */
14041
+ 422: {
14042
+ headers: {
14043
+ [name: string]: unknown;
14044
+ };
14045
+ content: {
14046
+ "application/json": components["schemas"]["HTTPValidationError"];
14047
+ };
14048
+ };
14049
+ };
14050
+ };
12331
14051
  readiness_v1_visits__visit_id__readiness_get: {
12332
14052
  parameters: {
12333
14053
  query?: never;
@@ -12400,6 +14120,112 @@ export interface operations {
12400
14120
  };
12401
14121
  };
12402
14122
  };
14123
+ get_review_v1_visits__visit_id__review_get: {
14124
+ parameters: {
14125
+ query?: never;
14126
+ header?: {
14127
+ /** @description Membership the caller is acting through (from GET /v1/me) */
14128
+ "X-Guidistry-Context"?: string | null;
14129
+ };
14130
+ path: {
14131
+ visit_id: string;
14132
+ };
14133
+ cookie?: never;
14134
+ };
14135
+ requestBody?: never;
14136
+ responses: {
14137
+ /** @description Successful Response */
14138
+ 200: {
14139
+ headers: {
14140
+ [name: string]: unknown;
14141
+ };
14142
+ content: {
14143
+ "application/json": components["schemas"]["guidistry_api__questionnaires__schemas__ReviewOut"];
14144
+ };
14145
+ };
14146
+ /** @description Validation Error */
14147
+ 422: {
14148
+ headers: {
14149
+ [name: string]: unknown;
14150
+ };
14151
+ content: {
14152
+ "application/json": components["schemas"]["HTTPValidationError"];
14153
+ };
14154
+ };
14155
+ };
14156
+ };
14157
+ post_review_v1_visits__visit_id__review_post: {
14158
+ parameters: {
14159
+ query?: never;
14160
+ header?: {
14161
+ /** @description Membership the caller is acting through (from GET /v1/me) */
14162
+ "X-Guidistry-Context"?: string | null;
14163
+ };
14164
+ path: {
14165
+ visit_id: string;
14166
+ };
14167
+ cookie?: never;
14168
+ };
14169
+ requestBody: {
14170
+ content: {
14171
+ "application/json": components["schemas"]["ReviewIn"];
14172
+ };
14173
+ };
14174
+ responses: {
14175
+ /** @description Successful Response */
14176
+ 201: {
14177
+ headers: {
14178
+ [name: string]: unknown;
14179
+ };
14180
+ content: {
14181
+ "application/json": components["schemas"]["guidistry_api__questionnaires__schemas__ReviewOut"];
14182
+ };
14183
+ };
14184
+ /** @description Validation Error */
14185
+ 422: {
14186
+ headers: {
14187
+ [name: string]: unknown;
14188
+ };
14189
+ content: {
14190
+ "application/json": components["schemas"]["HTTPValidationError"];
14191
+ };
14192
+ };
14193
+ };
14194
+ };
14195
+ visit_review_summary_v1_visits__visit_id__review_summary_get: {
14196
+ parameters: {
14197
+ query?: never;
14198
+ header?: {
14199
+ /** @description Membership the caller is acting through (from GET /v1/me) */
14200
+ "X-Guidistry-Context"?: string | null;
14201
+ };
14202
+ path: {
14203
+ visit_id: string;
14204
+ };
14205
+ cookie?: never;
14206
+ };
14207
+ requestBody?: never;
14208
+ responses: {
14209
+ /** @description Successful Response */
14210
+ 200: {
14211
+ headers: {
14212
+ [name: string]: unknown;
14213
+ };
14214
+ content: {
14215
+ "application/json": components["schemas"]["ReviewSummaryOut"];
14216
+ };
14217
+ };
14218
+ /** @description Validation Error */
14219
+ 422: {
14220
+ headers: {
14221
+ [name: string]: unknown;
14222
+ };
14223
+ content: {
14224
+ "application/json": components["schemas"]["HTTPValidationError"];
14225
+ };
14226
+ };
14227
+ };
14228
+ };
12403
14229
  complete_attachment_v1_writing_attachments__attachment_id__complete_post: {
12404
14230
  parameters: {
12405
14231
  query?: never;
@@ -12454,7 +14280,7 @@ export interface operations {
12454
14280
  [name: string]: unknown;
12455
14281
  };
12456
14282
  content: {
12457
- "application/json": components["schemas"]["LinkOut"];
14283
+ "application/json": components["schemas"]["guidistry_api__progress__schemas__LinkOut"];
12458
14284
  };
12459
14285
  };
12460
14286
  /** @description Validation Error */