@brightoutcome/guidistry-client 0.11.1 → 0.12.1

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 +2009 -150
  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)
@@ -4856,6 +5440,11 @@ export interface components {
4856
5440
  id: string;
4857
5441
  /** @description Without meeting_url: join through POST /v1/visits/{id}/join */
4858
5442
  next_visit: components["schemas"]["VisitOut"] | null;
5443
+ /**
5444
+ * Open Reviews
5445
+ * @description Module 6c: after-visit reviews open to this patient, newest visit first (held, attended, review.enabled, inside review.window_days)
5446
+ */
5447
+ open_reviews?: components["schemas"]["OpenReview"][];
4859
5448
  /** Pause Requests */
4860
5449
  pause_requests: components["schemas"]["PauseOut"][];
4861
5450
  /** Paused */
@@ -5045,6 +5634,56 @@ export interface components {
5045
5634
  */
5046
5635
  source: "live_session" | "chart" | "close_out";
5047
5636
  };
5637
+ /** OccurrenceOut */
5638
+ OccurrenceOut: {
5639
+ /** Done */
5640
+ done?: components["schemas"]["Done"][];
5641
+ /**
5642
+ * Due At
5643
+ * Format: date-time
5644
+ */
5645
+ due_at: string;
5646
+ /** Instruments */
5647
+ instruments: string[];
5648
+ /**
5649
+ * Key
5650
+ * @description occurrence_key to send with the answers
5651
+ */
5652
+ key: string;
5653
+ /**
5654
+ * Kind
5655
+ * @enum {string}
5656
+ */
5657
+ kind: "checkin" | "timepoint";
5658
+ /** Label */
5659
+ label: string;
5660
+ /**
5661
+ * Opens At
5662
+ * Format: date-time
5663
+ */
5664
+ opens_at: string;
5665
+ /**
5666
+ * Outstanding
5667
+ * @description Instruments still to answer
5668
+ */
5669
+ outstanding: string[];
5670
+ /**
5671
+ * Paused
5672
+ * @description Inside a pause: excused if not answered
5673
+ */
5674
+ paused: boolean;
5675
+ /** Schedule Key */
5676
+ schedule_key: string;
5677
+ /** Session Number */
5678
+ session_number?: number | null;
5679
+ /**
5680
+ * State
5681
+ * @enum {string}
5682
+ */
5683
+ state: "not_open_yet" | "open" | "submitted" | "missed" | "excused" | "cancelled";
5684
+ /** Visit Id */
5685
+ visit_id?: string | null;
5686
+ };
5048
5687
  /** OnFileOut */
5049
5688
  OnFileOut: {
5050
5689
  /** Cohort Id */
@@ -5081,6 +5720,34 @@ export interface components {
5081
5720
  /** Version Label */
5082
5721
  version_label: string | null;
5083
5722
  };
5723
+ /**
5724
+ * OpenReview
5725
+ * @description An after-visit review the patient can answer (or change) now.
5726
+ */
5727
+ OpenReview: {
5728
+ /**
5729
+ * Answered
5730
+ * @description True once answered; it can still be changed until closes_at
5731
+ */
5732
+ answered: boolean;
5733
+ /**
5734
+ * Closes At
5735
+ * Format: date-time
5736
+ */
5737
+ closes_at: string;
5738
+ /** Session Number */
5739
+ session_number: number | null;
5740
+ /**
5741
+ * Visit Ended At
5742
+ * Format: date-time
5743
+ */
5744
+ visit_ended_at: string;
5745
+ /**
5746
+ * Visit Id
5747
+ * Format: uuid
5748
+ */
5749
+ visit_id: string;
5750
+ };
5084
5751
  /** OpenSessionIn */
5085
5752
  OpenSessionIn: {
5086
5753
  /** Reason */
@@ -5270,7 +5937,17 @@ export interface components {
5270
5937
  * Action
5271
5938
  * @enum {string}
5272
5939
  */
5273
- action: "approve" | "decline" | "end" | "extend" | "cancel";
5940
+ action: "approve" | "decline" | "end" | "extend" | "cancel" | "effects";
5941
+ /**
5942
+ * Affects Checkins
5943
+ * @description effects: check-ins covered
5944
+ */
5945
+ affects_checkins?: boolean | null;
5946
+ /**
5947
+ * Affects Timepoints
5948
+ * @description effects: timepoints covered
5949
+ */
5950
+ affects_timepoints?: boolean | null;
5274
5951
  /**
5275
5952
  * Ends At
5276
5953
  * @description approve: adjusted end; extend: new end
@@ -5283,9 +5960,29 @@ export interface components {
5283
5960
  * @description approve: adjusted start
5284
5961
  */
5285
5962
  starts_at?: string | null;
5963
+ /**
5964
+ * Timepoint Rule
5965
+ * @description effects: timepoint rule
5966
+ */
5967
+ timepoint_rule?: ("move" | "excuse" | "still_collect") | null;
5286
5968
  };
5287
5969
  /** PauseCreate */
5288
5970
  PauseCreate: {
5971
+ /**
5972
+ * Affects Checkins
5973
+ * @description Default from pause.default_effects
5974
+ */
5975
+ affects_checkins?: boolean | null;
5976
+ /**
5977
+ * Affects Timepoints
5978
+ * @description Default from pause.default_effects
5979
+ */
5980
+ affects_timepoints?: boolean | null;
5981
+ /**
5982
+ * Affects Visits
5983
+ * @description Module 6b: default from pause.default_effects (fixed once created)
5984
+ */
5985
+ affects_visits?: boolean | null;
5289
5986
  /**
5290
5987
  * Ends At
5291
5988
  * Format: date-time
@@ -5326,6 +6023,11 @@ export interface components {
5326
6023
  * Format: date-time
5327
6024
  */
5328
6025
  starts_at: string;
6026
+ /**
6027
+ * Timepoint Rule
6028
+ * @description Default from questionnaires.pause_timepoint_rule
6029
+ */
6030
+ timepoint_rule?: ("move" | "excuse" | "still_collect") | null;
5329
6031
  };
5330
6032
  /** PauseOut */
5331
6033
  PauseOut: {
@@ -5335,6 +6037,21 @@ export interface components {
5335
6037
  * @default 0
5336
6038
  */
5337
6039
  affected_visits: number;
6040
+ /**
6041
+ * Affects Checkins
6042
+ * @default true
6043
+ */
6044
+ affects_checkins: boolean;
6045
+ /**
6046
+ * Affects Timepoints
6047
+ * @default true
6048
+ */
6049
+ affects_timepoints: boolean;
6050
+ /**
6051
+ * Affects Visits
6052
+ * @default true
6053
+ */
6054
+ affects_visits: boolean;
5338
6055
  /**
5339
6056
  * Created At
5340
6057
  * Format: date-time
@@ -5388,6 +6105,12 @@ export interface components {
5388
6105
  * @enum {string}
5389
6106
  */
5390
6107
  status: "requested" | "active" | "declined" | "ended" | "cancelled";
6108
+ /**
6109
+ * Timepoint Rule
6110
+ * @default still_collect
6111
+ * @enum {string}
6112
+ */
6113
+ timepoint_rule: "move" | "excuse" | "still_collect";
5391
6114
  };
5392
6115
  /**
5393
6116
  * PauseRequest
@@ -5765,31 +6488,24 @@ export interface components {
5765
6488
  sessions: components["schemas"]["SessionState"][];
5766
6489
  vs_last_week: components["schemas"]["LastWeek"];
5767
6490
  };
5768
- /** Prompt */
5769
- Prompt: {
6491
+ /** ProsDetail */
6492
+ ProsDetail: {
6493
+ /** Instruments */
6494
+ instruments: string[];
6495
+ /** Modes */
6496
+ modes: ("portal" | "login_prompt" | "email_link" | "text_link" | "ivr" | "interviewer_phone" | "interviewer_in_person")[];
6497
+ /** Outstanding */
6498
+ outstanding: string[];
6499
+ /** Submitted At */
6500
+ submitted_at: string | null;
6501
+ };
6502
+ /** PublishIn */
6503
+ PublishIn: {
5770
6504
  /**
5771
- * Key
5772
- * Format: uuid
6505
+ * Change Kind
6506
+ * @description Every version after the first; default material
5773
6507
  */
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;
5785
- };
5786
- /** PublishIn */
5787
- PublishIn: {
5788
- /**
5789
- * Change Kind
5790
- * @description Every version after the first; default material
5791
- */
5792
- change_kind?: ("material" | "minor") | null;
6508
+ change_kind?: ("material" | "minor") | null;
5793
6509
  /**
5794
6510
  * Change Reason
5795
6511
  * @description Minor: required
@@ -5846,6 +6562,29 @@ export interface components {
5846
6562
  */
5847
6563
  visibility: "private" | "care_team" | "community";
5848
6564
  };
6565
+ /** QuestionnairesOut */
6566
+ QuestionnairesOut: {
6567
+ /**
6568
+ * Enrollment Id
6569
+ * Format: uuid
6570
+ */
6571
+ enrollment_id: string;
6572
+ /**
6573
+ * Occurrences
6574
+ * @description Last 60 days and what opens next; nothing is stored per occurrence
6575
+ */
6576
+ occurrences: components["schemas"]["OccurrenceOut"][];
6577
+ /**
6578
+ * Requests
6579
+ * @description Open requests from the care team
6580
+ */
6581
+ requests: components["schemas"]["RequestOut"][];
6582
+ /**
6583
+ * Streak Days
6584
+ * @description Daily check-ins answered in a row up to today (daily schedules)
6585
+ */
6586
+ streak_days?: number | null;
6587
+ };
5849
6588
  /** QueueEntry */
5850
6589
  QueueEntry: {
5851
6590
  /**
@@ -5896,10 +6635,12 @@ export interface components {
5896
6635
  prework_detail?: components["schemas"]["PreworkOut"] | null;
5897
6636
  /**
5898
6637
  * Pros
5899
- * @default not_available
5900
- * @constant
6638
+ * @description Module 6b: every questionnaire tied to this visit answered by the deadline (pros.deadline); a pause excuses
6639
+ * @default not_required
6640
+ * @enum {string}
5901
6641
  */
5902
- pros: "not_available";
6642
+ pros: "ok" | "outstanding" | "not_required" | "excused" | "not_open_yet";
6643
+ pros_detail?: components["schemas"]["ProsDetail"] | null;
5903
6644
  /**
5904
6645
  * Waiver
5905
6646
  * @enum {string}
@@ -5920,6 +6661,16 @@ export interface components {
5920
6661
  * @default 0
5921
6662
  */
5922
6663
  prework_required: number;
6664
+ /**
6665
+ * Pros Done
6666
+ * @default 0
6667
+ */
6668
+ pros_done: number;
6669
+ /**
6670
+ * Pros Required
6671
+ * @default 0
6672
+ */
6673
+ pros_required: number;
5923
6674
  /**
5924
6675
  * Visit Id
5925
6676
  * Format: uuid
@@ -6011,6 +6762,78 @@ export interface components {
6011
6762
  */
6012
6763
  relationship: "guardian" | "healthcare_agent" | "parent" | "other";
6013
6764
  };
6765
+ /** RequestCreate */
6766
+ RequestCreate: {
6767
+ /** Instruments */
6768
+ instruments: string[];
6769
+ /**
6770
+ * Mode
6771
+ * @enum {string}
6772
+ */
6773
+ mode: "login_prompt" | "email_link" | "text_link" | "ivr";
6774
+ /** Note */
6775
+ note?: string | null;
6776
+ /** Occurrence Key */
6777
+ occurrence_key?: string | null;
6778
+ };
6779
+ /** RequestOut */
6780
+ RequestOut: {
6781
+ /**
6782
+ * By Rule
6783
+ * @description Raised by phq2.positive_followup, not a person
6784
+ * @default false
6785
+ */
6786
+ by_rule: boolean;
6787
+ /** Completed At */
6788
+ completed_at: string | null;
6789
+ /**
6790
+ * Created At
6791
+ * Format: date-time
6792
+ */
6793
+ created_at: string;
6794
+ /**
6795
+ * Enrollment Id
6796
+ * Format: uuid
6797
+ */
6798
+ enrollment_id: string;
6799
+ /** Expires At */
6800
+ expires_at: string | null;
6801
+ /**
6802
+ * Id
6803
+ * Format: uuid
6804
+ */
6805
+ id: string;
6806
+ /** Instruments */
6807
+ instruments: string[];
6808
+ /**
6809
+ * Mode
6810
+ * @enum {string}
6811
+ */
6812
+ mode: "login_prompt" | "email_link" | "text_link" | "ivr";
6813
+ /**
6814
+ * Note
6815
+ * @description Shown to the patient (no health details)
6816
+ */
6817
+ note?: string | null;
6818
+ /** Occurrence Key */
6819
+ occurrence_key: string | null;
6820
+ /** Opened At */
6821
+ opened_at: string | null;
6822
+ /** Outstanding */
6823
+ outstanding?: string[];
6824
+ /** Sent At */
6825
+ sent_at: string | null;
6826
+ /**
6827
+ * Sent To Hint
6828
+ * @description e.g. d***@example.com (staff only)
6829
+ */
6830
+ sent_to_hint?: string | null;
6831
+ /**
6832
+ * State
6833
+ * @enum {string}
6834
+ */
6835
+ state: "open" | "completed" | "cancelled" | "expired";
6836
+ };
6014
6837
  /** Resource */
6015
6838
  Resource: {
6016
6839
  /** Category */
@@ -6057,6 +6880,95 @@ export interface components {
6057
6880
  */
6058
6881
  type: "resource";
6059
6882
  };
6883
+ /** ResponseIn */
6884
+ ResponseIn: {
6885
+ /**
6886
+ * Administration Mode
6887
+ * @description Patients: portal (default) or login_prompt; staff: interviewer_phone (default) or interviewer_in_person
6888
+ */
6889
+ administration_mode?: ("portal" | "login_prompt" | "email_link" | "text_link" | "ivr" | "interviewer_phone" | "interviewer_in_person") | null;
6890
+ /** Answers */
6891
+ answers: components["schemas"]["AnswerIn"][];
6892
+ /** Client Submission Id */
6893
+ client_submission_id: string;
6894
+ /**
6895
+ * Code
6896
+ * @description Instrument code, e.g. PEG, PHQ-2
6897
+ */
6898
+ code: string;
6899
+ /** Occurrence Key */
6900
+ occurrence_key?: string | null;
6901
+ /** Request Id */
6902
+ request_id?: string | null;
6903
+ /**
6904
+ * Version
6905
+ * @description Default: the occurrence's
6906
+ */
6907
+ version?: string | null;
6908
+ };
6909
+ /** ResponseOut */
6910
+ ResponseOut: {
6911
+ /**
6912
+ * Administration Mode
6913
+ * @enum {string}
6914
+ */
6915
+ administration_mode: "portal" | "login_prompt" | "email_link" | "text_link" | "ivr" | "interviewer_phone" | "interviewer_in_person";
6916
+ /**
6917
+ * Answers
6918
+ * @description Item-level answers (the patient's own, and their care team)
6919
+ */
6920
+ answers?: {
6921
+ [key: string]: unknown;
6922
+ }[] | null;
6923
+ /** Code */
6924
+ code: string;
6925
+ /**
6926
+ * Enrollment Id
6927
+ * Format: uuid
6928
+ */
6929
+ enrollment_id: string;
6930
+ /** Entered By Staff */
6931
+ entered_by_staff: boolean;
6932
+ /**
6933
+ * Id
6934
+ * Format: uuid
6935
+ */
6936
+ id: string;
6937
+ /**
6938
+ * Kind
6939
+ * @enum {string}
6940
+ */
6941
+ kind: "checkin" | "timepoint" | "request";
6942
+ /** Name */
6943
+ name: string;
6944
+ /** Occurrence Key */
6945
+ occurrence_key: string | null;
6946
+ /** Request Id */
6947
+ request_id: string | null;
6948
+ /** Revises Id */
6949
+ revises_id: string | null;
6950
+ /** @description Only on the submit response */
6951
+ safety?: components["schemas"]["SafetyOut"] | null;
6952
+ /** Scores */
6953
+ scores: components["schemas"]["ScoreOut"][];
6954
+ /**
6955
+ * Submitted At
6956
+ * Format: date-time
6957
+ */
6958
+ submitted_at: string;
6959
+ /**
6960
+ * Thank You
6961
+ * @default questionnaire.thank_you
6962
+ */
6963
+ thank_you: string;
6964
+ /** Version */
6965
+ version: string;
6966
+ };
6967
+ /** ResponsePage */
6968
+ ResponsePage: {
6969
+ /** Items */
6970
+ items: components["schemas"]["ResponseOut"][];
6971
+ };
6060
6972
  /** ReviewDecision */
6061
6973
  ReviewDecision: {
6062
6974
  /**
@@ -6067,31 +6979,83 @@ export interface components {
6067
6979
  /** Note */
6068
6980
  note?: string | null;
6069
6981
  };
6070
- /** ReviewOut */
6071
- ReviewOut: {
6072
- /** Decided At */
6073
- decided_at: string | null;
6074
- /** Decision */
6075
- decision: string | null;
6982
+ /** ReviewIn */
6983
+ ReviewIn: {
6984
+ /** Answers */
6985
+ answers: {
6986
+ [key: string]: number | null;
6987
+ };
6988
+ /** Comment */
6989
+ comment?: string | null;
6990
+ };
6991
+ /** ReviewQuestion */
6992
+ ReviewQuestion: {
6993
+ /** Id */
6994
+ id: string;
6076
6995
  /**
6077
- * Id
6078
- * Format: uuid
6996
+ * Optional
6997
+ * @default false
6079
6998
  */
6080
- id: string;
6081
- /** Note */
6082
- note: string | null;
6083
- /** Pause Id */
6084
- pause_id: string | null;
6999
+ optional: boolean;
7000
+ /** Options */
7001
+ options?: {
7002
+ [key: string]: unknown;
7003
+ }[] | null;
7004
+ /** Text */
7005
+ text: string;
7006
+ /** Type */
7007
+ type: string;
6085
7008
  /**
6086
- * Raised At
6087
- * Format: date-time
7009
+ * Validated
7010
+ * @description False for the team's own questions
7011
+ * @default true
6088
7012
  */
6089
- raised_at: string;
7013
+ validated: boolean;
7014
+ };
7015
+ /** ReviewSummaryOut */
7016
+ ReviewSummaryOut: {
6090
7017
  /**
6091
- * Reason
7018
+ * Comments
7019
+ * @description Unnamed, in random order; only when enough
7020
+ */
7021
+ comments?: string[];
7022
+ /** Communication Top Box */
7023
+ communication_top_box?: number | null;
7024
+ /**
7025
+ * Enough
7026
+ * @description False until review.min_responses answered
7027
+ */
7028
+ enough: boolean;
7029
+ /** Minimum */
7030
+ minimum: number;
7031
+ /** Nps */
7032
+ nps?: number | null;
7033
+ /** Own Means */
7034
+ own_means?: {
7035
+ [key: string]: number;
7036
+ } | null;
7037
+ /** Own Questions */
7038
+ own_questions?: string[];
7039
+ /** Rating 9 10 */
7040
+ rating_9_10?: number | null;
7041
+ /** Rating Mean */
7042
+ rating_mean?: number | null;
7043
+ /** Responses */
7044
+ responses: number;
7045
+ /**
7046
+ * Scope
6092
7047
  * @enum {string}
6093
7048
  */
6094
- reason: "pause_limit" | "missed_visits";
7049
+ scope: "visit" | "cohort" | "program";
7050
+ /**
7051
+ * Scope Id
7052
+ * Format: uuid
7053
+ */
7054
+ scope_id: string;
7055
+ /** Top Box */
7056
+ top_box?: {
7057
+ [key: string]: number | null;
7058
+ } | null;
6095
7059
  };
6096
7060
  /** RoleOut */
6097
7061
  RoleOut: {
@@ -6119,6 +7083,29 @@ export interface components {
6119
7083
  */
6120
7084
  billing_code?: string | null;
6121
7085
  };
7086
+ /** SafetyOut */
7087
+ SafetyOut: {
7088
+ /**
7089
+ * Crisis Lines
7090
+ * @default [
7091
+ * "988",
7092
+ * "911"
7093
+ * ]
7094
+ */
7095
+ crisis_lines: string[];
7096
+ /**
7097
+ * Kind
7098
+ * @enum {string}
7099
+ */
7100
+ kind: "phq2_positive" | "phq9_item9";
7101
+ /**
7102
+ * Message
7103
+ * @description Show as is; names the practice number when set
7104
+ */
7105
+ message: string;
7106
+ /** Urgent Phone */
7107
+ urgent_phone: string | null;
7108
+ };
6122
7109
  /** ScanLink */
6123
7110
  ScanLink: {
6124
7111
  /**
@@ -6200,6 +7187,30 @@ export interface components {
6200
7187
  /** Upload Url */
6201
7188
  upload_url: string;
6202
7189
  };
7190
+ /** ScoreOut */
7191
+ ScoreOut: {
7192
+ /**
7193
+ * Band
7194
+ * @description Interpretation band (with its source)
7195
+ */
7196
+ band?: string | null;
7197
+ /** Raw */
7198
+ raw: number | null;
7199
+ /**
7200
+ * Scale
7201
+ * @description e.g. total, phq2, item9; a PROMIS form's name
7202
+ */
7203
+ scale: string;
7204
+ /** Se */
7205
+ se?: number | null;
7206
+ /**
7207
+ * Status
7208
+ * @enum {string}
7209
+ */
7210
+ status: "ok" | "not_scorable";
7211
+ /** T Score */
7212
+ t_score?: number | null;
7213
+ };
6203
7214
  /** Section */
6204
7215
  Section: {
6205
7216
  /** Blocks */
@@ -6367,6 +7378,11 @@ export interface components {
6367
7378
  /** Revision Number */
6368
7379
  revision_number: number;
6369
7380
  };
7381
+ /** SkipIn */
7382
+ SkipIn: {
7383
+ /** Occurrence Keys */
7384
+ occurrence_keys: string[];
7385
+ };
6370
7386
  /** SpeakIn */
6371
7387
  SpeakIn: {
6372
7388
  /** Text */
@@ -7021,6 +8037,32 @@ export interface components {
7021
8037
  [key: string]: number;
7022
8038
  } | null;
7023
8039
  };
8040
+ /** ReviewOut */
8041
+ guidistry_api__cohorts__schemas__ReviewOut: {
8042
+ /** Decided At */
8043
+ decided_at: string | null;
8044
+ /** Decision */
8045
+ decision: string | null;
8046
+ /**
8047
+ * Id
8048
+ * Format: uuid
8049
+ */
8050
+ id: string;
8051
+ /** Note */
8052
+ note: string | null;
8053
+ /** Pause Id */
8054
+ pause_id: string | null;
8055
+ /**
8056
+ * Raised At
8057
+ * Format: date-time
8058
+ */
8059
+ raised_at: string;
8060
+ /**
8061
+ * Reason
8062
+ * @enum {string}
8063
+ */
8064
+ reason: "pause_limit" | "missed_visits";
8065
+ };
7024
8066
  /** RevisionOut */
7025
8067
  guidistry_api__content__api_schemas__RevisionOut: {
7026
8068
  /** Change Note */
@@ -7053,6 +8095,96 @@ export interface components {
7053
8095
  /** Version */
7054
8096
  version: string;
7055
8097
  };
8098
+ /** Prompt */
8099
+ guidistry_api__content__schema__Prompt: {
8100
+ /**
8101
+ * Key
8102
+ * Format: uuid
8103
+ */
8104
+ key: string;
8105
+ /** Markdown */
8106
+ markdown: string;
8107
+ /**
8108
+ * Prompt Type
8109
+ * @enum {string}
8110
+ */
8111
+ prompt_type: "community" | "journal";
8112
+ tags?: components["schemas"]["Tags"] | null;
8113
+ /** Title */
8114
+ title: string;
8115
+ };
8116
+ /** LinkOut */
8117
+ guidistry_api__progress__schemas__LinkOut: {
8118
+ /** Expires In Seconds */
8119
+ expires_in_seconds: number;
8120
+ /** Url */
8121
+ url: string;
8122
+ };
8123
+ /**
8124
+ * LinkOut
8125
+ * @description What a questionnaire link opens: no name, no earlier answers (design §6).
8126
+ */
8127
+ guidistry_api__questionnaires__schemas__LinkOut: {
8128
+ /** Expires At */
8129
+ expires_at: string | null;
8130
+ /** Forms */
8131
+ forms: components["schemas"]["FormOut"][];
8132
+ /** Note */
8133
+ note: string | null;
8134
+ /** Outstanding */
8135
+ outstanding: string[];
8136
+ /** Practice Name */
8137
+ practice_name: string;
8138
+ };
8139
+ /**
8140
+ * Prompt
8141
+ * @description A sign-in prompt (login_prompt request) the portal shows after the site agreement.
8142
+ */
8143
+ guidistry_api__questionnaires__schemas__Prompt: {
8144
+ /**
8145
+ * Enrollment Id
8146
+ * Format: uuid
8147
+ */
8148
+ enrollment_id: string;
8149
+ /** Instruments */
8150
+ instruments: string[];
8151
+ /** Note */
8152
+ note: string | null;
8153
+ /** Outstanding */
8154
+ outstanding: string[];
8155
+ /** Program Name */
8156
+ program_name: string;
8157
+ /**
8158
+ * Request Id
8159
+ * Format: uuid
8160
+ */
8161
+ request_id: string;
8162
+ };
8163
+ /** ReviewOut */
8164
+ guidistry_api__questionnaires__schemas__ReviewOut: {
8165
+ /**
8166
+ * Answers
8167
+ * @description Your own latest answers
8168
+ */
8169
+ answers?: {
8170
+ [key: string]: unknown;
8171
+ } | null;
8172
+ /** Closes At */
8173
+ closes_at: string | null;
8174
+ /** Comment */
8175
+ comment?: string | null;
8176
+ /** Open */
8177
+ open: boolean;
8178
+ /** Questions */
8179
+ questions: components["schemas"]["ReviewQuestion"][];
8180
+ /** Submitted At */
8181
+ submitted_at?: string | null;
8182
+ /**
8183
+ * Visit Id
8184
+ * Format: uuid
8185
+ */
8186
+ visit_id: string;
8187
+ };
7056
8188
  /** RevisionOut */
7057
8189
  guidistry_api__visits__schemas__RevisionOut: {
7058
8190
  /**
@@ -7784,8 +8916,83 @@ export interface operations {
7784
8916
  parameters: {
7785
8917
  query?: {
7786
8918
  cohort_id?: string | null;
7787
- /** @description Only cohorts I lead or facilitate */
7788
- mine?: boolean;
8919
+ /** @description Only cohorts I lead or facilitate */
8920
+ mine?: boolean;
8921
+ };
8922
+ header?: {
8923
+ /** @description Membership the caller is acting through (from GET /v1/me) */
8924
+ "X-Guidistry-Context"?: string | null;
8925
+ };
8926
+ path?: never;
8927
+ cookie?: never;
8928
+ };
8929
+ requestBody?: never;
8930
+ responses: {
8931
+ /** @description Successful Response */
8932
+ 200: {
8933
+ headers: {
8934
+ [name: string]: unknown;
8935
+ };
8936
+ content: {
8937
+ "application/json": components["schemas"]["TodoOut"][];
8938
+ };
8939
+ };
8940
+ /** @description Validation Error */
8941
+ 422: {
8942
+ headers: {
8943
+ [name: string]: unknown;
8944
+ };
8945
+ content: {
8946
+ "application/json": components["schemas"]["HTTPValidationError"];
8947
+ };
8948
+ };
8949
+ };
8950
+ };
8951
+ agreement_entered_in_error_v1_agreements__agreement_id__entered_in_error_post: {
8952
+ parameters: {
8953
+ query?: never;
8954
+ header?: {
8955
+ /** @description Membership the caller is acting through (from GET /v1/me) */
8956
+ "X-Guidistry-Context"?: string | null;
8957
+ };
8958
+ path: {
8959
+ agreement_id: string;
8960
+ };
8961
+ cookie?: never;
8962
+ };
8963
+ requestBody: {
8964
+ content: {
8965
+ "application/json": components["schemas"]["EnteredInError"];
8966
+ };
8967
+ };
8968
+ responses: {
8969
+ /** @description Successful Response */
8970
+ 200: {
8971
+ headers: {
8972
+ [name: string]: unknown;
8973
+ };
8974
+ content: {
8975
+ "application/json": components["schemas"]["AgreementOut"];
8976
+ };
8977
+ };
8978
+ /** @description Validation Error */
8979
+ 422: {
8980
+ headers: {
8981
+ [name: string]: unknown;
8982
+ };
8983
+ content: {
8984
+ "application/json": components["schemas"]["HTTPValidationError"];
8985
+ };
8986
+ };
8987
+ };
8988
+ };
8989
+ list_alerts_v1_alerts_get: {
8990
+ parameters: {
8991
+ query?: {
8992
+ cohort_id?: string | null;
8993
+ enrollment_id?: string | null;
8994
+ status?: string | null;
8995
+ limit?: number;
7789
8996
  };
7790
8997
  header?: {
7791
8998
  /** @description Membership the caller is acting through (from GET /v1/me) */
@@ -7802,7 +9009,7 @@ export interface operations {
7802
9009
  [name: string]: unknown;
7803
9010
  };
7804
9011
  content: {
7805
- "application/json": components["schemas"]["TodoOut"][];
9012
+ "application/json": components["schemas"]["AlertPage"];
7806
9013
  };
7807
9014
  };
7808
9015
  /** @description Validation Error */
@@ -7816,7 +9023,7 @@ export interface operations {
7816
9023
  };
7817
9024
  };
7818
9025
  };
7819
- agreement_entered_in_error_v1_agreements__agreement_id__entered_in_error_post: {
9026
+ alert_event_v1_alerts__alert_id__events_post: {
7820
9027
  parameters: {
7821
9028
  query?: never;
7822
9029
  header?: {
@@ -7824,13 +9031,13 @@ export interface operations {
7824
9031
  "X-Guidistry-Context"?: string | null;
7825
9032
  };
7826
9033
  path: {
7827
- agreement_id: string;
9034
+ alert_id: string;
7828
9035
  };
7829
9036
  cookie?: never;
7830
9037
  };
7831
9038
  requestBody: {
7832
9039
  content: {
7833
- "application/json": components["schemas"]["EnteredInError"];
9040
+ "application/json": components["schemas"]["AlertEventIn"];
7834
9041
  };
7835
9042
  };
7836
9043
  responses: {
@@ -7840,7 +9047,7 @@ export interface operations {
7840
9047
  [name: string]: unknown;
7841
9048
  };
7842
9049
  content: {
7843
- "application/json": components["schemas"]["AgreementOut"];
9050
+ "application/json": components["schemas"]["AlertOut"];
7844
9051
  };
7845
9052
  };
7846
9053
  /** @description Validation Error */
@@ -8103,6 +9310,74 @@ export interface operations {
8103
9310
  };
8104
9311
  };
8105
9312
  };
9313
+ cohort_questionnaires_v1_cohorts__cohort_id__questionnaires_get: {
9314
+ parameters: {
9315
+ query?: never;
9316
+ header?: {
9317
+ /** @description Membership the caller is acting through (from GET /v1/me) */
9318
+ "X-Guidistry-Context"?: string | null;
9319
+ };
9320
+ path: {
9321
+ cohort_id: string;
9322
+ };
9323
+ cookie?: never;
9324
+ };
9325
+ requestBody?: never;
9326
+ responses: {
9327
+ /** @description Successful Response */
9328
+ 200: {
9329
+ headers: {
9330
+ [name: string]: unknown;
9331
+ };
9332
+ content: {
9333
+ "application/json": components["schemas"]["CohortQuestionnairesOut"];
9334
+ };
9335
+ };
9336
+ /** @description Validation Error */
9337
+ 422: {
9338
+ headers: {
9339
+ [name: string]: unknown;
9340
+ };
9341
+ content: {
9342
+ "application/json": components["schemas"]["HTTPValidationError"];
9343
+ };
9344
+ };
9345
+ };
9346
+ };
9347
+ cohort_review_summary_v1_cohorts__cohort_id__review_summary_get: {
9348
+ parameters: {
9349
+ query?: never;
9350
+ header?: {
9351
+ /** @description Membership the caller is acting through (from GET /v1/me) */
9352
+ "X-Guidistry-Context"?: string | null;
9353
+ };
9354
+ path: {
9355
+ cohort_id: string;
9356
+ };
9357
+ cookie?: never;
9358
+ };
9359
+ requestBody?: never;
9360
+ responses: {
9361
+ /** @description Successful Response */
9362
+ 200: {
9363
+ headers: {
9364
+ [name: string]: unknown;
9365
+ };
9366
+ content: {
9367
+ "application/json": components["schemas"]["ReviewSummaryOut"];
9368
+ };
9369
+ };
9370
+ /** @description Validation Error */
9371
+ 422: {
9372
+ headers: {
9373
+ [name: string]: unknown;
9374
+ };
9375
+ content: {
9376
+ "application/json": components["schemas"]["HTTPValidationError"];
9377
+ };
9378
+ };
9379
+ };
9380
+ };
8106
9381
  cohort_settings_v1_cohorts__cohort_id__settings_get: {
8107
9382
  parameters: {
8108
9383
  query?: never;
@@ -9398,22 +10673,215 @@ export interface operations {
9398
10673
  headers: {
9399
10674
  [name: string]: unknown;
9400
10675
  };
9401
- content: {
9402
- "application/json": components["schemas"]["PauseOut"];
9403
- };
10676
+ content: {
10677
+ "application/json": components["schemas"]["PauseOut"];
10678
+ };
10679
+ };
10680
+ /** @description Validation Error */
10681
+ 422: {
10682
+ headers: {
10683
+ [name: string]: unknown;
10684
+ };
10685
+ content: {
10686
+ "application/json": components["schemas"]["HTTPValidationError"];
10687
+ };
10688
+ };
10689
+ };
10690
+ };
10691
+ enrollment_progress_v1_enrollments__enrollment_id__progress_get: {
10692
+ parameters: {
10693
+ query?: never;
10694
+ header?: {
10695
+ /** @description Membership the caller is acting through (from GET /v1/me) */
10696
+ "X-Guidistry-Context"?: string | null;
10697
+ };
10698
+ path: {
10699
+ enrollment_id: string;
10700
+ };
10701
+ cookie?: never;
10702
+ };
10703
+ requestBody?: never;
10704
+ responses: {
10705
+ /** @description Successful Response */
10706
+ 200: {
10707
+ headers: {
10708
+ [name: string]: unknown;
10709
+ };
10710
+ content: {
10711
+ "application/json": components["schemas"]["ProgressOut"];
10712
+ };
10713
+ };
10714
+ /** @description Validation Error */
10715
+ 422: {
10716
+ headers: {
10717
+ [name: string]: unknown;
10718
+ };
10719
+ content: {
10720
+ "application/json": components["schemas"]["HTTPValidationError"];
10721
+ };
10722
+ };
10723
+ };
10724
+ };
10725
+ list_requests_v1_enrollments__enrollment_id__questionnaire_requests_get: {
10726
+ parameters: {
10727
+ query?: never;
10728
+ header?: {
10729
+ /** @description Membership the caller is acting through (from GET /v1/me) */
10730
+ "X-Guidistry-Context"?: string | null;
10731
+ };
10732
+ path: {
10733
+ enrollment_id: string;
10734
+ };
10735
+ cookie?: never;
10736
+ };
10737
+ requestBody?: never;
10738
+ responses: {
10739
+ /** @description Successful Response */
10740
+ 200: {
10741
+ headers: {
10742
+ [name: string]: unknown;
10743
+ };
10744
+ content: {
10745
+ "application/json": components["schemas"]["RequestOut"][];
10746
+ };
10747
+ };
10748
+ /** @description Validation Error */
10749
+ 422: {
10750
+ headers: {
10751
+ [name: string]: unknown;
10752
+ };
10753
+ content: {
10754
+ "application/json": components["schemas"]["HTTPValidationError"];
10755
+ };
10756
+ };
10757
+ };
10758
+ };
10759
+ create_request_v1_enrollments__enrollment_id__questionnaire_requests_post: {
10760
+ parameters: {
10761
+ query?: never;
10762
+ header?: {
10763
+ /** @description Membership the caller is acting through (from GET /v1/me) */
10764
+ "X-Guidistry-Context"?: string | null;
10765
+ };
10766
+ path: {
10767
+ enrollment_id: string;
10768
+ };
10769
+ cookie?: never;
10770
+ };
10771
+ requestBody: {
10772
+ content: {
10773
+ "application/json": components["schemas"]["RequestCreate"];
10774
+ };
10775
+ };
10776
+ responses: {
10777
+ /** @description Successful Response */
10778
+ 201: {
10779
+ headers: {
10780
+ [name: string]: unknown;
10781
+ };
10782
+ content: {
10783
+ "application/json": components["schemas"]["RequestOut"];
10784
+ };
10785
+ };
10786
+ /** @description mode_not_available_yet (text_link, ivr: 6b part 2) */
10787
+ 409: {
10788
+ headers: {
10789
+ [name: string]: unknown;
10790
+ };
10791
+ content?: never;
10792
+ };
10793
+ /** @description Validation Error */
10794
+ 422: {
10795
+ headers: {
10796
+ [name: string]: unknown;
10797
+ };
10798
+ content: {
10799
+ "application/json": components["schemas"]["HTTPValidationError"];
10800
+ };
10801
+ };
10802
+ };
10803
+ };
10804
+ list_responses_v1_enrollments__enrollment_id__questionnaire_responses_get: {
10805
+ parameters: {
10806
+ query?: {
10807
+ code?: string | null;
10808
+ limit?: number;
10809
+ };
10810
+ header?: {
10811
+ /** @description Membership the caller is acting through (from GET /v1/me) */
10812
+ "X-Guidistry-Context"?: string | null;
10813
+ };
10814
+ path: {
10815
+ enrollment_id: string;
10816
+ };
10817
+ cookie?: never;
10818
+ };
10819
+ requestBody?: never;
10820
+ responses: {
10821
+ /** @description Successful Response */
10822
+ 200: {
10823
+ headers: {
10824
+ [name: string]: unknown;
10825
+ };
10826
+ content: {
10827
+ "application/json": components["schemas"]["ResponsePage"];
10828
+ };
10829
+ };
10830
+ /** @description Validation Error */
10831
+ 422: {
10832
+ headers: {
10833
+ [name: string]: unknown;
10834
+ };
10835
+ content: {
10836
+ "application/json": components["schemas"]["HTTPValidationError"];
10837
+ };
10838
+ };
10839
+ };
10840
+ };
10841
+ submit_response_v1_enrollments__enrollment_id__questionnaire_responses_post: {
10842
+ parameters: {
10843
+ query?: never;
10844
+ header?: {
10845
+ /** @description Membership the caller is acting through (from GET /v1/me) */
10846
+ "X-Guidistry-Context"?: string | null;
10847
+ };
10848
+ path: {
10849
+ enrollment_id: string;
10850
+ };
10851
+ cookie?: never;
10852
+ };
10853
+ requestBody: {
10854
+ content: {
10855
+ "application/json": components["schemas"]["ResponseIn"];
10856
+ };
10857
+ };
10858
+ responses: {
10859
+ /** @description Successful Response */
10860
+ 201: {
10861
+ headers: {
10862
+ [name: string]: unknown;
10863
+ };
10864
+ content: {
10865
+ "application/json": components["schemas"]["ResponseOut"];
10866
+ };
10867
+ };
10868
+ /** @description occurrence_closed, request_closed, mode not allowed */
10869
+ 409: {
10870
+ headers: {
10871
+ [name: string]: unknown;
10872
+ };
10873
+ content?: never;
9404
10874
  };
9405
- /** @description Validation Error */
10875
+ /** @description incomplete, value_out_of_range, occurrence_required, … */
9406
10876
  422: {
9407
10877
  headers: {
9408
10878
  [name: string]: unknown;
9409
10879
  };
9410
- content: {
9411
- "application/json": components["schemas"]["HTTPValidationError"];
9412
- };
10880
+ content?: never;
9413
10881
  };
9414
10882
  };
9415
10883
  };
9416
- enrollment_progress_v1_enrollments__enrollment_id__progress_get: {
10884
+ list_questionnaires_v1_enrollments__enrollment_id__questionnaires_get: {
9417
10885
  parameters: {
9418
10886
  query?: never;
9419
10887
  header?: {
@@ -9433,7 +10901,7 @@ export interface operations {
9433
10901
  [name: string]: unknown;
9434
10902
  };
9435
10903
  content: {
9436
- "application/json": components["schemas"]["ProgressOut"];
10904
+ "application/json": components["schemas"]["QuestionnairesOut"];
9437
10905
  };
9438
10906
  };
9439
10907
  /** @description Validation Error */
@@ -9467,7 +10935,7 @@ export interface operations {
9467
10935
  [name: string]: unknown;
9468
10936
  };
9469
10937
  content: {
9470
- "application/json": components["schemas"]["ReviewOut"][];
10938
+ "application/json": components["schemas"]["guidistry_api__cohorts__schemas__ReviewOut"][];
9471
10939
  };
9472
10940
  };
9473
10941
  /** @description Validation Error */
@@ -9506,7 +10974,7 @@ export interface operations {
9506
10974
  [name: string]: unknown;
9507
10975
  };
9508
10976
  content: {
9509
- "application/json": components["schemas"]["ReviewOut"];
10977
+ "application/json": components["schemas"]["guidistry_api__cohorts__schemas__ReviewOut"];
9510
10978
  };
9511
10979
  };
9512
10980
  /** @description Validation Error */
@@ -9946,6 +11414,41 @@ export interface operations {
9946
11414
  };
9947
11415
  };
9948
11416
  };
11417
+ list_instruments_v1_instruments_get: {
11418
+ parameters: {
11419
+ query?: {
11420
+ q?: string | null;
11421
+ family?: string | null;
11422
+ };
11423
+ header?: {
11424
+ /** @description Membership the caller is acting through (from GET /v1/me) */
11425
+ "X-Guidistry-Context"?: string | null;
11426
+ };
11427
+ path?: never;
11428
+ cookie?: never;
11429
+ };
11430
+ requestBody?: never;
11431
+ responses: {
11432
+ /** @description Successful Response */
11433
+ 200: {
11434
+ headers: {
11435
+ [name: string]: unknown;
11436
+ };
11437
+ content: {
11438
+ "application/json": components["schemas"]["InstrumentOut"][];
11439
+ };
11440
+ };
11441
+ /** @description Validation Error */
11442
+ 422: {
11443
+ headers: {
11444
+ [name: string]: unknown;
11445
+ };
11446
+ content: {
11447
+ "application/json": components["schemas"]["HTTPValidationError"];
11448
+ };
11449
+ };
11450
+ };
11451
+ };
9949
11452
  list_invitations_v1_invitations_get: {
9950
11453
  parameters: {
9951
11454
  query?: {
@@ -10823,6 +12326,43 @@ export interface operations {
10823
12326
  };
10824
12327
  };
10825
12328
  };
12329
+ patient_responses_v1_patients__patient_id__questionnaires_get: {
12330
+ parameters: {
12331
+ query?: {
12332
+ code?: string | null;
12333
+ limit?: number;
12334
+ };
12335
+ header?: {
12336
+ /** @description Membership the caller is acting through (from GET /v1/me) */
12337
+ "X-Guidistry-Context"?: string | null;
12338
+ };
12339
+ path: {
12340
+ patient_id: string;
12341
+ };
12342
+ cookie?: never;
12343
+ };
12344
+ requestBody?: never;
12345
+ responses: {
12346
+ /** @description Successful Response */
12347
+ 200: {
12348
+ headers: {
12349
+ [name: string]: unknown;
12350
+ };
12351
+ content: {
12352
+ "application/json": components["schemas"]["ResponsePage"];
12353
+ };
12354
+ };
12355
+ /** @description Validation Error */
12356
+ 422: {
12357
+ headers: {
12358
+ [name: string]: unknown;
12359
+ };
12360
+ content: {
12361
+ "application/json": components["schemas"]["HTTPValidationError"];
12362
+ };
12363
+ };
12364
+ };
12365
+ };
10826
12366
  get_patient_v1_patients__record_id__get: {
10827
12367
  parameters: {
10828
12368
  query?: never;
@@ -11027,7 +12567,185 @@ export interface operations {
11027
12567
  [name: string]: unknown;
11028
12568
  };
11029
12569
  content: {
11030
- "application/json": components["schemas"]["PauseOut"];
12570
+ "application/json": components["schemas"]["PauseOut"];
12571
+ };
12572
+ };
12573
+ /** @description Validation Error */
12574
+ 422: {
12575
+ headers: {
12576
+ [name: string]: unknown;
12577
+ };
12578
+ content: {
12579
+ "application/json": components["schemas"]["HTTPValidationError"];
12580
+ };
12581
+ };
12582
+ };
12583
+ };
12584
+ list_people_v1_people_get: {
12585
+ parameters: {
12586
+ query?: {
12587
+ /** @description Name search (prefixes) */
12588
+ q?: string | null;
12589
+ /** @description Browse by family-name initial */
12590
+ letter?: string | null;
12591
+ /** @description Only people holding this role */
12592
+ role?: string | null;
12593
+ include_archived?: boolean;
12594
+ };
12595
+ header?: {
12596
+ /** @description Membership the caller is acting through (from GET /v1/me) */
12597
+ "X-Guidistry-Context"?: string | null;
12598
+ };
12599
+ path?: never;
12600
+ cookie?: never;
12601
+ };
12602
+ requestBody?: never;
12603
+ responses: {
12604
+ /** @description Successful Response */
12605
+ 200: {
12606
+ headers: {
12607
+ [name: string]: unknown;
12608
+ };
12609
+ content: {
12610
+ "application/json": components["schemas"]["PeoplePage"];
12611
+ };
12612
+ };
12613
+ /** @description Validation Error */
12614
+ 422: {
12615
+ headers: {
12616
+ [name: string]: unknown;
12617
+ };
12618
+ content: {
12619
+ "application/json": components["schemas"]["HTTPValidationError"];
12620
+ };
12621
+ };
12622
+ };
12623
+ };
12624
+ get_person_v1_people__record_id__get: {
12625
+ parameters: {
12626
+ query?: never;
12627
+ header?: {
12628
+ /** @description Membership the caller is acting through (from GET /v1/me) */
12629
+ "X-Guidistry-Context"?: string | null;
12630
+ };
12631
+ path: {
12632
+ record_id: string;
12633
+ };
12634
+ cookie?: never;
12635
+ };
12636
+ requestBody?: never;
12637
+ responses: {
12638
+ /** @description Successful Response */
12639
+ 200: {
12640
+ headers: {
12641
+ [name: string]: unknown;
12642
+ };
12643
+ content: {
12644
+ "application/json": components["schemas"]["PersonOut"];
12645
+ };
12646
+ };
12647
+ /** @description Validation Error */
12648
+ 422: {
12649
+ headers: {
12650
+ [name: string]: unknown;
12651
+ };
12652
+ content: {
12653
+ "application/json": components["schemas"]["HTTPValidationError"];
12654
+ };
12655
+ };
12656
+ };
12657
+ };
12658
+ update_person_v1_people__record_id__patch: {
12659
+ parameters: {
12660
+ query?: never;
12661
+ header?: {
12662
+ /** @description Membership the caller is acting through (from GET /v1/me) */
12663
+ "X-Guidistry-Context"?: string | null;
12664
+ };
12665
+ path: {
12666
+ record_id: string;
12667
+ };
12668
+ cookie?: never;
12669
+ };
12670
+ requestBody: {
12671
+ content: {
12672
+ "application/json": components["schemas"]["PersonUpdate"];
12673
+ };
12674
+ };
12675
+ responses: {
12676
+ /** @description Successful Response */
12677
+ 200: {
12678
+ headers: {
12679
+ [name: string]: unknown;
12680
+ };
12681
+ content: {
12682
+ "application/json": components["schemas"]["PersonOut"];
12683
+ };
12684
+ };
12685
+ /** @description Validation Error */
12686
+ 422: {
12687
+ headers: {
12688
+ [name: string]: unknown;
12689
+ };
12690
+ content: {
12691
+ "application/json": components["schemas"]["HTTPValidationError"];
12692
+ };
12693
+ };
12694
+ };
12695
+ };
12696
+ list_permissions_v1_permissions_get: {
12697
+ parameters: {
12698
+ query?: never;
12699
+ header?: {
12700
+ /** @description Membership the caller is acting through (from GET /v1/me) */
12701
+ "X-Guidistry-Context"?: string | null;
12702
+ };
12703
+ path?: never;
12704
+ cookie?: never;
12705
+ };
12706
+ requestBody?: never;
12707
+ responses: {
12708
+ /** @description Successful Response */
12709
+ 200: {
12710
+ headers: {
12711
+ [name: string]: unknown;
12712
+ };
12713
+ content: {
12714
+ "application/json": components["schemas"]["PermissionOut"][];
12715
+ };
12716
+ };
12717
+ /** @description Validation Error */
12718
+ 422: {
12719
+ headers: {
12720
+ [name: string]: unknown;
12721
+ };
12722
+ content: {
12723
+ "application/json": components["schemas"]["HTTPValidationError"];
12724
+ };
12725
+ };
12726
+ };
12727
+ };
12728
+ list_programs_v1_programs_get: {
12729
+ parameters: {
12730
+ query?: {
12731
+ include_archived?: boolean;
12732
+ };
12733
+ header?: {
12734
+ /** @description Membership the caller is acting through (from GET /v1/me) */
12735
+ "X-Guidistry-Context"?: string | null;
12736
+ };
12737
+ path?: never;
12738
+ cookie?: never;
12739
+ };
12740
+ requestBody?: never;
12741
+ responses: {
12742
+ /** @description Successful Response */
12743
+ 200: {
12744
+ headers: {
12745
+ [name: string]: unknown;
12746
+ };
12747
+ content: {
12748
+ "application/json": components["schemas"]["ProgramOut"][];
11031
12749
  };
11032
12750
  };
11033
12751
  /** @description Validation Error */
@@ -11041,17 +12759,9 @@ export interface operations {
11041
12759
  };
11042
12760
  };
11043
12761
  };
11044
- list_people_v1_people_get: {
12762
+ create_program_v1_programs_post: {
11045
12763
  parameters: {
11046
- query?: {
11047
- /** @description Name search (prefixes) */
11048
- q?: string | null;
11049
- /** @description Browse by family-name initial */
11050
- letter?: string | null;
11051
- /** @description Only people holding this role */
11052
- role?: string | null;
11053
- include_archived?: boolean;
11054
- };
12764
+ query?: never;
11055
12765
  header?: {
11056
12766
  /** @description Membership the caller is acting through (from GET /v1/me) */
11057
12767
  "X-Guidistry-Context"?: string | null;
@@ -11059,15 +12769,19 @@ export interface operations {
11059
12769
  path?: never;
11060
12770
  cookie?: never;
11061
12771
  };
11062
- requestBody?: never;
12772
+ requestBody: {
12773
+ content: {
12774
+ "application/json": components["schemas"]["ProgramCreate"];
12775
+ };
12776
+ };
11063
12777
  responses: {
11064
12778
  /** @description Successful Response */
11065
- 200: {
12779
+ 201: {
11066
12780
  headers: {
11067
12781
  [name: string]: unknown;
11068
12782
  };
11069
12783
  content: {
11070
- "application/json": components["schemas"]["PeoplePage"];
12784
+ "application/json": components["schemas"]["ProgramOut"];
11071
12785
  };
11072
12786
  };
11073
12787
  /** @description Validation Error */
@@ -11081,7 +12795,7 @@ export interface operations {
11081
12795
  };
11082
12796
  };
11083
12797
  };
11084
- get_person_v1_people__record_id__get: {
12798
+ get_program_v1_programs__program_id__get: {
11085
12799
  parameters: {
11086
12800
  query?: never;
11087
12801
  header?: {
@@ -11089,7 +12803,7 @@ export interface operations {
11089
12803
  "X-Guidistry-Context"?: string | null;
11090
12804
  };
11091
12805
  path: {
11092
- record_id: string;
12806
+ program_id: string;
11093
12807
  };
11094
12808
  cookie?: never;
11095
12809
  };
@@ -11101,7 +12815,7 @@ export interface operations {
11101
12815
  [name: string]: unknown;
11102
12816
  };
11103
12817
  content: {
11104
- "application/json": components["schemas"]["PersonOut"];
12818
+ "application/json": components["schemas"]["ProgramOut"];
11105
12819
  };
11106
12820
  };
11107
12821
  /** @description Validation Error */
@@ -11115,7 +12829,7 @@ export interface operations {
11115
12829
  };
11116
12830
  };
11117
12831
  };
11118
- update_person_v1_people__record_id__patch: {
12832
+ update_program_v1_programs__program_id__patch: {
11119
12833
  parameters: {
11120
12834
  query?: never;
11121
12835
  header?: {
@@ -11123,13 +12837,13 @@ export interface operations {
11123
12837
  "X-Guidistry-Context"?: string | null;
11124
12838
  };
11125
12839
  path: {
11126
- record_id: string;
12840
+ program_id: string;
11127
12841
  };
11128
12842
  cookie?: never;
11129
12843
  };
11130
12844
  requestBody: {
11131
12845
  content: {
11132
- "application/json": components["schemas"]["PersonUpdate"];
12846
+ "application/json": components["schemas"]["ProgramUpdate"];
11133
12847
  };
11134
12848
  };
11135
12849
  responses: {
@@ -11139,7 +12853,7 @@ export interface operations {
11139
12853
  [name: string]: unknown;
11140
12854
  };
11141
12855
  content: {
11142
- "application/json": components["schemas"]["PersonOut"];
12856
+ "application/json": components["schemas"]["ProgramOut"];
11143
12857
  };
11144
12858
  };
11145
12859
  /** @description Validation Error */
@@ -11153,14 +12867,16 @@ export interface operations {
11153
12867
  };
11154
12868
  };
11155
12869
  };
11156
- list_permissions_v1_permissions_get: {
12870
+ program_cohorts_v1_programs__program_id__cohorts_get: {
11157
12871
  parameters: {
11158
12872
  query?: never;
11159
12873
  header?: {
11160
12874
  /** @description Membership the caller is acting through (from GET /v1/me) */
11161
12875
  "X-Guidistry-Context"?: string | null;
11162
12876
  };
11163
- path?: never;
12877
+ path: {
12878
+ program_id: string;
12879
+ };
11164
12880
  cookie?: never;
11165
12881
  };
11166
12882
  requestBody?: never;
@@ -11171,7 +12887,7 @@ export interface operations {
11171
12887
  [name: string]: unknown;
11172
12888
  };
11173
12889
  content: {
11174
- "application/json": components["schemas"]["PermissionOut"][];
12890
+ "application/json": components["schemas"]["CohortOut"][];
11175
12891
  };
11176
12892
  };
11177
12893
  /** @description Validation Error */
@@ -11185,16 +12901,19 @@ export interface operations {
11185
12901
  };
11186
12902
  };
11187
12903
  };
11188
- list_programs_v1_programs_get: {
12904
+ get_program_content_v1_programs__program_id__content_get: {
11189
12905
  parameters: {
11190
12906
  query?: {
11191
- include_archived?: boolean;
12907
+ view?: "participant" | "staff";
12908
+ language?: string | null;
11192
12909
  };
11193
12910
  header?: {
11194
12911
  /** @description Membership the caller is acting through (from GET /v1/me) */
11195
12912
  "X-Guidistry-Context"?: string | null;
11196
12913
  };
11197
- path?: never;
12914
+ path: {
12915
+ program_id: string;
12916
+ };
11198
12917
  cookie?: never;
11199
12918
  };
11200
12919
  requestBody?: never;
@@ -11205,7 +12924,7 @@ export interface operations {
11205
12924
  [name: string]: unknown;
11206
12925
  };
11207
12926
  content: {
11208
- "application/json": components["schemas"]["ProgramOut"][];
12927
+ "application/json": components["schemas"]["CourseContent"];
11209
12928
  };
11210
12929
  };
11211
12930
  /** @description Validation Error */
@@ -11219,29 +12938,27 @@ export interface operations {
11219
12938
  };
11220
12939
  };
11221
12940
  };
11222
- create_program_v1_programs_post: {
12941
+ program_review_summary_v1_programs__program_id__review_summary_get: {
11223
12942
  parameters: {
11224
12943
  query?: never;
11225
12944
  header?: {
11226
12945
  /** @description Membership the caller is acting through (from GET /v1/me) */
11227
12946
  "X-Guidistry-Context"?: string | null;
11228
12947
  };
11229
- path?: never;
11230
- cookie?: never;
11231
- };
11232
- requestBody: {
11233
- content: {
11234
- "application/json": components["schemas"]["ProgramCreate"];
12948
+ path: {
12949
+ program_id: string;
11235
12950
  };
12951
+ cookie?: never;
11236
12952
  };
12953
+ requestBody?: never;
11237
12954
  responses: {
11238
12955
  /** @description Successful Response */
11239
- 201: {
12956
+ 200: {
11240
12957
  headers: {
11241
12958
  [name: string]: unknown;
11242
12959
  };
11243
12960
  content: {
11244
- "application/json": components["schemas"]["ProgramOut"];
12961
+ "application/json": components["schemas"]["ReviewSummaryOut"];
11245
12962
  };
11246
12963
  };
11247
12964
  /** @description Validation Error */
@@ -11255,15 +12972,17 @@ export interface operations {
11255
12972
  };
11256
12973
  };
11257
12974
  };
11258
- get_program_v1_programs__program_id__get: {
12975
+ get_form_v1_questionnaire_forms__code__get: {
11259
12976
  parameters: {
11260
- query?: never;
12977
+ query?: {
12978
+ version?: string | null;
12979
+ };
11261
12980
  header?: {
11262
12981
  /** @description Membership the caller is acting through (from GET /v1/me) */
11263
12982
  "X-Guidistry-Context"?: string | null;
11264
12983
  };
11265
12984
  path: {
11266
- program_id: string;
12985
+ code: string;
11267
12986
  };
11268
12987
  cookie?: never;
11269
12988
  };
@@ -11275,7 +12994,7 @@ export interface operations {
11275
12994
  [name: string]: unknown;
11276
12995
  };
11277
12996
  content: {
11278
- "application/json": components["schemas"]["ProgramOut"];
12997
+ "application/json": components["schemas"]["FormOut"];
11279
12998
  };
11280
12999
  };
11281
13000
  /** @description Validation Error */
@@ -11289,23 +13008,16 @@ export interface operations {
11289
13008
  };
11290
13009
  };
11291
13010
  };
11292
- update_program_v1_programs__program_id__patch: {
13011
+ open_link_v1_questionnaire_links__token__get: {
11293
13012
  parameters: {
11294
13013
  query?: never;
11295
- header?: {
11296
- /** @description Membership the caller is acting through (from GET /v1/me) */
11297
- "X-Guidistry-Context"?: string | null;
11298
- };
13014
+ header?: never;
11299
13015
  path: {
11300
- program_id: string;
13016
+ token: string;
11301
13017
  };
11302
13018
  cookie?: never;
11303
13019
  };
11304
- requestBody: {
11305
- content: {
11306
- "application/json": components["schemas"]["ProgramUpdate"];
11307
- };
11308
- };
13020
+ requestBody?: never;
11309
13021
  responses: {
11310
13022
  /** @description Successful Response */
11311
13023
  200: {
@@ -11313,8 +13025,15 @@ export interface operations {
11313
13025
  [name: string]: unknown;
11314
13026
  };
11315
13027
  content: {
11316
- "application/json": components["schemas"]["ProgramOut"];
13028
+ "application/json": components["schemas"]["guidistry_api__questionnaires__schemas__LinkOut"];
13029
+ };
13030
+ };
13031
+ /** @description link_completed, link_expired, link_cancelled */
13032
+ 410: {
13033
+ headers: {
13034
+ [name: string]: unknown;
11317
13035
  };
13036
+ content?: never;
11318
13037
  };
11319
13038
  /** @description Validation Error */
11320
13039
  422: {
@@ -11327,27 +13046,28 @@ export interface operations {
11327
13046
  };
11328
13047
  };
11329
13048
  };
11330
- program_cohorts_v1_programs__program_id__cohorts_get: {
13049
+ answer_link_v1_questionnaire_links__token__responses_post: {
11331
13050
  parameters: {
11332
13051
  query?: never;
11333
- header?: {
11334
- /** @description Membership the caller is acting through (from GET /v1/me) */
11335
- "X-Guidistry-Context"?: string | null;
11336
- };
13052
+ header?: never;
11337
13053
  path: {
11338
- program_id: string;
13054
+ token: string;
11339
13055
  };
11340
13056
  cookie?: never;
11341
13057
  };
11342
- requestBody?: never;
13058
+ requestBody: {
13059
+ content: {
13060
+ "application/json": components["schemas"]["LinkResponseIn"];
13061
+ };
13062
+ };
11343
13063
  responses: {
11344
13064
  /** @description Successful Response */
11345
- 200: {
13065
+ 201: {
11346
13066
  headers: {
11347
13067
  [name: string]: unknown;
11348
13068
  };
11349
13069
  content: {
11350
- "application/json": components["schemas"]["CohortOut"][];
13070
+ "application/json": components["schemas"]["LinkResponseOut"];
11351
13071
  };
11352
13072
  };
11353
13073
  /** @description Validation Error */
@@ -11361,18 +13081,15 @@ export interface operations {
11361
13081
  };
11362
13082
  };
11363
13083
  };
11364
- get_program_content_v1_programs__program_id__content_get: {
13084
+ cancel_request_v1_questionnaire_requests__request_id__cancel_post: {
11365
13085
  parameters: {
11366
- query?: {
11367
- view?: "participant" | "staff";
11368
- language?: string | null;
11369
- };
13086
+ query?: never;
11370
13087
  header?: {
11371
13088
  /** @description Membership the caller is acting through (from GET /v1/me) */
11372
13089
  "X-Guidistry-Context"?: string | null;
11373
13090
  };
11374
13091
  path: {
11375
- program_id: string;
13092
+ request_id: string;
11376
13093
  };
11377
13094
  cookie?: never;
11378
13095
  };
@@ -11384,7 +13101,7 @@ export interface operations {
11384
13101
  [name: string]: unknown;
11385
13102
  };
11386
13103
  content: {
11387
- "application/json": components["schemas"]["CourseContent"];
13104
+ "application/json": components["schemas"]["RequestOut"];
11388
13105
  };
11389
13106
  };
11390
13107
  /** @description Validation Error */
@@ -12132,7 +13849,7 @@ export interface operations {
12132
13849
  "application/json": components["schemas"]["JoinOut"];
12133
13850
  };
12134
13851
  };
12135
- /** @description agreement_required, too_early or not_joinable */
13852
+ /** @description agreement_required, too_early, not_joinable or (when the program requires it) questionnaires_required */
12136
13853
  409: {
12137
13854
  headers: {
12138
13855
  [name: string]: unknown;
@@ -12328,6 +14045,42 @@ export interface operations {
12328
14045
  };
12329
14046
  };
12330
14047
  };
14048
+ skip_for_now_v1_visits__visit_id__questionnaire_skips_post: {
14049
+ parameters: {
14050
+ query?: never;
14051
+ header?: {
14052
+ /** @description Membership the caller is acting through (from GET /v1/me) */
14053
+ "X-Guidistry-Context"?: string | null;
14054
+ };
14055
+ path: {
14056
+ visit_id: string;
14057
+ };
14058
+ cookie?: never;
14059
+ };
14060
+ requestBody: {
14061
+ content: {
14062
+ "application/json": components["schemas"]["SkipIn"];
14063
+ };
14064
+ };
14065
+ responses: {
14066
+ /** @description Successful Response */
14067
+ 204: {
14068
+ headers: {
14069
+ [name: string]: unknown;
14070
+ };
14071
+ content?: never;
14072
+ };
14073
+ /** @description Validation Error */
14074
+ 422: {
14075
+ headers: {
14076
+ [name: string]: unknown;
14077
+ };
14078
+ content: {
14079
+ "application/json": components["schemas"]["HTTPValidationError"];
14080
+ };
14081
+ };
14082
+ };
14083
+ };
12331
14084
  readiness_v1_visits__visit_id__readiness_get: {
12332
14085
  parameters: {
12333
14086
  query?: never;
@@ -12400,6 +14153,112 @@ export interface operations {
12400
14153
  };
12401
14154
  };
12402
14155
  };
14156
+ get_review_v1_visits__visit_id__review_get: {
14157
+ parameters: {
14158
+ query?: never;
14159
+ header?: {
14160
+ /** @description Membership the caller is acting through (from GET /v1/me) */
14161
+ "X-Guidistry-Context"?: string | null;
14162
+ };
14163
+ path: {
14164
+ visit_id: string;
14165
+ };
14166
+ cookie?: never;
14167
+ };
14168
+ requestBody?: never;
14169
+ responses: {
14170
+ /** @description Successful Response */
14171
+ 200: {
14172
+ headers: {
14173
+ [name: string]: unknown;
14174
+ };
14175
+ content: {
14176
+ "application/json": components["schemas"]["guidistry_api__questionnaires__schemas__ReviewOut"];
14177
+ };
14178
+ };
14179
+ /** @description Validation Error */
14180
+ 422: {
14181
+ headers: {
14182
+ [name: string]: unknown;
14183
+ };
14184
+ content: {
14185
+ "application/json": components["schemas"]["HTTPValidationError"];
14186
+ };
14187
+ };
14188
+ };
14189
+ };
14190
+ post_review_v1_visits__visit_id__review_post: {
14191
+ parameters: {
14192
+ query?: never;
14193
+ header?: {
14194
+ /** @description Membership the caller is acting through (from GET /v1/me) */
14195
+ "X-Guidistry-Context"?: string | null;
14196
+ };
14197
+ path: {
14198
+ visit_id: string;
14199
+ };
14200
+ cookie?: never;
14201
+ };
14202
+ requestBody: {
14203
+ content: {
14204
+ "application/json": components["schemas"]["ReviewIn"];
14205
+ };
14206
+ };
14207
+ responses: {
14208
+ /** @description Successful Response */
14209
+ 201: {
14210
+ headers: {
14211
+ [name: string]: unknown;
14212
+ };
14213
+ content: {
14214
+ "application/json": components["schemas"]["guidistry_api__questionnaires__schemas__ReviewOut"];
14215
+ };
14216
+ };
14217
+ /** @description Validation Error */
14218
+ 422: {
14219
+ headers: {
14220
+ [name: string]: unknown;
14221
+ };
14222
+ content: {
14223
+ "application/json": components["schemas"]["HTTPValidationError"];
14224
+ };
14225
+ };
14226
+ };
14227
+ };
14228
+ visit_review_summary_v1_visits__visit_id__review_summary_get: {
14229
+ parameters: {
14230
+ query?: never;
14231
+ header?: {
14232
+ /** @description Membership the caller is acting through (from GET /v1/me) */
14233
+ "X-Guidistry-Context"?: string | null;
14234
+ };
14235
+ path: {
14236
+ visit_id: string;
14237
+ };
14238
+ cookie?: never;
14239
+ };
14240
+ requestBody?: never;
14241
+ responses: {
14242
+ /** @description Successful Response */
14243
+ 200: {
14244
+ headers: {
14245
+ [name: string]: unknown;
14246
+ };
14247
+ content: {
14248
+ "application/json": components["schemas"]["ReviewSummaryOut"];
14249
+ };
14250
+ };
14251
+ /** @description Validation Error */
14252
+ 422: {
14253
+ headers: {
14254
+ [name: string]: unknown;
14255
+ };
14256
+ content: {
14257
+ "application/json": components["schemas"]["HTTPValidationError"];
14258
+ };
14259
+ };
14260
+ };
14261
+ };
12403
14262
  complete_attachment_v1_writing_attachments__attachment_id__complete_post: {
12404
14263
  parameters: {
12405
14264
  query?: never;
@@ -12454,7 +14313,7 @@ export interface operations {
12454
14313
  [name: string]: unknown;
12455
14314
  };
12456
14315
  content: {
12457
- "application/json": components["schemas"]["LinkOut"];
14316
+ "application/json": components["schemas"]["guidistry_api__progress__schemas__LinkOut"];
12458
14317
  };
12459
14318
  };
12460
14319
  /** @description Validation Error */