@brightoutcome/guidistry-client 0.12.0 → 0.13.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 +1204 -126
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -1414,6 +1414,27 @@ export interface paths {
1414
1414
  patch?: never;
1415
1415
  trace?: never;
1416
1416
  };
1417
+ "/v1/instruments/{code}/phone-ready": {
1418
+ parameters: {
1419
+ query?: never;
1420
+ header?: never;
1421
+ path?: never;
1422
+ cookie?: never;
1423
+ };
1424
+ get?: never;
1425
+ put?: never;
1426
+ /**
1427
+ * Turn automated calls off (or back on) for a questionnaire (BrightOutcome admins)
1428
+ * @description Applies everywhere: instruments are shared across practices. Questionnaires with a
1429
+ * required text question are never phone-ready whatever is set here.
1430
+ */
1431
+ post: operations["set_phone_ready_v1_instruments__code__phone_ready_post"];
1432
+ delete?: never;
1433
+ options?: never;
1434
+ head?: never;
1435
+ patch?: never;
1436
+ trace?: never;
1437
+ };
1417
1438
  "/v1/invitations": {
1418
1439
  parameters: {
1419
1440
  query?: never;
@@ -1589,6 +1610,45 @@ export interface paths {
1589
1610
  patch?: never;
1590
1611
  trace?: never;
1591
1612
  };
1613
+ "/v1/me/contact-consent": {
1614
+ parameters: {
1615
+ query?: never;
1616
+ header?: never;
1617
+ path?: never;
1618
+ cookie?: never;
1619
+ };
1620
+ /** My text and call choices */
1621
+ get: operations["get_my_consent_v1_me_contact_consent_get"];
1622
+ /**
1623
+ * Agree to (or stop) texts and automated calls from my care team
1624
+ * @description From the joining step send ``method = joining`` (Niina N3); otherwise ``portal``.
1625
+ */
1626
+ put: operations["put_my_consent_v1_me_contact_consent_put"];
1627
+ post?: never;
1628
+ delete?: never;
1629
+ options?: never;
1630
+ head?: never;
1631
+ patch?: never;
1632
+ trace?: never;
1633
+ };
1634
+ "/v1/me/contact-preferences": {
1635
+ parameters: {
1636
+ query?: never;
1637
+ header?: never;
1638
+ path?: never;
1639
+ cookie?: never;
1640
+ };
1641
+ /** My quiet hours */
1642
+ get: operations["get_my_prefs_v1_me_contact_preferences_get"];
1643
+ /** Set my quiet hours */
1644
+ put: operations["put_my_prefs_v1_me_contact_preferences_put"];
1645
+ post?: never;
1646
+ delete?: never;
1647
+ options?: never;
1648
+ head?: never;
1649
+ patch?: never;
1650
+ trace?: never;
1651
+ };
1592
1652
  "/v1/me/enrollments": {
1593
1653
  parameters: {
1594
1654
  query?: never;
@@ -1610,6 +1670,44 @@ export interface paths {
1610
1670
  patch?: never;
1611
1671
  trace?: never;
1612
1672
  };
1673
+ "/v1/me/questionnaire-requests/{request_id}": {
1674
+ parameters: {
1675
+ query?: never;
1676
+ header?: never;
1677
+ path?: never;
1678
+ cookie?: never;
1679
+ };
1680
+ /**
1681
+ * Open a request from my care team outside a program (sign-in prompt)
1682
+ * @description Enrolled programs' prompts are answered through the enrollment; this is for prompts
1683
+ * whose ``enrollment_id`` is null.
1684
+ */
1685
+ get: operations["open_my_request_v1_me_questionnaire_requests__request_id__get"];
1686
+ put?: never;
1687
+ post?: never;
1688
+ delete?: never;
1689
+ options?: never;
1690
+ head?: never;
1691
+ patch?: never;
1692
+ trace?: never;
1693
+ };
1694
+ "/v1/me/questionnaire-requests/{request_id}/responses": {
1695
+ parameters: {
1696
+ query?: never;
1697
+ header?: never;
1698
+ path?: never;
1699
+ cookie?: never;
1700
+ };
1701
+ get?: never;
1702
+ put?: never;
1703
+ /** Answer one questionnaire of a request outside a program */
1704
+ post: operations["answer_my_request_v1_me_questionnaire_requests__request_id__responses_post"];
1705
+ delete?: never;
1706
+ options?: never;
1707
+ head?: never;
1708
+ patch?: never;
1709
+ trace?: never;
1710
+ };
1613
1711
  "/v1/memberships/{membership_id}": {
1614
1712
  parameters: {
1615
1713
  query?: never;
@@ -1766,6 +1864,42 @@ export interface paths {
1766
1864
  patch?: never;
1767
1865
  trace?: never;
1768
1866
  };
1867
+ "/v1/patients/{patient_id}/contact-consent": {
1868
+ parameters: {
1869
+ query?: never;
1870
+ header?: never;
1871
+ path?: never;
1872
+ cookie?: never;
1873
+ };
1874
+ /** Has the patient agreed to texts and to automated calls? */
1875
+ get: operations["get_consent_v1_patients__patient_id__contact_consent_get"];
1876
+ /** Record the patient's agreement (verbal or written) or its withdrawal */
1877
+ put: operations["put_consent_v1_patients__patient_id__contact_consent_put"];
1878
+ post?: never;
1879
+ delete?: never;
1880
+ options?: never;
1881
+ head?: never;
1882
+ patch?: never;
1883
+ trace?: never;
1884
+ };
1885
+ "/v1/patients/{patient_id}/contact-preferences": {
1886
+ parameters: {
1887
+ query?: never;
1888
+ header?: never;
1889
+ path?: never;
1890
+ cookie?: never;
1891
+ };
1892
+ /** The patient's time zone and quiet hours (no texts or calls then) */
1893
+ get: operations["get_prefs_v1_patients__patient_id__contact_preferences_get"];
1894
+ /** Set the patient's time zone and quiet hours */
1895
+ put: operations["put_prefs_v1_patients__patient_id__contact_preferences_put"];
1896
+ post?: never;
1897
+ delete?: never;
1898
+ options?: never;
1899
+ head?: never;
1900
+ patch?: never;
1901
+ trace?: never;
1902
+ };
1769
1903
  "/v1/patients/{patient_id}/current-note": {
1770
1904
  parameters: {
1771
1905
  query?: never;
@@ -1804,6 +1938,52 @@ export interface paths {
1804
1938
  patch?: never;
1805
1939
  trace?: never;
1806
1940
  };
1941
+ "/v1/patients/{patient_id}/questionnaire-repeats": {
1942
+ parameters: {
1943
+ query?: never;
1944
+ header?: never;
1945
+ path?: never;
1946
+ cookie?: never;
1947
+ };
1948
+ /** This patient's repeats, active first */
1949
+ get: operations["list_repeats_v1_patients__patient_id__questionnaire_repeats_get"];
1950
+ put?: never;
1951
+ /**
1952
+ * Ask a patient on repeat: every N days, N times or until a date
1953
+ * @description The first one goes out on ``starts_on`` (default today, at once). The repeat ends
1954
+ * by itself when it's done, or when the patient joins a cohort that asks the same
1955
+ * questionnaire (``ended_by_enrollment``).
1956
+ */
1957
+ post: operations["create_repeat_v1_patients__patient_id__questionnaire_repeats_post"];
1958
+ delete?: never;
1959
+ options?: never;
1960
+ head?: never;
1961
+ patch?: never;
1962
+ trace?: never;
1963
+ };
1964
+ "/v1/patients/{patient_id}/questionnaire-requests": {
1965
+ parameters: {
1966
+ query?: never;
1967
+ header?: never;
1968
+ path?: never;
1969
+ cookie?: never;
1970
+ };
1971
+ /** Every request sent to this patient (in cohorts you see and outside), newest first */
1972
+ get: operations["list_patient_requests_v1_patients__patient_id__questionnaire_requests_get"];
1973
+ put?: never;
1974
+ /**
1975
+ * Ask a patient for questionnaires outside a cohort (sign-in, text or call)
1976
+ * @description Answers are stored at the patient level (no cohort); alerts go to the person who asked
1977
+ * and the ``alerts.practice_group`` setting, else the practice admins. Email links are
1978
+ * asked from an enrollment (patients outside a cohort get texts, calls or sign-in prompts).
1979
+ */
1980
+ post: operations["create_patient_request_v1_patients__patient_id__questionnaire_requests_post"];
1981
+ delete?: never;
1982
+ options?: never;
1983
+ head?: never;
1984
+ patch?: never;
1985
+ trace?: never;
1986
+ };
1807
1987
  "/v1/patients/{patient_id}/questionnaires": {
1808
1988
  parameters: {
1809
1989
  query?: never;
@@ -2102,6 +2282,40 @@ export interface paths {
2102
2282
  patch?: never;
2103
2283
  trace?: never;
2104
2284
  };
2285
+ "/v1/questionnaire-repeats/{repeat_id}/end": {
2286
+ parameters: {
2287
+ query?: never;
2288
+ header?: never;
2289
+ path?: never;
2290
+ cookie?: never;
2291
+ };
2292
+ get?: never;
2293
+ put?: never;
2294
+ /** End the repeat (requests already sent stay open) */
2295
+ post: operations["end_repeat_v1_questionnaire_repeats__repeat_id__end_post"];
2296
+ delete?: never;
2297
+ options?: never;
2298
+ head?: never;
2299
+ patch?: never;
2300
+ trace?: never;
2301
+ };
2302
+ "/v1/questionnaire-repeats/{repeat_id}/skip-next": {
2303
+ parameters: {
2304
+ query?: never;
2305
+ header?: never;
2306
+ path?: never;
2307
+ cookie?: never;
2308
+ };
2309
+ get?: never;
2310
+ put?: never;
2311
+ /** Skip the next one (it counts toward N times) */
2312
+ post: operations["skip_next_v1_questionnaire_repeats__repeat_id__skip_next_post"];
2313
+ delete?: never;
2314
+ options?: never;
2315
+ head?: never;
2316
+ patch?: never;
2317
+ trace?: never;
2318
+ };
2105
2319
  "/v1/questionnaire-requests/{request_id}/cancel": {
2106
2320
  parameters: {
2107
2321
  query?: never;
@@ -3088,11 +3302,18 @@ export interface components {
3088
3302
  at: string;
3089
3303
  /** By Person Id */
3090
3304
  by_person_id: string | null;
3305
+ /**
3306
+ * Detail
3307
+ * @description phone_safety: {"choice": clinic|988|continue|none|…}
3308
+ */
3309
+ detail?: {
3310
+ [key: string]: unknown;
3311
+ } | null;
3091
3312
  /**
3092
3313
  * Kind
3093
3314
  * @enum {string}
3094
3315
  */
3095
- kind: "raised" | "repeated" | "acknowledged" | "closed" | "reopened" | "emailed";
3316
+ kind: "raised" | "repeated" | "acknowledged" | "closed" | "reopened" | "emailed" | "phone_safety";
3096
3317
  /** Note */
3097
3318
  note: string | null;
3098
3319
  /** Outcome */
@@ -3104,18 +3325,15 @@ export interface components {
3104
3325
  AlertOut: {
3105
3326
  /** Closed At */
3106
3327
  closed_at: string | null;
3107
- /**
3108
- * Cohort Id
3109
- * Format: uuid
3110
- */
3111
- cohort_id: string;
3328
+ /** Cohort Id */
3329
+ cohort_id: string | null;
3112
3330
  /** Display Name */
3113
3331
  display_name: string;
3114
3332
  /**
3115
3333
  * Enrollment Id
3116
- * Format: uuid
3334
+ * @description None: raised outside a cohort
3117
3335
  */
3118
- enrollment_id: string;
3336
+ enrollment_id: string | null;
3119
3337
  /** Events */
3120
3338
  events?: components["schemas"]["AlertEventOut"][];
3121
3339
  /**
@@ -3631,6 +3849,55 @@ export interface components {
3631
3849
  /** Value */
3632
3850
  value: number | null;
3633
3851
  };
3852
+ /** ConsentChannelOut */
3853
+ ConsentChannelOut: {
3854
+ /** At */
3855
+ at?: string | null;
3856
+ /** By Person Id */
3857
+ by_person_id?: string | null;
3858
+ /** Granted */
3859
+ granted: boolean;
3860
+ /** Method */
3861
+ method?: ("verbal" | "written" | "portal" | "joining" | "stop_reply" | "start_reply") | null;
3862
+ };
3863
+ /** ContactConsentIn */
3864
+ ContactConsentIn: {
3865
+ /**
3866
+ * Method
3867
+ * @default verbal
3868
+ * @enum {string}
3869
+ */
3870
+ method: "verbal" | "written" | "portal" | "joining";
3871
+ /** Note */
3872
+ note?: string | null;
3873
+ /** Sms */
3874
+ sms?: boolean | null;
3875
+ /** Voice */
3876
+ voice?: boolean | null;
3877
+ };
3878
+ /** ContactConsentOut */
3879
+ ContactConsentOut: {
3880
+ /** Has Phone */
3881
+ has_phone: boolean;
3882
+ sms: components["schemas"]["ConsentChannelOut"];
3883
+ /** Text Consent Required */
3884
+ text_consent_required: boolean;
3885
+ voice: components["schemas"]["ConsentChannelOut"];
3886
+ };
3887
+ /** ContactPrefsIn */
3888
+ ContactPrefsIn: {
3889
+ /** Quiet Hours */
3890
+ quiet_hours?: components["schemas"]["QuietHours"][];
3891
+ /** Time Zone */
3892
+ time_zone?: string | null;
3893
+ };
3894
+ /** ContactPrefsOut */
3895
+ ContactPrefsOut: {
3896
+ /** Quiet Hours */
3897
+ quiet_hours: components["schemas"]["QuietHours"][];
3898
+ /** Time Zone */
3899
+ time_zone: string | null;
3900
+ };
3634
3901
  /**
3635
3902
  * CourseContent
3636
3903
  * @description A whole course in one language.
@@ -4302,6 +4569,14 @@ export interface components {
4302
4569
  licence_basis: string;
4303
4570
  /** Name */
4304
4571
  name: string;
4572
+ /** Phone Not Ready Reason */
4573
+ phone_not_ready_reason?: ("has_text_question" | "turned_off_by_admin") | null;
4574
+ /**
4575
+ * Phone Ready
4576
+ * @description Can be asked by automated call
4577
+ * @default true
4578
+ */
4579
+ phone_ready: boolean;
4305
4580
  /** Short Name */
4306
4581
  short_name: string | null;
4307
4582
  /** Version */
@@ -4577,6 +4852,15 @@ export interface components {
4577
4852
  licence_basis?: string | null;
4578
4853
  /** Name */
4579
4854
  name: string;
4855
+ /** Phone Admin Reason */
4856
+ phone_admin_reason?: string | null;
4857
+ /** Phone Not Ready Reason */
4858
+ phone_not_ready_reason?: ("has_text_question" | "turned_off_by_admin") | null;
4859
+ /**
4860
+ * Phone Ready
4861
+ * @description None: not checked (a PROMIS form not imported yet)
4862
+ */
4863
+ phone_ready?: boolean | null;
4580
4864
  /** Short Name */
4581
4865
  short_name?: string | null;
4582
4866
  /**
@@ -5440,6 +5724,11 @@ export interface components {
5440
5724
  id: string;
5441
5725
  /** @description Without meeting_url: join through POST /v1/visits/{id}/join */
5442
5726
  next_visit: components["schemas"]["VisitOut"] | null;
5727
+ /**
5728
+ * Open Reviews
5729
+ * @description Module 6c: after-visit reviews open to this patient, newest visit first (held, attended, review.enabled, inside review.window_days)
5730
+ */
5731
+ open_reviews?: components["schemas"]["OpenReview"][];
5443
5732
  /** Pause Requests */
5444
5733
  pause_requests: components["schemas"]["PauseOut"][];
5445
5734
  /** Paused */
@@ -5715,6 +6004,34 @@ export interface components {
5715
6004
  /** Version Label */
5716
6005
  version_label: string | null;
5717
6006
  };
6007
+ /**
6008
+ * OpenReview
6009
+ * @description An after-visit review the patient can answer (or change) now.
6010
+ */
6011
+ OpenReview: {
6012
+ /**
6013
+ * Answered
6014
+ * @description True once answered; it can still be changed until closes_at
6015
+ */
6016
+ answered: boolean;
6017
+ /**
6018
+ * Closes At
6019
+ * Format: date-time
6020
+ */
6021
+ closes_at: string;
6022
+ /** Session Number */
6023
+ session_number: number | null;
6024
+ /**
6025
+ * Visit Ended At
6026
+ * Format: date-time
6027
+ */
6028
+ visit_ended_at: string;
6029
+ /**
6030
+ * Visit Id
6031
+ * Format: uuid
6032
+ */
6033
+ visit_id: string;
6034
+ };
5718
6035
  /** OpenSessionIn */
5719
6036
  OpenSessionIn: {
5720
6037
  /** Reason */
@@ -6145,6 +6462,13 @@ export interface components {
6145
6462
  names?: components["schemas"]["Names"] | null;
6146
6463
  professional?: components["schemas"]["ProfessionalProfileIn"] | null;
6147
6464
  };
6465
+ /** PhoneReadyIn */
6466
+ PhoneReadyIn: {
6467
+ /** Ready */
6468
+ ready: boolean;
6469
+ /** Reason */
6470
+ reason?: string | null;
6471
+ };
6148
6472
  /** Practice */
6149
6473
  Practice: {
6150
6474
  /**
@@ -6572,6 +6896,18 @@ export interface components {
6572
6896
  */
6573
6897
  stage: "added" | "invited" | "accepted" | "enrolled" | "alumni";
6574
6898
  };
6899
+ /** QuietHours */
6900
+ QuietHours: {
6901
+ /**
6902
+ * Days
6903
+ * @description Monday = 0
6904
+ */
6905
+ days?: number[];
6906
+ /** End */
6907
+ end: string;
6908
+ /** Start */
6909
+ start: string;
6910
+ };
6575
6911
  /** ReadinessMember */
6576
6912
  ReadinessMember: {
6577
6913
  /**
@@ -6717,55 +7053,178 @@ export interface components {
6717
7053
  */
6718
7054
  weekday: number;
6719
7055
  };
6720
- /** RepresentativeIn */
6721
- RepresentativeIn: {
6722
- /** Authority Note */
6723
- authority_note?: string | null;
6724
- /** Name */
6725
- name: string;
6726
- /**
6727
- * Relationship
6728
- * @enum {string}
6729
- */
6730
- relationship: "guardian" | "healthcare_agent" | "parent" | "other";
6731
- };
6732
- /** RequestCreate */
6733
- RequestCreate: {
7056
+ /** RepeatCreate */
7057
+ RepeatCreate: {
7058
+ /** Every Days */
7059
+ every_days: number;
6734
7060
  /** Instruments */
6735
7061
  instruments: string[];
6736
7062
  /**
6737
7063
  * Mode
6738
7064
  * @enum {string}
6739
7065
  */
6740
- mode: "login_prompt" | "email_link" | "text_link" | "ivr";
7066
+ mode: "login_prompt" | "text_link" | "ivr";
6741
7067
  /** Note */
6742
7068
  note?: string | null;
6743
- /** Occurrence Key */
6744
- occurrence_key?: string | null;
6745
- };
6746
- /** RequestOut */
6747
- RequestOut: {
6748
7069
  /**
6749
- * By Rule
6750
- * @description Raised by phq2.positive_followup, not a person
6751
- * @default false
7070
+ * Starts On
7071
+ * @description Default: today (first one now)
6752
7072
  */
6753
- by_rule: boolean;
6754
- /** Completed At */
6755
- completed_at: string | null;
7073
+ starts_on?: string | null;
6756
7074
  /**
6757
- * Created At
6758
- * Format: date-time
7075
+ * Times
7076
+ * @description Or until
6759
7077
  */
6760
- created_at: string;
7078
+ times?: number | null;
7079
+ /** Until */
7080
+ until?: string | null;
7081
+ };
7082
+ /** RepeatEventOut */
7083
+ RepeatEventOut: {
6761
7084
  /**
6762
- * Enrollment Id
6763
- * Format: uuid
7085
+ * At
7086
+ * Format: date-time
6764
7087
  */
6765
- enrollment_id: string;
6766
- /** Expires At */
6767
- expires_at: string | null;
6768
- /**
7088
+ at: string;
7089
+ /** By Person Id */
7090
+ by_person_id: string | null;
7091
+ /** Detail */
7092
+ detail: {
7093
+ [key: string]: unknown;
7094
+ } | null;
7095
+ /**
7096
+ * Kind
7097
+ * @enum {string}
7098
+ */
7099
+ kind: "created" | "sent" | "skipped" | "ended" | "ended_by_enrollment";
7100
+ };
7101
+ /** RepeatOut */
7102
+ RepeatOut: {
7103
+ /**
7104
+ * Created At
7105
+ * Format: date-time
7106
+ */
7107
+ created_at: string;
7108
+ /** Ended At */
7109
+ ended_at: string | null;
7110
+ /**
7111
+ * Ended Reason
7112
+ * @description ended_by_staff, finished, joined_cohort, patient_left
7113
+ */
7114
+ ended_reason?: string | null;
7115
+ /** Events */
7116
+ events?: components["schemas"]["RepeatEventOut"][];
7117
+ /** Every Days */
7118
+ every_days: number;
7119
+ /**
7120
+ * Id
7121
+ * Format: uuid
7122
+ */
7123
+ id: string;
7124
+ /** Instruments */
7125
+ instruments: string[];
7126
+ /**
7127
+ * Label
7128
+ * @description e.g. "2 of 4", "every 7 days until Jan 31"
7129
+ */
7130
+ label: string;
7131
+ /**
7132
+ * Mode
7133
+ * @enum {string}
7134
+ */
7135
+ mode: "login_prompt" | "text_link" | "ivr";
7136
+ /** Next On */
7137
+ next_on: string | null;
7138
+ /** Note */
7139
+ note: string | null;
7140
+ /**
7141
+ * Patient Id
7142
+ * Format: uuid
7143
+ */
7144
+ patient_id: string;
7145
+ /** Sent */
7146
+ sent: number;
7147
+ /** Skipped */
7148
+ skipped: number;
7149
+ /**
7150
+ * Starts On
7151
+ * Format: date
7152
+ */
7153
+ starts_on: string;
7154
+ /**
7155
+ * Status
7156
+ * @enum {string}
7157
+ */
7158
+ status: "active" | "ended";
7159
+ /** Times */
7160
+ times: number | null;
7161
+ /** Until */
7162
+ until: string | null;
7163
+ };
7164
+ /** RepresentativeIn */
7165
+ RepresentativeIn: {
7166
+ /** Authority Note */
7167
+ authority_note?: string | null;
7168
+ /** Name */
7169
+ name: string;
7170
+ /**
7171
+ * Relationship
7172
+ * @enum {string}
7173
+ */
7174
+ relationship: "guardian" | "healthcare_agent" | "parent" | "other";
7175
+ };
7176
+ /** RequestCreate */
7177
+ RequestCreate: {
7178
+ /** Instruments */
7179
+ instruments: string[];
7180
+ /**
7181
+ * Mode
7182
+ * @enum {string}
7183
+ */
7184
+ mode: "login_prompt" | "email_link" | "text_link" | "ivr";
7185
+ /** Note */
7186
+ note?: string | null;
7187
+ /** Occurrence Key */
7188
+ occurrence_key?: string | null;
7189
+ };
7190
+ /** RequestOut */
7191
+ RequestOut: {
7192
+ /**
7193
+ * Attempts
7194
+ * @default 0
7195
+ */
7196
+ attempts: number;
7197
+ /**
7198
+ * By Rule
7199
+ * @description Raised by phq2.positive_followup, not a person
7200
+ * @default false
7201
+ */
7202
+ by_rule: boolean;
7203
+ /** Completed At */
7204
+ completed_at: string | null;
7205
+ /**
7206
+ * Created At
7207
+ * Format: date-time
7208
+ */
7209
+ created_at: string;
7210
+ /**
7211
+ * Delivery
7212
+ * @description Texts and calls: where delivery stands (staff only)
7213
+ */
7214
+ delivery?: ("waiting" | "queued" | "sent" | "delivered" | "failed" | "opted_out" | "calling" | "no_answer" | "identity_failed" | "answered" | "follow_up_sent") | null;
7215
+ /**
7216
+ * Delivery Detail
7217
+ * @description outside_hours, retry, no_consent, no_phone, text, email, delivered, in_progress, stopped_part_way, … (staff only)
7218
+ */
7219
+ delivery_detail?: string | null;
7220
+ /**
7221
+ * Enrollment Id
7222
+ * @description None: asked outside a cohort (patient level, design §20.7)
7223
+ */
7224
+ enrollment_id: string | null;
7225
+ /** Expires At */
7226
+ expires_at: string | null;
7227
+ /**
6769
7228
  * Id
6770
7229
  * Format: uuid
6771
7230
  */
@@ -6777,6 +7236,8 @@ export interface components {
6777
7236
  * @enum {string}
6778
7237
  */
6779
7238
  mode: "login_prompt" | "email_link" | "text_link" | "ivr";
7239
+ /** Next Attempt At */
7240
+ next_attempt_at?: string | null;
6780
7241
  /**
6781
7242
  * Note
6782
7243
  * @description Shown to the patient (no health details)
@@ -6788,6 +7249,10 @@ export interface components {
6788
7249
  opened_at: string | null;
6789
7250
  /** Outstanding */
6790
7251
  outstanding?: string[];
7252
+ /** Patient Id */
7253
+ patient_id?: string | null;
7254
+ /** Repeat Id */
7255
+ repeat_id?: string | null;
6791
7256
  /** Sent At */
6792
7257
  sent_at: string | null;
6793
7258
  /**
@@ -6891,9 +7356,9 @@ export interface components {
6891
7356
  code: string;
6892
7357
  /**
6893
7358
  * Enrollment Id
6894
- * Format: uuid
7359
+ * @description None: answered outside a cohort
6895
7360
  */
6896
- enrollment_id: string;
7361
+ enrollment_id: string | null;
6897
7362
  /** Entered By Staff */
6898
7363
  entered_by_staff: boolean;
6899
7364
  /**
@@ -8108,18 +8573,18 @@ export interface components {
8108
8573
  * @description A sign-in prompt (login_prompt request) the portal shows after the site agreement.
8109
8574
  */
8110
8575
  guidistry_api__questionnaires__schemas__Prompt: {
8111
- /**
8112
- * Enrollment Id
8113
- * Format: uuid
8114
- */
8115
- enrollment_id: string;
8576
+ /** Enrollment Id */
8577
+ enrollment_id: string | null;
8116
8578
  /** Instruments */
8117
8579
  instruments: string[];
8118
8580
  /** Note */
8119
8581
  note: string | null;
8120
8582
  /** Outstanding */
8121
8583
  outstanding: string[];
8122
- /** Program Name */
8584
+ /**
8585
+ * Program Name
8586
+ * @description The practice's name for a patient-level request
8587
+ */
8123
8588
  program_name: string;
8124
8589
  /**
8125
8590
  * Request Id
@@ -8958,6 +9423,7 @@ export interface operations {
8958
9423
  query?: {
8959
9424
  cohort_id?: string | null;
8960
9425
  enrollment_id?: string | null;
9426
+ patient_id?: string | null;
8961
9427
  status?: string | null;
8962
9428
  limit?: number;
8963
9429
  };
@@ -11416,6 +11882,42 @@ export interface operations {
11416
11882
  };
11417
11883
  };
11418
11884
  };
11885
+ set_phone_ready_v1_instruments__code__phone_ready_post: {
11886
+ parameters: {
11887
+ query?: never;
11888
+ header?: {
11889
+ /** @description Membership the caller is acting through (from GET /v1/me) */
11890
+ "X-Guidistry-Context"?: string | null;
11891
+ };
11892
+ path: {
11893
+ code: string;
11894
+ };
11895
+ cookie?: never;
11896
+ };
11897
+ requestBody: {
11898
+ content: {
11899
+ "application/json": components["schemas"]["PhoneReadyIn"];
11900
+ };
11901
+ };
11902
+ responses: {
11903
+ /** @description Successful Response */
11904
+ 204: {
11905
+ headers: {
11906
+ [name: string]: unknown;
11907
+ };
11908
+ content?: never;
11909
+ };
11910
+ /** @description Validation Error */
11911
+ 422: {
11912
+ headers: {
11913
+ [name: string]: unknown;
11914
+ };
11915
+ content: {
11916
+ "application/json": components["schemas"]["HTTPValidationError"];
11917
+ };
11918
+ };
11919
+ };
11920
+ };
11419
11921
  list_invitations_v1_invitations_get: {
11420
11922
  parameters: {
11421
11923
  query?: {
@@ -11796,7 +12298,7 @@ export interface operations {
11796
12298
  };
11797
12299
  };
11798
12300
  };
11799
- my_enrollments_v1_me_enrollments_get: {
12301
+ get_my_consent_v1_me_contact_consent_get: {
11800
12302
  parameters: {
11801
12303
  query?: never;
11802
12304
  header?: {
@@ -11814,7 +12316,7 @@ export interface operations {
11814
12316
  [name: string]: unknown;
11815
12317
  };
11816
12318
  content: {
11817
- "application/json": components["schemas"]["MyEnrollmentOut"][];
12319
+ "application/json": components["schemas"]["ContactConsentOut"];
11818
12320
  };
11819
12321
  };
11820
12322
  /** @description Validation Error */
@@ -11828,21 +12330,19 @@ export interface operations {
11828
12330
  };
11829
12331
  };
11830
12332
  };
11831
- update_membership_v1_memberships__membership_id__patch: {
12333
+ put_my_consent_v1_me_contact_consent_put: {
11832
12334
  parameters: {
11833
12335
  query?: never;
11834
12336
  header?: {
11835
12337
  /** @description Membership the caller is acting through (from GET /v1/me) */
11836
12338
  "X-Guidistry-Context"?: string | null;
11837
12339
  };
11838
- path: {
11839
- membership_id: string;
11840
- };
12340
+ path?: never;
11841
12341
  cookie?: never;
11842
12342
  };
11843
12343
  requestBody: {
11844
12344
  content: {
11845
- "application/json": components["schemas"]["MembershipUpdate"];
12345
+ "application/json": components["schemas"]["ContactConsentIn"];
11846
12346
  };
11847
12347
  };
11848
12348
  responses: {
@@ -11852,7 +12352,7 @@ export interface operations {
11852
12352
  [name: string]: unknown;
11853
12353
  };
11854
12354
  content: {
11855
- "application/json": components["schemas"]["MembershipOut"];
12355
+ "application/json": components["schemas"]["ContactConsentOut"];
11856
12356
  };
11857
12357
  };
11858
12358
  /** @description Validation Error */
@@ -11866,12 +12366,9 @@ export interface operations {
11866
12366
  };
11867
12367
  };
11868
12368
  };
11869
- list_templates_v1_note_templates_get: {
12369
+ get_my_prefs_v1_me_contact_preferences_get: {
11870
12370
  parameters: {
11871
- query?: {
11872
- cohort_id?: string | null;
11873
- include_archived?: boolean;
11874
- };
12371
+ query?: never;
11875
12372
  header?: {
11876
12373
  /** @description Membership the caller is acting through (from GET /v1/me) */
11877
12374
  "X-Guidistry-Context"?: string | null;
@@ -11887,7 +12384,7 @@ export interface operations {
11887
12384
  [name: string]: unknown;
11888
12385
  };
11889
12386
  content: {
11890
- "application/json": components["schemas"]["TemplatesOut"];
12387
+ "application/json": components["schemas"]["ContactPrefsOut"];
11891
12388
  };
11892
12389
  };
11893
12390
  /** @description Validation Error */
@@ -11901,7 +12398,7 @@ export interface operations {
11901
12398
  };
11902
12399
  };
11903
12400
  };
11904
- create_template_v1_note_templates_post: {
12401
+ put_my_prefs_v1_me_contact_preferences_put: {
11905
12402
  parameters: {
11906
12403
  query?: never;
11907
12404
  header?: {
@@ -11913,17 +12410,17 @@ export interface operations {
11913
12410
  };
11914
12411
  requestBody: {
11915
12412
  content: {
11916
- "application/json": components["schemas"]["TemplateIn"];
12413
+ "application/json": components["schemas"]["ContactPrefsIn"];
11917
12414
  };
11918
12415
  };
11919
12416
  responses: {
11920
12417
  /** @description Successful Response */
11921
- 201: {
12418
+ 200: {
11922
12419
  headers: {
11923
12420
  [name: string]: unknown;
11924
12421
  };
11925
12422
  content: {
11926
- "application/json": components["schemas"]["TemplateOut"];
12423
+ "application/json": components["schemas"]["ContactPrefsOut"];
11927
12424
  };
11928
12425
  };
11929
12426
  /** @description Validation Error */
@@ -11937,23 +12434,17 @@ export interface operations {
11937
12434
  };
11938
12435
  };
11939
12436
  };
11940
- edit_template_v1_note_templates__template_id__put: {
12437
+ my_enrollments_v1_me_enrollments_get: {
11941
12438
  parameters: {
11942
12439
  query?: never;
11943
12440
  header?: {
11944
12441
  /** @description Membership the caller is acting through (from GET /v1/me) */
11945
12442
  "X-Guidistry-Context"?: string | null;
11946
12443
  };
11947
- path: {
11948
- template_id: string;
11949
- };
12444
+ path?: never;
11950
12445
  cookie?: never;
11951
12446
  };
11952
- requestBody: {
11953
- content: {
11954
- "application/json": components["schemas"]["TemplateChange"];
11955
- };
11956
- };
12447
+ requestBody?: never;
11957
12448
  responses: {
11958
12449
  /** @description Successful Response */
11959
12450
  200: {
@@ -11961,7 +12452,7 @@ export interface operations {
11961
12452
  [name: string]: unknown;
11962
12453
  };
11963
12454
  content: {
11964
- "application/json": components["schemas"]["TemplateOut"];
12455
+ "application/json": components["schemas"]["MyEnrollmentOut"][];
11965
12456
  };
11966
12457
  };
11967
12458
  /** @description Validation Error */
@@ -11975,7 +12466,7 @@ export interface operations {
11975
12466
  };
11976
12467
  };
11977
12468
  };
11978
- archive_template_v1_note_templates__template_id__archive_post: {
12469
+ open_my_request_v1_me_questionnaire_requests__request_id__get: {
11979
12470
  parameters: {
11980
12471
  query?: never;
11981
12472
  header?: {
@@ -11983,7 +12474,7 @@ export interface operations {
11983
12474
  "X-Guidistry-Context"?: string | null;
11984
12475
  };
11985
12476
  path: {
11986
- template_id: string;
12477
+ request_id: string;
11987
12478
  };
11988
12479
  cookie?: never;
11989
12480
  };
@@ -11995,7 +12486,7 @@ export interface operations {
11995
12486
  [name: string]: unknown;
11996
12487
  };
11997
12488
  content: {
11998
- "application/json": components["schemas"]["TemplateOut"];
12489
+ "application/json": components["schemas"]["guidistry_api__questionnaires__schemas__LinkOut"];
11999
12490
  };
12000
12491
  };
12001
12492
  /** @description Validation Error */
@@ -12009,30 +12500,31 @@ export interface operations {
12009
12500
  };
12010
12501
  };
12011
12502
  };
12012
- list_notes_v1_notes_get: {
12503
+ answer_my_request_v1_me_questionnaire_requests__request_id__responses_post: {
12013
12504
  parameters: {
12014
- query?: {
12015
- status?: string | null;
12016
- emr_status?: string | null;
12017
- mine?: boolean;
12018
- cohort_id?: string | null;
12019
- };
12505
+ query?: never;
12020
12506
  header?: {
12021
12507
  /** @description Membership the caller is acting through (from GET /v1/me) */
12022
12508
  "X-Guidistry-Context"?: string | null;
12023
12509
  };
12024
- path?: never;
12510
+ path: {
12511
+ request_id: string;
12512
+ };
12025
12513
  cookie?: never;
12026
12514
  };
12027
- requestBody?: never;
12515
+ requestBody: {
12516
+ content: {
12517
+ "application/json": components["schemas"]["LinkResponseIn"];
12518
+ };
12519
+ };
12028
12520
  responses: {
12029
12521
  /** @description Successful Response */
12030
- 200: {
12522
+ 201: {
12031
12523
  headers: {
12032
12524
  [name: string]: unknown;
12033
12525
  };
12034
12526
  content: {
12035
- "application/json": components["schemas"]["NoteListItem"][];
12527
+ "application/json": components["schemas"]["LinkResponseOut"];
12036
12528
  };
12037
12529
  };
12038
12530
  /** @description Validation Error */
@@ -12046,17 +12538,23 @@ export interface operations {
12046
12538
  };
12047
12539
  };
12048
12540
  };
12049
- list_org_units_v1_org_units_get: {
12541
+ update_membership_v1_memberships__membership_id__patch: {
12050
12542
  parameters: {
12051
12543
  query?: never;
12052
12544
  header?: {
12053
12545
  /** @description Membership the caller is acting through (from GET /v1/me) */
12054
12546
  "X-Guidistry-Context"?: string | null;
12055
12547
  };
12056
- path?: never;
12548
+ path: {
12549
+ membership_id: string;
12550
+ };
12057
12551
  cookie?: never;
12058
12552
  };
12059
- requestBody?: never;
12553
+ requestBody: {
12554
+ content: {
12555
+ "application/json": components["schemas"]["MembershipUpdate"];
12556
+ };
12557
+ };
12060
12558
  responses: {
12061
12559
  /** @description Successful Response */
12062
12560
  200: {
@@ -12064,7 +12562,7 @@ export interface operations {
12064
12562
  [name: string]: unknown;
12065
12563
  };
12066
12564
  content: {
12067
- "application/json": components["schemas"]["OrgUnitOut"][];
12565
+ "application/json": components["schemas"]["MembershipOut"];
12068
12566
  };
12069
12567
  };
12070
12568
  /** @description Validation Error */
@@ -12078,9 +12576,12 @@ export interface operations {
12078
12576
  };
12079
12577
  };
12080
12578
  };
12081
- create_org_unit_v1_org_units_post: {
12579
+ list_templates_v1_note_templates_get: {
12082
12580
  parameters: {
12083
- query?: never;
12581
+ query?: {
12582
+ cohort_id?: string | null;
12583
+ include_archived?: boolean;
12584
+ };
12084
12585
  header?: {
12085
12586
  /** @description Membership the caller is acting through (from GET /v1/me) */
12086
12587
  "X-Guidistry-Context"?: string | null;
@@ -12088,19 +12589,15 @@ export interface operations {
12088
12589
  path?: never;
12089
12590
  cookie?: never;
12090
12591
  };
12091
- requestBody: {
12092
- content: {
12093
- "application/json": components["schemas"]["OrgUnitCreate"];
12094
- };
12095
- };
12592
+ requestBody?: never;
12096
12593
  responses: {
12097
12594
  /** @description Successful Response */
12098
- 201: {
12595
+ 200: {
12099
12596
  headers: {
12100
12597
  [name: string]: unknown;
12101
12598
  };
12102
12599
  content: {
12103
- "application/json": components["schemas"]["OrgUnitOut"];
12600
+ "application/json": components["schemas"]["TemplatesOut"];
12104
12601
  };
12105
12602
  };
12106
12603
  /** @description Validation Error */
@@ -12114,21 +12611,379 @@ export interface operations {
12114
12611
  };
12115
12612
  };
12116
12613
  };
12117
- update_org_unit_v1_org_units__unit_id__patch: {
12614
+ create_template_v1_note_templates_post: {
12118
12615
  parameters: {
12119
12616
  query?: never;
12120
12617
  header?: {
12121
12618
  /** @description Membership the caller is acting through (from GET /v1/me) */
12122
12619
  "X-Guidistry-Context"?: string | null;
12123
12620
  };
12124
- path: {
12125
- unit_id: string;
12126
- };
12621
+ path?: never;
12127
12622
  cookie?: never;
12128
12623
  };
12129
12624
  requestBody: {
12130
12625
  content: {
12131
- "application/json": components["schemas"]["OrgUnitUpdate"];
12626
+ "application/json": components["schemas"]["TemplateIn"];
12627
+ };
12628
+ };
12629
+ responses: {
12630
+ /** @description Successful Response */
12631
+ 201: {
12632
+ headers: {
12633
+ [name: string]: unknown;
12634
+ };
12635
+ content: {
12636
+ "application/json": components["schemas"]["TemplateOut"];
12637
+ };
12638
+ };
12639
+ /** @description Validation Error */
12640
+ 422: {
12641
+ headers: {
12642
+ [name: string]: unknown;
12643
+ };
12644
+ content: {
12645
+ "application/json": components["schemas"]["HTTPValidationError"];
12646
+ };
12647
+ };
12648
+ };
12649
+ };
12650
+ edit_template_v1_note_templates__template_id__put: {
12651
+ parameters: {
12652
+ query?: never;
12653
+ header?: {
12654
+ /** @description Membership the caller is acting through (from GET /v1/me) */
12655
+ "X-Guidistry-Context"?: string | null;
12656
+ };
12657
+ path: {
12658
+ template_id: string;
12659
+ };
12660
+ cookie?: never;
12661
+ };
12662
+ requestBody: {
12663
+ content: {
12664
+ "application/json": components["schemas"]["TemplateChange"];
12665
+ };
12666
+ };
12667
+ responses: {
12668
+ /** @description Successful Response */
12669
+ 200: {
12670
+ headers: {
12671
+ [name: string]: unknown;
12672
+ };
12673
+ content: {
12674
+ "application/json": components["schemas"]["TemplateOut"];
12675
+ };
12676
+ };
12677
+ /** @description Validation Error */
12678
+ 422: {
12679
+ headers: {
12680
+ [name: string]: unknown;
12681
+ };
12682
+ content: {
12683
+ "application/json": components["schemas"]["HTTPValidationError"];
12684
+ };
12685
+ };
12686
+ };
12687
+ };
12688
+ archive_template_v1_note_templates__template_id__archive_post: {
12689
+ parameters: {
12690
+ query?: never;
12691
+ header?: {
12692
+ /** @description Membership the caller is acting through (from GET /v1/me) */
12693
+ "X-Guidistry-Context"?: string | null;
12694
+ };
12695
+ path: {
12696
+ template_id: string;
12697
+ };
12698
+ cookie?: never;
12699
+ };
12700
+ requestBody?: never;
12701
+ responses: {
12702
+ /** @description Successful Response */
12703
+ 200: {
12704
+ headers: {
12705
+ [name: string]: unknown;
12706
+ };
12707
+ content: {
12708
+ "application/json": components["schemas"]["TemplateOut"];
12709
+ };
12710
+ };
12711
+ /** @description Validation Error */
12712
+ 422: {
12713
+ headers: {
12714
+ [name: string]: unknown;
12715
+ };
12716
+ content: {
12717
+ "application/json": components["schemas"]["HTTPValidationError"];
12718
+ };
12719
+ };
12720
+ };
12721
+ };
12722
+ list_notes_v1_notes_get: {
12723
+ parameters: {
12724
+ query?: {
12725
+ status?: string | null;
12726
+ emr_status?: string | null;
12727
+ mine?: boolean;
12728
+ cohort_id?: string | null;
12729
+ };
12730
+ header?: {
12731
+ /** @description Membership the caller is acting through (from GET /v1/me) */
12732
+ "X-Guidistry-Context"?: string | null;
12733
+ };
12734
+ path?: never;
12735
+ cookie?: never;
12736
+ };
12737
+ requestBody?: never;
12738
+ responses: {
12739
+ /** @description Successful Response */
12740
+ 200: {
12741
+ headers: {
12742
+ [name: string]: unknown;
12743
+ };
12744
+ content: {
12745
+ "application/json": components["schemas"]["NoteListItem"][];
12746
+ };
12747
+ };
12748
+ /** @description Validation Error */
12749
+ 422: {
12750
+ headers: {
12751
+ [name: string]: unknown;
12752
+ };
12753
+ content: {
12754
+ "application/json": components["schemas"]["HTTPValidationError"];
12755
+ };
12756
+ };
12757
+ };
12758
+ };
12759
+ list_org_units_v1_org_units_get: {
12760
+ parameters: {
12761
+ query?: never;
12762
+ header?: {
12763
+ /** @description Membership the caller is acting through (from GET /v1/me) */
12764
+ "X-Guidistry-Context"?: string | null;
12765
+ };
12766
+ path?: never;
12767
+ cookie?: never;
12768
+ };
12769
+ requestBody?: never;
12770
+ responses: {
12771
+ /** @description Successful Response */
12772
+ 200: {
12773
+ headers: {
12774
+ [name: string]: unknown;
12775
+ };
12776
+ content: {
12777
+ "application/json": components["schemas"]["OrgUnitOut"][];
12778
+ };
12779
+ };
12780
+ /** @description Validation Error */
12781
+ 422: {
12782
+ headers: {
12783
+ [name: string]: unknown;
12784
+ };
12785
+ content: {
12786
+ "application/json": components["schemas"]["HTTPValidationError"];
12787
+ };
12788
+ };
12789
+ };
12790
+ };
12791
+ create_org_unit_v1_org_units_post: {
12792
+ parameters: {
12793
+ query?: never;
12794
+ header?: {
12795
+ /** @description Membership the caller is acting through (from GET /v1/me) */
12796
+ "X-Guidistry-Context"?: string | null;
12797
+ };
12798
+ path?: never;
12799
+ cookie?: never;
12800
+ };
12801
+ requestBody: {
12802
+ content: {
12803
+ "application/json": components["schemas"]["OrgUnitCreate"];
12804
+ };
12805
+ };
12806
+ responses: {
12807
+ /** @description Successful Response */
12808
+ 201: {
12809
+ headers: {
12810
+ [name: string]: unknown;
12811
+ };
12812
+ content: {
12813
+ "application/json": components["schemas"]["OrgUnitOut"];
12814
+ };
12815
+ };
12816
+ /** @description Validation Error */
12817
+ 422: {
12818
+ headers: {
12819
+ [name: string]: unknown;
12820
+ };
12821
+ content: {
12822
+ "application/json": components["schemas"]["HTTPValidationError"];
12823
+ };
12824
+ };
12825
+ };
12826
+ };
12827
+ update_org_unit_v1_org_units__unit_id__patch: {
12828
+ parameters: {
12829
+ query?: never;
12830
+ header?: {
12831
+ /** @description Membership the caller is acting through (from GET /v1/me) */
12832
+ "X-Guidistry-Context"?: string | null;
12833
+ };
12834
+ path: {
12835
+ unit_id: string;
12836
+ };
12837
+ cookie?: never;
12838
+ };
12839
+ requestBody: {
12840
+ content: {
12841
+ "application/json": components["schemas"]["OrgUnitUpdate"];
12842
+ };
12843
+ };
12844
+ responses: {
12845
+ /** @description Successful Response */
12846
+ 200: {
12847
+ headers: {
12848
+ [name: string]: unknown;
12849
+ };
12850
+ content: {
12851
+ "application/json": components["schemas"]["OrgUnitOut"];
12852
+ };
12853
+ };
12854
+ /** @description Validation Error */
12855
+ 422: {
12856
+ headers: {
12857
+ [name: string]: unknown;
12858
+ };
12859
+ content: {
12860
+ "application/json": components["schemas"]["HTTPValidationError"];
12861
+ };
12862
+ };
12863
+ };
12864
+ };
12865
+ list_patients_v1_patients_get: {
12866
+ parameters: {
12867
+ query?: {
12868
+ /** @description Name search (prefixes) */
12869
+ q?: string | null;
12870
+ mrn?: string | null;
12871
+ cohort_id?: string | null;
12872
+ };
12873
+ header?: {
12874
+ /** @description Membership the caller is acting through (from GET /v1/me) */
12875
+ "X-Guidistry-Context"?: string | null;
12876
+ };
12877
+ path?: never;
12878
+ cookie?: never;
12879
+ };
12880
+ requestBody?: never;
12881
+ responses: {
12882
+ /** @description Successful Response */
12883
+ 200: {
12884
+ headers: {
12885
+ [name: string]: unknown;
12886
+ };
12887
+ content: {
12888
+ "application/json": components["schemas"]["PatientPage"];
12889
+ };
12890
+ };
12891
+ /** @description Validation Error */
12892
+ 422: {
12893
+ headers: {
12894
+ [name: string]: unknown;
12895
+ };
12896
+ content: {
12897
+ "application/json": components["schemas"]["HTTPValidationError"];
12898
+ };
12899
+ };
12900
+ };
12901
+ };
12902
+ create_patient_v1_patients_post: {
12903
+ parameters: {
12904
+ query?: never;
12905
+ header?: {
12906
+ /** @description Membership the caller is acting through (from GET /v1/me) */
12907
+ "X-Guidistry-Context"?: string | null;
12908
+ };
12909
+ path?: never;
12910
+ cookie?: never;
12911
+ };
12912
+ requestBody: {
12913
+ content: {
12914
+ "application/json": components["schemas"]["PatientCreate"];
12915
+ };
12916
+ };
12917
+ responses: {
12918
+ /** @description Successful Response */
12919
+ 201: {
12920
+ headers: {
12921
+ [name: string]: unknown;
12922
+ };
12923
+ content: {
12924
+ "application/json": components["schemas"]["PatientOut"];
12925
+ };
12926
+ };
12927
+ /** @description Validation Error */
12928
+ 422: {
12929
+ headers: {
12930
+ [name: string]: unknown;
12931
+ };
12932
+ content: {
12933
+ "application/json": components["schemas"]["HTTPValidationError"];
12934
+ };
12935
+ };
12936
+ };
12937
+ };
12938
+ get_consent_v1_patients__patient_id__contact_consent_get: {
12939
+ parameters: {
12940
+ query?: never;
12941
+ header?: {
12942
+ /** @description Membership the caller is acting through (from GET /v1/me) */
12943
+ "X-Guidistry-Context"?: string | null;
12944
+ };
12945
+ path: {
12946
+ patient_id: string;
12947
+ };
12948
+ cookie?: never;
12949
+ };
12950
+ requestBody?: never;
12951
+ responses: {
12952
+ /** @description Successful Response */
12953
+ 200: {
12954
+ headers: {
12955
+ [name: string]: unknown;
12956
+ };
12957
+ content: {
12958
+ "application/json": components["schemas"]["ContactConsentOut"];
12959
+ };
12960
+ };
12961
+ /** @description Validation Error */
12962
+ 422: {
12963
+ headers: {
12964
+ [name: string]: unknown;
12965
+ };
12966
+ content: {
12967
+ "application/json": components["schemas"]["HTTPValidationError"];
12968
+ };
12969
+ };
12970
+ };
12971
+ };
12972
+ put_consent_v1_patients__patient_id__contact_consent_put: {
12973
+ parameters: {
12974
+ query?: never;
12975
+ header?: {
12976
+ /** @description Membership the caller is acting through (from GET /v1/me) */
12977
+ "X-Guidistry-Context"?: string | null;
12978
+ };
12979
+ path: {
12980
+ patient_id: string;
12981
+ };
12982
+ cookie?: never;
12983
+ };
12984
+ requestBody: {
12985
+ content: {
12986
+ "application/json": components["schemas"]["ContactConsentIn"];
12132
12987
  };
12133
12988
  };
12134
12989
  responses: {
@@ -12138,7 +12993,7 @@ export interface operations {
12138
12993
  [name: string]: unknown;
12139
12994
  };
12140
12995
  content: {
12141
- "application/json": components["schemas"]["OrgUnitOut"];
12996
+ "application/json": components["schemas"]["ContactConsentOut"];
12142
12997
  };
12143
12998
  };
12144
12999
  /** @description Validation Error */
@@ -12152,19 +13007,16 @@ export interface operations {
12152
13007
  };
12153
13008
  };
12154
13009
  };
12155
- list_patients_v1_patients_get: {
13010
+ get_prefs_v1_patients__patient_id__contact_preferences_get: {
12156
13011
  parameters: {
12157
- query?: {
12158
- /** @description Name search (prefixes) */
12159
- q?: string | null;
12160
- mrn?: string | null;
12161
- cohort_id?: string | null;
12162
- };
13012
+ query?: never;
12163
13013
  header?: {
12164
13014
  /** @description Membership the caller is acting through (from GET /v1/me) */
12165
13015
  "X-Guidistry-Context"?: string | null;
12166
13016
  };
12167
- path?: never;
13017
+ path: {
13018
+ patient_id: string;
13019
+ };
12168
13020
  cookie?: never;
12169
13021
  };
12170
13022
  requestBody?: never;
@@ -12175,7 +13027,7 @@ export interface operations {
12175
13027
  [name: string]: unknown;
12176
13028
  };
12177
13029
  content: {
12178
- "application/json": components["schemas"]["PatientPage"];
13030
+ "application/json": components["schemas"]["ContactPrefsOut"];
12179
13031
  };
12180
13032
  };
12181
13033
  /** @description Validation Error */
@@ -12189,29 +13041,31 @@ export interface operations {
12189
13041
  };
12190
13042
  };
12191
13043
  };
12192
- create_patient_v1_patients_post: {
13044
+ put_prefs_v1_patients__patient_id__contact_preferences_put: {
12193
13045
  parameters: {
12194
13046
  query?: never;
12195
13047
  header?: {
12196
13048
  /** @description Membership the caller is acting through (from GET /v1/me) */
12197
13049
  "X-Guidistry-Context"?: string | null;
12198
13050
  };
12199
- path?: never;
13051
+ path: {
13052
+ patient_id: string;
13053
+ };
12200
13054
  cookie?: never;
12201
13055
  };
12202
13056
  requestBody: {
12203
13057
  content: {
12204
- "application/json": components["schemas"]["PatientCreate"];
13058
+ "application/json": components["schemas"]["ContactPrefsIn"];
12205
13059
  };
12206
13060
  };
12207
13061
  responses: {
12208
13062
  /** @description Successful Response */
12209
- 201: {
13063
+ 200: {
12210
13064
  headers: {
12211
13065
  [name: string]: unknown;
12212
13066
  };
12213
13067
  content: {
12214
- "application/json": components["schemas"]["PatientOut"];
13068
+ "application/json": components["schemas"]["ContactPrefsOut"];
12215
13069
  };
12216
13070
  };
12217
13071
  /** @description Validation Error */
@@ -12293,6 +13147,162 @@ export interface operations {
12293
13147
  };
12294
13148
  };
12295
13149
  };
13150
+ list_repeats_v1_patients__patient_id__questionnaire_repeats_get: {
13151
+ parameters: {
13152
+ query?: never;
13153
+ header?: {
13154
+ /** @description Membership the caller is acting through (from GET /v1/me) */
13155
+ "X-Guidistry-Context"?: string | null;
13156
+ };
13157
+ path: {
13158
+ patient_id: string;
13159
+ };
13160
+ cookie?: never;
13161
+ };
13162
+ requestBody?: never;
13163
+ responses: {
13164
+ /** @description Successful Response */
13165
+ 200: {
13166
+ headers: {
13167
+ [name: string]: unknown;
13168
+ };
13169
+ content: {
13170
+ "application/json": components["schemas"]["RepeatOut"][];
13171
+ };
13172
+ };
13173
+ /** @description Validation Error */
13174
+ 422: {
13175
+ headers: {
13176
+ [name: string]: unknown;
13177
+ };
13178
+ content: {
13179
+ "application/json": components["schemas"]["HTTPValidationError"];
13180
+ };
13181
+ };
13182
+ };
13183
+ };
13184
+ create_repeat_v1_patients__patient_id__questionnaire_repeats_post: {
13185
+ parameters: {
13186
+ query?: never;
13187
+ header?: {
13188
+ /** @description Membership the caller is acting through (from GET /v1/me) */
13189
+ "X-Guidistry-Context"?: string | null;
13190
+ };
13191
+ path: {
13192
+ patient_id: string;
13193
+ };
13194
+ cookie?: never;
13195
+ };
13196
+ requestBody: {
13197
+ content: {
13198
+ "application/json": components["schemas"]["RepeatCreate"];
13199
+ };
13200
+ };
13201
+ responses: {
13202
+ /** @description Successful Response */
13203
+ 201: {
13204
+ headers: {
13205
+ [name: string]: unknown;
13206
+ };
13207
+ content: {
13208
+ "application/json": components["schemas"]["RepeatOut"];
13209
+ };
13210
+ };
13211
+ /** @description consent_required, not_phone_ready */
13212
+ 409: {
13213
+ headers: {
13214
+ [name: string]: unknown;
13215
+ };
13216
+ content?: never;
13217
+ };
13218
+ /** @description Validation Error */
13219
+ 422: {
13220
+ headers: {
13221
+ [name: string]: unknown;
13222
+ };
13223
+ content: {
13224
+ "application/json": components["schemas"]["HTTPValidationError"];
13225
+ };
13226
+ };
13227
+ };
13228
+ };
13229
+ list_patient_requests_v1_patients__patient_id__questionnaire_requests_get: {
13230
+ parameters: {
13231
+ query?: never;
13232
+ header?: {
13233
+ /** @description Membership the caller is acting through (from GET /v1/me) */
13234
+ "X-Guidistry-Context"?: string | null;
13235
+ };
13236
+ path: {
13237
+ patient_id: string;
13238
+ };
13239
+ cookie?: never;
13240
+ };
13241
+ requestBody?: never;
13242
+ responses: {
13243
+ /** @description Successful Response */
13244
+ 200: {
13245
+ headers: {
13246
+ [name: string]: unknown;
13247
+ };
13248
+ content: {
13249
+ "application/json": components["schemas"]["RequestOut"][];
13250
+ };
13251
+ };
13252
+ /** @description Validation Error */
13253
+ 422: {
13254
+ headers: {
13255
+ [name: string]: unknown;
13256
+ };
13257
+ content: {
13258
+ "application/json": components["schemas"]["HTTPValidationError"];
13259
+ };
13260
+ };
13261
+ };
13262
+ };
13263
+ create_patient_request_v1_patients__patient_id__questionnaire_requests_post: {
13264
+ parameters: {
13265
+ query?: never;
13266
+ header?: {
13267
+ /** @description Membership the caller is acting through (from GET /v1/me) */
13268
+ "X-Guidistry-Context"?: string | null;
13269
+ };
13270
+ path: {
13271
+ patient_id: string;
13272
+ };
13273
+ cookie?: never;
13274
+ };
13275
+ requestBody: {
13276
+ content: {
13277
+ "application/json": components["schemas"]["RequestCreate"];
13278
+ };
13279
+ };
13280
+ responses: {
13281
+ /** @description Successful Response */
13282
+ 201: {
13283
+ headers: {
13284
+ [name: string]: unknown;
13285
+ };
13286
+ content: {
13287
+ "application/json": components["schemas"]["RequestOut"];
13288
+ };
13289
+ };
13290
+ /** @description consent_required, not_phone_ready, channels_not_configured */
13291
+ 409: {
13292
+ headers: {
13293
+ [name: string]: unknown;
13294
+ };
13295
+ content?: never;
13296
+ };
13297
+ /** @description no_phone */
13298
+ 422: {
13299
+ headers: {
13300
+ [name: string]: unknown;
13301
+ };
13302
+ content?: never;
13303
+ };
13304
+ };
13305
+ };
12296
13306
  patient_responses_v1_patients__patient_id__questionnaires_get: {
12297
13307
  parameters: {
12298
13308
  query?: {
@@ -13048,6 +14058,74 @@ export interface operations {
13048
14058
  };
13049
14059
  };
13050
14060
  };
14061
+ end_repeat_v1_questionnaire_repeats__repeat_id__end_post: {
14062
+ parameters: {
14063
+ query?: never;
14064
+ header?: {
14065
+ /** @description Membership the caller is acting through (from GET /v1/me) */
14066
+ "X-Guidistry-Context"?: string | null;
14067
+ };
14068
+ path: {
14069
+ repeat_id: string;
14070
+ };
14071
+ cookie?: never;
14072
+ };
14073
+ requestBody?: never;
14074
+ responses: {
14075
+ /** @description Successful Response */
14076
+ 200: {
14077
+ headers: {
14078
+ [name: string]: unknown;
14079
+ };
14080
+ content: {
14081
+ "application/json": components["schemas"]["RepeatOut"];
14082
+ };
14083
+ };
14084
+ /** @description Validation Error */
14085
+ 422: {
14086
+ headers: {
14087
+ [name: string]: unknown;
14088
+ };
14089
+ content: {
14090
+ "application/json": components["schemas"]["HTTPValidationError"];
14091
+ };
14092
+ };
14093
+ };
14094
+ };
14095
+ skip_next_v1_questionnaire_repeats__repeat_id__skip_next_post: {
14096
+ parameters: {
14097
+ query?: never;
14098
+ header?: {
14099
+ /** @description Membership the caller is acting through (from GET /v1/me) */
14100
+ "X-Guidistry-Context"?: string | null;
14101
+ };
14102
+ path: {
14103
+ repeat_id: string;
14104
+ };
14105
+ cookie?: never;
14106
+ };
14107
+ requestBody?: never;
14108
+ responses: {
14109
+ /** @description Successful Response */
14110
+ 200: {
14111
+ headers: {
14112
+ [name: string]: unknown;
14113
+ };
14114
+ content: {
14115
+ "application/json": components["schemas"]["RepeatOut"];
14116
+ };
14117
+ };
14118
+ /** @description Validation Error */
14119
+ 422: {
14120
+ headers: {
14121
+ [name: string]: unknown;
14122
+ };
14123
+ content: {
14124
+ "application/json": components["schemas"]["HTTPValidationError"];
14125
+ };
14126
+ };
14127
+ };
14128
+ };
13051
14129
  cancel_request_v1_questionnaire_requests__request_id__cancel_post: {
13052
14130
  parameters: {
13053
14131
  query?: never;