@onivoro/isomorphic-fhir 24.28.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.
@@ -0,0 +1,715 @@
1
+ export interface IFhirBundle {
2
+ resourceType: 'Bundle';
3
+ id?: string;
4
+ type: 'document' | 'message' | 'transaction' | 'transaction-response' | 'batch' | 'batch-response' | 'history' | 'searchset' | 'collection';
5
+ timestamp?: string;
6
+ total?: number;
7
+ entry?: IFhirBundleEntry[];
8
+ }
9
+ export interface IFhirBundleEntry {
10
+ fullUrl?: string;
11
+ resource?: IFhirResource;
12
+ search?: {
13
+ mode?: 'match' | 'include' | 'outcome';
14
+ score?: number;
15
+ };
16
+ }
17
+ export type IFhirResource = IFhirPatient | IFhirPractitioner | IFhirOrganization | IFhirEncounter | IFhirCondition | IFhirObservation | IFhirMedicationRequest | IFhirProcedure | IFhirImmunization | IFhirAllergyIntolerance | IFhirDiagnosticReport | IFhirLocation | IFhirAppointment | IFhirCareTeam | IFhirCarePlan;
18
+ export interface IFhirPatient {
19
+ resourceType: 'Patient';
20
+ id?: string;
21
+ identifier?: IFhirIdentifier[];
22
+ active?: boolean;
23
+ name?: IFhirHumanName[];
24
+ telecom?: IFhirContactPoint[];
25
+ gender?: 'male' | 'female' | 'other' | 'unknown';
26
+ birthDate?: string;
27
+ deceased?: boolean | string;
28
+ address?: IFhirAddress[];
29
+ maritalStatus?: IFhirCodeableConcept;
30
+ multipleBirth?: boolean | number;
31
+ photo?: IFhirAttachment[];
32
+ contact?: IFhirPatientContact[];
33
+ communication?: IFhirPatientCommunication[];
34
+ generalPractitioner?: IFhirReference[];
35
+ managingOrganization?: IFhirReference;
36
+ }
37
+ export interface IFhirPractitioner {
38
+ resourceType: 'Practitioner';
39
+ id?: string;
40
+ identifier?: IFhirIdentifier[];
41
+ active?: boolean;
42
+ name?: IFhirHumanName[];
43
+ telecom?: IFhirContactPoint[];
44
+ address?: IFhirAddress[];
45
+ gender?: 'male' | 'female' | 'other' | 'unknown';
46
+ birthDate?: string;
47
+ photo?: IFhirAttachment[];
48
+ qualification?: IFhirPractitionerQualification[];
49
+ communication?: IFhirCodeableConcept[];
50
+ }
51
+ export interface IFhirOrganization {
52
+ resourceType: 'Organization';
53
+ id?: string;
54
+ identifier?: IFhirIdentifier[];
55
+ active?: boolean;
56
+ type?: IFhirCodeableConcept[];
57
+ name?: string;
58
+ alias?: string[];
59
+ telecom?: IFhirContactPoint[];
60
+ address?: IFhirAddress[];
61
+ partOf?: IFhirReference;
62
+ contact?: IFhirOrganizationContact[];
63
+ endpoint?: IFhirReference[];
64
+ }
65
+ export interface IFhirEncounter {
66
+ resourceType: 'Encounter';
67
+ id?: string;
68
+ identifier?: IFhirIdentifier[];
69
+ status: 'planned' | 'arrived' | 'triaged' | 'in-progress' | 'onleave' | 'finished' | 'cancelled' | 'entered-in-error' | 'unknown';
70
+ statusHistory?: IFhirEncounterStatusHistory[];
71
+ class: IFhirCoding;
72
+ classHistory?: IFhirEncounterClassHistory[];
73
+ type?: IFhirCodeableConcept[];
74
+ serviceType?: IFhirCodeableConcept;
75
+ priority?: IFhirCodeableConcept;
76
+ subject?: IFhirReference;
77
+ episodeOfCare?: IFhirReference[];
78
+ basedOn?: IFhirReference[];
79
+ participant?: IFhirEncounterParticipant[];
80
+ appointment?: IFhirReference[];
81
+ period?: IFhirPeriod;
82
+ length?: IFhirDuration;
83
+ reasonCode?: IFhirCodeableConcept[];
84
+ reasonReference?: IFhirReference[];
85
+ diagnosis?: IFhirEncounterDiagnosis[];
86
+ account?: IFhirReference[];
87
+ hospitalization?: IFhirEncounterHospitalization;
88
+ location?: IFhirEncounterLocation[];
89
+ serviceProvider?: IFhirReference;
90
+ partOf?: IFhirReference;
91
+ }
92
+ export interface IFhirCondition {
93
+ resourceType: 'Condition';
94
+ id?: string;
95
+ identifier?: IFhirIdentifier[];
96
+ clinicalStatus?: IFhirCodeableConcept;
97
+ verificationStatus?: IFhirCodeableConcept;
98
+ category?: IFhirCodeableConcept[];
99
+ severity?: IFhirCodeableConcept;
100
+ code?: IFhirCodeableConcept;
101
+ bodySite?: IFhirCodeableConcept[];
102
+ subject: IFhirReference;
103
+ encounter?: IFhirReference;
104
+ onset?: string | IFhirAge | IFhirPeriod | IFhirRange;
105
+ abatement?: string | IFhirAge | IFhirPeriod | IFhirRange;
106
+ recordedDate?: string;
107
+ recorder?: IFhirReference;
108
+ asserter?: IFhirReference;
109
+ stage?: IFhirConditionStage[];
110
+ evidence?: IFhirConditionEvidence[];
111
+ note?: IFhirAnnotation[];
112
+ }
113
+ export interface IFhirObservation {
114
+ resourceType: 'Observation';
115
+ id?: string;
116
+ identifier?: IFhirIdentifier[];
117
+ basedOn?: IFhirReference[];
118
+ partOf?: IFhirReference[];
119
+ status: 'registered' | 'preliminary' | 'final' | 'amended' | 'corrected' | 'cancelled' | 'entered-in-error' | 'unknown';
120
+ category?: IFhirCodeableConcept[];
121
+ code: IFhirCodeableConcept;
122
+ subject?: IFhirReference;
123
+ focus?: IFhirReference[];
124
+ encounter?: IFhirReference;
125
+ effective?: string | IFhirPeriod;
126
+ issued?: string;
127
+ performer?: IFhirReference[];
128
+ value?: any;
129
+ dataAbsentReason?: IFhirCodeableConcept;
130
+ interpretation?: IFhirCodeableConcept[];
131
+ note?: IFhirAnnotation[];
132
+ bodySite?: IFhirCodeableConcept;
133
+ method?: IFhirCodeableConcept;
134
+ specimen?: IFhirReference;
135
+ device?: IFhirReference;
136
+ referenceRange?: IFhirObservationReferenceRange[];
137
+ hasMember?: IFhirReference[];
138
+ derivedFrom?: IFhirReference[];
139
+ component?: IFhirObservationComponent[];
140
+ }
141
+ export interface IFhirMedicationRequest {
142
+ resourceType: 'MedicationRequest';
143
+ id?: string;
144
+ identifier?: IFhirIdentifier[];
145
+ status: 'active' | 'on-hold' | 'cancelled' | 'completed' | 'entered-in-error' | 'stopped' | 'draft' | 'unknown';
146
+ statusReason?: IFhirCodeableConcept;
147
+ intent: 'proposal' | 'plan' | 'order' | 'original-order' | 'instance-order' | 'option';
148
+ category?: IFhirCodeableConcept[];
149
+ priority?: 'routine' | 'urgent' | 'asap' | 'stat';
150
+ doNotPerform?: boolean;
151
+ reported?: boolean | IFhirReference;
152
+ medication?: IFhirCodeableConcept | IFhirReference;
153
+ subject: IFhirReference;
154
+ encounter?: IFhirReference;
155
+ supportingInformation?: IFhirReference[];
156
+ authoredOn?: string;
157
+ requester?: IFhirReference;
158
+ performer?: IFhirReference;
159
+ performerType?: IFhirCodeableConcept;
160
+ recorder?: IFhirReference;
161
+ reasonCode?: IFhirCodeableConcept[];
162
+ reasonReference?: IFhirReference[];
163
+ instantiatesCanonical?: string[];
164
+ instantiatesUri?: string[];
165
+ basedOn?: IFhirReference[];
166
+ groupIdentifier?: IFhirIdentifier;
167
+ courseOfTherapyType?: IFhirCodeableConcept;
168
+ insurance?: IFhirReference[];
169
+ note?: IFhirAnnotation[];
170
+ dosageInstruction?: IFhirDosage[];
171
+ dispenseRequest?: IFhirMedicationRequestDispenseRequest;
172
+ substitution?: IFhirMedicationRequestSubstitution;
173
+ priorPrescription?: IFhirReference;
174
+ detectedIssue?: IFhirReference[];
175
+ eventHistory?: IFhirReference[];
176
+ }
177
+ export interface IFhirProcedure {
178
+ resourceType: 'Procedure';
179
+ id?: string;
180
+ identifier?: IFhirIdentifier[];
181
+ instantiatesCanonical?: string[];
182
+ instantiatesUri?: string[];
183
+ basedOn?: IFhirReference[];
184
+ partOf?: IFhirReference[];
185
+ status: 'preparation' | 'in-progress' | 'not-done' | 'on-hold' | 'stopped' | 'completed' | 'entered-in-error' | 'unknown';
186
+ statusReason?: IFhirCodeableConcept;
187
+ category?: IFhirCodeableConcept;
188
+ code?: IFhirCodeableConcept;
189
+ subject: IFhirReference;
190
+ encounter?: IFhirReference;
191
+ performed?: string | IFhirPeriod | IFhirAge | IFhirRange;
192
+ recorder?: IFhirReference;
193
+ asserter?: IFhirReference;
194
+ performer?: IFhirProcedurePerformer[];
195
+ location?: IFhirReference;
196
+ reasonCode?: IFhirCodeableConcept[];
197
+ reasonReference?: IFhirReference[];
198
+ bodySite?: IFhirCodeableConcept[];
199
+ outcome?: IFhirCodeableConcept;
200
+ report?: IFhirReference[];
201
+ complication?: IFhirCodeableConcept[];
202
+ complicationDetail?: IFhirReference[];
203
+ followUp?: IFhirCodeableConcept[];
204
+ note?: IFhirAnnotation[];
205
+ focalDevice?: IFhirProcedureFocalDevice[];
206
+ usedReference?: IFhirReference[];
207
+ usedCode?: IFhirCodeableConcept[];
208
+ }
209
+ export interface IFhirImmunization {
210
+ resourceType: 'Immunization';
211
+ id?: string;
212
+ identifier?: IFhirIdentifier[];
213
+ status: 'completed' | 'entered-in-error' | 'not-done';
214
+ statusReason?: IFhirCodeableConcept;
215
+ vaccineCode: IFhirCodeableConcept;
216
+ patient: IFhirReference;
217
+ encounter?: IFhirReference;
218
+ occurrence?: string | IFhirDateTime;
219
+ recorded?: string;
220
+ primarySource?: boolean;
221
+ reportOrigin?: IFhirCodeableConcept;
222
+ location?: IFhirReference;
223
+ manufacturer?: IFhirReference;
224
+ lotNumber?: string;
225
+ expirationDate?: string;
226
+ site?: IFhirCodeableConcept;
227
+ route?: IFhirCodeableConcept;
228
+ doseQuantity?: IFhirQuantity;
229
+ performer?: IFhirImmunizationPerformer[];
230
+ note?: IFhirAnnotation[];
231
+ reasonCode?: IFhirCodeableConcept[];
232
+ reasonReference?: IFhirReference[];
233
+ isSubpotent?: boolean;
234
+ subpotentReason?: IFhirCodeableConcept[];
235
+ education?: IFhirImmunizationEducation[];
236
+ programEligibility?: IFhirCodeableConcept[];
237
+ fundingSource?: IFhirCodeableConcept;
238
+ reaction?: IFhirImmunizationReaction[];
239
+ protocolApplied?: IFhirImmunizationProtocolApplied[];
240
+ }
241
+ export interface IFhirAllergyIntolerance {
242
+ resourceType: 'AllergyIntolerance';
243
+ id?: string;
244
+ identifier?: IFhirIdentifier[];
245
+ clinicalStatus?: IFhirCodeableConcept;
246
+ verificationStatus?: IFhirCodeableConcept;
247
+ type?: 'allergy' | 'intolerance';
248
+ category?: ('food' | 'medication' | 'environment' | 'biologic')[];
249
+ criticality?: 'low' | 'high' | 'unable-to-assess';
250
+ code?: IFhirCodeableConcept;
251
+ patient: IFhirReference;
252
+ encounter?: IFhirReference;
253
+ onset?: string | IFhirAge | IFhirPeriod | IFhirRange;
254
+ recordedDate?: string;
255
+ recorder?: IFhirReference;
256
+ asserter?: IFhirReference;
257
+ lastOccurrence?: string;
258
+ note?: IFhirAnnotation[];
259
+ reaction?: IFhirAllergyIntoleranceReaction[];
260
+ }
261
+ export interface IFhirDiagnosticReport {
262
+ resourceType: 'DiagnosticReport';
263
+ id?: string;
264
+ identifier?: IFhirIdentifier[];
265
+ basedOn?: IFhirReference[];
266
+ status: 'registered' | 'partial' | 'preliminary' | 'final' | 'amended' | 'corrected' | 'appended' | 'cancelled' | 'entered-in-error' | 'unknown';
267
+ category?: IFhirCodeableConcept[];
268
+ code: IFhirCodeableConcept;
269
+ subject?: IFhirReference;
270
+ encounter?: IFhirReference;
271
+ effective?: string | IFhirPeriod;
272
+ issued?: string;
273
+ performer?: IFhirReference[];
274
+ resultsInterpreter?: IFhirReference[];
275
+ specimen?: IFhirReference[];
276
+ result?: IFhirReference[];
277
+ imagingStudy?: IFhirReference[];
278
+ media?: IFhirDiagnosticReportMedia[];
279
+ conclusion?: string;
280
+ conclusionCode?: IFhirCodeableConcept[];
281
+ presentedForm?: IFhirAttachment[];
282
+ }
283
+ export interface IFhirLocation {
284
+ resourceType: 'Location';
285
+ id?: string;
286
+ identifier?: IFhirIdentifier[];
287
+ status?: 'active' | 'suspended' | 'inactive';
288
+ operationalStatus?: IFhirCoding;
289
+ name?: string;
290
+ alias?: string[];
291
+ description?: string;
292
+ mode?: 'instance' | 'kind';
293
+ type?: IFhirCodeableConcept[];
294
+ telecom?: IFhirContactPoint[];
295
+ address?: IFhirAddress;
296
+ physicalType?: IFhirCodeableConcept;
297
+ position?: IFhirLocationPosition;
298
+ managingOrganization?: IFhirReference;
299
+ partOf?: IFhirReference;
300
+ hoursOfOperation?: IFhirLocationHoursOfOperation[];
301
+ availabilityExceptions?: string;
302
+ endpoint?: IFhirReference[];
303
+ }
304
+ export interface IFhirAppointment {
305
+ resourceType: 'Appointment';
306
+ id?: string;
307
+ identifier?: IFhirIdentifier[];
308
+ status: 'proposed' | 'pending' | 'booked' | 'arrived' | 'fulfilled' | 'cancelled' | 'noshow' | 'entered-in-error' | 'checked-in' | 'waitlist';
309
+ cancelationReason?: IFhirCodeableConcept;
310
+ serviceCategory?: IFhirCodeableConcept[];
311
+ serviceType?: IFhirCodeableConcept[];
312
+ specialty?: IFhirCodeableConcept[];
313
+ appointmentType?: IFhirCodeableConcept;
314
+ reasonCode?: IFhirCodeableConcept[];
315
+ reasonReference?: IFhirReference[];
316
+ priority?: number;
317
+ description?: string;
318
+ supportingInformation?: IFhirReference[];
319
+ start?: string;
320
+ end?: string;
321
+ minutesDuration?: number;
322
+ slot?: IFhirReference[];
323
+ created?: string;
324
+ comment?: string;
325
+ patientInstruction?: string;
326
+ basedOn?: IFhirReference[];
327
+ participant: IFhirAppointmentParticipant[];
328
+ requestedPeriod?: IFhirPeriod[];
329
+ }
330
+ export interface IFhirCareTeam {
331
+ resourceType: 'CareTeam';
332
+ id?: string;
333
+ identifier?: IFhirIdentifier[];
334
+ status?: 'proposed' | 'active' | 'suspended' | 'inactive' | 'entered-in-error';
335
+ category?: IFhirCodeableConcept[];
336
+ name?: string;
337
+ subject?: IFhirReference;
338
+ encounter?: IFhirReference;
339
+ period?: IFhirPeriod;
340
+ participant?: IFhirCareTeamParticipant[];
341
+ reasonCode?: IFhirCodeableConcept[];
342
+ reasonReference?: IFhirReference[];
343
+ managingOrganization?: IFhirReference[];
344
+ telecom?: IFhirContactPoint[];
345
+ note?: IFhirAnnotation[];
346
+ }
347
+ export interface IFhirCarePlan {
348
+ resourceType: 'CarePlan';
349
+ id?: string;
350
+ identifier?: IFhirIdentifier[];
351
+ instantiatesCanonical?: string[];
352
+ instantiatesUri?: string[];
353
+ basedOn?: IFhirReference[];
354
+ replaces?: IFhirReference[];
355
+ partOf?: IFhirReference[];
356
+ status: 'draft' | 'active' | 'on-hold' | 'revoked' | 'completed' | 'entered-in-error' | 'unknown';
357
+ intent: 'proposal' | 'plan' | 'order' | 'option';
358
+ category?: IFhirCodeableConcept[];
359
+ title?: string;
360
+ description?: string;
361
+ subject: IFhirReference;
362
+ encounter?: IFhirReference;
363
+ period?: IFhirPeriod;
364
+ created?: string;
365
+ author?: IFhirReference;
366
+ contributor?: IFhirReference[];
367
+ careTeam?: IFhirReference[];
368
+ addresses?: IFhirReference[];
369
+ supportingInfo?: IFhirReference[];
370
+ goal?: IFhirReference[];
371
+ activity?: IFhirCarePlanActivity[];
372
+ note?: IFhirAnnotation[];
373
+ }
374
+ export interface IFhirIdentifier {
375
+ use?: 'usual' | 'official' | 'temp' | 'secondary' | 'old';
376
+ type?: IFhirCodeableConcept;
377
+ system?: string;
378
+ value?: string;
379
+ period?: IFhirPeriod;
380
+ assigner?: IFhirReference;
381
+ }
382
+ export interface IFhirHumanName {
383
+ use?: 'usual' | 'official' | 'temp' | 'nickname' | 'anonymous' | 'old' | 'maiden';
384
+ text?: string;
385
+ family?: string;
386
+ given?: string[];
387
+ prefix?: string[];
388
+ suffix?: string[];
389
+ period?: IFhirPeriod;
390
+ }
391
+ export interface IFhirContactPoint {
392
+ system?: 'phone' | 'fax' | 'email' | 'pager' | 'url' | 'sms' | 'other';
393
+ value?: string;
394
+ use?: 'home' | 'work' | 'temp' | 'old' | 'mobile';
395
+ rank?: number;
396
+ period?: IFhirPeriod;
397
+ }
398
+ export interface IFhirAddress {
399
+ use?: 'home' | 'work' | 'temp' | 'old' | 'billing';
400
+ type?: 'postal' | 'physical' | 'both';
401
+ text?: string;
402
+ line?: string[];
403
+ city?: string;
404
+ district?: string;
405
+ state?: string;
406
+ postalCode?: string;
407
+ country?: string;
408
+ period?: IFhirPeriod;
409
+ }
410
+ export interface IFhirCodeableConcept {
411
+ coding?: IFhirCoding[];
412
+ text?: string;
413
+ }
414
+ export interface IFhirCoding {
415
+ system?: string;
416
+ version?: string;
417
+ code?: string;
418
+ display?: string;
419
+ userSelected?: boolean;
420
+ }
421
+ export interface IFhirReference {
422
+ reference?: string;
423
+ type?: string;
424
+ identifier?: IFhirIdentifier;
425
+ display?: string;
426
+ }
427
+ export interface IFhirPeriod {
428
+ start?: string;
429
+ end?: string;
430
+ }
431
+ export interface IFhirQuantity {
432
+ value?: number;
433
+ comparator?: '<' | '<=' | '>=' | '>';
434
+ unit?: string;
435
+ system?: string;
436
+ code?: string;
437
+ }
438
+ export interface IFhirRange {
439
+ low?: IFhirQuantity;
440
+ high?: IFhirQuantity;
441
+ }
442
+ export interface IFhirAge {
443
+ value?: number;
444
+ comparator?: '<' | '<=' | '>=' | '>';
445
+ unit?: string;
446
+ system?: string;
447
+ code?: string;
448
+ }
449
+ export interface IFhirAttachment {
450
+ contentType?: string;
451
+ language?: string;
452
+ data?: string;
453
+ url?: string;
454
+ size?: number;
455
+ hash?: string;
456
+ title?: string;
457
+ creation?: string;
458
+ }
459
+ export interface IFhirAnnotation {
460
+ authorReference?: IFhirReference;
461
+ authorString?: string;
462
+ time?: string;
463
+ text: string;
464
+ }
465
+ export interface IFhirDuration {
466
+ value?: number;
467
+ comparator?: '<' | '<=' | '>=' | '>';
468
+ unit?: string;
469
+ system?: string;
470
+ code?: string;
471
+ }
472
+ export interface IFhirDateTime {
473
+ dateTime?: string;
474
+ }
475
+ export interface IFhirDosage {
476
+ sequence?: number;
477
+ text?: string;
478
+ additionalInstruction?: IFhirCodeableConcept[];
479
+ patientInstruction?: string;
480
+ timing?: IFhirTiming;
481
+ asNeeded?: boolean | IFhirCodeableConcept;
482
+ site?: IFhirCodeableConcept;
483
+ route?: IFhirCodeableConcept;
484
+ method?: IFhirCodeableConcept;
485
+ doseAndRate?: IFhirDosageDoseAndRate[];
486
+ maxDosePerPeriod?: IFhirRatio;
487
+ maxDosePerAdministration?: IFhirQuantity;
488
+ maxDosePerLifetime?: IFhirQuantity;
489
+ }
490
+ export interface IFhirTiming {
491
+ event?: string[];
492
+ repeat?: IFhirTimingRepeat;
493
+ code?: IFhirCodeableConcept;
494
+ }
495
+ export interface IFhirTimingRepeat {
496
+ bounds?: IFhirDuration | IFhirRange | IFhirPeriod;
497
+ count?: number;
498
+ countMax?: number;
499
+ duration?: number;
500
+ durationMax?: number;
501
+ durationUnit?: string;
502
+ frequency?: number;
503
+ frequencyMax?: number;
504
+ period?: number;
505
+ periodMax?: number;
506
+ periodUnit?: string;
507
+ dayOfWeek?: string[];
508
+ timeOfDay?: string[];
509
+ when?: string[];
510
+ offset?: number;
511
+ }
512
+ export interface IFhirRatio {
513
+ numerator?: IFhirQuantity;
514
+ denominator?: IFhirQuantity;
515
+ }
516
+ export interface IFhirDosageDoseAndRate {
517
+ type?: IFhirCodeableConcept;
518
+ dose?: IFhirRange | IFhirQuantity;
519
+ rate?: IFhirRatio | IFhirRange | IFhirQuantity;
520
+ }
521
+ export interface IFhirPatientContact {
522
+ relationship?: IFhirCodeableConcept[];
523
+ name?: IFhirHumanName;
524
+ telecom?: IFhirContactPoint[];
525
+ address?: IFhirAddress;
526
+ gender?: 'male' | 'female' | 'other' | 'unknown';
527
+ organization?: IFhirReference;
528
+ period?: IFhirPeriod;
529
+ }
530
+ export interface IFhirPatientCommunication {
531
+ language: IFhirCodeableConcept;
532
+ preferred?: boolean;
533
+ }
534
+ export interface IFhirPractitionerQualification {
535
+ identifier?: IFhirIdentifier[];
536
+ code: IFhirCodeableConcept;
537
+ period?: IFhirPeriod;
538
+ issuer?: IFhirReference;
539
+ }
540
+ export interface IFhirOrganizationContact {
541
+ purpose?: IFhirCodeableConcept;
542
+ name?: IFhirHumanName;
543
+ telecom?: IFhirContactPoint[];
544
+ address?: IFhirAddress;
545
+ }
546
+ export interface IFhirEncounterStatusHistory {
547
+ status: string;
548
+ period: IFhirPeriod;
549
+ }
550
+ export interface IFhirEncounterClassHistory {
551
+ class: IFhirCoding;
552
+ period: IFhirPeriod;
553
+ }
554
+ export interface IFhirEncounterParticipant {
555
+ type?: IFhirCodeableConcept[];
556
+ period?: IFhirPeriod;
557
+ individual?: IFhirReference;
558
+ }
559
+ export interface IFhirEncounterDiagnosis {
560
+ condition: IFhirReference;
561
+ use?: IFhirCodeableConcept;
562
+ rank?: number;
563
+ }
564
+ export interface IFhirEncounterHospitalization {
565
+ preAdmissionIdentifier?: IFhirIdentifier;
566
+ origin?: IFhirReference;
567
+ admitSource?: IFhirCodeableConcept;
568
+ reAdmission?: IFhirCodeableConcept;
569
+ dietPreference?: IFhirCodeableConcept[];
570
+ specialCourtesy?: IFhirCodeableConcept[];
571
+ specialArrangement?: IFhirCodeableConcept[];
572
+ destination?: IFhirReference;
573
+ dischargeDisposition?: IFhirCodeableConcept;
574
+ }
575
+ export interface IFhirEncounterLocation {
576
+ location: IFhirReference;
577
+ status?: 'planned' | 'active' | 'reserved' | 'completed';
578
+ physicalType?: IFhirCodeableConcept;
579
+ period?: IFhirPeriod;
580
+ }
581
+ export interface IFhirConditionStage {
582
+ summary?: IFhirCodeableConcept;
583
+ assessment?: IFhirReference[];
584
+ type?: IFhirCodeableConcept;
585
+ }
586
+ export interface IFhirConditionEvidence {
587
+ code?: IFhirCodeableConcept[];
588
+ detail?: IFhirReference[];
589
+ }
590
+ export interface IFhirObservationReferenceRange {
591
+ low?: IFhirQuantity;
592
+ high?: IFhirQuantity;
593
+ type?: IFhirCodeableConcept;
594
+ appliesTo?: IFhirCodeableConcept[];
595
+ age?: IFhirRange;
596
+ text?: string;
597
+ }
598
+ export interface IFhirObservationComponent {
599
+ code: IFhirCodeableConcept;
600
+ value?: any;
601
+ dataAbsentReason?: IFhirCodeableConcept;
602
+ interpretation?: IFhirCodeableConcept[];
603
+ referenceRange?: IFhirObservationReferenceRange[];
604
+ }
605
+ export interface IFhirMedicationRequestDispenseRequest {
606
+ initialFill?: IFhirMedicationRequestInitialFill;
607
+ dispenseInterval?: IFhirDuration;
608
+ validityPeriod?: IFhirPeriod;
609
+ numberOfRepeatsAllowed?: number;
610
+ quantity?: IFhirQuantity;
611
+ expectedSupplyDuration?: IFhirDuration;
612
+ performer?: IFhirReference;
613
+ }
614
+ export interface IFhirMedicationRequestInitialFill {
615
+ quantity?: IFhirQuantity;
616
+ duration?: IFhirDuration;
617
+ }
618
+ export interface IFhirMedicationRequestSubstitution {
619
+ allowed?: boolean | IFhirCodeableConcept;
620
+ reason?: IFhirCodeableConcept;
621
+ }
622
+ export interface IFhirProcedurePerformer {
623
+ function?: IFhirCodeableConcept;
624
+ actor: IFhirReference;
625
+ onBehalfOf?: IFhirReference;
626
+ }
627
+ export interface IFhirProcedureFocalDevice {
628
+ action?: IFhirCodeableConcept;
629
+ manipulated: IFhirReference;
630
+ }
631
+ export interface IFhirImmunizationPerformer {
632
+ function?: IFhirCodeableConcept;
633
+ actor: IFhirReference;
634
+ }
635
+ export interface IFhirImmunizationEducation {
636
+ documentType?: string;
637
+ reference?: string;
638
+ publicationDate?: string;
639
+ presentationDate?: string;
640
+ }
641
+ export interface IFhirImmunizationReaction {
642
+ date?: string;
643
+ detail?: IFhirReference;
644
+ reported?: boolean;
645
+ }
646
+ export interface IFhirImmunizationProtocolApplied {
647
+ series?: string;
648
+ authority?: IFhirReference;
649
+ targetDisease?: IFhirCodeableConcept[];
650
+ doseNumber?: number | string;
651
+ seriesDoses?: number | string;
652
+ }
653
+ export interface IFhirAllergyIntoleranceReaction {
654
+ substance?: IFhirCodeableConcept;
655
+ manifestation: IFhirCodeableConcept[];
656
+ description?: string;
657
+ onset?: string;
658
+ severity?: 'mild' | 'moderate' | 'severe';
659
+ exposureRoute?: IFhirCodeableConcept;
660
+ note?: IFhirAnnotation[];
661
+ }
662
+ export interface IFhirDiagnosticReportMedia {
663
+ comment?: string;
664
+ link: IFhirReference;
665
+ }
666
+ export interface IFhirLocationPosition {
667
+ longitude: number;
668
+ latitude: number;
669
+ altitude?: number;
670
+ }
671
+ export interface IFhirLocationHoursOfOperation {
672
+ daysOfWeek?: string[];
673
+ allDay?: boolean;
674
+ openingTime?: string;
675
+ closingTime?: string;
676
+ }
677
+ export interface IFhirAppointmentParticipant {
678
+ type?: IFhirCodeableConcept[];
679
+ actor?: IFhirReference;
680
+ required?: 'required' | 'optional' | 'information-only';
681
+ status: 'accepted' | 'declined' | 'tentative' | 'needs-action';
682
+ period?: IFhirPeriod;
683
+ }
684
+ export interface IFhirCareTeamParticipant {
685
+ role?: IFhirCodeableConcept[];
686
+ member?: IFhirReference;
687
+ onBehalfOf?: IFhirReference;
688
+ period?: IFhirPeriod;
689
+ }
690
+ export interface IFhirCarePlanActivity {
691
+ outcomeCodeableConcept?: IFhirCodeableConcept[];
692
+ outcomeReference?: IFhirReference[];
693
+ progress?: IFhirAnnotation[];
694
+ reference?: IFhirReference;
695
+ detail?: IFhirCarePlanActivityDetail;
696
+ }
697
+ export interface IFhirCarePlanActivityDetail {
698
+ kind?: 'Appointment' | 'CommunicationRequest' | 'DeviceRequest' | 'MedicationRequest' | 'NutritionOrder' | 'Task' | 'ServiceRequest' | 'VisionPrescription';
699
+ instantiatesCanonical?: string[];
700
+ instantiatesUri?: string[];
701
+ code?: IFhirCodeableConcept;
702
+ reasonCode?: IFhirCodeableConcept[];
703
+ reasonReference?: IFhirReference[];
704
+ goal?: IFhirReference[];
705
+ status: 'not-started' | 'scheduled' | 'in-progress' | 'on-hold' | 'completed' | 'cancelled' | 'stopped' | 'unknown' | 'entered-in-error';
706
+ statusReason?: IFhirCodeableConcept;
707
+ doNotPerform?: boolean;
708
+ scheduled?: string | IFhirTiming | IFhirPeriod;
709
+ location?: IFhirReference;
710
+ performer?: IFhirReference[];
711
+ product?: IFhirCodeableConcept | IFhirReference;
712
+ dailyAmount?: IFhirQuantity;
713
+ quantity?: IFhirQuantity;
714
+ description?: string;
715
+ }