@photonhealth/client 0.0.0-stage → 2.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +15 -0
- package/README.md +89 -2
- package/dist/api/changes/applyOption.d.ts +41 -0
- package/dist/api/changes/applyOption.d.ts.map +1 -0
- package/dist/api/changes/applyOption.js +76 -0
- package/dist/api/changes/applyOption.js.map +1 -0
- package/dist/api/changes/classifyChanges.d.ts +9 -0
- package/dist/api/changes/classifyChanges.d.ts.map +1 -0
- package/dist/api/changes/classifyChanges.js +2 -0
- package/dist/api/changes/classifyChanges.js.map +1 -0
- package/dist/api/changes/index.d.ts +3 -0
- package/dist/api/changes/index.d.ts.map +1 -0
- package/dist/api/changes/index.js +3 -0
- package/dist/api/changes/index.js.map +1 -0
- package/dist/api/client.d.ts +43 -0
- package/dist/api/client.d.ts.map +1 -0
- package/dist/api/client.js +77 -0
- package/dist/api/client.js.map +1 -0
- package/dist/api/health.d.ts +4 -0
- package/dist/api/health.d.ts.map +1 -0
- package/dist/api/health.js +6 -0
- package/dist/api/health.js.map +1 -0
- package/dist/api/index.d.ts +22 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +21 -0
- package/dist/api/index.js.map +1 -0
- package/dist/api/order.d.ts +33 -0
- package/dist/api/order.d.ts.map +1 -0
- package/dist/api/order.js +33 -0
- package/dist/api/order.js.map +1 -0
- package/dist/api/patient.d.ts +33 -0
- package/dist/api/patient.d.ts.map +1 -0
- package/dist/api/patient.js +33 -0
- package/dist/api/patient.js.map +1 -0
- package/dist/api/prescription.d.ts +31 -0
- package/dist/api/prescription.d.ts.map +1 -0
- package/dist/api/prescription.js +30 -0
- package/dist/api/prescription.js.map +1 -0
- package/dist/api/results.d.ts +30 -0
- package/dist/api/results.d.ts.map +1 -0
- package/dist/api/results.js +26 -0
- package/dist/api/results.js.map +1 -0
- package/dist/gql/gql.d.ts +21 -0
- package/dist/gql/gql.d.ts.map +1 -0
- package/dist/gql/gql.js +13 -0
- package/dist/gql/gql.js.map +1 -0
- package/dist/gql/graphql.d.ts +9674 -0
- package/dist/gql/graphql.d.ts.map +1 -0
- package/dist/gql/graphql.js +4030 -0
- package/dist/gql/graphql.js.map +1 -0
- package/dist/gql/index.d.ts +2 -0
- package/dist/gql/index.d.ts.map +1 -0
- package/dist/gql/index.js +3 -0
- package/dist/gql/index.js.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -0
- package/dist/photon/auth.d.ts +48 -0
- package/dist/photon/auth.d.ts.map +1 -0
- package/dist/photon/auth.js +34 -0
- package/dist/photon/auth.js.map +1 -0
- package/dist/photon/choices.d.ts +44 -0
- package/dist/photon/choices.d.ts.map +1 -0
- package/dist/photon/choices.js +58 -0
- package/dist/photon/choices.js.map +1 -0
- package/dist/photon/context.d.ts +29 -0
- package/dist/photon/context.d.ts.map +1 -0
- package/dist/photon/context.js +2 -0
- package/dist/photon/context.js.map +1 -0
- package/dist/photon/environments.d.ts +26 -0
- package/dist/photon/environments.d.ts.map +1 -0
- package/dist/photon/environments.js +26 -0
- package/dist/photon/environments.js.map +1 -0
- package/dist/photon/errors.d.ts +26 -0
- package/dist/photon/errors.d.ts.map +1 -0
- package/dist/photon/errors.js +42 -0
- package/dist/photon/errors.js.map +1 -0
- package/dist/photon/index.d.ts +23 -0
- package/dist/photon/index.d.ts.map +1 -0
- package/dist/photon/index.js +11 -0
- package/dist/photon/index.js.map +1 -0
- package/dist/photon/inputs.d.ts +7 -0
- package/dist/photon/inputs.d.ts.map +1 -0
- package/dist/photon/inputs.js +25 -0
- package/dist/photon/inputs.js.map +1 -0
- package/dist/photon/links.d.ts +68 -0
- package/dist/photon/links.d.ts.map +1 -0
- package/dist/photon/links.js +187 -0
- package/dist/photon/links.js.map +1 -0
- package/dist/photon/live.d.ts +62 -0
- package/dist/photon/live.d.ts.map +1 -0
- package/dist/photon/live.js +107 -0
- package/dist/photon/live.js.map +1 -0
- package/dist/photon/map.d.ts +10 -0
- package/dist/photon/map.d.ts.map +1 -0
- package/dist/photon/map.js +211 -0
- package/dist/photon/map.js.map +1 -0
- package/dist/photon/order.d.ts +148 -0
- package/dist/photon/order.d.ts.map +1 -0
- package/dist/photon/order.js +491 -0
- package/dist/photon/order.js.map +1 -0
- package/dist/photon/patient.d.ts +78 -0
- package/dist/photon/patient.d.ts.map +1 -0
- package/dist/photon/patient.js +316 -0
- package/dist/photon/patient.js.map +1 -0
- package/dist/photon/photon.d.ts +150 -0
- package/dist/photon/photon.d.ts.map +1 -0
- package/dist/photon/photon.js +315 -0
- package/dist/photon/photon.js.map +1 -0
- package/dist/photon/prescription.d.ts +132 -0
- package/dist/photon/prescription.d.ts.map +1 -0
- package/dist/photon/prescription.js +381 -0
- package/dist/photon/prescription.js.map +1 -0
- package/dist/photon/session.d.ts +84 -0
- package/dist/photon/session.d.ts.map +1 -0
- package/dist/photon/session.js +350 -0
- package/dist/photon/session.js.map +1 -0
- package/dist/photon/types.d.ts +411 -0
- package/dist/photon/types.d.ts.map +1 -0
- package/dist/photon/types.js +7 -0
- package/dist/photon/types.js.map +1 -0
- package/dist/test-utils/msw.d.ts +23 -0
- package/dist/test-utils/msw.d.ts.map +1 -0
- package/dist/test-utils/msw.js +51 -0
- package/dist/test-utils/msw.js.map +1 -0
- package/dist/testing/fixtures.d.ts +51 -0
- package/dist/testing/fixtures.d.ts.map +1 -0
- package/dist/testing/fixtures.js +166 -0
- package/dist/testing/fixtures.js.map +1 -0
- package/dist/testing/scriptedClient.d.ts +38 -0
- package/dist/testing/scriptedClient.d.ts.map +1 -0
- package/dist/testing/scriptedClient.js +52 -0
- package/dist/testing/scriptedClient.js.map +1 -0
- package/dist/testing.d.ts +11 -0
- package/dist/testing.d.ts.map +1 -0
- package/dist/testing.js +10 -0
- package/dist/testing.js.map +1 -0
- package/package.json +67 -4
- package/src/api/changes/applyOption.ts +103 -0
- package/src/api/changes/classifyChanges.ts +10 -0
- package/src/api/changes/index.ts +2 -0
- package/src/api/client.ts +124 -0
- package/src/api/health.ts +7 -0
- package/src/api/index.ts +22 -0
- package/src/api/order.ts +64 -0
- package/src/api/patient.ts +58 -0
- package/src/api/prescription.ts +68 -0
- package/src/api/results.ts +45 -0
- package/src/gql/gql.ts +56 -0
- package/src/gql/graphql.ts +5344 -0
- package/src/gql/index.ts +2 -0
- package/src/index.ts +14 -0
- package/src/operations/fragments.graphql +351 -0
- package/src/operations/health.graphql +4 -0
- package/src/operations/order.graphql +42 -0
- package/src/operations/patient.graphql +36 -0
- package/src/operations/prescription.graphql +70 -0
- package/src/photon/auth.ts +70 -0
- package/src/photon/choices.ts +79 -0
- package/src/photon/context.ts +30 -0
- package/src/photon/environments.ts +47 -0
- package/src/photon/errors.ts +56 -0
- package/src/photon/index.ts +35 -0
- package/src/photon/inputs.ts +24 -0
- package/src/photon/links.ts +197 -0
- package/src/photon/live.ts +135 -0
- package/src/photon/map.ts +255 -0
- package/src/photon/order.ts +581 -0
- package/src/photon/patient.ts +346 -0
- package/src/photon/photon.ts +513 -0
- package/src/photon/prescription.ts +447 -0
- package/src/photon/session.ts +445 -0
- package/src/photon/types.ts +329 -0
- package/src/test-utils/msw.ts +61 -0
- package/src/testing/fixtures.ts +191 -0
- package/src/testing/scriptedClient.ts +52 -0
- package/src/testing.ts +22 -0
|
@@ -0,0 +1,4030 @@
|
|
|
1
|
+
export class TypedDocumentString extends String {
|
|
2
|
+
__apiType;
|
|
3
|
+
value;
|
|
4
|
+
__meta__;
|
|
5
|
+
constructor(value, __meta__) {
|
|
6
|
+
super(value);
|
|
7
|
+
this.value = value;
|
|
8
|
+
this.__meta__ = __meta__;
|
|
9
|
+
}
|
|
10
|
+
toString() {
|
|
11
|
+
return this.value;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export const PharmacyOfferFieldsFragmentDoc = new TypedDocumentString(`
|
|
15
|
+
fragment PharmacyOfferFields on PharmacyOffer {
|
|
16
|
+
source
|
|
17
|
+
isPromoted
|
|
18
|
+
attributeTags {
|
|
19
|
+
kind
|
|
20
|
+
label
|
|
21
|
+
}
|
|
22
|
+
priceSummary {
|
|
23
|
+
priceType
|
|
24
|
+
totalAmount
|
|
25
|
+
totalRetailAmount
|
|
26
|
+
totalSavings
|
|
27
|
+
}
|
|
28
|
+
prescriptionDeliveryEstimates {
|
|
29
|
+
prescriptionId
|
|
30
|
+
deliveryPromise
|
|
31
|
+
deliveryPromiseRangeStart
|
|
32
|
+
deliveryPromiseRangeEnd
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
`, { "fragmentName": "PharmacyOfferFields" });
|
|
36
|
+
export const PharmacyFieldsFragmentDoc = new TypedDocumentString(`
|
|
37
|
+
fragment PharmacyFields on Pharmacy {
|
|
38
|
+
id
|
|
39
|
+
name
|
|
40
|
+
address {
|
|
41
|
+
street1
|
|
42
|
+
street2
|
|
43
|
+
city
|
|
44
|
+
state
|
|
45
|
+
postalCode
|
|
46
|
+
}
|
|
47
|
+
latitude
|
|
48
|
+
longitude
|
|
49
|
+
fulfillmentType
|
|
50
|
+
offers {
|
|
51
|
+
...PharmacyOfferFields
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
fragment PharmacyOfferFields on PharmacyOffer {
|
|
55
|
+
source
|
|
56
|
+
isPromoted
|
|
57
|
+
attributeTags {
|
|
58
|
+
kind
|
|
59
|
+
label
|
|
60
|
+
}
|
|
61
|
+
priceSummary {
|
|
62
|
+
priceType
|
|
63
|
+
totalAmount
|
|
64
|
+
totalRetailAmount
|
|
65
|
+
totalSavings
|
|
66
|
+
}
|
|
67
|
+
prescriptionDeliveryEstimates {
|
|
68
|
+
prescriptionId
|
|
69
|
+
deliveryPromise
|
|
70
|
+
deliveryPromiseRangeStart
|
|
71
|
+
deliveryPromiseRangeEnd
|
|
72
|
+
}
|
|
73
|
+
}`, { "fragmentName": "PharmacyFields" });
|
|
74
|
+
export const PatientDemographicFieldsFragmentDoc = new TypedDocumentString(`
|
|
75
|
+
fragment PatientDemographicFields on PatientDemographic {
|
|
76
|
+
name {
|
|
77
|
+
first
|
|
78
|
+
middle
|
|
79
|
+
last
|
|
80
|
+
}
|
|
81
|
+
dateOfBirth
|
|
82
|
+
sex
|
|
83
|
+
gender
|
|
84
|
+
email
|
|
85
|
+
phone
|
|
86
|
+
address {
|
|
87
|
+
street1
|
|
88
|
+
street2
|
|
89
|
+
city
|
|
90
|
+
state
|
|
91
|
+
postalCode
|
|
92
|
+
country
|
|
93
|
+
}
|
|
94
|
+
benefits {
|
|
95
|
+
status
|
|
96
|
+
entries {
|
|
97
|
+
id
|
|
98
|
+
bin
|
|
99
|
+
pcn
|
|
100
|
+
groupId
|
|
101
|
+
memberId
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
preferredPharmacy {
|
|
105
|
+
...PharmacyFields
|
|
106
|
+
}
|
|
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
|
+
clinical {
|
|
152
|
+
allergies {
|
|
153
|
+
status
|
|
154
|
+
entries {
|
|
155
|
+
id
|
|
156
|
+
name
|
|
157
|
+
rxNormId
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
medications {
|
|
161
|
+
status
|
|
162
|
+
entries {
|
|
163
|
+
id
|
|
164
|
+
name
|
|
165
|
+
rxNormId
|
|
166
|
+
status
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
diagnoses {
|
|
170
|
+
status
|
|
171
|
+
entries {
|
|
172
|
+
id
|
|
173
|
+
name
|
|
174
|
+
icd10Code
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
notes
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
fragment PharmacyOfferFields on PharmacyOffer {
|
|
181
|
+
source
|
|
182
|
+
isPromoted
|
|
183
|
+
attributeTags {
|
|
184
|
+
kind
|
|
185
|
+
label
|
|
186
|
+
}
|
|
187
|
+
priceSummary {
|
|
188
|
+
priceType
|
|
189
|
+
totalAmount
|
|
190
|
+
totalRetailAmount
|
|
191
|
+
totalSavings
|
|
192
|
+
}
|
|
193
|
+
prescriptionDeliveryEstimates {
|
|
194
|
+
prescriptionId
|
|
195
|
+
deliveryPromise
|
|
196
|
+
deliveryPromiseRangeStart
|
|
197
|
+
deliveryPromiseRangeEnd
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
fragment PharmacyFields on Pharmacy {
|
|
201
|
+
id
|
|
202
|
+
name
|
|
203
|
+
address {
|
|
204
|
+
street1
|
|
205
|
+
street2
|
|
206
|
+
city
|
|
207
|
+
state
|
|
208
|
+
postalCode
|
|
209
|
+
}
|
|
210
|
+
latitude
|
|
211
|
+
longitude
|
|
212
|
+
fulfillmentType
|
|
213
|
+
offers {
|
|
214
|
+
...PharmacyOfferFields
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
fragment PatientDemographicFields on PatientDemographic {
|
|
218
|
+
name {
|
|
219
|
+
first
|
|
220
|
+
middle
|
|
221
|
+
last
|
|
222
|
+
}
|
|
223
|
+
dateOfBirth
|
|
224
|
+
sex
|
|
225
|
+
gender
|
|
226
|
+
email
|
|
227
|
+
phone
|
|
228
|
+
address {
|
|
229
|
+
street1
|
|
230
|
+
street2
|
|
231
|
+
city
|
|
232
|
+
state
|
|
233
|
+
postalCode
|
|
234
|
+
country
|
|
235
|
+
}
|
|
236
|
+
benefits {
|
|
237
|
+
status
|
|
238
|
+
entries {
|
|
239
|
+
id
|
|
240
|
+
bin
|
|
241
|
+
pcn
|
|
242
|
+
groupId
|
|
243
|
+
memberId
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
preferredPharmacy {
|
|
247
|
+
...PharmacyFields
|
|
248
|
+
}
|
|
249
|
+
}`, { "fragmentName": "PatientFields" });
|
|
250
|
+
export const OperationErrorFieldsFragmentDoc = new TypedDocumentString(`
|
|
251
|
+
fragment OperationErrorFields on OperationError {
|
|
252
|
+
__typename
|
|
253
|
+
type
|
|
254
|
+
code
|
|
255
|
+
message
|
|
256
|
+
requiredPermission
|
|
257
|
+
service
|
|
258
|
+
retryable
|
|
259
|
+
}
|
|
260
|
+
`, { "fragmentName": "OperationErrorFields" });
|
|
261
|
+
export const PatientRecordFieldsFragmentDoc = new TypedDocumentString(`
|
|
262
|
+
fragment PatientRecordFields on PatientRecordResult {
|
|
263
|
+
__typename
|
|
264
|
+
... on Patient {
|
|
265
|
+
...PatientFields
|
|
266
|
+
}
|
|
267
|
+
... on OperationError {
|
|
268
|
+
...OperationErrorFields
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
fragment PharmacyOfferFields on PharmacyOffer {
|
|
272
|
+
source
|
|
273
|
+
isPromoted
|
|
274
|
+
attributeTags {
|
|
275
|
+
kind
|
|
276
|
+
label
|
|
277
|
+
}
|
|
278
|
+
priceSummary {
|
|
279
|
+
priceType
|
|
280
|
+
totalAmount
|
|
281
|
+
totalRetailAmount
|
|
282
|
+
totalSavings
|
|
283
|
+
}
|
|
284
|
+
prescriptionDeliveryEstimates {
|
|
285
|
+
prescriptionId
|
|
286
|
+
deliveryPromise
|
|
287
|
+
deliveryPromiseRangeStart
|
|
288
|
+
deliveryPromiseRangeEnd
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
fragment OperationErrorFields on OperationError {
|
|
292
|
+
__typename
|
|
293
|
+
type
|
|
294
|
+
code
|
|
295
|
+
message
|
|
296
|
+
requiredPermission
|
|
297
|
+
service
|
|
298
|
+
retryable
|
|
299
|
+
}
|
|
300
|
+
fragment PharmacyFields on Pharmacy {
|
|
301
|
+
id
|
|
302
|
+
name
|
|
303
|
+
address {
|
|
304
|
+
street1
|
|
305
|
+
street2
|
|
306
|
+
city
|
|
307
|
+
state
|
|
308
|
+
postalCode
|
|
309
|
+
}
|
|
310
|
+
latitude
|
|
311
|
+
longitude
|
|
312
|
+
fulfillmentType
|
|
313
|
+
offers {
|
|
314
|
+
...PharmacyOfferFields
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
fragment PatientDemographicFields on PatientDemographic {
|
|
318
|
+
name {
|
|
319
|
+
first
|
|
320
|
+
middle
|
|
321
|
+
last
|
|
322
|
+
}
|
|
323
|
+
dateOfBirth
|
|
324
|
+
sex
|
|
325
|
+
gender
|
|
326
|
+
email
|
|
327
|
+
phone
|
|
328
|
+
address {
|
|
329
|
+
street1
|
|
330
|
+
street2
|
|
331
|
+
city
|
|
332
|
+
state
|
|
333
|
+
postalCode
|
|
334
|
+
country
|
|
335
|
+
}
|
|
336
|
+
benefits {
|
|
337
|
+
status
|
|
338
|
+
entries {
|
|
339
|
+
id
|
|
340
|
+
bin
|
|
341
|
+
pcn
|
|
342
|
+
groupId
|
|
343
|
+
memberId
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
preferredPharmacy {
|
|
347
|
+
...PharmacyFields
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
fragment PatientFields on Patient {
|
|
351
|
+
id
|
|
352
|
+
demographic {
|
|
353
|
+
...PatientDemographicFields
|
|
354
|
+
}
|
|
355
|
+
clinical {
|
|
356
|
+
allergies {
|
|
357
|
+
status
|
|
358
|
+
entries {
|
|
359
|
+
id
|
|
360
|
+
name
|
|
361
|
+
rxNormId
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
medications {
|
|
365
|
+
status
|
|
366
|
+
entries {
|
|
367
|
+
id
|
|
368
|
+
name
|
|
369
|
+
rxNormId
|
|
370
|
+
status
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
diagnoses {
|
|
374
|
+
status
|
|
375
|
+
entries {
|
|
376
|
+
id
|
|
377
|
+
name
|
|
378
|
+
icd10Code
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
notes
|
|
382
|
+
}
|
|
383
|
+
}`, { "fragmentName": "PatientRecordFields" });
|
|
384
|
+
export const TreatmentFieldsFragmentDoc = new TypedDocumentString(`
|
|
385
|
+
fragment TreatmentFields on Treatment {
|
|
386
|
+
id
|
|
387
|
+
name
|
|
388
|
+
rxNormId
|
|
389
|
+
ndc
|
|
390
|
+
upc
|
|
391
|
+
entityKind
|
|
392
|
+
prescribableName
|
|
393
|
+
brandName
|
|
394
|
+
genericName
|
|
395
|
+
form
|
|
396
|
+
route
|
|
397
|
+
strength
|
|
398
|
+
medicationType
|
|
399
|
+
schedule
|
|
400
|
+
recommendedDispenseUnits
|
|
401
|
+
}
|
|
402
|
+
`, { "fragmentName": "TreatmentFields" });
|
|
403
|
+
export const ChoiceFieldsFragmentDoc = new TypedDocumentString(`
|
|
404
|
+
fragment ChoiceFields on Choice {
|
|
405
|
+
__typename
|
|
406
|
+
displayName
|
|
407
|
+
reason
|
|
408
|
+
operation
|
|
409
|
+
argument
|
|
410
|
+
value
|
|
411
|
+
matchReasons {
|
|
412
|
+
type
|
|
413
|
+
label
|
|
414
|
+
confidence
|
|
415
|
+
}
|
|
416
|
+
entity {
|
|
417
|
+
__typename
|
|
418
|
+
... on Treatment {
|
|
419
|
+
...TreatmentFields
|
|
420
|
+
}
|
|
421
|
+
... on Pharmacy {
|
|
422
|
+
...PharmacyFields
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
fragment TreatmentFields on Treatment {
|
|
427
|
+
id
|
|
428
|
+
name
|
|
429
|
+
rxNormId
|
|
430
|
+
ndc
|
|
431
|
+
upc
|
|
432
|
+
entityKind
|
|
433
|
+
prescribableName
|
|
434
|
+
brandName
|
|
435
|
+
genericName
|
|
436
|
+
form
|
|
437
|
+
route
|
|
438
|
+
strength
|
|
439
|
+
medicationType
|
|
440
|
+
schedule
|
|
441
|
+
recommendedDispenseUnits
|
|
442
|
+
}
|
|
443
|
+
fragment PharmacyOfferFields on PharmacyOffer {
|
|
444
|
+
source
|
|
445
|
+
isPromoted
|
|
446
|
+
attributeTags {
|
|
447
|
+
kind
|
|
448
|
+
label
|
|
449
|
+
}
|
|
450
|
+
priceSummary {
|
|
451
|
+
priceType
|
|
452
|
+
totalAmount
|
|
453
|
+
totalRetailAmount
|
|
454
|
+
totalSavings
|
|
455
|
+
}
|
|
456
|
+
prescriptionDeliveryEstimates {
|
|
457
|
+
prescriptionId
|
|
458
|
+
deliveryPromise
|
|
459
|
+
deliveryPromiseRangeStart
|
|
460
|
+
deliveryPromiseRangeEnd
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
fragment PharmacyFields on Pharmacy {
|
|
464
|
+
id
|
|
465
|
+
name
|
|
466
|
+
address {
|
|
467
|
+
street1
|
|
468
|
+
street2
|
|
469
|
+
city
|
|
470
|
+
state
|
|
471
|
+
postalCode
|
|
472
|
+
}
|
|
473
|
+
latitude
|
|
474
|
+
longitude
|
|
475
|
+
fulfillmentType
|
|
476
|
+
offers {
|
|
477
|
+
...PharmacyOfferFields
|
|
478
|
+
}
|
|
479
|
+
}`, { "fragmentName": "ChoiceFields" });
|
|
480
|
+
export const ChangeFieldsFragmentDoc = new TypedDocumentString(`
|
|
481
|
+
fragment ChangeFields on Change {
|
|
482
|
+
key
|
|
483
|
+
label
|
|
484
|
+
status
|
|
485
|
+
severity
|
|
486
|
+
reason
|
|
487
|
+
category
|
|
488
|
+
operation
|
|
489
|
+
options {
|
|
490
|
+
...ChoiceFields
|
|
491
|
+
}
|
|
492
|
+
before {
|
|
493
|
+
...ChoiceFields
|
|
494
|
+
}
|
|
495
|
+
after {
|
|
496
|
+
...ChoiceFields
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
fragment TreatmentFields on Treatment {
|
|
500
|
+
id
|
|
501
|
+
name
|
|
502
|
+
rxNormId
|
|
503
|
+
ndc
|
|
504
|
+
upc
|
|
505
|
+
entityKind
|
|
506
|
+
prescribableName
|
|
507
|
+
brandName
|
|
508
|
+
genericName
|
|
509
|
+
form
|
|
510
|
+
route
|
|
511
|
+
strength
|
|
512
|
+
medicationType
|
|
513
|
+
schedule
|
|
514
|
+
recommendedDispenseUnits
|
|
515
|
+
}
|
|
516
|
+
fragment ChoiceFields on Choice {
|
|
517
|
+
__typename
|
|
518
|
+
displayName
|
|
519
|
+
reason
|
|
520
|
+
operation
|
|
521
|
+
argument
|
|
522
|
+
value
|
|
523
|
+
matchReasons {
|
|
524
|
+
type
|
|
525
|
+
label
|
|
526
|
+
confidence
|
|
527
|
+
}
|
|
528
|
+
entity {
|
|
529
|
+
__typename
|
|
530
|
+
... on Treatment {
|
|
531
|
+
...TreatmentFields
|
|
532
|
+
}
|
|
533
|
+
... on Pharmacy {
|
|
534
|
+
...PharmacyFields
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
fragment PharmacyOfferFields on PharmacyOffer {
|
|
539
|
+
source
|
|
540
|
+
isPromoted
|
|
541
|
+
attributeTags {
|
|
542
|
+
kind
|
|
543
|
+
label
|
|
544
|
+
}
|
|
545
|
+
priceSummary {
|
|
546
|
+
priceType
|
|
547
|
+
totalAmount
|
|
548
|
+
totalRetailAmount
|
|
549
|
+
totalSavings
|
|
550
|
+
}
|
|
551
|
+
prescriptionDeliveryEstimates {
|
|
552
|
+
prescriptionId
|
|
553
|
+
deliveryPromise
|
|
554
|
+
deliveryPromiseRangeStart
|
|
555
|
+
deliveryPromiseRangeEnd
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
fragment PharmacyFields on Pharmacy {
|
|
559
|
+
id
|
|
560
|
+
name
|
|
561
|
+
address {
|
|
562
|
+
street1
|
|
563
|
+
street2
|
|
564
|
+
city
|
|
565
|
+
state
|
|
566
|
+
postalCode
|
|
567
|
+
}
|
|
568
|
+
latitude
|
|
569
|
+
longitude
|
|
570
|
+
fulfillmentType
|
|
571
|
+
offers {
|
|
572
|
+
...PharmacyOfferFields
|
|
573
|
+
}
|
|
574
|
+
}`, { "fragmentName": "ChangeFields" });
|
|
575
|
+
export const ChangeSetFieldsFragmentDoc = new TypedDocumentString(`
|
|
576
|
+
fragment ChangeSetFields on ChangeSet {
|
|
577
|
+
changes {
|
|
578
|
+
...ChangeFields
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
fragment TreatmentFields on Treatment {
|
|
582
|
+
id
|
|
583
|
+
name
|
|
584
|
+
rxNormId
|
|
585
|
+
ndc
|
|
586
|
+
upc
|
|
587
|
+
entityKind
|
|
588
|
+
prescribableName
|
|
589
|
+
brandName
|
|
590
|
+
genericName
|
|
591
|
+
form
|
|
592
|
+
route
|
|
593
|
+
strength
|
|
594
|
+
medicationType
|
|
595
|
+
schedule
|
|
596
|
+
recommendedDispenseUnits
|
|
597
|
+
}
|
|
598
|
+
fragment ChoiceFields on Choice {
|
|
599
|
+
__typename
|
|
600
|
+
displayName
|
|
601
|
+
reason
|
|
602
|
+
operation
|
|
603
|
+
argument
|
|
604
|
+
value
|
|
605
|
+
matchReasons {
|
|
606
|
+
type
|
|
607
|
+
label
|
|
608
|
+
confidence
|
|
609
|
+
}
|
|
610
|
+
entity {
|
|
611
|
+
__typename
|
|
612
|
+
... on Treatment {
|
|
613
|
+
...TreatmentFields
|
|
614
|
+
}
|
|
615
|
+
... on Pharmacy {
|
|
616
|
+
...PharmacyFields
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
fragment PharmacyOfferFields on PharmacyOffer {
|
|
621
|
+
source
|
|
622
|
+
isPromoted
|
|
623
|
+
attributeTags {
|
|
624
|
+
kind
|
|
625
|
+
label
|
|
626
|
+
}
|
|
627
|
+
priceSummary {
|
|
628
|
+
priceType
|
|
629
|
+
totalAmount
|
|
630
|
+
totalRetailAmount
|
|
631
|
+
totalSavings
|
|
632
|
+
}
|
|
633
|
+
prescriptionDeliveryEstimates {
|
|
634
|
+
prescriptionId
|
|
635
|
+
deliveryPromise
|
|
636
|
+
deliveryPromiseRangeStart
|
|
637
|
+
deliveryPromiseRangeEnd
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
fragment ChangeFields on Change {
|
|
641
|
+
key
|
|
642
|
+
label
|
|
643
|
+
status
|
|
644
|
+
severity
|
|
645
|
+
reason
|
|
646
|
+
category
|
|
647
|
+
operation
|
|
648
|
+
options {
|
|
649
|
+
...ChoiceFields
|
|
650
|
+
}
|
|
651
|
+
before {
|
|
652
|
+
...ChoiceFields
|
|
653
|
+
}
|
|
654
|
+
after {
|
|
655
|
+
...ChoiceFields
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
fragment PharmacyFields on Pharmacy {
|
|
659
|
+
id
|
|
660
|
+
name
|
|
661
|
+
address {
|
|
662
|
+
street1
|
|
663
|
+
street2
|
|
664
|
+
city
|
|
665
|
+
state
|
|
666
|
+
postalCode
|
|
667
|
+
}
|
|
668
|
+
latitude
|
|
669
|
+
longitude
|
|
670
|
+
fulfillmentType
|
|
671
|
+
offers {
|
|
672
|
+
...PharmacyOfferFields
|
|
673
|
+
}
|
|
674
|
+
}`, { "fragmentName": "ChangeSetFields" });
|
|
675
|
+
export const PatientResultFieldsFragmentDoc = new TypedDocumentString(`
|
|
676
|
+
fragment PatientResultFields on PatientResult {
|
|
677
|
+
__typename
|
|
678
|
+
... on PatientPayload {
|
|
679
|
+
patient {
|
|
680
|
+
...PatientRecordFields
|
|
681
|
+
}
|
|
682
|
+
...ChangeSetFields
|
|
683
|
+
}
|
|
684
|
+
... on AmbiguousPatientMatch {
|
|
685
|
+
reason
|
|
686
|
+
candidates {
|
|
687
|
+
id
|
|
688
|
+
firstName
|
|
689
|
+
lastName
|
|
690
|
+
dateOfBirth
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
... on OperationError {
|
|
694
|
+
...OperationErrorFields
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
fragment TreatmentFields on Treatment {
|
|
698
|
+
id
|
|
699
|
+
name
|
|
700
|
+
rxNormId
|
|
701
|
+
ndc
|
|
702
|
+
upc
|
|
703
|
+
entityKind
|
|
704
|
+
prescribableName
|
|
705
|
+
brandName
|
|
706
|
+
genericName
|
|
707
|
+
form
|
|
708
|
+
route
|
|
709
|
+
strength
|
|
710
|
+
medicationType
|
|
711
|
+
schedule
|
|
712
|
+
recommendedDispenseUnits
|
|
713
|
+
}
|
|
714
|
+
fragment ChoiceFields on Choice {
|
|
715
|
+
__typename
|
|
716
|
+
displayName
|
|
717
|
+
reason
|
|
718
|
+
operation
|
|
719
|
+
argument
|
|
720
|
+
value
|
|
721
|
+
matchReasons {
|
|
722
|
+
type
|
|
723
|
+
label
|
|
724
|
+
confidence
|
|
725
|
+
}
|
|
726
|
+
entity {
|
|
727
|
+
__typename
|
|
728
|
+
... on Treatment {
|
|
729
|
+
...TreatmentFields
|
|
730
|
+
}
|
|
731
|
+
... on Pharmacy {
|
|
732
|
+
...PharmacyFields
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
fragment PharmacyOfferFields on PharmacyOffer {
|
|
737
|
+
source
|
|
738
|
+
isPromoted
|
|
739
|
+
attributeTags {
|
|
740
|
+
kind
|
|
741
|
+
label
|
|
742
|
+
}
|
|
743
|
+
priceSummary {
|
|
744
|
+
priceType
|
|
745
|
+
totalAmount
|
|
746
|
+
totalRetailAmount
|
|
747
|
+
totalSavings
|
|
748
|
+
}
|
|
749
|
+
prescriptionDeliveryEstimates {
|
|
750
|
+
prescriptionId
|
|
751
|
+
deliveryPromise
|
|
752
|
+
deliveryPromiseRangeStart
|
|
753
|
+
deliveryPromiseRangeEnd
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
fragment ChangeFields on Change {
|
|
757
|
+
key
|
|
758
|
+
label
|
|
759
|
+
status
|
|
760
|
+
severity
|
|
761
|
+
reason
|
|
762
|
+
category
|
|
763
|
+
operation
|
|
764
|
+
options {
|
|
765
|
+
...ChoiceFields
|
|
766
|
+
}
|
|
767
|
+
before {
|
|
768
|
+
...ChoiceFields
|
|
769
|
+
}
|
|
770
|
+
after {
|
|
771
|
+
...ChoiceFields
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
fragment ChangeSetFields on ChangeSet {
|
|
775
|
+
changes {
|
|
776
|
+
...ChangeFields
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
fragment OperationErrorFields on OperationError {
|
|
780
|
+
__typename
|
|
781
|
+
type
|
|
782
|
+
code
|
|
783
|
+
message
|
|
784
|
+
requiredPermission
|
|
785
|
+
service
|
|
786
|
+
retryable
|
|
787
|
+
}
|
|
788
|
+
fragment PharmacyFields on Pharmacy {
|
|
789
|
+
id
|
|
790
|
+
name
|
|
791
|
+
address {
|
|
792
|
+
street1
|
|
793
|
+
street2
|
|
794
|
+
city
|
|
795
|
+
state
|
|
796
|
+
postalCode
|
|
797
|
+
}
|
|
798
|
+
latitude
|
|
799
|
+
longitude
|
|
800
|
+
fulfillmentType
|
|
801
|
+
offers {
|
|
802
|
+
...PharmacyOfferFields
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
fragment PatientDemographicFields on PatientDemographic {
|
|
806
|
+
name {
|
|
807
|
+
first
|
|
808
|
+
middle
|
|
809
|
+
last
|
|
810
|
+
}
|
|
811
|
+
dateOfBirth
|
|
812
|
+
sex
|
|
813
|
+
gender
|
|
814
|
+
email
|
|
815
|
+
phone
|
|
816
|
+
address {
|
|
817
|
+
street1
|
|
818
|
+
street2
|
|
819
|
+
city
|
|
820
|
+
state
|
|
821
|
+
postalCode
|
|
822
|
+
country
|
|
823
|
+
}
|
|
824
|
+
benefits {
|
|
825
|
+
status
|
|
826
|
+
entries {
|
|
827
|
+
id
|
|
828
|
+
bin
|
|
829
|
+
pcn
|
|
830
|
+
groupId
|
|
831
|
+
memberId
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
preferredPharmacy {
|
|
835
|
+
...PharmacyFields
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
fragment PatientFields on Patient {
|
|
839
|
+
id
|
|
840
|
+
demographic {
|
|
841
|
+
...PatientDemographicFields
|
|
842
|
+
}
|
|
843
|
+
clinical {
|
|
844
|
+
allergies {
|
|
845
|
+
status
|
|
846
|
+
entries {
|
|
847
|
+
id
|
|
848
|
+
name
|
|
849
|
+
rxNormId
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
medications {
|
|
853
|
+
status
|
|
854
|
+
entries {
|
|
855
|
+
id
|
|
856
|
+
name
|
|
857
|
+
rxNormId
|
|
858
|
+
status
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
diagnoses {
|
|
862
|
+
status
|
|
863
|
+
entries {
|
|
864
|
+
id
|
|
865
|
+
name
|
|
866
|
+
icd10Code
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
notes
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
fragment PatientRecordFields on PatientRecordResult {
|
|
873
|
+
__typename
|
|
874
|
+
... on Patient {
|
|
875
|
+
...PatientFields
|
|
876
|
+
}
|
|
877
|
+
... on OperationError {
|
|
878
|
+
...OperationErrorFields
|
|
879
|
+
}
|
|
880
|
+
}`, { "fragmentName": "PatientResultFields" });
|
|
881
|
+
export const ScreeningAlertFieldsFragmentDoc = new TypedDocumentString(`
|
|
882
|
+
fragment ScreeningAlertFields on ScreeningAlert {
|
|
883
|
+
severity
|
|
884
|
+
type
|
|
885
|
+
description
|
|
886
|
+
category
|
|
887
|
+
involvedEntities {
|
|
888
|
+
id
|
|
889
|
+
name
|
|
890
|
+
}
|
|
891
|
+
options {
|
|
892
|
+
...ChoiceFields
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
fragment TreatmentFields on Treatment {
|
|
896
|
+
id
|
|
897
|
+
name
|
|
898
|
+
rxNormId
|
|
899
|
+
ndc
|
|
900
|
+
upc
|
|
901
|
+
entityKind
|
|
902
|
+
prescribableName
|
|
903
|
+
brandName
|
|
904
|
+
genericName
|
|
905
|
+
form
|
|
906
|
+
route
|
|
907
|
+
strength
|
|
908
|
+
medicationType
|
|
909
|
+
schedule
|
|
910
|
+
recommendedDispenseUnits
|
|
911
|
+
}
|
|
912
|
+
fragment ChoiceFields on Choice {
|
|
913
|
+
__typename
|
|
914
|
+
displayName
|
|
915
|
+
reason
|
|
916
|
+
operation
|
|
917
|
+
argument
|
|
918
|
+
value
|
|
919
|
+
matchReasons {
|
|
920
|
+
type
|
|
921
|
+
label
|
|
922
|
+
confidence
|
|
923
|
+
}
|
|
924
|
+
entity {
|
|
925
|
+
__typename
|
|
926
|
+
... on Treatment {
|
|
927
|
+
...TreatmentFields
|
|
928
|
+
}
|
|
929
|
+
... on Pharmacy {
|
|
930
|
+
...PharmacyFields
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
fragment PharmacyOfferFields on PharmacyOffer {
|
|
935
|
+
source
|
|
936
|
+
isPromoted
|
|
937
|
+
attributeTags {
|
|
938
|
+
kind
|
|
939
|
+
label
|
|
940
|
+
}
|
|
941
|
+
priceSummary {
|
|
942
|
+
priceType
|
|
943
|
+
totalAmount
|
|
944
|
+
totalRetailAmount
|
|
945
|
+
totalSavings
|
|
946
|
+
}
|
|
947
|
+
prescriptionDeliveryEstimates {
|
|
948
|
+
prescriptionId
|
|
949
|
+
deliveryPromise
|
|
950
|
+
deliveryPromiseRangeStart
|
|
951
|
+
deliveryPromiseRangeEnd
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
fragment PharmacyFields on Pharmacy {
|
|
955
|
+
id
|
|
956
|
+
name
|
|
957
|
+
address {
|
|
958
|
+
street1
|
|
959
|
+
street2
|
|
960
|
+
city
|
|
961
|
+
state
|
|
962
|
+
postalCode
|
|
963
|
+
}
|
|
964
|
+
latitude
|
|
965
|
+
longitude
|
|
966
|
+
fulfillmentType
|
|
967
|
+
offers {
|
|
968
|
+
...PharmacyOfferFields
|
|
969
|
+
}
|
|
970
|
+
}`, { "fragmentName": "ScreeningAlertFields" });
|
|
971
|
+
export const PrescriptionFieldsFragmentDoc = new TypedDocumentString(`
|
|
972
|
+
fragment PrescriptionFields on Prescription {
|
|
973
|
+
id
|
|
974
|
+
templateId
|
|
975
|
+
patient {
|
|
976
|
+
id
|
|
977
|
+
}
|
|
978
|
+
treatment {
|
|
979
|
+
...TreatmentFields
|
|
980
|
+
}
|
|
981
|
+
instructions
|
|
982
|
+
dispense {
|
|
983
|
+
quantity
|
|
984
|
+
unit
|
|
985
|
+
daysSupply
|
|
986
|
+
refillsAllowed
|
|
987
|
+
dispenseAsWritten
|
|
988
|
+
}
|
|
989
|
+
clinical {
|
|
990
|
+
diagnoses {
|
|
991
|
+
id
|
|
992
|
+
name
|
|
993
|
+
icd10Code
|
|
994
|
+
}
|
|
995
|
+
notes
|
|
996
|
+
}
|
|
997
|
+
screeningAlerts {
|
|
998
|
+
...ScreeningAlertFields
|
|
999
|
+
}
|
|
1000
|
+
signing {
|
|
1001
|
+
state
|
|
1002
|
+
contentHash
|
|
1003
|
+
message
|
|
1004
|
+
signedAt
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
fragment TreatmentFields on Treatment {
|
|
1008
|
+
id
|
|
1009
|
+
name
|
|
1010
|
+
rxNormId
|
|
1011
|
+
ndc
|
|
1012
|
+
upc
|
|
1013
|
+
entityKind
|
|
1014
|
+
prescribableName
|
|
1015
|
+
brandName
|
|
1016
|
+
genericName
|
|
1017
|
+
form
|
|
1018
|
+
route
|
|
1019
|
+
strength
|
|
1020
|
+
medicationType
|
|
1021
|
+
schedule
|
|
1022
|
+
recommendedDispenseUnits
|
|
1023
|
+
}
|
|
1024
|
+
fragment ChoiceFields on Choice {
|
|
1025
|
+
__typename
|
|
1026
|
+
displayName
|
|
1027
|
+
reason
|
|
1028
|
+
operation
|
|
1029
|
+
argument
|
|
1030
|
+
value
|
|
1031
|
+
matchReasons {
|
|
1032
|
+
type
|
|
1033
|
+
label
|
|
1034
|
+
confidence
|
|
1035
|
+
}
|
|
1036
|
+
entity {
|
|
1037
|
+
__typename
|
|
1038
|
+
... on Treatment {
|
|
1039
|
+
...TreatmentFields
|
|
1040
|
+
}
|
|
1041
|
+
... on Pharmacy {
|
|
1042
|
+
...PharmacyFields
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
fragment PharmacyOfferFields on PharmacyOffer {
|
|
1047
|
+
source
|
|
1048
|
+
isPromoted
|
|
1049
|
+
attributeTags {
|
|
1050
|
+
kind
|
|
1051
|
+
label
|
|
1052
|
+
}
|
|
1053
|
+
priceSummary {
|
|
1054
|
+
priceType
|
|
1055
|
+
totalAmount
|
|
1056
|
+
totalRetailAmount
|
|
1057
|
+
totalSavings
|
|
1058
|
+
}
|
|
1059
|
+
prescriptionDeliveryEstimates {
|
|
1060
|
+
prescriptionId
|
|
1061
|
+
deliveryPromise
|
|
1062
|
+
deliveryPromiseRangeStart
|
|
1063
|
+
deliveryPromiseRangeEnd
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
fragment PharmacyFields on Pharmacy {
|
|
1067
|
+
id
|
|
1068
|
+
name
|
|
1069
|
+
address {
|
|
1070
|
+
street1
|
|
1071
|
+
street2
|
|
1072
|
+
city
|
|
1073
|
+
state
|
|
1074
|
+
postalCode
|
|
1075
|
+
}
|
|
1076
|
+
latitude
|
|
1077
|
+
longitude
|
|
1078
|
+
fulfillmentType
|
|
1079
|
+
offers {
|
|
1080
|
+
...PharmacyOfferFields
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
fragment ScreeningAlertFields on ScreeningAlert {
|
|
1084
|
+
severity
|
|
1085
|
+
type
|
|
1086
|
+
description
|
|
1087
|
+
category
|
|
1088
|
+
involvedEntities {
|
|
1089
|
+
id
|
|
1090
|
+
name
|
|
1091
|
+
}
|
|
1092
|
+
options {
|
|
1093
|
+
...ChoiceFields
|
|
1094
|
+
}
|
|
1095
|
+
}`, { "fragmentName": "PrescriptionFields" });
|
|
1096
|
+
export const PrescriptionResultFieldsFragmentDoc = new TypedDocumentString(`
|
|
1097
|
+
fragment PrescriptionResultFields on PrescriptionResult {
|
|
1098
|
+
__typename
|
|
1099
|
+
... on PrescriptionPayload {
|
|
1100
|
+
prescription {
|
|
1101
|
+
...PrescriptionFields
|
|
1102
|
+
}
|
|
1103
|
+
...ChangeSetFields
|
|
1104
|
+
}
|
|
1105
|
+
... on AmbiguousPrescriptionMatch {
|
|
1106
|
+
reason
|
|
1107
|
+
candidates {
|
|
1108
|
+
id
|
|
1109
|
+
instructions
|
|
1110
|
+
dispense {
|
|
1111
|
+
quantity
|
|
1112
|
+
unit
|
|
1113
|
+
daysSupply
|
|
1114
|
+
refillsAllowed
|
|
1115
|
+
dispenseAsWritten
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
... on OperationError {
|
|
1120
|
+
...OperationErrorFields
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
fragment TreatmentFields on Treatment {
|
|
1124
|
+
id
|
|
1125
|
+
name
|
|
1126
|
+
rxNormId
|
|
1127
|
+
ndc
|
|
1128
|
+
upc
|
|
1129
|
+
entityKind
|
|
1130
|
+
prescribableName
|
|
1131
|
+
brandName
|
|
1132
|
+
genericName
|
|
1133
|
+
form
|
|
1134
|
+
route
|
|
1135
|
+
strength
|
|
1136
|
+
medicationType
|
|
1137
|
+
schedule
|
|
1138
|
+
recommendedDispenseUnits
|
|
1139
|
+
}
|
|
1140
|
+
fragment ChoiceFields on Choice {
|
|
1141
|
+
__typename
|
|
1142
|
+
displayName
|
|
1143
|
+
reason
|
|
1144
|
+
operation
|
|
1145
|
+
argument
|
|
1146
|
+
value
|
|
1147
|
+
matchReasons {
|
|
1148
|
+
type
|
|
1149
|
+
label
|
|
1150
|
+
confidence
|
|
1151
|
+
}
|
|
1152
|
+
entity {
|
|
1153
|
+
__typename
|
|
1154
|
+
... on Treatment {
|
|
1155
|
+
...TreatmentFields
|
|
1156
|
+
}
|
|
1157
|
+
... on Pharmacy {
|
|
1158
|
+
...PharmacyFields
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
fragment PharmacyOfferFields on PharmacyOffer {
|
|
1163
|
+
source
|
|
1164
|
+
isPromoted
|
|
1165
|
+
attributeTags {
|
|
1166
|
+
kind
|
|
1167
|
+
label
|
|
1168
|
+
}
|
|
1169
|
+
priceSummary {
|
|
1170
|
+
priceType
|
|
1171
|
+
totalAmount
|
|
1172
|
+
totalRetailAmount
|
|
1173
|
+
totalSavings
|
|
1174
|
+
}
|
|
1175
|
+
prescriptionDeliveryEstimates {
|
|
1176
|
+
prescriptionId
|
|
1177
|
+
deliveryPromise
|
|
1178
|
+
deliveryPromiseRangeStart
|
|
1179
|
+
deliveryPromiseRangeEnd
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
fragment ChangeFields on Change {
|
|
1183
|
+
key
|
|
1184
|
+
label
|
|
1185
|
+
status
|
|
1186
|
+
severity
|
|
1187
|
+
reason
|
|
1188
|
+
category
|
|
1189
|
+
operation
|
|
1190
|
+
options {
|
|
1191
|
+
...ChoiceFields
|
|
1192
|
+
}
|
|
1193
|
+
before {
|
|
1194
|
+
...ChoiceFields
|
|
1195
|
+
}
|
|
1196
|
+
after {
|
|
1197
|
+
...ChoiceFields
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
fragment ChangeSetFields on ChangeSet {
|
|
1201
|
+
changes {
|
|
1202
|
+
...ChangeFields
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
fragment OperationErrorFields on OperationError {
|
|
1206
|
+
__typename
|
|
1207
|
+
type
|
|
1208
|
+
code
|
|
1209
|
+
message
|
|
1210
|
+
requiredPermission
|
|
1211
|
+
service
|
|
1212
|
+
retryable
|
|
1213
|
+
}
|
|
1214
|
+
fragment PharmacyFields on Pharmacy {
|
|
1215
|
+
id
|
|
1216
|
+
name
|
|
1217
|
+
address {
|
|
1218
|
+
street1
|
|
1219
|
+
street2
|
|
1220
|
+
city
|
|
1221
|
+
state
|
|
1222
|
+
postalCode
|
|
1223
|
+
}
|
|
1224
|
+
latitude
|
|
1225
|
+
longitude
|
|
1226
|
+
fulfillmentType
|
|
1227
|
+
offers {
|
|
1228
|
+
...PharmacyOfferFields
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
fragment ScreeningAlertFields on ScreeningAlert {
|
|
1232
|
+
severity
|
|
1233
|
+
type
|
|
1234
|
+
description
|
|
1235
|
+
category
|
|
1236
|
+
involvedEntities {
|
|
1237
|
+
id
|
|
1238
|
+
name
|
|
1239
|
+
}
|
|
1240
|
+
options {
|
|
1241
|
+
...ChoiceFields
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
fragment PrescriptionFields on Prescription {
|
|
1245
|
+
id
|
|
1246
|
+
templateId
|
|
1247
|
+
patient {
|
|
1248
|
+
id
|
|
1249
|
+
}
|
|
1250
|
+
treatment {
|
|
1251
|
+
...TreatmentFields
|
|
1252
|
+
}
|
|
1253
|
+
instructions
|
|
1254
|
+
dispense {
|
|
1255
|
+
quantity
|
|
1256
|
+
unit
|
|
1257
|
+
daysSupply
|
|
1258
|
+
refillsAllowed
|
|
1259
|
+
dispenseAsWritten
|
|
1260
|
+
}
|
|
1261
|
+
clinical {
|
|
1262
|
+
diagnoses {
|
|
1263
|
+
id
|
|
1264
|
+
name
|
|
1265
|
+
icd10Code
|
|
1266
|
+
}
|
|
1267
|
+
notes
|
|
1268
|
+
}
|
|
1269
|
+
screeningAlerts {
|
|
1270
|
+
...ScreeningAlertFields
|
|
1271
|
+
}
|
|
1272
|
+
signing {
|
|
1273
|
+
state
|
|
1274
|
+
contentHash
|
|
1275
|
+
message
|
|
1276
|
+
signedAt
|
|
1277
|
+
}
|
|
1278
|
+
}`, { "fragmentName": "PrescriptionResultFields" });
|
|
1279
|
+
export const OrderFieldsFragmentDoc = new TypedDocumentString(`
|
|
1280
|
+
fragment OrderFields on Order {
|
|
1281
|
+
id
|
|
1282
|
+
state
|
|
1283
|
+
patient {
|
|
1284
|
+
...PatientRecordFields
|
|
1285
|
+
}
|
|
1286
|
+
prescriptions {
|
|
1287
|
+
...PrescriptionFields
|
|
1288
|
+
}
|
|
1289
|
+
screeningAlerts {
|
|
1290
|
+
...ScreeningAlertFields
|
|
1291
|
+
}
|
|
1292
|
+
pharmacy {
|
|
1293
|
+
...PharmacyFields
|
|
1294
|
+
}
|
|
1295
|
+
exceptions {
|
|
1296
|
+
id
|
|
1297
|
+
type
|
|
1298
|
+
message
|
|
1299
|
+
createdAt
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
fragment TreatmentFields on Treatment {
|
|
1303
|
+
id
|
|
1304
|
+
name
|
|
1305
|
+
rxNormId
|
|
1306
|
+
ndc
|
|
1307
|
+
upc
|
|
1308
|
+
entityKind
|
|
1309
|
+
prescribableName
|
|
1310
|
+
brandName
|
|
1311
|
+
genericName
|
|
1312
|
+
form
|
|
1313
|
+
route
|
|
1314
|
+
strength
|
|
1315
|
+
medicationType
|
|
1316
|
+
schedule
|
|
1317
|
+
recommendedDispenseUnits
|
|
1318
|
+
}
|
|
1319
|
+
fragment ChoiceFields on Choice {
|
|
1320
|
+
__typename
|
|
1321
|
+
displayName
|
|
1322
|
+
reason
|
|
1323
|
+
operation
|
|
1324
|
+
argument
|
|
1325
|
+
value
|
|
1326
|
+
matchReasons {
|
|
1327
|
+
type
|
|
1328
|
+
label
|
|
1329
|
+
confidence
|
|
1330
|
+
}
|
|
1331
|
+
entity {
|
|
1332
|
+
__typename
|
|
1333
|
+
... on Treatment {
|
|
1334
|
+
...TreatmentFields
|
|
1335
|
+
}
|
|
1336
|
+
... on Pharmacy {
|
|
1337
|
+
...PharmacyFields
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
fragment PharmacyOfferFields on PharmacyOffer {
|
|
1342
|
+
source
|
|
1343
|
+
isPromoted
|
|
1344
|
+
attributeTags {
|
|
1345
|
+
kind
|
|
1346
|
+
label
|
|
1347
|
+
}
|
|
1348
|
+
priceSummary {
|
|
1349
|
+
priceType
|
|
1350
|
+
totalAmount
|
|
1351
|
+
totalRetailAmount
|
|
1352
|
+
totalSavings
|
|
1353
|
+
}
|
|
1354
|
+
prescriptionDeliveryEstimates {
|
|
1355
|
+
prescriptionId
|
|
1356
|
+
deliveryPromise
|
|
1357
|
+
deliveryPromiseRangeStart
|
|
1358
|
+
deliveryPromiseRangeEnd
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
fragment OperationErrorFields on OperationError {
|
|
1362
|
+
__typename
|
|
1363
|
+
type
|
|
1364
|
+
code
|
|
1365
|
+
message
|
|
1366
|
+
requiredPermission
|
|
1367
|
+
service
|
|
1368
|
+
retryable
|
|
1369
|
+
}
|
|
1370
|
+
fragment PharmacyFields on Pharmacy {
|
|
1371
|
+
id
|
|
1372
|
+
name
|
|
1373
|
+
address {
|
|
1374
|
+
street1
|
|
1375
|
+
street2
|
|
1376
|
+
city
|
|
1377
|
+
state
|
|
1378
|
+
postalCode
|
|
1379
|
+
}
|
|
1380
|
+
latitude
|
|
1381
|
+
longitude
|
|
1382
|
+
fulfillmentType
|
|
1383
|
+
offers {
|
|
1384
|
+
...PharmacyOfferFields
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
fragment PatientDemographicFields on PatientDemographic {
|
|
1388
|
+
name {
|
|
1389
|
+
first
|
|
1390
|
+
middle
|
|
1391
|
+
last
|
|
1392
|
+
}
|
|
1393
|
+
dateOfBirth
|
|
1394
|
+
sex
|
|
1395
|
+
gender
|
|
1396
|
+
email
|
|
1397
|
+
phone
|
|
1398
|
+
address {
|
|
1399
|
+
street1
|
|
1400
|
+
street2
|
|
1401
|
+
city
|
|
1402
|
+
state
|
|
1403
|
+
postalCode
|
|
1404
|
+
country
|
|
1405
|
+
}
|
|
1406
|
+
benefits {
|
|
1407
|
+
status
|
|
1408
|
+
entries {
|
|
1409
|
+
id
|
|
1410
|
+
bin
|
|
1411
|
+
pcn
|
|
1412
|
+
groupId
|
|
1413
|
+
memberId
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
preferredPharmacy {
|
|
1417
|
+
...PharmacyFields
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
fragment PatientFields on Patient {
|
|
1421
|
+
id
|
|
1422
|
+
demographic {
|
|
1423
|
+
...PatientDemographicFields
|
|
1424
|
+
}
|
|
1425
|
+
clinical {
|
|
1426
|
+
allergies {
|
|
1427
|
+
status
|
|
1428
|
+
entries {
|
|
1429
|
+
id
|
|
1430
|
+
name
|
|
1431
|
+
rxNormId
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
medications {
|
|
1435
|
+
status
|
|
1436
|
+
entries {
|
|
1437
|
+
id
|
|
1438
|
+
name
|
|
1439
|
+
rxNormId
|
|
1440
|
+
status
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
diagnoses {
|
|
1444
|
+
status
|
|
1445
|
+
entries {
|
|
1446
|
+
id
|
|
1447
|
+
name
|
|
1448
|
+
icd10Code
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
notes
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
fragment PatientRecordFields on PatientRecordResult {
|
|
1455
|
+
__typename
|
|
1456
|
+
... on Patient {
|
|
1457
|
+
...PatientFields
|
|
1458
|
+
}
|
|
1459
|
+
... on OperationError {
|
|
1460
|
+
...OperationErrorFields
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
fragment ScreeningAlertFields on ScreeningAlert {
|
|
1464
|
+
severity
|
|
1465
|
+
type
|
|
1466
|
+
description
|
|
1467
|
+
category
|
|
1468
|
+
involvedEntities {
|
|
1469
|
+
id
|
|
1470
|
+
name
|
|
1471
|
+
}
|
|
1472
|
+
options {
|
|
1473
|
+
...ChoiceFields
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
fragment PrescriptionFields on Prescription {
|
|
1477
|
+
id
|
|
1478
|
+
templateId
|
|
1479
|
+
patient {
|
|
1480
|
+
id
|
|
1481
|
+
}
|
|
1482
|
+
treatment {
|
|
1483
|
+
...TreatmentFields
|
|
1484
|
+
}
|
|
1485
|
+
instructions
|
|
1486
|
+
dispense {
|
|
1487
|
+
quantity
|
|
1488
|
+
unit
|
|
1489
|
+
daysSupply
|
|
1490
|
+
refillsAllowed
|
|
1491
|
+
dispenseAsWritten
|
|
1492
|
+
}
|
|
1493
|
+
clinical {
|
|
1494
|
+
diagnoses {
|
|
1495
|
+
id
|
|
1496
|
+
name
|
|
1497
|
+
icd10Code
|
|
1498
|
+
}
|
|
1499
|
+
notes
|
|
1500
|
+
}
|
|
1501
|
+
screeningAlerts {
|
|
1502
|
+
...ScreeningAlertFields
|
|
1503
|
+
}
|
|
1504
|
+
signing {
|
|
1505
|
+
state
|
|
1506
|
+
contentHash
|
|
1507
|
+
message
|
|
1508
|
+
signedAt
|
|
1509
|
+
}
|
|
1510
|
+
}`, { "fragmentName": "OrderFields" });
|
|
1511
|
+
export const OrderCandidateFieldsFragmentDoc = new TypedDocumentString(`
|
|
1512
|
+
fragment OrderCandidateFields on OrderCandidate {
|
|
1513
|
+
id
|
|
1514
|
+
pharmacy {
|
|
1515
|
+
...PharmacyFields
|
|
1516
|
+
}
|
|
1517
|
+
prescriptions {
|
|
1518
|
+
...PrescriptionFields
|
|
1519
|
+
}
|
|
1520
|
+
}
|
|
1521
|
+
fragment TreatmentFields on Treatment {
|
|
1522
|
+
id
|
|
1523
|
+
name
|
|
1524
|
+
rxNormId
|
|
1525
|
+
ndc
|
|
1526
|
+
upc
|
|
1527
|
+
entityKind
|
|
1528
|
+
prescribableName
|
|
1529
|
+
brandName
|
|
1530
|
+
genericName
|
|
1531
|
+
form
|
|
1532
|
+
route
|
|
1533
|
+
strength
|
|
1534
|
+
medicationType
|
|
1535
|
+
schedule
|
|
1536
|
+
recommendedDispenseUnits
|
|
1537
|
+
}
|
|
1538
|
+
fragment ChoiceFields on Choice {
|
|
1539
|
+
__typename
|
|
1540
|
+
displayName
|
|
1541
|
+
reason
|
|
1542
|
+
operation
|
|
1543
|
+
argument
|
|
1544
|
+
value
|
|
1545
|
+
matchReasons {
|
|
1546
|
+
type
|
|
1547
|
+
label
|
|
1548
|
+
confidence
|
|
1549
|
+
}
|
|
1550
|
+
entity {
|
|
1551
|
+
__typename
|
|
1552
|
+
... on Treatment {
|
|
1553
|
+
...TreatmentFields
|
|
1554
|
+
}
|
|
1555
|
+
... on Pharmacy {
|
|
1556
|
+
...PharmacyFields
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
fragment PharmacyOfferFields on PharmacyOffer {
|
|
1561
|
+
source
|
|
1562
|
+
isPromoted
|
|
1563
|
+
attributeTags {
|
|
1564
|
+
kind
|
|
1565
|
+
label
|
|
1566
|
+
}
|
|
1567
|
+
priceSummary {
|
|
1568
|
+
priceType
|
|
1569
|
+
totalAmount
|
|
1570
|
+
totalRetailAmount
|
|
1571
|
+
totalSavings
|
|
1572
|
+
}
|
|
1573
|
+
prescriptionDeliveryEstimates {
|
|
1574
|
+
prescriptionId
|
|
1575
|
+
deliveryPromise
|
|
1576
|
+
deliveryPromiseRangeStart
|
|
1577
|
+
deliveryPromiseRangeEnd
|
|
1578
|
+
}
|
|
1579
|
+
}
|
|
1580
|
+
fragment PharmacyFields on Pharmacy {
|
|
1581
|
+
id
|
|
1582
|
+
name
|
|
1583
|
+
address {
|
|
1584
|
+
street1
|
|
1585
|
+
street2
|
|
1586
|
+
city
|
|
1587
|
+
state
|
|
1588
|
+
postalCode
|
|
1589
|
+
}
|
|
1590
|
+
latitude
|
|
1591
|
+
longitude
|
|
1592
|
+
fulfillmentType
|
|
1593
|
+
offers {
|
|
1594
|
+
...PharmacyOfferFields
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
fragment ScreeningAlertFields on ScreeningAlert {
|
|
1598
|
+
severity
|
|
1599
|
+
type
|
|
1600
|
+
description
|
|
1601
|
+
category
|
|
1602
|
+
involvedEntities {
|
|
1603
|
+
id
|
|
1604
|
+
name
|
|
1605
|
+
}
|
|
1606
|
+
options {
|
|
1607
|
+
...ChoiceFields
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
fragment PrescriptionFields on Prescription {
|
|
1611
|
+
id
|
|
1612
|
+
templateId
|
|
1613
|
+
patient {
|
|
1614
|
+
id
|
|
1615
|
+
}
|
|
1616
|
+
treatment {
|
|
1617
|
+
...TreatmentFields
|
|
1618
|
+
}
|
|
1619
|
+
instructions
|
|
1620
|
+
dispense {
|
|
1621
|
+
quantity
|
|
1622
|
+
unit
|
|
1623
|
+
daysSupply
|
|
1624
|
+
refillsAllowed
|
|
1625
|
+
dispenseAsWritten
|
|
1626
|
+
}
|
|
1627
|
+
clinical {
|
|
1628
|
+
diagnoses {
|
|
1629
|
+
id
|
|
1630
|
+
name
|
|
1631
|
+
icd10Code
|
|
1632
|
+
}
|
|
1633
|
+
notes
|
|
1634
|
+
}
|
|
1635
|
+
screeningAlerts {
|
|
1636
|
+
...ScreeningAlertFields
|
|
1637
|
+
}
|
|
1638
|
+
signing {
|
|
1639
|
+
state
|
|
1640
|
+
contentHash
|
|
1641
|
+
message
|
|
1642
|
+
signedAt
|
|
1643
|
+
}
|
|
1644
|
+
}`, { "fragmentName": "OrderCandidateFields" });
|
|
1645
|
+
export const OrderResultFieldsFragmentDoc = new TypedDocumentString(`
|
|
1646
|
+
fragment OrderResultFields on OrderResult {
|
|
1647
|
+
__typename
|
|
1648
|
+
... on OrderPayload {
|
|
1649
|
+
order {
|
|
1650
|
+
...OrderFields
|
|
1651
|
+
}
|
|
1652
|
+
...ChangeSetFields
|
|
1653
|
+
}
|
|
1654
|
+
... on AmbiguousOrderMatch {
|
|
1655
|
+
reason
|
|
1656
|
+
candidates {
|
|
1657
|
+
...OrderCandidateFields
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
... on OperationError {
|
|
1661
|
+
...OperationErrorFields
|
|
1662
|
+
}
|
|
1663
|
+
}
|
|
1664
|
+
fragment TreatmentFields on Treatment {
|
|
1665
|
+
id
|
|
1666
|
+
name
|
|
1667
|
+
rxNormId
|
|
1668
|
+
ndc
|
|
1669
|
+
upc
|
|
1670
|
+
entityKind
|
|
1671
|
+
prescribableName
|
|
1672
|
+
brandName
|
|
1673
|
+
genericName
|
|
1674
|
+
form
|
|
1675
|
+
route
|
|
1676
|
+
strength
|
|
1677
|
+
medicationType
|
|
1678
|
+
schedule
|
|
1679
|
+
recommendedDispenseUnits
|
|
1680
|
+
}
|
|
1681
|
+
fragment ChoiceFields on Choice {
|
|
1682
|
+
__typename
|
|
1683
|
+
displayName
|
|
1684
|
+
reason
|
|
1685
|
+
operation
|
|
1686
|
+
argument
|
|
1687
|
+
value
|
|
1688
|
+
matchReasons {
|
|
1689
|
+
type
|
|
1690
|
+
label
|
|
1691
|
+
confidence
|
|
1692
|
+
}
|
|
1693
|
+
entity {
|
|
1694
|
+
__typename
|
|
1695
|
+
... on Treatment {
|
|
1696
|
+
...TreatmentFields
|
|
1697
|
+
}
|
|
1698
|
+
... on Pharmacy {
|
|
1699
|
+
...PharmacyFields
|
|
1700
|
+
}
|
|
1701
|
+
}
|
|
1702
|
+
}
|
|
1703
|
+
fragment PharmacyOfferFields on PharmacyOffer {
|
|
1704
|
+
source
|
|
1705
|
+
isPromoted
|
|
1706
|
+
attributeTags {
|
|
1707
|
+
kind
|
|
1708
|
+
label
|
|
1709
|
+
}
|
|
1710
|
+
priceSummary {
|
|
1711
|
+
priceType
|
|
1712
|
+
totalAmount
|
|
1713
|
+
totalRetailAmount
|
|
1714
|
+
totalSavings
|
|
1715
|
+
}
|
|
1716
|
+
prescriptionDeliveryEstimates {
|
|
1717
|
+
prescriptionId
|
|
1718
|
+
deliveryPromise
|
|
1719
|
+
deliveryPromiseRangeStart
|
|
1720
|
+
deliveryPromiseRangeEnd
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
fragment ChangeFields on Change {
|
|
1724
|
+
key
|
|
1725
|
+
label
|
|
1726
|
+
status
|
|
1727
|
+
severity
|
|
1728
|
+
reason
|
|
1729
|
+
category
|
|
1730
|
+
operation
|
|
1731
|
+
options {
|
|
1732
|
+
...ChoiceFields
|
|
1733
|
+
}
|
|
1734
|
+
before {
|
|
1735
|
+
...ChoiceFields
|
|
1736
|
+
}
|
|
1737
|
+
after {
|
|
1738
|
+
...ChoiceFields
|
|
1739
|
+
}
|
|
1740
|
+
}
|
|
1741
|
+
fragment ChangeSetFields on ChangeSet {
|
|
1742
|
+
changes {
|
|
1743
|
+
...ChangeFields
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
fragment OperationErrorFields on OperationError {
|
|
1747
|
+
__typename
|
|
1748
|
+
type
|
|
1749
|
+
code
|
|
1750
|
+
message
|
|
1751
|
+
requiredPermission
|
|
1752
|
+
service
|
|
1753
|
+
retryable
|
|
1754
|
+
}
|
|
1755
|
+
fragment PharmacyFields on Pharmacy {
|
|
1756
|
+
id
|
|
1757
|
+
name
|
|
1758
|
+
address {
|
|
1759
|
+
street1
|
|
1760
|
+
street2
|
|
1761
|
+
city
|
|
1762
|
+
state
|
|
1763
|
+
postalCode
|
|
1764
|
+
}
|
|
1765
|
+
latitude
|
|
1766
|
+
longitude
|
|
1767
|
+
fulfillmentType
|
|
1768
|
+
offers {
|
|
1769
|
+
...PharmacyOfferFields
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1772
|
+
fragment PatientDemographicFields on PatientDemographic {
|
|
1773
|
+
name {
|
|
1774
|
+
first
|
|
1775
|
+
middle
|
|
1776
|
+
last
|
|
1777
|
+
}
|
|
1778
|
+
dateOfBirth
|
|
1779
|
+
sex
|
|
1780
|
+
gender
|
|
1781
|
+
email
|
|
1782
|
+
phone
|
|
1783
|
+
address {
|
|
1784
|
+
street1
|
|
1785
|
+
street2
|
|
1786
|
+
city
|
|
1787
|
+
state
|
|
1788
|
+
postalCode
|
|
1789
|
+
country
|
|
1790
|
+
}
|
|
1791
|
+
benefits {
|
|
1792
|
+
status
|
|
1793
|
+
entries {
|
|
1794
|
+
id
|
|
1795
|
+
bin
|
|
1796
|
+
pcn
|
|
1797
|
+
groupId
|
|
1798
|
+
memberId
|
|
1799
|
+
}
|
|
1800
|
+
}
|
|
1801
|
+
preferredPharmacy {
|
|
1802
|
+
...PharmacyFields
|
|
1803
|
+
}
|
|
1804
|
+
}
|
|
1805
|
+
fragment PatientFields on Patient {
|
|
1806
|
+
id
|
|
1807
|
+
demographic {
|
|
1808
|
+
...PatientDemographicFields
|
|
1809
|
+
}
|
|
1810
|
+
clinical {
|
|
1811
|
+
allergies {
|
|
1812
|
+
status
|
|
1813
|
+
entries {
|
|
1814
|
+
id
|
|
1815
|
+
name
|
|
1816
|
+
rxNormId
|
|
1817
|
+
}
|
|
1818
|
+
}
|
|
1819
|
+
medications {
|
|
1820
|
+
status
|
|
1821
|
+
entries {
|
|
1822
|
+
id
|
|
1823
|
+
name
|
|
1824
|
+
rxNormId
|
|
1825
|
+
status
|
|
1826
|
+
}
|
|
1827
|
+
}
|
|
1828
|
+
diagnoses {
|
|
1829
|
+
status
|
|
1830
|
+
entries {
|
|
1831
|
+
id
|
|
1832
|
+
name
|
|
1833
|
+
icd10Code
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
notes
|
|
1837
|
+
}
|
|
1838
|
+
}
|
|
1839
|
+
fragment PatientRecordFields on PatientRecordResult {
|
|
1840
|
+
__typename
|
|
1841
|
+
... on Patient {
|
|
1842
|
+
...PatientFields
|
|
1843
|
+
}
|
|
1844
|
+
... on OperationError {
|
|
1845
|
+
...OperationErrorFields
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
fragment ScreeningAlertFields on ScreeningAlert {
|
|
1849
|
+
severity
|
|
1850
|
+
type
|
|
1851
|
+
description
|
|
1852
|
+
category
|
|
1853
|
+
involvedEntities {
|
|
1854
|
+
id
|
|
1855
|
+
name
|
|
1856
|
+
}
|
|
1857
|
+
options {
|
|
1858
|
+
...ChoiceFields
|
|
1859
|
+
}
|
|
1860
|
+
}
|
|
1861
|
+
fragment PrescriptionFields on Prescription {
|
|
1862
|
+
id
|
|
1863
|
+
templateId
|
|
1864
|
+
patient {
|
|
1865
|
+
id
|
|
1866
|
+
}
|
|
1867
|
+
treatment {
|
|
1868
|
+
...TreatmentFields
|
|
1869
|
+
}
|
|
1870
|
+
instructions
|
|
1871
|
+
dispense {
|
|
1872
|
+
quantity
|
|
1873
|
+
unit
|
|
1874
|
+
daysSupply
|
|
1875
|
+
refillsAllowed
|
|
1876
|
+
dispenseAsWritten
|
|
1877
|
+
}
|
|
1878
|
+
clinical {
|
|
1879
|
+
diagnoses {
|
|
1880
|
+
id
|
|
1881
|
+
name
|
|
1882
|
+
icd10Code
|
|
1883
|
+
}
|
|
1884
|
+
notes
|
|
1885
|
+
}
|
|
1886
|
+
screeningAlerts {
|
|
1887
|
+
...ScreeningAlertFields
|
|
1888
|
+
}
|
|
1889
|
+
signing {
|
|
1890
|
+
state
|
|
1891
|
+
contentHash
|
|
1892
|
+
message
|
|
1893
|
+
signedAt
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
fragment OrderFields on Order {
|
|
1897
|
+
id
|
|
1898
|
+
state
|
|
1899
|
+
patient {
|
|
1900
|
+
...PatientRecordFields
|
|
1901
|
+
}
|
|
1902
|
+
prescriptions {
|
|
1903
|
+
...PrescriptionFields
|
|
1904
|
+
}
|
|
1905
|
+
screeningAlerts {
|
|
1906
|
+
...ScreeningAlertFields
|
|
1907
|
+
}
|
|
1908
|
+
pharmacy {
|
|
1909
|
+
...PharmacyFields
|
|
1910
|
+
}
|
|
1911
|
+
exceptions {
|
|
1912
|
+
id
|
|
1913
|
+
type
|
|
1914
|
+
message
|
|
1915
|
+
createdAt
|
|
1916
|
+
}
|
|
1917
|
+
}
|
|
1918
|
+
fragment OrderCandidateFields on OrderCandidate {
|
|
1919
|
+
id
|
|
1920
|
+
pharmacy {
|
|
1921
|
+
...PharmacyFields
|
|
1922
|
+
}
|
|
1923
|
+
prescriptions {
|
|
1924
|
+
...PrescriptionFields
|
|
1925
|
+
}
|
|
1926
|
+
}`, { "fragmentName": "OrderResultFields" });
|
|
1927
|
+
export const PingDocument = new TypedDocumentString(`
|
|
1928
|
+
query Ping {
|
|
1929
|
+
ping
|
|
1930
|
+
}
|
|
1931
|
+
`);
|
|
1932
|
+
export const GetOrderDocument = new TypedDocumentString(`
|
|
1933
|
+
mutation GetOrder($id: ID!, $metadata: RequestMetadata!) {
|
|
1934
|
+
order(order: { id: $id }, metadata: $metadata) {
|
|
1935
|
+
...OrderResultFields
|
|
1936
|
+
}
|
|
1937
|
+
}
|
|
1938
|
+
fragment TreatmentFields on Treatment {
|
|
1939
|
+
id
|
|
1940
|
+
name
|
|
1941
|
+
rxNormId
|
|
1942
|
+
ndc
|
|
1943
|
+
upc
|
|
1944
|
+
entityKind
|
|
1945
|
+
prescribableName
|
|
1946
|
+
brandName
|
|
1947
|
+
genericName
|
|
1948
|
+
form
|
|
1949
|
+
route
|
|
1950
|
+
strength
|
|
1951
|
+
medicationType
|
|
1952
|
+
schedule
|
|
1953
|
+
recommendedDispenseUnits
|
|
1954
|
+
}
|
|
1955
|
+
fragment ChoiceFields on Choice {
|
|
1956
|
+
__typename
|
|
1957
|
+
displayName
|
|
1958
|
+
reason
|
|
1959
|
+
operation
|
|
1960
|
+
argument
|
|
1961
|
+
value
|
|
1962
|
+
matchReasons {
|
|
1963
|
+
type
|
|
1964
|
+
label
|
|
1965
|
+
confidence
|
|
1966
|
+
}
|
|
1967
|
+
entity {
|
|
1968
|
+
__typename
|
|
1969
|
+
... on Treatment {
|
|
1970
|
+
...TreatmentFields
|
|
1971
|
+
}
|
|
1972
|
+
... on Pharmacy {
|
|
1973
|
+
...PharmacyFields
|
|
1974
|
+
}
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
fragment PharmacyOfferFields on PharmacyOffer {
|
|
1978
|
+
source
|
|
1979
|
+
isPromoted
|
|
1980
|
+
attributeTags {
|
|
1981
|
+
kind
|
|
1982
|
+
label
|
|
1983
|
+
}
|
|
1984
|
+
priceSummary {
|
|
1985
|
+
priceType
|
|
1986
|
+
totalAmount
|
|
1987
|
+
totalRetailAmount
|
|
1988
|
+
totalSavings
|
|
1989
|
+
}
|
|
1990
|
+
prescriptionDeliveryEstimates {
|
|
1991
|
+
prescriptionId
|
|
1992
|
+
deliveryPromise
|
|
1993
|
+
deliveryPromiseRangeStart
|
|
1994
|
+
deliveryPromiseRangeEnd
|
|
1995
|
+
}
|
|
1996
|
+
}
|
|
1997
|
+
fragment ChangeFields on Change {
|
|
1998
|
+
key
|
|
1999
|
+
label
|
|
2000
|
+
status
|
|
2001
|
+
severity
|
|
2002
|
+
reason
|
|
2003
|
+
category
|
|
2004
|
+
operation
|
|
2005
|
+
options {
|
|
2006
|
+
...ChoiceFields
|
|
2007
|
+
}
|
|
2008
|
+
before {
|
|
2009
|
+
...ChoiceFields
|
|
2010
|
+
}
|
|
2011
|
+
after {
|
|
2012
|
+
...ChoiceFields
|
|
2013
|
+
}
|
|
2014
|
+
}
|
|
2015
|
+
fragment ChangeSetFields on ChangeSet {
|
|
2016
|
+
changes {
|
|
2017
|
+
...ChangeFields
|
|
2018
|
+
}
|
|
2019
|
+
}
|
|
2020
|
+
fragment OperationErrorFields on OperationError {
|
|
2021
|
+
__typename
|
|
2022
|
+
type
|
|
2023
|
+
code
|
|
2024
|
+
message
|
|
2025
|
+
requiredPermission
|
|
2026
|
+
service
|
|
2027
|
+
retryable
|
|
2028
|
+
}
|
|
2029
|
+
fragment PharmacyFields on Pharmacy {
|
|
2030
|
+
id
|
|
2031
|
+
name
|
|
2032
|
+
address {
|
|
2033
|
+
street1
|
|
2034
|
+
street2
|
|
2035
|
+
city
|
|
2036
|
+
state
|
|
2037
|
+
postalCode
|
|
2038
|
+
}
|
|
2039
|
+
latitude
|
|
2040
|
+
longitude
|
|
2041
|
+
fulfillmentType
|
|
2042
|
+
offers {
|
|
2043
|
+
...PharmacyOfferFields
|
|
2044
|
+
}
|
|
2045
|
+
}
|
|
2046
|
+
fragment PatientDemographicFields on PatientDemographic {
|
|
2047
|
+
name {
|
|
2048
|
+
first
|
|
2049
|
+
middle
|
|
2050
|
+
last
|
|
2051
|
+
}
|
|
2052
|
+
dateOfBirth
|
|
2053
|
+
sex
|
|
2054
|
+
gender
|
|
2055
|
+
email
|
|
2056
|
+
phone
|
|
2057
|
+
address {
|
|
2058
|
+
street1
|
|
2059
|
+
street2
|
|
2060
|
+
city
|
|
2061
|
+
state
|
|
2062
|
+
postalCode
|
|
2063
|
+
country
|
|
2064
|
+
}
|
|
2065
|
+
benefits {
|
|
2066
|
+
status
|
|
2067
|
+
entries {
|
|
2068
|
+
id
|
|
2069
|
+
bin
|
|
2070
|
+
pcn
|
|
2071
|
+
groupId
|
|
2072
|
+
memberId
|
|
2073
|
+
}
|
|
2074
|
+
}
|
|
2075
|
+
preferredPharmacy {
|
|
2076
|
+
...PharmacyFields
|
|
2077
|
+
}
|
|
2078
|
+
}
|
|
2079
|
+
fragment PatientFields on Patient {
|
|
2080
|
+
id
|
|
2081
|
+
demographic {
|
|
2082
|
+
...PatientDemographicFields
|
|
2083
|
+
}
|
|
2084
|
+
clinical {
|
|
2085
|
+
allergies {
|
|
2086
|
+
status
|
|
2087
|
+
entries {
|
|
2088
|
+
id
|
|
2089
|
+
name
|
|
2090
|
+
rxNormId
|
|
2091
|
+
}
|
|
2092
|
+
}
|
|
2093
|
+
medications {
|
|
2094
|
+
status
|
|
2095
|
+
entries {
|
|
2096
|
+
id
|
|
2097
|
+
name
|
|
2098
|
+
rxNormId
|
|
2099
|
+
status
|
|
2100
|
+
}
|
|
2101
|
+
}
|
|
2102
|
+
diagnoses {
|
|
2103
|
+
status
|
|
2104
|
+
entries {
|
|
2105
|
+
id
|
|
2106
|
+
name
|
|
2107
|
+
icd10Code
|
|
2108
|
+
}
|
|
2109
|
+
}
|
|
2110
|
+
notes
|
|
2111
|
+
}
|
|
2112
|
+
}
|
|
2113
|
+
fragment PatientRecordFields on PatientRecordResult {
|
|
2114
|
+
__typename
|
|
2115
|
+
... on Patient {
|
|
2116
|
+
...PatientFields
|
|
2117
|
+
}
|
|
2118
|
+
... on OperationError {
|
|
2119
|
+
...OperationErrorFields
|
|
2120
|
+
}
|
|
2121
|
+
}
|
|
2122
|
+
fragment ScreeningAlertFields on ScreeningAlert {
|
|
2123
|
+
severity
|
|
2124
|
+
type
|
|
2125
|
+
description
|
|
2126
|
+
category
|
|
2127
|
+
involvedEntities {
|
|
2128
|
+
id
|
|
2129
|
+
name
|
|
2130
|
+
}
|
|
2131
|
+
options {
|
|
2132
|
+
...ChoiceFields
|
|
2133
|
+
}
|
|
2134
|
+
}
|
|
2135
|
+
fragment PrescriptionFields on Prescription {
|
|
2136
|
+
id
|
|
2137
|
+
templateId
|
|
2138
|
+
patient {
|
|
2139
|
+
id
|
|
2140
|
+
}
|
|
2141
|
+
treatment {
|
|
2142
|
+
...TreatmentFields
|
|
2143
|
+
}
|
|
2144
|
+
instructions
|
|
2145
|
+
dispense {
|
|
2146
|
+
quantity
|
|
2147
|
+
unit
|
|
2148
|
+
daysSupply
|
|
2149
|
+
refillsAllowed
|
|
2150
|
+
dispenseAsWritten
|
|
2151
|
+
}
|
|
2152
|
+
clinical {
|
|
2153
|
+
diagnoses {
|
|
2154
|
+
id
|
|
2155
|
+
name
|
|
2156
|
+
icd10Code
|
|
2157
|
+
}
|
|
2158
|
+
notes
|
|
2159
|
+
}
|
|
2160
|
+
screeningAlerts {
|
|
2161
|
+
...ScreeningAlertFields
|
|
2162
|
+
}
|
|
2163
|
+
signing {
|
|
2164
|
+
state
|
|
2165
|
+
contentHash
|
|
2166
|
+
message
|
|
2167
|
+
signedAt
|
|
2168
|
+
}
|
|
2169
|
+
}
|
|
2170
|
+
fragment OrderFields on Order {
|
|
2171
|
+
id
|
|
2172
|
+
state
|
|
2173
|
+
patient {
|
|
2174
|
+
...PatientRecordFields
|
|
2175
|
+
}
|
|
2176
|
+
prescriptions {
|
|
2177
|
+
...PrescriptionFields
|
|
2178
|
+
}
|
|
2179
|
+
screeningAlerts {
|
|
2180
|
+
...ScreeningAlertFields
|
|
2181
|
+
}
|
|
2182
|
+
pharmacy {
|
|
2183
|
+
...PharmacyFields
|
|
2184
|
+
}
|
|
2185
|
+
exceptions {
|
|
2186
|
+
id
|
|
2187
|
+
type
|
|
2188
|
+
message
|
|
2189
|
+
createdAt
|
|
2190
|
+
}
|
|
2191
|
+
}
|
|
2192
|
+
fragment OrderCandidateFields on OrderCandidate {
|
|
2193
|
+
id
|
|
2194
|
+
pharmacy {
|
|
2195
|
+
...PharmacyFields
|
|
2196
|
+
}
|
|
2197
|
+
prescriptions {
|
|
2198
|
+
...PrescriptionFields
|
|
2199
|
+
}
|
|
2200
|
+
}
|
|
2201
|
+
fragment OrderResultFields on OrderResult {
|
|
2202
|
+
__typename
|
|
2203
|
+
... on OrderPayload {
|
|
2204
|
+
order {
|
|
2205
|
+
...OrderFields
|
|
2206
|
+
}
|
|
2207
|
+
...ChangeSetFields
|
|
2208
|
+
}
|
|
2209
|
+
... on AmbiguousOrderMatch {
|
|
2210
|
+
reason
|
|
2211
|
+
candidates {
|
|
2212
|
+
...OrderCandidateFields
|
|
2213
|
+
}
|
|
2214
|
+
}
|
|
2215
|
+
... on OperationError {
|
|
2216
|
+
...OperationErrorFields
|
|
2217
|
+
}
|
|
2218
|
+
}`);
|
|
2219
|
+
export const SyncOrderDocument = new TypedDocumentString(`
|
|
2220
|
+
mutation SyncOrder($id: ID, $patient: PatientReferenceInput, $prescriptions: OrderPrescriptionsPatch, $pharmacy: OrderPharmacyInput, $metadata: RequestMetadata!) {
|
|
2221
|
+
order(
|
|
2222
|
+
order: {
|
|
2223
|
+
id: $id
|
|
2224
|
+
patient: $patient
|
|
2225
|
+
prescriptions: $prescriptions
|
|
2226
|
+
pharmacy: $pharmacy
|
|
2227
|
+
}
|
|
2228
|
+
metadata: $metadata
|
|
2229
|
+
) {
|
|
2230
|
+
...OrderResultFields
|
|
2231
|
+
}
|
|
2232
|
+
}
|
|
2233
|
+
fragment TreatmentFields on Treatment {
|
|
2234
|
+
id
|
|
2235
|
+
name
|
|
2236
|
+
rxNormId
|
|
2237
|
+
ndc
|
|
2238
|
+
upc
|
|
2239
|
+
entityKind
|
|
2240
|
+
prescribableName
|
|
2241
|
+
brandName
|
|
2242
|
+
genericName
|
|
2243
|
+
form
|
|
2244
|
+
route
|
|
2245
|
+
strength
|
|
2246
|
+
medicationType
|
|
2247
|
+
schedule
|
|
2248
|
+
recommendedDispenseUnits
|
|
2249
|
+
}
|
|
2250
|
+
fragment ChoiceFields on Choice {
|
|
2251
|
+
__typename
|
|
2252
|
+
displayName
|
|
2253
|
+
reason
|
|
2254
|
+
operation
|
|
2255
|
+
argument
|
|
2256
|
+
value
|
|
2257
|
+
matchReasons {
|
|
2258
|
+
type
|
|
2259
|
+
label
|
|
2260
|
+
confidence
|
|
2261
|
+
}
|
|
2262
|
+
entity {
|
|
2263
|
+
__typename
|
|
2264
|
+
... on Treatment {
|
|
2265
|
+
...TreatmentFields
|
|
2266
|
+
}
|
|
2267
|
+
... on Pharmacy {
|
|
2268
|
+
...PharmacyFields
|
|
2269
|
+
}
|
|
2270
|
+
}
|
|
2271
|
+
}
|
|
2272
|
+
fragment PharmacyOfferFields on PharmacyOffer {
|
|
2273
|
+
source
|
|
2274
|
+
isPromoted
|
|
2275
|
+
attributeTags {
|
|
2276
|
+
kind
|
|
2277
|
+
label
|
|
2278
|
+
}
|
|
2279
|
+
priceSummary {
|
|
2280
|
+
priceType
|
|
2281
|
+
totalAmount
|
|
2282
|
+
totalRetailAmount
|
|
2283
|
+
totalSavings
|
|
2284
|
+
}
|
|
2285
|
+
prescriptionDeliveryEstimates {
|
|
2286
|
+
prescriptionId
|
|
2287
|
+
deliveryPromise
|
|
2288
|
+
deliveryPromiseRangeStart
|
|
2289
|
+
deliveryPromiseRangeEnd
|
|
2290
|
+
}
|
|
2291
|
+
}
|
|
2292
|
+
fragment ChangeFields on Change {
|
|
2293
|
+
key
|
|
2294
|
+
label
|
|
2295
|
+
status
|
|
2296
|
+
severity
|
|
2297
|
+
reason
|
|
2298
|
+
category
|
|
2299
|
+
operation
|
|
2300
|
+
options {
|
|
2301
|
+
...ChoiceFields
|
|
2302
|
+
}
|
|
2303
|
+
before {
|
|
2304
|
+
...ChoiceFields
|
|
2305
|
+
}
|
|
2306
|
+
after {
|
|
2307
|
+
...ChoiceFields
|
|
2308
|
+
}
|
|
2309
|
+
}
|
|
2310
|
+
fragment ChangeSetFields on ChangeSet {
|
|
2311
|
+
changes {
|
|
2312
|
+
...ChangeFields
|
|
2313
|
+
}
|
|
2314
|
+
}
|
|
2315
|
+
fragment OperationErrorFields on OperationError {
|
|
2316
|
+
__typename
|
|
2317
|
+
type
|
|
2318
|
+
code
|
|
2319
|
+
message
|
|
2320
|
+
requiredPermission
|
|
2321
|
+
service
|
|
2322
|
+
retryable
|
|
2323
|
+
}
|
|
2324
|
+
fragment PharmacyFields on Pharmacy {
|
|
2325
|
+
id
|
|
2326
|
+
name
|
|
2327
|
+
address {
|
|
2328
|
+
street1
|
|
2329
|
+
street2
|
|
2330
|
+
city
|
|
2331
|
+
state
|
|
2332
|
+
postalCode
|
|
2333
|
+
}
|
|
2334
|
+
latitude
|
|
2335
|
+
longitude
|
|
2336
|
+
fulfillmentType
|
|
2337
|
+
offers {
|
|
2338
|
+
...PharmacyOfferFields
|
|
2339
|
+
}
|
|
2340
|
+
}
|
|
2341
|
+
fragment PatientDemographicFields on PatientDemographic {
|
|
2342
|
+
name {
|
|
2343
|
+
first
|
|
2344
|
+
middle
|
|
2345
|
+
last
|
|
2346
|
+
}
|
|
2347
|
+
dateOfBirth
|
|
2348
|
+
sex
|
|
2349
|
+
gender
|
|
2350
|
+
email
|
|
2351
|
+
phone
|
|
2352
|
+
address {
|
|
2353
|
+
street1
|
|
2354
|
+
street2
|
|
2355
|
+
city
|
|
2356
|
+
state
|
|
2357
|
+
postalCode
|
|
2358
|
+
country
|
|
2359
|
+
}
|
|
2360
|
+
benefits {
|
|
2361
|
+
status
|
|
2362
|
+
entries {
|
|
2363
|
+
id
|
|
2364
|
+
bin
|
|
2365
|
+
pcn
|
|
2366
|
+
groupId
|
|
2367
|
+
memberId
|
|
2368
|
+
}
|
|
2369
|
+
}
|
|
2370
|
+
preferredPharmacy {
|
|
2371
|
+
...PharmacyFields
|
|
2372
|
+
}
|
|
2373
|
+
}
|
|
2374
|
+
fragment PatientFields on Patient {
|
|
2375
|
+
id
|
|
2376
|
+
demographic {
|
|
2377
|
+
...PatientDemographicFields
|
|
2378
|
+
}
|
|
2379
|
+
clinical {
|
|
2380
|
+
allergies {
|
|
2381
|
+
status
|
|
2382
|
+
entries {
|
|
2383
|
+
id
|
|
2384
|
+
name
|
|
2385
|
+
rxNormId
|
|
2386
|
+
}
|
|
2387
|
+
}
|
|
2388
|
+
medications {
|
|
2389
|
+
status
|
|
2390
|
+
entries {
|
|
2391
|
+
id
|
|
2392
|
+
name
|
|
2393
|
+
rxNormId
|
|
2394
|
+
status
|
|
2395
|
+
}
|
|
2396
|
+
}
|
|
2397
|
+
diagnoses {
|
|
2398
|
+
status
|
|
2399
|
+
entries {
|
|
2400
|
+
id
|
|
2401
|
+
name
|
|
2402
|
+
icd10Code
|
|
2403
|
+
}
|
|
2404
|
+
}
|
|
2405
|
+
notes
|
|
2406
|
+
}
|
|
2407
|
+
}
|
|
2408
|
+
fragment PatientRecordFields on PatientRecordResult {
|
|
2409
|
+
__typename
|
|
2410
|
+
... on Patient {
|
|
2411
|
+
...PatientFields
|
|
2412
|
+
}
|
|
2413
|
+
... on OperationError {
|
|
2414
|
+
...OperationErrorFields
|
|
2415
|
+
}
|
|
2416
|
+
}
|
|
2417
|
+
fragment ScreeningAlertFields on ScreeningAlert {
|
|
2418
|
+
severity
|
|
2419
|
+
type
|
|
2420
|
+
description
|
|
2421
|
+
category
|
|
2422
|
+
involvedEntities {
|
|
2423
|
+
id
|
|
2424
|
+
name
|
|
2425
|
+
}
|
|
2426
|
+
options {
|
|
2427
|
+
...ChoiceFields
|
|
2428
|
+
}
|
|
2429
|
+
}
|
|
2430
|
+
fragment PrescriptionFields on Prescription {
|
|
2431
|
+
id
|
|
2432
|
+
templateId
|
|
2433
|
+
patient {
|
|
2434
|
+
id
|
|
2435
|
+
}
|
|
2436
|
+
treatment {
|
|
2437
|
+
...TreatmentFields
|
|
2438
|
+
}
|
|
2439
|
+
instructions
|
|
2440
|
+
dispense {
|
|
2441
|
+
quantity
|
|
2442
|
+
unit
|
|
2443
|
+
daysSupply
|
|
2444
|
+
refillsAllowed
|
|
2445
|
+
dispenseAsWritten
|
|
2446
|
+
}
|
|
2447
|
+
clinical {
|
|
2448
|
+
diagnoses {
|
|
2449
|
+
id
|
|
2450
|
+
name
|
|
2451
|
+
icd10Code
|
|
2452
|
+
}
|
|
2453
|
+
notes
|
|
2454
|
+
}
|
|
2455
|
+
screeningAlerts {
|
|
2456
|
+
...ScreeningAlertFields
|
|
2457
|
+
}
|
|
2458
|
+
signing {
|
|
2459
|
+
state
|
|
2460
|
+
contentHash
|
|
2461
|
+
message
|
|
2462
|
+
signedAt
|
|
2463
|
+
}
|
|
2464
|
+
}
|
|
2465
|
+
fragment OrderFields on Order {
|
|
2466
|
+
id
|
|
2467
|
+
state
|
|
2468
|
+
patient {
|
|
2469
|
+
...PatientRecordFields
|
|
2470
|
+
}
|
|
2471
|
+
prescriptions {
|
|
2472
|
+
...PrescriptionFields
|
|
2473
|
+
}
|
|
2474
|
+
screeningAlerts {
|
|
2475
|
+
...ScreeningAlertFields
|
|
2476
|
+
}
|
|
2477
|
+
pharmacy {
|
|
2478
|
+
...PharmacyFields
|
|
2479
|
+
}
|
|
2480
|
+
exceptions {
|
|
2481
|
+
id
|
|
2482
|
+
type
|
|
2483
|
+
message
|
|
2484
|
+
createdAt
|
|
2485
|
+
}
|
|
2486
|
+
}
|
|
2487
|
+
fragment OrderCandidateFields on OrderCandidate {
|
|
2488
|
+
id
|
|
2489
|
+
pharmacy {
|
|
2490
|
+
...PharmacyFields
|
|
2491
|
+
}
|
|
2492
|
+
prescriptions {
|
|
2493
|
+
...PrescriptionFields
|
|
2494
|
+
}
|
|
2495
|
+
}
|
|
2496
|
+
fragment OrderResultFields on OrderResult {
|
|
2497
|
+
__typename
|
|
2498
|
+
... on OrderPayload {
|
|
2499
|
+
order {
|
|
2500
|
+
...OrderFields
|
|
2501
|
+
}
|
|
2502
|
+
...ChangeSetFields
|
|
2503
|
+
}
|
|
2504
|
+
... on AmbiguousOrderMatch {
|
|
2505
|
+
reason
|
|
2506
|
+
candidates {
|
|
2507
|
+
...OrderCandidateFields
|
|
2508
|
+
}
|
|
2509
|
+
}
|
|
2510
|
+
... on OperationError {
|
|
2511
|
+
...OperationErrorFields
|
|
2512
|
+
}
|
|
2513
|
+
}`);
|
|
2514
|
+
export const UpdateOrderDocument = new TypedDocumentString(`
|
|
2515
|
+
mutation UpdateOrder($id: ID!, $prescriptions: OrderPrescriptionsPatch, $state: OrderState, $pharmacy: OrderPharmacyInput, $metadata: RequestMetadata!) {
|
|
2516
|
+
order(
|
|
2517
|
+
order: { id: $id, prescriptions: $prescriptions, state: $state, pharmacy: $pharmacy }
|
|
2518
|
+
metadata: $metadata
|
|
2519
|
+
) {
|
|
2520
|
+
...OrderResultFields
|
|
2521
|
+
}
|
|
2522
|
+
}
|
|
2523
|
+
fragment TreatmentFields on Treatment {
|
|
2524
|
+
id
|
|
2525
|
+
name
|
|
2526
|
+
rxNormId
|
|
2527
|
+
ndc
|
|
2528
|
+
upc
|
|
2529
|
+
entityKind
|
|
2530
|
+
prescribableName
|
|
2531
|
+
brandName
|
|
2532
|
+
genericName
|
|
2533
|
+
form
|
|
2534
|
+
route
|
|
2535
|
+
strength
|
|
2536
|
+
medicationType
|
|
2537
|
+
schedule
|
|
2538
|
+
recommendedDispenseUnits
|
|
2539
|
+
}
|
|
2540
|
+
fragment ChoiceFields on Choice {
|
|
2541
|
+
__typename
|
|
2542
|
+
displayName
|
|
2543
|
+
reason
|
|
2544
|
+
operation
|
|
2545
|
+
argument
|
|
2546
|
+
value
|
|
2547
|
+
matchReasons {
|
|
2548
|
+
type
|
|
2549
|
+
label
|
|
2550
|
+
confidence
|
|
2551
|
+
}
|
|
2552
|
+
entity {
|
|
2553
|
+
__typename
|
|
2554
|
+
... on Treatment {
|
|
2555
|
+
...TreatmentFields
|
|
2556
|
+
}
|
|
2557
|
+
... on Pharmacy {
|
|
2558
|
+
...PharmacyFields
|
|
2559
|
+
}
|
|
2560
|
+
}
|
|
2561
|
+
}
|
|
2562
|
+
fragment PharmacyOfferFields on PharmacyOffer {
|
|
2563
|
+
source
|
|
2564
|
+
isPromoted
|
|
2565
|
+
attributeTags {
|
|
2566
|
+
kind
|
|
2567
|
+
label
|
|
2568
|
+
}
|
|
2569
|
+
priceSummary {
|
|
2570
|
+
priceType
|
|
2571
|
+
totalAmount
|
|
2572
|
+
totalRetailAmount
|
|
2573
|
+
totalSavings
|
|
2574
|
+
}
|
|
2575
|
+
prescriptionDeliveryEstimates {
|
|
2576
|
+
prescriptionId
|
|
2577
|
+
deliveryPromise
|
|
2578
|
+
deliveryPromiseRangeStart
|
|
2579
|
+
deliveryPromiseRangeEnd
|
|
2580
|
+
}
|
|
2581
|
+
}
|
|
2582
|
+
fragment ChangeFields on Change {
|
|
2583
|
+
key
|
|
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
|
|
2598
|
+
}
|
|
2599
|
+
}
|
|
2600
|
+
fragment ChangeSetFields on ChangeSet {
|
|
2601
|
+
changes {
|
|
2602
|
+
...ChangeFields
|
|
2603
|
+
}
|
|
2604
|
+
}
|
|
2605
|
+
fragment OperationErrorFields on OperationError {
|
|
2606
|
+
__typename
|
|
2607
|
+
type
|
|
2608
|
+
code
|
|
2609
|
+
message
|
|
2610
|
+
requiredPermission
|
|
2611
|
+
service
|
|
2612
|
+
retryable
|
|
2613
|
+
}
|
|
2614
|
+
fragment PharmacyFields on Pharmacy {
|
|
2615
|
+
id
|
|
2616
|
+
name
|
|
2617
|
+
address {
|
|
2618
|
+
street1
|
|
2619
|
+
street2
|
|
2620
|
+
city
|
|
2621
|
+
state
|
|
2622
|
+
postalCode
|
|
2623
|
+
}
|
|
2624
|
+
latitude
|
|
2625
|
+
longitude
|
|
2626
|
+
fulfillmentType
|
|
2627
|
+
offers {
|
|
2628
|
+
...PharmacyOfferFields
|
|
2629
|
+
}
|
|
2630
|
+
}
|
|
2631
|
+
fragment PatientDemographicFields on PatientDemographic {
|
|
2632
|
+
name {
|
|
2633
|
+
first
|
|
2634
|
+
middle
|
|
2635
|
+
last
|
|
2636
|
+
}
|
|
2637
|
+
dateOfBirth
|
|
2638
|
+
sex
|
|
2639
|
+
gender
|
|
2640
|
+
email
|
|
2641
|
+
phone
|
|
2642
|
+
address {
|
|
2643
|
+
street1
|
|
2644
|
+
street2
|
|
2645
|
+
city
|
|
2646
|
+
state
|
|
2647
|
+
postalCode
|
|
2648
|
+
country
|
|
2649
|
+
}
|
|
2650
|
+
benefits {
|
|
2651
|
+
status
|
|
2652
|
+
entries {
|
|
2653
|
+
id
|
|
2654
|
+
bin
|
|
2655
|
+
pcn
|
|
2656
|
+
groupId
|
|
2657
|
+
memberId
|
|
2658
|
+
}
|
|
2659
|
+
}
|
|
2660
|
+
preferredPharmacy {
|
|
2661
|
+
...PharmacyFields
|
|
2662
|
+
}
|
|
2663
|
+
}
|
|
2664
|
+
fragment PatientFields on Patient {
|
|
2665
|
+
id
|
|
2666
|
+
demographic {
|
|
2667
|
+
...PatientDemographicFields
|
|
2668
|
+
}
|
|
2669
|
+
clinical {
|
|
2670
|
+
allergies {
|
|
2671
|
+
status
|
|
2672
|
+
entries {
|
|
2673
|
+
id
|
|
2674
|
+
name
|
|
2675
|
+
rxNormId
|
|
2676
|
+
}
|
|
2677
|
+
}
|
|
2678
|
+
medications {
|
|
2679
|
+
status
|
|
2680
|
+
entries {
|
|
2681
|
+
id
|
|
2682
|
+
name
|
|
2683
|
+
rxNormId
|
|
2684
|
+
status
|
|
2685
|
+
}
|
|
2686
|
+
}
|
|
2687
|
+
diagnoses {
|
|
2688
|
+
status
|
|
2689
|
+
entries {
|
|
2690
|
+
id
|
|
2691
|
+
name
|
|
2692
|
+
icd10Code
|
|
2693
|
+
}
|
|
2694
|
+
}
|
|
2695
|
+
notes
|
|
2696
|
+
}
|
|
2697
|
+
}
|
|
2698
|
+
fragment PatientRecordFields on PatientRecordResult {
|
|
2699
|
+
__typename
|
|
2700
|
+
... on Patient {
|
|
2701
|
+
...PatientFields
|
|
2702
|
+
}
|
|
2703
|
+
... on OperationError {
|
|
2704
|
+
...OperationErrorFields
|
|
2705
|
+
}
|
|
2706
|
+
}
|
|
2707
|
+
fragment ScreeningAlertFields on ScreeningAlert {
|
|
2708
|
+
severity
|
|
2709
|
+
type
|
|
2710
|
+
description
|
|
2711
|
+
category
|
|
2712
|
+
involvedEntities {
|
|
2713
|
+
id
|
|
2714
|
+
name
|
|
2715
|
+
}
|
|
2716
|
+
options {
|
|
2717
|
+
...ChoiceFields
|
|
2718
|
+
}
|
|
2719
|
+
}
|
|
2720
|
+
fragment PrescriptionFields on Prescription {
|
|
2721
|
+
id
|
|
2722
|
+
templateId
|
|
2723
|
+
patient {
|
|
2724
|
+
id
|
|
2725
|
+
}
|
|
2726
|
+
treatment {
|
|
2727
|
+
...TreatmentFields
|
|
2728
|
+
}
|
|
2729
|
+
instructions
|
|
2730
|
+
dispense {
|
|
2731
|
+
quantity
|
|
2732
|
+
unit
|
|
2733
|
+
daysSupply
|
|
2734
|
+
refillsAllowed
|
|
2735
|
+
dispenseAsWritten
|
|
2736
|
+
}
|
|
2737
|
+
clinical {
|
|
2738
|
+
diagnoses {
|
|
2739
|
+
id
|
|
2740
|
+
name
|
|
2741
|
+
icd10Code
|
|
2742
|
+
}
|
|
2743
|
+
notes
|
|
2744
|
+
}
|
|
2745
|
+
screeningAlerts {
|
|
2746
|
+
...ScreeningAlertFields
|
|
2747
|
+
}
|
|
2748
|
+
signing {
|
|
2749
|
+
state
|
|
2750
|
+
contentHash
|
|
2751
|
+
message
|
|
2752
|
+
signedAt
|
|
2753
|
+
}
|
|
2754
|
+
}
|
|
2755
|
+
fragment OrderFields on Order {
|
|
2756
|
+
id
|
|
2757
|
+
state
|
|
2758
|
+
patient {
|
|
2759
|
+
...PatientRecordFields
|
|
2760
|
+
}
|
|
2761
|
+
prescriptions {
|
|
2762
|
+
...PrescriptionFields
|
|
2763
|
+
}
|
|
2764
|
+
screeningAlerts {
|
|
2765
|
+
...ScreeningAlertFields
|
|
2766
|
+
}
|
|
2767
|
+
pharmacy {
|
|
2768
|
+
...PharmacyFields
|
|
2769
|
+
}
|
|
2770
|
+
exceptions {
|
|
2771
|
+
id
|
|
2772
|
+
type
|
|
2773
|
+
message
|
|
2774
|
+
createdAt
|
|
2775
|
+
}
|
|
2776
|
+
}
|
|
2777
|
+
fragment OrderCandidateFields on OrderCandidate {
|
|
2778
|
+
id
|
|
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
|
|
2791
|
+
}
|
|
2792
|
+
...ChangeSetFields
|
|
2793
|
+
}
|
|
2794
|
+
... on AmbiguousOrderMatch {
|
|
2795
|
+
reason
|
|
2796
|
+
candidates {
|
|
2797
|
+
...OrderCandidateFields
|
|
2798
|
+
}
|
|
2799
|
+
}
|
|
2800
|
+
... on OperationError {
|
|
2801
|
+
...OperationErrorFields
|
|
2802
|
+
}
|
|
2803
|
+
}`);
|
|
2804
|
+
export const GetPatientDocument = new TypedDocumentString(`
|
|
2805
|
+
mutation GetPatient($id: ID!, $metadata: RequestMetadata!) {
|
|
2806
|
+
patient(patient: { id: $id }, metadata: $metadata) {
|
|
2807
|
+
...PatientResultFields
|
|
2808
|
+
}
|
|
2809
|
+
}
|
|
2810
|
+
fragment TreatmentFields on Treatment {
|
|
2811
|
+
id
|
|
2812
|
+
name
|
|
2813
|
+
rxNormId
|
|
2814
|
+
ndc
|
|
2815
|
+
upc
|
|
2816
|
+
entityKind
|
|
2817
|
+
prescribableName
|
|
2818
|
+
brandName
|
|
2819
|
+
genericName
|
|
2820
|
+
form
|
|
2821
|
+
route
|
|
2822
|
+
strength
|
|
2823
|
+
medicationType
|
|
2824
|
+
schedule
|
|
2825
|
+
recommendedDispenseUnits
|
|
2826
|
+
}
|
|
2827
|
+
fragment ChoiceFields on Choice {
|
|
2828
|
+
__typename
|
|
2829
|
+
displayName
|
|
2830
|
+
reason
|
|
2831
|
+
operation
|
|
2832
|
+
argument
|
|
2833
|
+
value
|
|
2834
|
+
matchReasons {
|
|
2835
|
+
type
|
|
2836
|
+
label
|
|
2837
|
+
confidence
|
|
2838
|
+
}
|
|
2839
|
+
entity {
|
|
2840
|
+
__typename
|
|
2841
|
+
... on Treatment {
|
|
2842
|
+
...TreatmentFields
|
|
2843
|
+
}
|
|
2844
|
+
... on Pharmacy {
|
|
2845
|
+
...PharmacyFields
|
|
2846
|
+
}
|
|
2847
|
+
}
|
|
2848
|
+
}
|
|
2849
|
+
fragment PharmacyOfferFields on PharmacyOffer {
|
|
2850
|
+
source
|
|
2851
|
+
isPromoted
|
|
2852
|
+
attributeTags {
|
|
2853
|
+
kind
|
|
2854
|
+
label
|
|
2855
|
+
}
|
|
2856
|
+
priceSummary {
|
|
2857
|
+
priceType
|
|
2858
|
+
totalAmount
|
|
2859
|
+
totalRetailAmount
|
|
2860
|
+
totalSavings
|
|
2861
|
+
}
|
|
2862
|
+
prescriptionDeliveryEstimates {
|
|
2863
|
+
prescriptionId
|
|
2864
|
+
deliveryPromise
|
|
2865
|
+
deliveryPromiseRangeStart
|
|
2866
|
+
deliveryPromiseRangeEnd
|
|
2867
|
+
}
|
|
2868
|
+
}
|
|
2869
|
+
fragment ChangeFields on Change {
|
|
2870
|
+
key
|
|
2871
|
+
label
|
|
2872
|
+
status
|
|
2873
|
+
severity
|
|
2874
|
+
reason
|
|
2875
|
+
category
|
|
2876
|
+
operation
|
|
2877
|
+
options {
|
|
2878
|
+
...ChoiceFields
|
|
2879
|
+
}
|
|
2880
|
+
before {
|
|
2881
|
+
...ChoiceFields
|
|
2882
|
+
}
|
|
2883
|
+
after {
|
|
2884
|
+
...ChoiceFields
|
|
2885
|
+
}
|
|
2886
|
+
}
|
|
2887
|
+
fragment ChangeSetFields on ChangeSet {
|
|
2888
|
+
changes {
|
|
2889
|
+
...ChangeFields
|
|
2890
|
+
}
|
|
2891
|
+
}
|
|
2892
|
+
fragment OperationErrorFields on OperationError {
|
|
2893
|
+
__typename
|
|
2894
|
+
type
|
|
2895
|
+
code
|
|
2896
|
+
message
|
|
2897
|
+
requiredPermission
|
|
2898
|
+
service
|
|
2899
|
+
retryable
|
|
2900
|
+
}
|
|
2901
|
+
fragment PharmacyFields on Pharmacy {
|
|
2902
|
+
id
|
|
2903
|
+
name
|
|
2904
|
+
address {
|
|
2905
|
+
street1
|
|
2906
|
+
street2
|
|
2907
|
+
city
|
|
2908
|
+
state
|
|
2909
|
+
postalCode
|
|
2910
|
+
}
|
|
2911
|
+
latitude
|
|
2912
|
+
longitude
|
|
2913
|
+
fulfillmentType
|
|
2914
|
+
offers {
|
|
2915
|
+
...PharmacyOfferFields
|
|
2916
|
+
}
|
|
2917
|
+
}
|
|
2918
|
+
fragment PatientDemographicFields on PatientDemographic {
|
|
2919
|
+
name {
|
|
2920
|
+
first
|
|
2921
|
+
middle
|
|
2922
|
+
last
|
|
2923
|
+
}
|
|
2924
|
+
dateOfBirth
|
|
2925
|
+
sex
|
|
2926
|
+
gender
|
|
2927
|
+
email
|
|
2928
|
+
phone
|
|
2929
|
+
address {
|
|
2930
|
+
street1
|
|
2931
|
+
street2
|
|
2932
|
+
city
|
|
2933
|
+
state
|
|
2934
|
+
postalCode
|
|
2935
|
+
country
|
|
2936
|
+
}
|
|
2937
|
+
benefits {
|
|
2938
|
+
status
|
|
2939
|
+
entries {
|
|
2940
|
+
id
|
|
2941
|
+
bin
|
|
2942
|
+
pcn
|
|
2943
|
+
groupId
|
|
2944
|
+
memberId
|
|
2945
|
+
}
|
|
2946
|
+
}
|
|
2947
|
+
preferredPharmacy {
|
|
2948
|
+
...PharmacyFields
|
|
2949
|
+
}
|
|
2950
|
+
}
|
|
2951
|
+
fragment PatientFields on Patient {
|
|
2952
|
+
id
|
|
2953
|
+
demographic {
|
|
2954
|
+
...PatientDemographicFields
|
|
2955
|
+
}
|
|
2956
|
+
clinical {
|
|
2957
|
+
allergies {
|
|
2958
|
+
status
|
|
2959
|
+
entries {
|
|
2960
|
+
id
|
|
2961
|
+
name
|
|
2962
|
+
rxNormId
|
|
2963
|
+
}
|
|
2964
|
+
}
|
|
2965
|
+
medications {
|
|
2966
|
+
status
|
|
2967
|
+
entries {
|
|
2968
|
+
id
|
|
2969
|
+
name
|
|
2970
|
+
rxNormId
|
|
2971
|
+
status
|
|
2972
|
+
}
|
|
2973
|
+
}
|
|
2974
|
+
diagnoses {
|
|
2975
|
+
status
|
|
2976
|
+
entries {
|
|
2977
|
+
id
|
|
2978
|
+
name
|
|
2979
|
+
icd10Code
|
|
2980
|
+
}
|
|
2981
|
+
}
|
|
2982
|
+
notes
|
|
2983
|
+
}
|
|
2984
|
+
}
|
|
2985
|
+
fragment PatientRecordFields on PatientRecordResult {
|
|
2986
|
+
__typename
|
|
2987
|
+
... on Patient {
|
|
2988
|
+
...PatientFields
|
|
2989
|
+
}
|
|
2990
|
+
... on OperationError {
|
|
2991
|
+
...OperationErrorFields
|
|
2992
|
+
}
|
|
2993
|
+
}
|
|
2994
|
+
fragment PatientResultFields on PatientResult {
|
|
2995
|
+
__typename
|
|
2996
|
+
... on PatientPayload {
|
|
2997
|
+
patient {
|
|
2998
|
+
...PatientRecordFields
|
|
2999
|
+
}
|
|
3000
|
+
...ChangeSetFields
|
|
3001
|
+
}
|
|
3002
|
+
... on AmbiguousPatientMatch {
|
|
3003
|
+
reason
|
|
3004
|
+
candidates {
|
|
3005
|
+
id
|
|
3006
|
+
firstName
|
|
3007
|
+
lastName
|
|
3008
|
+
dateOfBirth
|
|
3009
|
+
}
|
|
3010
|
+
}
|
|
3011
|
+
... on OperationError {
|
|
3012
|
+
...OperationErrorFields
|
|
3013
|
+
}
|
|
3014
|
+
}`);
|
|
3015
|
+
export const SyncPatientDocument = new TypedDocumentString(`
|
|
3016
|
+
mutation SyncPatient($id: ID, $demographic: PatientDemographicInput, $clinical: PatientClinicalInput, $metadata: RequestMetadata!) {
|
|
3017
|
+
patient(
|
|
3018
|
+
patient: { id: $id, demographic: $demographic, clinical: $clinical }
|
|
3019
|
+
metadata: $metadata
|
|
3020
|
+
) {
|
|
3021
|
+
...PatientResultFields
|
|
3022
|
+
}
|
|
3023
|
+
}
|
|
3024
|
+
fragment TreatmentFields on Treatment {
|
|
3025
|
+
id
|
|
3026
|
+
name
|
|
3027
|
+
rxNormId
|
|
3028
|
+
ndc
|
|
3029
|
+
upc
|
|
3030
|
+
entityKind
|
|
3031
|
+
prescribableName
|
|
3032
|
+
brandName
|
|
3033
|
+
genericName
|
|
3034
|
+
form
|
|
3035
|
+
route
|
|
3036
|
+
strength
|
|
3037
|
+
medicationType
|
|
3038
|
+
schedule
|
|
3039
|
+
recommendedDispenseUnits
|
|
3040
|
+
}
|
|
3041
|
+
fragment ChoiceFields on Choice {
|
|
3042
|
+
__typename
|
|
3043
|
+
displayName
|
|
3044
|
+
reason
|
|
3045
|
+
operation
|
|
3046
|
+
argument
|
|
3047
|
+
value
|
|
3048
|
+
matchReasons {
|
|
3049
|
+
type
|
|
3050
|
+
label
|
|
3051
|
+
confidence
|
|
3052
|
+
}
|
|
3053
|
+
entity {
|
|
3054
|
+
__typename
|
|
3055
|
+
... on Treatment {
|
|
3056
|
+
...TreatmentFields
|
|
3057
|
+
}
|
|
3058
|
+
... on Pharmacy {
|
|
3059
|
+
...PharmacyFields
|
|
3060
|
+
}
|
|
3061
|
+
}
|
|
3062
|
+
}
|
|
3063
|
+
fragment PharmacyOfferFields on PharmacyOffer {
|
|
3064
|
+
source
|
|
3065
|
+
isPromoted
|
|
3066
|
+
attributeTags {
|
|
3067
|
+
kind
|
|
3068
|
+
label
|
|
3069
|
+
}
|
|
3070
|
+
priceSummary {
|
|
3071
|
+
priceType
|
|
3072
|
+
totalAmount
|
|
3073
|
+
totalRetailAmount
|
|
3074
|
+
totalSavings
|
|
3075
|
+
}
|
|
3076
|
+
prescriptionDeliveryEstimates {
|
|
3077
|
+
prescriptionId
|
|
3078
|
+
deliveryPromise
|
|
3079
|
+
deliveryPromiseRangeStart
|
|
3080
|
+
deliveryPromiseRangeEnd
|
|
3081
|
+
}
|
|
3082
|
+
}
|
|
3083
|
+
fragment ChangeFields on Change {
|
|
3084
|
+
key
|
|
3085
|
+
label
|
|
3086
|
+
status
|
|
3087
|
+
severity
|
|
3088
|
+
reason
|
|
3089
|
+
category
|
|
3090
|
+
operation
|
|
3091
|
+
options {
|
|
3092
|
+
...ChoiceFields
|
|
3093
|
+
}
|
|
3094
|
+
before {
|
|
3095
|
+
...ChoiceFields
|
|
3096
|
+
}
|
|
3097
|
+
after {
|
|
3098
|
+
...ChoiceFields
|
|
3099
|
+
}
|
|
3100
|
+
}
|
|
3101
|
+
fragment ChangeSetFields on ChangeSet {
|
|
3102
|
+
changes {
|
|
3103
|
+
...ChangeFields
|
|
3104
|
+
}
|
|
3105
|
+
}
|
|
3106
|
+
fragment OperationErrorFields on OperationError {
|
|
3107
|
+
__typename
|
|
3108
|
+
type
|
|
3109
|
+
code
|
|
3110
|
+
message
|
|
3111
|
+
requiredPermission
|
|
3112
|
+
service
|
|
3113
|
+
retryable
|
|
3114
|
+
}
|
|
3115
|
+
fragment PharmacyFields on Pharmacy {
|
|
3116
|
+
id
|
|
3117
|
+
name
|
|
3118
|
+
address {
|
|
3119
|
+
street1
|
|
3120
|
+
street2
|
|
3121
|
+
city
|
|
3122
|
+
state
|
|
3123
|
+
postalCode
|
|
3124
|
+
}
|
|
3125
|
+
latitude
|
|
3126
|
+
longitude
|
|
3127
|
+
fulfillmentType
|
|
3128
|
+
offers {
|
|
3129
|
+
...PharmacyOfferFields
|
|
3130
|
+
}
|
|
3131
|
+
}
|
|
3132
|
+
fragment PatientDemographicFields on PatientDemographic {
|
|
3133
|
+
name {
|
|
3134
|
+
first
|
|
3135
|
+
middle
|
|
3136
|
+
last
|
|
3137
|
+
}
|
|
3138
|
+
dateOfBirth
|
|
3139
|
+
sex
|
|
3140
|
+
gender
|
|
3141
|
+
email
|
|
3142
|
+
phone
|
|
3143
|
+
address {
|
|
3144
|
+
street1
|
|
3145
|
+
street2
|
|
3146
|
+
city
|
|
3147
|
+
state
|
|
3148
|
+
postalCode
|
|
3149
|
+
country
|
|
3150
|
+
}
|
|
3151
|
+
benefits {
|
|
3152
|
+
status
|
|
3153
|
+
entries {
|
|
3154
|
+
id
|
|
3155
|
+
bin
|
|
3156
|
+
pcn
|
|
3157
|
+
groupId
|
|
3158
|
+
memberId
|
|
3159
|
+
}
|
|
3160
|
+
}
|
|
3161
|
+
preferredPharmacy {
|
|
3162
|
+
...PharmacyFields
|
|
3163
|
+
}
|
|
3164
|
+
}
|
|
3165
|
+
fragment PatientFields on Patient {
|
|
3166
|
+
id
|
|
3167
|
+
demographic {
|
|
3168
|
+
...PatientDemographicFields
|
|
3169
|
+
}
|
|
3170
|
+
clinical {
|
|
3171
|
+
allergies {
|
|
3172
|
+
status
|
|
3173
|
+
entries {
|
|
3174
|
+
id
|
|
3175
|
+
name
|
|
3176
|
+
rxNormId
|
|
3177
|
+
}
|
|
3178
|
+
}
|
|
3179
|
+
medications {
|
|
3180
|
+
status
|
|
3181
|
+
entries {
|
|
3182
|
+
id
|
|
3183
|
+
name
|
|
3184
|
+
rxNormId
|
|
3185
|
+
status
|
|
3186
|
+
}
|
|
3187
|
+
}
|
|
3188
|
+
diagnoses {
|
|
3189
|
+
status
|
|
3190
|
+
entries {
|
|
3191
|
+
id
|
|
3192
|
+
name
|
|
3193
|
+
icd10Code
|
|
3194
|
+
}
|
|
3195
|
+
}
|
|
3196
|
+
notes
|
|
3197
|
+
}
|
|
3198
|
+
}
|
|
3199
|
+
fragment PatientRecordFields on PatientRecordResult {
|
|
3200
|
+
__typename
|
|
3201
|
+
... on Patient {
|
|
3202
|
+
...PatientFields
|
|
3203
|
+
}
|
|
3204
|
+
... on OperationError {
|
|
3205
|
+
...OperationErrorFields
|
|
3206
|
+
}
|
|
3207
|
+
}
|
|
3208
|
+
fragment PatientResultFields on PatientResult {
|
|
3209
|
+
__typename
|
|
3210
|
+
... on PatientPayload {
|
|
3211
|
+
patient {
|
|
3212
|
+
...PatientRecordFields
|
|
3213
|
+
}
|
|
3214
|
+
...ChangeSetFields
|
|
3215
|
+
}
|
|
3216
|
+
... on AmbiguousPatientMatch {
|
|
3217
|
+
reason
|
|
3218
|
+
candidates {
|
|
3219
|
+
id
|
|
3220
|
+
firstName
|
|
3221
|
+
lastName
|
|
3222
|
+
dateOfBirth
|
|
3223
|
+
}
|
|
3224
|
+
}
|
|
3225
|
+
... on OperationError {
|
|
3226
|
+
...OperationErrorFields
|
|
3227
|
+
}
|
|
3228
|
+
}`);
|
|
3229
|
+
export const UpdatePatientDocument = new TypedDocumentString(`
|
|
3230
|
+
mutation UpdatePatient($id: ID!, $demographic: PatientDemographicInput, $clinical: PatientClinicalInput, $metadata: RequestMetadata!) {
|
|
3231
|
+
patient(
|
|
3232
|
+
patient: { id: $id, demographic: $demographic, clinical: $clinical }
|
|
3233
|
+
metadata: $metadata
|
|
3234
|
+
) {
|
|
3235
|
+
...PatientResultFields
|
|
3236
|
+
}
|
|
3237
|
+
}
|
|
3238
|
+
fragment TreatmentFields on Treatment {
|
|
3239
|
+
id
|
|
3240
|
+
name
|
|
3241
|
+
rxNormId
|
|
3242
|
+
ndc
|
|
3243
|
+
upc
|
|
3244
|
+
entityKind
|
|
3245
|
+
prescribableName
|
|
3246
|
+
brandName
|
|
3247
|
+
genericName
|
|
3248
|
+
form
|
|
3249
|
+
route
|
|
3250
|
+
strength
|
|
3251
|
+
medicationType
|
|
3252
|
+
schedule
|
|
3253
|
+
recommendedDispenseUnits
|
|
3254
|
+
}
|
|
3255
|
+
fragment ChoiceFields on Choice {
|
|
3256
|
+
__typename
|
|
3257
|
+
displayName
|
|
3258
|
+
reason
|
|
3259
|
+
operation
|
|
3260
|
+
argument
|
|
3261
|
+
value
|
|
3262
|
+
matchReasons {
|
|
3263
|
+
type
|
|
3264
|
+
label
|
|
3265
|
+
confidence
|
|
3266
|
+
}
|
|
3267
|
+
entity {
|
|
3268
|
+
__typename
|
|
3269
|
+
... on Treatment {
|
|
3270
|
+
...TreatmentFields
|
|
3271
|
+
}
|
|
3272
|
+
... on Pharmacy {
|
|
3273
|
+
...PharmacyFields
|
|
3274
|
+
}
|
|
3275
|
+
}
|
|
3276
|
+
}
|
|
3277
|
+
fragment PharmacyOfferFields on PharmacyOffer {
|
|
3278
|
+
source
|
|
3279
|
+
isPromoted
|
|
3280
|
+
attributeTags {
|
|
3281
|
+
kind
|
|
3282
|
+
label
|
|
3283
|
+
}
|
|
3284
|
+
priceSummary {
|
|
3285
|
+
priceType
|
|
3286
|
+
totalAmount
|
|
3287
|
+
totalRetailAmount
|
|
3288
|
+
totalSavings
|
|
3289
|
+
}
|
|
3290
|
+
prescriptionDeliveryEstimates {
|
|
3291
|
+
prescriptionId
|
|
3292
|
+
deliveryPromise
|
|
3293
|
+
deliveryPromiseRangeStart
|
|
3294
|
+
deliveryPromiseRangeEnd
|
|
3295
|
+
}
|
|
3296
|
+
}
|
|
3297
|
+
fragment ChangeFields on Change {
|
|
3298
|
+
key
|
|
3299
|
+
label
|
|
3300
|
+
status
|
|
3301
|
+
severity
|
|
3302
|
+
reason
|
|
3303
|
+
category
|
|
3304
|
+
operation
|
|
3305
|
+
options {
|
|
3306
|
+
...ChoiceFields
|
|
3307
|
+
}
|
|
3308
|
+
before {
|
|
3309
|
+
...ChoiceFields
|
|
3310
|
+
}
|
|
3311
|
+
after {
|
|
3312
|
+
...ChoiceFields
|
|
3313
|
+
}
|
|
3314
|
+
}
|
|
3315
|
+
fragment ChangeSetFields on ChangeSet {
|
|
3316
|
+
changes {
|
|
3317
|
+
...ChangeFields
|
|
3318
|
+
}
|
|
3319
|
+
}
|
|
3320
|
+
fragment OperationErrorFields on OperationError {
|
|
3321
|
+
__typename
|
|
3322
|
+
type
|
|
3323
|
+
code
|
|
3324
|
+
message
|
|
3325
|
+
requiredPermission
|
|
3326
|
+
service
|
|
3327
|
+
retryable
|
|
3328
|
+
}
|
|
3329
|
+
fragment PharmacyFields on Pharmacy {
|
|
3330
|
+
id
|
|
3331
|
+
name
|
|
3332
|
+
address {
|
|
3333
|
+
street1
|
|
3334
|
+
street2
|
|
3335
|
+
city
|
|
3336
|
+
state
|
|
3337
|
+
postalCode
|
|
3338
|
+
}
|
|
3339
|
+
latitude
|
|
3340
|
+
longitude
|
|
3341
|
+
fulfillmentType
|
|
3342
|
+
offers {
|
|
3343
|
+
...PharmacyOfferFields
|
|
3344
|
+
}
|
|
3345
|
+
}
|
|
3346
|
+
fragment PatientDemographicFields on PatientDemographic {
|
|
3347
|
+
name {
|
|
3348
|
+
first
|
|
3349
|
+
middle
|
|
3350
|
+
last
|
|
3351
|
+
}
|
|
3352
|
+
dateOfBirth
|
|
3353
|
+
sex
|
|
3354
|
+
gender
|
|
3355
|
+
email
|
|
3356
|
+
phone
|
|
3357
|
+
address {
|
|
3358
|
+
street1
|
|
3359
|
+
street2
|
|
3360
|
+
city
|
|
3361
|
+
state
|
|
3362
|
+
postalCode
|
|
3363
|
+
country
|
|
3364
|
+
}
|
|
3365
|
+
benefits {
|
|
3366
|
+
status
|
|
3367
|
+
entries {
|
|
3368
|
+
id
|
|
3369
|
+
bin
|
|
3370
|
+
pcn
|
|
3371
|
+
groupId
|
|
3372
|
+
memberId
|
|
3373
|
+
}
|
|
3374
|
+
}
|
|
3375
|
+
preferredPharmacy {
|
|
3376
|
+
...PharmacyFields
|
|
3377
|
+
}
|
|
3378
|
+
}
|
|
3379
|
+
fragment PatientFields on Patient {
|
|
3380
|
+
id
|
|
3381
|
+
demographic {
|
|
3382
|
+
...PatientDemographicFields
|
|
3383
|
+
}
|
|
3384
|
+
clinical {
|
|
3385
|
+
allergies {
|
|
3386
|
+
status
|
|
3387
|
+
entries {
|
|
3388
|
+
id
|
|
3389
|
+
name
|
|
3390
|
+
rxNormId
|
|
3391
|
+
}
|
|
3392
|
+
}
|
|
3393
|
+
medications {
|
|
3394
|
+
status
|
|
3395
|
+
entries {
|
|
3396
|
+
id
|
|
3397
|
+
name
|
|
3398
|
+
rxNormId
|
|
3399
|
+
status
|
|
3400
|
+
}
|
|
3401
|
+
}
|
|
3402
|
+
diagnoses {
|
|
3403
|
+
status
|
|
3404
|
+
entries {
|
|
3405
|
+
id
|
|
3406
|
+
name
|
|
3407
|
+
icd10Code
|
|
3408
|
+
}
|
|
3409
|
+
}
|
|
3410
|
+
notes
|
|
3411
|
+
}
|
|
3412
|
+
}
|
|
3413
|
+
fragment PatientRecordFields on PatientRecordResult {
|
|
3414
|
+
__typename
|
|
3415
|
+
... on Patient {
|
|
3416
|
+
...PatientFields
|
|
3417
|
+
}
|
|
3418
|
+
... on OperationError {
|
|
3419
|
+
...OperationErrorFields
|
|
3420
|
+
}
|
|
3421
|
+
}
|
|
3422
|
+
fragment PatientResultFields on PatientResult {
|
|
3423
|
+
__typename
|
|
3424
|
+
... on PatientPayload {
|
|
3425
|
+
patient {
|
|
3426
|
+
...PatientRecordFields
|
|
3427
|
+
}
|
|
3428
|
+
...ChangeSetFields
|
|
3429
|
+
}
|
|
3430
|
+
... on AmbiguousPatientMatch {
|
|
3431
|
+
reason
|
|
3432
|
+
candidates {
|
|
3433
|
+
id
|
|
3434
|
+
firstName
|
|
3435
|
+
lastName
|
|
3436
|
+
dateOfBirth
|
|
3437
|
+
}
|
|
3438
|
+
}
|
|
3439
|
+
... on OperationError {
|
|
3440
|
+
...OperationErrorFields
|
|
3441
|
+
}
|
|
3442
|
+
}`);
|
|
3443
|
+
export const GetPrescriptionDocument = new TypedDocumentString(`
|
|
3444
|
+
mutation GetPrescription($id: ID!, $metadata: RequestMetadata!) {
|
|
3445
|
+
prescription(prescription: { id: $id }, metadata: $metadata) {
|
|
3446
|
+
...PrescriptionResultFields
|
|
3447
|
+
}
|
|
3448
|
+
}
|
|
3449
|
+
fragment TreatmentFields on Treatment {
|
|
3450
|
+
id
|
|
3451
|
+
name
|
|
3452
|
+
rxNormId
|
|
3453
|
+
ndc
|
|
3454
|
+
upc
|
|
3455
|
+
entityKind
|
|
3456
|
+
prescribableName
|
|
3457
|
+
brandName
|
|
3458
|
+
genericName
|
|
3459
|
+
form
|
|
3460
|
+
route
|
|
3461
|
+
strength
|
|
3462
|
+
medicationType
|
|
3463
|
+
schedule
|
|
3464
|
+
recommendedDispenseUnits
|
|
3465
|
+
}
|
|
3466
|
+
fragment ChoiceFields on Choice {
|
|
3467
|
+
__typename
|
|
3468
|
+
displayName
|
|
3469
|
+
reason
|
|
3470
|
+
operation
|
|
3471
|
+
argument
|
|
3472
|
+
value
|
|
3473
|
+
matchReasons {
|
|
3474
|
+
type
|
|
3475
|
+
label
|
|
3476
|
+
confidence
|
|
3477
|
+
}
|
|
3478
|
+
entity {
|
|
3479
|
+
__typename
|
|
3480
|
+
... on Treatment {
|
|
3481
|
+
...TreatmentFields
|
|
3482
|
+
}
|
|
3483
|
+
... on Pharmacy {
|
|
3484
|
+
...PharmacyFields
|
|
3485
|
+
}
|
|
3486
|
+
}
|
|
3487
|
+
}
|
|
3488
|
+
fragment PharmacyOfferFields on PharmacyOffer {
|
|
3489
|
+
source
|
|
3490
|
+
isPromoted
|
|
3491
|
+
attributeTags {
|
|
3492
|
+
kind
|
|
3493
|
+
label
|
|
3494
|
+
}
|
|
3495
|
+
priceSummary {
|
|
3496
|
+
priceType
|
|
3497
|
+
totalAmount
|
|
3498
|
+
totalRetailAmount
|
|
3499
|
+
totalSavings
|
|
3500
|
+
}
|
|
3501
|
+
prescriptionDeliveryEstimates {
|
|
3502
|
+
prescriptionId
|
|
3503
|
+
deliveryPromise
|
|
3504
|
+
deliveryPromiseRangeStart
|
|
3505
|
+
deliveryPromiseRangeEnd
|
|
3506
|
+
}
|
|
3507
|
+
}
|
|
3508
|
+
fragment ChangeFields on Change {
|
|
3509
|
+
key
|
|
3510
|
+
label
|
|
3511
|
+
status
|
|
3512
|
+
severity
|
|
3513
|
+
reason
|
|
3514
|
+
category
|
|
3515
|
+
operation
|
|
3516
|
+
options {
|
|
3517
|
+
...ChoiceFields
|
|
3518
|
+
}
|
|
3519
|
+
before {
|
|
3520
|
+
...ChoiceFields
|
|
3521
|
+
}
|
|
3522
|
+
after {
|
|
3523
|
+
...ChoiceFields
|
|
3524
|
+
}
|
|
3525
|
+
}
|
|
3526
|
+
fragment ChangeSetFields on ChangeSet {
|
|
3527
|
+
changes {
|
|
3528
|
+
...ChangeFields
|
|
3529
|
+
}
|
|
3530
|
+
}
|
|
3531
|
+
fragment OperationErrorFields on OperationError {
|
|
3532
|
+
__typename
|
|
3533
|
+
type
|
|
3534
|
+
code
|
|
3535
|
+
message
|
|
3536
|
+
requiredPermission
|
|
3537
|
+
service
|
|
3538
|
+
retryable
|
|
3539
|
+
}
|
|
3540
|
+
fragment PharmacyFields on Pharmacy {
|
|
3541
|
+
id
|
|
3542
|
+
name
|
|
3543
|
+
address {
|
|
3544
|
+
street1
|
|
3545
|
+
street2
|
|
3546
|
+
city
|
|
3547
|
+
state
|
|
3548
|
+
postalCode
|
|
3549
|
+
}
|
|
3550
|
+
latitude
|
|
3551
|
+
longitude
|
|
3552
|
+
fulfillmentType
|
|
3553
|
+
offers {
|
|
3554
|
+
...PharmacyOfferFields
|
|
3555
|
+
}
|
|
3556
|
+
}
|
|
3557
|
+
fragment ScreeningAlertFields on ScreeningAlert {
|
|
3558
|
+
severity
|
|
3559
|
+
type
|
|
3560
|
+
description
|
|
3561
|
+
category
|
|
3562
|
+
involvedEntities {
|
|
3563
|
+
id
|
|
3564
|
+
name
|
|
3565
|
+
}
|
|
3566
|
+
options {
|
|
3567
|
+
...ChoiceFields
|
|
3568
|
+
}
|
|
3569
|
+
}
|
|
3570
|
+
fragment PrescriptionFields on Prescription {
|
|
3571
|
+
id
|
|
3572
|
+
templateId
|
|
3573
|
+
patient {
|
|
3574
|
+
id
|
|
3575
|
+
}
|
|
3576
|
+
treatment {
|
|
3577
|
+
...TreatmentFields
|
|
3578
|
+
}
|
|
3579
|
+
instructions
|
|
3580
|
+
dispense {
|
|
3581
|
+
quantity
|
|
3582
|
+
unit
|
|
3583
|
+
daysSupply
|
|
3584
|
+
refillsAllowed
|
|
3585
|
+
dispenseAsWritten
|
|
3586
|
+
}
|
|
3587
|
+
clinical {
|
|
3588
|
+
diagnoses {
|
|
3589
|
+
id
|
|
3590
|
+
name
|
|
3591
|
+
icd10Code
|
|
3592
|
+
}
|
|
3593
|
+
notes
|
|
3594
|
+
}
|
|
3595
|
+
screeningAlerts {
|
|
3596
|
+
...ScreeningAlertFields
|
|
3597
|
+
}
|
|
3598
|
+
signing {
|
|
3599
|
+
state
|
|
3600
|
+
contentHash
|
|
3601
|
+
message
|
|
3602
|
+
signedAt
|
|
3603
|
+
}
|
|
3604
|
+
}
|
|
3605
|
+
fragment PrescriptionResultFields on PrescriptionResult {
|
|
3606
|
+
__typename
|
|
3607
|
+
... on PrescriptionPayload {
|
|
3608
|
+
prescription {
|
|
3609
|
+
...PrescriptionFields
|
|
3610
|
+
}
|
|
3611
|
+
...ChangeSetFields
|
|
3612
|
+
}
|
|
3613
|
+
... on AmbiguousPrescriptionMatch {
|
|
3614
|
+
reason
|
|
3615
|
+
candidates {
|
|
3616
|
+
id
|
|
3617
|
+
instructions
|
|
3618
|
+
dispense {
|
|
3619
|
+
quantity
|
|
3620
|
+
unit
|
|
3621
|
+
daysSupply
|
|
3622
|
+
refillsAllowed
|
|
3623
|
+
dispenseAsWritten
|
|
3624
|
+
}
|
|
3625
|
+
}
|
|
3626
|
+
}
|
|
3627
|
+
... on OperationError {
|
|
3628
|
+
...OperationErrorFields
|
|
3629
|
+
}
|
|
3630
|
+
}`);
|
|
3631
|
+
export const SyncPrescriptionDocument = new TypedDocumentString(`
|
|
3632
|
+
mutation SyncPrescription($id: ID, $externalId: String, $patient: PatientReferenceInput, $treatment: TreatmentReferenceInput, $templateId: ID, $instructions: String, $dispense: DispenseInput, $clinical: PrescriptionClinicalInput, $metadata: RequestMetadata!) {
|
|
3633
|
+
prescription(
|
|
3634
|
+
prescription: {
|
|
3635
|
+
id: $id
|
|
3636
|
+
externalId: $externalId
|
|
3637
|
+
patient: $patient
|
|
3638
|
+
treatment: $treatment
|
|
3639
|
+
templateId: $templateId
|
|
3640
|
+
instructions: $instructions
|
|
3641
|
+
dispense: $dispense
|
|
3642
|
+
clinical: $clinical
|
|
3643
|
+
}
|
|
3644
|
+
metadata: $metadata
|
|
3645
|
+
) {
|
|
3646
|
+
...PrescriptionResultFields
|
|
3647
|
+
}
|
|
3648
|
+
}
|
|
3649
|
+
fragment TreatmentFields on Treatment {
|
|
3650
|
+
id
|
|
3651
|
+
name
|
|
3652
|
+
rxNormId
|
|
3653
|
+
ndc
|
|
3654
|
+
upc
|
|
3655
|
+
entityKind
|
|
3656
|
+
prescribableName
|
|
3657
|
+
brandName
|
|
3658
|
+
genericName
|
|
3659
|
+
form
|
|
3660
|
+
route
|
|
3661
|
+
strength
|
|
3662
|
+
medicationType
|
|
3663
|
+
schedule
|
|
3664
|
+
recommendedDispenseUnits
|
|
3665
|
+
}
|
|
3666
|
+
fragment ChoiceFields on Choice {
|
|
3667
|
+
__typename
|
|
3668
|
+
displayName
|
|
3669
|
+
reason
|
|
3670
|
+
operation
|
|
3671
|
+
argument
|
|
3672
|
+
value
|
|
3673
|
+
matchReasons {
|
|
3674
|
+
type
|
|
3675
|
+
label
|
|
3676
|
+
confidence
|
|
3677
|
+
}
|
|
3678
|
+
entity {
|
|
3679
|
+
__typename
|
|
3680
|
+
... on Treatment {
|
|
3681
|
+
...TreatmentFields
|
|
3682
|
+
}
|
|
3683
|
+
... on Pharmacy {
|
|
3684
|
+
...PharmacyFields
|
|
3685
|
+
}
|
|
3686
|
+
}
|
|
3687
|
+
}
|
|
3688
|
+
fragment PharmacyOfferFields on PharmacyOffer {
|
|
3689
|
+
source
|
|
3690
|
+
isPromoted
|
|
3691
|
+
attributeTags {
|
|
3692
|
+
kind
|
|
3693
|
+
label
|
|
3694
|
+
}
|
|
3695
|
+
priceSummary {
|
|
3696
|
+
priceType
|
|
3697
|
+
totalAmount
|
|
3698
|
+
totalRetailAmount
|
|
3699
|
+
totalSavings
|
|
3700
|
+
}
|
|
3701
|
+
prescriptionDeliveryEstimates {
|
|
3702
|
+
prescriptionId
|
|
3703
|
+
deliveryPromise
|
|
3704
|
+
deliveryPromiseRangeStart
|
|
3705
|
+
deliveryPromiseRangeEnd
|
|
3706
|
+
}
|
|
3707
|
+
}
|
|
3708
|
+
fragment ChangeFields on Change {
|
|
3709
|
+
key
|
|
3710
|
+
label
|
|
3711
|
+
status
|
|
3712
|
+
severity
|
|
3713
|
+
reason
|
|
3714
|
+
category
|
|
3715
|
+
operation
|
|
3716
|
+
options {
|
|
3717
|
+
...ChoiceFields
|
|
3718
|
+
}
|
|
3719
|
+
before {
|
|
3720
|
+
...ChoiceFields
|
|
3721
|
+
}
|
|
3722
|
+
after {
|
|
3723
|
+
...ChoiceFields
|
|
3724
|
+
}
|
|
3725
|
+
}
|
|
3726
|
+
fragment ChangeSetFields on ChangeSet {
|
|
3727
|
+
changes {
|
|
3728
|
+
...ChangeFields
|
|
3729
|
+
}
|
|
3730
|
+
}
|
|
3731
|
+
fragment OperationErrorFields on OperationError {
|
|
3732
|
+
__typename
|
|
3733
|
+
type
|
|
3734
|
+
code
|
|
3735
|
+
message
|
|
3736
|
+
requiredPermission
|
|
3737
|
+
service
|
|
3738
|
+
retryable
|
|
3739
|
+
}
|
|
3740
|
+
fragment PharmacyFields on Pharmacy {
|
|
3741
|
+
id
|
|
3742
|
+
name
|
|
3743
|
+
address {
|
|
3744
|
+
street1
|
|
3745
|
+
street2
|
|
3746
|
+
city
|
|
3747
|
+
state
|
|
3748
|
+
postalCode
|
|
3749
|
+
}
|
|
3750
|
+
latitude
|
|
3751
|
+
longitude
|
|
3752
|
+
fulfillmentType
|
|
3753
|
+
offers {
|
|
3754
|
+
...PharmacyOfferFields
|
|
3755
|
+
}
|
|
3756
|
+
}
|
|
3757
|
+
fragment ScreeningAlertFields on ScreeningAlert {
|
|
3758
|
+
severity
|
|
3759
|
+
type
|
|
3760
|
+
description
|
|
3761
|
+
category
|
|
3762
|
+
involvedEntities {
|
|
3763
|
+
id
|
|
3764
|
+
name
|
|
3765
|
+
}
|
|
3766
|
+
options {
|
|
3767
|
+
...ChoiceFields
|
|
3768
|
+
}
|
|
3769
|
+
}
|
|
3770
|
+
fragment PrescriptionFields on Prescription {
|
|
3771
|
+
id
|
|
3772
|
+
templateId
|
|
3773
|
+
patient {
|
|
3774
|
+
id
|
|
3775
|
+
}
|
|
3776
|
+
treatment {
|
|
3777
|
+
...TreatmentFields
|
|
3778
|
+
}
|
|
3779
|
+
instructions
|
|
3780
|
+
dispense {
|
|
3781
|
+
quantity
|
|
3782
|
+
unit
|
|
3783
|
+
daysSupply
|
|
3784
|
+
refillsAllowed
|
|
3785
|
+
dispenseAsWritten
|
|
3786
|
+
}
|
|
3787
|
+
clinical {
|
|
3788
|
+
diagnoses {
|
|
3789
|
+
id
|
|
3790
|
+
name
|
|
3791
|
+
icd10Code
|
|
3792
|
+
}
|
|
3793
|
+
notes
|
|
3794
|
+
}
|
|
3795
|
+
screeningAlerts {
|
|
3796
|
+
...ScreeningAlertFields
|
|
3797
|
+
}
|
|
3798
|
+
signing {
|
|
3799
|
+
state
|
|
3800
|
+
contentHash
|
|
3801
|
+
message
|
|
3802
|
+
signedAt
|
|
3803
|
+
}
|
|
3804
|
+
}
|
|
3805
|
+
fragment PrescriptionResultFields on PrescriptionResult {
|
|
3806
|
+
__typename
|
|
3807
|
+
... on PrescriptionPayload {
|
|
3808
|
+
prescription {
|
|
3809
|
+
...PrescriptionFields
|
|
3810
|
+
}
|
|
3811
|
+
...ChangeSetFields
|
|
3812
|
+
}
|
|
3813
|
+
... on AmbiguousPrescriptionMatch {
|
|
3814
|
+
reason
|
|
3815
|
+
candidates {
|
|
3816
|
+
id
|
|
3817
|
+
instructions
|
|
3818
|
+
dispense {
|
|
3819
|
+
quantity
|
|
3820
|
+
unit
|
|
3821
|
+
daysSupply
|
|
3822
|
+
refillsAllowed
|
|
3823
|
+
dispenseAsWritten
|
|
3824
|
+
}
|
|
3825
|
+
}
|
|
3826
|
+
}
|
|
3827
|
+
... on OperationError {
|
|
3828
|
+
...OperationErrorFields
|
|
3829
|
+
}
|
|
3830
|
+
}`);
|
|
3831
|
+
export const UpdatePrescriptionDocument = new TypedDocumentString(`
|
|
3832
|
+
mutation UpdatePrescription($id: ID!, $externalId: String, $treatment: TreatmentReferenceInput, $instructions: String, $dispense: DispenseInput, $clinical: PrescriptionClinicalInput, $signing: PrescriptionSigningDetailsInput, $metadata: RequestMetadata!) {
|
|
3833
|
+
prescription(
|
|
3834
|
+
prescription: {
|
|
3835
|
+
id: $id
|
|
3836
|
+
externalId: $externalId
|
|
3837
|
+
treatment: $treatment
|
|
3838
|
+
instructions: $instructions
|
|
3839
|
+
dispense: $dispense
|
|
3840
|
+
clinical: $clinical
|
|
3841
|
+
signing: $signing
|
|
3842
|
+
}
|
|
3843
|
+
metadata: $metadata
|
|
3844
|
+
) {
|
|
3845
|
+
...PrescriptionResultFields
|
|
3846
|
+
}
|
|
3847
|
+
}
|
|
3848
|
+
fragment TreatmentFields on Treatment {
|
|
3849
|
+
id
|
|
3850
|
+
name
|
|
3851
|
+
rxNormId
|
|
3852
|
+
ndc
|
|
3853
|
+
upc
|
|
3854
|
+
entityKind
|
|
3855
|
+
prescribableName
|
|
3856
|
+
brandName
|
|
3857
|
+
genericName
|
|
3858
|
+
form
|
|
3859
|
+
route
|
|
3860
|
+
strength
|
|
3861
|
+
medicationType
|
|
3862
|
+
schedule
|
|
3863
|
+
recommendedDispenseUnits
|
|
3864
|
+
}
|
|
3865
|
+
fragment ChoiceFields on Choice {
|
|
3866
|
+
__typename
|
|
3867
|
+
displayName
|
|
3868
|
+
reason
|
|
3869
|
+
operation
|
|
3870
|
+
argument
|
|
3871
|
+
value
|
|
3872
|
+
matchReasons {
|
|
3873
|
+
type
|
|
3874
|
+
label
|
|
3875
|
+
confidence
|
|
3876
|
+
}
|
|
3877
|
+
entity {
|
|
3878
|
+
__typename
|
|
3879
|
+
... on Treatment {
|
|
3880
|
+
...TreatmentFields
|
|
3881
|
+
}
|
|
3882
|
+
... on Pharmacy {
|
|
3883
|
+
...PharmacyFields
|
|
3884
|
+
}
|
|
3885
|
+
}
|
|
3886
|
+
}
|
|
3887
|
+
fragment PharmacyOfferFields on PharmacyOffer {
|
|
3888
|
+
source
|
|
3889
|
+
isPromoted
|
|
3890
|
+
attributeTags {
|
|
3891
|
+
kind
|
|
3892
|
+
label
|
|
3893
|
+
}
|
|
3894
|
+
priceSummary {
|
|
3895
|
+
priceType
|
|
3896
|
+
totalAmount
|
|
3897
|
+
totalRetailAmount
|
|
3898
|
+
totalSavings
|
|
3899
|
+
}
|
|
3900
|
+
prescriptionDeliveryEstimates {
|
|
3901
|
+
prescriptionId
|
|
3902
|
+
deliveryPromise
|
|
3903
|
+
deliveryPromiseRangeStart
|
|
3904
|
+
deliveryPromiseRangeEnd
|
|
3905
|
+
}
|
|
3906
|
+
}
|
|
3907
|
+
fragment ChangeFields on Change {
|
|
3908
|
+
key
|
|
3909
|
+
label
|
|
3910
|
+
status
|
|
3911
|
+
severity
|
|
3912
|
+
reason
|
|
3913
|
+
category
|
|
3914
|
+
operation
|
|
3915
|
+
options {
|
|
3916
|
+
...ChoiceFields
|
|
3917
|
+
}
|
|
3918
|
+
before {
|
|
3919
|
+
...ChoiceFields
|
|
3920
|
+
}
|
|
3921
|
+
after {
|
|
3922
|
+
...ChoiceFields
|
|
3923
|
+
}
|
|
3924
|
+
}
|
|
3925
|
+
fragment ChangeSetFields on ChangeSet {
|
|
3926
|
+
changes {
|
|
3927
|
+
...ChangeFields
|
|
3928
|
+
}
|
|
3929
|
+
}
|
|
3930
|
+
fragment OperationErrorFields on OperationError {
|
|
3931
|
+
__typename
|
|
3932
|
+
type
|
|
3933
|
+
code
|
|
3934
|
+
message
|
|
3935
|
+
requiredPermission
|
|
3936
|
+
service
|
|
3937
|
+
retryable
|
|
3938
|
+
}
|
|
3939
|
+
fragment PharmacyFields on Pharmacy {
|
|
3940
|
+
id
|
|
3941
|
+
name
|
|
3942
|
+
address {
|
|
3943
|
+
street1
|
|
3944
|
+
street2
|
|
3945
|
+
city
|
|
3946
|
+
state
|
|
3947
|
+
postalCode
|
|
3948
|
+
}
|
|
3949
|
+
latitude
|
|
3950
|
+
longitude
|
|
3951
|
+
fulfillmentType
|
|
3952
|
+
offers {
|
|
3953
|
+
...PharmacyOfferFields
|
|
3954
|
+
}
|
|
3955
|
+
}
|
|
3956
|
+
fragment ScreeningAlertFields on ScreeningAlert {
|
|
3957
|
+
severity
|
|
3958
|
+
type
|
|
3959
|
+
description
|
|
3960
|
+
category
|
|
3961
|
+
involvedEntities {
|
|
3962
|
+
id
|
|
3963
|
+
name
|
|
3964
|
+
}
|
|
3965
|
+
options {
|
|
3966
|
+
...ChoiceFields
|
|
3967
|
+
}
|
|
3968
|
+
}
|
|
3969
|
+
fragment PrescriptionFields on Prescription {
|
|
3970
|
+
id
|
|
3971
|
+
templateId
|
|
3972
|
+
patient {
|
|
3973
|
+
id
|
|
3974
|
+
}
|
|
3975
|
+
treatment {
|
|
3976
|
+
...TreatmentFields
|
|
3977
|
+
}
|
|
3978
|
+
instructions
|
|
3979
|
+
dispense {
|
|
3980
|
+
quantity
|
|
3981
|
+
unit
|
|
3982
|
+
daysSupply
|
|
3983
|
+
refillsAllowed
|
|
3984
|
+
dispenseAsWritten
|
|
3985
|
+
}
|
|
3986
|
+
clinical {
|
|
3987
|
+
diagnoses {
|
|
3988
|
+
id
|
|
3989
|
+
name
|
|
3990
|
+
icd10Code
|
|
3991
|
+
}
|
|
3992
|
+
notes
|
|
3993
|
+
}
|
|
3994
|
+
screeningAlerts {
|
|
3995
|
+
...ScreeningAlertFields
|
|
3996
|
+
}
|
|
3997
|
+
signing {
|
|
3998
|
+
state
|
|
3999
|
+
contentHash
|
|
4000
|
+
message
|
|
4001
|
+
signedAt
|
|
4002
|
+
}
|
|
4003
|
+
}
|
|
4004
|
+
fragment PrescriptionResultFields on PrescriptionResult {
|
|
4005
|
+
__typename
|
|
4006
|
+
... on PrescriptionPayload {
|
|
4007
|
+
prescription {
|
|
4008
|
+
...PrescriptionFields
|
|
4009
|
+
}
|
|
4010
|
+
...ChangeSetFields
|
|
4011
|
+
}
|
|
4012
|
+
... on AmbiguousPrescriptionMatch {
|
|
4013
|
+
reason
|
|
4014
|
+
candidates {
|
|
4015
|
+
id
|
|
4016
|
+
instructions
|
|
4017
|
+
dispense {
|
|
4018
|
+
quantity
|
|
4019
|
+
unit
|
|
4020
|
+
daysSupply
|
|
4021
|
+
refillsAllowed
|
|
4022
|
+
dispenseAsWritten
|
|
4023
|
+
}
|
|
4024
|
+
}
|
|
4025
|
+
}
|
|
4026
|
+
... on OperationError {
|
|
4027
|
+
...OperationErrorFields
|
|
4028
|
+
}
|
|
4029
|
+
}`);
|
|
4030
|
+
//# sourceMappingURL=graphql.js.map
|