gdc-common-utils-ts 1.4.19 → 1.4.22
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.
- package/README.md +235 -0
- package/dist/constants/communication.d.ts +28 -0
- package/dist/constants/communication.js +14 -0
- package/dist/constants/cryptography.d.ts +35 -0
- package/dist/constants/cryptography.js +36 -0
- package/dist/constants/device.d.ts +16 -0
- package/dist/constants/device.js +15 -0
- package/dist/constants/did-services.d.ts +42 -0
- package/dist/constants/did-services.js +40 -0
- package/dist/constants/fhir-code-systems.d.ts +12 -0
- package/dist/constants/fhir-code-systems.js +12 -0
- package/dist/constants/fhir-resource-types.d.ts +52 -0
- package/dist/constants/fhir-resource-types.js +33 -0
- package/dist/constants/fhir-versions.d.ts +10 -0
- package/dist/constants/fhir-versions.js +10 -0
- package/dist/constants/healthcare.d.ts +222 -0
- package/dist/constants/healthcare.js +64 -0
- package/dist/constants/index.d.ts +12 -0
- package/dist/constants/index.js +12 -0
- package/dist/constants/network.d.ts +13 -0
- package/dist/constants/network.js +13 -0
- package/dist/constants/schemaorg.d.ts +36 -1
- package/dist/constants/schemaorg.js +36 -0
- package/dist/constants/sectors.d.ts +24 -0
- package/dist/constants/sectors.js +24 -0
- package/dist/constants/smart.d.ts +12 -0
- package/dist/constants/smart.js +12 -0
- package/dist/constants/vital-signs.d.ts +75 -0
- package/dist/constants/vital-signs.js +33 -0
- package/dist/examples/api-flow-examples.d.ts +13 -0
- package/dist/examples/api-flow-examples.js +14 -0
- package/dist/examples/contract-examples.d.ts +13 -0
- package/dist/examples/contract-examples.js +14 -0
- package/dist/examples/frontend-session.d.ts +17 -0
- package/dist/examples/frontend-session.js +18 -0
- package/dist/examples/index.d.ts +8 -0
- package/dist/examples/index.js +8 -0
- package/dist/examples/individual-controller.d.ts +111 -0
- package/dist/examples/individual-controller.js +85 -0
- package/dist/examples/organization-controller.d.ts +158 -0
- package/dist/examples/organization-controller.js +84 -0
- package/dist/examples/professional.d.ts +221 -0
- package/dist/examples/professional.js +312 -0
- package/dist/examples/related-person.d.ts +10 -0
- package/dist/examples/related-person.js +13 -0
- package/dist/examples/shared.d.ts +97 -0
- package/dist/examples/shared.js +105 -0
- package/dist/hmac.d.ts +12 -0
- package/dist/hmac.js +12 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/models/device-license.d.ts +3 -2
- package/dist/models/did.d.ts +35 -0
- package/dist/models/identity-bootstrap.d.ts +104 -0
- package/dist/models/identity-bootstrap.js +2 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/interoperable-claims/communication-claims.d.ts +1 -0
- package/dist/models/interoperable-claims/communication-claims.js +1 -0
- package/dist/models/interoperable-claims/index.d.ts +1 -0
- package/dist/models/interoperable-claims/index.js +1 -0
- package/dist/models/interoperable-claims/task-claims.d.ts +38 -0
- package/dist/models/interoperable-claims/task-claims.js +41 -0
- package/dist/models/loinc-document-ontology.d.ts +2 -2
- package/dist/models/loinc-document-ontology.js +3 -2
- package/dist/utils/activation-policy.d.ts +61 -0
- package/dist/utils/activation-policy.js +61 -0
- package/dist/utils/activation-request.d.ts +39 -0
- package/dist/utils/activation-request.js +57 -0
- package/dist/utils/base-convert.d.ts +50 -10
- package/dist/utils/base-convert.js +50 -10
- package/dist/utils/bundle.d.ts +7 -0
- package/dist/utils/bundle.js +7 -0
- package/dist/utils/clinical-resource-converters.d.ts +44 -0
- package/dist/utils/clinical-resource-converters.js +97 -3
- package/dist/utils/communication-document-reference.d.ts +12 -0
- package/dist/utils/communication-document-reference.js +12 -0
- package/dist/utils/communication-fhir-r4.d.ts +18 -0
- package/dist/utils/communication-fhir-r4.js +22 -2
- package/dist/utils/communication-identity.d.ts +123 -0
- package/dist/utils/communication-identity.js +104 -0
- package/dist/utils/consent.d.ts +97 -4
- package/dist/utils/consent.js +128 -26
- package/dist/utils/did-resolution.d.ts +59 -0
- package/dist/utils/did-resolution.js +172 -0
- package/dist/utils/did.d.ts +61 -4
- package/dist/utils/did.js +87 -6
- package/dist/utils/didcomm-submit.d.ts +14 -0
- package/dist/utils/didcomm-submit.js +14 -0
- package/dist/utils/didcomm.d.ts +20 -0
- package/dist/utils/didcomm.js +20 -0
- package/dist/utils/discovery-normalization.d.ts +28 -0
- package/dist/utils/discovery-normalization.js +64 -0
- package/dist/utils/fhir-validator.d.ts +7 -0
- package/dist/utils/fhir-validator.js +7 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/index.js +5 -0
- package/dist/utils/jwt.d.ts +1 -0
- package/dist/utils/jwt.js +1 -0
- package/dist/utils/smart-scope.d.ts +28 -0
- package/dist/utils/smart-scope.js +29 -0
- package/dist/utils/url.d.ts +2 -3
- package/dist/utils/url.js +2 -3
- package/dist/utils/vp-token.d.ts +38 -0
- package/dist/utils/vp-token.js +83 -0
- package/package.json +9 -1
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { LOINC_SYSTEM_URL } from '../models/clinical-sections';
|
|
2
|
+
export type HealthcareSectionDescriptor = Readonly<{
|
|
3
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
4
|
+
code: string;
|
|
5
|
+
claim: string;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const HealthcareBasicSections: Readonly<{
|
|
8
|
+
PatientSummaryDocument: Readonly<{
|
|
9
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
10
|
+
code: string;
|
|
11
|
+
claim: string;
|
|
12
|
+
}>;
|
|
13
|
+
AllergiesAndIntolerances: Readonly<{
|
|
14
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
15
|
+
code: string;
|
|
16
|
+
claim: string;
|
|
17
|
+
}>;
|
|
18
|
+
HistoryOfMedicationUse: Readonly<{
|
|
19
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
20
|
+
code: string;
|
|
21
|
+
claim: string;
|
|
22
|
+
}>;
|
|
23
|
+
ProblemList: Readonly<{
|
|
24
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
25
|
+
code: string;
|
|
26
|
+
claim: string;
|
|
27
|
+
}>;
|
|
28
|
+
Results: Readonly<{
|
|
29
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
30
|
+
code: string;
|
|
31
|
+
claim: string;
|
|
32
|
+
}>;
|
|
33
|
+
Procedures: Readonly<{
|
|
34
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
35
|
+
code: string;
|
|
36
|
+
claim: string;
|
|
37
|
+
}>;
|
|
38
|
+
Immunizations: Readonly<{
|
|
39
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
40
|
+
code: string;
|
|
41
|
+
claim: string;
|
|
42
|
+
}>;
|
|
43
|
+
MedicalDevices: Readonly<{
|
|
44
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
45
|
+
code: string;
|
|
46
|
+
claim: string;
|
|
47
|
+
}>;
|
|
48
|
+
FunctionalStatus: Readonly<{
|
|
49
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
50
|
+
code: string;
|
|
51
|
+
claim: string;
|
|
52
|
+
}>;
|
|
53
|
+
PlanOfCare: Readonly<{
|
|
54
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
55
|
+
code: string;
|
|
56
|
+
claim: string;
|
|
57
|
+
}>;
|
|
58
|
+
SocialHistory: Readonly<{
|
|
59
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
60
|
+
code: string;
|
|
61
|
+
claim: string;
|
|
62
|
+
}>;
|
|
63
|
+
VitalSigns: Readonly<{
|
|
64
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
65
|
+
code: string;
|
|
66
|
+
claim: string;
|
|
67
|
+
}>;
|
|
68
|
+
}>;
|
|
69
|
+
export declare const HealthcareAdditionalSections: Readonly<{
|
|
70
|
+
AdvanceDirectives: Readonly<{
|
|
71
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
72
|
+
code: string;
|
|
73
|
+
claim: string;
|
|
74
|
+
}>;
|
|
75
|
+
DiagnosticImaging: Readonly<{
|
|
76
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
77
|
+
code: string;
|
|
78
|
+
claim: string;
|
|
79
|
+
}>;
|
|
80
|
+
HistoryOfPastIllness: Readonly<{
|
|
81
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
82
|
+
code: string;
|
|
83
|
+
claim: string;
|
|
84
|
+
}>;
|
|
85
|
+
ReasonForReferral: Readonly<{
|
|
86
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
87
|
+
code: string;
|
|
88
|
+
claim: string;
|
|
89
|
+
}>;
|
|
90
|
+
ChiefComplaint: Readonly<{
|
|
91
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
92
|
+
code: string;
|
|
93
|
+
claim: string;
|
|
94
|
+
}>;
|
|
95
|
+
HealthcareGeneral: Readonly<{
|
|
96
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
97
|
+
code: string;
|
|
98
|
+
claim: string;
|
|
99
|
+
}>;
|
|
100
|
+
}>;
|
|
101
|
+
export declare const HealthcareAllSections: Readonly<{
|
|
102
|
+
AdvanceDirectives: Readonly<{
|
|
103
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
104
|
+
code: string;
|
|
105
|
+
claim: string;
|
|
106
|
+
}>;
|
|
107
|
+
DiagnosticImaging: Readonly<{
|
|
108
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
109
|
+
code: string;
|
|
110
|
+
claim: string;
|
|
111
|
+
}>;
|
|
112
|
+
HistoryOfPastIllness: Readonly<{
|
|
113
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
114
|
+
code: string;
|
|
115
|
+
claim: string;
|
|
116
|
+
}>;
|
|
117
|
+
ReasonForReferral: Readonly<{
|
|
118
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
119
|
+
code: string;
|
|
120
|
+
claim: string;
|
|
121
|
+
}>;
|
|
122
|
+
ChiefComplaint: Readonly<{
|
|
123
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
124
|
+
code: string;
|
|
125
|
+
claim: string;
|
|
126
|
+
}>;
|
|
127
|
+
HealthcareGeneral: Readonly<{
|
|
128
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
129
|
+
code: string;
|
|
130
|
+
claim: string;
|
|
131
|
+
}>;
|
|
132
|
+
PatientSummaryDocument: Readonly<{
|
|
133
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
134
|
+
code: string;
|
|
135
|
+
claim: string;
|
|
136
|
+
}>;
|
|
137
|
+
AllergiesAndIntolerances: Readonly<{
|
|
138
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
139
|
+
code: string;
|
|
140
|
+
claim: string;
|
|
141
|
+
}>;
|
|
142
|
+
HistoryOfMedicationUse: Readonly<{
|
|
143
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
144
|
+
code: string;
|
|
145
|
+
claim: string;
|
|
146
|
+
}>;
|
|
147
|
+
ProblemList: Readonly<{
|
|
148
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
149
|
+
code: string;
|
|
150
|
+
claim: string;
|
|
151
|
+
}>;
|
|
152
|
+
Results: Readonly<{
|
|
153
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
154
|
+
code: string;
|
|
155
|
+
claim: string;
|
|
156
|
+
}>;
|
|
157
|
+
Procedures: Readonly<{
|
|
158
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
159
|
+
code: string;
|
|
160
|
+
claim: string;
|
|
161
|
+
}>;
|
|
162
|
+
Immunizations: Readonly<{
|
|
163
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
164
|
+
code: string;
|
|
165
|
+
claim: string;
|
|
166
|
+
}>;
|
|
167
|
+
MedicalDevices: Readonly<{
|
|
168
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
169
|
+
code: string;
|
|
170
|
+
claim: string;
|
|
171
|
+
}>;
|
|
172
|
+
FunctionalStatus: Readonly<{
|
|
173
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
174
|
+
code: string;
|
|
175
|
+
claim: string;
|
|
176
|
+
}>;
|
|
177
|
+
PlanOfCare: Readonly<{
|
|
178
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
179
|
+
code: string;
|
|
180
|
+
claim: string;
|
|
181
|
+
}>;
|
|
182
|
+
SocialHistory: Readonly<{
|
|
183
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
184
|
+
code: string;
|
|
185
|
+
claim: string;
|
|
186
|
+
}>;
|
|
187
|
+
VitalSigns: Readonly<{
|
|
188
|
+
system: typeof LOINC_SYSTEM_URL;
|
|
189
|
+
code: string;
|
|
190
|
+
claim: string;
|
|
191
|
+
}>;
|
|
192
|
+
}>;
|
|
193
|
+
export declare const HealthcareConsentPurposes: Readonly<{
|
|
194
|
+
readonly Treatment: "TREAT";
|
|
195
|
+
readonly EmergencyTreatment: "ETREAT";
|
|
196
|
+
readonly CareManagement: "CAREMGT";
|
|
197
|
+
readonly Operations: "HOPERAT";
|
|
198
|
+
readonly PatientAdministration: "PATADMIN";
|
|
199
|
+
readonly RecordsManagement: "RECORDMGT";
|
|
200
|
+
}>;
|
|
201
|
+
export declare const HealthcareActorRoles: Readonly<{
|
|
202
|
+
readonly Controller: "ISCO-08|1120";
|
|
203
|
+
readonly Physician: "ISCO-08|2211";
|
|
204
|
+
readonly NursingProfessional: "ISCO-08|2221";
|
|
205
|
+
readonly Paramedic: "ISCO-08|2240";
|
|
206
|
+
}>;
|
|
207
|
+
export declare const HealthcareActorRoleCodes: Readonly<{
|
|
208
|
+
readonly Controller: "1120";
|
|
209
|
+
readonly Physician: "2211";
|
|
210
|
+
readonly PhysicianBroad: "221";
|
|
211
|
+
readonly NursingProfessional: "2221";
|
|
212
|
+
readonly Paramedic: "2240";
|
|
213
|
+
}>;
|
|
214
|
+
export declare const HealthcareConsentActions: Readonly<{
|
|
215
|
+
readonly PatientSummaryDocument: string;
|
|
216
|
+
readonly AllergiesAndIntolerances: string;
|
|
217
|
+
readonly HistoryOfMedicationUse: string;
|
|
218
|
+
readonly ProblemList: string;
|
|
219
|
+
readonly Results: string;
|
|
220
|
+
readonly Procedures: string;
|
|
221
|
+
readonly Immunizations: string;
|
|
222
|
+
}>;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { LOINC_SYSTEM_URL } from '../models/clinical-sections.js';
|
|
2
|
+
function defineSection(code) {
|
|
3
|
+
return Object.freeze({
|
|
4
|
+
system: LOINC_SYSTEM_URL,
|
|
5
|
+
code,
|
|
6
|
+
claim: `LOINC|${code}`,
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
export const HealthcareBasicSections = Object.freeze({
|
|
10
|
+
PatientSummaryDocument: defineSection('60591-5'),
|
|
11
|
+
AllergiesAndIntolerances: defineSection('48765-2'),
|
|
12
|
+
HistoryOfMedicationUse: defineSection('10160-0'),
|
|
13
|
+
ProblemList: defineSection('11450-4'),
|
|
14
|
+
Results: defineSection('30954-2'),
|
|
15
|
+
Procedures: defineSection('47519-4'),
|
|
16
|
+
Immunizations: defineSection('11369-6'),
|
|
17
|
+
MedicalDevices: defineSection('46264-8'),
|
|
18
|
+
FunctionalStatus: defineSection('47420-5'),
|
|
19
|
+
PlanOfCare: defineSection('18776-5'),
|
|
20
|
+
SocialHistory: defineSection('29762-2'),
|
|
21
|
+
VitalSigns: defineSection('8716-3'),
|
|
22
|
+
});
|
|
23
|
+
export const HealthcareAdditionalSections = Object.freeze({
|
|
24
|
+
AdvanceDirectives: defineSection('42348-3'),
|
|
25
|
+
DiagnosticImaging: defineSection('18726-0'),
|
|
26
|
+
HistoryOfPastIllness: defineSection('11348-0'),
|
|
27
|
+
ReasonForReferral: defineSection('42349-1'),
|
|
28
|
+
ChiefComplaint: defineSection('10154-3'),
|
|
29
|
+
HealthcareGeneral: defineSection('56796-6'),
|
|
30
|
+
});
|
|
31
|
+
export const HealthcareAllSections = Object.freeze({
|
|
32
|
+
...HealthcareBasicSections,
|
|
33
|
+
...HealthcareAdditionalSections,
|
|
34
|
+
});
|
|
35
|
+
export const HealthcareConsentPurposes = Object.freeze({
|
|
36
|
+
Treatment: 'TREAT',
|
|
37
|
+
EmergencyTreatment: 'ETREAT',
|
|
38
|
+
CareManagement: 'CAREMGT',
|
|
39
|
+
Operations: 'HOPERAT',
|
|
40
|
+
PatientAdministration: 'PATADMIN',
|
|
41
|
+
RecordsManagement: 'RECORDMGT',
|
|
42
|
+
});
|
|
43
|
+
export const HealthcareActorRoles = Object.freeze({
|
|
44
|
+
Controller: 'ISCO-08|1120',
|
|
45
|
+
Physician: 'ISCO-08|2211',
|
|
46
|
+
NursingProfessional: 'ISCO-08|2221',
|
|
47
|
+
Paramedic: 'ISCO-08|2240',
|
|
48
|
+
});
|
|
49
|
+
export const HealthcareActorRoleCodes = Object.freeze({
|
|
50
|
+
Controller: '1120',
|
|
51
|
+
Physician: '2211',
|
|
52
|
+
PhysicianBroad: '221',
|
|
53
|
+
NursingProfessional: '2221',
|
|
54
|
+
Paramedic: '2240',
|
|
55
|
+
});
|
|
56
|
+
export const HealthcareConsentActions = Object.freeze({
|
|
57
|
+
PatientSummaryDocument: HealthcareBasicSections.PatientSummaryDocument.claim,
|
|
58
|
+
AllergiesAndIntolerances: HealthcareBasicSections.AllergiesAndIntolerances.claim,
|
|
59
|
+
HistoryOfMedicationUse: HealthcareBasicSections.HistoryOfMedicationUse.claim,
|
|
60
|
+
ProblemList: HealthcareBasicSections.ProblemList.claim,
|
|
61
|
+
Results: HealthcareBasicSections.Results.claim,
|
|
62
|
+
Procedures: HealthcareBasicSections.Procedures.claim,
|
|
63
|
+
Immunizations: HealthcareBasicSections.Immunizations.claim,
|
|
64
|
+
});
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
+
export * from './communication';
|
|
2
|
+
export * from './cryptography';
|
|
3
|
+
export * from './device';
|
|
4
|
+
export * from './did-services';
|
|
5
|
+
export * from './fhir-code-systems';
|
|
6
|
+
export * from './fhir-resource-types';
|
|
7
|
+
export * from './fhir-versions';
|
|
1
8
|
export * from './schemaorg';
|
|
2
9
|
export * from './hl7-roles';
|
|
10
|
+
export * from './healthcare';
|
|
11
|
+
export * from './vital-signs';
|
|
12
|
+
export * from './network';
|
|
13
|
+
export * from './sectors';
|
|
14
|
+
export * from './smart';
|
package/dist/constants/index.js
CHANGED
|
@@ -1,2 +1,14 @@
|
|
|
1
|
+
export * from './communication.js';
|
|
2
|
+
export * from './cryptography.js';
|
|
3
|
+
export * from './device.js';
|
|
4
|
+
export * from './did-services.js';
|
|
5
|
+
export * from './fhir-code-systems.js';
|
|
6
|
+
export * from './fhir-resource-types.js';
|
|
7
|
+
export * from './fhir-versions.js';
|
|
1
8
|
export * from './schemaorg.js';
|
|
2
9
|
export * from './hl7-roles.js';
|
|
10
|
+
export * from './healthcare.js';
|
|
11
|
+
export * from './vital-signs.js';
|
|
12
|
+
export * from './network.js';
|
|
13
|
+
export * from './sectors.js';
|
|
14
|
+
export * from './smart.js';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical network/environment labels used to identify node-operator networks
|
|
3
|
+
* during discovery/bootstrap flows.
|
|
4
|
+
*
|
|
5
|
+
* These labels do not replace the clinical route `sector`. They describe the
|
|
6
|
+
* operator environment itself.
|
|
7
|
+
*/
|
|
8
|
+
export declare const NodeOperatorNetworkTypes: Readonly<{
|
|
9
|
+
readonly Test: "test";
|
|
10
|
+
readonly TestNetwork: "test-network";
|
|
11
|
+
readonly Network: "network";
|
|
12
|
+
}>;
|
|
13
|
+
export type NodeOperatorNetworkType = typeof NodeOperatorNetworkTypes[keyof typeof NodeOperatorNetworkTypes];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright 2025 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
+
/**
|
|
3
|
+
* Canonical network/environment labels used to identify node-operator networks
|
|
4
|
+
* during discovery/bootstrap flows.
|
|
5
|
+
*
|
|
6
|
+
* These labels do not replace the clinical route `sector`. They describe the
|
|
7
|
+
* operator environment itself.
|
|
8
|
+
*/
|
|
9
|
+
export const NodeOperatorNetworkTypes = Object.freeze({
|
|
10
|
+
Test: 'test',
|
|
11
|
+
TestNetwork: 'test-network',
|
|
12
|
+
Network: 'network',
|
|
13
|
+
});
|
|
@@ -3,7 +3,8 @@ export declare enum ClaimsServiceSchemaorg {
|
|
|
3
3
|
category = "org.schema.Service.category",
|
|
4
4
|
identifier = "org.schema.Service.identifier",
|
|
5
5
|
serviceType = "org.schema.Service.serviceType",
|
|
6
|
-
termsOfService = "org.schema.Service.termsOfService"
|
|
6
|
+
termsOfService = "org.schema.Service.termsOfService",
|
|
7
|
+
url = "org.schema.Service.url"
|
|
7
8
|
}
|
|
8
9
|
/**
|
|
9
10
|
* Defines the canonical claim names for the 'org.schema' context,
|
|
@@ -30,12 +31,18 @@ export declare enum ClaimsOrganizationSchemaorg {
|
|
|
30
31
|
url = "org.schema.Organization.url",
|
|
31
32
|
/** The identifier is a URN generated using the legal ID (TAX or EI) */
|
|
32
33
|
identifier = "org.schema.Organization.identifier",
|
|
34
|
+
/** Repeated route/business identifier used by current GW onboarding claims. */
|
|
35
|
+
taxId = "org.schema.Organization.taxID",
|
|
33
36
|
/** DUNS (free) or LEI could be provided */
|
|
34
37
|
duns = "org.schema.Organization.duns",
|
|
35
38
|
/** Public contact email */
|
|
36
39
|
email = "org.schema.Organization.email",
|
|
37
40
|
/** Public contact phone */
|
|
38
41
|
telephone = "org.schema.Organization.telephone",
|
|
42
|
+
/** Individual/family owner email used by subject-index registration flows. */
|
|
43
|
+
ownerEmail = "org.schema.Organization.owner.email",
|
|
44
|
+
/** Individual/family owner telephone used by subject-index registration flows. */
|
|
45
|
+
ownerTelephone = "org.schema.Organization.owner.telephone",
|
|
39
46
|
numberOfEmployees = "org.schema.Organization.numberOfEmployees.value"
|
|
40
47
|
}
|
|
41
48
|
export declare enum ClaimsOfferSchemaorg {
|
|
@@ -71,6 +78,11 @@ export declare enum ClaimsPersonSchemaorg {
|
|
|
71
78
|
gender = "org.schema.Person.gender",
|
|
72
79
|
givenName = "org.schema.Person.givenName",
|
|
73
80
|
hasOccupation = "org.schema.Person.hasOccupation",
|
|
81
|
+
/**
|
|
82
|
+
* Canonical nested role value used in ICA/VC credential subjects and
|
|
83
|
+
* supported by activation/normalization helpers.
|
|
84
|
+
*/
|
|
85
|
+
hasOccupationalRoleValue = "org.schema.Person.hasOccupation.identifier.value",
|
|
74
86
|
/** Credential material bound to the person identity in VC payloads (for activation flow this is the representative signing kid). */
|
|
75
87
|
hasCredentialMaterial = "org.schema.Person.hasCredential.material",
|
|
76
88
|
identifier = "org.schema.Person.identifier",// the URN (composed by the provider)
|
|
@@ -80,6 +92,7 @@ export declare enum ClaimsPersonSchemaorg {
|
|
|
80
92
|
name = "org.schema.Person.name",
|
|
81
93
|
memberOf = "org.schema.Person.memberOf",// for employees
|
|
82
94
|
memberOfTaxId = "org.schema.Person.memberOf.taxID",
|
|
95
|
+
memberOfOrgTaxId = "org.schema.Person.memberOf.taxID",
|
|
83
96
|
telephone = "org.schema.Person.telephone",
|
|
84
97
|
worksFor = "org.schema.Person.worksFor"
|
|
85
98
|
}
|
|
@@ -96,6 +109,28 @@ export declare enum ClaimsActionSchemaorg {
|
|
|
96
109
|
providerName = "org.schema.Action.provider.name",
|
|
97
110
|
startTime = "org.schema.Action.startTime"
|
|
98
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* Explicit bootstrap-time key binding claims.
|
|
114
|
+
*
|
|
115
|
+
* These claims intentionally distinguish person/controller identity from
|
|
116
|
+
* technical transport identity.
|
|
117
|
+
*/
|
|
118
|
+
export declare enum ClaimsIdentityBootstrap {
|
|
119
|
+
controllerDid = "controller.did",
|
|
120
|
+
controllerSameAs = "controller.sameAs",
|
|
121
|
+
controllerPublicKeyJwk = "controller.publicKeyJwk",
|
|
122
|
+
controllerJwks = "controller.jwks",
|
|
123
|
+
organizationPublicKeyJwk = "organization.publicKeyJwk",
|
|
124
|
+
organizationJwks = "organization.jwks",
|
|
125
|
+
/**
|
|
126
|
+
* @deprecated Legacy compatibility field. Canonical proof must be carried in `vp_token`.
|
|
127
|
+
*/
|
|
128
|
+
organizationCredential = "organizationCredential",
|
|
129
|
+
/**
|
|
130
|
+
* @deprecated Legacy compatibility field. Canonical proof must be carried in `vp_token`.
|
|
131
|
+
*/
|
|
132
|
+
representativeCredential = "representativeCredential"
|
|
133
|
+
}
|
|
99
134
|
export declare const ICAOReverseDns = "int.icao";
|
|
100
135
|
export declare enum ICAOIdentityParams {
|
|
101
136
|
HairColor = "int.icao.mrtd.hair-color"
|
|
@@ -6,6 +6,7 @@ export var ClaimsServiceSchemaorg;
|
|
|
6
6
|
ClaimsServiceSchemaorg["identifier"] = "org.schema.Service.identifier";
|
|
7
7
|
ClaimsServiceSchemaorg["serviceType"] = "org.schema.Service.serviceType";
|
|
8
8
|
ClaimsServiceSchemaorg["termsOfService"] = "org.schema.Service.termsOfService";
|
|
9
|
+
ClaimsServiceSchemaorg["url"] = "org.schema.Service.url";
|
|
9
10
|
})(ClaimsServiceSchemaorg || (ClaimsServiceSchemaorg = {}));
|
|
10
11
|
/**
|
|
11
12
|
* Defines the canonical claim names for the 'org.schema' context,
|
|
@@ -33,12 +34,18 @@ export var ClaimsOrganizationSchemaorg;
|
|
|
33
34
|
ClaimsOrganizationSchemaorg["url"] = "org.schema.Organization.url";
|
|
34
35
|
/** The identifier is a URN generated using the legal ID (TAX or EI) */
|
|
35
36
|
ClaimsOrganizationSchemaorg["identifier"] = "org.schema.Organization.identifier";
|
|
37
|
+
/** Repeated route/business identifier used by current GW onboarding claims. */
|
|
38
|
+
ClaimsOrganizationSchemaorg["taxId"] = "org.schema.Organization.taxID";
|
|
36
39
|
/** DUNS (free) or LEI could be provided */
|
|
37
40
|
ClaimsOrganizationSchemaorg["duns"] = "org.schema.Organization.duns";
|
|
38
41
|
/** Public contact email */
|
|
39
42
|
ClaimsOrganizationSchemaorg["email"] = "org.schema.Organization.email";
|
|
40
43
|
/** Public contact phone */
|
|
41
44
|
ClaimsOrganizationSchemaorg["telephone"] = "org.schema.Organization.telephone";
|
|
45
|
+
/** Individual/family owner email used by subject-index registration flows. */
|
|
46
|
+
ClaimsOrganizationSchemaorg["ownerEmail"] = "org.schema.Organization.owner.email";
|
|
47
|
+
/** Individual/family owner telephone used by subject-index registration flows. */
|
|
48
|
+
ClaimsOrganizationSchemaorg["ownerTelephone"] = "org.schema.Organization.owner.telephone";
|
|
42
49
|
ClaimsOrganizationSchemaorg["numberOfEmployees"] = "org.schema.Organization.numberOfEmployees.value"; // to purchase licenses for device profile's activation
|
|
43
50
|
})(ClaimsOrganizationSchemaorg || (ClaimsOrganizationSchemaorg = {}));
|
|
44
51
|
export var ClaimsOfferSchemaorg;
|
|
@@ -76,6 +83,11 @@ export var ClaimsPersonSchemaorg;
|
|
|
76
83
|
ClaimsPersonSchemaorg["gender"] = "org.schema.Person.gender";
|
|
77
84
|
ClaimsPersonSchemaorg["givenName"] = "org.schema.Person.givenName";
|
|
78
85
|
ClaimsPersonSchemaorg["hasOccupation"] = "org.schema.Person.hasOccupation";
|
|
86
|
+
/**
|
|
87
|
+
* Canonical nested role value used in ICA/VC credential subjects and
|
|
88
|
+
* supported by activation/normalization helpers.
|
|
89
|
+
*/
|
|
90
|
+
ClaimsPersonSchemaorg["hasOccupationalRoleValue"] = "org.schema.Person.hasOccupation.identifier.value";
|
|
79
91
|
/** Credential material bound to the person identity in VC payloads (for activation flow this is the representative signing kid). */
|
|
80
92
|
ClaimsPersonSchemaorg["hasCredentialMaterial"] = "org.schema.Person.hasCredential.material";
|
|
81
93
|
ClaimsPersonSchemaorg["identifier"] = "org.schema.Person.identifier";
|
|
@@ -85,6 +97,7 @@ export var ClaimsPersonSchemaorg;
|
|
|
85
97
|
ClaimsPersonSchemaorg["name"] = "org.schema.Person.name";
|
|
86
98
|
ClaimsPersonSchemaorg["memberOf"] = "org.schema.Person.memberOf";
|
|
87
99
|
ClaimsPersonSchemaorg["memberOfTaxId"] = "org.schema.Person.memberOf.taxID";
|
|
100
|
+
ClaimsPersonSchemaorg["memberOfOrgTaxId"] = "org.schema.Person.memberOf.taxID";
|
|
88
101
|
ClaimsPersonSchemaorg["telephone"] = "org.schema.Person.telephone";
|
|
89
102
|
ClaimsPersonSchemaorg["worksFor"] = "org.schema.Person.worksFor";
|
|
90
103
|
/*
|
|
@@ -116,6 +129,29 @@ export var ClaimsActionSchemaorg;
|
|
|
116
129
|
// The time the action was initiated
|
|
117
130
|
ClaimsActionSchemaorg["startTime"] = "org.schema.Action.startTime";
|
|
118
131
|
})(ClaimsActionSchemaorg || (ClaimsActionSchemaorg = {}));
|
|
132
|
+
/**
|
|
133
|
+
* Explicit bootstrap-time key binding claims.
|
|
134
|
+
*
|
|
135
|
+
* These claims intentionally distinguish person/controller identity from
|
|
136
|
+
* technical transport identity.
|
|
137
|
+
*/
|
|
138
|
+
export var ClaimsIdentityBootstrap;
|
|
139
|
+
(function (ClaimsIdentityBootstrap) {
|
|
140
|
+
ClaimsIdentityBootstrap["controllerDid"] = "controller.did";
|
|
141
|
+
ClaimsIdentityBootstrap["controllerSameAs"] = "controller.sameAs";
|
|
142
|
+
ClaimsIdentityBootstrap["controllerPublicKeyJwk"] = "controller.publicKeyJwk";
|
|
143
|
+
ClaimsIdentityBootstrap["controllerJwks"] = "controller.jwks";
|
|
144
|
+
ClaimsIdentityBootstrap["organizationPublicKeyJwk"] = "organization.publicKeyJwk";
|
|
145
|
+
ClaimsIdentityBootstrap["organizationJwks"] = "organization.jwks";
|
|
146
|
+
/**
|
|
147
|
+
* @deprecated Legacy compatibility field. Canonical proof must be carried in `vp_token`.
|
|
148
|
+
*/
|
|
149
|
+
ClaimsIdentityBootstrap["organizationCredential"] = "organizationCredential";
|
|
150
|
+
/**
|
|
151
|
+
* @deprecated Legacy compatibility field. Canonical proof must be carried in `vp_token`.
|
|
152
|
+
*/
|
|
153
|
+
ClaimsIdentityBootstrap["representativeCredential"] = "representativeCredential";
|
|
154
|
+
})(ClaimsIdentityBootstrap || (ClaimsIdentityBootstrap = {}));
|
|
119
155
|
export const ICAOReverseDns = 'int.icao';
|
|
120
156
|
export var ICAOIdentityParams;
|
|
121
157
|
(function (ICAOIdentityParams) {
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical route-sector identifiers used by GW/ICA URLs and examples.
|
|
3
|
+
*
|
|
4
|
+
* Notes:
|
|
5
|
+
* - These are route/service taxonomy identifiers, not free-text business labels.
|
|
6
|
+
* - The actual supported subset for a given ICA or node operator should be
|
|
7
|
+
* discovered from metadata such as ICA `/.well-known/ica-configuration`.
|
|
8
|
+
* - This catalog intentionally includes current CORE examples, ICA defaults,
|
|
9
|
+
* and a small set of near-term extension sectors so callers do not need to
|
|
10
|
+
* hardcode strings in application code.
|
|
11
|
+
*/
|
|
12
|
+
export declare const DataspaceSectors: Readonly<{
|
|
13
|
+
readonly HealthCare: "health-care";
|
|
14
|
+
readonly HealthResearch: "health-research";
|
|
15
|
+
readonly HealthTech: "health-tech";
|
|
16
|
+
readonly HealthInsurance: "health-insurance";
|
|
17
|
+
readonly AnimalCare: "animal-care";
|
|
18
|
+
readonly AnimalResearch: "animal-research";
|
|
19
|
+
readonly AnimalInsurance: "animal-insurance";
|
|
20
|
+
readonly AnimalTech: "animal-tech";
|
|
21
|
+
readonly OneHealthResearch: "onehealth-research";
|
|
22
|
+
readonly OneHealthTech: "onehealth-tech";
|
|
23
|
+
}>;
|
|
24
|
+
export type DataspaceSector = typeof DataspaceSectors[keyof typeof DataspaceSectors];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
+
/**
|
|
3
|
+
* Canonical route-sector identifiers used by GW/ICA URLs and examples.
|
|
4
|
+
*
|
|
5
|
+
* Notes:
|
|
6
|
+
* - These are route/service taxonomy identifiers, not free-text business labels.
|
|
7
|
+
* - The actual supported subset for a given ICA or node operator should be
|
|
8
|
+
* discovered from metadata such as ICA `/.well-known/ica-configuration`.
|
|
9
|
+
* - This catalog intentionally includes current CORE examples, ICA defaults,
|
|
10
|
+
* and a small set of near-term extension sectors so callers do not need to
|
|
11
|
+
* hardcode strings in application code.
|
|
12
|
+
*/
|
|
13
|
+
export const DataspaceSectors = Object.freeze({
|
|
14
|
+
HealthCare: 'health-care',
|
|
15
|
+
HealthResearch: 'health-research',
|
|
16
|
+
HealthTech: 'health-tech',
|
|
17
|
+
HealthInsurance: 'health-insurance',
|
|
18
|
+
AnimalCare: 'animal-care',
|
|
19
|
+
AnimalResearch: 'animal-research',
|
|
20
|
+
AnimalInsurance: 'animal-insurance',
|
|
21
|
+
AnimalTech: 'animal-tech',
|
|
22
|
+
OneHealthResearch: 'onehealth-research',
|
|
23
|
+
OneHealthTech: 'onehealth-tech',
|
|
24
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical SMART/GW scope literals currently used by the CORE GW contract.
|
|
3
|
+
*
|
|
4
|
+
* These are gateway-specific scope strings, not a complete generic SMART
|
|
5
|
+
* terminology catalog.
|
|
6
|
+
*/
|
|
7
|
+
export declare const SmartGatewayScopesFhirR4: Readonly<{
|
|
8
|
+
/**
|
|
9
|
+
* Consent resource CRUDS scope used by the current GW SMART token flows.
|
|
10
|
+
*/
|
|
11
|
+
readonly ConsentCruds: "organization/Consent.cruds";
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical SMART/GW scope literals currently used by the CORE GW contract.
|
|
3
|
+
*
|
|
4
|
+
* These are gateway-specific scope strings, not a complete generic SMART
|
|
5
|
+
* terminology catalog.
|
|
6
|
+
*/
|
|
7
|
+
export const SmartGatewayScopesFhirR4 = Object.freeze({
|
|
8
|
+
/**
|
|
9
|
+
* Consent resource CRUDS scope used by the current GW SMART token flows.
|
|
10
|
+
*/
|
|
11
|
+
ConsentCruds: 'organization/Consent.cruds',
|
|
12
|
+
});
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
export type CodingDescriptor = Readonly<{
|
|
2
|
+
system: string;
|
|
3
|
+
code: string;
|
|
4
|
+
display?: string;
|
|
5
|
+
claim: string;
|
|
6
|
+
}>;
|
|
7
|
+
/**
|
|
8
|
+
* Canonical `Observation.category` descriptors for vital-sign observations.
|
|
9
|
+
*/
|
|
10
|
+
export declare const ObservationCategoryCodes: Readonly<{
|
|
11
|
+
readonly VitalSigns: Readonly<{
|
|
12
|
+
system: string;
|
|
13
|
+
code: string;
|
|
14
|
+
display?: string;
|
|
15
|
+
claim: string;
|
|
16
|
+
}>;
|
|
17
|
+
}>;
|
|
18
|
+
/**
|
|
19
|
+
* Canonical LOINC descriptors for the currently supported Vital Signs.
|
|
20
|
+
*/
|
|
21
|
+
export declare const VitalSignsCodes: Readonly<{
|
|
22
|
+
readonly HeartRate: Readonly<{
|
|
23
|
+
system: string;
|
|
24
|
+
code: string;
|
|
25
|
+
display?: string;
|
|
26
|
+
claim: string;
|
|
27
|
+
}>;
|
|
28
|
+
readonly BloodPressure: Readonly<{
|
|
29
|
+
system: string;
|
|
30
|
+
code: string;
|
|
31
|
+
display?: string;
|
|
32
|
+
claim: string;
|
|
33
|
+
}>;
|
|
34
|
+
readonly SystolicBloodPressure: Readonly<{
|
|
35
|
+
system: string;
|
|
36
|
+
code: string;
|
|
37
|
+
display?: string;
|
|
38
|
+
claim: string;
|
|
39
|
+
}>;
|
|
40
|
+
readonly DiastolicBloodPressure: Readonly<{
|
|
41
|
+
system: string;
|
|
42
|
+
code: string;
|
|
43
|
+
display?: string;
|
|
44
|
+
claim: string;
|
|
45
|
+
}>;
|
|
46
|
+
readonly BodyTemperature: Readonly<{
|
|
47
|
+
system: string;
|
|
48
|
+
code: string;
|
|
49
|
+
display?: string;
|
|
50
|
+
claim: string;
|
|
51
|
+
}>;
|
|
52
|
+
}>;
|
|
53
|
+
/**
|
|
54
|
+
* Canonical UCUM unit descriptors used by the supported Vital Signs.
|
|
55
|
+
*/
|
|
56
|
+
export declare const VitalSignsUnits: Readonly<{
|
|
57
|
+
readonly BeatsPerMinute: Readonly<{
|
|
58
|
+
system: string;
|
|
59
|
+
code: string;
|
|
60
|
+
display?: string;
|
|
61
|
+
claim: string;
|
|
62
|
+
}>;
|
|
63
|
+
readonly MillimeterOfMercury: Readonly<{
|
|
64
|
+
system: string;
|
|
65
|
+
code: string;
|
|
66
|
+
display?: string;
|
|
67
|
+
claim: string;
|
|
68
|
+
}>;
|
|
69
|
+
readonly Celsius: Readonly<{
|
|
70
|
+
system: string;
|
|
71
|
+
code: string;
|
|
72
|
+
display?: string;
|
|
73
|
+
claim: string;
|
|
74
|
+
}>;
|
|
75
|
+
}>;
|