gdc-common-utils-ts 1.16.0 → 1.17.0

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.
Files changed (30) hide show
  1. package/README.md +7 -2
  2. package/dist/constants/healthcare.d.ts +614 -19
  3. package/dist/constants/healthcare.js +167 -29
  4. package/dist/constants/index.d.ts +2 -0
  5. package/dist/constants/index.js +2 -0
  6. package/dist/constants/permission-templates.d.ts +4 -0
  7. package/dist/constants/permission-templates.js +4 -0
  8. package/dist/examples/communication-attached-bundle-session.d.ts +35 -0
  9. package/dist/examples/communication-attached-bundle-session.js +191 -4
  10. package/dist/examples/communication-bundle-document-request.d.ts +4 -0
  11. package/dist/examples/communication-bundle-document-request.js +11 -1
  12. package/dist/examples/shared.d.ts +3 -0
  13. package/dist/examples/shared.js +3 -0
  14. package/dist/models/index.d.ts +2 -0
  15. package/dist/models/index.js +2 -0
  16. package/dist/models/permission-templates.d.ts +8 -0
  17. package/dist/models/permission-templates.js +7 -0
  18. package/dist/utils/bundle-editor.d.ts +34 -4
  19. package/dist/utils/bundle-editor.js +60 -7
  20. package/dist/utils/communication-attached-bundle-session.d.ts +183 -0
  21. package/dist/utils/communication-attached-bundle-session.js +469 -0
  22. package/dist/utils/communication-bundle-document-request.d.ts +26 -7
  23. package/dist/utils/communication-bundle-document-request.js +50 -9
  24. package/dist/utils/consent-permission-templates.d.ts +110 -0
  25. package/dist/utils/consent-permission-templates.js +273 -0
  26. package/dist/utils/index.d.ts +2 -0
  27. package/dist/utils/index.js +2 -0
  28. package/dist/utils/permission-templates.d.ts +5 -0
  29. package/dist/utils/permission-templates.js +5 -0
  30. package/package.json +1 -1
@@ -47,11 +47,302 @@ export type HealthcareActorRoleDescriptor = Readonly<{
47
47
  definition?: string;
48
48
  }>;
49
49
  export declare const HealthcareSectionFamilies: Readonly<{
50
+ readonly CoreSection: "core-section";
51
+ readonly KindOfDocument: "kind-of-document";
52
+ readonly TypeOfService: "type-of-service";
53
+ readonly SubjectMatterDomainSection: "subject-matter-domain";
54
+ /** @deprecated Use `CoreSection`. */
50
55
  readonly Summary: "summary";
56
+ /** @deprecated Use `KindOfDocument` and `TypeOfService`. */
51
57
  readonly Management: "management";
58
+ /** @deprecated Use `SubjectMatterDomainSection`. */
52
59
  readonly SubjectMatterDomain: "subjectMatterDomain";
53
60
  }>;
54
61
  export type HealthcareSectionFamily = typeof HealthcareSectionFamilies[keyof typeof HealthcareSectionFamilies];
62
+ export declare const HealthcareCanonicalSectionFamilies: Readonly<{
63
+ readonly CoreSection: "core-section";
64
+ readonly KindOfDocument: "kind-of-document";
65
+ readonly TypeOfService: "type-of-service";
66
+ readonly SubjectMatterDomain: "subject-matter-domain";
67
+ }>;
68
+ export type HealthcareCanonicalSectionFamily = typeof HealthcareCanonicalSectionFamilies[keyof typeof HealthcareCanonicalSectionFamilies];
69
+ export declare const HealthcareCoreSections: Readonly<{
70
+ PatientSummaryDocument: Readonly<{
71
+ system: typeof LOINC_SYSTEM_URL;
72
+ code: string;
73
+ attributeValue: string;
74
+ /**
75
+ * @deprecated Use `attributeValue`.
76
+ * Kept as compatibility alias because this token is a reusable claim value,
77
+ * not a claim key/attribute name.
78
+ */
79
+ claim: string;
80
+ i18nKey: `org.loinc.${string}`;
81
+ titleEn?: string;
82
+ }>;
83
+ AllergiesAndIntolerances: Readonly<{
84
+ system: typeof LOINC_SYSTEM_URL;
85
+ code: string;
86
+ attributeValue: string;
87
+ /**
88
+ * @deprecated Use `attributeValue`.
89
+ * Kept as compatibility alias because this token is a reusable claim value,
90
+ * not a claim key/attribute name.
91
+ */
92
+ claim: string;
93
+ i18nKey: `org.loinc.${string}`;
94
+ titleEn?: string;
95
+ }>;
96
+ DietAndNutrition: Readonly<{
97
+ system: typeof LOINC_SYSTEM_URL;
98
+ code: string;
99
+ attributeValue: string;
100
+ /**
101
+ * @deprecated Use `attributeValue`.
102
+ * Kept as compatibility alias because this token is a reusable claim value,
103
+ * not a claim key/attribute name.
104
+ */
105
+ claim: string;
106
+ i18nKey: `org.loinc.${string}`;
107
+ titleEn?: string;
108
+ }>;
109
+ HistoryOfMedicationUse: Readonly<{
110
+ system: typeof LOINC_SYSTEM_URL;
111
+ code: string;
112
+ attributeValue: string;
113
+ /**
114
+ * @deprecated Use `attributeValue`.
115
+ * Kept as compatibility alias because this token is a reusable claim value,
116
+ * not a claim key/attribute name.
117
+ */
118
+ claim: string;
119
+ i18nKey: `org.loinc.${string}`;
120
+ titleEn?: string;
121
+ }>;
122
+ HistoryOfFamilyMemberDiseases: Readonly<{
123
+ system: typeof LOINC_SYSTEM_URL;
124
+ code: string;
125
+ attributeValue: string;
126
+ /**
127
+ * @deprecated Use `attributeValue`.
128
+ * Kept as compatibility alias because this token is a reusable claim value,
129
+ * not a claim key/attribute name.
130
+ */
131
+ claim: string;
132
+ i18nKey: `org.loinc.${string}`;
133
+ titleEn?: string;
134
+ }>;
135
+ HistoryOfHospitalizationsAndOutpatientVisits: Readonly<{
136
+ system: typeof LOINC_SYSTEM_URL;
137
+ code: string;
138
+ attributeValue: string;
139
+ /**
140
+ * @deprecated Use `attributeValue`.
141
+ * Kept as compatibility alias because this token is a reusable claim value,
142
+ * not a claim key/attribute name.
143
+ */
144
+ claim: string;
145
+ i18nKey: `org.loinc.${string}`;
146
+ titleEn?: string;
147
+ }>;
148
+ HistoryOfPastIllness: Readonly<{
149
+ system: typeof LOINC_SYSTEM_URL;
150
+ code: string;
151
+ attributeValue: string;
152
+ /**
153
+ * @deprecated Use `attributeValue`.
154
+ * Kept as compatibility alias because this token is a reusable claim value,
155
+ * not a claim key/attribute name.
156
+ */
157
+ claim: string;
158
+ i18nKey: `org.loinc.${string}`;
159
+ titleEn?: string;
160
+ }>;
161
+ HistoryOfPresentIllness: Readonly<{
162
+ system: typeof LOINC_SYSTEM_URL;
163
+ code: string;
164
+ attributeValue: string;
165
+ /**
166
+ * @deprecated Use `attributeValue`.
167
+ * Kept as compatibility alias because this token is a reusable claim value,
168
+ * not a claim key/attribute name.
169
+ */
170
+ claim: string;
171
+ i18nKey: `org.loinc.${string}`;
172
+ titleEn?: string;
173
+ }>;
174
+ ProblemList: Readonly<{
175
+ system: typeof LOINC_SYSTEM_URL;
176
+ code: string;
177
+ attributeValue: string;
178
+ /**
179
+ * @deprecated Use `attributeValue`.
180
+ * Kept as compatibility alias because this token is a reusable claim value,
181
+ * not a claim key/attribute name.
182
+ */
183
+ claim: string;
184
+ i18nKey: `org.loinc.${string}`;
185
+ titleEn?: string;
186
+ }>;
187
+ ProblemListNarrativeReported: Readonly<{
188
+ system: typeof LOINC_SYSTEM_URL;
189
+ code: string;
190
+ attributeValue: string;
191
+ /**
192
+ * @deprecated Use `attributeValue`.
193
+ * Kept as compatibility alias because this token is a reusable claim value,
194
+ * not a claim key/attribute name.
195
+ */
196
+ claim: string;
197
+ i18nKey: `org.loinc.${string}`;
198
+ titleEn?: string;
199
+ }>;
200
+ Results: Readonly<{
201
+ system: typeof LOINC_SYSTEM_URL;
202
+ code: string;
203
+ attributeValue: string;
204
+ /**
205
+ * @deprecated Use `attributeValue`.
206
+ * Kept as compatibility alias because this token is a reusable claim value,
207
+ * not a claim key/attribute name.
208
+ */
209
+ claim: string;
210
+ i18nKey: `org.loinc.${string}`;
211
+ titleEn?: string;
212
+ }>;
213
+ Procedures: Readonly<{
214
+ system: typeof LOINC_SYSTEM_URL;
215
+ code: string;
216
+ attributeValue: string;
217
+ /**
218
+ * @deprecated Use `attributeValue`.
219
+ * Kept as compatibility alias because this token is a reusable claim value,
220
+ * not a claim key/attribute name.
221
+ */
222
+ claim: string;
223
+ i18nKey: `org.loinc.${string}`;
224
+ titleEn?: string;
225
+ }>;
226
+ Immunizations: Readonly<{
227
+ system: typeof LOINC_SYSTEM_URL;
228
+ code: string;
229
+ attributeValue: string;
230
+ /**
231
+ * @deprecated Use `attributeValue`.
232
+ * Kept as compatibility alias because this token is a reusable claim value,
233
+ * not a claim key/attribute name.
234
+ */
235
+ claim: string;
236
+ i18nKey: `org.loinc.${string}`;
237
+ titleEn?: string;
238
+ }>;
239
+ MedicalDevices: Readonly<{
240
+ system: typeof LOINC_SYSTEM_URL;
241
+ code: string;
242
+ attributeValue: string;
243
+ /**
244
+ * @deprecated Use `attributeValue`.
245
+ * Kept as compatibility alias because this token is a reusable claim value,
246
+ * not a claim key/attribute name.
247
+ */
248
+ claim: string;
249
+ i18nKey: `org.loinc.${string}`;
250
+ titleEn?: string;
251
+ }>;
252
+ FunctionalStatus: Readonly<{
253
+ system: typeof LOINC_SYSTEM_URL;
254
+ code: string;
255
+ attributeValue: string;
256
+ /**
257
+ * @deprecated Use `attributeValue`.
258
+ * Kept as compatibility alias because this token is a reusable claim value,
259
+ * not a claim key/attribute name.
260
+ */
261
+ claim: string;
262
+ i18nKey: `org.loinc.${string}`;
263
+ titleEn?: string;
264
+ }>;
265
+ PlanOfTreatment: Readonly<{
266
+ system: typeof LOINC_SYSTEM_URL;
267
+ code: string;
268
+ attributeValue: string;
269
+ /**
270
+ * @deprecated Use `attributeValue`.
271
+ * Kept as compatibility alias because this token is a reusable claim value,
272
+ * not a claim key/attribute name.
273
+ */
274
+ claim: string;
275
+ i18nKey: `org.loinc.${string}`;
276
+ titleEn?: string;
277
+ }>;
278
+ /** @deprecated Use `PlanOfTreatment`. */
279
+ PlanOfCare: Readonly<{
280
+ system: typeof LOINC_SYSTEM_URL;
281
+ code: string;
282
+ attributeValue: string;
283
+ /**
284
+ * @deprecated Use `attributeValue`.
285
+ * Kept as compatibility alias because this token is a reusable claim value,
286
+ * not a claim key/attribute name.
287
+ */
288
+ claim: string;
289
+ i18nKey: `org.loinc.${string}`;
290
+ titleEn?: string;
291
+ }>;
292
+ SocialHistory: Readonly<{
293
+ system: typeof LOINC_SYSTEM_URL;
294
+ code: string;
295
+ attributeValue: string;
296
+ /**
297
+ * @deprecated Use `attributeValue`.
298
+ * Kept as compatibility alias because this token is a reusable claim value,
299
+ * not a claim key/attribute name.
300
+ */
301
+ claim: string;
302
+ i18nKey: `org.loinc.${string}`;
303
+ titleEn?: string;
304
+ }>;
305
+ VitalSigns: Readonly<{
306
+ system: typeof LOINC_SYSTEM_URL;
307
+ code: string;
308
+ attributeValue: string;
309
+ /**
310
+ * @deprecated Use `attributeValue`.
311
+ * Kept as compatibility alias because this token is a reusable claim value,
312
+ * not a claim key/attribute name.
313
+ */
314
+ claim: string;
315
+ i18nKey: `org.loinc.${string}`;
316
+ titleEn?: string;
317
+ }>;
318
+ AdvanceDirectives: Readonly<{
319
+ system: typeof LOINC_SYSTEM_URL;
320
+ code: string;
321
+ attributeValue: string;
322
+ /**
323
+ * @deprecated Use `attributeValue`.
324
+ * Kept as compatibility alias because this token is a reusable claim value,
325
+ * not a claim key/attribute name.
326
+ */
327
+ claim: string;
328
+ i18nKey: `org.loinc.${string}`;
329
+ titleEn?: string;
330
+ }>;
331
+ Instructions: Readonly<{
332
+ system: typeof LOINC_SYSTEM_URL;
333
+ code: string;
334
+ attributeValue: string;
335
+ /**
336
+ * @deprecated Use `attributeValue`.
337
+ * Kept as compatibility alias because this token is a reusable claim value,
338
+ * not a claim key/attribute name.
339
+ */
340
+ claim: string;
341
+ i18nKey: `org.loinc.${string}`;
342
+ titleEn?: string;
343
+ }>;
344
+ }>;
345
+ /** @deprecated Use `HealthcareCoreSections`. */
55
346
  export declare const HealthcareBasicSections: Readonly<{
56
347
  PatientSummaryDocument: Readonly<{
57
348
  system: typeof LOINC_SYSTEM_URL;
@@ -79,6 +370,19 @@ export declare const HealthcareBasicSections: Readonly<{
79
370
  i18nKey: `org.loinc.${string}`;
80
371
  titleEn?: string;
81
372
  }>;
373
+ DietAndNutrition: Readonly<{
374
+ system: typeof LOINC_SYSTEM_URL;
375
+ code: string;
376
+ attributeValue: string;
377
+ /**
378
+ * @deprecated Use `attributeValue`.
379
+ * Kept as compatibility alias because this token is a reusable claim value,
380
+ * not a claim key/attribute name.
381
+ */
382
+ claim: string;
383
+ i18nKey: `org.loinc.${string}`;
384
+ titleEn?: string;
385
+ }>;
82
386
  HistoryOfMedicationUse: Readonly<{
83
387
  system: typeof LOINC_SYSTEM_URL;
84
388
  code: string;
@@ -92,6 +396,58 @@ export declare const HealthcareBasicSections: Readonly<{
92
396
  i18nKey: `org.loinc.${string}`;
93
397
  titleEn?: string;
94
398
  }>;
399
+ HistoryOfFamilyMemberDiseases: Readonly<{
400
+ system: typeof LOINC_SYSTEM_URL;
401
+ code: string;
402
+ attributeValue: string;
403
+ /**
404
+ * @deprecated Use `attributeValue`.
405
+ * Kept as compatibility alias because this token is a reusable claim value,
406
+ * not a claim key/attribute name.
407
+ */
408
+ claim: string;
409
+ i18nKey: `org.loinc.${string}`;
410
+ titleEn?: string;
411
+ }>;
412
+ HistoryOfHospitalizationsAndOutpatientVisits: Readonly<{
413
+ system: typeof LOINC_SYSTEM_URL;
414
+ code: string;
415
+ attributeValue: string;
416
+ /**
417
+ * @deprecated Use `attributeValue`.
418
+ * Kept as compatibility alias because this token is a reusable claim value,
419
+ * not a claim key/attribute name.
420
+ */
421
+ claim: string;
422
+ i18nKey: `org.loinc.${string}`;
423
+ titleEn?: string;
424
+ }>;
425
+ HistoryOfPastIllness: Readonly<{
426
+ system: typeof LOINC_SYSTEM_URL;
427
+ code: string;
428
+ attributeValue: string;
429
+ /**
430
+ * @deprecated Use `attributeValue`.
431
+ * Kept as compatibility alias because this token is a reusable claim value,
432
+ * not a claim key/attribute name.
433
+ */
434
+ claim: string;
435
+ i18nKey: `org.loinc.${string}`;
436
+ titleEn?: string;
437
+ }>;
438
+ HistoryOfPresentIllness: Readonly<{
439
+ system: typeof LOINC_SYSTEM_URL;
440
+ code: string;
441
+ attributeValue: string;
442
+ /**
443
+ * @deprecated Use `attributeValue`.
444
+ * Kept as compatibility alias because this token is a reusable claim value,
445
+ * not a claim key/attribute name.
446
+ */
447
+ claim: string;
448
+ i18nKey: `org.loinc.${string}`;
449
+ titleEn?: string;
450
+ }>;
95
451
  ProblemList: Readonly<{
96
452
  system: typeof LOINC_SYSTEM_URL;
97
453
  code: string;
@@ -105,6 +461,19 @@ export declare const HealthcareBasicSections: Readonly<{
105
461
  i18nKey: `org.loinc.${string}`;
106
462
  titleEn?: string;
107
463
  }>;
464
+ ProblemListNarrativeReported: Readonly<{
465
+ system: typeof LOINC_SYSTEM_URL;
466
+ code: string;
467
+ attributeValue: string;
468
+ /**
469
+ * @deprecated Use `attributeValue`.
470
+ * Kept as compatibility alias because this token is a reusable claim value,
471
+ * not a claim key/attribute name.
472
+ */
473
+ claim: string;
474
+ i18nKey: `org.loinc.${string}`;
475
+ titleEn?: string;
476
+ }>;
108
477
  Results: Readonly<{
109
478
  system: typeof LOINC_SYSTEM_URL;
110
479
  code: string;
@@ -170,6 +539,20 @@ export declare const HealthcareBasicSections: Readonly<{
170
539
  i18nKey: `org.loinc.${string}`;
171
540
  titleEn?: string;
172
541
  }>;
542
+ PlanOfTreatment: Readonly<{
543
+ system: typeof LOINC_SYSTEM_URL;
544
+ code: string;
545
+ attributeValue: string;
546
+ /**
547
+ * @deprecated Use `attributeValue`.
548
+ * Kept as compatibility alias because this token is a reusable claim value,
549
+ * not a claim key/attribute name.
550
+ */
551
+ claim: string;
552
+ i18nKey: `org.loinc.${string}`;
553
+ titleEn?: string;
554
+ }>;
555
+ /** @deprecated Use `PlanOfTreatment`. */
173
556
  PlanOfCare: Readonly<{
174
557
  system: typeof LOINC_SYSTEM_URL;
175
558
  code: string;
@@ -209,6 +592,32 @@ export declare const HealthcareBasicSections: Readonly<{
209
592
  i18nKey: `org.loinc.${string}`;
210
593
  titleEn?: string;
211
594
  }>;
595
+ AdvanceDirectives: Readonly<{
596
+ system: typeof LOINC_SYSTEM_URL;
597
+ code: string;
598
+ attributeValue: string;
599
+ /**
600
+ * @deprecated Use `attributeValue`.
601
+ * Kept as compatibility alias because this token is a reusable claim value,
602
+ * not a claim key/attribute name.
603
+ */
604
+ claim: string;
605
+ i18nKey: `org.loinc.${string}`;
606
+ titleEn?: string;
607
+ }>;
608
+ Instructions: Readonly<{
609
+ system: typeof LOINC_SYSTEM_URL;
610
+ code: string;
611
+ attributeValue: string;
612
+ /**
613
+ * @deprecated Use `attributeValue`.
614
+ * Kept as compatibility alias because this token is a reusable claim value,
615
+ * not a claim key/attribute name.
616
+ */
617
+ claim: string;
618
+ i18nKey: `org.loinc.${string}`;
619
+ titleEn?: string;
620
+ }>;
212
621
  }>;
213
622
  export declare const HealthcareDocumentTypes: Readonly<{
214
623
  readonly IPS: Readonly<{
@@ -219,8 +628,21 @@ export declare const HealthcareDocumentTypes: Readonly<{
219
628
  titleEn?: string;
220
629
  }>;
221
630
  }>;
222
- export declare const HealthcareAdditionalSections: Readonly<{
223
- AdvanceDirectives: Readonly<{
631
+ export declare const HealthcareKindOfDocumentSections: Readonly<Record<string, Readonly<{
632
+ system: typeof LOINC_SYSTEM_URL;
633
+ code: string;
634
+ attributeValue: string;
635
+ /**
636
+ * @deprecated Use `attributeValue`.
637
+ * Kept as compatibility alias because this token is a reusable claim value,
638
+ * not a claim key/attribute name.
639
+ */
640
+ claim: string;
641
+ i18nKey: `org.loinc.${string}`;
642
+ titleEn?: string;
643
+ }>>>;
644
+ export declare const HealthcareTypeOfServiceSections: Readonly<{
645
+ 'LP438240-6': Readonly<{
224
646
  system: typeof LOINC_SYSTEM_URL;
225
647
  code: string;
226
648
  attributeValue: string;
@@ -233,6 +655,22 @@ export declare const HealthcareAdditionalSections: Readonly<{
233
655
  i18nKey: `org.loinc.${string}`;
234
656
  titleEn?: string;
235
657
  }>;
658
+ }>;
659
+ export declare const HealthcareSubjectMatterDomainSections: Readonly<Record<string, Readonly<{
660
+ system: typeof LOINC_SYSTEM_URL;
661
+ code: string;
662
+ attributeValue: string;
663
+ /**
664
+ * @deprecated Use `attributeValue`.
665
+ * Kept as compatibility alias because this token is a reusable claim value,
666
+ * not a claim key/attribute name.
667
+ */
668
+ claim: string;
669
+ i18nKey: `org.loinc.${string}`;
670
+ titleEn?: string;
671
+ }>>>;
672
+ /** @deprecated Use the explicit LP families instead. */
673
+ export declare const HealthcareAdditionalSections: Readonly<{
236
674
  DiagnosticImaging: Readonly<{
237
675
  system: typeof LOINC_SYSTEM_URL;
238
676
  code: string;
@@ -246,7 +684,48 @@ export declare const HealthcareAdditionalSections: Readonly<{
246
684
  i18nKey: `org.loinc.${string}`;
247
685
  titleEn?: string;
248
686
  }>;
249
- HistoryOfPastIllness: Readonly<{
687
+ ReasonForReferral: Readonly<{
688
+ system: typeof LOINC_SYSTEM_URL;
689
+ code: string;
690
+ attributeValue: string;
691
+ /**
692
+ * @deprecated Use `attributeValue`.
693
+ * Kept as compatibility alias because this token is a reusable claim value,
694
+ * not a claim key/attribute name.
695
+ */
696
+ claim: string;
697
+ i18nKey: `org.loinc.${string}`;
698
+ titleEn?: string;
699
+ }>;
700
+ ChiefComplaint: Readonly<{
701
+ system: typeof LOINC_SYSTEM_URL;
702
+ code: string;
703
+ attributeValue: string;
704
+ /**
705
+ * @deprecated Use `attributeValue`.
706
+ * Kept as compatibility alias because this token is a reusable claim value,
707
+ * not a claim key/attribute name.
708
+ */
709
+ claim: string;
710
+ i18nKey: `org.loinc.${string}`;
711
+ titleEn?: string;
712
+ }>;
713
+ HealthcareGeneral: Readonly<{
714
+ system: typeof LOINC_SYSTEM_URL;
715
+ code: string;
716
+ attributeValue: string;
717
+ /**
718
+ * @deprecated Use `attributeValue`.
719
+ * Kept as compatibility alias because this token is a reusable claim value,
720
+ * not a claim key/attribute name.
721
+ */
722
+ claim: string;
723
+ i18nKey: `org.loinc.${string}`;
724
+ titleEn?: string;
725
+ }>;
726
+ }>;
727
+ export declare const HealthcareAllSections: Readonly<{
728
+ DiagnosticImaging: Readonly<{
250
729
  system: typeof LOINC_SYSTEM_URL;
251
730
  code: string;
252
731
  attributeValue: string;
@@ -298,9 +777,7 @@ export declare const HealthcareAdditionalSections: Readonly<{
298
777
  i18nKey: `org.loinc.${string}`;
299
778
  titleEn?: string;
300
779
  }>;
301
- }>;
302
- export declare const HealthcareAllSections: Readonly<{
303
- AdvanceDirectives: Readonly<{
780
+ 'LP438240-6': Readonly<{
304
781
  system: typeof LOINC_SYSTEM_URL;
305
782
  code: string;
306
783
  attributeValue: string;
@@ -313,7 +790,7 @@ export declare const HealthcareAllSections: Readonly<{
313
790
  i18nKey: `org.loinc.${string}`;
314
791
  titleEn?: string;
315
792
  }>;
316
- DiagnosticImaging: Readonly<{
793
+ PatientSummaryDocument: Readonly<{
317
794
  system: typeof LOINC_SYSTEM_URL;
318
795
  code: string;
319
796
  attributeValue: string;
@@ -326,7 +803,7 @@ export declare const HealthcareAllSections: Readonly<{
326
803
  i18nKey: `org.loinc.${string}`;
327
804
  titleEn?: string;
328
805
  }>;
329
- HistoryOfPastIllness: Readonly<{
806
+ AllergiesAndIntolerances: Readonly<{
330
807
  system: typeof LOINC_SYSTEM_URL;
331
808
  code: string;
332
809
  attributeValue: string;
@@ -339,7 +816,7 @@ export declare const HealthcareAllSections: Readonly<{
339
816
  i18nKey: `org.loinc.${string}`;
340
817
  titleEn?: string;
341
818
  }>;
342
- ReasonForReferral: Readonly<{
819
+ DietAndNutrition: Readonly<{
343
820
  system: typeof LOINC_SYSTEM_URL;
344
821
  code: string;
345
822
  attributeValue: string;
@@ -352,7 +829,7 @@ export declare const HealthcareAllSections: Readonly<{
352
829
  i18nKey: `org.loinc.${string}`;
353
830
  titleEn?: string;
354
831
  }>;
355
- ChiefComplaint: Readonly<{
832
+ HistoryOfMedicationUse: Readonly<{
356
833
  system: typeof LOINC_SYSTEM_URL;
357
834
  code: string;
358
835
  attributeValue: string;
@@ -365,7 +842,7 @@ export declare const HealthcareAllSections: Readonly<{
365
842
  i18nKey: `org.loinc.${string}`;
366
843
  titleEn?: string;
367
844
  }>;
368
- HealthcareGeneral: Readonly<{
845
+ HistoryOfFamilyMemberDiseases: Readonly<{
369
846
  system: typeof LOINC_SYSTEM_URL;
370
847
  code: string;
371
848
  attributeValue: string;
@@ -378,7 +855,7 @@ export declare const HealthcareAllSections: Readonly<{
378
855
  i18nKey: `org.loinc.${string}`;
379
856
  titleEn?: string;
380
857
  }>;
381
- PatientSummaryDocument: Readonly<{
858
+ HistoryOfHospitalizationsAndOutpatientVisits: Readonly<{
382
859
  system: typeof LOINC_SYSTEM_URL;
383
860
  code: string;
384
861
  attributeValue: string;
@@ -391,7 +868,7 @@ export declare const HealthcareAllSections: Readonly<{
391
868
  i18nKey: `org.loinc.${string}`;
392
869
  titleEn?: string;
393
870
  }>;
394
- AllergiesAndIntolerances: Readonly<{
871
+ HistoryOfPastIllness: Readonly<{
395
872
  system: typeof LOINC_SYSTEM_URL;
396
873
  code: string;
397
874
  attributeValue: string;
@@ -404,7 +881,7 @@ export declare const HealthcareAllSections: Readonly<{
404
881
  i18nKey: `org.loinc.${string}`;
405
882
  titleEn?: string;
406
883
  }>;
407
- HistoryOfMedicationUse: Readonly<{
884
+ HistoryOfPresentIllness: Readonly<{
408
885
  system: typeof LOINC_SYSTEM_URL;
409
886
  code: string;
410
887
  attributeValue: string;
@@ -430,6 +907,19 @@ export declare const HealthcareAllSections: Readonly<{
430
907
  i18nKey: `org.loinc.${string}`;
431
908
  titleEn?: string;
432
909
  }>;
910
+ ProblemListNarrativeReported: Readonly<{
911
+ system: typeof LOINC_SYSTEM_URL;
912
+ code: string;
913
+ attributeValue: string;
914
+ /**
915
+ * @deprecated Use `attributeValue`.
916
+ * Kept as compatibility alias because this token is a reusable claim value,
917
+ * not a claim key/attribute name.
918
+ */
919
+ claim: string;
920
+ i18nKey: `org.loinc.${string}`;
921
+ titleEn?: string;
922
+ }>;
433
923
  Results: Readonly<{
434
924
  system: typeof LOINC_SYSTEM_URL;
435
925
  code: string;
@@ -495,6 +985,19 @@ export declare const HealthcareAllSections: Readonly<{
495
985
  i18nKey: `org.loinc.${string}`;
496
986
  titleEn?: string;
497
987
  }>;
988
+ PlanOfTreatment: Readonly<{
989
+ system: typeof LOINC_SYSTEM_URL;
990
+ code: string;
991
+ attributeValue: string;
992
+ /**
993
+ * @deprecated Use `attributeValue`.
994
+ * Kept as compatibility alias because this token is a reusable claim value,
995
+ * not a claim key/attribute name.
996
+ */
997
+ claim: string;
998
+ i18nKey: `org.loinc.${string}`;
999
+ titleEn?: string;
1000
+ }>;
498
1001
  PlanOfCare: Readonly<{
499
1002
  system: typeof LOINC_SYSTEM_URL;
500
1003
  code: string;
@@ -534,18 +1037,64 @@ export declare const HealthcareAllSections: Readonly<{
534
1037
  i18nKey: `org.loinc.${string}`;
535
1038
  titleEn?: string;
536
1039
  }>;
1040
+ AdvanceDirectives: Readonly<{
1041
+ system: typeof LOINC_SYSTEM_URL;
1042
+ code: string;
1043
+ attributeValue: string;
1044
+ /**
1045
+ * @deprecated Use `attributeValue`.
1046
+ * Kept as compatibility alias because this token is a reusable claim value,
1047
+ * not a claim key/attribute name.
1048
+ */
1049
+ claim: string;
1050
+ i18nKey: `org.loinc.${string}`;
1051
+ titleEn?: string;
1052
+ }>;
1053
+ Instructions: Readonly<{
1054
+ system: typeof LOINC_SYSTEM_URL;
1055
+ code: string;
1056
+ attributeValue: string;
1057
+ /**
1058
+ * @deprecated Use `attributeValue`.
1059
+ * Kept as compatibility alias because this token is a reusable claim value,
1060
+ * not a claim key/attribute name.
1061
+ */
1062
+ claim: string;
1063
+ i18nKey: `org.loinc.${string}`;
1064
+ titleEn?: string;
1065
+ }>;
537
1066
  }>;
538
1067
  /**
539
1068
  * Full section families sourced from the existing section catalogs in
540
1069
  * `models/clinical-sections.en.ts`.
541
1070
  *
542
1071
  * Family mapping used by SDK/business layers:
543
- * - `summary`: IPS/base summary sections.
544
- * - `management`: kind-of-document and type-of-service oriented sections.
545
- * - `subjectMatterDomain`: additional service-domain sections.
1072
+ * - `core-section`: central summary and IPS-oriented sections.
1073
+ * - `kind-of-document`: LP document classification.
1074
+ * - `type-of-service`: LP service classification.
1075
+ * - `subject-matter-domain`: LP specialty/domain classification.
1076
+ * Deprecated aliases remain available for compatibility:
1077
+ * - `summary` -> `core-section`
1078
+ * - `management` -> merged `kind-of-document` + `type-of-service`
1079
+ * - `subjectMatterDomain` -> `subject-matter-domain`
546
1080
  */
547
1081
  export declare const HealthcareSectionsByFamily: Readonly<{
548
- readonly summary: Readonly<Record<string, Readonly<{
1082
+ readonly "core-section": Readonly<{
1083
+ [x: string]: Readonly<{
1084
+ system: typeof LOINC_SYSTEM_URL;
1085
+ code: string;
1086
+ attributeValue: string;
1087
+ /**
1088
+ * @deprecated Use `attributeValue`.
1089
+ * Kept as compatibility alias because this token is a reusable claim value,
1090
+ * not a claim key/attribute name.
1091
+ */
1092
+ claim: string;
1093
+ i18nKey: `org.loinc.${string}`;
1094
+ titleEn?: string;
1095
+ }>;
1096
+ }>;
1097
+ readonly "kind-of-document": Readonly<Record<string, Readonly<{
549
1098
  system: typeof LOINC_SYSTEM_URL;
550
1099
  code: string;
551
1100
  attributeValue: string;
@@ -558,7 +1107,22 @@ export declare const HealthcareSectionsByFamily: Readonly<{
558
1107
  i18nKey: `org.loinc.${string}`;
559
1108
  titleEn?: string;
560
1109
  }>>>;
561
- readonly management: Readonly<Record<string, Readonly<{
1110
+ readonly "type-of-service": Readonly<{
1111
+ 'LP438240-6': Readonly<{
1112
+ system: typeof LOINC_SYSTEM_URL;
1113
+ code: string;
1114
+ attributeValue: string;
1115
+ /**
1116
+ * @deprecated Use `attributeValue`.
1117
+ * Kept as compatibility alias because this token is a reusable claim value,
1118
+ * not a claim key/attribute name.
1119
+ */
1120
+ claim: string;
1121
+ i18nKey: `org.loinc.${string}`;
1122
+ titleEn?: string;
1123
+ }>;
1124
+ }>;
1125
+ readonly "subject-matter-domain": Readonly<Record<string, Readonly<{
562
1126
  system: typeof LOINC_SYSTEM_URL;
563
1127
  code: string;
564
1128
  attributeValue: string;
@@ -571,6 +1135,36 @@ export declare const HealthcareSectionsByFamily: Readonly<{
571
1135
  i18nKey: `org.loinc.${string}`;
572
1136
  titleEn?: string;
573
1137
  }>>>;
1138
+ readonly summary: Readonly<{
1139
+ [x: string]: Readonly<{
1140
+ system: typeof LOINC_SYSTEM_URL;
1141
+ code: string;
1142
+ attributeValue: string;
1143
+ /**
1144
+ * @deprecated Use `attributeValue`.
1145
+ * Kept as compatibility alias because this token is a reusable claim value,
1146
+ * not a claim key/attribute name.
1147
+ */
1148
+ claim: string;
1149
+ i18nKey: `org.loinc.${string}`;
1150
+ titleEn?: string;
1151
+ }>;
1152
+ }>;
1153
+ readonly management: Readonly<{
1154
+ 'LP438240-6': Readonly<{
1155
+ system: typeof LOINC_SYSTEM_URL;
1156
+ code: string;
1157
+ attributeValue: string;
1158
+ /**
1159
+ * @deprecated Use `attributeValue`.
1160
+ * Kept as compatibility alias because this token is a reusable claim value,
1161
+ * not a claim key/attribute name.
1162
+ */
1163
+ claim: string;
1164
+ i18nKey: `org.loinc.${string}`;
1165
+ titleEn?: string;
1166
+ }>;
1167
+ }>;
574
1168
  readonly subjectMatterDomain: Readonly<Record<string, Readonly<{
575
1169
  system: typeof LOINC_SYSTEM_URL;
576
1170
  code: string;
@@ -587,6 +1181,7 @@ export declare const HealthcareSectionsByFamily: Readonly<{
587
1181
  }>;
588
1182
  export declare const HealthcareAllSectionsByCode: Readonly<Record<string, HealthcareSectionDescriptor>>;
589
1183
  export declare function getHealthcareSectionByCode(code: string): HealthcareSectionDescriptor | undefined;
1184
+ export declare function getHealthcareSectionFamilyByCode(code: string): HealthcareCanonicalSectionFamily | undefined;
590
1185
  export declare function getHealthcareSectionsByFamily(family: HealthcareSectionFamily): Readonly<Record<string, HealthcareSectionDescriptor>>;
591
1186
  export declare const HealthcareConsentPurposes: Readonly<{
592
1187
  readonly Treatment: "TREAT";