@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,594 @@
1
+ export interface IPatientTable {
2
+ id: string;
3
+ resourceId?: string;
4
+ active?: boolean;
5
+ gender?: string;
6
+ birthDate?: string;
7
+ deceased?: boolean;
8
+ deceasedDateTime?: string;
9
+ maritalStatus?: string;
10
+ multipleBirth?: boolean;
11
+ multipleBirthInteger?: number;
12
+ managingOrganizationId?: string;
13
+ createdAt?: Date;
14
+ updatedAt?: Date;
15
+ }
16
+ export interface IPatientIdentifierTable {
17
+ id: string;
18
+ patientId: string;
19
+ use?: string;
20
+ system?: string;
21
+ value?: string;
22
+ periodStart?: string;
23
+ periodEnd?: string;
24
+ assignerReference?: string;
25
+ createdAt?: Date;
26
+ }
27
+ export interface IPatientNameTable {
28
+ id: string;
29
+ patientId: string;
30
+ use?: string;
31
+ text?: string;
32
+ family?: string;
33
+ given?: string;
34
+ prefix?: string;
35
+ suffix?: string;
36
+ periodStart?: string;
37
+ periodEnd?: string;
38
+ createdAt?: Date;
39
+ }
40
+ export interface IPatientContactTable {
41
+ id: string;
42
+ patientId: string;
43
+ relationshipCode?: string;
44
+ relationshipText?: string;
45
+ name?: string;
46
+ gender?: string;
47
+ organizationReference?: string;
48
+ periodStart?: string;
49
+ periodEnd?: string;
50
+ createdAt?: Date;
51
+ }
52
+ export interface IPractitionerTable {
53
+ id: string;
54
+ resourceId?: string;
55
+ active?: boolean;
56
+ gender?: string;
57
+ birthDate?: string;
58
+ createdAt?: Date;
59
+ updatedAt?: Date;
60
+ }
61
+ export interface IPractitionerQualificationTable {
62
+ id: string;
63
+ practitionerId: string;
64
+ code?: string;
65
+ codeSystem?: string;
66
+ codeDisplay?: string;
67
+ periodStart?: string;
68
+ periodEnd?: string;
69
+ issuerReference?: string;
70
+ createdAt?: Date;
71
+ }
72
+ export interface IOrganizationTable {
73
+ id: string;
74
+ resourceId?: string;
75
+ active?: boolean;
76
+ name?: string;
77
+ partOfReference?: string;
78
+ createdAt?: Date;
79
+ updatedAt?: Date;
80
+ }
81
+ export interface IOrganizationTypeTable {
82
+ id: string;
83
+ organizationId: string;
84
+ system?: string;
85
+ code?: string;
86
+ display?: string;
87
+ createdAt?: Date;
88
+ }
89
+ export interface ILocationTable {
90
+ id: string;
91
+ resourceId?: string;
92
+ status?: string;
93
+ operationalStatus?: string;
94
+ name?: string;
95
+ description?: string;
96
+ mode?: string;
97
+ physicalType?: string;
98
+ latitude?: number;
99
+ longitude?: number;
100
+ altitude?: number;
101
+ managingOrganizationReference?: string;
102
+ partOfReference?: string;
103
+ availabilityExceptions?: string;
104
+ createdAt?: Date;
105
+ updatedAt?: Date;
106
+ }
107
+ export interface IEncounterTable {
108
+ id: string;
109
+ resourceId?: string;
110
+ status: string;
111
+ class: string;
112
+ classSystem?: string;
113
+ classDisplay?: string;
114
+ serviceType?: string;
115
+ priority?: string;
116
+ subjectReference?: string;
117
+ episodeOfCareReference?: string;
118
+ serviceProviderReference?: string;
119
+ partOfReference?: string;
120
+ periodStart?: string;
121
+ periodEnd?: string;
122
+ lengthValue?: number;
123
+ lengthUnit?: string;
124
+ createdAt?: Date;
125
+ updatedAt?: Date;
126
+ }
127
+ export interface IEncounterParticipantTable {
128
+ id: string;
129
+ encounterId: string;
130
+ typeCode?: string;
131
+ typeDisplay?: string;
132
+ individualReference?: string;
133
+ periodStart?: string;
134
+ periodEnd?: string;
135
+ createdAt?: Date;
136
+ }
137
+ export interface IConditionTable {
138
+ id: string;
139
+ resourceId?: string;
140
+ clinicalStatus?: string;
141
+ verificationStatus?: string;
142
+ severity?: string;
143
+ code?: string;
144
+ codeSystem?: string;
145
+ codeDisplay?: string;
146
+ subjectReference: string;
147
+ encounterReference?: string;
148
+ onsetDateTime?: string;
149
+ abatementDateTime?: string;
150
+ recordedDate?: string;
151
+ recorderReference?: string;
152
+ asserterReference?: string;
153
+ createdAt?: Date;
154
+ updatedAt?: Date;
155
+ }
156
+ export interface IObservationTable {
157
+ id: string;
158
+ resourceId?: string;
159
+ status: string;
160
+ code: string;
161
+ codeSystem?: string;
162
+ codeDisplay?: string;
163
+ subjectReference?: string;
164
+ encounterReference?: string;
165
+ effectiveDateTime?: string;
166
+ effectivePeriodStart?: string;
167
+ effectivePeriodEnd?: string;
168
+ issued?: string;
169
+ valueType?: string;
170
+ valueString?: string;
171
+ valueNumber?: number;
172
+ valueBoolean?: boolean;
173
+ valueDateTime?: string;
174
+ valueCodeableConcept?: string;
175
+ dataAbsentReason?: string;
176
+ bodySite?: string;
177
+ method?: string;
178
+ specimenReference?: string;
179
+ deviceReference?: string;
180
+ createdAt?: Date;
181
+ updatedAt?: Date;
182
+ }
183
+ export interface IObservationComponentTable {
184
+ id: string;
185
+ observationId: string;
186
+ code: string;
187
+ codeSystem?: string;
188
+ codeDisplay?: string;
189
+ valueType?: string;
190
+ valueString?: string;
191
+ valueNumber?: number;
192
+ valueBoolean?: boolean;
193
+ valueDateTime?: string;
194
+ dataAbsentReason?: string;
195
+ createdAt?: Date;
196
+ }
197
+ export interface IMedicationRequestTable {
198
+ id: string;
199
+ resourceId?: string;
200
+ status: string;
201
+ statusReason?: string;
202
+ intent: string;
203
+ priority?: string;
204
+ doNotPerform?: boolean;
205
+ medicationCodeableConcept?: string;
206
+ medicationReference?: string;
207
+ subjectReference: string;
208
+ encounterReference?: string;
209
+ authoredOn?: string;
210
+ requesterReference?: string;
211
+ performerReference?: string;
212
+ performerType?: string;
213
+ recorderReference?: string;
214
+ groupIdentifierValue?: string;
215
+ courseOfTherapyType?: string;
216
+ priorPrescriptionReference?: string;
217
+ createdAt?: Date;
218
+ updatedAt?: Date;
219
+ }
220
+ export interface IMedicationDosageTable {
221
+ id: string;
222
+ medicationRequestId: string;
223
+ sequence?: number;
224
+ text?: string;
225
+ patientInstruction?: string;
226
+ asNeeded?: boolean;
227
+ asNeededCode?: string;
228
+ site?: string;
229
+ route?: string;
230
+ method?: string;
231
+ doseValue?: number;
232
+ doseUnit?: string;
233
+ doseCode?: string;
234
+ rateValue?: number;
235
+ rateUnit?: string;
236
+ maxDosePerPeriodValue?: number;
237
+ maxDosePerPeriodUnit?: string;
238
+ createdAt?: Date;
239
+ }
240
+ export interface IProcedureTable {
241
+ id: string;
242
+ resourceId?: string;
243
+ status: string;
244
+ statusReason?: string;
245
+ category?: string;
246
+ code?: string;
247
+ codeSystem?: string;
248
+ codeDisplay?: string;
249
+ subjectReference: string;
250
+ encounterReference?: string;
251
+ performedDateTime?: string;
252
+ performedPeriodStart?: string;
253
+ performedPeriodEnd?: string;
254
+ recorderReference?: string;
255
+ asserterReference?: string;
256
+ locationReference?: string;
257
+ outcome?: string;
258
+ createdAt?: Date;
259
+ updatedAt?: Date;
260
+ }
261
+ export interface IProcedurePerformerTable {
262
+ id: string;
263
+ procedureId: string;
264
+ function?: string;
265
+ actorReference: string;
266
+ onBehalfOfReference?: string;
267
+ createdAt?: Date;
268
+ }
269
+ export interface IImmunizationTable {
270
+ id: string;
271
+ resourceId?: string;
272
+ status: string;
273
+ statusReason?: string;
274
+ vaccineCode: string;
275
+ vaccineCodeSystem?: string;
276
+ vaccineCodeDisplay?: string;
277
+ patientReference: string;
278
+ encounterReference?: string;
279
+ occurrenceDateTime?: string;
280
+ recorded?: string;
281
+ primarySource?: boolean;
282
+ reportOrigin?: string;
283
+ locationReference?: string;
284
+ manufacturerReference?: string;
285
+ lotNumber?: string;
286
+ expirationDate?: string;
287
+ site?: string;
288
+ route?: string;
289
+ doseQuantityValue?: number;
290
+ doseQuantityUnit?: string;
291
+ isSubpotent?: boolean;
292
+ fundingSource?: string;
293
+ createdAt?: Date;
294
+ updatedAt?: Date;
295
+ }
296
+ export interface IAllergyIntoleranceTable {
297
+ id: string;
298
+ resourceId?: string;
299
+ clinicalStatus?: string;
300
+ verificationStatus?: string;
301
+ type?: string;
302
+ criticality?: string;
303
+ code?: string;
304
+ codeSystem?: string;
305
+ codeDisplay?: string;
306
+ patientReference: string;
307
+ encounterReference?: string;
308
+ onsetDateTime?: string;
309
+ recordedDate?: string;
310
+ recorderReference?: string;
311
+ asserterReference?: string;
312
+ lastOccurrence?: string;
313
+ createdAt?: Date;
314
+ updatedAt?: Date;
315
+ }
316
+ export interface IAllergyReactionTable {
317
+ id: string;
318
+ allergyIntoleranceId: string;
319
+ substance?: string;
320
+ description?: string;
321
+ onset?: string;
322
+ severity?: string;
323
+ exposureRoute?: string;
324
+ createdAt?: Date;
325
+ }
326
+ export interface IAllergyManifestationTable {
327
+ id: string;
328
+ allergyReactionId: string;
329
+ code?: string;
330
+ codeSystem?: string;
331
+ codeDisplay?: string;
332
+ createdAt?: Date;
333
+ }
334
+ export interface IDiagnosticReportTable {
335
+ id: string;
336
+ resourceId?: string;
337
+ status: string;
338
+ code: string;
339
+ codeSystem?: string;
340
+ codeDisplay?: string;
341
+ subjectReference?: string;
342
+ encounterReference?: string;
343
+ effectiveDateTime?: string;
344
+ effectivePeriodStart?: string;
345
+ effectivePeriodEnd?: string;
346
+ issued?: string;
347
+ conclusion?: string;
348
+ createdAt?: Date;
349
+ updatedAt?: Date;
350
+ }
351
+ export interface IDiagnosticReportResultTable {
352
+ id: string;
353
+ diagnosticReportId: string;
354
+ resultReference: string;
355
+ createdAt?: Date;
356
+ }
357
+ export interface IAppointmentTable {
358
+ id: string;
359
+ resourceId?: string;
360
+ status: string;
361
+ cancelationReason?: string;
362
+ serviceCategory?: string;
363
+ serviceType?: string;
364
+ specialty?: string;
365
+ appointmentType?: string;
366
+ priority?: number;
367
+ description?: string;
368
+ start?: string;
369
+ end?: string;
370
+ minutesDuration?: number;
371
+ created?: string;
372
+ comment?: string;
373
+ patientInstruction?: string;
374
+ createdAt?: Date;
375
+ updatedAt?: Date;
376
+ }
377
+ export interface IAppointmentParticipantTable {
378
+ id: string;
379
+ appointmentId: string;
380
+ type?: string;
381
+ actorReference?: string;
382
+ required?: string;
383
+ status: string;
384
+ periodStart?: string;
385
+ periodEnd?: string;
386
+ createdAt?: Date;
387
+ }
388
+ export interface ICareTeamTable {
389
+ id: string;
390
+ resourceId?: string;
391
+ status?: string;
392
+ name?: string;
393
+ subjectReference?: string;
394
+ encounterReference?: string;
395
+ periodStart?: string;
396
+ periodEnd?: string;
397
+ createdAt?: Date;
398
+ updatedAt?: Date;
399
+ }
400
+ export interface ICareTeamParticipantTable {
401
+ id: string;
402
+ careTeamId: string;
403
+ role?: string;
404
+ memberReference?: string;
405
+ onBehalfOfReference?: string;
406
+ periodStart?: string;
407
+ periodEnd?: string;
408
+ createdAt?: Date;
409
+ }
410
+ export interface ICarePlanTable {
411
+ id: string;
412
+ resourceId?: string;
413
+ status: string;
414
+ intent: string;
415
+ title?: string;
416
+ description?: string;
417
+ subjectReference: string;
418
+ encounterReference?: string;
419
+ periodStart?: string;
420
+ periodEnd?: string;
421
+ created?: string;
422
+ authorReference?: string;
423
+ createdAt?: Date;
424
+ updatedAt?: Date;
425
+ }
426
+ export interface ICarePlanActivityTable {
427
+ id: string;
428
+ carePlanId: string;
429
+ outcomeCodeableConcept?: string;
430
+ outcomeReference?: string;
431
+ progress?: string;
432
+ reference?: string;
433
+ kind?: string;
434
+ code?: string;
435
+ status: string;
436
+ statusReason?: string;
437
+ doNotPerform?: boolean;
438
+ scheduledDateTime?: string;
439
+ scheduledPeriodStart?: string;
440
+ scheduledPeriodEnd?: string;
441
+ locationReference?: string;
442
+ performerReference?: string;
443
+ productCodeableConcept?: string;
444
+ productReference?: string;
445
+ dailyAmountValue?: number;
446
+ dailyAmountUnit?: string;
447
+ quantityValue?: number;
448
+ quantityUnit?: string;
449
+ description?: string;
450
+ createdAt?: Date;
451
+ }
452
+ export interface IAddressTable {
453
+ id: string;
454
+ resourceType: string;
455
+ resourceId: string;
456
+ use?: string;
457
+ type?: string;
458
+ text?: string;
459
+ line?: string;
460
+ city?: string;
461
+ district?: string;
462
+ state?: string;
463
+ postalCode?: string;
464
+ country?: string;
465
+ periodStart?: string;
466
+ periodEnd?: string;
467
+ createdAt?: Date;
468
+ updatedAt?: Date;
469
+ }
470
+ export interface ITelecomTable {
471
+ id: string;
472
+ resourceType: string;
473
+ resourceId: string;
474
+ system?: string;
475
+ value?: string;
476
+ use?: string;
477
+ rank?: number;
478
+ periodStart?: string;
479
+ periodEnd?: string;
480
+ createdAt?: Date;
481
+ }
482
+ export interface ICodeableConceptTable {
483
+ id: string;
484
+ resourceType: string;
485
+ resourceId: string;
486
+ fieldName: string;
487
+ text?: string;
488
+ createdAt?: Date;
489
+ }
490
+ export interface ICodingTable {
491
+ id: string;
492
+ codeableConceptId: string;
493
+ system?: string;
494
+ version?: string;
495
+ code?: string;
496
+ display?: string;
497
+ userSelected?: boolean;
498
+ createdAt?: Date;
499
+ }
500
+ export interface INoteTable {
501
+ id: string;
502
+ resourceType: string;
503
+ resourceId: string;
504
+ authorReference?: string;
505
+ authorString?: string;
506
+ time?: string;
507
+ text: string;
508
+ createdAt?: Date;
509
+ }
510
+ export interface IAttachmentTable {
511
+ id: string;
512
+ resourceType: string;
513
+ resourceId: string;
514
+ fieldName: string;
515
+ contentType?: string;
516
+ language?: string;
517
+ data?: string;
518
+ url?: string;
519
+ size?: number;
520
+ hash?: string;
521
+ title?: string;
522
+ creation?: string;
523
+ createdAt?: Date;
524
+ }
525
+ export interface IReferenceTable {
526
+ id: string;
527
+ resourceType: string;
528
+ resourceId: string;
529
+ fieldName: string;
530
+ reference?: string;
531
+ type?: string;
532
+ identifier?: string;
533
+ display?: string;
534
+ createdAt?: Date;
535
+ }
536
+ export interface IBundleTable {
537
+ id: string;
538
+ resourceId?: string;
539
+ type: string;
540
+ timestamp?: string;
541
+ total?: number;
542
+ createdAt?: Date;
543
+ }
544
+ export interface IBundleEntryTable {
545
+ id: string;
546
+ bundleId: string;
547
+ fullUrl?: string;
548
+ resourceType?: string;
549
+ resourceId?: string;
550
+ searchMode?: string;
551
+ searchScore?: number;
552
+ createdAt?: Date;
553
+ }
554
+ export interface INormalizedFhirData {
555
+ bundles: IBundleTable[];
556
+ bundleEntries: IBundleEntryTable[];
557
+ patients: IPatientTable[];
558
+ patientIdentifiers: IPatientIdentifierTable[];
559
+ patientNames: IPatientNameTable[];
560
+ patientContacts: IPatientContactTable[];
561
+ practitioners: IPractitionerTable[];
562
+ practitionerQualifications: IPractitionerQualificationTable[];
563
+ organizations: IOrganizationTable[];
564
+ organizationTypes: IOrganizationTypeTable[];
565
+ locations: ILocationTable[];
566
+ encounters: IEncounterTable[];
567
+ encounterParticipants: IEncounterParticipantTable[];
568
+ conditions: IConditionTable[];
569
+ observations: IObservationTable[];
570
+ observationComponents: IObservationComponentTable[];
571
+ medicationRequests: IMedicationRequestTable[];
572
+ medicationDosages: IMedicationDosageTable[];
573
+ procedures: IProcedureTable[];
574
+ procedurePerformers: IProcedurePerformerTable[];
575
+ immunizations: IImmunizationTable[];
576
+ allergyIntolerances: IAllergyIntoleranceTable[];
577
+ allergyReactions: IAllergyReactionTable[];
578
+ allergyManifestations: IAllergyManifestationTable[];
579
+ diagnosticReports: IDiagnosticReportTable[];
580
+ diagnosticReportResults: IDiagnosticReportResultTable[];
581
+ appointments: IAppointmentTable[];
582
+ appointmentParticipants: IAppointmentParticipantTable[];
583
+ careTeams: ICareTeamTable[];
584
+ careTeamParticipants: ICareTeamParticipantTable[];
585
+ carePlans: ICarePlanTable[];
586
+ carePlanActivities: ICarePlanActivityTable[];
587
+ addresses: IAddressTable[];
588
+ telecoms: ITelecomTable[];
589
+ codeableConcepts: ICodeableConceptTable[];
590
+ codings: ICodingTable[];
591
+ notes: INoteTable[];
592
+ attachments: IAttachmentTable[];
593
+ references: IReferenceTable[];
594
+ }
@@ -0,0 +1,3 @@
1
+ // Normalized FHIR tables following Third Normal Form (3NF)
2
+ export {};
3
+ //# sourceMappingURL=fhir-normalized-tables.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fhir-normalized-tables.interface.js","sourceRoot":"","sources":["../../../../../../../libs/isomorphic/fhir/src/lib/interfaces/fhir-normalized-tables.interface.ts"],"names":[],"mappings":"AAAA,2DAA2D"}