gdc-common-utils-ts 1.14.3 → 1.14.9

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 (48) hide show
  1. package/README.md +2 -0
  2. package/dist/constants/communication.d.ts +30 -0
  3. package/dist/constants/communication.js +3 -1
  4. package/dist/constants/healthcare.d.ts +290 -3
  5. package/dist/constants/healthcare.js +108 -16
  6. package/dist/examples/communication-bundle-document-request.d.ts +24 -0
  7. package/dist/examples/communication-bundle-document-request.js +59 -0
  8. package/dist/examples/communication-bundle-session.js +39 -41
  9. package/dist/examples/index.d.ts +2 -0
  10. package/dist/examples/index.js +2 -0
  11. package/dist/examples/ips-bundle.d.ts +25 -0
  12. package/dist/examples/ips-bundle.js +106 -0
  13. package/dist/examples/shared.d.ts +42 -0
  14. package/dist/examples/shared.js +62 -4
  15. package/dist/models/consent-rule.d.ts +13 -1
  16. package/dist/models/consent-rule.js +9 -0
  17. package/dist/models/interoperable-claims/allergy-intolerance-claims.d.ts +43 -0
  18. package/dist/models/interoperable-claims/allergy-intolerance-claims.js +54 -0
  19. package/dist/models/interoperable-claims/condition-claims.d.ts +40 -0
  20. package/dist/models/interoperable-claims/condition-claims.js +50 -0
  21. package/dist/models/interoperable-claims/diagnostic-report-claims.d.ts +96 -0
  22. package/dist/models/interoperable-claims/diagnostic-report-claims.js +105 -0
  23. package/dist/models/interoperable-claims/index.d.ts +1 -0
  24. package/dist/models/interoperable-claims/index.js +1 -0
  25. package/dist/models/interoperable-claims/medication-statement-claims.d.ts +102 -0
  26. package/dist/models/interoperable-claims/medication-statement-claims.js +172 -0
  27. package/dist/utils/allergy-intolerance-claim-helpers.d.ts +10 -0
  28. package/dist/utils/allergy-intolerance-claim-helpers.js +47 -0
  29. package/dist/utils/claim-list-helpers.d.ts +21 -0
  30. package/dist/utils/claim-list-helpers.js +50 -0
  31. package/dist/utils/clinical-resource-view.d.ts +19 -7
  32. package/dist/utils/clinical-resource-view.js +142 -17
  33. package/dist/utils/communication-bundle-document-request.d.ts +202 -0
  34. package/dist/utils/communication-bundle-document-request.js +410 -0
  35. package/dist/utils/communication-bundle-session.d.ts +65 -0
  36. package/dist/utils/communication-bundle-session.js +194 -0
  37. package/dist/utils/communication-claim-helpers.d.ts +17 -0
  38. package/dist/utils/communication-claim-helpers.js +57 -0
  39. package/dist/utils/condition-claim-helpers.d.ts +10 -0
  40. package/dist/utils/condition-claim-helpers.js +47 -0
  41. package/dist/utils/consent-claim-helpers.d.ts +59 -13
  42. package/dist/utils/consent-claim-helpers.js +142 -49
  43. package/dist/utils/consent.js +29 -1
  44. package/dist/utils/index.d.ts +5 -0
  45. package/dist/utils/index.js +5 -0
  46. package/dist/utils/medication-claim-helpers.d.ts +42 -1
  47. package/dist/utils/medication-claim-helpers.js +176 -21
  48. package/package.json +1 -1
package/README.md CHANGED
@@ -94,6 +94,8 @@ import { JweObject, JwtCompactParts } from 'gdc-common-utils-ts/models';
94
94
  `internet-first` discovery seeding by `jurisdiction + version + networkType`
95
95
  - [docs/consent-access-matrix-task.md](docs/consent-access-matrix-task.md)
96
96
  - next-step design/task document for active consent aggregation, explicit deny precedence, controller views, permission-request communications, and SMART access evaluation
97
+ - [docs/IPS_BUNDLE_101.md](docs/IPS_BUNDLE_101.md)
98
+ - quick guide for editing IPS-like bundle history in `Communication.content-attachment-data`, reading `resource.meta.claims`, and building frontend cards by section
97
99
 
98
100
  ## Dataspace Protocol And Discovery
99
101
 
@@ -2,27 +2,57 @@ export declare const HL7_COMMUNICATION_CATEGORY_SYSTEM: "http://terminology.hl7.
2
2
  export type CommunicationCategoryDescriptor = Readonly<{
3
3
  system: typeof HL7_COMMUNICATION_CATEGORY_SYSTEM;
4
4
  code: string;
5
+ attributeValue: string;
6
+ /**
7
+ * @deprecated Use `attributeValue`.
8
+ * Kept as compatibility alias because this token is a reusable attribute
9
+ * value, not a claim key/attribute name.
10
+ */
5
11
  claim: string;
6
12
  }>;
7
13
  export declare const CommunicationCategoryCodes: Readonly<{
8
14
  readonly Alert: Readonly<{
9
15
  system: typeof HL7_COMMUNICATION_CATEGORY_SYSTEM;
10
16
  code: string;
17
+ attributeValue: string;
18
+ /**
19
+ * @deprecated Use `attributeValue`.
20
+ * Kept as compatibility alias because this token is a reusable attribute
21
+ * value, not a claim key/attribute name.
22
+ */
11
23
  claim: string;
12
24
  }>;
13
25
  readonly Notification: Readonly<{
14
26
  system: typeof HL7_COMMUNICATION_CATEGORY_SYSTEM;
15
27
  code: string;
28
+ attributeValue: string;
29
+ /**
30
+ * @deprecated Use `attributeValue`.
31
+ * Kept as compatibility alias because this token is a reusable attribute
32
+ * value, not a claim key/attribute name.
33
+ */
16
34
  claim: string;
17
35
  }>;
18
36
  readonly Reminder: Readonly<{
19
37
  system: typeof HL7_COMMUNICATION_CATEGORY_SYSTEM;
20
38
  code: string;
39
+ attributeValue: string;
40
+ /**
41
+ * @deprecated Use `attributeValue`.
42
+ * Kept as compatibility alias because this token is a reusable attribute
43
+ * value, not a claim key/attribute name.
44
+ */
21
45
  claim: string;
22
46
  }>;
23
47
  readonly Instruction: Readonly<{
24
48
  system: typeof HL7_COMMUNICATION_CATEGORY_SYSTEM;
25
49
  code: string;
50
+ attributeValue: string;
51
+ /**
52
+ * @deprecated Use `attributeValue`.
53
+ * Kept as compatibility alias because this token is a reusable attribute
54
+ * value, not a claim key/attribute name.
55
+ */
26
56
  claim: string;
27
57
  }>;
28
58
  }>;
@@ -1,9 +1,11 @@
1
1
  export const HL7_COMMUNICATION_CATEGORY_SYSTEM = 'http://terminology.hl7.org/CodeSystem/communication-category';
2
2
  function defineCommunicationCategory(code) {
3
+ const attributeValue = `${HL7_COMMUNICATION_CATEGORY_SYSTEM}|${code}`;
3
4
  return Object.freeze({
4
5
  system: HL7_COMMUNICATION_CATEGORY_SYSTEM,
5
6
  code,
6
- claim: `${HL7_COMMUNICATION_CATEGORY_SYSTEM}|${code}`,
7
+ attributeValue,
8
+ claim: attributeValue,
7
9
  });
8
10
  }
9
11
  export const CommunicationCategoryCodes = Object.freeze({
@@ -3,10 +3,32 @@ import { type DataspaceSector } from './sectors';
3
3
  export type HealthcareSectionDescriptor = Readonly<{
4
4
  system: typeof LOINC_SYSTEM_URL;
5
5
  code: string;
6
+ attributeValue: string;
7
+ /**
8
+ * @deprecated Use `attributeValue`.
9
+ * Kept as compatibility alias because this token is a reusable claim value,
10
+ * not a claim key/attribute name.
11
+ */
6
12
  claim: string;
7
13
  i18nKey: `org.loinc.${string}`;
8
14
  titleEn?: string;
9
15
  }>;
16
+ export type HealthcareDocumentTypeDescriptor = Readonly<{
17
+ id: string;
18
+ system: typeof LOINC_SYSTEM_URL;
19
+ code: string;
20
+ attributeValue: string;
21
+ titleEn?: string;
22
+ }>;
23
+ /**
24
+ * Canonical logical identifiers for document types backed by the LOINC
25
+ * ontology. These keys are stable SDK-facing names; the concrete LOINC token
26
+ * lives in `HealthcareDocumentTypes`.
27
+ */
28
+ export declare const DocumentTypeLoincOntology: Readonly<{
29
+ readonly IPS: "IPS";
30
+ }>;
31
+ export type DocumentTypeLoincOntologyKey = typeof DocumentTypeLoincOntology[keyof typeof DocumentTypeLoincOntology];
10
32
  export declare const ISCO08_CODING_SYSTEM: "org.ilo.isco";
11
33
  export declare const ISCO08_I18N_NAMESPACE: "org.ilo.isco-08";
12
34
  export declare const HealthcareRoleFamilies: Readonly<{
@@ -34,6 +56,12 @@ export declare const HealthcareBasicSections: Readonly<{
34
56
  PatientSummaryDocument: Readonly<{
35
57
  system: typeof LOINC_SYSTEM_URL;
36
58
  code: string;
59
+ attributeValue: string;
60
+ /**
61
+ * @deprecated Use `attributeValue`.
62
+ * Kept as compatibility alias because this token is a reusable claim value,
63
+ * not a claim key/attribute name.
64
+ */
37
65
  claim: string;
38
66
  i18nKey: `org.loinc.${string}`;
39
67
  titleEn?: string;
@@ -41,6 +69,12 @@ export declare const HealthcareBasicSections: Readonly<{
41
69
  AllergiesAndIntolerances: Readonly<{
42
70
  system: typeof LOINC_SYSTEM_URL;
43
71
  code: string;
72
+ attributeValue: string;
73
+ /**
74
+ * @deprecated Use `attributeValue`.
75
+ * Kept as compatibility alias because this token is a reusable claim value,
76
+ * not a claim key/attribute name.
77
+ */
44
78
  claim: string;
45
79
  i18nKey: `org.loinc.${string}`;
46
80
  titleEn?: string;
@@ -48,6 +82,12 @@ export declare const HealthcareBasicSections: Readonly<{
48
82
  HistoryOfMedicationUse: Readonly<{
49
83
  system: typeof LOINC_SYSTEM_URL;
50
84
  code: string;
85
+ attributeValue: string;
86
+ /**
87
+ * @deprecated Use `attributeValue`.
88
+ * Kept as compatibility alias because this token is a reusable claim value,
89
+ * not a claim key/attribute name.
90
+ */
51
91
  claim: string;
52
92
  i18nKey: `org.loinc.${string}`;
53
93
  titleEn?: string;
@@ -55,6 +95,12 @@ export declare const HealthcareBasicSections: Readonly<{
55
95
  ProblemList: Readonly<{
56
96
  system: typeof LOINC_SYSTEM_URL;
57
97
  code: string;
98
+ attributeValue: string;
99
+ /**
100
+ * @deprecated Use `attributeValue`.
101
+ * Kept as compatibility alias because this token is a reusable claim value,
102
+ * not a claim key/attribute name.
103
+ */
58
104
  claim: string;
59
105
  i18nKey: `org.loinc.${string}`;
60
106
  titleEn?: string;
@@ -62,6 +108,12 @@ export declare const HealthcareBasicSections: Readonly<{
62
108
  Results: Readonly<{
63
109
  system: typeof LOINC_SYSTEM_URL;
64
110
  code: string;
111
+ attributeValue: string;
112
+ /**
113
+ * @deprecated Use `attributeValue`.
114
+ * Kept as compatibility alias because this token is a reusable claim value,
115
+ * not a claim key/attribute name.
116
+ */
65
117
  claim: string;
66
118
  i18nKey: `org.loinc.${string}`;
67
119
  titleEn?: string;
@@ -69,6 +121,12 @@ export declare const HealthcareBasicSections: Readonly<{
69
121
  Procedures: Readonly<{
70
122
  system: typeof LOINC_SYSTEM_URL;
71
123
  code: string;
124
+ attributeValue: string;
125
+ /**
126
+ * @deprecated Use `attributeValue`.
127
+ * Kept as compatibility alias because this token is a reusable claim value,
128
+ * not a claim key/attribute name.
129
+ */
72
130
  claim: string;
73
131
  i18nKey: `org.loinc.${string}`;
74
132
  titleEn?: string;
@@ -76,6 +134,12 @@ export declare const HealthcareBasicSections: Readonly<{
76
134
  Immunizations: Readonly<{
77
135
  system: typeof LOINC_SYSTEM_URL;
78
136
  code: string;
137
+ attributeValue: string;
138
+ /**
139
+ * @deprecated Use `attributeValue`.
140
+ * Kept as compatibility alias because this token is a reusable claim value,
141
+ * not a claim key/attribute name.
142
+ */
79
143
  claim: string;
80
144
  i18nKey: `org.loinc.${string}`;
81
145
  titleEn?: string;
@@ -83,6 +147,12 @@ export declare const HealthcareBasicSections: Readonly<{
83
147
  MedicalDevices: Readonly<{
84
148
  system: typeof LOINC_SYSTEM_URL;
85
149
  code: string;
150
+ attributeValue: string;
151
+ /**
152
+ * @deprecated Use `attributeValue`.
153
+ * Kept as compatibility alias because this token is a reusable claim value,
154
+ * not a claim key/attribute name.
155
+ */
86
156
  claim: string;
87
157
  i18nKey: `org.loinc.${string}`;
88
158
  titleEn?: string;
@@ -90,6 +160,12 @@ export declare const HealthcareBasicSections: Readonly<{
90
160
  FunctionalStatus: Readonly<{
91
161
  system: typeof LOINC_SYSTEM_URL;
92
162
  code: string;
163
+ attributeValue: string;
164
+ /**
165
+ * @deprecated Use `attributeValue`.
166
+ * Kept as compatibility alias because this token is a reusable claim value,
167
+ * not a claim key/attribute name.
168
+ */
93
169
  claim: string;
94
170
  i18nKey: `org.loinc.${string}`;
95
171
  titleEn?: string;
@@ -97,6 +173,12 @@ export declare const HealthcareBasicSections: Readonly<{
97
173
  PlanOfCare: Readonly<{
98
174
  system: typeof LOINC_SYSTEM_URL;
99
175
  code: string;
176
+ attributeValue: string;
177
+ /**
178
+ * @deprecated Use `attributeValue`.
179
+ * Kept as compatibility alias because this token is a reusable claim value,
180
+ * not a claim key/attribute name.
181
+ */
100
182
  claim: string;
101
183
  i18nKey: `org.loinc.${string}`;
102
184
  titleEn?: string;
@@ -104,6 +186,12 @@ export declare const HealthcareBasicSections: Readonly<{
104
186
  SocialHistory: Readonly<{
105
187
  system: typeof LOINC_SYSTEM_URL;
106
188
  code: string;
189
+ attributeValue: string;
190
+ /**
191
+ * @deprecated Use `attributeValue`.
192
+ * Kept as compatibility alias because this token is a reusable claim value,
193
+ * not a claim key/attribute name.
194
+ */
107
195
  claim: string;
108
196
  i18nKey: `org.loinc.${string}`;
109
197
  titleEn?: string;
@@ -111,15 +199,36 @@ export declare const HealthcareBasicSections: Readonly<{
111
199
  VitalSigns: Readonly<{
112
200
  system: typeof LOINC_SYSTEM_URL;
113
201
  code: string;
202
+ attributeValue: string;
203
+ /**
204
+ * @deprecated Use `attributeValue`.
205
+ * Kept as compatibility alias because this token is a reusable claim value,
206
+ * not a claim key/attribute name.
207
+ */
114
208
  claim: string;
115
209
  i18nKey: `org.loinc.${string}`;
116
210
  titleEn?: string;
117
211
  }>;
118
212
  }>;
213
+ export declare const HealthcareDocumentTypes: Readonly<{
214
+ readonly IPS: Readonly<{
215
+ id: string;
216
+ system: typeof LOINC_SYSTEM_URL;
217
+ code: string;
218
+ attributeValue: string;
219
+ titleEn?: string;
220
+ }>;
221
+ }>;
119
222
  export declare const HealthcareAdditionalSections: Readonly<{
120
223
  AdvanceDirectives: Readonly<{
121
224
  system: typeof LOINC_SYSTEM_URL;
122
225
  code: string;
226
+ attributeValue: string;
227
+ /**
228
+ * @deprecated Use `attributeValue`.
229
+ * Kept as compatibility alias because this token is a reusable claim value,
230
+ * not a claim key/attribute name.
231
+ */
123
232
  claim: string;
124
233
  i18nKey: `org.loinc.${string}`;
125
234
  titleEn?: string;
@@ -127,6 +236,12 @@ export declare const HealthcareAdditionalSections: Readonly<{
127
236
  DiagnosticImaging: Readonly<{
128
237
  system: typeof LOINC_SYSTEM_URL;
129
238
  code: string;
239
+ attributeValue: string;
240
+ /**
241
+ * @deprecated Use `attributeValue`.
242
+ * Kept as compatibility alias because this token is a reusable claim value,
243
+ * not a claim key/attribute name.
244
+ */
130
245
  claim: string;
131
246
  i18nKey: `org.loinc.${string}`;
132
247
  titleEn?: string;
@@ -134,6 +249,12 @@ export declare const HealthcareAdditionalSections: Readonly<{
134
249
  HistoryOfPastIllness: Readonly<{
135
250
  system: typeof LOINC_SYSTEM_URL;
136
251
  code: string;
252
+ attributeValue: string;
253
+ /**
254
+ * @deprecated Use `attributeValue`.
255
+ * Kept as compatibility alias because this token is a reusable claim value,
256
+ * not a claim key/attribute name.
257
+ */
137
258
  claim: string;
138
259
  i18nKey: `org.loinc.${string}`;
139
260
  titleEn?: string;
@@ -141,6 +262,12 @@ export declare const HealthcareAdditionalSections: Readonly<{
141
262
  ReasonForReferral: Readonly<{
142
263
  system: typeof LOINC_SYSTEM_URL;
143
264
  code: string;
265
+ attributeValue: string;
266
+ /**
267
+ * @deprecated Use `attributeValue`.
268
+ * Kept as compatibility alias because this token is a reusable claim value,
269
+ * not a claim key/attribute name.
270
+ */
144
271
  claim: string;
145
272
  i18nKey: `org.loinc.${string}`;
146
273
  titleEn?: string;
@@ -148,6 +275,12 @@ export declare const HealthcareAdditionalSections: Readonly<{
148
275
  ChiefComplaint: Readonly<{
149
276
  system: typeof LOINC_SYSTEM_URL;
150
277
  code: string;
278
+ attributeValue: string;
279
+ /**
280
+ * @deprecated Use `attributeValue`.
281
+ * Kept as compatibility alias because this token is a reusable claim value,
282
+ * not a claim key/attribute name.
283
+ */
151
284
  claim: string;
152
285
  i18nKey: `org.loinc.${string}`;
153
286
  titleEn?: string;
@@ -155,6 +288,12 @@ export declare const HealthcareAdditionalSections: Readonly<{
155
288
  HealthcareGeneral: Readonly<{
156
289
  system: typeof LOINC_SYSTEM_URL;
157
290
  code: string;
291
+ attributeValue: string;
292
+ /**
293
+ * @deprecated Use `attributeValue`.
294
+ * Kept as compatibility alias because this token is a reusable claim value,
295
+ * not a claim key/attribute name.
296
+ */
158
297
  claim: string;
159
298
  i18nKey: `org.loinc.${string}`;
160
299
  titleEn?: string;
@@ -164,6 +303,12 @@ export declare const HealthcareAllSections: Readonly<{
164
303
  AdvanceDirectives: Readonly<{
165
304
  system: typeof LOINC_SYSTEM_URL;
166
305
  code: string;
306
+ attributeValue: string;
307
+ /**
308
+ * @deprecated Use `attributeValue`.
309
+ * Kept as compatibility alias because this token is a reusable claim value,
310
+ * not a claim key/attribute name.
311
+ */
167
312
  claim: string;
168
313
  i18nKey: `org.loinc.${string}`;
169
314
  titleEn?: string;
@@ -171,6 +316,12 @@ export declare const HealthcareAllSections: Readonly<{
171
316
  DiagnosticImaging: Readonly<{
172
317
  system: typeof LOINC_SYSTEM_URL;
173
318
  code: string;
319
+ attributeValue: string;
320
+ /**
321
+ * @deprecated Use `attributeValue`.
322
+ * Kept as compatibility alias because this token is a reusable claim value,
323
+ * not a claim key/attribute name.
324
+ */
174
325
  claim: string;
175
326
  i18nKey: `org.loinc.${string}`;
176
327
  titleEn?: string;
@@ -178,6 +329,12 @@ export declare const HealthcareAllSections: Readonly<{
178
329
  HistoryOfPastIllness: Readonly<{
179
330
  system: typeof LOINC_SYSTEM_URL;
180
331
  code: string;
332
+ attributeValue: string;
333
+ /**
334
+ * @deprecated Use `attributeValue`.
335
+ * Kept as compatibility alias because this token is a reusable claim value,
336
+ * not a claim key/attribute name.
337
+ */
181
338
  claim: string;
182
339
  i18nKey: `org.loinc.${string}`;
183
340
  titleEn?: string;
@@ -185,6 +342,12 @@ export declare const HealthcareAllSections: Readonly<{
185
342
  ReasonForReferral: Readonly<{
186
343
  system: typeof LOINC_SYSTEM_URL;
187
344
  code: string;
345
+ attributeValue: string;
346
+ /**
347
+ * @deprecated Use `attributeValue`.
348
+ * Kept as compatibility alias because this token is a reusable claim value,
349
+ * not a claim key/attribute name.
350
+ */
188
351
  claim: string;
189
352
  i18nKey: `org.loinc.${string}`;
190
353
  titleEn?: string;
@@ -192,6 +355,12 @@ export declare const HealthcareAllSections: Readonly<{
192
355
  ChiefComplaint: Readonly<{
193
356
  system: typeof LOINC_SYSTEM_URL;
194
357
  code: string;
358
+ attributeValue: string;
359
+ /**
360
+ * @deprecated Use `attributeValue`.
361
+ * Kept as compatibility alias because this token is a reusable claim value,
362
+ * not a claim key/attribute name.
363
+ */
195
364
  claim: string;
196
365
  i18nKey: `org.loinc.${string}`;
197
366
  titleEn?: string;
@@ -199,6 +368,12 @@ export declare const HealthcareAllSections: Readonly<{
199
368
  HealthcareGeneral: Readonly<{
200
369
  system: typeof LOINC_SYSTEM_URL;
201
370
  code: string;
371
+ attributeValue: string;
372
+ /**
373
+ * @deprecated Use `attributeValue`.
374
+ * Kept as compatibility alias because this token is a reusable claim value,
375
+ * not a claim key/attribute name.
376
+ */
202
377
  claim: string;
203
378
  i18nKey: `org.loinc.${string}`;
204
379
  titleEn?: string;
@@ -206,6 +381,12 @@ export declare const HealthcareAllSections: Readonly<{
206
381
  PatientSummaryDocument: Readonly<{
207
382
  system: typeof LOINC_SYSTEM_URL;
208
383
  code: string;
384
+ attributeValue: string;
385
+ /**
386
+ * @deprecated Use `attributeValue`.
387
+ * Kept as compatibility alias because this token is a reusable claim value,
388
+ * not a claim key/attribute name.
389
+ */
209
390
  claim: string;
210
391
  i18nKey: `org.loinc.${string}`;
211
392
  titleEn?: string;
@@ -213,6 +394,12 @@ export declare const HealthcareAllSections: Readonly<{
213
394
  AllergiesAndIntolerances: Readonly<{
214
395
  system: typeof LOINC_SYSTEM_URL;
215
396
  code: string;
397
+ attributeValue: string;
398
+ /**
399
+ * @deprecated Use `attributeValue`.
400
+ * Kept as compatibility alias because this token is a reusable claim value,
401
+ * not a claim key/attribute name.
402
+ */
216
403
  claim: string;
217
404
  i18nKey: `org.loinc.${string}`;
218
405
  titleEn?: string;
@@ -220,6 +407,12 @@ export declare const HealthcareAllSections: Readonly<{
220
407
  HistoryOfMedicationUse: Readonly<{
221
408
  system: typeof LOINC_SYSTEM_URL;
222
409
  code: string;
410
+ attributeValue: string;
411
+ /**
412
+ * @deprecated Use `attributeValue`.
413
+ * Kept as compatibility alias because this token is a reusable claim value,
414
+ * not a claim key/attribute name.
415
+ */
223
416
  claim: string;
224
417
  i18nKey: `org.loinc.${string}`;
225
418
  titleEn?: string;
@@ -227,6 +420,12 @@ export declare const HealthcareAllSections: Readonly<{
227
420
  ProblemList: Readonly<{
228
421
  system: typeof LOINC_SYSTEM_URL;
229
422
  code: string;
423
+ attributeValue: string;
424
+ /**
425
+ * @deprecated Use `attributeValue`.
426
+ * Kept as compatibility alias because this token is a reusable claim value,
427
+ * not a claim key/attribute name.
428
+ */
230
429
  claim: string;
231
430
  i18nKey: `org.loinc.${string}`;
232
431
  titleEn?: string;
@@ -234,6 +433,12 @@ export declare const HealthcareAllSections: Readonly<{
234
433
  Results: Readonly<{
235
434
  system: typeof LOINC_SYSTEM_URL;
236
435
  code: string;
436
+ attributeValue: string;
437
+ /**
438
+ * @deprecated Use `attributeValue`.
439
+ * Kept as compatibility alias because this token is a reusable claim value,
440
+ * not a claim key/attribute name.
441
+ */
237
442
  claim: string;
238
443
  i18nKey: `org.loinc.${string}`;
239
444
  titleEn?: string;
@@ -241,6 +446,12 @@ export declare const HealthcareAllSections: Readonly<{
241
446
  Procedures: Readonly<{
242
447
  system: typeof LOINC_SYSTEM_URL;
243
448
  code: string;
449
+ attributeValue: string;
450
+ /**
451
+ * @deprecated Use `attributeValue`.
452
+ * Kept as compatibility alias because this token is a reusable claim value,
453
+ * not a claim key/attribute name.
454
+ */
244
455
  claim: string;
245
456
  i18nKey: `org.loinc.${string}`;
246
457
  titleEn?: string;
@@ -248,6 +459,12 @@ export declare const HealthcareAllSections: Readonly<{
248
459
  Immunizations: Readonly<{
249
460
  system: typeof LOINC_SYSTEM_URL;
250
461
  code: string;
462
+ attributeValue: string;
463
+ /**
464
+ * @deprecated Use `attributeValue`.
465
+ * Kept as compatibility alias because this token is a reusable claim value,
466
+ * not a claim key/attribute name.
467
+ */
251
468
  claim: string;
252
469
  i18nKey: `org.loinc.${string}`;
253
470
  titleEn?: string;
@@ -255,6 +472,12 @@ export declare const HealthcareAllSections: Readonly<{
255
472
  MedicalDevices: Readonly<{
256
473
  system: typeof LOINC_SYSTEM_URL;
257
474
  code: string;
475
+ attributeValue: string;
476
+ /**
477
+ * @deprecated Use `attributeValue`.
478
+ * Kept as compatibility alias because this token is a reusable claim value,
479
+ * not a claim key/attribute name.
480
+ */
258
481
  claim: string;
259
482
  i18nKey: `org.loinc.${string}`;
260
483
  titleEn?: string;
@@ -262,6 +485,12 @@ export declare const HealthcareAllSections: Readonly<{
262
485
  FunctionalStatus: Readonly<{
263
486
  system: typeof LOINC_SYSTEM_URL;
264
487
  code: string;
488
+ attributeValue: string;
489
+ /**
490
+ * @deprecated Use `attributeValue`.
491
+ * Kept as compatibility alias because this token is a reusable claim value,
492
+ * not a claim key/attribute name.
493
+ */
265
494
  claim: string;
266
495
  i18nKey: `org.loinc.${string}`;
267
496
  titleEn?: string;
@@ -269,6 +498,12 @@ export declare const HealthcareAllSections: Readonly<{
269
498
  PlanOfCare: Readonly<{
270
499
  system: typeof LOINC_SYSTEM_URL;
271
500
  code: string;
501
+ attributeValue: string;
502
+ /**
503
+ * @deprecated Use `attributeValue`.
504
+ * Kept as compatibility alias because this token is a reusable claim value,
505
+ * not a claim key/attribute name.
506
+ */
272
507
  claim: string;
273
508
  i18nKey: `org.loinc.${string}`;
274
509
  titleEn?: string;
@@ -276,6 +511,12 @@ export declare const HealthcareAllSections: Readonly<{
276
511
  SocialHistory: Readonly<{
277
512
  system: typeof LOINC_SYSTEM_URL;
278
513
  code: string;
514
+ attributeValue: string;
515
+ /**
516
+ * @deprecated Use `attributeValue`.
517
+ * Kept as compatibility alias because this token is a reusable claim value,
518
+ * not a claim key/attribute name.
519
+ */
279
520
  claim: string;
280
521
  i18nKey: `org.loinc.${string}`;
281
522
  titleEn?: string;
@@ -283,6 +524,12 @@ export declare const HealthcareAllSections: Readonly<{
283
524
  VitalSigns: Readonly<{
284
525
  system: typeof LOINC_SYSTEM_URL;
285
526
  code: string;
527
+ attributeValue: string;
528
+ /**
529
+ * @deprecated Use `attributeValue`.
530
+ * Kept as compatibility alias because this token is a reusable claim value,
531
+ * not a claim key/attribute name.
532
+ */
286
533
  claim: string;
287
534
  i18nKey: `org.loinc.${string}`;
288
535
  titleEn?: string;
@@ -301,6 +548,12 @@ export declare const HealthcareSectionsByFamily: Readonly<{
301
548
  readonly summary: Readonly<Record<string, Readonly<{
302
549
  system: typeof LOINC_SYSTEM_URL;
303
550
  code: string;
551
+ attributeValue: string;
552
+ /**
553
+ * @deprecated Use `attributeValue`.
554
+ * Kept as compatibility alias because this token is a reusable claim value,
555
+ * not a claim key/attribute name.
556
+ */
304
557
  claim: string;
305
558
  i18nKey: `org.loinc.${string}`;
306
559
  titleEn?: string;
@@ -308,6 +561,12 @@ export declare const HealthcareSectionsByFamily: Readonly<{
308
561
  readonly management: Readonly<Record<string, Readonly<{
309
562
  system: typeof LOINC_SYSTEM_URL;
310
563
  code: string;
564
+ attributeValue: string;
565
+ /**
566
+ * @deprecated Use `attributeValue`.
567
+ * Kept as compatibility alias because this token is a reusable claim value,
568
+ * not a claim key/attribute name.
569
+ */
311
570
  claim: string;
312
571
  i18nKey: `org.loinc.${string}`;
313
572
  titleEn?: string;
@@ -315,6 +574,12 @@ export declare const HealthcareSectionsByFamily: Readonly<{
315
574
  readonly subjectMatterDomain: Readonly<Record<string, Readonly<{
316
575
  system: typeof LOINC_SYSTEM_URL;
317
576
  code: string;
577
+ attributeValue: string;
578
+ /**
579
+ * @deprecated Use `attributeValue`.
580
+ * Kept as compatibility alias because this token is a reusable claim value,
581
+ * not a claim key/attribute name.
582
+ */
318
583
  claim: string;
319
584
  i18nKey: `org.loinc.${string}`;
320
585
  titleEn?: string;
@@ -333,16 +598,36 @@ export declare const HealthcareConsentPurposes: Readonly<{
333
598
  }>;
334
599
  export declare const HealthcareActorRoles: Readonly<{
335
600
  readonly Controller: "ISCO-08|1120";
601
+ readonly MedicalDoctors: "ISCO-08|221";
602
+ readonly GeneralistMedicalPractitioner: "ISCO-08|2211";
603
+ readonly SpecialistMedicalPractitioner: "ISCO-08|2212";
604
+ /**
605
+ * @deprecated Use `GeneralistMedicalPractitioner`.
606
+ * Kept as compatibility alias for the historical SDK name.
607
+ */
336
608
  readonly Physician: "ISCO-08|2211";
337
609
  readonly NursingProfessional: "ISCO-08|2221";
610
+ readonly MidwiferyProfessional: "ISCO-08|2222";
338
611
  readonly Paramedic: "ISCO-08|2240";
339
612
  readonly Veterinarian: "ISCO-08|2250";
340
613
  }>;
341
614
  export declare const HealthcareActorRoleCodes: Readonly<{
342
615
  readonly Controller: "1120";
616
+ readonly MedicalDoctors: "221";
617
+ readonly GeneralistMedicalPractitioner: "2211";
618
+ readonly SpecialistMedicalPractitioner: "2212";
619
+ /**
620
+ * @deprecated Use `GeneralistMedicalPractitioner`.
621
+ * Kept as compatibility alias for the historical SDK name.
622
+ */
343
623
  readonly Physician: "2211";
624
+ /**
625
+ * @deprecated Use `MedicalDoctors`.
626
+ * Kept as compatibility alias for the historical SDK name.
627
+ */
344
628
  readonly PhysicianBroad: "221";
345
629
  readonly NursingProfessional: "2221";
630
+ readonly MidwiferyProfessional: "2222";
346
631
  readonly Paramedic: "2240";
347
632
  readonly Veterinarian: "2250";
348
633
  }>;
@@ -377,15 +662,15 @@ export declare const HealthcareRolesByFamily: Readonly<{
377
662
  }>;
378
663
  export declare const HealthcareAllRolesByClaim: Readonly<Record<string, HealthcareActorRoleDescriptor>>;
379
664
  export declare const HealthcareProfessionalRoleCodesBySector: Readonly<{
380
- readonly "health-care": readonly ("1120" | "2211" | "2221" | "2240")[];
381
- readonly "health-research": readonly ("1120" | "2211")[];
665
+ readonly "health-care": readonly ("1120" | "221" | "2211" | "2212" | "2221" | "2222" | "2240")[];
666
+ readonly "health-research": readonly ("1120" | "221" | "2211" | "2212")[];
382
667
  readonly "health-tech": readonly "1120"[];
383
668
  readonly "health-insurance": readonly "1120"[];
384
669
  readonly "animal-care": readonly ("1120" | "2250")[];
385
670
  readonly "animal-research": readonly ("1120" | "2250")[];
386
671
  readonly "animal-insurance": readonly "1120"[];
387
672
  readonly "animal-tech": readonly "1120"[];
388
- readonly "onehealth-research": readonly ("1120" | "2211" | "2250")[];
673
+ readonly "onehealth-research": readonly ("1120" | "221" | "2211" | "2212" | "2250")[];
389
674
  readonly "onehealth-tech": readonly "1120"[];
390
675
  }>;
391
676
  export declare const HealthcareProfessionalRolesBySector: Readonly<{
@@ -480,10 +765,12 @@ export declare const HealthcareProfessionalRolesBySector: Readonly<{
480
765
  definition?: string;
481
766
  }>>>;
482
767
  }>;
768
+ export declare const HealthcareProfessionalRolesBySectorAndClaim: Readonly<Record<DataspaceSector, Readonly<Record<string, HealthcareActorRoleDescriptor>>>>;
483
769
  export declare const HealthcareRolesBySector: Readonly<Record<DataspaceSector, Readonly<Record<HealthcareRoleFamily, Readonly<Record<string, HealthcareActorRoleDescriptor>>>>>>;
484
770
  export declare function getHealthcareRolesByFamily(family: HealthcareRoleFamily): Readonly<Record<string, HealthcareActorRoleDescriptor>>;
485
771
  export declare function getHealthcareRoleByClaim(claim: string): HealthcareActorRoleDescriptor | undefined;
486
772
  export declare function getHealthcareProfessionalRolesBySector(sector: DataspaceSector): Readonly<Record<string, HealthcareActorRoleDescriptor>>;
773
+ export declare function getHealthcareProfessionalRolesBySectorAndClaim(sector: DataspaceSector): Readonly<Record<string, HealthcareActorRoleDescriptor>>;
487
774
  export declare function getHealthcareRolesBySector(sector: DataspaceSector, family: HealthcareRoleFamily): Readonly<Record<string, HealthcareActorRoleDescriptor>>;
488
775
  export declare const HealthcareConsentActions: Readonly<{
489
776
  readonly PatientSummaryDocument: string;