-
Notifications
You must be signed in to change notification settings - Fork 11
/
schema.graphql
2250 lines (1953 loc) · 47.5 KB
/
schema.graphql
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
# A postal address
type Address {
id: ID
extension: [Extension]
use: String
_use: Element
type: String
_type: Element
text: String
_text: Element
line: [String]
_line: Element
city: String
_city: Element
district: String
_district: Element
state: String
_state: Element
postalCode: String
_postalCode: Element
country: String
_country: Element
period: Period
}
# A postal address
input AddressInput {
id: ID
extension: [ExtensionInput]
use: String
_use: ElementInput
type: String
_type: ElementInput
text: String
_text: ElementInput
line: [String]
_line: ElementInput
city: String
_city: ElementInput
district: String
_district: ElementInput
state: String
_state: ElementInput
postalCode: String
_postalCode: ElementInput
country: String
_country: ElementInput
period: PeriodInput
}
# Text node with attribution
type Annotation {
id: ID
extension: [Extension]
# Individual responsible for the annotation
authorReference: Reference
# Individual responsible for the annotation
authorString: String
time: DateTime
_time: Element
text: String!
_text: Element
}
# Text node with attribution
input AnnotationInput {
id: ID
extension: [ExtensionInput]
# Individual responsible for the annotation
authorReference: ReferenceInput
# Individual responsible for the annotation
authorString: String
time: DateTime
_time: ElementInput
text: String!
_text: ElementInput
}
# Content in a format defined elsewhere
type Attachment {
id: ID
extension: [Extension]
contentType: String
_contentType: Element
language: String
_language: Element
data: String
_data: Element
url: String
_url: Element
size: unsignedInt
_size: Element
hash: String
_hash: Element
title: String
_title: Element
creation: DateTime
_creation: Element
}
# Content in a format defined elsewhere
input AttachmentInput {
id: ID
extension: [ExtensionInput]
contentType: String
_contentType: ElementInput
language: String
_language: ElementInput
data: String
_data: ElementInput
url: String
_url: ElementInput
size: unsignedInt
_size: ElementInput
hash: String
_hash: ElementInput
title: String
_title: ElementInput
creation: DateTime
_creation: ElementInput
}
# Contains a collection of resources
type Bundle {
resourceType: String
id: ID
meta: Meta
implicitRules: String
_implicitRules: Element
language: String
_language: Element
type: String!
_type: Element
total: unsignedInt
_total: Element
# Links related to this Bundle
link: [Bundlelink]
# Entry in the bundle - will have a resource, or information
entry: [Bundleentry]
signature: Signature
}
# Entry in the bundle - will have a resource, or information
type Bundleentry {
id: ID
extension: [Extension]
modifierExtension: [Extension]
# Links related to this entry
link: [Bundlelink]
fullUrl: String
_fullUrl: Element
resource: Resource
# Search related information
search: Bundleentrysearch
# Transaction Related Information
request: Bundleentryrequest
# Transaction Related Information
response: Bundleentryresponse
}
# Entry in the bundle - will have a resource, or information
input BundleentryInput {
id: ID
extension: [ExtensionInput]
modifierExtension: [ExtensionInput]
# Links related to this entry
link: [BundlelinkInput]
fullUrl: String
_fullUrl: ElementInput
resource: ResourceInput
# Search related information
search: BundleentrysearchInput
# Transaction Related Information
request: BundleentryrequestInput
# Transaction Related Information
response: BundleentryresponseInput
}
# Transaction Related Information
type Bundleentryrequest {
id: ID
extension: [Extension]
modifierExtension: [Extension]
method: String!
_method: Element
url: String!
_url: Element
ifNoneMatch: String
_ifNoneMatch: Element
ifModifiedSince: instant
_ifModifiedSince: Element
ifMatch: String
_ifMatch: Element
ifNoneExist: String
_ifNoneExist: Element
}
# Transaction Related Information
input BundleentryrequestInput {
id: ID
extension: [ExtensionInput]
modifierExtension: [ExtensionInput]
method: String!
_method: ElementInput
url: String!
_url: ElementInput
ifNoneMatch: String
_ifNoneMatch: ElementInput
ifModifiedSince: instant
_ifModifiedSince: ElementInput
ifMatch: String
_ifMatch: ElementInput
ifNoneExist: String
_ifNoneExist: ElementInput
}
# Transaction Related Information
type Bundleentryresponse {
id: ID
extension: [Extension]
modifierExtension: [Extension]
status: String!
_status: Element
location: String
_location: Element
etag: String
_etag: Element
lastModified: instant
_lastModified: Element
}
# Transaction Related Information
input BundleentryresponseInput {
id: ID
extension: [ExtensionInput]
modifierExtension: [ExtensionInput]
status: String!
_status: ElementInput
location: String
_location: ElementInput
etag: String
_etag: ElementInput
lastModified: instant
_lastModified: ElementInput
}
# Search related information
type Bundleentrysearch {
id: ID
extension: [Extension]
modifierExtension: [Extension]
mode: String
_mode: Element
score: Float
_score: Element
}
# Search related information
input BundleentrysearchInput {
id: ID
extension: [ExtensionInput]
modifierExtension: [ExtensionInput]
mode: String
_mode: ElementInput
score: Float
_score: ElementInput
}
# Contains a collection of resources
input BundleInput {
resourceType: String
id: ID
meta: MetaInput
implicitRules: String
_implicitRules: ElementInput
language: String
_language: ElementInput
type: String!
_type: ElementInput
total: unsignedInt
_total: ElementInput
# Links related to this Bundle
link: [BundlelinkInput]
# Entry in the bundle - will have a resource, or information
entry: [BundleentryInput]
signature: SignatureInput
}
# Links related to this Bundle
type Bundlelink {
id: ID
extension: [Extension]
modifierExtension: [Extension]
relation: String!
_relation: Element
url: String!
_url: Element
}
# Links related to this Bundle
input BundlelinkInput {
id: ID
extension: [ExtensionInput]
modifierExtension: [ExtensionInput]
relation: String!
_relation: ElementInput
url: String!
_url: ElementInput
}
type bundleMutation {
remove(_id: ID!): Bundle
removeAll: Boolean
upsert(data: BundleInput!): Bundle
}
type bundleQuery {
find: [Bundle]
findOne(id: ID!): Bundle
}
# Concept - reference to a terminology or just text
type CodeableConcept {
id: ID
extension: [Extension]
coding: [Coding]
text: String
_text: Element
}
# Concept - reference to a terminology or just text
input CodeableConceptInput {
id: ID
extension: [ExtensionInput]
coding: [CodingInput]
text: String
_text: ElementInput
}
# A reference to a code defined by a terminology system
type Coding {
id: ID
extension: [Extension]
system: String
_system: Element
version: String
_version: Element
code: String
_code: Element
display: String
_display: Element
userSelected: Boolean
_userSelected: Element
}
# A reference to a code defined by a terminology system
input CodingInput {
id: ID
extension: [ExtensionInput]
system: String
_system: ElementInput
version: String
_version: ElementInput
code: String
_code: ElementInput
display: String
_display: ElementInput
userSelected: Boolean
_userSelected: ElementInput
}
# Details of a Technology mediated contact point (phone, fax, email, etc.)
type ContactPoint {
id: ID
extension: [Extension]
system: String
_system: Element
value: String
_value: Element
use: String
_use: Element
rank: positiveInt
_rank: Element
period: Period
}
# Details of a Technology mediated contact point (phone, fax, email, etc.)
input ContactPointInput {
id: ID
extension: [ExtensionInput]
system: String
_system: ElementInput
value: String
_value: ElementInput
use: String
_use: ElementInput
rank: positiveInt
_rank: ElementInput
period: PeriodInput
}
# A date, or partial date (e.g. just year or year + month) as used in human
# communication. There is no time zone. Dates SHALL be valid dates
scalar date
# The DateTime scalar type represents date time strings complying to ISO-8601.
scalar DateTime
# Base for all elements
type Element {
id: ID
extension: [Extension]
}
# Base for all elements
input ElementInput {
id: ID
extension: [ExtensionInput]
}
# An interaction during which services are provided to the patient
type Encounter {
resourceType: String
id: ID
meta: Meta
implicitRules: String
_implicitRules: Element
language: String
_language: Element
text: Narrative
contained: [Resource]
extension: [Extension]
modifierExtension: [Extension]
identifier: [Identifier]
status: String!
_status: Element
# List of past encounter statuses
statusHistory: [EncounterstatusHistory]
class: String
_class: Element
type: [CodeableConcept]
priority: CodeableConcept
patient: Reference
episodeOfCare: [Reference]
incomingReferral: [Reference]
# List of participants involved in the encounter
participant: [Encounterparticipant]
appointment: Reference
period: Period
length: Quantity
reason: [CodeableConcept]
indication: [Reference]
# Details about the admission to a healthcare service
hospitalization: Encounterhospitalization
# List of locations where the patient has been
location: [Encounterlocation]
serviceProvider: Reference
partOf: Reference
}
# Details about the admission to a healthcare service
type Encounterhospitalization {
id: ID
extension: [Extension]
modifierExtension: [Extension]
preAdmissionIdentifier: Identifier
origin: Reference
admitSource: CodeableConcept
admittingDiagnosis: [Reference]
reAdmission: CodeableConcept
dietPreference: [CodeableConcept]
specialCourtesy: [CodeableConcept]
specialArrangement: [CodeableConcept]
destination: Reference
dischargeDisposition: CodeableConcept
dischargeDiagnosis: [Reference]
}
# Details about the admission to a healthcare service
input EncounterhospitalizationInput {
id: ID
extension: [ExtensionInput]
modifierExtension: [ExtensionInput]
preAdmissionIdentifier: IdentifierInput
origin: ReferenceInput
admitSource: CodeableConceptInput
admittingDiagnosis: [ReferenceInput]
reAdmission: CodeableConceptInput
dietPreference: [CodeableConceptInput]
specialCourtesy: [CodeableConceptInput]
specialArrangement: [CodeableConceptInput]
destination: ReferenceInput
dischargeDisposition: CodeableConceptInput
dischargeDiagnosis: [ReferenceInput]
}
# An interaction during which services are provided to the patient
input EncounterInput {
resourceType: String
id: ID
meta: MetaInput
implicitRules: String
_implicitRules: ElementInput
language: String
_language: ElementInput
text: NarrativeInput
contained: [ResourceInput]
extension: [ExtensionInput]
modifierExtension: [ExtensionInput]
identifier: [IdentifierInput]
status: String!
_status: ElementInput
# List of past encounter statuses
statusHistory: [EncounterstatusHistoryInput]
class: String
_class: ElementInput
type: [CodeableConceptInput]
priority: CodeableConceptInput
patient: ReferenceInput
episodeOfCare: [ReferenceInput]
incomingReferral: [ReferenceInput]
# List of participants involved in the encounter
participant: [EncounterparticipantInput]
appointment: ReferenceInput
period: PeriodInput
length: QuantityInput
reason: [CodeableConceptInput]
indication: [ReferenceInput]
# Details about the admission to a healthcare service
hospitalization: EncounterhospitalizationInput
# List of locations where the patient has been
location: [EncounterlocationInput]
serviceProvider: ReferenceInput
partOf: ReferenceInput
}
# List of locations where the patient has been
type Encounterlocation {
id: ID
extension: [Extension]
modifierExtension: [Extension]
location: Reference!
status: String
_status: Element
period: Period
}
# List of locations where the patient has been
input EncounterlocationInput {
id: ID
extension: [ExtensionInput]
modifierExtension: [ExtensionInput]
location: ReferenceInput!
status: String
_status: ElementInput
period: PeriodInput
}
type encounterMutation {
remove(_id: ID!): Encounter
removeAll: Boolean
upsert(data: EncounterInput!): Encounter
}
# List of participants involved in the encounter
type Encounterparticipant {
id: ID
extension: [Extension]
modifierExtension: [Extension]
type: [CodeableConcept]
period: Period
individual: Reference
}
# List of participants involved in the encounter
input EncounterparticipantInput {
id: ID
extension: [ExtensionInput]
modifierExtension: [ExtensionInput]
type: [CodeableConceptInput]
period: PeriodInput
individual: ReferenceInput
}
type encounterQuery {
find: [Encounter]
findOne(id: ID!): Encounter
}
# List of past encounter statuses
type EncounterstatusHistory {
id: ID
extension: [Extension]
modifierExtension: [Extension]
status: String!
_status: Element
period: Period!
}
# List of past encounter statuses
input EncounterstatusHistoryInput {
id: ID
extension: [ExtensionInput]
modifierExtension: [ExtensionInput]
status: String!
_status: ElementInput
period: PeriodInput!
}
# An association of a Patient with an Organization and Healthcare Provider(s) for
# a period of time that the Organization assumes some level of responsibility
type EpisodeOfCare {
resourceType: String
id: ID
meta: Meta
implicitRules: String
_implicitRules: Element
language: String
_language: Element
text: Narrative
contained: [Resource]
extension: [Extension]
modifierExtension: [Extension]
identifier: [Identifier]
status: String!
_status: Element
# Past list of status codes
statusHistory: [EpisodeOfCarestatusHistory]
type: [CodeableConcept]
condition: [Reference]
patient: Reference!
managingOrganization: Reference
period: Period
referralRequest: [Reference]
careManager: Reference
# Other practitioners facilitating this episode of care
careTeam: [EpisodeOfCarecareTeam]
}
# Other practitioners facilitating this episode of care
type EpisodeOfCarecareTeam {
id: ID
extension: [Extension]
modifierExtension: [Extension]
role: [CodeableConcept]
period: Period
member: Reference
}
# Other practitioners facilitating this episode of care
input EpisodeOfCarecareTeamInput {
id: ID
extension: [ExtensionInput]
modifierExtension: [ExtensionInput]
role: [CodeableConceptInput]
period: PeriodInput
member: ReferenceInput
}
# An association of a Patient with an Organization and Healthcare Provider(s) for
# a period of time that the Organization assumes some level of responsibility
input EpisodeOfCareInput {
resourceType: String
id: ID
meta: MetaInput
implicitRules: String
_implicitRules: ElementInput
language: String
_language: ElementInput
text: NarrativeInput
contained: [ResourceInput]
extension: [ExtensionInput]
modifierExtension: [ExtensionInput]
identifier: [IdentifierInput]
status: String!
_status: ElementInput
# Past list of status codes
statusHistory: [EpisodeOfCarestatusHistoryInput]
type: [CodeableConceptInput]
condition: [ReferenceInput]
patient: ReferenceInput!
managingOrganization: ReferenceInput
period: PeriodInput
referralRequest: [ReferenceInput]
careManager: ReferenceInput
# Other practitioners facilitating this episode of care
careTeam: [EpisodeOfCarecareTeamInput]
}
type episodeOfCareMutation {
remove(_id: ID!): EpisodeOfCare
removeAll: Boolean
upsert(data: EpisodeOfCareInput!): EpisodeOfCare
}
type episodeOfCareQuery {
find: [EpisodeOfCare]
findOne(id: ID!): EpisodeOfCare
}
# Past list of status codes
type EpisodeOfCarestatusHistory {
id: ID
extension: [Extension]
modifierExtension: [Extension]
status: String!
_status: Element
period: Period!
}
# Past list of status codes
input EpisodeOfCarestatusHistoryInput {
id: ID
extension: [ExtensionInput]
modifierExtension: [ExtensionInput]
status: String!
_status: ElementInput
period: PeriodInput!
}
type Extension {
id: ID
extension: [Extension]
url: String!
_url: Element
# Value of extension
valueBoolean: Boolean
# Value of extension
valueInteger: Int
# Value of extension
valueDecimal: Float
# Value of extension
valueBase64Binary: String
# Value of extension
valueInstant: instant
# Value of extension
valueString: String
# Value of extension
valueUri: String
# Value of extension
valueDate: date
# Value of extension
valueDateTime: DateTime
# Value of extension
valueTime: String
# Value of extension
valueCode: String
# Value of extension
valueOid: String
# Value of extension
valueId: ID
# Value of extension
valueUnsignedInt: unsignedInt
# Value of extension
valuePositiveInt: positiveInt
# Value of extension
valueMarkdown: String
# Value of extension
valueAnnotation: Annotation
# Value of extension
valueAttachment: Attachment
# Value of extension
valueIdentifier: Identifier
# Value of extension
valueCodeableConcept: CodeableConcept
# Value of extension
valueCoding: Coding
# Value of extension
valueQuantity: Quantity
# Value of extension
valueRange: Range
# Value of extension
valuePeriod: Period
# Value of extension
valueRatio: Ratio
# Value of extension
valueSampledData: SampledData
# Value of extension
valueSignature: Signature
# Value of extension
valueHumanName: HumanName
# Value of extension
valueAddress: Address
# Value of extension
valueContactPoint: ContactPoint
# Value of extension
valueTiming: Timing
# Value of extension
valueReference: Reference
# Value of extension
valueMeta: Meta
}
input ExtensionInput {
id: ID
extension: [ExtensionInput]
url: String!
_url: ElementInput
# Value of extension
valueBoolean: Boolean
# Value of extension
valueInteger: Int
# Value of extension
valueDecimal: Float
# Value of extension
valueBase64Binary: String
# Value of extension
valueInstant: instant
# Value of extension
valueString: String
# Value of extension
valueUri: String
# Value of extension
valueDate: date
# Value of extension
valueDateTime: DateTime
# Value of extension
valueTime: String
# Value of extension
valueCode: String
# Value of extension
valueOid: String
# Value of extension
valueId: ID
# Value of extension
valueUnsignedInt: unsignedInt
# Value of extension
valuePositiveInt: positiveInt
# Value of extension
valueMarkdown: String
# Value of extension
valueAnnotation: AnnotationInput
# Value of extension
valueAttachment: AttachmentInput
# Value of extension
valueIdentifier: IdentifierInput
# Value of extension
valueCodeableConcept: CodeableConceptInput
# Value of extension
valueCoding: CodingInput
# Value of extension
valueQuantity: QuantityInput
# Value of extension
valueRange: RangeInput
# Value of extension
valuePeriod: PeriodInput
# Value of extension
valueRatio: RatioInput
# Value of extension
valueSampledData: SampledDataInput
# Value of extension
valueSignature: SignatureInput
# Value of extension
valueHumanName: HumanNameInput
# Value of extension
valueAddress: AddressInput
# Value of extension
valueContactPoint: ContactPointInput
# Value of extension
valueTiming: TimingInput
# Value of extension
valueReference: ReferenceInput
# Value of extension
valueMeta: MetaInput
}
# Name of a human - parts and usage
type HumanName {
id: ID
extension: [Extension]
use: String
_use: Element
text: String
_text: Element
family: [String]
_family: Element
given: [String]
_given: Element
prefix: [String]
_prefix: Element
suffix: [String]
_suffix: Element
period: Period
}
# Name of a human - parts and usage
input HumanNameInput {
id: ID
extension: [ExtensionInput]
use: String
_use: ElementInput
text: String
_text: ElementInput
family: [String]
_family: ElementInput
given: [String]
_given: ElementInput
prefix: [String]
_prefix: ElementInput
suffix: [String]
_suffix: ElementInput
period: PeriodInput
}
# An identifier intended for computation
type Identifier {