-
Notifications
You must be signed in to change notification settings - Fork 1
/
testdata_easyjson.go
509 lines (501 loc) · 24.9 KB
/
testdata_easyjson.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
package test
import (
"time"
"github.com/go-json-experiment/json/jsontext"
)
type (
canadaRootEasyJSON struct {
Type string `json:"type"`
Features []struct {
Type string `json:"type"`
Properties struct {
Name string `json:"name"`
} `json:"properties"`
Geometry struct {
Type string `json:"type"`
Coordinates [][][2]float64 `json:"coordinates"`
} `json:"geometry"`
} `json:"features"`
}
)
type (
citmRootEasyJSON struct {
AreaNames map[int64]string `json:"areaNames"`
AudienceSubCategoryNames map[int64]string `json:"audienceSubCategoryNames"`
BlockNames map[int64]string `json:"blockNames"`
Events map[int64]struct {
Description string `json:"description"`
ID int `json:"id"`
Logo string `json:"logo"`
Name string `json:"name"`
SubTopicIds []int `json:"subTopicIds"`
SubjectCode any `json:"subjectCode"`
Subtitle any `json:"subtitle"`
TopicIds []int `json:"topicIds"`
} `json:"events"`
Performances []struct {
EventID int `json:"eventId"`
ID int `json:"id"`
Logo any `json:"logo"`
Name any `json:"name"`
Prices []struct {
Amount int `json:"amount"`
AudienceSubCategoryID int64 `json:"audienceSubCategoryId"`
SeatCategoryID int64 `json:"seatCategoryId"`
} `json:"prices"`
SeatCategories []struct {
Areas []struct {
AreaID int `json:"areaId"`
BlockIds []any `json:"blockIds"`
} `json:"areas"`
SeatCategoryID int `json:"seatCategoryId"`
} `json:"seatCategories"`
SeatMapImage any `json:"seatMapImage"`
Start int64 `json:"start"`
VenueCode string `json:"venueCode"`
} `json:"performances"`
SeatCategoryNames map[uint64]string `json:"seatCategoryNames"`
SubTopicNames map[uint64]string `json:"subTopicNames"`
SubjectNames map[uint64]string `json:"subjectNames"`
TopicNames map[uint64]string `json:"topicNames"`
TopicSubTopics map[uint64][]uint64 `json:"topicSubTopics"`
VenueNames map[string]string `json:"venueNames"`
}
)
type (
golangRootEasyJSON struct {
Tree *golangNodeEasyJSON `json:"tree"`
Username string `json:"username"`
}
golangNodeEasyJSON struct {
Name string `json:"name"`
Kids []golangNodeEasyJSON `json:"kids"`
CLWeight float64 `json:"cl_weight"`
Touches int `json:"touches"`
MinT uint64 `json:"min_t"`
MaxT uint64 `json:"max_t"`
MeanT uint64 `json:"mean_t"`
}
)
type (
stringRootEasyJSON struct {
Arabic string `json:"Arabic"`
ArabicPresentationFormsA string `json:"Arabic Presentation Forms-A"`
ArabicPresentationFormsB string `json:"Arabic Presentation Forms-B"`
Armenian string `json:"Armenian"`
Arrows string `json:"Arrows"`
Bengali string `json:"Bengali"`
Bopomofo string `json:"Bopomofo"`
BoxDrawing string `json:"Box Drawing"`
CJKCompatibility string `json:"CJK Compatibility"`
CJKCompatibilityForms string `json:"CJK Compatibility Forms"`
CJKCompatibilityIdeographs string `json:"CJK Compatibility Ideographs"`
CJKSymbolsAndPunctuation string `json:"CJK Symbols and Punctuation"`
CJKUnifiedIdeographs string `json:"CJK Unified Ideographs"`
CJKUnifiedIdeographsExtensionA string `json:"CJK Unified Ideographs Extension A"`
CJKUnifiedIdeographsExtensionB string `json:"CJK Unified Ideographs Extension B"`
Cherokee string `json:"Cherokee"`
CurrencySymbols string `json:"Currency Symbols"`
Cyrillic string `json:"Cyrillic"`
CyrillicSupplementary string `json:"Cyrillic Supplementary"`
Devanagari string `json:"Devanagari"`
EnclosedAlphanumerics string `json:"Enclosed Alphanumerics"`
EnclosedCJKLettersAndMonths string `json:"Enclosed CJK Letters and Months"`
Ethiopic string `json:"Ethiopic"`
GeometricShapes string `json:"Geometric Shapes"`
Georgian string `json:"Georgian"`
GreekAndCoptic string `json:"Greek and Coptic"`
Gujarati string `json:"Gujarati"`
Gurmukhi string `json:"Gurmukhi"`
HangulCompatibilityJamo string `json:"Hangul Compatibility Jamo"`
HangulJamo string `json:"Hangul Jamo"`
HangulSyllables string `json:"Hangul Syllables"`
Hebrew string `json:"Hebrew"`
Hiragana string `json:"Hiragana"`
IPAExtentions string `json:"IPA Extentions"`
KangxiRadicals string `json:"Kangxi Radicals"`
Katakana string `json:"Katakana"`
Khmer string `json:"Khmer"`
KhmerSymbols string `json:"Khmer Symbols"`
Latin string `json:"Latin"`
LatinExtendedAdditional string `json:"Latin Extended Additional"`
Latin1Supplement string `json:"Latin-1 Supplement"`
LatinExtendedA string `json:"Latin-Extended A"`
LatinExtendedB string `json:"Latin-Extended B"`
LetterlikeSymbols string `json:"Letterlike Symbols"`
Malayalam string `json:"Malayalam"`
MathematicalAlphanumericSymbols string `json:"Mathematical Alphanumeric Symbols"`
MathematicalOperators string `json:"Mathematical Operators"`
MiscellaneousSymbols string `json:"Miscellaneous Symbols"`
Mongolian string `json:"Mongolian"`
NumberForms string `json:"Number Forms"`
Oriya string `json:"Oriya"`
PhoneticExtensions string `json:"Phonetic Extensions"`
SupplementalArrowsB string `json:"Supplemental Arrows-B"`
Syriac string `json:"Syriac"`
Tamil string `json:"Tamil"`
Thaana string `json:"Thaana"`
Thai string `json:"Thai"`
UnifiedCanadianAboriginalSyllabics string `json:"Unified Canadian Aboriginal Syllabics"`
YiRadicals string `json:"Yi Radicals"`
YiSyllables string `json:"Yi Syllables"`
}
)
type (
syntheaRootEasyJSON struct {
Entry []struct {
FullURL string `json:"fullUrl"`
Request *struct {
Method string `json:"method"`
URL string `json:"url"`
} `json:"request"`
Resource *struct {
AbatementDateTime time.Time `json:"abatementDateTime"`
AchievementStatus syntheaCodeEasyJSON `json:"achievementStatus"`
Active bool `json:"active"`
Activity []struct {
Detail *struct {
Code syntheaCodeEasyJSON `json:"code"`
Location syntheaReferenceEasyJSON `json:"location"`
Status string `json:"status"`
} `json:"detail"`
} `json:"activity"`
Address []syntheaAddressEasyJSON `json:"address"`
Addresses []syntheaReferenceEasyJSON `json:"addresses"`
AuthoredOn time.Time `json:"authoredOn"`
BillablePeriod syntheaRangeEasyJSON `json:"billablePeriod"`
BirthDate string `json:"birthDate"`
CareTeam []struct {
Provider syntheaReferenceEasyJSON `json:"provider"`
Reference string `json:"reference"`
Role syntheaCodeEasyJSON `json:"role"`
Sequence int64 `json:"sequence"`
} `json:"careTeam"`
Category []syntheaCodeEasyJSON `json:"category"`
Claim syntheaReferenceEasyJSON `json:"claim"`
Class syntheaCodingEasyJSON `json:"class"`
ClinicalStatus syntheaCodeEasyJSON `json:"clinicalStatus"`
Code syntheaCodeEasyJSON `json:"code"`
Communication []struct {
Language syntheaCodeEasyJSON `json:"language"`
} `json:"communication"`
Component []struct {
Code syntheaCodeEasyJSON `json:"code"`
ValueQuantity syntheaCodingEasyJSON `json:"valueQuantity"`
} `json:"component"`
Contained []struct {
Beneficiary syntheaReferenceEasyJSON `json:"beneficiary"`
ID string `json:"id"`
Intent string `json:"intent"`
Payor []syntheaReferenceEasyJSON `json:"payor"`
Performer []syntheaReferenceEasyJSON `json:"performer"`
Requester syntheaReferenceEasyJSON `json:"requester"`
ResourceType string `json:"resourceType"`
Status string `json:"status"`
Subject syntheaReferenceEasyJSON `json:"subject"`
Type syntheaCodeEasyJSON `json:"type"`
} `json:"contained"`
Created time.Time `json:"created"`
DeceasedDateTime time.Time `json:"deceasedDateTime"`
Description syntheaCodeEasyJSON `json:"description"`
Diagnosis []struct {
DiagnosisReference syntheaReferenceEasyJSON `json:"diagnosisReference"`
Sequence int64 `json:"sequence"`
Type []syntheaCodeEasyJSON `json:"type"`
} `json:"diagnosis"`
DosageInstruction []struct {
AsNeededBoolean bool `json:"asNeededBoolean"`
DoseAndRate []struct {
DoseQuantity *struct {
Value float64 `json:"value"`
} `json:"doseQuantity"`
Type syntheaCodeEasyJSON `json:"type"`
} `json:"doseAndRate"`
Sequence int64 `json:"sequence"`
Timing *struct {
Repeat *struct {
Frequency int64 `json:"frequency"`
Period float64 `json:"period"`
PeriodUnit string `json:"periodUnit"`
} `json:"repeat"`
} `json:"timing"`
} `json:"dosageInstruction"`
EffectiveDateTime time.Time `json:"effectiveDateTime"`
Encounter syntheaReferenceEasyJSON `json:"encounter"`
Extension []syntheaExtensionEasyJSON `json:"extension"`
Gender string `json:"gender"`
Goal []syntheaReferenceEasyJSON `json:"goal"`
ID string `json:"id"`
Identifier []struct {
System string `json:"system"`
Type syntheaCodeEasyJSON `json:"type"`
Use string `json:"use"`
Value string `json:"value"`
} `json:"identifier"`
Insurance []struct {
Coverage syntheaReferenceEasyJSON `json:"coverage"`
Focal bool `json:"focal"`
Sequence int64 `json:"sequence"`
} `json:"insurance"`
Insurer syntheaReferenceEasyJSON `json:"insurer"`
Intent string `json:"intent"`
Issued time.Time `json:"issued"`
Item []struct {
Adjudication []struct {
Amount syntheaCurrencyEasyJSON `json:"amount"`
Category syntheaCodeEasyJSON `json:"category"`
} `json:"adjudication"`
Category syntheaCodeEasyJSON `json:"category"`
DiagnosisSequence []int64 `json:"diagnosisSequence"`
Encounter []syntheaReferenceEasyJSON `json:"encounter"`
InformationSequence []int64 `json:"informationSequence"`
LocationCodeableConcept syntheaCodeEasyJSON `json:"locationCodeableConcept"`
Net syntheaCurrencyEasyJSON `json:"net"`
ProcedureSequence []int64 `json:"procedureSequence"`
ProductOrService syntheaCodeEasyJSON `json:"productOrService"`
Sequence int64 `json:"sequence"`
ServicedPeriod syntheaRangeEasyJSON `json:"servicedPeriod"`
} `json:"item"`
LifecycleStatus string `json:"lifecycleStatus"`
ManagingOrganization []syntheaReferenceEasyJSON `json:"managingOrganization"`
MaritalStatus syntheaCodeEasyJSON `json:"maritalStatus"`
MedicationCodeableConcept syntheaCodeEasyJSON `json:"medicationCodeableConcept"`
MultipleBirthBoolean bool `json:"multipleBirthBoolean"`
Name jsontext.Value `json:"name"`
NumberOfInstances int64 `json:"numberOfInstances"`
NumberOfSeries int64 `json:"numberOfSeries"`
OccurrenceDateTime time.Time `json:"occurrenceDateTime"`
OnsetDateTime time.Time `json:"onsetDateTime"`
Outcome string `json:"outcome"`
Participant []struct {
Individual syntheaReferenceEasyJSON `json:"individual"`
Member syntheaReferenceEasyJSON `json:"member"`
Role []syntheaCodeEasyJSON `json:"role"`
} `json:"participant"`
Patient syntheaReferenceEasyJSON `json:"patient"`
Payment *struct {
Amount syntheaCurrencyEasyJSON `json:"amount"`
} `json:"payment"`
PerformedPeriod syntheaRangeEasyJSON `json:"performedPeriod"`
Period syntheaRangeEasyJSON `json:"period"`
Prescription syntheaReferenceEasyJSON `json:"prescription"`
PrimarySource bool `json:"primarySource"`
Priority syntheaCodeEasyJSON `json:"priority"`
Procedure []struct {
ProcedureReference syntheaReferenceEasyJSON `json:"procedureReference"`
Sequence int64 `json:"sequence"`
} `json:"procedure"`
Provider syntheaReferenceEasyJSON `json:"provider"`
ReasonCode []syntheaCodeEasyJSON `json:"reasonCode"`
ReasonReference []syntheaReferenceEasyJSON `json:"reasonReference"`
RecordedDate time.Time `json:"recordedDate"`
Referral syntheaReferenceEasyJSON `json:"referral"`
Requester syntheaReferenceEasyJSON `json:"requester"`
ResourceType string `json:"resourceType"`
Result []syntheaReferenceEasyJSON `json:"result"`
Series []struct {
BodySite syntheaCodingEasyJSON `json:"bodySite"`
Instance []struct {
Number int64 `json:"number"`
SopClass syntheaCodingEasyJSON `json:"sopClass"`
Title string `json:"title"`
UID string `json:"uid"`
} `json:"instance"`
Modality syntheaCodingEasyJSON `json:"modality"`
Number int64 `json:"number"`
NumberOfInstances int64 `json:"numberOfInstances"`
Started string `json:"started"`
UID string `json:"uid"`
} `json:"series"`
ServiceProvider syntheaReferenceEasyJSON `json:"serviceProvider"`
Started time.Time `json:"started"`
Status string `json:"status"`
Subject syntheaReferenceEasyJSON `json:"subject"`
SupportingInfo []struct {
Category syntheaCodeEasyJSON `json:"category"`
Sequence int64 `json:"sequence"`
ValueReference syntheaReferenceEasyJSON `json:"valueReference"`
} `json:"supportingInfo"`
Telecom []map[string]string `json:"telecom"`
Text map[string]string `json:"text"`
Total jsontext.Value `json:"total"`
Type jsontext.Value `json:"type"`
Use string `json:"use"`
VaccineCode syntheaCodeEasyJSON `json:"vaccineCode"`
ValueCodeableConcept syntheaCodeEasyJSON `json:"valueCodeableConcept"`
ValueQuantity syntheaCodingEasyJSON `json:"valueQuantity"`
VerificationStatus syntheaCodeEasyJSON `json:"verificationStatus"`
} `json:"resource"`
} `json:"entry"`
ResourceType string `json:"resourceType"`
Type string `json:"type"`
}
syntheaCodeEasyJSON struct {
Coding []syntheaCodingEasyJSON `json:"coding"`
Text string `json:"text"`
}
syntheaCodingEasyJSON struct {
Code string `json:"code"`
Display string `json:"display"`
System string `json:"system"`
Unit string `json:"unit"`
Value float64 `json:"value"`
}
syntheaReferenceEasyJSON struct {
Display string `json:"display"`
Reference string `json:"reference"`
}
syntheaAddressEasyJSON struct {
City string `json:"city"`
Country string `json:"country"`
Extension []syntheaExtensionEasyJSON `json:"extension"`
Line []string `json:"line"`
PostalCode string `json:"postalCode"`
State string `json:"state"`
}
syntheaExtensionEasyJSON struct {
URL string `json:"url"`
ValueAddress syntheaAddressEasyJSON `json:"valueAddress"`
ValueCode string `json:"valueCode"`
ValueDecimal float64 `json:"valueDecimal"`
ValueString string `json:"valueString"`
Extension []syntheaExtensionEasyJSON `json:"extension"`
}
syntheaRangeEasyJSON struct {
End time.Time `json:"end"`
Start time.Time `json:"start"`
}
syntheaCurrencyEasyJSON struct {
Currency string `json:"currency"`
Value float64 `json:"value"`
}
)
type (
twitterRootEasyJSON struct {
Statuses []twitterStatusEasyJSON `json:"statuses"`
SearchMetadata struct {
CompletedIn float64 `json:"completed_in"`
MaxID int64 `json:"max_id"`
MaxIDStr int64 `json:"max_id_str,string"`
NextResults string `json:"next_results"`
Query string `json:"query"`
RefreshURL string `json:"refresh_url"`
Count int `json:"count"`
SinceID int `json:"since_id"`
SinceIDStr int `json:"since_id_str,string"`
} `json:"search_metadata"`
}
twitterStatusEasyJSON struct {
Metadata struct {
ResultType string `json:"result_type"`
IsoLanguageCode string `json:"iso_language_code"`
} `json:"metadata"`
CreatedAt string `json:"created_at"`
ID int64 `json:"id"`
IDStr int64 `json:"id_str,string"`
Text string `json:"text"`
Source string `json:"source"`
Truncated bool `json:"truncated"`
InReplyToStatusID int64 `json:"in_reply_to_status_id"`
InReplyToStatusIDStr int64 `json:"in_reply_to_status_id_str,string"`
InReplyToUserID int64 `json:"in_reply_to_user_id"`
InReplyToUserIDStr int64 `json:"in_reply_to_user_id_str,string"`
InReplyToScreenName string `json:"in_reply_to_screen_name"`
User twitterUserEasyJSON `json:"user,omitempty"`
Geo any `json:"geo"`
Coordinates any `json:"coordinates"`
Place any `json:"place"`
Contributors any `json:"contributors"`
RetweeetedStatus *twitterStatusEasyJSON `json:"retweeted_status"`
RetweetCount int `json:"retweet_count"`
FavoriteCount int `json:"favorite_count"`
Entities twitterEntitiesEasyJSON `json:"entities,omitempty"`
Favorited bool `json:"favorited"`
Retweeted bool `json:"retweeted"`
PossiblySensitive bool `json:"possibly_sensitive"`
Lang string `json:"lang"`
}
twitterUserEasyJSON struct {
ID int64 `json:"id"`
IDStr string `json:"id_str"`
Name string `json:"name"`
ScreenName string `json:"screen_name"`
Location string `json:"location"`
Description string `json:"description"`
URL any `json:"url"`
Entities twitterEntitiesEasyJSON `json:"entities"`
Protected bool `json:"protected"`
FollowersCount int `json:"followers_count"`
FriendsCount int `json:"friends_count"`
ListedCount int `json:"listed_count"`
CreatedAt string `json:"created_at"`
FavouritesCount int `json:"favourites_count"`
UtcOffset int `json:"utc_offset"`
TimeZone string `json:"time_zone"`
GeoEnabled bool `json:"geo_enabled"`
Verified bool `json:"verified"`
StatusesCount int `json:"statuses_count"`
Lang string `json:"lang"`
ContributorsEnabled bool `json:"contributors_enabled"`
IsTranslator bool `json:"is_translator"`
IsTranslationEnabled bool `json:"is_translation_enabled"`
ProfileBackgroundColor string `json:"profile_background_color"`
ProfileBackgroundImageURL string `json:"profile_background_image_url"`
ProfileBackgroundImageURLHTTPS string `json:"profile_background_image_url_https"`
ProfileBackgroundTile bool `json:"profile_background_tile"`
ProfileImageURL string `json:"profile_image_url"`
ProfileImageURLHTTPS string `json:"profile_image_url_https"`
ProfileBannerURL string `json:"profile_banner_url"`
ProfileLinkColor string `json:"profile_link_color"`
ProfileSidebarBorderColor string `json:"profile_sidebar_border_color"`
ProfileSidebarFillColor string `json:"profile_sidebar_fill_color"`
ProfileTextColor string `json:"profile_text_color"`
ProfileUseBackgroundImage bool `json:"profile_use_background_image"`
DefaultProfile bool `json:"default_profile"`
DefaultProfileImage bool `json:"default_profile_image"`
Following bool `json:"following"`
FollowRequestSent bool `json:"follow_request_sent"`
Notifications bool `json:"notifications"`
}
twitterEntitiesEasyJSON struct {
Hashtags []any `json:"hashtags"`
Symbols []any `json:"symbols"`
URL *twitterURLEasyJSON `json:"url"`
URLs []twitterURLEasyJSON `json:"urls"`
UserMentions []struct {
ScreenName string `json:"screen_name"`
Name string `json:"name"`
ID int64 `json:"id"`
IDStr int64 `json:"id_str,string"`
Indices []int `json:"indices"`
} `json:"user_mentions"`
Description struct {
URLs []twitterURLEasyJSON `json:"urls"`
} `json:"description"`
Media []struct {
ID int64 `json:"id"`
IDStr string `json:"id_str"`
Indices []int `json:"indices"`
MediaURL string `json:"media_url"`
MediaURLHTTPS string `json:"media_url_https"`
URL string `json:"url"`
DisplayURL string `json:"display_url"`
ExpandedURL string `json:"expanded_url"`
Type string `json:"type"`
Sizes map[string]struct {
W int `json:"w"`
H int `json:"h"`
Resize string `json:"resize"`
} `json:"sizes"`
SourceStatusID int64 `json:"source_status_id"`
SourceStatusIDStr int64 `json:"source_status_id_str,string"`
} `json:"media"`
}
twitterURLEasyJSON struct {
URL string `json:"url"`
URLs []twitterURLEasyJSON `json:"urls"`
ExpandedURL string `json:"expanded_url"`
DisplayURL string `json:"display_url"`
Indices []int `json:"indices"`
}
)