-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
25626 lines (25625 loc) · 685 KB
/
index.d.ts
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
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Type definitions for FHIR Release 3 (STU)
// Project: http://hl7.org/fhir/index.html
// Definitions by: Artifact Health <https://www.artifacthealth.com>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/**
* Any combination of letters, numerals, "-" and ".", with a length limit of 64 characters. (This might be an integer, an unprefixed OID, UUID or any other identifier pattern that meets these constraints.) Ids are case-insensitive.
*/
type id = string;
/**
* String of characters used to identify a name or a resource
*/
type uri = string;
/**
* A stream of bytes
*/
type base64Binary = string;
/**
* A string which has at least one character and no leading or trailing whitespace and where there is no whitespace other than single spaces in the contents
*/
type code = string;
/**
* A date or partial date (e.g. just year or year + month). There is no time zone. The format is a union of the schema types gYear, gYearMonth and date. Dates SHALL be valid dates.
*/
type date = string;
/**
* A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may be zero-filled and may be ignored. Dates SHALL be valid dates.
*/
type dateTime = string;
/**
* A rational number with implicit precision
*/
type decimal = number;
/**
* An instant in time - known at least to the second
*/
type instant = string;
/**
* A whole number
*/
type integer = number;
/**
* A string that may contain markdown syntax for optional processing by a mark down presentation engine
*/
type markdown = string;
/**
* An OID represented as a URI
*/
type oid = string;
/**
* An integer with a value that is positive (e.g. >0)
*/
type positiveInt = number;
/**
* A time during the day, with no date specified
*/
type time = string;
/**
* An integer with a value that is not negative (e.g. >= 0)
*/
type unsignedInt = number;
/**
* Time range defined by start and end date/time
*/
export interface Period extends Element {
/**
* Starting time with inclusive boundary
*/
start?: dateTime;
/**
* Contains extended information for property 'start'.
*/
_start?: Element;
/**
* End time with inclusive boundary, if not ongoing
*/
end?: dateTime;
/**
* Contains extended information for property 'end'.
*/
_end?: Element;
}
/**
* An address expressed using postal conventions (as opposed to GPS or other location definition formats)
*/
export interface Address extends Element {
/**
* home | work | temp | old - purpose of this address
*/
use?: code;
/**
* Contains extended information for property 'use'.
*/
_use?: Element;
/**
* postal | physical | both
*/
type?: code;
/**
* Contains extended information for property 'type'.
*/
_type?: Element;
/**
* Text representation of the address
*/
text?: string;
/**
* Contains extended information for property 'text'.
*/
_text?: Element;
/**
* Street name, number, direction & P.O. Box etc.
*/
line?: string[];
/**
* Contains extended information for property 'line'.
*/
_line?: Element[];
/**
* Name of city, town etc.
*/
city?: string;
/**
* Contains extended information for property 'city'.
*/
_city?: Element;
/**
* District name (aka county)
*/
district?: string;
/**
* Contains extended information for property 'district'.
*/
_district?: Element;
/**
* Sub-unit of country (abbreviations ok)
*/
state?: string;
/**
* Contains extended information for property 'state'.
*/
_state?: Element;
/**
* Postal code for area
*/
postalCode?: string;
/**
* Contains extended information for property 'postalCode'.
*/
_postalCode?: Element;
/**
* Country (e.g. can be ISO 3166 2 or 3 letter code)
*/
country?: string;
/**
* Contains extended information for property 'country'.
*/
_country?: Element;
/**
* Time period when address was/is in use
*/
period?: Period;
}
/**
* A measured or measurable amount
*/
export interface Quantity extends Element {
/**
* Numerical value (with implicit precision)
*/
value?: decimal;
/**
* Contains extended information for property 'value'.
*/
_value?: Element;
/**
* < | <= | >= | > - how to understand the value
*/
comparator?: code;
/**
* Contains extended information for property 'comparator'.
*/
_comparator?: Element;
/**
* Unit representation
*/
unit?: string;
/**
* Contains extended information for property 'unit'.
*/
_unit?: Element;
/**
* System that defines coded unit form
*/
system?: uri;
/**
* Contains extended information for property 'system'.
*/
_system?: Element;
/**
* Coded form of the unit
*/
code?: code;
/**
* Contains extended information for property 'code'.
*/
_code?: Element;
}
/**
* A duration of time during which an organism (or a process) has existed
*/
export interface Age extends Quantity {
}
/**
* A reference to a code defined by a terminology system
*/
export interface Coding extends Element {
/**
* Identity of the terminology system
*/
system?: uri;
/**
* Contains extended information for property 'system'.
*/
_system?: Element;
/**
* Version of the system - if relevant
*/
version?: string;
/**
* Contains extended information for property 'version'.
*/
_version?: Element;
/**
* Symbol in syntax defined by the system
*/
code?: code;
/**
* Contains extended information for property 'code'.
*/
_code?: Element;
/**
* Representation defined by the system
*/
display?: string;
/**
* Contains extended information for property 'display'.
*/
_display?: Element;
/**
* If this coding was chosen directly by the user
*/
userSelected?: boolean;
/**
* Contains extended information for property 'userSelected'.
*/
_userSelected?: Element;
}
/**
* Concept - reference to a terminology or just text
*/
export interface CodeableConcept extends Element {
/**
* Code defined by a terminology system
*/
coding?: Coding[];
/**
* Plain text representation of the concept
*/
text?: string;
/**
* Contains extended information for property 'text'.
*/
_text?: Element;
}
/**
* An identifier intended for computation
*/
export interface Identifier extends Element {
/**
* usual | official | temp | secondary (If known)
*/
use?: code;
/**
* Contains extended information for property 'use'.
*/
_use?: Element;
/**
* Description of identifier
*/
type?: CodeableConcept;
/**
* The namespace for the identifier value
*/
system?: uri;
/**
* Contains extended information for property 'system'.
*/
_system?: Element;
/**
* The value that is unique
*/
value?: string;
/**
* Contains extended information for property 'value'.
*/
_value?: Element;
/**
* Time period when id is/was valid for use
*/
period?: Period;
/**
* Organization that issued id (may be just text)
*/
assigner?: Reference;
}
/**
* A reference from one resource to another
*/
export interface Reference extends Element {
/**
* Literal reference, Relative, internal or absolute URL
*/
reference?: string;
/**
* Contains extended information for property 'reference'.
*/
_reference?: Element;
/**
* Logical reference, when literal reference is not known
*/
identifier?: Identifier;
/**
* Text alternative for the resource
*/
display?: string;
/**
* Contains extended information for property 'display'.
*/
_display?: Element;
}
/**
* Text node with attribution
*/
export interface Annotation extends Element {
/**
* Individual responsible for the annotation
*/
authorReference?: Reference;
/**
* Individual responsible for the annotation
*/
authorString?: string;
/**
* Contains extended information for property 'authorString'.
*/
_authorString?: Element;
/**
* When the annotation was made
*/
time?: dateTime;
/**
* Contains extended information for property 'time'.
*/
_time?: Element;
/**
* The annotation - text content
*/
text: string;
/**
* Contains extended information for property 'text'.
*/
_text?: Element;
}
/**
* Content in a format defined elsewhere
*/
export interface Attachment extends Element {
/**
* Mime type of the content, with charset etc.
*/
contentType?: code;
/**
* Contains extended information for property 'contentType'.
*/
_contentType?: Element;
/**
* Human language of the content (BCP-47)
*/
language?: code;
/**
* Contains extended information for property 'language'.
*/
_language?: Element;
/**
* Data inline, base64ed
*/
data?: base64Binary;
/**
* Contains extended information for property 'data'.
*/
_data?: Element;
/**
* Uri where the data can be found
*/
url?: uri;
/**
* Contains extended information for property 'url'.
*/
_url?: Element;
/**
* Number of bytes of content (if url provided)
*/
size?: unsignedInt;
/**
* Contains extended information for property 'size'.
*/
_size?: Element;
/**
* Hash of the data (sha-1, base64ed)
*/
hash?: base64Binary;
/**
* Contains extended information for property 'hash'.
*/
_hash?: Element;
/**
* Label to display in place of the data
*/
title?: string;
/**
* Contains extended information for property 'title'.
*/
_title?: Element;
/**
* Date attachment was first created
*/
creation?: dateTime;
/**
* Contains extended information for property 'creation'.
*/
_creation?: Element;
}
/**
* Details of a Technology mediated contact point (phone, fax, email, etc.)
*/
export interface ContactPoint extends Element {
/**
* phone | fax | email | pager | url | sms | other
*/
system?: code;
/**
* Contains extended information for property 'system'.
*/
_system?: Element;
/**
* The actual contact point details
*/
value?: string;
/**
* Contains extended information for property 'value'.
*/
_value?: Element;
/**
* home | work | temp | old | mobile - purpose of this contact point
*/
use?: code;
/**
* Contains extended information for property 'use'.
*/
_use?: Element;
/**
* Specify preferred order of use (1 = highest)
*/
rank?: positiveInt;
/**
* Contains extended information for property 'rank'.
*/
_rank?: Element;
/**
* Time period when the contact point was/is in use
*/
period?: Period;
}
/**
* A measured or measurable amount
*/
export interface Count extends Quantity {
}
/**
* A length - a value with a unit that is a physical distance
*/
export interface Distance extends Quantity {
}
/**
* A length of time
*/
export interface Duration extends Quantity {
}
/**
* Name of a human - parts and usage
*/
export interface HumanName extends Element {
/**
* usual | official | temp | nickname | anonymous | old | maiden
*/
use?: code;
/**
* Contains extended information for property 'use'.
*/
_use?: Element;
/**
* Text representation of the full name
*/
text?: string;
/**
* Contains extended information for property 'text'.
*/
_text?: Element;
/**
* Family name (often called 'Surname')
*/
family?: string;
/**
* Contains extended information for property 'family'.
*/
_family?: Element;
/**
* Given names (not always 'first'). Includes middle names
*/
given?: string[];
/**
* Contains extended information for property 'given'.
*/
_given?: Element[];
/**
* Parts that come before the name
*/
prefix?: string[];
/**
* Contains extended information for property 'prefix'.
*/
_prefix?: Element[];
/**
* Parts that come after the name
*/
suffix?: string[];
/**
* Contains extended information for property 'suffix'.
*/
_suffix?: Element[];
/**
* Time period when name was/is in use
*/
period?: Period;
}
/**
* An amount of economic utility in some recognized currency
*/
export interface Money extends Quantity {
}
/**
* A fixed quantity (no comparator)
*/
export interface SimpleQuantity extends Quantity {
}
/**
* Set of values bounded by low and high
*/
export interface Range extends Element {
/**
* Low limit
*/
low?: Quantity;
/**
* High limit
*/
high?: Quantity;
}
/**
* A ratio of two Quantity values - a numerator and a denominator
*/
export interface Ratio extends Element {
/**
* Numerator value
*/
numerator?: Quantity;
/**
* Denominator value
*/
denominator?: Quantity;
}
/**
* A series of measurements taken by a device
*/
export interface SampledData extends Element {
/**
* Zero value and units
*/
origin: Quantity;
/**
* Number of milliseconds between samples
*/
period: decimal;
/**
* Contains extended information for property 'period'.
*/
_period?: Element;
/**
* Multiply data by this before adding to origin
*/
factor?: decimal;
/**
* Contains extended information for property 'factor'.
*/
_factor?: Element;
/**
* Lower limit of detection
*/
lowerLimit?: decimal;
/**
* Contains extended information for property 'lowerLimit'.
*/
_lowerLimit?: Element;
/**
* Upper limit of detection
*/
upperLimit?: decimal;
/**
* Contains extended information for property 'upperLimit'.
*/
_upperLimit?: Element;
/**
* Number of sample points at each time point
*/
dimensions: positiveInt;
/**
* Contains extended information for property 'dimensions'.
*/
_dimensions?: Element;
/**
* Decimal values with spaces, or "E" | "U" | "L"
*/
data: string;
/**
* Contains extended information for property 'data'.
*/
_data?: Element;
}
/**
* A digital Signature - XML DigSig, JWT, Graphical image of signature, etc.
*/
export interface Signature extends Element {
/**
* Indication of the reason the entity signed the object(s)
*/
type: Coding[];
/**
* When the signature was created
*/
when: instant;
/**
* Contains extended information for property 'when'.
*/
_when?: Element;
/**
* Who signed
*/
whoUri?: uri;
/**
* Contains extended information for property 'whoUri'.
*/
_whoUri?: Element;
/**
* Who signed
*/
whoReference?: Reference;
/**
* The party represented
*/
onBehalfOfUri?: uri;
/**
* Contains extended information for property 'onBehalfOfUri'.
*/
_onBehalfOfUri?: Element;
/**
* The party represented
*/
onBehalfOfReference?: Reference;
/**
* The technical format of the signature
*/
contentType?: code;
/**
* Contains extended information for property 'contentType'.
*/
_contentType?: Element;
/**
* The actual signature content (XML DigSig. JWT, picture, etc.)
*/
blob?: base64Binary;
/**
* Contains extended information for property 'blob'.
*/
_blob?: Element;
}
/**
* When the event is to occur
*/
export interface TimingRepeat extends Element {
/**
* Length/Range of lengths, or (Start and/or end) limits
*/
boundsDuration?: Duration;
/**
* Length/Range of lengths, or (Start and/or end) limits
*/
boundsRange?: Range;
/**
* Length/Range of lengths, or (Start and/or end) limits
*/
boundsPeriod?: Period;
/**
* Number of times to repeat
*/
count?: integer;
/**
* Contains extended information for property 'count'.
*/
_count?: Element;
/**
* Maximum number of times to repeat
*/
countMax?: integer;
/**
* Contains extended information for property 'countMax'.
*/
_countMax?: Element;
/**
* How long when it happens
*/
duration?: decimal;
/**
* Contains extended information for property 'duration'.
*/
_duration?: Element;
/**
* How long when it happens (Max)
*/
durationMax?: decimal;
/**
* Contains extended information for property 'durationMax'.
*/
_durationMax?: Element;
/**
* s | min | h | d | wk | mo | a - unit of time (UCUM)
*/
durationUnit?: code;
/**
* Contains extended information for property 'durationUnit'.
*/
_durationUnit?: Element;
/**
* Event occurs frequency times per period
*/
frequency?: integer;
/**
* Contains extended information for property 'frequency'.
*/
_frequency?: Element;
/**
* Event occurs up to frequencyMax times per period
*/
frequencyMax?: integer;
/**
* Contains extended information for property 'frequencyMax'.
*/
_frequencyMax?: Element;
/**
* Event occurs frequency times per period
*/
period?: decimal;
/**
* Contains extended information for property 'period'.
*/
_period?: Element;
/**
* Upper limit of period (3-4 hours)
*/
periodMax?: decimal;
/**
* Contains extended information for property 'periodMax'.
*/
_periodMax?: Element;
/**
* s | min | h | d | wk | mo | a - unit of time (UCUM)
*/
periodUnit?: code;
/**
* Contains extended information for property 'periodUnit'.
*/
_periodUnit?: Element;
/**
* mon | tue | wed | thu | fri | sat | sun
*/
dayOfWeek?: code[];
/**
* Contains extended information for property 'dayOfWeek'.
*/
_dayOfWeek?: Element[];
/**
* Time of day for action
*/
timeOfDay?: time[];
/**
* Contains extended information for property 'timeOfDay'.
*/
_timeOfDay?: Element[];
/**
* Regular life events the event is tied to
*/
when?: code[];
/**
* Contains extended information for property 'when'.
*/
_when?: Element[];
/**
* Minutes from event (before or after)
*/
offset?: unsignedInt;
/**
* Contains extended information for property 'offset'.
*/
_offset?: Element;
}
/**
* A timing schedule that specifies an event that may occur multiple times
*/
export interface Timing extends Element {
/**
* When the event occurs
*/
event?: dateTime[];
/**
* Contains extended information for property 'event'.
*/
_event?: Element[];
/**
* When the event is to occur
*/
repeat?: TimingRepeat;
/**
* BID | TID | QID | AM | PM | QD | QOD | Q4H | Q6H +
*/
code?: CodeableConcept;
}
/**
* Optional Extensions Element
*/
export interface Extension extends Element {
/**
* identifies the meaning of the extension
*/
url: uri;
/**
* Contains extended information for property 'url'.
*/
_url?: Element;
/**
* Value of extension
*/
valueBase64Binary?: base64Binary;
/**
* Contains extended information for property 'valueBase64Binary'.
*/
_valueBase64Binary?: Element;
/**
* Value of extension
*/
valueBoolean?: boolean;
/**
* Contains extended information for property 'valueBoolean'.
*/
_valueBoolean?: Element;
/**
* Value of extension
*/
valueCode?: code;
/**
* Contains extended information for property 'valueCode'.
*/
_valueCode?: Element;
/**
* Value of extension
*/
valueDate?: date;
/**
* Contains extended information for property 'valueDate'.
*/
_valueDate?: Element;
/**
* Value of extension
*/
valueDateTime?: dateTime;
/**
* Contains extended information for property 'valueDateTime'.
*/
_valueDateTime?: Element;
/**
* Value of extension
*/
valueDecimal?: decimal;
/**
* Contains extended information for property 'valueDecimal'.
*/
_valueDecimal?: Element;
/**
* Value of extension
*/
valueId?: id;
/**
* Contains extended information for property 'valueId'.
*/
_valueId?: Element;
/**
* Value of extension
*/
valueInstant?: instant;
/**
* Contains extended information for property 'valueInstant'.
*/
_valueInstant?: Element;
/**
* Value of extension
*/
valueInteger?: integer;
/**
* Contains extended information for property 'valueInteger'.
*/
_valueInteger?: Element;
/**
* Value of extension
*/
valueMarkdown?: markdown;
/**
* Contains extended information for property 'valueMarkdown'.
*/
_valueMarkdown?: Element;
/**
* Value of extension
*/
valueOid?: oid;
/**
* Contains extended information for property 'valueOid'.
*/
_valueOid?: Element;
/**
* Value of extension
*/
valuePositiveInt?: positiveInt;
/**
* Contains extended information for property 'valuePositiveInt'.
*/
_valuePositiveInt?: Element;
/**
* Value of extension
*/
valueString?: string;
/**
* Contains extended information for property 'valueString'.
*/
_valueString?: Element;
/**
* Value of extension
*/
valueTime?: time;
/**
* Contains extended information for property 'valueTime'.
*/
_valueTime?: Element;
/**
* Value of extension
*/
valueUnsignedInt?: unsignedInt;
/**
* Contains extended information for property 'valueUnsignedInt'.
*/
_valueUnsignedInt?: Element;
/**
* Value of extension
*/
valueUri?: uri;
/**
* Contains extended information for property 'valueUri'.
*/
_valueUri?: Element;
/**
* Value of extension
*/
valueAddress?: Address;