@photonhealth/client 2.0.0-rc.1 → 2.0.0-rc.2
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.
- package/README.md +150 -5
- package/dist/analytics/lifecycleEvents.d.ts +29 -0
- package/dist/analytics/lifecycleEvents.d.ts.map +1 -0
- package/dist/analytics/lifecycleEvents.js +72 -0
- package/dist/analytics/lifecycleEvents.js.map +1 -0
- package/dist/api/client.d.ts +6 -1
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +47 -33
- package/dist/api/client.js.map +1 -1
- package/dist/api/index.d.ts +2 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +2 -0
- package/dist/api/index.js.map +1 -1
- package/dist/api/me.d.ts +37 -0
- package/dist/api/me.d.ts.map +1 -0
- package/dist/api/me.js +6 -0
- package/dist/api/me.js.map +1 -0
- package/dist/api/orders.d.ts +1047 -0
- package/dist/api/orders.d.ts.map +1 -0
- package/dist/api/orders.js +7 -0
- package/dist/api/orders.js.map +1 -0
- package/dist/api/patient.d.ts +5 -2
- package/dist/api/patient.d.ts.map +1 -1
- package/dist/api/patient.js +1 -1
- package/dist/api/patient.js.map +1 -1
- package/dist/api/prescription.d.ts +7 -1
- package/dist/api/prescription.d.ts.map +1 -1
- package/dist/api/prescription.js +10 -1
- package/dist/api/prescription.js.map +1 -1
- package/dist/gql/gql.d.ts +11 -3
- package/dist/gql/gql.d.ts.map +1 -1
- package/dist/gql/gql.js +5 -3
- package/dist/gql/gql.js.map +1 -1
- package/dist/gql/graphql.d.ts +10507 -1563
- package/dist/gql/graphql.d.ts.map +1 -1
- package/dist/gql/graphql.js +2984 -435
- package/dist/gql/graphql.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/meta/version.d.ts +2 -0
- package/dist/meta/version.d.ts.map +1 -0
- package/dist/meta/version.js +2 -0
- package/dist/meta/version.js.map +1 -0
- package/dist/photon/analytics.d.ts +39 -0
- package/dist/photon/analytics.d.ts.map +1 -0
- package/dist/photon/analytics.js +91 -0
- package/dist/photon/analytics.js.map +1 -0
- package/dist/photon/auth.d.ts +9 -5
- package/dist/photon/auth.d.ts.map +1 -1
- package/dist/photon/auth.js +2 -6
- package/dist/photon/auth.js.map +1 -1
- package/dist/photon/choices.d.ts +1 -1
- package/dist/photon/choices.js +2 -2
- package/dist/photon/choices.js.map +1 -1
- package/dist/photon/environments.d.ts +2 -1
- package/dist/photon/environments.d.ts.map +1 -1
- package/dist/photon/environments.js +2 -1
- package/dist/photon/environments.js.map +1 -1
- package/dist/photon/index.d.ts +6 -3
- package/dist/photon/index.d.ts.map +1 -1
- package/dist/photon/index.js +2 -1
- package/dist/photon/index.js.map +1 -1
- package/dist/photon/machine.d.ts +28 -0
- package/dist/photon/machine.d.ts.map +1 -0
- package/dist/photon/machine.js +53 -0
- package/dist/photon/machine.js.map +1 -0
- package/dist/photon/map.d.ts +6 -2
- package/dist/photon/map.d.ts.map +1 -1
- package/dist/photon/map.js +133 -33
- package/dist/photon/map.js.map +1 -1
- package/dist/photon/order.d.ts +21 -1
- package/dist/photon/order.d.ts.map +1 -1
- package/dist/photon/order.js +79 -12
- package/dist/photon/order.js.map +1 -1
- package/dist/photon/orders.d.ts +5 -0
- package/dist/photon/orders.d.ts.map +1 -0
- package/dist/photon/orders.js +39 -0
- package/dist/photon/orders.js.map +1 -0
- package/dist/photon/patient.d.ts +8 -6
- package/dist/photon/patient.d.ts.map +1 -1
- package/dist/photon/patient.js +61 -30
- package/dist/photon/patient.js.map +1 -1
- package/dist/photon/photon.d.ts +39 -1
- package/dist/photon/photon.d.ts.map +1 -1
- package/dist/photon/photon.js +85 -5
- package/dist/photon/photon.js.map +1 -1
- package/dist/photon/prescription.d.ts +17 -4
- package/dist/photon/prescription.d.ts.map +1 -1
- package/dist/photon/prescription.js +48 -11
- package/dist/photon/prescription.js.map +1 -1
- package/dist/photon/session.d.ts +15 -10
- package/dist/photon/session.d.ts.map +1 -1
- package/dist/photon/session.js +5 -3
- package/dist/photon/session.js.map +1 -1
- package/dist/photon/types.d.ts +278 -46
- package/dist/photon/types.d.ts.map +1 -1
- package/dist/test-utils/msw.d.ts +2 -2
- package/dist/test-utils/msw.d.ts.map +1 -1
- package/dist/test-utils/msw.js +5 -5
- package/dist/test-utils/msw.js.map +1 -1
- package/dist/testing/{scriptedClient.d.ts → fakeNetworkApiClient.d.ts} +5 -4
- package/dist/testing/fakeNetworkApiClient.d.ts.map +1 -0
- package/dist/testing/{scriptedClient.js → fakeNetworkApiClient.js} +8 -4
- package/dist/testing/fakeNetworkApiClient.js.map +1 -0
- package/dist/testing/fixtures.d.ts +1047 -0
- package/dist/testing/fixtures.d.ts.map +1 -1
- package/dist/testing/fixtures.js +47 -13
- package/dist/testing/fixtures.js.map +1 -1
- package/dist/testing.d.ts +4 -4
- package/dist/testing.d.ts.map +1 -1
- package/dist/testing.js +4 -4
- package/dist/testing.js.map +1 -1
- package/package.json +2 -2
- package/src/analytics/lifecycleEvents.test.ts +417 -0
- package/src/analytics/lifecycleEvents.ts +155 -0
- package/src/api/client.ts +71 -46
- package/src/api/index.ts +2 -0
- package/src/api/me.ts +7 -0
- package/src/api/orders.ts +8 -0
- package/src/api/patient.ts +11 -2
- package/src/api/prescription.ts +18 -0
- package/src/gql/gql.ts +21 -9
- package/src/gql/graphql.ts +4280 -597
- package/src/index.ts +1 -1
- package/src/meta/version.test.ts +10 -0
- package/src/meta/version.ts +1 -0
- package/src/operations/fragments.graphql +166 -20
- package/src/operations/me.graphql +38 -0
- package/src/operations/orders.graphql +35 -0
- package/src/operations/patient.graphql +29 -3
- package/src/operations/prescription.graphql +20 -0
- package/src/photon/analytics.ts +129 -0
- package/src/photon/auth.ts +9 -10
- package/src/photon/choices.ts +2 -2
- package/src/photon/environments.ts +3 -1
- package/src/photon/index.ts +16 -2
- package/src/photon/machine.ts +90 -0
- package/src/photon/map.ts +151 -35
- package/src/photon/order.test.ts +142 -0
- package/src/photon/order.ts +92 -12
- package/src/photon/orders.ts +42 -0
- package/src/photon/patient.ts +73 -33
- package/src/photon/photon.ts +139 -6
- package/src/photon/prescription.ts +71 -12
- package/src/photon/session.ts +18 -9
- package/src/photon/types.ts +280 -26
- package/src/test-utils/msw.ts +16 -5
- package/src/testing/{scriptedClient.ts → fakeNetworkApiClient.ts} +8 -4
- package/src/testing/fixtures.ts +55 -13
- package/src/testing.ts +6 -3
- package/dist/testing/scriptedClient.d.ts.map +0 -1
- package/dist/testing/scriptedClient.js.map +0 -1
package/dist/gql/graphql.js
CHANGED
|
@@ -11,32 +11,125 @@ export class TypedDocumentString extends String {
|
|
|
11
11
|
return this.value;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
+
export const PatientDemographicFieldsFragmentDoc = new TypedDocumentString(`
|
|
15
|
+
fragment PatientDemographicFields on PatientDemographic {
|
|
16
|
+
name {
|
|
17
|
+
first
|
|
18
|
+
middle
|
|
19
|
+
last
|
|
20
|
+
}
|
|
21
|
+
dateOfBirth
|
|
22
|
+
sex
|
|
23
|
+
gender
|
|
24
|
+
}
|
|
25
|
+
`, { "fragmentName": "PatientDemographicFields" });
|
|
26
|
+
export const PatientContactFieldsFragmentDoc = new TypedDocumentString(`
|
|
27
|
+
fragment PatientContactFields on PatientContact {
|
|
28
|
+
email
|
|
29
|
+
phone
|
|
30
|
+
address {
|
|
31
|
+
street1
|
|
32
|
+
street2
|
|
33
|
+
city
|
|
34
|
+
state
|
|
35
|
+
postalCode
|
|
36
|
+
country
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
`, { "fragmentName": "PatientContactFields" });
|
|
40
|
+
export const PharmacyEventFieldsFragmentDoc = new TypedDocumentString(`
|
|
41
|
+
fragment PharmacyEventFields on PharmacyEvent {
|
|
42
|
+
__typename
|
|
43
|
+
... on PharmacyOpenEvent {
|
|
44
|
+
type
|
|
45
|
+
datetime
|
|
46
|
+
}
|
|
47
|
+
... on PharmacyCloseEvent {
|
|
48
|
+
type
|
|
49
|
+
datetime
|
|
50
|
+
}
|
|
51
|
+
... on PharmacyOpen24HrEvent {
|
|
52
|
+
type
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
`, { "fragmentName": "PharmacyEventFields" });
|
|
56
|
+
export const RedemptionMethodFieldsFragmentDoc = new TypedDocumentString(`
|
|
57
|
+
fragment RedemptionMethodFields on RedemptionMethod {
|
|
58
|
+
__typename
|
|
59
|
+
... on PharmacyDiscountCard {
|
|
60
|
+
id
|
|
61
|
+
prescriptionId
|
|
62
|
+
bin
|
|
63
|
+
pcn
|
|
64
|
+
group
|
|
65
|
+
memberId
|
|
66
|
+
externalUrl
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
`, { "fragmentName": "RedemptionMethodFields" });
|
|
14
70
|
export const PharmacyOfferFieldsFragmentDoc = new TypedDocumentString(`
|
|
15
71
|
fragment PharmacyOfferFields on PharmacyOffer {
|
|
16
72
|
source
|
|
73
|
+
prescriptionId
|
|
74
|
+
priceType
|
|
17
75
|
isPromoted
|
|
18
76
|
attributeTags {
|
|
19
77
|
kind
|
|
20
78
|
label
|
|
21
79
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
80
|
+
price {
|
|
81
|
+
amount
|
|
82
|
+
retailAmount
|
|
83
|
+
promotions {
|
|
84
|
+
type
|
|
85
|
+
baseAmount
|
|
86
|
+
amountSaved
|
|
87
|
+
}
|
|
27
88
|
}
|
|
28
|
-
|
|
29
|
-
prescriptionId
|
|
89
|
+
deliveryEstimate {
|
|
30
90
|
deliveryPromise
|
|
31
91
|
deliveryPromiseRangeStart
|
|
32
92
|
deliveryPromiseRangeEnd
|
|
33
93
|
}
|
|
94
|
+
redemptionState
|
|
95
|
+
redemptionMethods {
|
|
96
|
+
...RedemptionMethodFields
|
|
97
|
+
}
|
|
34
98
|
}
|
|
35
|
-
|
|
99
|
+
fragment RedemptionMethodFields on RedemptionMethod {
|
|
100
|
+
__typename
|
|
101
|
+
... on PharmacyDiscountCard {
|
|
102
|
+
id
|
|
103
|
+
prescriptionId
|
|
104
|
+
bin
|
|
105
|
+
pcn
|
|
106
|
+
group
|
|
107
|
+
memberId
|
|
108
|
+
externalUrl
|
|
109
|
+
}
|
|
110
|
+
}`, { "fragmentName": "PharmacyOfferFields" });
|
|
36
111
|
export const PharmacyFieldsFragmentDoc = new TypedDocumentString(`
|
|
37
112
|
fragment PharmacyFields on Pharmacy {
|
|
38
113
|
id
|
|
39
114
|
name
|
|
115
|
+
logo
|
|
116
|
+
phone
|
|
117
|
+
hours {
|
|
118
|
+
openFrom
|
|
119
|
+
openUntil
|
|
120
|
+
dayOfWeek
|
|
121
|
+
is24Hr
|
|
122
|
+
timezone
|
|
123
|
+
}
|
|
124
|
+
isOpen
|
|
125
|
+
nextEvents {
|
|
126
|
+
open {
|
|
127
|
+
...PharmacyEventFields
|
|
128
|
+
}
|
|
129
|
+
close {
|
|
130
|
+
...PharmacyEventFields
|
|
131
|
+
}
|
|
132
|
+
}
|
|
40
133
|
address {
|
|
41
134
|
street1
|
|
42
135
|
street2
|
|
@@ -53,43 +146,66 @@ export const PharmacyFieldsFragmentDoc = new TypedDocumentString(`
|
|
|
53
146
|
}
|
|
54
147
|
fragment PharmacyOfferFields on PharmacyOffer {
|
|
55
148
|
source
|
|
149
|
+
prescriptionId
|
|
150
|
+
priceType
|
|
56
151
|
isPromoted
|
|
57
152
|
attributeTags {
|
|
58
153
|
kind
|
|
59
154
|
label
|
|
60
155
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
156
|
+
price {
|
|
157
|
+
amount
|
|
158
|
+
retailAmount
|
|
159
|
+
promotions {
|
|
160
|
+
type
|
|
161
|
+
baseAmount
|
|
162
|
+
amountSaved
|
|
163
|
+
}
|
|
66
164
|
}
|
|
67
|
-
|
|
68
|
-
prescriptionId
|
|
165
|
+
deliveryEstimate {
|
|
69
166
|
deliveryPromise
|
|
70
167
|
deliveryPromiseRangeStart
|
|
71
168
|
deliveryPromiseRangeEnd
|
|
72
169
|
}
|
|
170
|
+
redemptionState
|
|
171
|
+
redemptionMethods {
|
|
172
|
+
...RedemptionMethodFields
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
fragment RedemptionMethodFields on RedemptionMethod {
|
|
176
|
+
__typename
|
|
177
|
+
... on PharmacyDiscountCard {
|
|
178
|
+
id
|
|
179
|
+
prescriptionId
|
|
180
|
+
bin
|
|
181
|
+
pcn
|
|
182
|
+
group
|
|
183
|
+
memberId
|
|
184
|
+
externalUrl
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
fragment PharmacyEventFields on PharmacyEvent {
|
|
188
|
+
__typename
|
|
189
|
+
... on PharmacyOpenEvent {
|
|
190
|
+
type
|
|
191
|
+
datetime
|
|
192
|
+
}
|
|
193
|
+
... on PharmacyCloseEvent {
|
|
194
|
+
type
|
|
195
|
+
datetime
|
|
196
|
+
}
|
|
197
|
+
... on PharmacyOpen24HrEvent {
|
|
198
|
+
type
|
|
199
|
+
}
|
|
73
200
|
}`, { "fragmentName": "PharmacyFields" });
|
|
74
|
-
export const
|
|
75
|
-
fragment
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
last
|
|
201
|
+
export const PatientFieldsFragmentDoc = new TypedDocumentString(`
|
|
202
|
+
fragment PatientFields on Patient {
|
|
203
|
+
id
|
|
204
|
+
demographic {
|
|
205
|
+
...PatientDemographicFields
|
|
80
206
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
gender
|
|
84
|
-
email
|
|
85
|
-
phone
|
|
86
|
-
address {
|
|
87
|
-
street1
|
|
88
|
-
street2
|
|
89
|
-
city
|
|
90
|
-
state
|
|
91
|
-
postalCode
|
|
92
|
-
country
|
|
207
|
+
contact {
|
|
208
|
+
...PatientContactFields
|
|
93
209
|
}
|
|
94
210
|
benefits {
|
|
95
211
|
status
|
|
@@ -104,50 +220,6 @@ export const PatientDemographicFieldsFragmentDoc = new TypedDocumentString(`
|
|
|
104
220
|
preferredPharmacy {
|
|
105
221
|
...PharmacyFields
|
|
106
222
|
}
|
|
107
|
-
}
|
|
108
|
-
fragment PharmacyOfferFields on PharmacyOffer {
|
|
109
|
-
source
|
|
110
|
-
isPromoted
|
|
111
|
-
attributeTags {
|
|
112
|
-
kind
|
|
113
|
-
label
|
|
114
|
-
}
|
|
115
|
-
priceSummary {
|
|
116
|
-
priceType
|
|
117
|
-
totalAmount
|
|
118
|
-
totalRetailAmount
|
|
119
|
-
totalSavings
|
|
120
|
-
}
|
|
121
|
-
prescriptionDeliveryEstimates {
|
|
122
|
-
prescriptionId
|
|
123
|
-
deliveryPromise
|
|
124
|
-
deliveryPromiseRangeStart
|
|
125
|
-
deliveryPromiseRangeEnd
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
fragment PharmacyFields on Pharmacy {
|
|
129
|
-
id
|
|
130
|
-
name
|
|
131
|
-
address {
|
|
132
|
-
street1
|
|
133
|
-
street2
|
|
134
|
-
city
|
|
135
|
-
state
|
|
136
|
-
postalCode
|
|
137
|
-
}
|
|
138
|
-
latitude
|
|
139
|
-
longitude
|
|
140
|
-
fulfillmentType
|
|
141
|
-
offers {
|
|
142
|
-
...PharmacyOfferFields
|
|
143
|
-
}
|
|
144
|
-
}`, { "fragmentName": "PatientDemographicFields" });
|
|
145
|
-
export const PatientFieldsFragmentDoc = new TypedDocumentString(`
|
|
146
|
-
fragment PatientFields on Patient {
|
|
147
|
-
id
|
|
148
|
-
demographic {
|
|
149
|
-
...PatientDemographicFields
|
|
150
|
-
}
|
|
151
223
|
clinical {
|
|
152
224
|
allergies {
|
|
153
225
|
status
|
|
@@ -179,27 +251,65 @@ export const PatientFieldsFragmentDoc = new TypedDocumentString(`
|
|
|
179
251
|
}
|
|
180
252
|
fragment PharmacyOfferFields on PharmacyOffer {
|
|
181
253
|
source
|
|
254
|
+
prescriptionId
|
|
255
|
+
priceType
|
|
182
256
|
isPromoted
|
|
183
257
|
attributeTags {
|
|
184
258
|
kind
|
|
185
259
|
label
|
|
186
260
|
}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
261
|
+
price {
|
|
262
|
+
amount
|
|
263
|
+
retailAmount
|
|
264
|
+
promotions {
|
|
265
|
+
type
|
|
266
|
+
baseAmount
|
|
267
|
+
amountSaved
|
|
268
|
+
}
|
|
192
269
|
}
|
|
193
|
-
|
|
194
|
-
prescriptionId
|
|
270
|
+
deliveryEstimate {
|
|
195
271
|
deliveryPromise
|
|
196
272
|
deliveryPromiseRangeStart
|
|
197
273
|
deliveryPromiseRangeEnd
|
|
198
274
|
}
|
|
275
|
+
redemptionState
|
|
276
|
+
redemptionMethods {
|
|
277
|
+
...RedemptionMethodFields
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
fragment RedemptionMethodFields on RedemptionMethod {
|
|
281
|
+
__typename
|
|
282
|
+
... on PharmacyDiscountCard {
|
|
283
|
+
id
|
|
284
|
+
prescriptionId
|
|
285
|
+
bin
|
|
286
|
+
pcn
|
|
287
|
+
group
|
|
288
|
+
memberId
|
|
289
|
+
externalUrl
|
|
290
|
+
}
|
|
199
291
|
}
|
|
200
292
|
fragment PharmacyFields on Pharmacy {
|
|
201
293
|
id
|
|
202
294
|
name
|
|
295
|
+
logo
|
|
296
|
+
phone
|
|
297
|
+
hours {
|
|
298
|
+
openFrom
|
|
299
|
+
openUntil
|
|
300
|
+
dayOfWeek
|
|
301
|
+
is24Hr
|
|
302
|
+
timezone
|
|
303
|
+
}
|
|
304
|
+
isOpen
|
|
305
|
+
nextEvents {
|
|
306
|
+
open {
|
|
307
|
+
...PharmacyEventFields
|
|
308
|
+
}
|
|
309
|
+
close {
|
|
310
|
+
...PharmacyEventFields
|
|
311
|
+
}
|
|
312
|
+
}
|
|
203
313
|
address {
|
|
204
314
|
street1
|
|
205
315
|
street2
|
|
@@ -214,6 +324,20 @@ fragment PharmacyFields on Pharmacy {
|
|
|
214
324
|
...PharmacyOfferFields
|
|
215
325
|
}
|
|
216
326
|
}
|
|
327
|
+
fragment PharmacyEventFields on PharmacyEvent {
|
|
328
|
+
__typename
|
|
329
|
+
... on PharmacyOpenEvent {
|
|
330
|
+
type
|
|
331
|
+
datetime
|
|
332
|
+
}
|
|
333
|
+
... on PharmacyCloseEvent {
|
|
334
|
+
type
|
|
335
|
+
datetime
|
|
336
|
+
}
|
|
337
|
+
... on PharmacyOpen24HrEvent {
|
|
338
|
+
type
|
|
339
|
+
}
|
|
340
|
+
}
|
|
217
341
|
fragment PatientDemographicFields on PatientDemographic {
|
|
218
342
|
name {
|
|
219
343
|
first
|
|
@@ -223,6 +347,8 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
223
347
|
dateOfBirth
|
|
224
348
|
sex
|
|
225
349
|
gender
|
|
350
|
+
}
|
|
351
|
+
fragment PatientContactFields on PatientContact {
|
|
226
352
|
email
|
|
227
353
|
phone
|
|
228
354
|
address {
|
|
@@ -233,19 +359,6 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
233
359
|
postalCode
|
|
234
360
|
country
|
|
235
361
|
}
|
|
236
|
-
benefits {
|
|
237
|
-
status
|
|
238
|
-
entries {
|
|
239
|
-
id
|
|
240
|
-
bin
|
|
241
|
-
pcn
|
|
242
|
-
groupId
|
|
243
|
-
memberId
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
preferredPharmacy {
|
|
247
|
-
...PharmacyFields
|
|
248
|
-
}
|
|
249
362
|
}`, { "fragmentName": "PatientFields" });
|
|
250
363
|
export const OperationErrorFieldsFragmentDoc = new TypedDocumentString(`
|
|
251
364
|
fragment OperationErrorFields on OperationError {
|
|
@@ -270,23 +383,43 @@ export const PatientRecordFieldsFragmentDoc = new TypedDocumentString(`
|
|
|
270
383
|
}
|
|
271
384
|
fragment PharmacyOfferFields on PharmacyOffer {
|
|
272
385
|
source
|
|
386
|
+
prescriptionId
|
|
387
|
+
priceType
|
|
273
388
|
isPromoted
|
|
274
389
|
attributeTags {
|
|
275
390
|
kind
|
|
276
391
|
label
|
|
277
392
|
}
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
393
|
+
price {
|
|
394
|
+
amount
|
|
395
|
+
retailAmount
|
|
396
|
+
promotions {
|
|
397
|
+
type
|
|
398
|
+
baseAmount
|
|
399
|
+
amountSaved
|
|
400
|
+
}
|
|
283
401
|
}
|
|
284
|
-
|
|
285
|
-
prescriptionId
|
|
402
|
+
deliveryEstimate {
|
|
286
403
|
deliveryPromise
|
|
287
404
|
deliveryPromiseRangeStart
|
|
288
405
|
deliveryPromiseRangeEnd
|
|
289
406
|
}
|
|
407
|
+
redemptionState
|
|
408
|
+
redemptionMethods {
|
|
409
|
+
...RedemptionMethodFields
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
fragment RedemptionMethodFields on RedemptionMethod {
|
|
413
|
+
__typename
|
|
414
|
+
... on PharmacyDiscountCard {
|
|
415
|
+
id
|
|
416
|
+
prescriptionId
|
|
417
|
+
bin
|
|
418
|
+
pcn
|
|
419
|
+
group
|
|
420
|
+
memberId
|
|
421
|
+
externalUrl
|
|
422
|
+
}
|
|
290
423
|
}
|
|
291
424
|
fragment OperationErrorFields on OperationError {
|
|
292
425
|
__typename
|
|
@@ -300,6 +433,24 @@ fragment OperationErrorFields on OperationError {
|
|
|
300
433
|
fragment PharmacyFields on Pharmacy {
|
|
301
434
|
id
|
|
302
435
|
name
|
|
436
|
+
logo
|
|
437
|
+
phone
|
|
438
|
+
hours {
|
|
439
|
+
openFrom
|
|
440
|
+
openUntil
|
|
441
|
+
dayOfWeek
|
|
442
|
+
is24Hr
|
|
443
|
+
timezone
|
|
444
|
+
}
|
|
445
|
+
isOpen
|
|
446
|
+
nextEvents {
|
|
447
|
+
open {
|
|
448
|
+
...PharmacyEventFields
|
|
449
|
+
}
|
|
450
|
+
close {
|
|
451
|
+
...PharmacyEventFields
|
|
452
|
+
}
|
|
453
|
+
}
|
|
303
454
|
address {
|
|
304
455
|
street1
|
|
305
456
|
street2
|
|
@@ -314,6 +465,20 @@ fragment PharmacyFields on Pharmacy {
|
|
|
314
465
|
...PharmacyOfferFields
|
|
315
466
|
}
|
|
316
467
|
}
|
|
468
|
+
fragment PharmacyEventFields on PharmacyEvent {
|
|
469
|
+
__typename
|
|
470
|
+
... on PharmacyOpenEvent {
|
|
471
|
+
type
|
|
472
|
+
datetime
|
|
473
|
+
}
|
|
474
|
+
... on PharmacyCloseEvent {
|
|
475
|
+
type
|
|
476
|
+
datetime
|
|
477
|
+
}
|
|
478
|
+
... on PharmacyOpen24HrEvent {
|
|
479
|
+
type
|
|
480
|
+
}
|
|
481
|
+
}
|
|
317
482
|
fragment PatientDemographicFields on PatientDemographic {
|
|
318
483
|
name {
|
|
319
484
|
first
|
|
@@ -323,6 +488,8 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
323
488
|
dateOfBirth
|
|
324
489
|
sex
|
|
325
490
|
gender
|
|
491
|
+
}
|
|
492
|
+
fragment PatientContactFields on PatientContact {
|
|
326
493
|
email
|
|
327
494
|
phone
|
|
328
495
|
address {
|
|
@@ -333,6 +500,15 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
333
500
|
postalCode
|
|
334
501
|
country
|
|
335
502
|
}
|
|
503
|
+
}
|
|
504
|
+
fragment PatientFields on Patient {
|
|
505
|
+
id
|
|
506
|
+
demographic {
|
|
507
|
+
...PatientDemographicFields
|
|
508
|
+
}
|
|
509
|
+
contact {
|
|
510
|
+
...PatientContactFields
|
|
511
|
+
}
|
|
336
512
|
benefits {
|
|
337
513
|
status
|
|
338
514
|
entries {
|
|
@@ -346,12 +522,6 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
346
522
|
preferredPharmacy {
|
|
347
523
|
...PharmacyFields
|
|
348
524
|
}
|
|
349
|
-
}
|
|
350
|
-
fragment PatientFields on Patient {
|
|
351
|
-
id
|
|
352
|
-
demographic {
|
|
353
|
-
...PatientDemographicFields
|
|
354
|
-
}
|
|
355
525
|
clinical {
|
|
356
526
|
allergies {
|
|
357
527
|
status
|
|
@@ -397,9 +567,23 @@ export const TreatmentFieldsFragmentDoc = new TypedDocumentString(`
|
|
|
397
567
|
strength
|
|
398
568
|
medicationType
|
|
399
569
|
schedule
|
|
400
|
-
recommendedDispenseUnits
|
|
401
570
|
}
|
|
402
571
|
`, { "fragmentName": "TreatmentFields" });
|
|
572
|
+
export const PrescriptionTemplateFieldsFragmentDoc = new TypedDocumentString(`
|
|
573
|
+
fragment PrescriptionTemplateFields on PrescriptionTemplate {
|
|
574
|
+
id
|
|
575
|
+
source
|
|
576
|
+
name
|
|
577
|
+
instructions
|
|
578
|
+
dispense {
|
|
579
|
+
quantity
|
|
580
|
+
unit
|
|
581
|
+
daysSupply
|
|
582
|
+
refillsAllowed
|
|
583
|
+
dispenseAsWritten
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
`, { "fragmentName": "PrescriptionTemplateFields" });
|
|
403
587
|
export const ChoiceFieldsFragmentDoc = new TypedDocumentString(`
|
|
404
588
|
fragment ChoiceFields on Choice {
|
|
405
589
|
__typename
|
|
@@ -412,11 +596,19 @@ export const ChoiceFieldsFragmentDoc = new TypedDocumentString(`
|
|
|
412
596
|
type
|
|
413
597
|
label
|
|
414
598
|
confidence
|
|
599
|
+
value {
|
|
600
|
+
displayValue
|
|
601
|
+
value
|
|
602
|
+
unit
|
|
603
|
+
}
|
|
415
604
|
}
|
|
416
605
|
entity {
|
|
417
606
|
__typename
|
|
418
607
|
... on Treatment {
|
|
419
608
|
...TreatmentFields
|
|
609
|
+
templates {
|
|
610
|
+
...PrescriptionTemplateFields
|
|
611
|
+
}
|
|
420
612
|
}
|
|
421
613
|
... on Pharmacy {
|
|
422
614
|
...PharmacyFields
|
|
@@ -438,31 +630,68 @@ export const ChoiceFieldsFragmentDoc = new TypedDocumentString(`
|
|
|
438
630
|
strength
|
|
439
631
|
medicationType
|
|
440
632
|
schedule
|
|
441
|
-
recommendedDispenseUnits
|
|
442
633
|
}
|
|
443
634
|
fragment PharmacyOfferFields on PharmacyOffer {
|
|
444
635
|
source
|
|
636
|
+
prescriptionId
|
|
637
|
+
priceType
|
|
445
638
|
isPromoted
|
|
446
639
|
attributeTags {
|
|
447
640
|
kind
|
|
448
641
|
label
|
|
449
642
|
}
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
643
|
+
price {
|
|
644
|
+
amount
|
|
645
|
+
retailAmount
|
|
646
|
+
promotions {
|
|
647
|
+
type
|
|
648
|
+
baseAmount
|
|
649
|
+
amountSaved
|
|
650
|
+
}
|
|
455
651
|
}
|
|
456
|
-
|
|
457
|
-
prescriptionId
|
|
652
|
+
deliveryEstimate {
|
|
458
653
|
deliveryPromise
|
|
459
654
|
deliveryPromiseRangeStart
|
|
460
655
|
deliveryPromiseRangeEnd
|
|
461
656
|
}
|
|
657
|
+
redemptionState
|
|
658
|
+
redemptionMethods {
|
|
659
|
+
...RedemptionMethodFields
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
fragment RedemptionMethodFields on RedemptionMethod {
|
|
663
|
+
__typename
|
|
664
|
+
... on PharmacyDiscountCard {
|
|
665
|
+
id
|
|
666
|
+
prescriptionId
|
|
667
|
+
bin
|
|
668
|
+
pcn
|
|
669
|
+
group
|
|
670
|
+
memberId
|
|
671
|
+
externalUrl
|
|
672
|
+
}
|
|
462
673
|
}
|
|
463
674
|
fragment PharmacyFields on Pharmacy {
|
|
464
675
|
id
|
|
465
676
|
name
|
|
677
|
+
logo
|
|
678
|
+
phone
|
|
679
|
+
hours {
|
|
680
|
+
openFrom
|
|
681
|
+
openUntil
|
|
682
|
+
dayOfWeek
|
|
683
|
+
is24Hr
|
|
684
|
+
timezone
|
|
685
|
+
}
|
|
686
|
+
isOpen
|
|
687
|
+
nextEvents {
|
|
688
|
+
open {
|
|
689
|
+
...PharmacyEventFields
|
|
690
|
+
}
|
|
691
|
+
close {
|
|
692
|
+
...PharmacyEventFields
|
|
693
|
+
}
|
|
694
|
+
}
|
|
466
695
|
address {
|
|
467
696
|
street1
|
|
468
697
|
street2
|
|
@@ -476,6 +705,33 @@ fragment PharmacyFields on Pharmacy {
|
|
|
476
705
|
offers {
|
|
477
706
|
...PharmacyOfferFields
|
|
478
707
|
}
|
|
708
|
+
}
|
|
709
|
+
fragment PharmacyEventFields on PharmacyEvent {
|
|
710
|
+
__typename
|
|
711
|
+
... on PharmacyOpenEvent {
|
|
712
|
+
type
|
|
713
|
+
datetime
|
|
714
|
+
}
|
|
715
|
+
... on PharmacyCloseEvent {
|
|
716
|
+
type
|
|
717
|
+
datetime
|
|
718
|
+
}
|
|
719
|
+
... on PharmacyOpen24HrEvent {
|
|
720
|
+
type
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
fragment PrescriptionTemplateFields on PrescriptionTemplate {
|
|
724
|
+
id
|
|
725
|
+
source
|
|
726
|
+
name
|
|
727
|
+
instructions
|
|
728
|
+
dispense {
|
|
729
|
+
quantity
|
|
730
|
+
unit
|
|
731
|
+
daysSupply
|
|
732
|
+
refillsAllowed
|
|
733
|
+
dispenseAsWritten
|
|
734
|
+
}
|
|
479
735
|
}`, { "fragmentName": "ChoiceFields" });
|
|
480
736
|
export const ChangeFieldsFragmentDoc = new TypedDocumentString(`
|
|
481
737
|
fragment ChangeFields on Change {
|
|
@@ -511,7 +767,6 @@ export const ChangeFieldsFragmentDoc = new TypedDocumentString(`
|
|
|
511
767
|
strength
|
|
512
768
|
medicationType
|
|
513
769
|
schedule
|
|
514
|
-
recommendedDispenseUnits
|
|
515
770
|
}
|
|
516
771
|
fragment ChoiceFields on Choice {
|
|
517
772
|
__typename
|
|
@@ -524,11 +779,19 @@ fragment ChoiceFields on Choice {
|
|
|
524
779
|
type
|
|
525
780
|
label
|
|
526
781
|
confidence
|
|
782
|
+
value {
|
|
783
|
+
displayValue
|
|
784
|
+
value
|
|
785
|
+
unit
|
|
786
|
+
}
|
|
527
787
|
}
|
|
528
788
|
entity {
|
|
529
789
|
__typename
|
|
530
790
|
... on Treatment {
|
|
531
791
|
...TreatmentFields
|
|
792
|
+
templates {
|
|
793
|
+
...PrescriptionTemplateFields
|
|
794
|
+
}
|
|
532
795
|
}
|
|
533
796
|
... on Pharmacy {
|
|
534
797
|
...PharmacyFields
|
|
@@ -537,27 +800,65 @@ fragment ChoiceFields on Choice {
|
|
|
537
800
|
}
|
|
538
801
|
fragment PharmacyOfferFields on PharmacyOffer {
|
|
539
802
|
source
|
|
803
|
+
prescriptionId
|
|
804
|
+
priceType
|
|
540
805
|
isPromoted
|
|
541
806
|
attributeTags {
|
|
542
807
|
kind
|
|
543
808
|
label
|
|
544
809
|
}
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
810
|
+
price {
|
|
811
|
+
amount
|
|
812
|
+
retailAmount
|
|
813
|
+
promotions {
|
|
814
|
+
type
|
|
815
|
+
baseAmount
|
|
816
|
+
amountSaved
|
|
817
|
+
}
|
|
550
818
|
}
|
|
551
|
-
|
|
552
|
-
prescriptionId
|
|
819
|
+
deliveryEstimate {
|
|
553
820
|
deliveryPromise
|
|
554
821
|
deliveryPromiseRangeStart
|
|
555
822
|
deliveryPromiseRangeEnd
|
|
556
823
|
}
|
|
824
|
+
redemptionState
|
|
825
|
+
redemptionMethods {
|
|
826
|
+
...RedemptionMethodFields
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
fragment RedemptionMethodFields on RedemptionMethod {
|
|
830
|
+
__typename
|
|
831
|
+
... on PharmacyDiscountCard {
|
|
832
|
+
id
|
|
833
|
+
prescriptionId
|
|
834
|
+
bin
|
|
835
|
+
pcn
|
|
836
|
+
group
|
|
837
|
+
memberId
|
|
838
|
+
externalUrl
|
|
839
|
+
}
|
|
557
840
|
}
|
|
558
841
|
fragment PharmacyFields on Pharmacy {
|
|
559
842
|
id
|
|
560
843
|
name
|
|
844
|
+
logo
|
|
845
|
+
phone
|
|
846
|
+
hours {
|
|
847
|
+
openFrom
|
|
848
|
+
openUntil
|
|
849
|
+
dayOfWeek
|
|
850
|
+
is24Hr
|
|
851
|
+
timezone
|
|
852
|
+
}
|
|
853
|
+
isOpen
|
|
854
|
+
nextEvents {
|
|
855
|
+
open {
|
|
856
|
+
...PharmacyEventFields
|
|
857
|
+
}
|
|
858
|
+
close {
|
|
859
|
+
...PharmacyEventFields
|
|
860
|
+
}
|
|
861
|
+
}
|
|
561
862
|
address {
|
|
562
863
|
street1
|
|
563
864
|
street2
|
|
@@ -571,12 +872,39 @@ fragment PharmacyFields on Pharmacy {
|
|
|
571
872
|
offers {
|
|
572
873
|
...PharmacyOfferFields
|
|
573
874
|
}
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
875
|
+
}
|
|
876
|
+
fragment PharmacyEventFields on PharmacyEvent {
|
|
877
|
+
__typename
|
|
878
|
+
... on PharmacyOpenEvent {
|
|
879
|
+
type
|
|
880
|
+
datetime
|
|
881
|
+
}
|
|
882
|
+
... on PharmacyCloseEvent {
|
|
883
|
+
type
|
|
884
|
+
datetime
|
|
885
|
+
}
|
|
886
|
+
... on PharmacyOpen24HrEvent {
|
|
887
|
+
type
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
fragment PrescriptionTemplateFields on PrescriptionTemplate {
|
|
891
|
+
id
|
|
892
|
+
source
|
|
893
|
+
name
|
|
894
|
+
instructions
|
|
895
|
+
dispense {
|
|
896
|
+
quantity
|
|
897
|
+
unit
|
|
898
|
+
daysSupply
|
|
899
|
+
refillsAllowed
|
|
900
|
+
dispenseAsWritten
|
|
901
|
+
}
|
|
902
|
+
}`, { "fragmentName": "ChangeFields" });
|
|
903
|
+
export const ChangeSetFieldsFragmentDoc = new TypedDocumentString(`
|
|
904
|
+
fragment ChangeSetFields on ChangeSet {
|
|
905
|
+
changes {
|
|
906
|
+
...ChangeFields
|
|
907
|
+
}
|
|
580
908
|
}
|
|
581
909
|
fragment TreatmentFields on Treatment {
|
|
582
910
|
id
|
|
@@ -593,7 +921,6 @@ export const ChangeSetFieldsFragmentDoc = new TypedDocumentString(`
|
|
|
593
921
|
strength
|
|
594
922
|
medicationType
|
|
595
923
|
schedule
|
|
596
|
-
recommendedDispenseUnits
|
|
597
924
|
}
|
|
598
925
|
fragment ChoiceFields on Choice {
|
|
599
926
|
__typename
|
|
@@ -606,11 +933,19 @@ fragment ChoiceFields on Choice {
|
|
|
606
933
|
type
|
|
607
934
|
label
|
|
608
935
|
confidence
|
|
936
|
+
value {
|
|
937
|
+
displayValue
|
|
938
|
+
value
|
|
939
|
+
unit
|
|
940
|
+
}
|
|
609
941
|
}
|
|
610
942
|
entity {
|
|
611
943
|
__typename
|
|
612
944
|
... on Treatment {
|
|
613
945
|
...TreatmentFields
|
|
946
|
+
templates {
|
|
947
|
+
...PrescriptionTemplateFields
|
|
948
|
+
}
|
|
614
949
|
}
|
|
615
950
|
... on Pharmacy {
|
|
616
951
|
...PharmacyFields
|
|
@@ -619,23 +954,43 @@ fragment ChoiceFields on Choice {
|
|
|
619
954
|
}
|
|
620
955
|
fragment PharmacyOfferFields on PharmacyOffer {
|
|
621
956
|
source
|
|
957
|
+
prescriptionId
|
|
958
|
+
priceType
|
|
622
959
|
isPromoted
|
|
623
960
|
attributeTags {
|
|
624
961
|
kind
|
|
625
962
|
label
|
|
626
963
|
}
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
964
|
+
price {
|
|
965
|
+
amount
|
|
966
|
+
retailAmount
|
|
967
|
+
promotions {
|
|
968
|
+
type
|
|
969
|
+
baseAmount
|
|
970
|
+
amountSaved
|
|
971
|
+
}
|
|
632
972
|
}
|
|
633
|
-
|
|
634
|
-
prescriptionId
|
|
973
|
+
deliveryEstimate {
|
|
635
974
|
deliveryPromise
|
|
636
975
|
deliveryPromiseRangeStart
|
|
637
976
|
deliveryPromiseRangeEnd
|
|
638
977
|
}
|
|
978
|
+
redemptionState
|
|
979
|
+
redemptionMethods {
|
|
980
|
+
...RedemptionMethodFields
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
fragment RedemptionMethodFields on RedemptionMethod {
|
|
984
|
+
__typename
|
|
985
|
+
... on PharmacyDiscountCard {
|
|
986
|
+
id
|
|
987
|
+
prescriptionId
|
|
988
|
+
bin
|
|
989
|
+
pcn
|
|
990
|
+
group
|
|
991
|
+
memberId
|
|
992
|
+
externalUrl
|
|
993
|
+
}
|
|
639
994
|
}
|
|
640
995
|
fragment ChangeFields on Change {
|
|
641
996
|
key
|
|
@@ -658,6 +1013,24 @@ fragment ChangeFields on Change {
|
|
|
658
1013
|
fragment PharmacyFields on Pharmacy {
|
|
659
1014
|
id
|
|
660
1015
|
name
|
|
1016
|
+
logo
|
|
1017
|
+
phone
|
|
1018
|
+
hours {
|
|
1019
|
+
openFrom
|
|
1020
|
+
openUntil
|
|
1021
|
+
dayOfWeek
|
|
1022
|
+
is24Hr
|
|
1023
|
+
timezone
|
|
1024
|
+
}
|
|
1025
|
+
isOpen
|
|
1026
|
+
nextEvents {
|
|
1027
|
+
open {
|
|
1028
|
+
...PharmacyEventFields
|
|
1029
|
+
}
|
|
1030
|
+
close {
|
|
1031
|
+
...PharmacyEventFields
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
661
1034
|
address {
|
|
662
1035
|
street1
|
|
663
1036
|
street2
|
|
@@ -671,6 +1044,33 @@ fragment PharmacyFields on Pharmacy {
|
|
|
671
1044
|
offers {
|
|
672
1045
|
...PharmacyOfferFields
|
|
673
1046
|
}
|
|
1047
|
+
}
|
|
1048
|
+
fragment PharmacyEventFields on PharmacyEvent {
|
|
1049
|
+
__typename
|
|
1050
|
+
... on PharmacyOpenEvent {
|
|
1051
|
+
type
|
|
1052
|
+
datetime
|
|
1053
|
+
}
|
|
1054
|
+
... on PharmacyCloseEvent {
|
|
1055
|
+
type
|
|
1056
|
+
datetime
|
|
1057
|
+
}
|
|
1058
|
+
... on PharmacyOpen24HrEvent {
|
|
1059
|
+
type
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
fragment PrescriptionTemplateFields on PrescriptionTemplate {
|
|
1063
|
+
id
|
|
1064
|
+
source
|
|
1065
|
+
name
|
|
1066
|
+
instructions
|
|
1067
|
+
dispense {
|
|
1068
|
+
quantity
|
|
1069
|
+
unit
|
|
1070
|
+
daysSupply
|
|
1071
|
+
refillsAllowed
|
|
1072
|
+
dispenseAsWritten
|
|
1073
|
+
}
|
|
674
1074
|
}`, { "fragmentName": "ChangeSetFields" });
|
|
675
1075
|
export const PatientResultFieldsFragmentDoc = new TypedDocumentString(`
|
|
676
1076
|
fragment PatientResultFields on PatientResult {
|
|
@@ -709,7 +1109,6 @@ export const PatientResultFieldsFragmentDoc = new TypedDocumentString(`
|
|
|
709
1109
|
strength
|
|
710
1110
|
medicationType
|
|
711
1111
|
schedule
|
|
712
|
-
recommendedDispenseUnits
|
|
713
1112
|
}
|
|
714
1113
|
fragment ChoiceFields on Choice {
|
|
715
1114
|
__typename
|
|
@@ -722,11 +1121,19 @@ fragment ChoiceFields on Choice {
|
|
|
722
1121
|
type
|
|
723
1122
|
label
|
|
724
1123
|
confidence
|
|
1124
|
+
value {
|
|
1125
|
+
displayValue
|
|
1126
|
+
value
|
|
1127
|
+
unit
|
|
1128
|
+
}
|
|
725
1129
|
}
|
|
726
1130
|
entity {
|
|
727
1131
|
__typename
|
|
728
1132
|
... on Treatment {
|
|
729
1133
|
...TreatmentFields
|
|
1134
|
+
templates {
|
|
1135
|
+
...PrescriptionTemplateFields
|
|
1136
|
+
}
|
|
730
1137
|
}
|
|
731
1138
|
... on Pharmacy {
|
|
732
1139
|
...PharmacyFields
|
|
@@ -735,23 +1142,43 @@ fragment ChoiceFields on Choice {
|
|
|
735
1142
|
}
|
|
736
1143
|
fragment PharmacyOfferFields on PharmacyOffer {
|
|
737
1144
|
source
|
|
1145
|
+
prescriptionId
|
|
1146
|
+
priceType
|
|
738
1147
|
isPromoted
|
|
739
1148
|
attributeTags {
|
|
740
1149
|
kind
|
|
741
1150
|
label
|
|
742
1151
|
}
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
1152
|
+
price {
|
|
1153
|
+
amount
|
|
1154
|
+
retailAmount
|
|
1155
|
+
promotions {
|
|
1156
|
+
type
|
|
1157
|
+
baseAmount
|
|
1158
|
+
amountSaved
|
|
1159
|
+
}
|
|
748
1160
|
}
|
|
749
|
-
|
|
750
|
-
prescriptionId
|
|
1161
|
+
deliveryEstimate {
|
|
751
1162
|
deliveryPromise
|
|
752
1163
|
deliveryPromiseRangeStart
|
|
753
1164
|
deliveryPromiseRangeEnd
|
|
754
1165
|
}
|
|
1166
|
+
redemptionState
|
|
1167
|
+
redemptionMethods {
|
|
1168
|
+
...RedemptionMethodFields
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
fragment RedemptionMethodFields on RedemptionMethod {
|
|
1172
|
+
__typename
|
|
1173
|
+
... on PharmacyDiscountCard {
|
|
1174
|
+
id
|
|
1175
|
+
prescriptionId
|
|
1176
|
+
bin
|
|
1177
|
+
pcn
|
|
1178
|
+
group
|
|
1179
|
+
memberId
|
|
1180
|
+
externalUrl
|
|
1181
|
+
}
|
|
755
1182
|
}
|
|
756
1183
|
fragment ChangeFields on Change {
|
|
757
1184
|
key
|
|
@@ -788,6 +1215,24 @@ fragment OperationErrorFields on OperationError {
|
|
|
788
1215
|
fragment PharmacyFields on Pharmacy {
|
|
789
1216
|
id
|
|
790
1217
|
name
|
|
1218
|
+
logo
|
|
1219
|
+
phone
|
|
1220
|
+
hours {
|
|
1221
|
+
openFrom
|
|
1222
|
+
openUntil
|
|
1223
|
+
dayOfWeek
|
|
1224
|
+
is24Hr
|
|
1225
|
+
timezone
|
|
1226
|
+
}
|
|
1227
|
+
isOpen
|
|
1228
|
+
nextEvents {
|
|
1229
|
+
open {
|
|
1230
|
+
...PharmacyEventFields
|
|
1231
|
+
}
|
|
1232
|
+
close {
|
|
1233
|
+
...PharmacyEventFields
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
791
1236
|
address {
|
|
792
1237
|
street1
|
|
793
1238
|
street2
|
|
@@ -802,6 +1247,20 @@ fragment PharmacyFields on Pharmacy {
|
|
|
802
1247
|
...PharmacyOfferFields
|
|
803
1248
|
}
|
|
804
1249
|
}
|
|
1250
|
+
fragment PharmacyEventFields on PharmacyEvent {
|
|
1251
|
+
__typename
|
|
1252
|
+
... on PharmacyOpenEvent {
|
|
1253
|
+
type
|
|
1254
|
+
datetime
|
|
1255
|
+
}
|
|
1256
|
+
... on PharmacyCloseEvent {
|
|
1257
|
+
type
|
|
1258
|
+
datetime
|
|
1259
|
+
}
|
|
1260
|
+
... on PharmacyOpen24HrEvent {
|
|
1261
|
+
type
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
805
1264
|
fragment PatientDemographicFields on PatientDemographic {
|
|
806
1265
|
name {
|
|
807
1266
|
first
|
|
@@ -811,6 +1270,8 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
811
1270
|
dateOfBirth
|
|
812
1271
|
sex
|
|
813
1272
|
gender
|
|
1273
|
+
}
|
|
1274
|
+
fragment PatientContactFields on PatientContact {
|
|
814
1275
|
email
|
|
815
1276
|
phone
|
|
816
1277
|
address {
|
|
@@ -821,6 +1282,15 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
821
1282
|
postalCode
|
|
822
1283
|
country
|
|
823
1284
|
}
|
|
1285
|
+
}
|
|
1286
|
+
fragment PatientFields on Patient {
|
|
1287
|
+
id
|
|
1288
|
+
demographic {
|
|
1289
|
+
...PatientDemographicFields
|
|
1290
|
+
}
|
|
1291
|
+
contact {
|
|
1292
|
+
...PatientContactFields
|
|
1293
|
+
}
|
|
824
1294
|
benefits {
|
|
825
1295
|
status
|
|
826
1296
|
entries {
|
|
@@ -834,12 +1304,6 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
834
1304
|
preferredPharmacy {
|
|
835
1305
|
...PharmacyFields
|
|
836
1306
|
}
|
|
837
|
-
}
|
|
838
|
-
fragment PatientFields on Patient {
|
|
839
|
-
id
|
|
840
|
-
demographic {
|
|
841
|
-
...PatientDemographicFields
|
|
842
|
-
}
|
|
843
1307
|
clinical {
|
|
844
1308
|
allergies {
|
|
845
1309
|
status
|
|
@@ -877,6 +1341,19 @@ fragment PatientRecordFields on PatientRecordResult {
|
|
|
877
1341
|
... on OperationError {
|
|
878
1342
|
...OperationErrorFields
|
|
879
1343
|
}
|
|
1344
|
+
}
|
|
1345
|
+
fragment PrescriptionTemplateFields on PrescriptionTemplate {
|
|
1346
|
+
id
|
|
1347
|
+
source
|
|
1348
|
+
name
|
|
1349
|
+
instructions
|
|
1350
|
+
dispense {
|
|
1351
|
+
quantity
|
|
1352
|
+
unit
|
|
1353
|
+
daysSupply
|
|
1354
|
+
refillsAllowed
|
|
1355
|
+
dispenseAsWritten
|
|
1356
|
+
}
|
|
880
1357
|
}`, { "fragmentName": "PatientResultFields" });
|
|
881
1358
|
export const ScreeningAlertFieldsFragmentDoc = new TypedDocumentString(`
|
|
882
1359
|
fragment ScreeningAlertFields on ScreeningAlert {
|
|
@@ -907,7 +1384,6 @@ export const ScreeningAlertFieldsFragmentDoc = new TypedDocumentString(`
|
|
|
907
1384
|
strength
|
|
908
1385
|
medicationType
|
|
909
1386
|
schedule
|
|
910
|
-
recommendedDispenseUnits
|
|
911
1387
|
}
|
|
912
1388
|
fragment ChoiceFields on Choice {
|
|
913
1389
|
__typename
|
|
@@ -920,11 +1396,19 @@ fragment ChoiceFields on Choice {
|
|
|
920
1396
|
type
|
|
921
1397
|
label
|
|
922
1398
|
confidence
|
|
1399
|
+
value {
|
|
1400
|
+
displayValue
|
|
1401
|
+
value
|
|
1402
|
+
unit
|
|
1403
|
+
}
|
|
923
1404
|
}
|
|
924
1405
|
entity {
|
|
925
1406
|
__typename
|
|
926
1407
|
... on Treatment {
|
|
927
1408
|
...TreatmentFields
|
|
1409
|
+
templates {
|
|
1410
|
+
...PrescriptionTemplateFields
|
|
1411
|
+
}
|
|
928
1412
|
}
|
|
929
1413
|
... on Pharmacy {
|
|
930
1414
|
...PharmacyFields
|
|
@@ -933,27 +1417,65 @@ fragment ChoiceFields on Choice {
|
|
|
933
1417
|
}
|
|
934
1418
|
fragment PharmacyOfferFields on PharmacyOffer {
|
|
935
1419
|
source
|
|
1420
|
+
prescriptionId
|
|
1421
|
+
priceType
|
|
936
1422
|
isPromoted
|
|
937
1423
|
attributeTags {
|
|
938
1424
|
kind
|
|
939
1425
|
label
|
|
940
1426
|
}
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
1427
|
+
price {
|
|
1428
|
+
amount
|
|
1429
|
+
retailAmount
|
|
1430
|
+
promotions {
|
|
1431
|
+
type
|
|
1432
|
+
baseAmount
|
|
1433
|
+
amountSaved
|
|
1434
|
+
}
|
|
946
1435
|
}
|
|
947
|
-
|
|
948
|
-
prescriptionId
|
|
1436
|
+
deliveryEstimate {
|
|
949
1437
|
deliveryPromise
|
|
950
1438
|
deliveryPromiseRangeStart
|
|
951
1439
|
deliveryPromiseRangeEnd
|
|
952
1440
|
}
|
|
1441
|
+
redemptionState
|
|
1442
|
+
redemptionMethods {
|
|
1443
|
+
...RedemptionMethodFields
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
fragment RedemptionMethodFields on RedemptionMethod {
|
|
1447
|
+
__typename
|
|
1448
|
+
... on PharmacyDiscountCard {
|
|
1449
|
+
id
|
|
1450
|
+
prescriptionId
|
|
1451
|
+
bin
|
|
1452
|
+
pcn
|
|
1453
|
+
group
|
|
1454
|
+
memberId
|
|
1455
|
+
externalUrl
|
|
1456
|
+
}
|
|
953
1457
|
}
|
|
954
1458
|
fragment PharmacyFields on Pharmacy {
|
|
955
1459
|
id
|
|
956
1460
|
name
|
|
1461
|
+
logo
|
|
1462
|
+
phone
|
|
1463
|
+
hours {
|
|
1464
|
+
openFrom
|
|
1465
|
+
openUntil
|
|
1466
|
+
dayOfWeek
|
|
1467
|
+
is24Hr
|
|
1468
|
+
timezone
|
|
1469
|
+
}
|
|
1470
|
+
isOpen
|
|
1471
|
+
nextEvents {
|
|
1472
|
+
open {
|
|
1473
|
+
...PharmacyEventFields
|
|
1474
|
+
}
|
|
1475
|
+
close {
|
|
1476
|
+
...PharmacyEventFields
|
|
1477
|
+
}
|
|
1478
|
+
}
|
|
957
1479
|
address {
|
|
958
1480
|
street1
|
|
959
1481
|
street2
|
|
@@ -967,10 +1489,55 @@ fragment PharmacyFields on Pharmacy {
|
|
|
967
1489
|
offers {
|
|
968
1490
|
...PharmacyOfferFields
|
|
969
1491
|
}
|
|
1492
|
+
}
|
|
1493
|
+
fragment PharmacyEventFields on PharmacyEvent {
|
|
1494
|
+
__typename
|
|
1495
|
+
... on PharmacyOpenEvent {
|
|
1496
|
+
type
|
|
1497
|
+
datetime
|
|
1498
|
+
}
|
|
1499
|
+
... on PharmacyCloseEvent {
|
|
1500
|
+
type
|
|
1501
|
+
datetime
|
|
1502
|
+
}
|
|
1503
|
+
... on PharmacyOpen24HrEvent {
|
|
1504
|
+
type
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
fragment PrescriptionTemplateFields on PrescriptionTemplate {
|
|
1508
|
+
id
|
|
1509
|
+
source
|
|
1510
|
+
name
|
|
1511
|
+
instructions
|
|
1512
|
+
dispense {
|
|
1513
|
+
quantity
|
|
1514
|
+
unit
|
|
1515
|
+
daysSupply
|
|
1516
|
+
refillsAllowed
|
|
1517
|
+
dispenseAsWritten
|
|
1518
|
+
}
|
|
970
1519
|
}`, { "fragmentName": "ScreeningAlertFields" });
|
|
971
1520
|
export const PrescriptionFieldsFragmentDoc = new TypedDocumentString(`
|
|
972
1521
|
fragment PrescriptionFields on Prescription {
|
|
973
1522
|
id
|
|
1523
|
+
prescriber {
|
|
1524
|
+
id
|
|
1525
|
+
name {
|
|
1526
|
+
first
|
|
1527
|
+
middle
|
|
1528
|
+
last
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1531
|
+
fulfillment {
|
|
1532
|
+
state
|
|
1533
|
+
pharmacyEstimatedReadyAt
|
|
1534
|
+
exceptions {
|
|
1535
|
+
id
|
|
1536
|
+
type
|
|
1537
|
+
message
|
|
1538
|
+
createdAt
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
974
1541
|
templateId
|
|
975
1542
|
patient {
|
|
976
1543
|
id
|
|
@@ -1019,7 +1586,6 @@ export const PrescriptionFieldsFragmentDoc = new TypedDocumentString(`
|
|
|
1019
1586
|
strength
|
|
1020
1587
|
medicationType
|
|
1021
1588
|
schedule
|
|
1022
|
-
recommendedDispenseUnits
|
|
1023
1589
|
}
|
|
1024
1590
|
fragment ChoiceFields on Choice {
|
|
1025
1591
|
__typename
|
|
@@ -1032,11 +1598,19 @@ fragment ChoiceFields on Choice {
|
|
|
1032
1598
|
type
|
|
1033
1599
|
label
|
|
1034
1600
|
confidence
|
|
1601
|
+
value {
|
|
1602
|
+
displayValue
|
|
1603
|
+
value
|
|
1604
|
+
unit
|
|
1605
|
+
}
|
|
1035
1606
|
}
|
|
1036
1607
|
entity {
|
|
1037
1608
|
__typename
|
|
1038
1609
|
... on Treatment {
|
|
1039
1610
|
...TreatmentFields
|
|
1611
|
+
templates {
|
|
1612
|
+
...PrescriptionTemplateFields
|
|
1613
|
+
}
|
|
1040
1614
|
}
|
|
1041
1615
|
... on Pharmacy {
|
|
1042
1616
|
...PharmacyFields
|
|
@@ -1045,27 +1619,65 @@ fragment ChoiceFields on Choice {
|
|
|
1045
1619
|
}
|
|
1046
1620
|
fragment PharmacyOfferFields on PharmacyOffer {
|
|
1047
1621
|
source
|
|
1622
|
+
prescriptionId
|
|
1623
|
+
priceType
|
|
1048
1624
|
isPromoted
|
|
1049
1625
|
attributeTags {
|
|
1050
1626
|
kind
|
|
1051
1627
|
label
|
|
1052
1628
|
}
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1629
|
+
price {
|
|
1630
|
+
amount
|
|
1631
|
+
retailAmount
|
|
1632
|
+
promotions {
|
|
1633
|
+
type
|
|
1634
|
+
baseAmount
|
|
1635
|
+
amountSaved
|
|
1636
|
+
}
|
|
1058
1637
|
}
|
|
1059
|
-
|
|
1060
|
-
prescriptionId
|
|
1638
|
+
deliveryEstimate {
|
|
1061
1639
|
deliveryPromise
|
|
1062
1640
|
deliveryPromiseRangeStart
|
|
1063
1641
|
deliveryPromiseRangeEnd
|
|
1064
1642
|
}
|
|
1643
|
+
redemptionState
|
|
1644
|
+
redemptionMethods {
|
|
1645
|
+
...RedemptionMethodFields
|
|
1646
|
+
}
|
|
1647
|
+
}
|
|
1648
|
+
fragment RedemptionMethodFields on RedemptionMethod {
|
|
1649
|
+
__typename
|
|
1650
|
+
... on PharmacyDiscountCard {
|
|
1651
|
+
id
|
|
1652
|
+
prescriptionId
|
|
1653
|
+
bin
|
|
1654
|
+
pcn
|
|
1655
|
+
group
|
|
1656
|
+
memberId
|
|
1657
|
+
externalUrl
|
|
1658
|
+
}
|
|
1065
1659
|
}
|
|
1066
1660
|
fragment PharmacyFields on Pharmacy {
|
|
1067
1661
|
id
|
|
1068
1662
|
name
|
|
1663
|
+
logo
|
|
1664
|
+
phone
|
|
1665
|
+
hours {
|
|
1666
|
+
openFrom
|
|
1667
|
+
openUntil
|
|
1668
|
+
dayOfWeek
|
|
1669
|
+
is24Hr
|
|
1670
|
+
timezone
|
|
1671
|
+
}
|
|
1672
|
+
isOpen
|
|
1673
|
+
nextEvents {
|
|
1674
|
+
open {
|
|
1675
|
+
...PharmacyEventFields
|
|
1676
|
+
}
|
|
1677
|
+
close {
|
|
1678
|
+
...PharmacyEventFields
|
|
1679
|
+
}
|
|
1680
|
+
}
|
|
1069
1681
|
address {
|
|
1070
1682
|
street1
|
|
1071
1683
|
street2
|
|
@@ -1080,6 +1692,20 @@ fragment PharmacyFields on Pharmacy {
|
|
|
1080
1692
|
...PharmacyOfferFields
|
|
1081
1693
|
}
|
|
1082
1694
|
}
|
|
1695
|
+
fragment PharmacyEventFields on PharmacyEvent {
|
|
1696
|
+
__typename
|
|
1697
|
+
... on PharmacyOpenEvent {
|
|
1698
|
+
type
|
|
1699
|
+
datetime
|
|
1700
|
+
}
|
|
1701
|
+
... on PharmacyCloseEvent {
|
|
1702
|
+
type
|
|
1703
|
+
datetime
|
|
1704
|
+
}
|
|
1705
|
+
... on PharmacyOpen24HrEvent {
|
|
1706
|
+
type
|
|
1707
|
+
}
|
|
1708
|
+
}
|
|
1083
1709
|
fragment ScreeningAlertFields on ScreeningAlert {
|
|
1084
1710
|
severity
|
|
1085
1711
|
type
|
|
@@ -1092,6 +1718,19 @@ fragment ScreeningAlertFields on ScreeningAlert {
|
|
|
1092
1718
|
options {
|
|
1093
1719
|
...ChoiceFields
|
|
1094
1720
|
}
|
|
1721
|
+
}
|
|
1722
|
+
fragment PrescriptionTemplateFields on PrescriptionTemplate {
|
|
1723
|
+
id
|
|
1724
|
+
source
|
|
1725
|
+
name
|
|
1726
|
+
instructions
|
|
1727
|
+
dispense {
|
|
1728
|
+
quantity
|
|
1729
|
+
unit
|
|
1730
|
+
daysSupply
|
|
1731
|
+
refillsAllowed
|
|
1732
|
+
dispenseAsWritten
|
|
1733
|
+
}
|
|
1095
1734
|
}`, { "fragmentName": "PrescriptionFields" });
|
|
1096
1735
|
export const PrescriptionResultFieldsFragmentDoc = new TypedDocumentString(`
|
|
1097
1736
|
fragment PrescriptionResultFields on PrescriptionResult {
|
|
@@ -1135,7 +1774,6 @@ export const PrescriptionResultFieldsFragmentDoc = new TypedDocumentString(`
|
|
|
1135
1774
|
strength
|
|
1136
1775
|
medicationType
|
|
1137
1776
|
schedule
|
|
1138
|
-
recommendedDispenseUnits
|
|
1139
1777
|
}
|
|
1140
1778
|
fragment ChoiceFields on Choice {
|
|
1141
1779
|
__typename
|
|
@@ -1148,11 +1786,19 @@ fragment ChoiceFields on Choice {
|
|
|
1148
1786
|
type
|
|
1149
1787
|
label
|
|
1150
1788
|
confidence
|
|
1789
|
+
value {
|
|
1790
|
+
displayValue
|
|
1791
|
+
value
|
|
1792
|
+
unit
|
|
1793
|
+
}
|
|
1151
1794
|
}
|
|
1152
1795
|
entity {
|
|
1153
1796
|
__typename
|
|
1154
1797
|
... on Treatment {
|
|
1155
1798
|
...TreatmentFields
|
|
1799
|
+
templates {
|
|
1800
|
+
...PrescriptionTemplateFields
|
|
1801
|
+
}
|
|
1156
1802
|
}
|
|
1157
1803
|
... on Pharmacy {
|
|
1158
1804
|
...PharmacyFields
|
|
@@ -1161,23 +1807,43 @@ fragment ChoiceFields on Choice {
|
|
|
1161
1807
|
}
|
|
1162
1808
|
fragment PharmacyOfferFields on PharmacyOffer {
|
|
1163
1809
|
source
|
|
1810
|
+
prescriptionId
|
|
1811
|
+
priceType
|
|
1164
1812
|
isPromoted
|
|
1165
1813
|
attributeTags {
|
|
1166
1814
|
kind
|
|
1167
1815
|
label
|
|
1168
1816
|
}
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1817
|
+
price {
|
|
1818
|
+
amount
|
|
1819
|
+
retailAmount
|
|
1820
|
+
promotions {
|
|
1821
|
+
type
|
|
1822
|
+
baseAmount
|
|
1823
|
+
amountSaved
|
|
1824
|
+
}
|
|
1174
1825
|
}
|
|
1175
|
-
|
|
1176
|
-
prescriptionId
|
|
1826
|
+
deliveryEstimate {
|
|
1177
1827
|
deliveryPromise
|
|
1178
1828
|
deliveryPromiseRangeStart
|
|
1179
1829
|
deliveryPromiseRangeEnd
|
|
1180
1830
|
}
|
|
1831
|
+
redemptionState
|
|
1832
|
+
redemptionMethods {
|
|
1833
|
+
...RedemptionMethodFields
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
fragment RedemptionMethodFields on RedemptionMethod {
|
|
1837
|
+
__typename
|
|
1838
|
+
... on PharmacyDiscountCard {
|
|
1839
|
+
id
|
|
1840
|
+
prescriptionId
|
|
1841
|
+
bin
|
|
1842
|
+
pcn
|
|
1843
|
+
group
|
|
1844
|
+
memberId
|
|
1845
|
+
externalUrl
|
|
1846
|
+
}
|
|
1181
1847
|
}
|
|
1182
1848
|
fragment ChangeFields on Change {
|
|
1183
1849
|
key
|
|
@@ -1214,6 +1880,24 @@ fragment OperationErrorFields on OperationError {
|
|
|
1214
1880
|
fragment PharmacyFields on Pharmacy {
|
|
1215
1881
|
id
|
|
1216
1882
|
name
|
|
1883
|
+
logo
|
|
1884
|
+
phone
|
|
1885
|
+
hours {
|
|
1886
|
+
openFrom
|
|
1887
|
+
openUntil
|
|
1888
|
+
dayOfWeek
|
|
1889
|
+
is24Hr
|
|
1890
|
+
timezone
|
|
1891
|
+
}
|
|
1892
|
+
isOpen
|
|
1893
|
+
nextEvents {
|
|
1894
|
+
open {
|
|
1895
|
+
...PharmacyEventFields
|
|
1896
|
+
}
|
|
1897
|
+
close {
|
|
1898
|
+
...PharmacyEventFields
|
|
1899
|
+
}
|
|
1900
|
+
}
|
|
1217
1901
|
address {
|
|
1218
1902
|
street1
|
|
1219
1903
|
street2
|
|
@@ -1228,6 +1912,20 @@ fragment PharmacyFields on Pharmacy {
|
|
|
1228
1912
|
...PharmacyOfferFields
|
|
1229
1913
|
}
|
|
1230
1914
|
}
|
|
1915
|
+
fragment PharmacyEventFields on PharmacyEvent {
|
|
1916
|
+
__typename
|
|
1917
|
+
... on PharmacyOpenEvent {
|
|
1918
|
+
type
|
|
1919
|
+
datetime
|
|
1920
|
+
}
|
|
1921
|
+
... on PharmacyCloseEvent {
|
|
1922
|
+
type
|
|
1923
|
+
datetime
|
|
1924
|
+
}
|
|
1925
|
+
... on PharmacyOpen24HrEvent {
|
|
1926
|
+
type
|
|
1927
|
+
}
|
|
1928
|
+
}
|
|
1231
1929
|
fragment ScreeningAlertFields on ScreeningAlert {
|
|
1232
1930
|
severity
|
|
1233
1931
|
type
|
|
@@ -1243,6 +1941,24 @@ fragment ScreeningAlertFields on ScreeningAlert {
|
|
|
1243
1941
|
}
|
|
1244
1942
|
fragment PrescriptionFields on Prescription {
|
|
1245
1943
|
id
|
|
1944
|
+
prescriber {
|
|
1945
|
+
id
|
|
1946
|
+
name {
|
|
1947
|
+
first
|
|
1948
|
+
middle
|
|
1949
|
+
last
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1952
|
+
fulfillment {
|
|
1953
|
+
state
|
|
1954
|
+
pharmacyEstimatedReadyAt
|
|
1955
|
+
exceptions {
|
|
1956
|
+
id
|
|
1957
|
+
type
|
|
1958
|
+
message
|
|
1959
|
+
createdAt
|
|
1960
|
+
}
|
|
1961
|
+
}
|
|
1246
1962
|
templateId
|
|
1247
1963
|
patient {
|
|
1248
1964
|
id
|
|
@@ -1275,11 +1991,57 @@ fragment PrescriptionFields on Prescription {
|
|
|
1275
1991
|
message
|
|
1276
1992
|
signedAt
|
|
1277
1993
|
}
|
|
1994
|
+
}
|
|
1995
|
+
fragment PrescriptionTemplateFields on PrescriptionTemplate {
|
|
1996
|
+
id
|
|
1997
|
+
source
|
|
1998
|
+
name
|
|
1999
|
+
instructions
|
|
2000
|
+
dispense {
|
|
2001
|
+
quantity
|
|
2002
|
+
unit
|
|
2003
|
+
daysSupply
|
|
2004
|
+
refillsAllowed
|
|
2005
|
+
dispenseAsWritten
|
|
2006
|
+
}
|
|
1278
2007
|
}`, { "fragmentName": "PrescriptionResultFields" });
|
|
2008
|
+
export const OrganizationFieldsFragmentDoc = new TypedDocumentString(`
|
|
2009
|
+
fragment OrganizationFields on Organization {
|
|
2010
|
+
id
|
|
2011
|
+
name
|
|
2012
|
+
customer {
|
|
2013
|
+
__typename
|
|
2014
|
+
... on Customer {
|
|
2015
|
+
id
|
|
2016
|
+
name
|
|
2017
|
+
}
|
|
2018
|
+
}
|
|
2019
|
+
settings {
|
|
2020
|
+
brandColor
|
|
2021
|
+
brandLogo
|
|
2022
|
+
priorAuthorizationExceptionMessage
|
|
2023
|
+
patientUx {
|
|
2024
|
+
enablePatientRerouting
|
|
2025
|
+
enableAutomatedOps
|
|
2026
|
+
}
|
|
2027
|
+
}
|
|
2028
|
+
}
|
|
2029
|
+
`, { "fragmentName": "OrganizationFields" });
|
|
1279
2030
|
export const OrderFieldsFragmentDoc = new TypedDocumentString(`
|
|
1280
2031
|
fragment OrderFields on Order {
|
|
1281
2032
|
id
|
|
1282
2033
|
state
|
|
2034
|
+
offers {
|
|
2035
|
+
atPharmacy {
|
|
2036
|
+
...PharmacyOfferFields
|
|
2037
|
+
}
|
|
2038
|
+
}
|
|
2039
|
+
organization {
|
|
2040
|
+
__typename
|
|
2041
|
+
... on Organization {
|
|
2042
|
+
...OrganizationFields
|
|
2043
|
+
}
|
|
2044
|
+
}
|
|
1283
2045
|
patient {
|
|
1284
2046
|
...PatientRecordFields
|
|
1285
2047
|
}
|
|
@@ -1292,11 +2054,26 @@ export const OrderFieldsFragmentDoc = new TypedDocumentString(`
|
|
|
1292
2054
|
pharmacy {
|
|
1293
2055
|
...PharmacyFields
|
|
1294
2056
|
}
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
2057
|
+
fulfillment {
|
|
2058
|
+
state
|
|
2059
|
+
history {
|
|
2060
|
+
pharmacy {
|
|
2061
|
+
...PharmacyFields
|
|
2062
|
+
}
|
|
2063
|
+
selector
|
|
2064
|
+
reason
|
|
2065
|
+
createdAt
|
|
2066
|
+
}
|
|
2067
|
+
routability {
|
|
2068
|
+
allowed
|
|
2069
|
+
reason
|
|
2070
|
+
}
|
|
2071
|
+
exceptions {
|
|
2072
|
+
id
|
|
2073
|
+
type
|
|
2074
|
+
message
|
|
2075
|
+
createdAt
|
|
2076
|
+
}
|
|
1300
2077
|
}
|
|
1301
2078
|
}
|
|
1302
2079
|
fragment TreatmentFields on Treatment {
|
|
@@ -1314,7 +2091,6 @@ export const OrderFieldsFragmentDoc = new TypedDocumentString(`
|
|
|
1314
2091
|
strength
|
|
1315
2092
|
medicationType
|
|
1316
2093
|
schedule
|
|
1317
|
-
recommendedDispenseUnits
|
|
1318
2094
|
}
|
|
1319
2095
|
fragment ChoiceFields on Choice {
|
|
1320
2096
|
__typename
|
|
@@ -1327,11 +2103,19 @@ fragment ChoiceFields on Choice {
|
|
|
1327
2103
|
type
|
|
1328
2104
|
label
|
|
1329
2105
|
confidence
|
|
2106
|
+
value {
|
|
2107
|
+
displayValue
|
|
2108
|
+
value
|
|
2109
|
+
unit
|
|
2110
|
+
}
|
|
1330
2111
|
}
|
|
1331
2112
|
entity {
|
|
1332
2113
|
__typename
|
|
1333
2114
|
... on Treatment {
|
|
1334
2115
|
...TreatmentFields
|
|
2116
|
+
templates {
|
|
2117
|
+
...PrescriptionTemplateFields
|
|
2118
|
+
}
|
|
1335
2119
|
}
|
|
1336
2120
|
... on Pharmacy {
|
|
1337
2121
|
...PharmacyFields
|
|
@@ -1340,27 +2124,47 @@ fragment ChoiceFields on Choice {
|
|
|
1340
2124
|
}
|
|
1341
2125
|
fragment PharmacyOfferFields on PharmacyOffer {
|
|
1342
2126
|
source
|
|
2127
|
+
prescriptionId
|
|
2128
|
+
priceType
|
|
1343
2129
|
isPromoted
|
|
1344
2130
|
attributeTags {
|
|
1345
2131
|
kind
|
|
1346
2132
|
label
|
|
1347
2133
|
}
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
2134
|
+
price {
|
|
2135
|
+
amount
|
|
2136
|
+
retailAmount
|
|
2137
|
+
promotions {
|
|
2138
|
+
type
|
|
2139
|
+
baseAmount
|
|
2140
|
+
amountSaved
|
|
2141
|
+
}
|
|
1353
2142
|
}
|
|
1354
|
-
|
|
1355
|
-
prescriptionId
|
|
2143
|
+
deliveryEstimate {
|
|
1356
2144
|
deliveryPromise
|
|
1357
2145
|
deliveryPromiseRangeStart
|
|
1358
2146
|
deliveryPromiseRangeEnd
|
|
1359
2147
|
}
|
|
2148
|
+
redemptionState
|
|
2149
|
+
redemptionMethods {
|
|
2150
|
+
...RedemptionMethodFields
|
|
2151
|
+
}
|
|
1360
2152
|
}
|
|
1361
|
-
fragment
|
|
2153
|
+
fragment RedemptionMethodFields on RedemptionMethod {
|
|
1362
2154
|
__typename
|
|
1363
|
-
|
|
2155
|
+
... on PharmacyDiscountCard {
|
|
2156
|
+
id
|
|
2157
|
+
prescriptionId
|
|
2158
|
+
bin
|
|
2159
|
+
pcn
|
|
2160
|
+
group
|
|
2161
|
+
memberId
|
|
2162
|
+
externalUrl
|
|
2163
|
+
}
|
|
2164
|
+
}
|
|
2165
|
+
fragment OperationErrorFields on OperationError {
|
|
2166
|
+
__typename
|
|
2167
|
+
type
|
|
1364
2168
|
code
|
|
1365
2169
|
message
|
|
1366
2170
|
requiredPermission
|
|
@@ -1370,6 +2174,24 @@ fragment OperationErrorFields on OperationError {
|
|
|
1370
2174
|
fragment PharmacyFields on Pharmacy {
|
|
1371
2175
|
id
|
|
1372
2176
|
name
|
|
2177
|
+
logo
|
|
2178
|
+
phone
|
|
2179
|
+
hours {
|
|
2180
|
+
openFrom
|
|
2181
|
+
openUntil
|
|
2182
|
+
dayOfWeek
|
|
2183
|
+
is24Hr
|
|
2184
|
+
timezone
|
|
2185
|
+
}
|
|
2186
|
+
isOpen
|
|
2187
|
+
nextEvents {
|
|
2188
|
+
open {
|
|
2189
|
+
...PharmacyEventFields
|
|
2190
|
+
}
|
|
2191
|
+
close {
|
|
2192
|
+
...PharmacyEventFields
|
|
2193
|
+
}
|
|
2194
|
+
}
|
|
1373
2195
|
address {
|
|
1374
2196
|
street1
|
|
1375
2197
|
street2
|
|
@@ -1384,6 +2206,40 @@ fragment PharmacyFields on Pharmacy {
|
|
|
1384
2206
|
...PharmacyOfferFields
|
|
1385
2207
|
}
|
|
1386
2208
|
}
|
|
2209
|
+
fragment PharmacyEventFields on PharmacyEvent {
|
|
2210
|
+
__typename
|
|
2211
|
+
... on PharmacyOpenEvent {
|
|
2212
|
+
type
|
|
2213
|
+
datetime
|
|
2214
|
+
}
|
|
2215
|
+
... on PharmacyCloseEvent {
|
|
2216
|
+
type
|
|
2217
|
+
datetime
|
|
2218
|
+
}
|
|
2219
|
+
... on PharmacyOpen24HrEvent {
|
|
2220
|
+
type
|
|
2221
|
+
}
|
|
2222
|
+
}
|
|
2223
|
+
fragment OrganizationFields on Organization {
|
|
2224
|
+
id
|
|
2225
|
+
name
|
|
2226
|
+
customer {
|
|
2227
|
+
__typename
|
|
2228
|
+
... on Customer {
|
|
2229
|
+
id
|
|
2230
|
+
name
|
|
2231
|
+
}
|
|
2232
|
+
}
|
|
2233
|
+
settings {
|
|
2234
|
+
brandColor
|
|
2235
|
+
brandLogo
|
|
2236
|
+
priorAuthorizationExceptionMessage
|
|
2237
|
+
patientUx {
|
|
2238
|
+
enablePatientRerouting
|
|
2239
|
+
enableAutomatedOps
|
|
2240
|
+
}
|
|
2241
|
+
}
|
|
2242
|
+
}
|
|
1387
2243
|
fragment PatientDemographicFields on PatientDemographic {
|
|
1388
2244
|
name {
|
|
1389
2245
|
first
|
|
@@ -1393,6 +2249,8 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
1393
2249
|
dateOfBirth
|
|
1394
2250
|
sex
|
|
1395
2251
|
gender
|
|
2252
|
+
}
|
|
2253
|
+
fragment PatientContactFields on PatientContact {
|
|
1396
2254
|
email
|
|
1397
2255
|
phone
|
|
1398
2256
|
address {
|
|
@@ -1403,6 +2261,15 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
1403
2261
|
postalCode
|
|
1404
2262
|
country
|
|
1405
2263
|
}
|
|
2264
|
+
}
|
|
2265
|
+
fragment PatientFields on Patient {
|
|
2266
|
+
id
|
|
2267
|
+
demographic {
|
|
2268
|
+
...PatientDemographicFields
|
|
2269
|
+
}
|
|
2270
|
+
contact {
|
|
2271
|
+
...PatientContactFields
|
|
2272
|
+
}
|
|
1406
2273
|
benefits {
|
|
1407
2274
|
status
|
|
1408
2275
|
entries {
|
|
@@ -1416,12 +2283,6 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
1416
2283
|
preferredPharmacy {
|
|
1417
2284
|
...PharmacyFields
|
|
1418
2285
|
}
|
|
1419
|
-
}
|
|
1420
|
-
fragment PatientFields on Patient {
|
|
1421
|
-
id
|
|
1422
|
-
demographic {
|
|
1423
|
-
...PatientDemographicFields
|
|
1424
|
-
}
|
|
1425
2286
|
clinical {
|
|
1426
2287
|
allergies {
|
|
1427
2288
|
status
|
|
@@ -1475,6 +2336,24 @@ fragment ScreeningAlertFields on ScreeningAlert {
|
|
|
1475
2336
|
}
|
|
1476
2337
|
fragment PrescriptionFields on Prescription {
|
|
1477
2338
|
id
|
|
2339
|
+
prescriber {
|
|
2340
|
+
id
|
|
2341
|
+
name {
|
|
2342
|
+
first
|
|
2343
|
+
middle
|
|
2344
|
+
last
|
|
2345
|
+
}
|
|
2346
|
+
}
|
|
2347
|
+
fulfillment {
|
|
2348
|
+
state
|
|
2349
|
+
pharmacyEstimatedReadyAt
|
|
2350
|
+
exceptions {
|
|
2351
|
+
id
|
|
2352
|
+
type
|
|
2353
|
+
message
|
|
2354
|
+
createdAt
|
|
2355
|
+
}
|
|
2356
|
+
}
|
|
1478
2357
|
templateId
|
|
1479
2358
|
patient {
|
|
1480
2359
|
id
|
|
@@ -1507,6 +2386,19 @@ fragment PrescriptionFields on Prescription {
|
|
|
1507
2386
|
message
|
|
1508
2387
|
signedAt
|
|
1509
2388
|
}
|
|
2389
|
+
}
|
|
2390
|
+
fragment PrescriptionTemplateFields on PrescriptionTemplate {
|
|
2391
|
+
id
|
|
2392
|
+
source
|
|
2393
|
+
name
|
|
2394
|
+
instructions
|
|
2395
|
+
dispense {
|
|
2396
|
+
quantity
|
|
2397
|
+
unit
|
|
2398
|
+
daysSupply
|
|
2399
|
+
refillsAllowed
|
|
2400
|
+
dispenseAsWritten
|
|
2401
|
+
}
|
|
1510
2402
|
}`, { "fragmentName": "OrderFields" });
|
|
1511
2403
|
export const OrderCandidateFieldsFragmentDoc = new TypedDocumentString(`
|
|
1512
2404
|
fragment OrderCandidateFields on OrderCandidate {
|
|
@@ -1533,7 +2425,6 @@ export const OrderCandidateFieldsFragmentDoc = new TypedDocumentString(`
|
|
|
1533
2425
|
strength
|
|
1534
2426
|
medicationType
|
|
1535
2427
|
schedule
|
|
1536
|
-
recommendedDispenseUnits
|
|
1537
2428
|
}
|
|
1538
2429
|
fragment ChoiceFields on Choice {
|
|
1539
2430
|
__typename
|
|
@@ -1546,11 +2437,19 @@ fragment ChoiceFields on Choice {
|
|
|
1546
2437
|
type
|
|
1547
2438
|
label
|
|
1548
2439
|
confidence
|
|
2440
|
+
value {
|
|
2441
|
+
displayValue
|
|
2442
|
+
value
|
|
2443
|
+
unit
|
|
2444
|
+
}
|
|
1549
2445
|
}
|
|
1550
2446
|
entity {
|
|
1551
2447
|
__typename
|
|
1552
2448
|
... on Treatment {
|
|
1553
2449
|
...TreatmentFields
|
|
2450
|
+
templates {
|
|
2451
|
+
...PrescriptionTemplateFields
|
|
2452
|
+
}
|
|
1554
2453
|
}
|
|
1555
2454
|
... on Pharmacy {
|
|
1556
2455
|
...PharmacyFields
|
|
@@ -1559,27 +2458,330 @@ fragment ChoiceFields on Choice {
|
|
|
1559
2458
|
}
|
|
1560
2459
|
fragment PharmacyOfferFields on PharmacyOffer {
|
|
1561
2460
|
source
|
|
2461
|
+
prescriptionId
|
|
2462
|
+
priceType
|
|
1562
2463
|
isPromoted
|
|
1563
2464
|
attributeTags {
|
|
1564
2465
|
kind
|
|
1565
2466
|
label
|
|
1566
2467
|
}
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
2468
|
+
price {
|
|
2469
|
+
amount
|
|
2470
|
+
retailAmount
|
|
2471
|
+
promotions {
|
|
2472
|
+
type
|
|
2473
|
+
baseAmount
|
|
2474
|
+
amountSaved
|
|
2475
|
+
}
|
|
1572
2476
|
}
|
|
1573
|
-
|
|
2477
|
+
deliveryEstimate {
|
|
2478
|
+
deliveryPromise
|
|
2479
|
+
deliveryPromiseRangeStart
|
|
2480
|
+
deliveryPromiseRangeEnd
|
|
2481
|
+
}
|
|
2482
|
+
redemptionState
|
|
2483
|
+
redemptionMethods {
|
|
2484
|
+
...RedemptionMethodFields
|
|
2485
|
+
}
|
|
2486
|
+
}
|
|
2487
|
+
fragment RedemptionMethodFields on RedemptionMethod {
|
|
2488
|
+
__typename
|
|
2489
|
+
... on PharmacyDiscountCard {
|
|
2490
|
+
id
|
|
1574
2491
|
prescriptionId
|
|
2492
|
+
bin
|
|
2493
|
+
pcn
|
|
2494
|
+
group
|
|
2495
|
+
memberId
|
|
2496
|
+
externalUrl
|
|
2497
|
+
}
|
|
2498
|
+
}
|
|
2499
|
+
fragment PharmacyFields on Pharmacy {
|
|
2500
|
+
id
|
|
2501
|
+
name
|
|
2502
|
+
logo
|
|
2503
|
+
phone
|
|
2504
|
+
hours {
|
|
2505
|
+
openFrom
|
|
2506
|
+
openUntil
|
|
2507
|
+
dayOfWeek
|
|
2508
|
+
is24Hr
|
|
2509
|
+
timezone
|
|
2510
|
+
}
|
|
2511
|
+
isOpen
|
|
2512
|
+
nextEvents {
|
|
2513
|
+
open {
|
|
2514
|
+
...PharmacyEventFields
|
|
2515
|
+
}
|
|
2516
|
+
close {
|
|
2517
|
+
...PharmacyEventFields
|
|
2518
|
+
}
|
|
2519
|
+
}
|
|
2520
|
+
address {
|
|
2521
|
+
street1
|
|
2522
|
+
street2
|
|
2523
|
+
city
|
|
2524
|
+
state
|
|
2525
|
+
postalCode
|
|
2526
|
+
}
|
|
2527
|
+
latitude
|
|
2528
|
+
longitude
|
|
2529
|
+
fulfillmentType
|
|
2530
|
+
offers {
|
|
2531
|
+
...PharmacyOfferFields
|
|
2532
|
+
}
|
|
2533
|
+
}
|
|
2534
|
+
fragment PharmacyEventFields on PharmacyEvent {
|
|
2535
|
+
__typename
|
|
2536
|
+
... on PharmacyOpenEvent {
|
|
2537
|
+
type
|
|
2538
|
+
datetime
|
|
2539
|
+
}
|
|
2540
|
+
... on PharmacyCloseEvent {
|
|
2541
|
+
type
|
|
2542
|
+
datetime
|
|
2543
|
+
}
|
|
2544
|
+
... on PharmacyOpen24HrEvent {
|
|
2545
|
+
type
|
|
2546
|
+
}
|
|
2547
|
+
}
|
|
2548
|
+
fragment ScreeningAlertFields on ScreeningAlert {
|
|
2549
|
+
severity
|
|
2550
|
+
type
|
|
2551
|
+
description
|
|
2552
|
+
category
|
|
2553
|
+
involvedEntities {
|
|
2554
|
+
id
|
|
2555
|
+
name
|
|
2556
|
+
}
|
|
2557
|
+
options {
|
|
2558
|
+
...ChoiceFields
|
|
2559
|
+
}
|
|
2560
|
+
}
|
|
2561
|
+
fragment PrescriptionFields on Prescription {
|
|
2562
|
+
id
|
|
2563
|
+
prescriber {
|
|
2564
|
+
id
|
|
2565
|
+
name {
|
|
2566
|
+
first
|
|
2567
|
+
middle
|
|
2568
|
+
last
|
|
2569
|
+
}
|
|
2570
|
+
}
|
|
2571
|
+
fulfillment {
|
|
2572
|
+
state
|
|
2573
|
+
pharmacyEstimatedReadyAt
|
|
2574
|
+
exceptions {
|
|
2575
|
+
id
|
|
2576
|
+
type
|
|
2577
|
+
message
|
|
2578
|
+
createdAt
|
|
2579
|
+
}
|
|
2580
|
+
}
|
|
2581
|
+
templateId
|
|
2582
|
+
patient {
|
|
2583
|
+
id
|
|
2584
|
+
}
|
|
2585
|
+
treatment {
|
|
2586
|
+
...TreatmentFields
|
|
2587
|
+
}
|
|
2588
|
+
instructions
|
|
2589
|
+
dispense {
|
|
2590
|
+
quantity
|
|
2591
|
+
unit
|
|
2592
|
+
daysSupply
|
|
2593
|
+
refillsAllowed
|
|
2594
|
+
dispenseAsWritten
|
|
2595
|
+
}
|
|
2596
|
+
clinical {
|
|
2597
|
+
diagnoses {
|
|
2598
|
+
id
|
|
2599
|
+
name
|
|
2600
|
+
icd10Code
|
|
2601
|
+
}
|
|
2602
|
+
notes
|
|
2603
|
+
}
|
|
2604
|
+
screeningAlerts {
|
|
2605
|
+
...ScreeningAlertFields
|
|
2606
|
+
}
|
|
2607
|
+
signing {
|
|
2608
|
+
state
|
|
2609
|
+
contentHash
|
|
2610
|
+
message
|
|
2611
|
+
signedAt
|
|
2612
|
+
}
|
|
2613
|
+
}
|
|
2614
|
+
fragment PrescriptionTemplateFields on PrescriptionTemplate {
|
|
2615
|
+
id
|
|
2616
|
+
source
|
|
2617
|
+
name
|
|
2618
|
+
instructions
|
|
2619
|
+
dispense {
|
|
2620
|
+
quantity
|
|
2621
|
+
unit
|
|
2622
|
+
daysSupply
|
|
2623
|
+
refillsAllowed
|
|
2624
|
+
dispenseAsWritten
|
|
2625
|
+
}
|
|
2626
|
+
}`, { "fragmentName": "OrderCandidateFields" });
|
|
2627
|
+
export const OrderResultFieldsFragmentDoc = new TypedDocumentString(`
|
|
2628
|
+
fragment OrderResultFields on OrderResult {
|
|
2629
|
+
__typename
|
|
2630
|
+
... on OrderPayload {
|
|
2631
|
+
order {
|
|
2632
|
+
...OrderFields
|
|
2633
|
+
}
|
|
2634
|
+
...ChangeSetFields
|
|
2635
|
+
}
|
|
2636
|
+
... on AmbiguousOrderMatch {
|
|
2637
|
+
reason
|
|
2638
|
+
candidates {
|
|
2639
|
+
...OrderCandidateFields
|
|
2640
|
+
}
|
|
2641
|
+
}
|
|
2642
|
+
... on OperationError {
|
|
2643
|
+
...OperationErrorFields
|
|
2644
|
+
}
|
|
2645
|
+
}
|
|
2646
|
+
fragment TreatmentFields on Treatment {
|
|
2647
|
+
id
|
|
2648
|
+
name
|
|
2649
|
+
rxNormId
|
|
2650
|
+
ndc
|
|
2651
|
+
upc
|
|
2652
|
+
entityKind
|
|
2653
|
+
prescribableName
|
|
2654
|
+
brandName
|
|
2655
|
+
genericName
|
|
2656
|
+
form
|
|
2657
|
+
route
|
|
2658
|
+
strength
|
|
2659
|
+
medicationType
|
|
2660
|
+
schedule
|
|
2661
|
+
}
|
|
2662
|
+
fragment ChoiceFields on Choice {
|
|
2663
|
+
__typename
|
|
2664
|
+
displayName
|
|
2665
|
+
reason
|
|
2666
|
+
operation
|
|
2667
|
+
argument
|
|
2668
|
+
value
|
|
2669
|
+
matchReasons {
|
|
2670
|
+
type
|
|
2671
|
+
label
|
|
2672
|
+
confidence
|
|
2673
|
+
value {
|
|
2674
|
+
displayValue
|
|
2675
|
+
value
|
|
2676
|
+
unit
|
|
2677
|
+
}
|
|
2678
|
+
}
|
|
2679
|
+
entity {
|
|
2680
|
+
__typename
|
|
2681
|
+
... on Treatment {
|
|
2682
|
+
...TreatmentFields
|
|
2683
|
+
templates {
|
|
2684
|
+
...PrescriptionTemplateFields
|
|
2685
|
+
}
|
|
2686
|
+
}
|
|
2687
|
+
... on Pharmacy {
|
|
2688
|
+
...PharmacyFields
|
|
2689
|
+
}
|
|
2690
|
+
}
|
|
2691
|
+
}
|
|
2692
|
+
fragment PharmacyOfferFields on PharmacyOffer {
|
|
2693
|
+
source
|
|
2694
|
+
prescriptionId
|
|
2695
|
+
priceType
|
|
2696
|
+
isPromoted
|
|
2697
|
+
attributeTags {
|
|
2698
|
+
kind
|
|
2699
|
+
label
|
|
2700
|
+
}
|
|
2701
|
+
price {
|
|
2702
|
+
amount
|
|
2703
|
+
retailAmount
|
|
2704
|
+
promotions {
|
|
2705
|
+
type
|
|
2706
|
+
baseAmount
|
|
2707
|
+
amountSaved
|
|
2708
|
+
}
|
|
2709
|
+
}
|
|
2710
|
+
deliveryEstimate {
|
|
1575
2711
|
deliveryPromise
|
|
1576
2712
|
deliveryPromiseRangeStart
|
|
1577
2713
|
deliveryPromiseRangeEnd
|
|
1578
2714
|
}
|
|
2715
|
+
redemptionState
|
|
2716
|
+
redemptionMethods {
|
|
2717
|
+
...RedemptionMethodFields
|
|
2718
|
+
}
|
|
2719
|
+
}
|
|
2720
|
+
fragment RedemptionMethodFields on RedemptionMethod {
|
|
2721
|
+
__typename
|
|
2722
|
+
... on PharmacyDiscountCard {
|
|
2723
|
+
id
|
|
2724
|
+
prescriptionId
|
|
2725
|
+
bin
|
|
2726
|
+
pcn
|
|
2727
|
+
group
|
|
2728
|
+
memberId
|
|
2729
|
+
externalUrl
|
|
2730
|
+
}
|
|
2731
|
+
}
|
|
2732
|
+
fragment ChangeFields on Change {
|
|
2733
|
+
key
|
|
2734
|
+
label
|
|
2735
|
+
status
|
|
2736
|
+
severity
|
|
2737
|
+
reason
|
|
2738
|
+
category
|
|
2739
|
+
operation
|
|
2740
|
+
options {
|
|
2741
|
+
...ChoiceFields
|
|
2742
|
+
}
|
|
2743
|
+
before {
|
|
2744
|
+
...ChoiceFields
|
|
2745
|
+
}
|
|
2746
|
+
after {
|
|
2747
|
+
...ChoiceFields
|
|
2748
|
+
}
|
|
2749
|
+
}
|
|
2750
|
+
fragment ChangeSetFields on ChangeSet {
|
|
2751
|
+
changes {
|
|
2752
|
+
...ChangeFields
|
|
2753
|
+
}
|
|
2754
|
+
}
|
|
2755
|
+
fragment OperationErrorFields on OperationError {
|
|
2756
|
+
__typename
|
|
2757
|
+
type
|
|
2758
|
+
code
|
|
2759
|
+
message
|
|
2760
|
+
requiredPermission
|
|
2761
|
+
service
|
|
2762
|
+
retryable
|
|
1579
2763
|
}
|
|
1580
2764
|
fragment PharmacyFields on Pharmacy {
|
|
1581
2765
|
id
|
|
1582
2766
|
name
|
|
2767
|
+
logo
|
|
2768
|
+
phone
|
|
2769
|
+
hours {
|
|
2770
|
+
openFrom
|
|
2771
|
+
openUntil
|
|
2772
|
+
dayOfWeek
|
|
2773
|
+
is24Hr
|
|
2774
|
+
timezone
|
|
2775
|
+
}
|
|
2776
|
+
isOpen
|
|
2777
|
+
nextEvents {
|
|
2778
|
+
open {
|
|
2779
|
+
...PharmacyEventFields
|
|
2780
|
+
}
|
|
2781
|
+
close {
|
|
2782
|
+
...PharmacyEventFields
|
|
2783
|
+
}
|
|
2784
|
+
}
|
|
1583
2785
|
address {
|
|
1584
2786
|
street1
|
|
1585
2787
|
street2
|
|
@@ -1594,6 +2796,121 @@ fragment PharmacyFields on Pharmacy {
|
|
|
1594
2796
|
...PharmacyOfferFields
|
|
1595
2797
|
}
|
|
1596
2798
|
}
|
|
2799
|
+
fragment PharmacyEventFields on PharmacyEvent {
|
|
2800
|
+
__typename
|
|
2801
|
+
... on PharmacyOpenEvent {
|
|
2802
|
+
type
|
|
2803
|
+
datetime
|
|
2804
|
+
}
|
|
2805
|
+
... on PharmacyCloseEvent {
|
|
2806
|
+
type
|
|
2807
|
+
datetime
|
|
2808
|
+
}
|
|
2809
|
+
... on PharmacyOpen24HrEvent {
|
|
2810
|
+
type
|
|
2811
|
+
}
|
|
2812
|
+
}
|
|
2813
|
+
fragment OrganizationFields on Organization {
|
|
2814
|
+
id
|
|
2815
|
+
name
|
|
2816
|
+
customer {
|
|
2817
|
+
__typename
|
|
2818
|
+
... on Customer {
|
|
2819
|
+
id
|
|
2820
|
+
name
|
|
2821
|
+
}
|
|
2822
|
+
}
|
|
2823
|
+
settings {
|
|
2824
|
+
brandColor
|
|
2825
|
+
brandLogo
|
|
2826
|
+
priorAuthorizationExceptionMessage
|
|
2827
|
+
patientUx {
|
|
2828
|
+
enablePatientRerouting
|
|
2829
|
+
enableAutomatedOps
|
|
2830
|
+
}
|
|
2831
|
+
}
|
|
2832
|
+
}
|
|
2833
|
+
fragment PatientDemographicFields on PatientDemographic {
|
|
2834
|
+
name {
|
|
2835
|
+
first
|
|
2836
|
+
middle
|
|
2837
|
+
last
|
|
2838
|
+
}
|
|
2839
|
+
dateOfBirth
|
|
2840
|
+
sex
|
|
2841
|
+
gender
|
|
2842
|
+
}
|
|
2843
|
+
fragment PatientContactFields on PatientContact {
|
|
2844
|
+
email
|
|
2845
|
+
phone
|
|
2846
|
+
address {
|
|
2847
|
+
street1
|
|
2848
|
+
street2
|
|
2849
|
+
city
|
|
2850
|
+
state
|
|
2851
|
+
postalCode
|
|
2852
|
+
country
|
|
2853
|
+
}
|
|
2854
|
+
}
|
|
2855
|
+
fragment PatientFields on Patient {
|
|
2856
|
+
id
|
|
2857
|
+
demographic {
|
|
2858
|
+
...PatientDemographicFields
|
|
2859
|
+
}
|
|
2860
|
+
contact {
|
|
2861
|
+
...PatientContactFields
|
|
2862
|
+
}
|
|
2863
|
+
benefits {
|
|
2864
|
+
status
|
|
2865
|
+
entries {
|
|
2866
|
+
id
|
|
2867
|
+
bin
|
|
2868
|
+
pcn
|
|
2869
|
+
groupId
|
|
2870
|
+
memberId
|
|
2871
|
+
}
|
|
2872
|
+
}
|
|
2873
|
+
preferredPharmacy {
|
|
2874
|
+
...PharmacyFields
|
|
2875
|
+
}
|
|
2876
|
+
clinical {
|
|
2877
|
+
allergies {
|
|
2878
|
+
status
|
|
2879
|
+
entries {
|
|
2880
|
+
id
|
|
2881
|
+
name
|
|
2882
|
+
rxNormId
|
|
2883
|
+
}
|
|
2884
|
+
}
|
|
2885
|
+
medications {
|
|
2886
|
+
status
|
|
2887
|
+
entries {
|
|
2888
|
+
id
|
|
2889
|
+
name
|
|
2890
|
+
rxNormId
|
|
2891
|
+
status
|
|
2892
|
+
}
|
|
2893
|
+
}
|
|
2894
|
+
diagnoses {
|
|
2895
|
+
status
|
|
2896
|
+
entries {
|
|
2897
|
+
id
|
|
2898
|
+
name
|
|
2899
|
+
icd10Code
|
|
2900
|
+
}
|
|
2901
|
+
}
|
|
2902
|
+
notes
|
|
2903
|
+
}
|
|
2904
|
+
}
|
|
2905
|
+
fragment PatientRecordFields on PatientRecordResult {
|
|
2906
|
+
__typename
|
|
2907
|
+
... on Patient {
|
|
2908
|
+
...PatientFields
|
|
2909
|
+
}
|
|
2910
|
+
... on OperationError {
|
|
2911
|
+
...OperationErrorFields
|
|
2912
|
+
}
|
|
2913
|
+
}
|
|
1597
2914
|
fragment ScreeningAlertFields on ScreeningAlert {
|
|
1598
2915
|
severity
|
|
1599
2916
|
type
|
|
@@ -1609,6 +2926,24 @@ fragment ScreeningAlertFields on ScreeningAlert {
|
|
|
1609
2926
|
}
|
|
1610
2927
|
fragment PrescriptionFields on Prescription {
|
|
1611
2928
|
id
|
|
2929
|
+
prescriber {
|
|
2930
|
+
id
|
|
2931
|
+
name {
|
|
2932
|
+
first
|
|
2933
|
+
middle
|
|
2934
|
+
last
|
|
2935
|
+
}
|
|
2936
|
+
}
|
|
2937
|
+
fulfillment {
|
|
2938
|
+
state
|
|
2939
|
+
pharmacyEstimatedReadyAt
|
|
2940
|
+
exceptions {
|
|
2941
|
+
id
|
|
2942
|
+
type
|
|
2943
|
+
message
|
|
2944
|
+
createdAt
|
|
2945
|
+
}
|
|
2946
|
+
}
|
|
1612
2947
|
templateId
|
|
1613
2948
|
patient {
|
|
1614
2949
|
id
|
|
@@ -1641,25 +2976,135 @@ fragment PrescriptionFields on Prescription {
|
|
|
1641
2976
|
message
|
|
1642
2977
|
signedAt
|
|
1643
2978
|
}
|
|
1644
|
-
}
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
...
|
|
1651
|
-
}
|
|
1652
|
-
|
|
2979
|
+
}
|
|
2980
|
+
fragment OrderFields on Order {
|
|
2981
|
+
id
|
|
2982
|
+
state
|
|
2983
|
+
offers {
|
|
2984
|
+
atPharmacy {
|
|
2985
|
+
...PharmacyOfferFields
|
|
2986
|
+
}
|
|
2987
|
+
}
|
|
2988
|
+
organization {
|
|
2989
|
+
__typename
|
|
2990
|
+
... on Organization {
|
|
2991
|
+
...OrganizationFields
|
|
2992
|
+
}
|
|
2993
|
+
}
|
|
2994
|
+
patient {
|
|
2995
|
+
...PatientRecordFields
|
|
2996
|
+
}
|
|
2997
|
+
prescriptions {
|
|
2998
|
+
...PrescriptionFields
|
|
2999
|
+
}
|
|
3000
|
+
screeningAlerts {
|
|
3001
|
+
...ScreeningAlertFields
|
|
3002
|
+
}
|
|
3003
|
+
pharmacy {
|
|
3004
|
+
...PharmacyFields
|
|
3005
|
+
}
|
|
3006
|
+
fulfillment {
|
|
3007
|
+
state
|
|
3008
|
+
history {
|
|
3009
|
+
pharmacy {
|
|
3010
|
+
...PharmacyFields
|
|
3011
|
+
}
|
|
3012
|
+
selector
|
|
3013
|
+
reason
|
|
3014
|
+
createdAt
|
|
3015
|
+
}
|
|
3016
|
+
routability {
|
|
3017
|
+
allowed
|
|
3018
|
+
reason
|
|
3019
|
+
}
|
|
3020
|
+
exceptions {
|
|
3021
|
+
id
|
|
3022
|
+
type
|
|
3023
|
+
message
|
|
3024
|
+
createdAt
|
|
3025
|
+
}
|
|
3026
|
+
}
|
|
3027
|
+
}
|
|
3028
|
+
fragment PrescriptionTemplateFields on PrescriptionTemplate {
|
|
3029
|
+
id
|
|
3030
|
+
source
|
|
3031
|
+
name
|
|
3032
|
+
instructions
|
|
3033
|
+
dispense {
|
|
3034
|
+
quantity
|
|
3035
|
+
unit
|
|
3036
|
+
daysSupply
|
|
3037
|
+
refillsAllowed
|
|
3038
|
+
dispenseAsWritten
|
|
3039
|
+
}
|
|
3040
|
+
}
|
|
3041
|
+
fragment OrderCandidateFields on OrderCandidate {
|
|
3042
|
+
id
|
|
3043
|
+
pharmacy {
|
|
3044
|
+
...PharmacyFields
|
|
3045
|
+
}
|
|
3046
|
+
prescriptions {
|
|
3047
|
+
...PrescriptionFields
|
|
1653
3048
|
}
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
3049
|
+
}`, { "fragmentName": "OrderResultFields" });
|
|
3050
|
+
export const PingDocument = new TypedDocumentString(`
|
|
3051
|
+
query Ping {
|
|
3052
|
+
ping
|
|
3053
|
+
}
|
|
3054
|
+
`);
|
|
3055
|
+
export const MeDocument = new TypedDocumentString(`
|
|
3056
|
+
query Me {
|
|
3057
|
+
me {
|
|
3058
|
+
__typename
|
|
3059
|
+
... on User {
|
|
3060
|
+
id
|
|
3061
|
+
name {
|
|
3062
|
+
first
|
|
3063
|
+
last
|
|
3064
|
+
}
|
|
3065
|
+
organization {
|
|
3066
|
+
__typename
|
|
3067
|
+
... on Organization {
|
|
3068
|
+
id
|
|
3069
|
+
name
|
|
3070
|
+
}
|
|
3071
|
+
}
|
|
3072
|
+
permissions
|
|
3073
|
+
}
|
|
3074
|
+
... on Patient {
|
|
3075
|
+
id
|
|
3076
|
+
name {
|
|
3077
|
+
first
|
|
3078
|
+
last
|
|
3079
|
+
}
|
|
3080
|
+
}
|
|
3081
|
+
... on Machine {
|
|
3082
|
+
organization {
|
|
3083
|
+
__typename
|
|
3084
|
+
... on Organization {
|
|
3085
|
+
id
|
|
3086
|
+
name
|
|
3087
|
+
}
|
|
3088
|
+
}
|
|
3089
|
+
permissions
|
|
1658
3090
|
}
|
|
1659
|
-
}
|
|
1660
|
-
... on OperationError {
|
|
1661
3091
|
...OperationErrorFields
|
|
1662
3092
|
}
|
|
3093
|
+
}
|
|
3094
|
+
fragment OperationErrorFields on OperationError {
|
|
3095
|
+
__typename
|
|
3096
|
+
type
|
|
3097
|
+
code
|
|
3098
|
+
message
|
|
3099
|
+
requiredPermission
|
|
3100
|
+
service
|
|
3101
|
+
retryable
|
|
3102
|
+
}`);
|
|
3103
|
+
export const GetOrderDocument = new TypedDocumentString(`
|
|
3104
|
+
mutation GetOrder($id: ID!, $metadata: RequestMetadata!) {
|
|
3105
|
+
order(order: { id: $id }, metadata: $metadata) {
|
|
3106
|
+
...OrderResultFields
|
|
3107
|
+
}
|
|
1663
3108
|
}
|
|
1664
3109
|
fragment TreatmentFields on Treatment {
|
|
1665
3110
|
id
|
|
@@ -1676,7 +3121,6 @@ export const OrderResultFieldsFragmentDoc = new TypedDocumentString(`
|
|
|
1676
3121
|
strength
|
|
1677
3122
|
medicationType
|
|
1678
3123
|
schedule
|
|
1679
|
-
recommendedDispenseUnits
|
|
1680
3124
|
}
|
|
1681
3125
|
fragment ChoiceFields on Choice {
|
|
1682
3126
|
__typename
|
|
@@ -1689,11 +3133,19 @@ fragment ChoiceFields on Choice {
|
|
|
1689
3133
|
type
|
|
1690
3134
|
label
|
|
1691
3135
|
confidence
|
|
3136
|
+
value {
|
|
3137
|
+
displayValue
|
|
3138
|
+
value
|
|
3139
|
+
unit
|
|
3140
|
+
}
|
|
1692
3141
|
}
|
|
1693
3142
|
entity {
|
|
1694
3143
|
__typename
|
|
1695
3144
|
... on Treatment {
|
|
1696
3145
|
...TreatmentFields
|
|
3146
|
+
templates {
|
|
3147
|
+
...PrescriptionTemplateFields
|
|
3148
|
+
}
|
|
1697
3149
|
}
|
|
1698
3150
|
... on Pharmacy {
|
|
1699
3151
|
...PharmacyFields
|
|
@@ -1702,23 +3154,43 @@ fragment ChoiceFields on Choice {
|
|
|
1702
3154
|
}
|
|
1703
3155
|
fragment PharmacyOfferFields on PharmacyOffer {
|
|
1704
3156
|
source
|
|
3157
|
+
prescriptionId
|
|
3158
|
+
priceType
|
|
1705
3159
|
isPromoted
|
|
1706
3160
|
attributeTags {
|
|
1707
3161
|
kind
|
|
1708
3162
|
label
|
|
1709
3163
|
}
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
3164
|
+
price {
|
|
3165
|
+
amount
|
|
3166
|
+
retailAmount
|
|
3167
|
+
promotions {
|
|
3168
|
+
type
|
|
3169
|
+
baseAmount
|
|
3170
|
+
amountSaved
|
|
3171
|
+
}
|
|
1715
3172
|
}
|
|
1716
|
-
|
|
1717
|
-
prescriptionId
|
|
3173
|
+
deliveryEstimate {
|
|
1718
3174
|
deliveryPromise
|
|
1719
3175
|
deliveryPromiseRangeStart
|
|
1720
3176
|
deliveryPromiseRangeEnd
|
|
1721
3177
|
}
|
|
3178
|
+
redemptionState
|
|
3179
|
+
redemptionMethods {
|
|
3180
|
+
...RedemptionMethodFields
|
|
3181
|
+
}
|
|
3182
|
+
}
|
|
3183
|
+
fragment RedemptionMethodFields on RedemptionMethod {
|
|
3184
|
+
__typename
|
|
3185
|
+
... on PharmacyDiscountCard {
|
|
3186
|
+
id
|
|
3187
|
+
prescriptionId
|
|
3188
|
+
bin
|
|
3189
|
+
pcn
|
|
3190
|
+
group
|
|
3191
|
+
memberId
|
|
3192
|
+
externalUrl
|
|
3193
|
+
}
|
|
1722
3194
|
}
|
|
1723
3195
|
fragment ChangeFields on Change {
|
|
1724
3196
|
key
|
|
@@ -1755,6 +3227,24 @@ fragment OperationErrorFields on OperationError {
|
|
|
1755
3227
|
fragment PharmacyFields on Pharmacy {
|
|
1756
3228
|
id
|
|
1757
3229
|
name
|
|
3230
|
+
logo
|
|
3231
|
+
phone
|
|
3232
|
+
hours {
|
|
3233
|
+
openFrom
|
|
3234
|
+
openUntil
|
|
3235
|
+
dayOfWeek
|
|
3236
|
+
is24Hr
|
|
3237
|
+
timezone
|
|
3238
|
+
}
|
|
3239
|
+
isOpen
|
|
3240
|
+
nextEvents {
|
|
3241
|
+
open {
|
|
3242
|
+
...PharmacyEventFields
|
|
3243
|
+
}
|
|
3244
|
+
close {
|
|
3245
|
+
...PharmacyEventFields
|
|
3246
|
+
}
|
|
3247
|
+
}
|
|
1758
3248
|
address {
|
|
1759
3249
|
street1
|
|
1760
3250
|
street2
|
|
@@ -1769,6 +3259,40 @@ fragment PharmacyFields on Pharmacy {
|
|
|
1769
3259
|
...PharmacyOfferFields
|
|
1770
3260
|
}
|
|
1771
3261
|
}
|
|
3262
|
+
fragment PharmacyEventFields on PharmacyEvent {
|
|
3263
|
+
__typename
|
|
3264
|
+
... on PharmacyOpenEvent {
|
|
3265
|
+
type
|
|
3266
|
+
datetime
|
|
3267
|
+
}
|
|
3268
|
+
... on PharmacyCloseEvent {
|
|
3269
|
+
type
|
|
3270
|
+
datetime
|
|
3271
|
+
}
|
|
3272
|
+
... on PharmacyOpen24HrEvent {
|
|
3273
|
+
type
|
|
3274
|
+
}
|
|
3275
|
+
}
|
|
3276
|
+
fragment OrganizationFields on Organization {
|
|
3277
|
+
id
|
|
3278
|
+
name
|
|
3279
|
+
customer {
|
|
3280
|
+
__typename
|
|
3281
|
+
... on Customer {
|
|
3282
|
+
id
|
|
3283
|
+
name
|
|
3284
|
+
}
|
|
3285
|
+
}
|
|
3286
|
+
settings {
|
|
3287
|
+
brandColor
|
|
3288
|
+
brandLogo
|
|
3289
|
+
priorAuthorizationExceptionMessage
|
|
3290
|
+
patientUx {
|
|
3291
|
+
enablePatientRerouting
|
|
3292
|
+
enableAutomatedOps
|
|
3293
|
+
}
|
|
3294
|
+
}
|
|
3295
|
+
}
|
|
1772
3296
|
fragment PatientDemographicFields on PatientDemographic {
|
|
1773
3297
|
name {
|
|
1774
3298
|
first
|
|
@@ -1778,6 +3302,8 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
1778
3302
|
dateOfBirth
|
|
1779
3303
|
sex
|
|
1780
3304
|
gender
|
|
3305
|
+
}
|
|
3306
|
+
fragment PatientContactFields on PatientContact {
|
|
1781
3307
|
email
|
|
1782
3308
|
phone
|
|
1783
3309
|
address {
|
|
@@ -1788,6 +3314,15 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
1788
3314
|
postalCode
|
|
1789
3315
|
country
|
|
1790
3316
|
}
|
|
3317
|
+
}
|
|
3318
|
+
fragment PatientFields on Patient {
|
|
3319
|
+
id
|
|
3320
|
+
demographic {
|
|
3321
|
+
...PatientDemographicFields
|
|
3322
|
+
}
|
|
3323
|
+
contact {
|
|
3324
|
+
...PatientContactFields
|
|
3325
|
+
}
|
|
1791
3326
|
benefits {
|
|
1792
3327
|
status
|
|
1793
3328
|
entries {
|
|
@@ -1801,12 +3336,6 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
1801
3336
|
preferredPharmacy {
|
|
1802
3337
|
...PharmacyFields
|
|
1803
3338
|
}
|
|
1804
|
-
}
|
|
1805
|
-
fragment PatientFields on Patient {
|
|
1806
|
-
id
|
|
1807
|
-
demographic {
|
|
1808
|
-
...PatientDemographicFields
|
|
1809
|
-
}
|
|
1810
3339
|
clinical {
|
|
1811
3340
|
allergies {
|
|
1812
3341
|
status
|
|
@@ -1860,6 +3389,24 @@ fragment ScreeningAlertFields on ScreeningAlert {
|
|
|
1860
3389
|
}
|
|
1861
3390
|
fragment PrescriptionFields on Prescription {
|
|
1862
3391
|
id
|
|
3392
|
+
prescriber {
|
|
3393
|
+
id
|
|
3394
|
+
name {
|
|
3395
|
+
first
|
|
3396
|
+
middle
|
|
3397
|
+
last
|
|
3398
|
+
}
|
|
3399
|
+
}
|
|
3400
|
+
fulfillment {
|
|
3401
|
+
state
|
|
3402
|
+
pharmacyEstimatedReadyAt
|
|
3403
|
+
exceptions {
|
|
3404
|
+
id
|
|
3405
|
+
type
|
|
3406
|
+
message
|
|
3407
|
+
createdAt
|
|
3408
|
+
}
|
|
3409
|
+
}
|
|
1863
3410
|
templateId
|
|
1864
3411
|
patient {
|
|
1865
3412
|
id
|
|
@@ -1896,6 +3443,17 @@ fragment PrescriptionFields on Prescription {
|
|
|
1896
3443
|
fragment OrderFields on Order {
|
|
1897
3444
|
id
|
|
1898
3445
|
state
|
|
3446
|
+
offers {
|
|
3447
|
+
atPharmacy {
|
|
3448
|
+
...PharmacyOfferFields
|
|
3449
|
+
}
|
|
3450
|
+
}
|
|
3451
|
+
organization {
|
|
3452
|
+
__typename
|
|
3453
|
+
... on Organization {
|
|
3454
|
+
...OrganizationFields
|
|
3455
|
+
}
|
|
3456
|
+
}
|
|
1899
3457
|
patient {
|
|
1900
3458
|
...PatientRecordFields
|
|
1901
3459
|
}
|
|
@@ -1908,11 +3466,39 @@ fragment OrderFields on Order {
|
|
|
1908
3466
|
pharmacy {
|
|
1909
3467
|
...PharmacyFields
|
|
1910
3468
|
}
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
3469
|
+
fulfillment {
|
|
3470
|
+
state
|
|
3471
|
+
history {
|
|
3472
|
+
pharmacy {
|
|
3473
|
+
...PharmacyFields
|
|
3474
|
+
}
|
|
3475
|
+
selector
|
|
3476
|
+
reason
|
|
3477
|
+
createdAt
|
|
3478
|
+
}
|
|
3479
|
+
routability {
|
|
3480
|
+
allowed
|
|
3481
|
+
reason
|
|
3482
|
+
}
|
|
3483
|
+
exceptions {
|
|
3484
|
+
id
|
|
3485
|
+
type
|
|
3486
|
+
message
|
|
3487
|
+
createdAt
|
|
3488
|
+
}
|
|
3489
|
+
}
|
|
3490
|
+
}
|
|
3491
|
+
fragment PrescriptionTemplateFields on PrescriptionTemplate {
|
|
3492
|
+
id
|
|
3493
|
+
source
|
|
3494
|
+
name
|
|
3495
|
+
instructions
|
|
3496
|
+
dispense {
|
|
3497
|
+
quantity
|
|
3498
|
+
unit
|
|
3499
|
+
daysSupply
|
|
3500
|
+
refillsAllowed
|
|
3501
|
+
dispenseAsWritten
|
|
1916
3502
|
}
|
|
1917
3503
|
}
|
|
1918
3504
|
fragment OrderCandidateFields on OrderCandidate {
|
|
@@ -1923,15 +3509,36 @@ fragment OrderCandidateFields on OrderCandidate {
|
|
|
1923
3509
|
prescriptions {
|
|
1924
3510
|
...PrescriptionFields
|
|
1925
3511
|
}
|
|
1926
|
-
}`, { "fragmentName": "OrderResultFields" });
|
|
1927
|
-
export const PingDocument = new TypedDocumentString(`
|
|
1928
|
-
query Ping {
|
|
1929
|
-
ping
|
|
1930
3512
|
}
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
3513
|
+
fragment OrderResultFields on OrderResult {
|
|
3514
|
+
__typename
|
|
3515
|
+
... on OrderPayload {
|
|
3516
|
+
order {
|
|
3517
|
+
...OrderFields
|
|
3518
|
+
}
|
|
3519
|
+
...ChangeSetFields
|
|
3520
|
+
}
|
|
3521
|
+
... on AmbiguousOrderMatch {
|
|
3522
|
+
reason
|
|
3523
|
+
candidates {
|
|
3524
|
+
...OrderCandidateFields
|
|
3525
|
+
}
|
|
3526
|
+
}
|
|
3527
|
+
... on OperationError {
|
|
3528
|
+
...OperationErrorFields
|
|
3529
|
+
}
|
|
3530
|
+
}`);
|
|
3531
|
+
export const SyncOrderDocument = new TypedDocumentString(`
|
|
3532
|
+
mutation SyncOrder($id: ID, $patient: PatientReferenceInput, $prescriptions: OrderPrescriptionsPatch, $pharmacy: OrderPharmacyInput, $metadata: RequestMetadata!) {
|
|
3533
|
+
order(
|
|
3534
|
+
order: {
|
|
3535
|
+
id: $id
|
|
3536
|
+
patient: $patient
|
|
3537
|
+
prescriptions: $prescriptions
|
|
3538
|
+
pharmacy: $pharmacy
|
|
3539
|
+
}
|
|
3540
|
+
metadata: $metadata
|
|
3541
|
+
) {
|
|
1935
3542
|
...OrderResultFields
|
|
1936
3543
|
}
|
|
1937
3544
|
}
|
|
@@ -1950,7 +3557,6 @@ export const GetOrderDocument = new TypedDocumentString(`
|
|
|
1950
3557
|
strength
|
|
1951
3558
|
medicationType
|
|
1952
3559
|
schedule
|
|
1953
|
-
recommendedDispenseUnits
|
|
1954
3560
|
}
|
|
1955
3561
|
fragment ChoiceFields on Choice {
|
|
1956
3562
|
__typename
|
|
@@ -1963,11 +3569,19 @@ fragment ChoiceFields on Choice {
|
|
|
1963
3569
|
type
|
|
1964
3570
|
label
|
|
1965
3571
|
confidence
|
|
3572
|
+
value {
|
|
3573
|
+
displayValue
|
|
3574
|
+
value
|
|
3575
|
+
unit
|
|
3576
|
+
}
|
|
1966
3577
|
}
|
|
1967
3578
|
entity {
|
|
1968
3579
|
__typename
|
|
1969
3580
|
... on Treatment {
|
|
1970
3581
|
...TreatmentFields
|
|
3582
|
+
templates {
|
|
3583
|
+
...PrescriptionTemplateFields
|
|
3584
|
+
}
|
|
1971
3585
|
}
|
|
1972
3586
|
... on Pharmacy {
|
|
1973
3587
|
...PharmacyFields
|
|
@@ -1976,23 +3590,43 @@ fragment ChoiceFields on Choice {
|
|
|
1976
3590
|
}
|
|
1977
3591
|
fragment PharmacyOfferFields on PharmacyOffer {
|
|
1978
3592
|
source
|
|
3593
|
+
prescriptionId
|
|
3594
|
+
priceType
|
|
1979
3595
|
isPromoted
|
|
1980
3596
|
attributeTags {
|
|
1981
3597
|
kind
|
|
1982
3598
|
label
|
|
1983
3599
|
}
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
3600
|
+
price {
|
|
3601
|
+
amount
|
|
3602
|
+
retailAmount
|
|
3603
|
+
promotions {
|
|
3604
|
+
type
|
|
3605
|
+
baseAmount
|
|
3606
|
+
amountSaved
|
|
3607
|
+
}
|
|
1989
3608
|
}
|
|
1990
|
-
|
|
1991
|
-
prescriptionId
|
|
3609
|
+
deliveryEstimate {
|
|
1992
3610
|
deliveryPromise
|
|
1993
3611
|
deliveryPromiseRangeStart
|
|
1994
3612
|
deliveryPromiseRangeEnd
|
|
1995
3613
|
}
|
|
3614
|
+
redemptionState
|
|
3615
|
+
redemptionMethods {
|
|
3616
|
+
...RedemptionMethodFields
|
|
3617
|
+
}
|
|
3618
|
+
}
|
|
3619
|
+
fragment RedemptionMethodFields on RedemptionMethod {
|
|
3620
|
+
__typename
|
|
3621
|
+
... on PharmacyDiscountCard {
|
|
3622
|
+
id
|
|
3623
|
+
prescriptionId
|
|
3624
|
+
bin
|
|
3625
|
+
pcn
|
|
3626
|
+
group
|
|
3627
|
+
memberId
|
|
3628
|
+
externalUrl
|
|
3629
|
+
}
|
|
1996
3630
|
}
|
|
1997
3631
|
fragment ChangeFields on Change {
|
|
1998
3632
|
key
|
|
@@ -2029,6 +3663,24 @@ fragment OperationErrorFields on OperationError {
|
|
|
2029
3663
|
fragment PharmacyFields on Pharmacy {
|
|
2030
3664
|
id
|
|
2031
3665
|
name
|
|
3666
|
+
logo
|
|
3667
|
+
phone
|
|
3668
|
+
hours {
|
|
3669
|
+
openFrom
|
|
3670
|
+
openUntil
|
|
3671
|
+
dayOfWeek
|
|
3672
|
+
is24Hr
|
|
3673
|
+
timezone
|
|
3674
|
+
}
|
|
3675
|
+
isOpen
|
|
3676
|
+
nextEvents {
|
|
3677
|
+
open {
|
|
3678
|
+
...PharmacyEventFields
|
|
3679
|
+
}
|
|
3680
|
+
close {
|
|
3681
|
+
...PharmacyEventFields
|
|
3682
|
+
}
|
|
3683
|
+
}
|
|
2032
3684
|
address {
|
|
2033
3685
|
street1
|
|
2034
3686
|
street2
|
|
@@ -2043,6 +3695,40 @@ fragment PharmacyFields on Pharmacy {
|
|
|
2043
3695
|
...PharmacyOfferFields
|
|
2044
3696
|
}
|
|
2045
3697
|
}
|
|
3698
|
+
fragment PharmacyEventFields on PharmacyEvent {
|
|
3699
|
+
__typename
|
|
3700
|
+
... on PharmacyOpenEvent {
|
|
3701
|
+
type
|
|
3702
|
+
datetime
|
|
3703
|
+
}
|
|
3704
|
+
... on PharmacyCloseEvent {
|
|
3705
|
+
type
|
|
3706
|
+
datetime
|
|
3707
|
+
}
|
|
3708
|
+
... on PharmacyOpen24HrEvent {
|
|
3709
|
+
type
|
|
3710
|
+
}
|
|
3711
|
+
}
|
|
3712
|
+
fragment OrganizationFields on Organization {
|
|
3713
|
+
id
|
|
3714
|
+
name
|
|
3715
|
+
customer {
|
|
3716
|
+
__typename
|
|
3717
|
+
... on Customer {
|
|
3718
|
+
id
|
|
3719
|
+
name
|
|
3720
|
+
}
|
|
3721
|
+
}
|
|
3722
|
+
settings {
|
|
3723
|
+
brandColor
|
|
3724
|
+
brandLogo
|
|
3725
|
+
priorAuthorizationExceptionMessage
|
|
3726
|
+
patientUx {
|
|
3727
|
+
enablePatientRerouting
|
|
3728
|
+
enableAutomatedOps
|
|
3729
|
+
}
|
|
3730
|
+
}
|
|
3731
|
+
}
|
|
2046
3732
|
fragment PatientDemographicFields on PatientDemographic {
|
|
2047
3733
|
name {
|
|
2048
3734
|
first
|
|
@@ -2052,6 +3738,8 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
2052
3738
|
dateOfBirth
|
|
2053
3739
|
sex
|
|
2054
3740
|
gender
|
|
3741
|
+
}
|
|
3742
|
+
fragment PatientContactFields on PatientContact {
|
|
2055
3743
|
email
|
|
2056
3744
|
phone
|
|
2057
3745
|
address {
|
|
@@ -2062,6 +3750,15 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
2062
3750
|
postalCode
|
|
2063
3751
|
country
|
|
2064
3752
|
}
|
|
3753
|
+
}
|
|
3754
|
+
fragment PatientFields on Patient {
|
|
3755
|
+
id
|
|
3756
|
+
demographic {
|
|
3757
|
+
...PatientDemographicFields
|
|
3758
|
+
}
|
|
3759
|
+
contact {
|
|
3760
|
+
...PatientContactFields
|
|
3761
|
+
}
|
|
2065
3762
|
benefits {
|
|
2066
3763
|
status
|
|
2067
3764
|
entries {
|
|
@@ -2075,12 +3772,6 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
2075
3772
|
preferredPharmacy {
|
|
2076
3773
|
...PharmacyFields
|
|
2077
3774
|
}
|
|
2078
|
-
}
|
|
2079
|
-
fragment PatientFields on Patient {
|
|
2080
|
-
id
|
|
2081
|
-
demographic {
|
|
2082
|
-
...PatientDemographicFields
|
|
2083
|
-
}
|
|
2084
3775
|
clinical {
|
|
2085
3776
|
allergies {
|
|
2086
3777
|
status
|
|
@@ -2134,6 +3825,24 @@ fragment ScreeningAlertFields on ScreeningAlert {
|
|
|
2134
3825
|
}
|
|
2135
3826
|
fragment PrescriptionFields on Prescription {
|
|
2136
3827
|
id
|
|
3828
|
+
prescriber {
|
|
3829
|
+
id
|
|
3830
|
+
name {
|
|
3831
|
+
first
|
|
3832
|
+
middle
|
|
3833
|
+
last
|
|
3834
|
+
}
|
|
3835
|
+
}
|
|
3836
|
+
fulfillment {
|
|
3837
|
+
state
|
|
3838
|
+
pharmacyEstimatedReadyAt
|
|
3839
|
+
exceptions {
|
|
3840
|
+
id
|
|
3841
|
+
type
|
|
3842
|
+
message
|
|
3843
|
+
createdAt
|
|
3844
|
+
}
|
|
3845
|
+
}
|
|
2137
3846
|
templateId
|
|
2138
3847
|
patient {
|
|
2139
3848
|
id
|
|
@@ -2170,6 +3879,17 @@ fragment PrescriptionFields on Prescription {
|
|
|
2170
3879
|
fragment OrderFields on Order {
|
|
2171
3880
|
id
|
|
2172
3881
|
state
|
|
3882
|
+
offers {
|
|
3883
|
+
atPharmacy {
|
|
3884
|
+
...PharmacyOfferFields
|
|
3885
|
+
}
|
|
3886
|
+
}
|
|
3887
|
+
organization {
|
|
3888
|
+
__typename
|
|
3889
|
+
... on Organization {
|
|
3890
|
+
...OrganizationFields
|
|
3891
|
+
}
|
|
3892
|
+
}
|
|
2173
3893
|
patient {
|
|
2174
3894
|
...PatientRecordFields
|
|
2175
3895
|
}
|
|
@@ -2182,11 +3902,39 @@ fragment OrderFields on Order {
|
|
|
2182
3902
|
pharmacy {
|
|
2183
3903
|
...PharmacyFields
|
|
2184
3904
|
}
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
3905
|
+
fulfillment {
|
|
3906
|
+
state
|
|
3907
|
+
history {
|
|
3908
|
+
pharmacy {
|
|
3909
|
+
...PharmacyFields
|
|
3910
|
+
}
|
|
3911
|
+
selector
|
|
3912
|
+
reason
|
|
3913
|
+
createdAt
|
|
3914
|
+
}
|
|
3915
|
+
routability {
|
|
3916
|
+
allowed
|
|
3917
|
+
reason
|
|
3918
|
+
}
|
|
3919
|
+
exceptions {
|
|
3920
|
+
id
|
|
3921
|
+
type
|
|
3922
|
+
message
|
|
3923
|
+
createdAt
|
|
3924
|
+
}
|
|
3925
|
+
}
|
|
3926
|
+
}
|
|
3927
|
+
fragment PrescriptionTemplateFields on PrescriptionTemplate {
|
|
3928
|
+
id
|
|
3929
|
+
source
|
|
3930
|
+
name
|
|
3931
|
+
instructions
|
|
3932
|
+
dispense {
|
|
3933
|
+
quantity
|
|
3934
|
+
unit
|
|
3935
|
+
daysSupply
|
|
3936
|
+
refillsAllowed
|
|
3937
|
+
dispenseAsWritten
|
|
2190
3938
|
}
|
|
2191
3939
|
}
|
|
2192
3940
|
fragment OrderCandidateFields on OrderCandidate {
|
|
@@ -2216,15 +3964,10 @@ fragment OrderResultFields on OrderResult {
|
|
|
2216
3964
|
...OperationErrorFields
|
|
2217
3965
|
}
|
|
2218
3966
|
}`);
|
|
2219
|
-
export const
|
|
2220
|
-
mutation
|
|
3967
|
+
export const UpdateOrderDocument = new TypedDocumentString(`
|
|
3968
|
+
mutation UpdateOrder($id: ID!, $prescriptions: OrderPrescriptionsPatch, $state: OrderState, $pharmacy: OrderPharmacyInput, $metadata: RequestMetadata!) {
|
|
2221
3969
|
order(
|
|
2222
|
-
order: {
|
|
2223
|
-
id: $id
|
|
2224
|
-
patient: $patient
|
|
2225
|
-
prescriptions: $prescriptions
|
|
2226
|
-
pharmacy: $pharmacy
|
|
2227
|
-
}
|
|
3970
|
+
order: { id: $id, prescriptions: $prescriptions, state: $state, pharmacy: $pharmacy }
|
|
2228
3971
|
metadata: $metadata
|
|
2229
3972
|
) {
|
|
2230
3973
|
...OrderResultFields
|
|
@@ -2245,7 +3988,6 @@ export const SyncOrderDocument = new TypedDocumentString(`
|
|
|
2245
3988
|
strength
|
|
2246
3989
|
medicationType
|
|
2247
3990
|
schedule
|
|
2248
|
-
recommendedDispenseUnits
|
|
2249
3991
|
}
|
|
2250
3992
|
fragment ChoiceFields on Choice {
|
|
2251
3993
|
__typename
|
|
@@ -2258,11 +4000,19 @@ fragment ChoiceFields on Choice {
|
|
|
2258
4000
|
type
|
|
2259
4001
|
label
|
|
2260
4002
|
confidence
|
|
4003
|
+
value {
|
|
4004
|
+
displayValue
|
|
4005
|
+
value
|
|
4006
|
+
unit
|
|
4007
|
+
}
|
|
2261
4008
|
}
|
|
2262
4009
|
entity {
|
|
2263
4010
|
__typename
|
|
2264
4011
|
... on Treatment {
|
|
2265
4012
|
...TreatmentFields
|
|
4013
|
+
templates {
|
|
4014
|
+
...PrescriptionTemplateFields
|
|
4015
|
+
}
|
|
2266
4016
|
}
|
|
2267
4017
|
... on Pharmacy {
|
|
2268
4018
|
...PharmacyFields
|
|
@@ -2271,23 +4021,43 @@ fragment ChoiceFields on Choice {
|
|
|
2271
4021
|
}
|
|
2272
4022
|
fragment PharmacyOfferFields on PharmacyOffer {
|
|
2273
4023
|
source
|
|
4024
|
+
prescriptionId
|
|
4025
|
+
priceType
|
|
2274
4026
|
isPromoted
|
|
2275
4027
|
attributeTags {
|
|
2276
4028
|
kind
|
|
2277
4029
|
label
|
|
2278
4030
|
}
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
4031
|
+
price {
|
|
4032
|
+
amount
|
|
4033
|
+
retailAmount
|
|
4034
|
+
promotions {
|
|
4035
|
+
type
|
|
4036
|
+
baseAmount
|
|
4037
|
+
amountSaved
|
|
4038
|
+
}
|
|
2284
4039
|
}
|
|
2285
|
-
|
|
2286
|
-
prescriptionId
|
|
4040
|
+
deliveryEstimate {
|
|
2287
4041
|
deliveryPromise
|
|
2288
4042
|
deliveryPromiseRangeStart
|
|
2289
4043
|
deliveryPromiseRangeEnd
|
|
2290
4044
|
}
|
|
4045
|
+
redemptionState
|
|
4046
|
+
redemptionMethods {
|
|
4047
|
+
...RedemptionMethodFields
|
|
4048
|
+
}
|
|
4049
|
+
}
|
|
4050
|
+
fragment RedemptionMethodFields on RedemptionMethod {
|
|
4051
|
+
__typename
|
|
4052
|
+
... on PharmacyDiscountCard {
|
|
4053
|
+
id
|
|
4054
|
+
prescriptionId
|
|
4055
|
+
bin
|
|
4056
|
+
pcn
|
|
4057
|
+
group
|
|
4058
|
+
memberId
|
|
4059
|
+
externalUrl
|
|
4060
|
+
}
|
|
2291
4061
|
}
|
|
2292
4062
|
fragment ChangeFields on Change {
|
|
2293
4063
|
key
|
|
@@ -2324,6 +4094,24 @@ fragment OperationErrorFields on OperationError {
|
|
|
2324
4094
|
fragment PharmacyFields on Pharmacy {
|
|
2325
4095
|
id
|
|
2326
4096
|
name
|
|
4097
|
+
logo
|
|
4098
|
+
phone
|
|
4099
|
+
hours {
|
|
4100
|
+
openFrom
|
|
4101
|
+
openUntil
|
|
4102
|
+
dayOfWeek
|
|
4103
|
+
is24Hr
|
|
4104
|
+
timezone
|
|
4105
|
+
}
|
|
4106
|
+
isOpen
|
|
4107
|
+
nextEvents {
|
|
4108
|
+
open {
|
|
4109
|
+
...PharmacyEventFields
|
|
4110
|
+
}
|
|
4111
|
+
close {
|
|
4112
|
+
...PharmacyEventFields
|
|
4113
|
+
}
|
|
4114
|
+
}
|
|
2327
4115
|
address {
|
|
2328
4116
|
street1
|
|
2329
4117
|
street2
|
|
@@ -2338,6 +4126,40 @@ fragment PharmacyFields on Pharmacy {
|
|
|
2338
4126
|
...PharmacyOfferFields
|
|
2339
4127
|
}
|
|
2340
4128
|
}
|
|
4129
|
+
fragment PharmacyEventFields on PharmacyEvent {
|
|
4130
|
+
__typename
|
|
4131
|
+
... on PharmacyOpenEvent {
|
|
4132
|
+
type
|
|
4133
|
+
datetime
|
|
4134
|
+
}
|
|
4135
|
+
... on PharmacyCloseEvent {
|
|
4136
|
+
type
|
|
4137
|
+
datetime
|
|
4138
|
+
}
|
|
4139
|
+
... on PharmacyOpen24HrEvent {
|
|
4140
|
+
type
|
|
4141
|
+
}
|
|
4142
|
+
}
|
|
4143
|
+
fragment OrganizationFields on Organization {
|
|
4144
|
+
id
|
|
4145
|
+
name
|
|
4146
|
+
customer {
|
|
4147
|
+
__typename
|
|
4148
|
+
... on Customer {
|
|
4149
|
+
id
|
|
4150
|
+
name
|
|
4151
|
+
}
|
|
4152
|
+
}
|
|
4153
|
+
settings {
|
|
4154
|
+
brandColor
|
|
4155
|
+
brandLogo
|
|
4156
|
+
priorAuthorizationExceptionMessage
|
|
4157
|
+
patientUx {
|
|
4158
|
+
enablePatientRerouting
|
|
4159
|
+
enableAutomatedOps
|
|
4160
|
+
}
|
|
4161
|
+
}
|
|
4162
|
+
}
|
|
2341
4163
|
fragment PatientDemographicFields on PatientDemographic {
|
|
2342
4164
|
name {
|
|
2343
4165
|
first
|
|
@@ -2347,6 +4169,8 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
2347
4169
|
dateOfBirth
|
|
2348
4170
|
sex
|
|
2349
4171
|
gender
|
|
4172
|
+
}
|
|
4173
|
+
fragment PatientContactFields on PatientContact {
|
|
2350
4174
|
email
|
|
2351
4175
|
phone
|
|
2352
4176
|
address {
|
|
@@ -2357,6 +4181,15 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
2357
4181
|
postalCode
|
|
2358
4182
|
country
|
|
2359
4183
|
}
|
|
4184
|
+
}
|
|
4185
|
+
fragment PatientFields on Patient {
|
|
4186
|
+
id
|
|
4187
|
+
demographic {
|
|
4188
|
+
...PatientDemographicFields
|
|
4189
|
+
}
|
|
4190
|
+
contact {
|
|
4191
|
+
...PatientContactFields
|
|
4192
|
+
}
|
|
2360
4193
|
benefits {
|
|
2361
4194
|
status
|
|
2362
4195
|
entries {
|
|
@@ -2370,12 +4203,6 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
2370
4203
|
preferredPharmacy {
|
|
2371
4204
|
...PharmacyFields
|
|
2372
4205
|
}
|
|
2373
|
-
}
|
|
2374
|
-
fragment PatientFields on Patient {
|
|
2375
|
-
id
|
|
2376
|
-
demographic {
|
|
2377
|
-
...PatientDemographicFields
|
|
2378
|
-
}
|
|
2379
4206
|
clinical {
|
|
2380
4207
|
allergies {
|
|
2381
4208
|
status
|
|
@@ -2429,6 +4256,24 @@ fragment ScreeningAlertFields on ScreeningAlert {
|
|
|
2429
4256
|
}
|
|
2430
4257
|
fragment PrescriptionFields on Prescription {
|
|
2431
4258
|
id
|
|
4259
|
+
prescriber {
|
|
4260
|
+
id
|
|
4261
|
+
name {
|
|
4262
|
+
first
|
|
4263
|
+
middle
|
|
4264
|
+
last
|
|
4265
|
+
}
|
|
4266
|
+
}
|
|
4267
|
+
fulfillment {
|
|
4268
|
+
state
|
|
4269
|
+
pharmacyEstimatedReadyAt
|
|
4270
|
+
exceptions {
|
|
4271
|
+
id
|
|
4272
|
+
type
|
|
4273
|
+
message
|
|
4274
|
+
createdAt
|
|
4275
|
+
}
|
|
4276
|
+
}
|
|
2432
4277
|
templateId
|
|
2433
4278
|
patient {
|
|
2434
4279
|
id
|
|
@@ -2465,6 +4310,17 @@ fragment PrescriptionFields on Prescription {
|
|
|
2465
4310
|
fragment OrderFields on Order {
|
|
2466
4311
|
id
|
|
2467
4312
|
state
|
|
4313
|
+
offers {
|
|
4314
|
+
atPharmacy {
|
|
4315
|
+
...PharmacyOfferFields
|
|
4316
|
+
}
|
|
4317
|
+
}
|
|
4318
|
+
organization {
|
|
4319
|
+
__typename
|
|
4320
|
+
... on Organization {
|
|
4321
|
+
...OrganizationFields
|
|
4322
|
+
}
|
|
4323
|
+
}
|
|
2468
4324
|
patient {
|
|
2469
4325
|
...PatientRecordFields
|
|
2470
4326
|
}
|
|
@@ -2477,11 +4333,39 @@ fragment OrderFields on Order {
|
|
|
2477
4333
|
pharmacy {
|
|
2478
4334
|
...PharmacyFields
|
|
2479
4335
|
}
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
4336
|
+
fulfillment {
|
|
4337
|
+
state
|
|
4338
|
+
history {
|
|
4339
|
+
pharmacy {
|
|
4340
|
+
...PharmacyFields
|
|
4341
|
+
}
|
|
4342
|
+
selector
|
|
4343
|
+
reason
|
|
4344
|
+
createdAt
|
|
4345
|
+
}
|
|
4346
|
+
routability {
|
|
4347
|
+
allowed
|
|
4348
|
+
reason
|
|
4349
|
+
}
|
|
4350
|
+
exceptions {
|
|
4351
|
+
id
|
|
4352
|
+
type
|
|
4353
|
+
message
|
|
4354
|
+
createdAt
|
|
4355
|
+
}
|
|
4356
|
+
}
|
|
4357
|
+
}
|
|
4358
|
+
fragment PrescriptionTemplateFields on PrescriptionTemplate {
|
|
4359
|
+
id
|
|
4360
|
+
source
|
|
4361
|
+
name
|
|
4362
|
+
instructions
|
|
4363
|
+
dispense {
|
|
4364
|
+
quantity
|
|
4365
|
+
unit
|
|
4366
|
+
daysSupply
|
|
4367
|
+
refillsAllowed
|
|
4368
|
+
dispenseAsWritten
|
|
2485
4369
|
}
|
|
2486
4370
|
}
|
|
2487
4371
|
fragment OrderCandidateFields on OrderCandidate {
|
|
@@ -2511,13 +4395,32 @@ fragment OrderResultFields on OrderResult {
|
|
|
2511
4395
|
...OperationErrorFields
|
|
2512
4396
|
}
|
|
2513
4397
|
}`);
|
|
2514
|
-
export const
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
4398
|
+
export const OrdersDocument = new TypedDocumentString(`
|
|
4399
|
+
query Orders($filter: OrdersFilterInput, $limit: Int, $pharmacy: PharmacyReferenceInput, $page: PageInput, $includePharmacies: Boolean!) {
|
|
4400
|
+
orders(filter: $filter, limit: $limit) {
|
|
4401
|
+
__typename
|
|
4402
|
+
... on OrdersPayload {
|
|
4403
|
+
orders {
|
|
4404
|
+
...OrderFields
|
|
4405
|
+
routablePharmacies(pharmacy: $pharmacy, page: $page) @include(if: $includePharmacies) {
|
|
4406
|
+
options {
|
|
4407
|
+
...ChoiceFields
|
|
4408
|
+
}
|
|
4409
|
+
totalCount
|
|
4410
|
+
nextOffset
|
|
4411
|
+
}
|
|
4412
|
+
}
|
|
4413
|
+
}
|
|
4414
|
+
... on AmbiguousPatientMatch {
|
|
4415
|
+
reason
|
|
4416
|
+
candidates {
|
|
4417
|
+
id
|
|
4418
|
+
firstName
|
|
4419
|
+
lastName
|
|
4420
|
+
dateOfBirth
|
|
4421
|
+
}
|
|
4422
|
+
}
|
|
4423
|
+
...OperationErrorFields
|
|
2521
4424
|
}
|
|
2522
4425
|
}
|
|
2523
4426
|
fragment TreatmentFields on Treatment {
|
|
@@ -2535,7 +4438,6 @@ export const UpdateOrderDocument = new TypedDocumentString(`
|
|
|
2535
4438
|
strength
|
|
2536
4439
|
medicationType
|
|
2537
4440
|
schedule
|
|
2538
|
-
recommendedDispenseUnits
|
|
2539
4441
|
}
|
|
2540
4442
|
fragment ChoiceFields on Choice {
|
|
2541
4443
|
__typename
|
|
@@ -2548,11 +4450,19 @@ fragment ChoiceFields on Choice {
|
|
|
2548
4450
|
type
|
|
2549
4451
|
label
|
|
2550
4452
|
confidence
|
|
4453
|
+
value {
|
|
4454
|
+
displayValue
|
|
4455
|
+
value
|
|
4456
|
+
unit
|
|
4457
|
+
}
|
|
2551
4458
|
}
|
|
2552
4459
|
entity {
|
|
2553
4460
|
__typename
|
|
2554
4461
|
... on Treatment {
|
|
2555
4462
|
...TreatmentFields
|
|
4463
|
+
templates {
|
|
4464
|
+
...PrescriptionTemplateFields
|
|
4465
|
+
}
|
|
2556
4466
|
}
|
|
2557
4467
|
... on Pharmacy {
|
|
2558
4468
|
...PharmacyFields
|
|
@@ -2561,45 +4471,42 @@ fragment ChoiceFields on Choice {
|
|
|
2561
4471
|
}
|
|
2562
4472
|
fragment PharmacyOfferFields on PharmacyOffer {
|
|
2563
4473
|
source
|
|
4474
|
+
prescriptionId
|
|
4475
|
+
priceType
|
|
2564
4476
|
isPromoted
|
|
2565
4477
|
attributeTags {
|
|
2566
4478
|
kind
|
|
2567
4479
|
label
|
|
2568
4480
|
}
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
4481
|
+
price {
|
|
4482
|
+
amount
|
|
4483
|
+
retailAmount
|
|
4484
|
+
promotions {
|
|
4485
|
+
type
|
|
4486
|
+
baseAmount
|
|
4487
|
+
amountSaved
|
|
4488
|
+
}
|
|
2574
4489
|
}
|
|
2575
|
-
|
|
2576
|
-
prescriptionId
|
|
4490
|
+
deliveryEstimate {
|
|
2577
4491
|
deliveryPromise
|
|
2578
4492
|
deliveryPromiseRangeStart
|
|
2579
4493
|
deliveryPromiseRangeEnd
|
|
2580
4494
|
}
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
label
|
|
2585
|
-
status
|
|
2586
|
-
severity
|
|
2587
|
-
reason
|
|
2588
|
-
category
|
|
2589
|
-
operation
|
|
2590
|
-
options {
|
|
2591
|
-
...ChoiceFields
|
|
2592
|
-
}
|
|
2593
|
-
before {
|
|
2594
|
-
...ChoiceFields
|
|
2595
|
-
}
|
|
2596
|
-
after {
|
|
2597
|
-
...ChoiceFields
|
|
4495
|
+
redemptionState
|
|
4496
|
+
redemptionMethods {
|
|
4497
|
+
...RedemptionMethodFields
|
|
2598
4498
|
}
|
|
2599
4499
|
}
|
|
2600
|
-
fragment
|
|
2601
|
-
|
|
2602
|
-
|
|
4500
|
+
fragment RedemptionMethodFields on RedemptionMethod {
|
|
4501
|
+
__typename
|
|
4502
|
+
... on PharmacyDiscountCard {
|
|
4503
|
+
id
|
|
4504
|
+
prescriptionId
|
|
4505
|
+
bin
|
|
4506
|
+
pcn
|
|
4507
|
+
group
|
|
4508
|
+
memberId
|
|
4509
|
+
externalUrl
|
|
2603
4510
|
}
|
|
2604
4511
|
}
|
|
2605
4512
|
fragment OperationErrorFields on OperationError {
|
|
@@ -2614,6 +4521,24 @@ fragment OperationErrorFields on OperationError {
|
|
|
2614
4521
|
fragment PharmacyFields on Pharmacy {
|
|
2615
4522
|
id
|
|
2616
4523
|
name
|
|
4524
|
+
logo
|
|
4525
|
+
phone
|
|
4526
|
+
hours {
|
|
4527
|
+
openFrom
|
|
4528
|
+
openUntil
|
|
4529
|
+
dayOfWeek
|
|
4530
|
+
is24Hr
|
|
4531
|
+
timezone
|
|
4532
|
+
}
|
|
4533
|
+
isOpen
|
|
4534
|
+
nextEvents {
|
|
4535
|
+
open {
|
|
4536
|
+
...PharmacyEventFields
|
|
4537
|
+
}
|
|
4538
|
+
close {
|
|
4539
|
+
...PharmacyEventFields
|
|
4540
|
+
}
|
|
4541
|
+
}
|
|
2617
4542
|
address {
|
|
2618
4543
|
street1
|
|
2619
4544
|
street2
|
|
@@ -2628,6 +4553,40 @@ fragment PharmacyFields on Pharmacy {
|
|
|
2628
4553
|
...PharmacyOfferFields
|
|
2629
4554
|
}
|
|
2630
4555
|
}
|
|
4556
|
+
fragment PharmacyEventFields on PharmacyEvent {
|
|
4557
|
+
__typename
|
|
4558
|
+
... on PharmacyOpenEvent {
|
|
4559
|
+
type
|
|
4560
|
+
datetime
|
|
4561
|
+
}
|
|
4562
|
+
... on PharmacyCloseEvent {
|
|
4563
|
+
type
|
|
4564
|
+
datetime
|
|
4565
|
+
}
|
|
4566
|
+
... on PharmacyOpen24HrEvent {
|
|
4567
|
+
type
|
|
4568
|
+
}
|
|
4569
|
+
}
|
|
4570
|
+
fragment OrganizationFields on Organization {
|
|
4571
|
+
id
|
|
4572
|
+
name
|
|
4573
|
+
customer {
|
|
4574
|
+
__typename
|
|
4575
|
+
... on Customer {
|
|
4576
|
+
id
|
|
4577
|
+
name
|
|
4578
|
+
}
|
|
4579
|
+
}
|
|
4580
|
+
settings {
|
|
4581
|
+
brandColor
|
|
4582
|
+
brandLogo
|
|
4583
|
+
priorAuthorizationExceptionMessage
|
|
4584
|
+
patientUx {
|
|
4585
|
+
enablePatientRerouting
|
|
4586
|
+
enableAutomatedOps
|
|
4587
|
+
}
|
|
4588
|
+
}
|
|
4589
|
+
}
|
|
2631
4590
|
fragment PatientDemographicFields on PatientDemographic {
|
|
2632
4591
|
name {
|
|
2633
4592
|
first
|
|
@@ -2637,6 +4596,8 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
2637
4596
|
dateOfBirth
|
|
2638
4597
|
sex
|
|
2639
4598
|
gender
|
|
4599
|
+
}
|
|
4600
|
+
fragment PatientContactFields on PatientContact {
|
|
2640
4601
|
email
|
|
2641
4602
|
phone
|
|
2642
4603
|
address {
|
|
@@ -2647,6 +4608,15 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
2647
4608
|
postalCode
|
|
2648
4609
|
country
|
|
2649
4610
|
}
|
|
4611
|
+
}
|
|
4612
|
+
fragment PatientFields on Patient {
|
|
4613
|
+
id
|
|
4614
|
+
demographic {
|
|
4615
|
+
...PatientDemographicFields
|
|
4616
|
+
}
|
|
4617
|
+
contact {
|
|
4618
|
+
...PatientContactFields
|
|
4619
|
+
}
|
|
2650
4620
|
benefits {
|
|
2651
4621
|
status
|
|
2652
4622
|
entries {
|
|
@@ -2660,12 +4630,6 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
2660
4630
|
preferredPharmacy {
|
|
2661
4631
|
...PharmacyFields
|
|
2662
4632
|
}
|
|
2663
|
-
}
|
|
2664
|
-
fragment PatientFields on Patient {
|
|
2665
|
-
id
|
|
2666
|
-
demographic {
|
|
2667
|
-
...PatientDemographicFields
|
|
2668
|
-
}
|
|
2669
4633
|
clinical {
|
|
2670
4634
|
allergies {
|
|
2671
4635
|
status
|
|
@@ -2719,6 +4683,24 @@ fragment ScreeningAlertFields on ScreeningAlert {
|
|
|
2719
4683
|
}
|
|
2720
4684
|
fragment PrescriptionFields on Prescription {
|
|
2721
4685
|
id
|
|
4686
|
+
prescriber {
|
|
4687
|
+
id
|
|
4688
|
+
name {
|
|
4689
|
+
first
|
|
4690
|
+
middle
|
|
4691
|
+
last
|
|
4692
|
+
}
|
|
4693
|
+
}
|
|
4694
|
+
fulfillment {
|
|
4695
|
+
state
|
|
4696
|
+
pharmacyEstimatedReadyAt
|
|
4697
|
+
exceptions {
|
|
4698
|
+
id
|
|
4699
|
+
type
|
|
4700
|
+
message
|
|
4701
|
+
createdAt
|
|
4702
|
+
}
|
|
4703
|
+
}
|
|
2722
4704
|
templateId
|
|
2723
4705
|
patient {
|
|
2724
4706
|
id
|
|
@@ -2755,6 +4737,17 @@ fragment PrescriptionFields on Prescription {
|
|
|
2755
4737
|
fragment OrderFields on Order {
|
|
2756
4738
|
id
|
|
2757
4739
|
state
|
|
4740
|
+
offers {
|
|
4741
|
+
atPharmacy {
|
|
4742
|
+
...PharmacyOfferFields
|
|
4743
|
+
}
|
|
4744
|
+
}
|
|
4745
|
+
organization {
|
|
4746
|
+
__typename
|
|
4747
|
+
... on Organization {
|
|
4748
|
+
...OrganizationFields
|
|
4749
|
+
}
|
|
4750
|
+
}
|
|
2758
4751
|
patient {
|
|
2759
4752
|
...PatientRecordFields
|
|
2760
4753
|
}
|
|
@@ -2767,38 +4760,39 @@ fragment OrderFields on Order {
|
|
|
2767
4760
|
pharmacy {
|
|
2768
4761
|
...PharmacyFields
|
|
2769
4762
|
}
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
pharmacy {
|
|
2780
|
-
...PharmacyFields
|
|
2781
|
-
}
|
|
2782
|
-
prescriptions {
|
|
2783
|
-
...PrescriptionFields
|
|
2784
|
-
}
|
|
2785
|
-
}
|
|
2786
|
-
fragment OrderResultFields on OrderResult {
|
|
2787
|
-
__typename
|
|
2788
|
-
... on OrderPayload {
|
|
2789
|
-
order {
|
|
2790
|
-
...OrderFields
|
|
4763
|
+
fulfillment {
|
|
4764
|
+
state
|
|
4765
|
+
history {
|
|
4766
|
+
pharmacy {
|
|
4767
|
+
...PharmacyFields
|
|
4768
|
+
}
|
|
4769
|
+
selector
|
|
4770
|
+
reason
|
|
4771
|
+
createdAt
|
|
2791
4772
|
}
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
4773
|
+
routability {
|
|
4774
|
+
allowed
|
|
4775
|
+
reason
|
|
4776
|
+
}
|
|
4777
|
+
exceptions {
|
|
4778
|
+
id
|
|
4779
|
+
type
|
|
4780
|
+
message
|
|
4781
|
+
createdAt
|
|
2798
4782
|
}
|
|
2799
4783
|
}
|
|
2800
|
-
|
|
2801
|
-
|
|
4784
|
+
}
|
|
4785
|
+
fragment PrescriptionTemplateFields on PrescriptionTemplate {
|
|
4786
|
+
id
|
|
4787
|
+
source
|
|
4788
|
+
name
|
|
4789
|
+
instructions
|
|
4790
|
+
dispense {
|
|
4791
|
+
quantity
|
|
4792
|
+
unit
|
|
4793
|
+
daysSupply
|
|
4794
|
+
refillsAllowed
|
|
4795
|
+
dispenseAsWritten
|
|
2802
4796
|
}
|
|
2803
4797
|
}`);
|
|
2804
4798
|
export const GetPatientDocument = new TypedDocumentString(`
|
|
@@ -2822,7 +4816,6 @@ export const GetPatientDocument = new TypedDocumentString(`
|
|
|
2822
4816
|
strength
|
|
2823
4817
|
medicationType
|
|
2824
4818
|
schedule
|
|
2825
|
-
recommendedDispenseUnits
|
|
2826
4819
|
}
|
|
2827
4820
|
fragment ChoiceFields on Choice {
|
|
2828
4821
|
__typename
|
|
@@ -2835,11 +4828,19 @@ fragment ChoiceFields on Choice {
|
|
|
2835
4828
|
type
|
|
2836
4829
|
label
|
|
2837
4830
|
confidence
|
|
4831
|
+
value {
|
|
4832
|
+
displayValue
|
|
4833
|
+
value
|
|
4834
|
+
unit
|
|
4835
|
+
}
|
|
2838
4836
|
}
|
|
2839
4837
|
entity {
|
|
2840
4838
|
__typename
|
|
2841
4839
|
... on Treatment {
|
|
2842
4840
|
...TreatmentFields
|
|
4841
|
+
templates {
|
|
4842
|
+
...PrescriptionTemplateFields
|
|
4843
|
+
}
|
|
2843
4844
|
}
|
|
2844
4845
|
... on Pharmacy {
|
|
2845
4846
|
...PharmacyFields
|
|
@@ -2848,23 +4849,43 @@ fragment ChoiceFields on Choice {
|
|
|
2848
4849
|
}
|
|
2849
4850
|
fragment PharmacyOfferFields on PharmacyOffer {
|
|
2850
4851
|
source
|
|
4852
|
+
prescriptionId
|
|
4853
|
+
priceType
|
|
2851
4854
|
isPromoted
|
|
2852
4855
|
attributeTags {
|
|
2853
4856
|
kind
|
|
2854
4857
|
label
|
|
2855
4858
|
}
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
4859
|
+
price {
|
|
4860
|
+
amount
|
|
4861
|
+
retailAmount
|
|
4862
|
+
promotions {
|
|
4863
|
+
type
|
|
4864
|
+
baseAmount
|
|
4865
|
+
amountSaved
|
|
4866
|
+
}
|
|
2861
4867
|
}
|
|
2862
|
-
|
|
2863
|
-
prescriptionId
|
|
4868
|
+
deliveryEstimate {
|
|
2864
4869
|
deliveryPromise
|
|
2865
4870
|
deliveryPromiseRangeStart
|
|
2866
4871
|
deliveryPromiseRangeEnd
|
|
2867
4872
|
}
|
|
4873
|
+
redemptionState
|
|
4874
|
+
redemptionMethods {
|
|
4875
|
+
...RedemptionMethodFields
|
|
4876
|
+
}
|
|
4877
|
+
}
|
|
4878
|
+
fragment RedemptionMethodFields on RedemptionMethod {
|
|
4879
|
+
__typename
|
|
4880
|
+
... on PharmacyDiscountCard {
|
|
4881
|
+
id
|
|
4882
|
+
prescriptionId
|
|
4883
|
+
bin
|
|
4884
|
+
pcn
|
|
4885
|
+
group
|
|
4886
|
+
memberId
|
|
4887
|
+
externalUrl
|
|
4888
|
+
}
|
|
2868
4889
|
}
|
|
2869
4890
|
fragment ChangeFields on Change {
|
|
2870
4891
|
key
|
|
@@ -2901,6 +4922,24 @@ fragment OperationErrorFields on OperationError {
|
|
|
2901
4922
|
fragment PharmacyFields on Pharmacy {
|
|
2902
4923
|
id
|
|
2903
4924
|
name
|
|
4925
|
+
logo
|
|
4926
|
+
phone
|
|
4927
|
+
hours {
|
|
4928
|
+
openFrom
|
|
4929
|
+
openUntil
|
|
4930
|
+
dayOfWeek
|
|
4931
|
+
is24Hr
|
|
4932
|
+
timezone
|
|
4933
|
+
}
|
|
4934
|
+
isOpen
|
|
4935
|
+
nextEvents {
|
|
4936
|
+
open {
|
|
4937
|
+
...PharmacyEventFields
|
|
4938
|
+
}
|
|
4939
|
+
close {
|
|
4940
|
+
...PharmacyEventFields
|
|
4941
|
+
}
|
|
4942
|
+
}
|
|
2904
4943
|
address {
|
|
2905
4944
|
street1
|
|
2906
4945
|
street2
|
|
@@ -2915,6 +4954,20 @@ fragment PharmacyFields on Pharmacy {
|
|
|
2915
4954
|
...PharmacyOfferFields
|
|
2916
4955
|
}
|
|
2917
4956
|
}
|
|
4957
|
+
fragment PharmacyEventFields on PharmacyEvent {
|
|
4958
|
+
__typename
|
|
4959
|
+
... on PharmacyOpenEvent {
|
|
4960
|
+
type
|
|
4961
|
+
datetime
|
|
4962
|
+
}
|
|
4963
|
+
... on PharmacyCloseEvent {
|
|
4964
|
+
type
|
|
4965
|
+
datetime
|
|
4966
|
+
}
|
|
4967
|
+
... on PharmacyOpen24HrEvent {
|
|
4968
|
+
type
|
|
4969
|
+
}
|
|
4970
|
+
}
|
|
2918
4971
|
fragment PatientDemographicFields on PatientDemographic {
|
|
2919
4972
|
name {
|
|
2920
4973
|
first
|
|
@@ -2924,6 +4977,8 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
2924
4977
|
dateOfBirth
|
|
2925
4978
|
sex
|
|
2926
4979
|
gender
|
|
4980
|
+
}
|
|
4981
|
+
fragment PatientContactFields on PatientContact {
|
|
2927
4982
|
email
|
|
2928
4983
|
phone
|
|
2929
4984
|
address {
|
|
@@ -2934,6 +4989,15 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
2934
4989
|
postalCode
|
|
2935
4990
|
country
|
|
2936
4991
|
}
|
|
4992
|
+
}
|
|
4993
|
+
fragment PatientFields on Patient {
|
|
4994
|
+
id
|
|
4995
|
+
demographic {
|
|
4996
|
+
...PatientDemographicFields
|
|
4997
|
+
}
|
|
4998
|
+
contact {
|
|
4999
|
+
...PatientContactFields
|
|
5000
|
+
}
|
|
2937
5001
|
benefits {
|
|
2938
5002
|
status
|
|
2939
5003
|
entries {
|
|
@@ -2947,12 +5011,6 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
2947
5011
|
preferredPharmacy {
|
|
2948
5012
|
...PharmacyFields
|
|
2949
5013
|
}
|
|
2950
|
-
}
|
|
2951
|
-
fragment PatientFields on Patient {
|
|
2952
|
-
id
|
|
2953
|
-
demographic {
|
|
2954
|
-
...PatientDemographicFields
|
|
2955
|
-
}
|
|
2956
5014
|
clinical {
|
|
2957
5015
|
allergies {
|
|
2958
5016
|
status
|
|
@@ -2991,6 +5049,19 @@ fragment PatientRecordFields on PatientRecordResult {
|
|
|
2991
5049
|
...OperationErrorFields
|
|
2992
5050
|
}
|
|
2993
5051
|
}
|
|
5052
|
+
fragment PrescriptionTemplateFields on PrescriptionTemplate {
|
|
5053
|
+
id
|
|
5054
|
+
source
|
|
5055
|
+
name
|
|
5056
|
+
instructions
|
|
5057
|
+
dispense {
|
|
5058
|
+
quantity
|
|
5059
|
+
unit
|
|
5060
|
+
daysSupply
|
|
5061
|
+
refillsAllowed
|
|
5062
|
+
dispenseAsWritten
|
|
5063
|
+
}
|
|
5064
|
+
}
|
|
2994
5065
|
fragment PatientResultFields on PatientResult {
|
|
2995
5066
|
__typename
|
|
2996
5067
|
... on PatientPayload {
|
|
@@ -3013,9 +5084,16 @@ fragment PatientResultFields on PatientResult {
|
|
|
3013
5084
|
}
|
|
3014
5085
|
}`);
|
|
3015
5086
|
export const SyncPatientDocument = new TypedDocumentString(`
|
|
3016
|
-
mutation SyncPatient($id: ID, $demographic: PatientDemographicInput, $clinical: PatientClinicalInput, $metadata: RequestMetadata!) {
|
|
5087
|
+
mutation SyncPatient($id: ID, $demographic: PatientDemographicInput, $contact: PatientContactInput, $clinical: PatientClinicalInput, $benefits: BenefitsPatch, $preferredPharmacy: PharmacyReferenceInput, $metadata: RequestMetadata!) {
|
|
3017
5088
|
patient(
|
|
3018
|
-
patient: {
|
|
5089
|
+
patient: {
|
|
5090
|
+
id: $id
|
|
5091
|
+
demographic: $demographic
|
|
5092
|
+
contact: $contact
|
|
5093
|
+
clinical: $clinical
|
|
5094
|
+
benefits: $benefits
|
|
5095
|
+
preferredPharmacy: $preferredPharmacy
|
|
5096
|
+
}
|
|
3019
5097
|
metadata: $metadata
|
|
3020
5098
|
) {
|
|
3021
5099
|
...PatientResultFields
|
|
@@ -3036,7 +5114,6 @@ export const SyncPatientDocument = new TypedDocumentString(`
|
|
|
3036
5114
|
strength
|
|
3037
5115
|
medicationType
|
|
3038
5116
|
schedule
|
|
3039
|
-
recommendedDispenseUnits
|
|
3040
5117
|
}
|
|
3041
5118
|
fragment ChoiceFields on Choice {
|
|
3042
5119
|
__typename
|
|
@@ -3049,11 +5126,19 @@ fragment ChoiceFields on Choice {
|
|
|
3049
5126
|
type
|
|
3050
5127
|
label
|
|
3051
5128
|
confidence
|
|
5129
|
+
value {
|
|
5130
|
+
displayValue
|
|
5131
|
+
value
|
|
5132
|
+
unit
|
|
5133
|
+
}
|
|
3052
5134
|
}
|
|
3053
5135
|
entity {
|
|
3054
5136
|
__typename
|
|
3055
5137
|
... on Treatment {
|
|
3056
5138
|
...TreatmentFields
|
|
5139
|
+
templates {
|
|
5140
|
+
...PrescriptionTemplateFields
|
|
5141
|
+
}
|
|
3057
5142
|
}
|
|
3058
5143
|
... on Pharmacy {
|
|
3059
5144
|
...PharmacyFields
|
|
@@ -3062,23 +5147,43 @@ fragment ChoiceFields on Choice {
|
|
|
3062
5147
|
}
|
|
3063
5148
|
fragment PharmacyOfferFields on PharmacyOffer {
|
|
3064
5149
|
source
|
|
5150
|
+
prescriptionId
|
|
5151
|
+
priceType
|
|
3065
5152
|
isPromoted
|
|
3066
5153
|
attributeTags {
|
|
3067
5154
|
kind
|
|
3068
5155
|
label
|
|
3069
5156
|
}
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
5157
|
+
price {
|
|
5158
|
+
amount
|
|
5159
|
+
retailAmount
|
|
5160
|
+
promotions {
|
|
5161
|
+
type
|
|
5162
|
+
baseAmount
|
|
5163
|
+
amountSaved
|
|
5164
|
+
}
|
|
3075
5165
|
}
|
|
3076
|
-
|
|
3077
|
-
prescriptionId
|
|
5166
|
+
deliveryEstimate {
|
|
3078
5167
|
deliveryPromise
|
|
3079
5168
|
deliveryPromiseRangeStart
|
|
3080
5169
|
deliveryPromiseRangeEnd
|
|
3081
5170
|
}
|
|
5171
|
+
redemptionState
|
|
5172
|
+
redemptionMethods {
|
|
5173
|
+
...RedemptionMethodFields
|
|
5174
|
+
}
|
|
5175
|
+
}
|
|
5176
|
+
fragment RedemptionMethodFields on RedemptionMethod {
|
|
5177
|
+
__typename
|
|
5178
|
+
... on PharmacyDiscountCard {
|
|
5179
|
+
id
|
|
5180
|
+
prescriptionId
|
|
5181
|
+
bin
|
|
5182
|
+
pcn
|
|
5183
|
+
group
|
|
5184
|
+
memberId
|
|
5185
|
+
externalUrl
|
|
5186
|
+
}
|
|
3082
5187
|
}
|
|
3083
5188
|
fragment ChangeFields on Change {
|
|
3084
5189
|
key
|
|
@@ -3115,6 +5220,24 @@ fragment OperationErrorFields on OperationError {
|
|
|
3115
5220
|
fragment PharmacyFields on Pharmacy {
|
|
3116
5221
|
id
|
|
3117
5222
|
name
|
|
5223
|
+
logo
|
|
5224
|
+
phone
|
|
5225
|
+
hours {
|
|
5226
|
+
openFrom
|
|
5227
|
+
openUntil
|
|
5228
|
+
dayOfWeek
|
|
5229
|
+
is24Hr
|
|
5230
|
+
timezone
|
|
5231
|
+
}
|
|
5232
|
+
isOpen
|
|
5233
|
+
nextEvents {
|
|
5234
|
+
open {
|
|
5235
|
+
...PharmacyEventFields
|
|
5236
|
+
}
|
|
5237
|
+
close {
|
|
5238
|
+
...PharmacyEventFields
|
|
5239
|
+
}
|
|
5240
|
+
}
|
|
3118
5241
|
address {
|
|
3119
5242
|
street1
|
|
3120
5243
|
street2
|
|
@@ -3129,6 +5252,20 @@ fragment PharmacyFields on Pharmacy {
|
|
|
3129
5252
|
...PharmacyOfferFields
|
|
3130
5253
|
}
|
|
3131
5254
|
}
|
|
5255
|
+
fragment PharmacyEventFields on PharmacyEvent {
|
|
5256
|
+
__typename
|
|
5257
|
+
... on PharmacyOpenEvent {
|
|
5258
|
+
type
|
|
5259
|
+
datetime
|
|
5260
|
+
}
|
|
5261
|
+
... on PharmacyCloseEvent {
|
|
5262
|
+
type
|
|
5263
|
+
datetime
|
|
5264
|
+
}
|
|
5265
|
+
... on PharmacyOpen24HrEvent {
|
|
5266
|
+
type
|
|
5267
|
+
}
|
|
5268
|
+
}
|
|
3132
5269
|
fragment PatientDemographicFields on PatientDemographic {
|
|
3133
5270
|
name {
|
|
3134
5271
|
first
|
|
@@ -3138,6 +5275,8 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
3138
5275
|
dateOfBirth
|
|
3139
5276
|
sex
|
|
3140
5277
|
gender
|
|
5278
|
+
}
|
|
5279
|
+
fragment PatientContactFields on PatientContact {
|
|
3141
5280
|
email
|
|
3142
5281
|
phone
|
|
3143
5282
|
address {
|
|
@@ -3148,6 +5287,15 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
3148
5287
|
postalCode
|
|
3149
5288
|
country
|
|
3150
5289
|
}
|
|
5290
|
+
}
|
|
5291
|
+
fragment PatientFields on Patient {
|
|
5292
|
+
id
|
|
5293
|
+
demographic {
|
|
5294
|
+
...PatientDemographicFields
|
|
5295
|
+
}
|
|
5296
|
+
contact {
|
|
5297
|
+
...PatientContactFields
|
|
5298
|
+
}
|
|
3151
5299
|
benefits {
|
|
3152
5300
|
status
|
|
3153
5301
|
entries {
|
|
@@ -3161,12 +5309,6 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
3161
5309
|
preferredPharmacy {
|
|
3162
5310
|
...PharmacyFields
|
|
3163
5311
|
}
|
|
3164
|
-
}
|
|
3165
|
-
fragment PatientFields on Patient {
|
|
3166
|
-
id
|
|
3167
|
-
demographic {
|
|
3168
|
-
...PatientDemographicFields
|
|
3169
|
-
}
|
|
3170
5312
|
clinical {
|
|
3171
5313
|
allergies {
|
|
3172
5314
|
status
|
|
@@ -3205,6 +5347,19 @@ fragment PatientRecordFields on PatientRecordResult {
|
|
|
3205
5347
|
...OperationErrorFields
|
|
3206
5348
|
}
|
|
3207
5349
|
}
|
|
5350
|
+
fragment PrescriptionTemplateFields on PrescriptionTemplate {
|
|
5351
|
+
id
|
|
5352
|
+
source
|
|
5353
|
+
name
|
|
5354
|
+
instructions
|
|
5355
|
+
dispense {
|
|
5356
|
+
quantity
|
|
5357
|
+
unit
|
|
5358
|
+
daysSupply
|
|
5359
|
+
refillsAllowed
|
|
5360
|
+
dispenseAsWritten
|
|
5361
|
+
}
|
|
5362
|
+
}
|
|
3208
5363
|
fragment PatientResultFields on PatientResult {
|
|
3209
5364
|
__typename
|
|
3210
5365
|
... on PatientPayload {
|
|
@@ -3227,9 +5382,16 @@ fragment PatientResultFields on PatientResult {
|
|
|
3227
5382
|
}
|
|
3228
5383
|
}`);
|
|
3229
5384
|
export const UpdatePatientDocument = new TypedDocumentString(`
|
|
3230
|
-
mutation UpdatePatient($id: ID!, $demographic: PatientDemographicInput, $clinical: PatientClinicalInput, $metadata: RequestMetadata!) {
|
|
5385
|
+
mutation UpdatePatient($id: ID!, $demographic: PatientDemographicInput, $contact: PatientContactInput, $clinical: PatientClinicalInput, $benefits: BenefitsPatch, $preferredPharmacy: PharmacyReferenceInput, $metadata: RequestMetadata!) {
|
|
3231
5386
|
patient(
|
|
3232
|
-
patient: {
|
|
5387
|
+
patient: {
|
|
5388
|
+
id: $id
|
|
5389
|
+
demographic: $demographic
|
|
5390
|
+
contact: $contact
|
|
5391
|
+
clinical: $clinical
|
|
5392
|
+
benefits: $benefits
|
|
5393
|
+
preferredPharmacy: $preferredPharmacy
|
|
5394
|
+
}
|
|
3233
5395
|
metadata: $metadata
|
|
3234
5396
|
) {
|
|
3235
5397
|
...PatientResultFields
|
|
@@ -3250,7 +5412,6 @@ export const UpdatePatientDocument = new TypedDocumentString(`
|
|
|
3250
5412
|
strength
|
|
3251
5413
|
medicationType
|
|
3252
5414
|
schedule
|
|
3253
|
-
recommendedDispenseUnits
|
|
3254
5415
|
}
|
|
3255
5416
|
fragment ChoiceFields on Choice {
|
|
3256
5417
|
__typename
|
|
@@ -3263,11 +5424,19 @@ fragment ChoiceFields on Choice {
|
|
|
3263
5424
|
type
|
|
3264
5425
|
label
|
|
3265
5426
|
confidence
|
|
5427
|
+
value {
|
|
5428
|
+
displayValue
|
|
5429
|
+
value
|
|
5430
|
+
unit
|
|
5431
|
+
}
|
|
3266
5432
|
}
|
|
3267
5433
|
entity {
|
|
3268
5434
|
__typename
|
|
3269
5435
|
... on Treatment {
|
|
3270
5436
|
...TreatmentFields
|
|
5437
|
+
templates {
|
|
5438
|
+
...PrescriptionTemplateFields
|
|
5439
|
+
}
|
|
3271
5440
|
}
|
|
3272
5441
|
... on Pharmacy {
|
|
3273
5442
|
...PharmacyFields
|
|
@@ -3276,23 +5445,43 @@ fragment ChoiceFields on Choice {
|
|
|
3276
5445
|
}
|
|
3277
5446
|
fragment PharmacyOfferFields on PharmacyOffer {
|
|
3278
5447
|
source
|
|
5448
|
+
prescriptionId
|
|
5449
|
+
priceType
|
|
3279
5450
|
isPromoted
|
|
3280
5451
|
attributeTags {
|
|
3281
5452
|
kind
|
|
3282
5453
|
label
|
|
3283
5454
|
}
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
5455
|
+
price {
|
|
5456
|
+
amount
|
|
5457
|
+
retailAmount
|
|
5458
|
+
promotions {
|
|
5459
|
+
type
|
|
5460
|
+
baseAmount
|
|
5461
|
+
amountSaved
|
|
5462
|
+
}
|
|
3289
5463
|
}
|
|
3290
|
-
|
|
3291
|
-
prescriptionId
|
|
5464
|
+
deliveryEstimate {
|
|
3292
5465
|
deliveryPromise
|
|
3293
5466
|
deliveryPromiseRangeStart
|
|
3294
5467
|
deliveryPromiseRangeEnd
|
|
3295
5468
|
}
|
|
5469
|
+
redemptionState
|
|
5470
|
+
redemptionMethods {
|
|
5471
|
+
...RedemptionMethodFields
|
|
5472
|
+
}
|
|
5473
|
+
}
|
|
5474
|
+
fragment RedemptionMethodFields on RedemptionMethod {
|
|
5475
|
+
__typename
|
|
5476
|
+
... on PharmacyDiscountCard {
|
|
5477
|
+
id
|
|
5478
|
+
prescriptionId
|
|
5479
|
+
bin
|
|
5480
|
+
pcn
|
|
5481
|
+
group
|
|
5482
|
+
memberId
|
|
5483
|
+
externalUrl
|
|
5484
|
+
}
|
|
3296
5485
|
}
|
|
3297
5486
|
fragment ChangeFields on Change {
|
|
3298
5487
|
key
|
|
@@ -3329,6 +5518,24 @@ fragment OperationErrorFields on OperationError {
|
|
|
3329
5518
|
fragment PharmacyFields on Pharmacy {
|
|
3330
5519
|
id
|
|
3331
5520
|
name
|
|
5521
|
+
logo
|
|
5522
|
+
phone
|
|
5523
|
+
hours {
|
|
5524
|
+
openFrom
|
|
5525
|
+
openUntil
|
|
5526
|
+
dayOfWeek
|
|
5527
|
+
is24Hr
|
|
5528
|
+
timezone
|
|
5529
|
+
}
|
|
5530
|
+
isOpen
|
|
5531
|
+
nextEvents {
|
|
5532
|
+
open {
|
|
5533
|
+
...PharmacyEventFields
|
|
5534
|
+
}
|
|
5535
|
+
close {
|
|
5536
|
+
...PharmacyEventFields
|
|
5537
|
+
}
|
|
5538
|
+
}
|
|
3332
5539
|
address {
|
|
3333
5540
|
street1
|
|
3334
5541
|
street2
|
|
@@ -3343,6 +5550,20 @@ fragment PharmacyFields on Pharmacy {
|
|
|
3343
5550
|
...PharmacyOfferFields
|
|
3344
5551
|
}
|
|
3345
5552
|
}
|
|
5553
|
+
fragment PharmacyEventFields on PharmacyEvent {
|
|
5554
|
+
__typename
|
|
5555
|
+
... on PharmacyOpenEvent {
|
|
5556
|
+
type
|
|
5557
|
+
datetime
|
|
5558
|
+
}
|
|
5559
|
+
... on PharmacyCloseEvent {
|
|
5560
|
+
type
|
|
5561
|
+
datetime
|
|
5562
|
+
}
|
|
5563
|
+
... on PharmacyOpen24HrEvent {
|
|
5564
|
+
type
|
|
5565
|
+
}
|
|
5566
|
+
}
|
|
3346
5567
|
fragment PatientDemographicFields on PatientDemographic {
|
|
3347
5568
|
name {
|
|
3348
5569
|
first
|
|
@@ -3352,6 +5573,8 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
3352
5573
|
dateOfBirth
|
|
3353
5574
|
sex
|
|
3354
5575
|
gender
|
|
5576
|
+
}
|
|
5577
|
+
fragment PatientContactFields on PatientContact {
|
|
3355
5578
|
email
|
|
3356
5579
|
phone
|
|
3357
5580
|
address {
|
|
@@ -3362,6 +5585,15 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
3362
5585
|
postalCode
|
|
3363
5586
|
country
|
|
3364
5587
|
}
|
|
5588
|
+
}
|
|
5589
|
+
fragment PatientFields on Patient {
|
|
5590
|
+
id
|
|
5591
|
+
demographic {
|
|
5592
|
+
...PatientDemographicFields
|
|
5593
|
+
}
|
|
5594
|
+
contact {
|
|
5595
|
+
...PatientContactFields
|
|
5596
|
+
}
|
|
3365
5597
|
benefits {
|
|
3366
5598
|
status
|
|
3367
5599
|
entries {
|
|
@@ -3375,12 +5607,6 @@ fragment PatientDemographicFields on PatientDemographic {
|
|
|
3375
5607
|
preferredPharmacy {
|
|
3376
5608
|
...PharmacyFields
|
|
3377
5609
|
}
|
|
3378
|
-
}
|
|
3379
|
-
fragment PatientFields on Patient {
|
|
3380
|
-
id
|
|
3381
|
-
demographic {
|
|
3382
|
-
...PatientDemographicFields
|
|
3383
|
-
}
|
|
3384
5610
|
clinical {
|
|
3385
5611
|
allergies {
|
|
3386
5612
|
status
|
|
@@ -3419,6 +5645,19 @@ fragment PatientRecordFields on PatientRecordResult {
|
|
|
3419
5645
|
...OperationErrorFields
|
|
3420
5646
|
}
|
|
3421
5647
|
}
|
|
5648
|
+
fragment PrescriptionTemplateFields on PrescriptionTemplate {
|
|
5649
|
+
id
|
|
5650
|
+
source
|
|
5651
|
+
name
|
|
5652
|
+
instructions
|
|
5653
|
+
dispense {
|
|
5654
|
+
quantity
|
|
5655
|
+
unit
|
|
5656
|
+
daysSupply
|
|
5657
|
+
refillsAllowed
|
|
5658
|
+
dispenseAsWritten
|
|
5659
|
+
}
|
|
5660
|
+
}
|
|
3422
5661
|
fragment PatientResultFields on PatientResult {
|
|
3423
5662
|
__typename
|
|
3424
5663
|
... on PatientPayload {
|
|
@@ -3461,7 +5700,6 @@ export const GetPrescriptionDocument = new TypedDocumentString(`
|
|
|
3461
5700
|
strength
|
|
3462
5701
|
medicationType
|
|
3463
5702
|
schedule
|
|
3464
|
-
recommendedDispenseUnits
|
|
3465
5703
|
}
|
|
3466
5704
|
fragment ChoiceFields on Choice {
|
|
3467
5705
|
__typename
|
|
@@ -3474,11 +5712,19 @@ fragment ChoiceFields on Choice {
|
|
|
3474
5712
|
type
|
|
3475
5713
|
label
|
|
3476
5714
|
confidence
|
|
5715
|
+
value {
|
|
5716
|
+
displayValue
|
|
5717
|
+
value
|
|
5718
|
+
unit
|
|
5719
|
+
}
|
|
3477
5720
|
}
|
|
3478
5721
|
entity {
|
|
3479
5722
|
__typename
|
|
3480
5723
|
... on Treatment {
|
|
3481
5724
|
...TreatmentFields
|
|
5725
|
+
templates {
|
|
5726
|
+
...PrescriptionTemplateFields
|
|
5727
|
+
}
|
|
3482
5728
|
}
|
|
3483
5729
|
... on Pharmacy {
|
|
3484
5730
|
...PharmacyFields
|
|
@@ -3487,23 +5733,43 @@ fragment ChoiceFields on Choice {
|
|
|
3487
5733
|
}
|
|
3488
5734
|
fragment PharmacyOfferFields on PharmacyOffer {
|
|
3489
5735
|
source
|
|
5736
|
+
prescriptionId
|
|
5737
|
+
priceType
|
|
3490
5738
|
isPromoted
|
|
3491
5739
|
attributeTags {
|
|
3492
5740
|
kind
|
|
3493
5741
|
label
|
|
3494
5742
|
}
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
5743
|
+
price {
|
|
5744
|
+
amount
|
|
5745
|
+
retailAmount
|
|
5746
|
+
promotions {
|
|
5747
|
+
type
|
|
5748
|
+
baseAmount
|
|
5749
|
+
amountSaved
|
|
5750
|
+
}
|
|
3500
5751
|
}
|
|
3501
|
-
|
|
3502
|
-
prescriptionId
|
|
5752
|
+
deliveryEstimate {
|
|
3503
5753
|
deliveryPromise
|
|
3504
5754
|
deliveryPromiseRangeStart
|
|
3505
5755
|
deliveryPromiseRangeEnd
|
|
3506
5756
|
}
|
|
5757
|
+
redemptionState
|
|
5758
|
+
redemptionMethods {
|
|
5759
|
+
...RedemptionMethodFields
|
|
5760
|
+
}
|
|
5761
|
+
}
|
|
5762
|
+
fragment RedemptionMethodFields on RedemptionMethod {
|
|
5763
|
+
__typename
|
|
5764
|
+
... on PharmacyDiscountCard {
|
|
5765
|
+
id
|
|
5766
|
+
prescriptionId
|
|
5767
|
+
bin
|
|
5768
|
+
pcn
|
|
5769
|
+
group
|
|
5770
|
+
memberId
|
|
5771
|
+
externalUrl
|
|
5772
|
+
}
|
|
3507
5773
|
}
|
|
3508
5774
|
fragment ChangeFields on Change {
|
|
3509
5775
|
key
|
|
@@ -3540,6 +5806,24 @@ fragment OperationErrorFields on OperationError {
|
|
|
3540
5806
|
fragment PharmacyFields on Pharmacy {
|
|
3541
5807
|
id
|
|
3542
5808
|
name
|
|
5809
|
+
logo
|
|
5810
|
+
phone
|
|
5811
|
+
hours {
|
|
5812
|
+
openFrom
|
|
5813
|
+
openUntil
|
|
5814
|
+
dayOfWeek
|
|
5815
|
+
is24Hr
|
|
5816
|
+
timezone
|
|
5817
|
+
}
|
|
5818
|
+
isOpen
|
|
5819
|
+
nextEvents {
|
|
5820
|
+
open {
|
|
5821
|
+
...PharmacyEventFields
|
|
5822
|
+
}
|
|
5823
|
+
close {
|
|
5824
|
+
...PharmacyEventFields
|
|
5825
|
+
}
|
|
5826
|
+
}
|
|
3543
5827
|
address {
|
|
3544
5828
|
street1
|
|
3545
5829
|
street2
|
|
@@ -3554,6 +5838,20 @@ fragment PharmacyFields on Pharmacy {
|
|
|
3554
5838
|
...PharmacyOfferFields
|
|
3555
5839
|
}
|
|
3556
5840
|
}
|
|
5841
|
+
fragment PharmacyEventFields on PharmacyEvent {
|
|
5842
|
+
__typename
|
|
5843
|
+
... on PharmacyOpenEvent {
|
|
5844
|
+
type
|
|
5845
|
+
datetime
|
|
5846
|
+
}
|
|
5847
|
+
... on PharmacyCloseEvent {
|
|
5848
|
+
type
|
|
5849
|
+
datetime
|
|
5850
|
+
}
|
|
5851
|
+
... on PharmacyOpen24HrEvent {
|
|
5852
|
+
type
|
|
5853
|
+
}
|
|
5854
|
+
}
|
|
3557
5855
|
fragment ScreeningAlertFields on ScreeningAlert {
|
|
3558
5856
|
severity
|
|
3559
5857
|
type
|
|
@@ -3569,6 +5867,24 @@ fragment ScreeningAlertFields on ScreeningAlert {
|
|
|
3569
5867
|
}
|
|
3570
5868
|
fragment PrescriptionFields on Prescription {
|
|
3571
5869
|
id
|
|
5870
|
+
prescriber {
|
|
5871
|
+
id
|
|
5872
|
+
name {
|
|
5873
|
+
first
|
|
5874
|
+
middle
|
|
5875
|
+
last
|
|
5876
|
+
}
|
|
5877
|
+
}
|
|
5878
|
+
fulfillment {
|
|
5879
|
+
state
|
|
5880
|
+
pharmacyEstimatedReadyAt
|
|
5881
|
+
exceptions {
|
|
5882
|
+
id
|
|
5883
|
+
type
|
|
5884
|
+
message
|
|
5885
|
+
createdAt
|
|
5886
|
+
}
|
|
5887
|
+
}
|
|
3572
5888
|
templateId
|
|
3573
5889
|
patient {
|
|
3574
5890
|
id
|
|
@@ -3602,6 +5918,19 @@ fragment PrescriptionFields on Prescription {
|
|
|
3602
5918
|
signedAt
|
|
3603
5919
|
}
|
|
3604
5920
|
}
|
|
5921
|
+
fragment PrescriptionTemplateFields on PrescriptionTemplate {
|
|
5922
|
+
id
|
|
5923
|
+
source
|
|
5924
|
+
name
|
|
5925
|
+
instructions
|
|
5926
|
+
dispense {
|
|
5927
|
+
quantity
|
|
5928
|
+
unit
|
|
5929
|
+
daysSupply
|
|
5930
|
+
refillsAllowed
|
|
5931
|
+
dispenseAsWritten
|
|
5932
|
+
}
|
|
5933
|
+
}
|
|
3605
5934
|
fragment PrescriptionResultFields on PrescriptionResult {
|
|
3606
5935
|
__typename
|
|
3607
5936
|
... on PrescriptionPayload {
|
|
@@ -3628,6 +5957,46 @@ fragment PrescriptionResultFields on PrescriptionResult {
|
|
|
3628
5957
|
...OperationErrorFields
|
|
3629
5958
|
}
|
|
3630
5959
|
}`);
|
|
5960
|
+
export const GetPrescriptionTemplatesDocument = new TypedDocumentString(`
|
|
5961
|
+
mutation GetPrescriptionTemplates($id: ID!, $metadata: RequestMetadata!) {
|
|
5962
|
+
prescription(prescription: { id: $id }, metadata: $metadata) {
|
|
5963
|
+
__typename
|
|
5964
|
+
... on PrescriptionPayload {
|
|
5965
|
+
prescription {
|
|
5966
|
+
treatment {
|
|
5967
|
+
templates {
|
|
5968
|
+
...PrescriptionTemplateFields
|
|
5969
|
+
}
|
|
5970
|
+
}
|
|
5971
|
+
}
|
|
5972
|
+
}
|
|
5973
|
+
... on OperationError {
|
|
5974
|
+
...OperationErrorFields
|
|
5975
|
+
}
|
|
5976
|
+
}
|
|
5977
|
+
}
|
|
5978
|
+
fragment OperationErrorFields on OperationError {
|
|
5979
|
+
__typename
|
|
5980
|
+
type
|
|
5981
|
+
code
|
|
5982
|
+
message
|
|
5983
|
+
requiredPermission
|
|
5984
|
+
service
|
|
5985
|
+
retryable
|
|
5986
|
+
}
|
|
5987
|
+
fragment PrescriptionTemplateFields on PrescriptionTemplate {
|
|
5988
|
+
id
|
|
5989
|
+
source
|
|
5990
|
+
name
|
|
5991
|
+
instructions
|
|
5992
|
+
dispense {
|
|
5993
|
+
quantity
|
|
5994
|
+
unit
|
|
5995
|
+
daysSupply
|
|
5996
|
+
refillsAllowed
|
|
5997
|
+
dispenseAsWritten
|
|
5998
|
+
}
|
|
5999
|
+
}`);
|
|
3631
6000
|
export const SyncPrescriptionDocument = new TypedDocumentString(`
|
|
3632
6001
|
mutation SyncPrescription($id: ID, $externalId: String, $patient: PatientReferenceInput, $treatment: TreatmentReferenceInput, $templateId: ID, $instructions: String, $dispense: DispenseInput, $clinical: PrescriptionClinicalInput, $metadata: RequestMetadata!) {
|
|
3633
6002
|
prescription(
|
|
@@ -3661,7 +6030,6 @@ export const SyncPrescriptionDocument = new TypedDocumentString(`
|
|
|
3661
6030
|
strength
|
|
3662
6031
|
medicationType
|
|
3663
6032
|
schedule
|
|
3664
|
-
recommendedDispenseUnits
|
|
3665
6033
|
}
|
|
3666
6034
|
fragment ChoiceFields on Choice {
|
|
3667
6035
|
__typename
|
|
@@ -3674,11 +6042,19 @@ fragment ChoiceFields on Choice {
|
|
|
3674
6042
|
type
|
|
3675
6043
|
label
|
|
3676
6044
|
confidence
|
|
6045
|
+
value {
|
|
6046
|
+
displayValue
|
|
6047
|
+
value
|
|
6048
|
+
unit
|
|
6049
|
+
}
|
|
3677
6050
|
}
|
|
3678
6051
|
entity {
|
|
3679
6052
|
__typename
|
|
3680
6053
|
... on Treatment {
|
|
3681
6054
|
...TreatmentFields
|
|
6055
|
+
templates {
|
|
6056
|
+
...PrescriptionTemplateFields
|
|
6057
|
+
}
|
|
3682
6058
|
}
|
|
3683
6059
|
... on Pharmacy {
|
|
3684
6060
|
...PharmacyFields
|
|
@@ -3687,23 +6063,43 @@ fragment ChoiceFields on Choice {
|
|
|
3687
6063
|
}
|
|
3688
6064
|
fragment PharmacyOfferFields on PharmacyOffer {
|
|
3689
6065
|
source
|
|
6066
|
+
prescriptionId
|
|
6067
|
+
priceType
|
|
3690
6068
|
isPromoted
|
|
3691
6069
|
attributeTags {
|
|
3692
6070
|
kind
|
|
3693
6071
|
label
|
|
3694
6072
|
}
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
6073
|
+
price {
|
|
6074
|
+
amount
|
|
6075
|
+
retailAmount
|
|
6076
|
+
promotions {
|
|
6077
|
+
type
|
|
6078
|
+
baseAmount
|
|
6079
|
+
amountSaved
|
|
6080
|
+
}
|
|
3700
6081
|
}
|
|
3701
|
-
|
|
3702
|
-
prescriptionId
|
|
6082
|
+
deliveryEstimate {
|
|
3703
6083
|
deliveryPromise
|
|
3704
6084
|
deliveryPromiseRangeStart
|
|
3705
6085
|
deliveryPromiseRangeEnd
|
|
3706
6086
|
}
|
|
6087
|
+
redemptionState
|
|
6088
|
+
redemptionMethods {
|
|
6089
|
+
...RedemptionMethodFields
|
|
6090
|
+
}
|
|
6091
|
+
}
|
|
6092
|
+
fragment RedemptionMethodFields on RedemptionMethod {
|
|
6093
|
+
__typename
|
|
6094
|
+
... on PharmacyDiscountCard {
|
|
6095
|
+
id
|
|
6096
|
+
prescriptionId
|
|
6097
|
+
bin
|
|
6098
|
+
pcn
|
|
6099
|
+
group
|
|
6100
|
+
memberId
|
|
6101
|
+
externalUrl
|
|
6102
|
+
}
|
|
3707
6103
|
}
|
|
3708
6104
|
fragment ChangeFields on Change {
|
|
3709
6105
|
key
|
|
@@ -3740,6 +6136,24 @@ fragment OperationErrorFields on OperationError {
|
|
|
3740
6136
|
fragment PharmacyFields on Pharmacy {
|
|
3741
6137
|
id
|
|
3742
6138
|
name
|
|
6139
|
+
logo
|
|
6140
|
+
phone
|
|
6141
|
+
hours {
|
|
6142
|
+
openFrom
|
|
6143
|
+
openUntil
|
|
6144
|
+
dayOfWeek
|
|
6145
|
+
is24Hr
|
|
6146
|
+
timezone
|
|
6147
|
+
}
|
|
6148
|
+
isOpen
|
|
6149
|
+
nextEvents {
|
|
6150
|
+
open {
|
|
6151
|
+
...PharmacyEventFields
|
|
6152
|
+
}
|
|
6153
|
+
close {
|
|
6154
|
+
...PharmacyEventFields
|
|
6155
|
+
}
|
|
6156
|
+
}
|
|
3743
6157
|
address {
|
|
3744
6158
|
street1
|
|
3745
6159
|
street2
|
|
@@ -3754,6 +6168,20 @@ fragment PharmacyFields on Pharmacy {
|
|
|
3754
6168
|
...PharmacyOfferFields
|
|
3755
6169
|
}
|
|
3756
6170
|
}
|
|
6171
|
+
fragment PharmacyEventFields on PharmacyEvent {
|
|
6172
|
+
__typename
|
|
6173
|
+
... on PharmacyOpenEvent {
|
|
6174
|
+
type
|
|
6175
|
+
datetime
|
|
6176
|
+
}
|
|
6177
|
+
... on PharmacyCloseEvent {
|
|
6178
|
+
type
|
|
6179
|
+
datetime
|
|
6180
|
+
}
|
|
6181
|
+
... on PharmacyOpen24HrEvent {
|
|
6182
|
+
type
|
|
6183
|
+
}
|
|
6184
|
+
}
|
|
3757
6185
|
fragment ScreeningAlertFields on ScreeningAlert {
|
|
3758
6186
|
severity
|
|
3759
6187
|
type
|
|
@@ -3769,6 +6197,24 @@ fragment ScreeningAlertFields on ScreeningAlert {
|
|
|
3769
6197
|
}
|
|
3770
6198
|
fragment PrescriptionFields on Prescription {
|
|
3771
6199
|
id
|
|
6200
|
+
prescriber {
|
|
6201
|
+
id
|
|
6202
|
+
name {
|
|
6203
|
+
first
|
|
6204
|
+
middle
|
|
6205
|
+
last
|
|
6206
|
+
}
|
|
6207
|
+
}
|
|
6208
|
+
fulfillment {
|
|
6209
|
+
state
|
|
6210
|
+
pharmacyEstimatedReadyAt
|
|
6211
|
+
exceptions {
|
|
6212
|
+
id
|
|
6213
|
+
type
|
|
6214
|
+
message
|
|
6215
|
+
createdAt
|
|
6216
|
+
}
|
|
6217
|
+
}
|
|
3772
6218
|
templateId
|
|
3773
6219
|
patient {
|
|
3774
6220
|
id
|
|
@@ -3802,6 +6248,19 @@ fragment PrescriptionFields on Prescription {
|
|
|
3802
6248
|
signedAt
|
|
3803
6249
|
}
|
|
3804
6250
|
}
|
|
6251
|
+
fragment PrescriptionTemplateFields on PrescriptionTemplate {
|
|
6252
|
+
id
|
|
6253
|
+
source
|
|
6254
|
+
name
|
|
6255
|
+
instructions
|
|
6256
|
+
dispense {
|
|
6257
|
+
quantity
|
|
6258
|
+
unit
|
|
6259
|
+
daysSupply
|
|
6260
|
+
refillsAllowed
|
|
6261
|
+
dispenseAsWritten
|
|
6262
|
+
}
|
|
6263
|
+
}
|
|
3805
6264
|
fragment PrescriptionResultFields on PrescriptionResult {
|
|
3806
6265
|
__typename
|
|
3807
6266
|
... on PrescriptionPayload {
|
|
@@ -3860,7 +6319,6 @@ export const UpdatePrescriptionDocument = new TypedDocumentString(`
|
|
|
3860
6319
|
strength
|
|
3861
6320
|
medicationType
|
|
3862
6321
|
schedule
|
|
3863
|
-
recommendedDispenseUnits
|
|
3864
6322
|
}
|
|
3865
6323
|
fragment ChoiceFields on Choice {
|
|
3866
6324
|
__typename
|
|
@@ -3873,11 +6331,19 @@ fragment ChoiceFields on Choice {
|
|
|
3873
6331
|
type
|
|
3874
6332
|
label
|
|
3875
6333
|
confidence
|
|
6334
|
+
value {
|
|
6335
|
+
displayValue
|
|
6336
|
+
value
|
|
6337
|
+
unit
|
|
6338
|
+
}
|
|
3876
6339
|
}
|
|
3877
6340
|
entity {
|
|
3878
6341
|
__typename
|
|
3879
6342
|
... on Treatment {
|
|
3880
6343
|
...TreatmentFields
|
|
6344
|
+
templates {
|
|
6345
|
+
...PrescriptionTemplateFields
|
|
6346
|
+
}
|
|
3881
6347
|
}
|
|
3882
6348
|
... on Pharmacy {
|
|
3883
6349
|
...PharmacyFields
|
|
@@ -3886,23 +6352,43 @@ fragment ChoiceFields on Choice {
|
|
|
3886
6352
|
}
|
|
3887
6353
|
fragment PharmacyOfferFields on PharmacyOffer {
|
|
3888
6354
|
source
|
|
6355
|
+
prescriptionId
|
|
6356
|
+
priceType
|
|
3889
6357
|
isPromoted
|
|
3890
6358
|
attributeTags {
|
|
3891
6359
|
kind
|
|
3892
6360
|
label
|
|
3893
6361
|
}
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
6362
|
+
price {
|
|
6363
|
+
amount
|
|
6364
|
+
retailAmount
|
|
6365
|
+
promotions {
|
|
6366
|
+
type
|
|
6367
|
+
baseAmount
|
|
6368
|
+
amountSaved
|
|
6369
|
+
}
|
|
3899
6370
|
}
|
|
3900
|
-
|
|
3901
|
-
prescriptionId
|
|
6371
|
+
deliveryEstimate {
|
|
3902
6372
|
deliveryPromise
|
|
3903
6373
|
deliveryPromiseRangeStart
|
|
3904
6374
|
deliveryPromiseRangeEnd
|
|
3905
6375
|
}
|
|
6376
|
+
redemptionState
|
|
6377
|
+
redemptionMethods {
|
|
6378
|
+
...RedemptionMethodFields
|
|
6379
|
+
}
|
|
6380
|
+
}
|
|
6381
|
+
fragment RedemptionMethodFields on RedemptionMethod {
|
|
6382
|
+
__typename
|
|
6383
|
+
... on PharmacyDiscountCard {
|
|
6384
|
+
id
|
|
6385
|
+
prescriptionId
|
|
6386
|
+
bin
|
|
6387
|
+
pcn
|
|
6388
|
+
group
|
|
6389
|
+
memberId
|
|
6390
|
+
externalUrl
|
|
6391
|
+
}
|
|
3906
6392
|
}
|
|
3907
6393
|
fragment ChangeFields on Change {
|
|
3908
6394
|
key
|
|
@@ -3939,6 +6425,24 @@ fragment OperationErrorFields on OperationError {
|
|
|
3939
6425
|
fragment PharmacyFields on Pharmacy {
|
|
3940
6426
|
id
|
|
3941
6427
|
name
|
|
6428
|
+
logo
|
|
6429
|
+
phone
|
|
6430
|
+
hours {
|
|
6431
|
+
openFrom
|
|
6432
|
+
openUntil
|
|
6433
|
+
dayOfWeek
|
|
6434
|
+
is24Hr
|
|
6435
|
+
timezone
|
|
6436
|
+
}
|
|
6437
|
+
isOpen
|
|
6438
|
+
nextEvents {
|
|
6439
|
+
open {
|
|
6440
|
+
...PharmacyEventFields
|
|
6441
|
+
}
|
|
6442
|
+
close {
|
|
6443
|
+
...PharmacyEventFields
|
|
6444
|
+
}
|
|
6445
|
+
}
|
|
3942
6446
|
address {
|
|
3943
6447
|
street1
|
|
3944
6448
|
street2
|
|
@@ -3953,6 +6457,20 @@ fragment PharmacyFields on Pharmacy {
|
|
|
3953
6457
|
...PharmacyOfferFields
|
|
3954
6458
|
}
|
|
3955
6459
|
}
|
|
6460
|
+
fragment PharmacyEventFields on PharmacyEvent {
|
|
6461
|
+
__typename
|
|
6462
|
+
... on PharmacyOpenEvent {
|
|
6463
|
+
type
|
|
6464
|
+
datetime
|
|
6465
|
+
}
|
|
6466
|
+
... on PharmacyCloseEvent {
|
|
6467
|
+
type
|
|
6468
|
+
datetime
|
|
6469
|
+
}
|
|
6470
|
+
... on PharmacyOpen24HrEvent {
|
|
6471
|
+
type
|
|
6472
|
+
}
|
|
6473
|
+
}
|
|
3956
6474
|
fragment ScreeningAlertFields on ScreeningAlert {
|
|
3957
6475
|
severity
|
|
3958
6476
|
type
|
|
@@ -3968,6 +6486,24 @@ fragment ScreeningAlertFields on ScreeningAlert {
|
|
|
3968
6486
|
}
|
|
3969
6487
|
fragment PrescriptionFields on Prescription {
|
|
3970
6488
|
id
|
|
6489
|
+
prescriber {
|
|
6490
|
+
id
|
|
6491
|
+
name {
|
|
6492
|
+
first
|
|
6493
|
+
middle
|
|
6494
|
+
last
|
|
6495
|
+
}
|
|
6496
|
+
}
|
|
6497
|
+
fulfillment {
|
|
6498
|
+
state
|
|
6499
|
+
pharmacyEstimatedReadyAt
|
|
6500
|
+
exceptions {
|
|
6501
|
+
id
|
|
6502
|
+
type
|
|
6503
|
+
message
|
|
6504
|
+
createdAt
|
|
6505
|
+
}
|
|
6506
|
+
}
|
|
3971
6507
|
templateId
|
|
3972
6508
|
patient {
|
|
3973
6509
|
id
|
|
@@ -4001,6 +6537,19 @@ fragment PrescriptionFields on Prescription {
|
|
|
4001
6537
|
signedAt
|
|
4002
6538
|
}
|
|
4003
6539
|
}
|
|
6540
|
+
fragment PrescriptionTemplateFields on PrescriptionTemplate {
|
|
6541
|
+
id
|
|
6542
|
+
source
|
|
6543
|
+
name
|
|
6544
|
+
instructions
|
|
6545
|
+
dispense {
|
|
6546
|
+
quantity
|
|
6547
|
+
unit
|
|
6548
|
+
daysSupply
|
|
6549
|
+
refillsAllowed
|
|
6550
|
+
dispenseAsWritten
|
|
6551
|
+
}
|
|
6552
|
+
}
|
|
4004
6553
|
fragment PrescriptionResultFields on PrescriptionResult {
|
|
4005
6554
|
__typename
|
|
4006
6555
|
... on PrescriptionPayload {
|