gdc-common-utils-ts 2.7.5 → 2.7.7
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/dist/constants/Schemas.d.ts +2 -0
- package/dist/constants/Schemas.js +2 -0
- package/dist/constants/composition.d.ts +13 -0
- package/dist/constants/composition.js +15 -0
- package/dist/constants/data-capabilities.d.ts +7 -7
- package/dist/constants/didcomm.d.ts +4 -0
- package/dist/constants/didcomm.js +4 -0
- package/dist/constants/fhir-resource-types.d.ts +55 -0
- package/dist/constants/fhir-resource-types.js +14 -0
- package/dist/constants/gateway-response.d.ts +100 -0
- package/dist/constants/gateway-response.js +104 -0
- package/dist/constants/http.d.ts +14 -0
- package/dist/constants/http.js +14 -0
- package/dist/constants/identity-auth.d.ts +16 -0
- package/dist/constants/identity-auth.js +16 -0
- package/dist/constants/index.d.ts +3 -0
- package/dist/constants/index.js +3 -0
- package/dist/constants/jsonld.d.ts +5 -0
- package/dist/constants/jsonld.js +5 -0
- package/dist/constants/schemaorg.d.ts +5 -0
- package/dist/constants/schemaorg.js +5 -0
- package/dist/constants/urn.d.ts +2 -0
- package/dist/constants/urn.js +2 -0
- package/dist/examples/index.d.ts +1 -0
- package/dist/examples/index.js +1 -0
- package/dist/examples/researcher-working-selection.d.ts +68 -0
- package/dist/examples/researcher-working-selection.js +59 -0
- package/dist/examples/shared.d.ts +1 -0
- package/dist/examples/shared.js +1 -0
- package/dist/models/bundle-editor-types.d.ts +3 -0
- package/dist/models/bundle-editor-types.js +3 -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/research-subject-claims.d.ts +4 -0
- package/dist/models/interoperable-claims/research-subject-claims.js +4 -0
- package/package.json +1 -1
|
@@ -32,12 +32,16 @@ export declare const ResourceTypesFhirR4: Readonly<{
|
|
|
32
32
|
readonly MedicationRequest: "MedicationRequest";
|
|
33
33
|
readonly MedicationStatement: "MedicationStatement";
|
|
34
34
|
readonly Observation: "Observation";
|
|
35
|
+
readonly OperationOutcome: "OperationOutcome";
|
|
35
36
|
readonly Organization: "Organization";
|
|
37
|
+
readonly Parameters: "Parameters";
|
|
36
38
|
readonly Patient: "Patient";
|
|
39
|
+
readonly Person: "Person";
|
|
37
40
|
readonly Practitioner: "Practitioner";
|
|
38
41
|
readonly PractitionerRole: "PractitionerRole";
|
|
39
42
|
readonly Procedure: "Procedure";
|
|
40
43
|
readonly RelatedPerson: "RelatedPerson";
|
|
44
|
+
readonly ResearchSubject: "ResearchSubject";
|
|
41
45
|
readonly Specimen: "Specimen";
|
|
42
46
|
}>;
|
|
43
47
|
/** One canonical FHIR R4 `resourceType` value. */
|
|
@@ -76,11 +80,62 @@ export declare const FhirResourceTypes: Readonly<{
|
|
|
76
80
|
readonly MedicationRequest: "MedicationRequest";
|
|
77
81
|
readonly MedicationStatement: "MedicationStatement";
|
|
78
82
|
readonly Observation: "Observation";
|
|
83
|
+
readonly OperationOutcome: "OperationOutcome";
|
|
79
84
|
readonly Organization: "Organization";
|
|
85
|
+
readonly Parameters: "Parameters";
|
|
80
86
|
readonly Patient: "Patient";
|
|
87
|
+
readonly Person: "Person";
|
|
81
88
|
readonly Practitioner: "Practitioner";
|
|
82
89
|
readonly PractitionerRole: "PractitionerRole";
|
|
83
90
|
readonly Procedure: "Procedure";
|
|
84
91
|
readonly RelatedPerson: "RelatedPerson";
|
|
92
|
+
readonly ResearchSubject: "ResearchSubject";
|
|
85
93
|
readonly Specimen: "Specimen";
|
|
86
94
|
}>;
|
|
95
|
+
/** FHIR R5-only resources currently emitted by shared subscription contracts. */
|
|
96
|
+
export declare const ResourceTypesFhirR5: Readonly<{
|
|
97
|
+
readonly SubscriptionStatus: "SubscriptionStatus";
|
|
98
|
+
readonly AdverseEvent: "AdverseEvent";
|
|
99
|
+
readonly AllergyIntolerance: "AllergyIntolerance";
|
|
100
|
+
readonly Appointment: "Appointment";
|
|
101
|
+
readonly AppointmentResponse: "AppointmentResponse";
|
|
102
|
+
readonly Bundle: "Bundle";
|
|
103
|
+
readonly CarePlan: "CarePlan";
|
|
104
|
+
readonly ClinicalImpression: "ClinicalImpression";
|
|
105
|
+
readonly Communication: "Communication";
|
|
106
|
+
readonly Composition: "Composition";
|
|
107
|
+
readonly Condition: "Condition";
|
|
108
|
+
readonly Consent: "Consent";
|
|
109
|
+
readonly Coverage: "Coverage";
|
|
110
|
+
readonly Device: "Device";
|
|
111
|
+
readonly DeviceUseStatement: "DeviceUseStatement";
|
|
112
|
+
readonly DiagnosticReport: "DiagnosticReport";
|
|
113
|
+
readonly DocumentReference: "DocumentReference";
|
|
114
|
+
readonly Encounter: "Encounter";
|
|
115
|
+
readonly Flag: "Flag";
|
|
116
|
+
readonly ImagingStudy: "ImagingStudy";
|
|
117
|
+
readonly Immunization: "Immunization";
|
|
118
|
+
readonly ImmunizationRecommendation: "ImmunizationRecommendation";
|
|
119
|
+
readonly Invoice: "Invoice";
|
|
120
|
+
readonly Location: "Location";
|
|
121
|
+
readonly Medication: "Medication";
|
|
122
|
+
readonly MedicationRequest: "MedicationRequest";
|
|
123
|
+
readonly MedicationStatement: "MedicationStatement";
|
|
124
|
+
readonly Observation: "Observation";
|
|
125
|
+
readonly OperationOutcome: "OperationOutcome";
|
|
126
|
+
readonly Organization: "Organization";
|
|
127
|
+
readonly Parameters: "Parameters";
|
|
128
|
+
readonly Patient: "Patient";
|
|
129
|
+
readonly Person: "Person";
|
|
130
|
+
readonly Practitioner: "Practitioner";
|
|
131
|
+
readonly PractitionerRole: "PractitionerRole";
|
|
132
|
+
readonly Procedure: "Procedure";
|
|
133
|
+
readonly RelatedPerson: "RelatedPerson";
|
|
134
|
+
readonly ResearchSubject: "ResearchSubject";
|
|
135
|
+
readonly Specimen: "Specimen";
|
|
136
|
+
}>;
|
|
137
|
+
/** FHIR complex datatypes used as discriminators inside claims-first payloads. */
|
|
138
|
+
export declare const FhirDataTypes: Readonly<{
|
|
139
|
+
readonly Annotation: "Annotation";
|
|
140
|
+
readonly Attachment: "Attachment";
|
|
141
|
+
}>;
|
|
@@ -32,12 +32,16 @@ export const ResourceTypesFhirR4 = Object.freeze({
|
|
|
32
32
|
MedicationRequest: 'MedicationRequest',
|
|
33
33
|
MedicationStatement: 'MedicationStatement',
|
|
34
34
|
Observation: 'Observation',
|
|
35
|
+
OperationOutcome: 'OperationOutcome',
|
|
35
36
|
Organization: 'Organization',
|
|
37
|
+
Parameters: 'Parameters',
|
|
36
38
|
Patient: 'Patient',
|
|
39
|
+
Person: 'Person',
|
|
37
40
|
Practitioner: 'Practitioner',
|
|
38
41
|
PractitionerRole: 'PractitionerRole',
|
|
39
42
|
Procedure: 'Procedure',
|
|
40
43
|
RelatedPerson: 'RelatedPerson',
|
|
44
|
+
ResearchSubject: 'ResearchSubject',
|
|
41
45
|
Specimen: 'Specimen',
|
|
42
46
|
});
|
|
43
47
|
/**
|
|
@@ -47,3 +51,13 @@ export const ResourceTypesFhirR4 = Object.freeze({
|
|
|
47
51
|
* without ambiguity.
|
|
48
52
|
*/
|
|
49
53
|
export const FhirResourceTypes = ResourceTypesFhirR4;
|
|
54
|
+
/** FHIR R5-only resources currently emitted by shared subscription contracts. */
|
|
55
|
+
export const ResourceTypesFhirR5 = Object.freeze({
|
|
56
|
+
...ResourceTypesFhirR4,
|
|
57
|
+
SubscriptionStatus: 'SubscriptionStatus',
|
|
58
|
+
});
|
|
59
|
+
/** FHIR complex datatypes used as discriminators inside claims-first payloads. */
|
|
60
|
+
export const FhirDataTypes = Object.freeze({
|
|
61
|
+
Annotation: 'Annotation',
|
|
62
|
+
Attachment: 'Attachment',
|
|
63
|
+
});
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/** URL sections accepted by GW request routing. */
|
|
2
|
+
export declare const GatewayRouteSections: Readonly<{
|
|
3
|
+
readonly Entity: "entity";
|
|
4
|
+
readonly Identity: "identity";
|
|
5
|
+
readonly Individual: "individual";
|
|
6
|
+
readonly Network: "network";
|
|
7
|
+
readonly Registry: "registry";
|
|
8
|
+
}>;
|
|
9
|
+
/** URL formats accepted by GW request routing. */
|
|
10
|
+
export declare const GatewayRouteFormats: Readonly<{
|
|
11
|
+
readonly Auth: "auth";
|
|
12
|
+
readonly Firebase: "firebase";
|
|
13
|
+
readonly FhirApi: "org.hl7.fhir.api";
|
|
14
|
+
readonly OpenId: "openid";
|
|
15
|
+
readonly SchemaOrg: "org.schema";
|
|
16
|
+
}>;
|
|
17
|
+
/** Shared request-entry discriminator values used by GW, SDK and test fixtures. */
|
|
18
|
+
export declare const GatewayRequestEntryTypes: Readonly<{
|
|
19
|
+
readonly AllergyIntoleranceDelete: "AllergyIntolerance-delete-request-v1.0";
|
|
20
|
+
readonly AllergyIntoleranceEdit: "AllergyIntolerance-edit-request-v1.0";
|
|
21
|
+
readonly CommunicationSend: "Communication-send-v1.0";
|
|
22
|
+
readonly CompositionEntryAdd: "Composition-entry-add-v1.0";
|
|
23
|
+
readonly CustomerForm: "Customer-form-v1.0";
|
|
24
|
+
readonly EmployeeForm: "Employee-form-v1.0";
|
|
25
|
+
readonly EmployeePurge: "Employee-purge-request-v1.0";
|
|
26
|
+
readonly EmployeeRegistration: "Employee-registration-request-v1.0";
|
|
27
|
+
readonly FamilyPurge: "Family-purge-request-v1.0";
|
|
28
|
+
readonly FamilyRegistrationForm: "Family-registration-form-v1.0";
|
|
29
|
+
readonly FamilyRegistration: "Family-registration-request-v1.0";
|
|
30
|
+
readonly ImmunizationCreate: "Immunization-create-request-v1.0";
|
|
31
|
+
readonly ImmunizationDelete: "Immunization-delete-request-v1.0";
|
|
32
|
+
readonly MedicationStatementSearch: "MedicationStatement-search-request-v1.0";
|
|
33
|
+
readonly ObservationCreate: "Observation-create-request-v1.0";
|
|
34
|
+
readonly OfferSearch: "Offer-search-request-v1.0";
|
|
35
|
+
readonly OrderSearch: "Order-search-request-v1.0";
|
|
36
|
+
readonly OrganizationActivation: "Organization-activation-request-v1.0";
|
|
37
|
+
readonly OrganizationDisable: "Organization-disable-request-v1.0";
|
|
38
|
+
readonly OrganizationEnable: "Organization-enable-request-v1.0";
|
|
39
|
+
readonly OrganizationLifecycleStatus: "Organization-lifecycle-status-request-v1.0";
|
|
40
|
+
readonly OrganizationOrder: "Organization-order-request-v1.0";
|
|
41
|
+
readonly OrganizationRegistrationForm: "Organization-registration-form-v1.0";
|
|
42
|
+
readonly PersonDiscover: "Person-discover-v1.0";
|
|
43
|
+
readonly SubscriptionCreate: "Subscription-create-v1.0";
|
|
44
|
+
}>;
|
|
45
|
+
/** Shared asynchronous gateway response-entry discriminator values. */
|
|
46
|
+
export declare const GatewayResponseEntryTypes: Readonly<{
|
|
47
|
+
readonly BundleSearch: "Bundle-search-response-v1.0";
|
|
48
|
+
readonly BundleSummary: "Bundle-summary-response-v1.0";
|
|
49
|
+
readonly CommunicationIngestionRequest: "Communication-ingestion-request-v1.0";
|
|
50
|
+
readonly CommunicationSearch: "Communication-search-response-v1.0";
|
|
51
|
+
readonly CompositionSearch: "Composition-search-response-v1.0";
|
|
52
|
+
readonly DeviceRegistered: "Device:Registered";
|
|
53
|
+
readonly DocumentReferenceSearch: "DocumentReference-search-response-v1.0";
|
|
54
|
+
readonly EmployeeLicenseOffer: "Employee-license-offer-v1.0";
|
|
55
|
+
readonly EmployeeSearch: "Employee-search-response-v1.0";
|
|
56
|
+
readonly FamilyDisable: "Family-disable-response-v1.0";
|
|
57
|
+
readonly FamilyOrder: "Family-order-response-v1.0";
|
|
58
|
+
readonly FamilyOwnerDirectory: "Family-owner-directory-result-v1.0";
|
|
59
|
+
readonly FamilyPurge: "Family-purge-response-v1.0";
|
|
60
|
+
readonly FamilyRegistrationOffer: "Family-registration-offer-v1.0";
|
|
61
|
+
readonly FamilySearch: "Family-search-result-v1.0";
|
|
62
|
+
readonly IcaEnroll: "IcaEnrollResponse-v1.0";
|
|
63
|
+
readonly IndividualLicenseOffer: "Individual-license-offer-v1.0";
|
|
64
|
+
readonly LicenseGeneration: "LicenseGenerationResult";
|
|
65
|
+
readonly LicenseIssued: "License:Issued";
|
|
66
|
+
readonly LicenseSearch: "License-search-response-v1.0";
|
|
67
|
+
readonly MedicationStatementSearch: "MedicationStatement-search-response-v1.0";
|
|
68
|
+
readonly MessagingDelete: "MessagingDeleteResponse-v1.0";
|
|
69
|
+
readonly MessagingGet: "MessagingGetResponse-v1.0";
|
|
70
|
+
readonly MessagingList: "MessagingListResponse-v1.0";
|
|
71
|
+
readonly MessagingReceive: "MessagingReceiveResponse-v1.0";
|
|
72
|
+
readonly MessagingResponse: "MessagingResponse-v1.0";
|
|
73
|
+
readonly MessagingSend: "MessagingSendResponse-v1.0";
|
|
74
|
+
readonly OfferSearch: "Offer-search-response-v1.0";
|
|
75
|
+
readonly OperationOutcome: "OperationOutcome";
|
|
76
|
+
readonly OrganizationActivation: "Organization-activation-response-v1.0";
|
|
77
|
+
readonly OrganizationLifecycleStatus: "Organization-lifecycle-status-response-v1.0";
|
|
78
|
+
readonly OrganizationLicenseOffer: "Organization-license-offer-response-v1.0";
|
|
79
|
+
readonly OrganizationOrder: "Organization-order-response-v1.0";
|
|
80
|
+
readonly OrganizationPurge: "Organization-purge-response-v1.0";
|
|
81
|
+
readonly OrderSearch: "Order-search-response-v1.0";
|
|
82
|
+
readonly RelatedPersonSearch: "RelatedPerson-search-response-v1.0";
|
|
83
|
+
readonly ResearchSubjectSearch: "ResearchSubject-search-response-v1.0";
|
|
84
|
+
readonly SubjectSearch: "Subject-search-response-v1.0";
|
|
85
|
+
}>;
|
|
86
|
+
/** Shared asynchronous gateway response-envelope discriminator values. */
|
|
87
|
+
export declare const GatewayEnvelopeTypes: Readonly<{
|
|
88
|
+
readonly BatchResponse: "batch-response";
|
|
89
|
+
readonly MessagingResponse: "messaging-response";
|
|
90
|
+
readonly TransactionResponse: "transaction-response";
|
|
91
|
+
}>;
|
|
92
|
+
/** Non-FHIR resource discriminator values carried inside gateway entries. */
|
|
93
|
+
export declare const GatewayInternalResourceTypes: Readonly<{
|
|
94
|
+
readonly Document: "Document";
|
|
95
|
+
readonly IcaEnrollmentResult: "IcaEnrollmentResult";
|
|
96
|
+
}>;
|
|
97
|
+
/** Verification states exposed by shared gateway response contracts. */
|
|
98
|
+
export declare const GatewayVerificationStatuses: Readonly<{
|
|
99
|
+
readonly Approved: "approved";
|
|
100
|
+
}>;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { BundleTypes } from '../models/bundle-editor-types.js';
|
|
2
|
+
import { ResourceTypesFhirR4 } from './fhir-resource-types.js';
|
|
3
|
+
import { IdentityAuthResponseEntryTypes, } from './identity-auth.js';
|
|
4
|
+
import { OrganizationEmployeeSearchResponseEntryTypes } from './employee-lifecycle.js';
|
|
5
|
+
/** URL sections accepted by GW request routing. */
|
|
6
|
+
export const GatewayRouteSections = Object.freeze({
|
|
7
|
+
Entity: 'entity',
|
|
8
|
+
Identity: 'identity',
|
|
9
|
+
Individual: 'individual',
|
|
10
|
+
Network: 'network',
|
|
11
|
+
Registry: 'registry',
|
|
12
|
+
});
|
|
13
|
+
/** URL formats accepted by GW request routing. */
|
|
14
|
+
export const GatewayRouteFormats = Object.freeze({
|
|
15
|
+
Auth: 'auth',
|
|
16
|
+
Firebase: 'firebase',
|
|
17
|
+
FhirApi: 'org.hl7.fhir.api',
|
|
18
|
+
OpenId: 'openid',
|
|
19
|
+
SchemaOrg: 'org.schema',
|
|
20
|
+
});
|
|
21
|
+
/** Shared request-entry discriminator values used by GW, SDK and test fixtures. */
|
|
22
|
+
export const GatewayRequestEntryTypes = Object.freeze({
|
|
23
|
+
AllergyIntoleranceDelete: 'AllergyIntolerance-delete-request-v1.0',
|
|
24
|
+
AllergyIntoleranceEdit: 'AllergyIntolerance-edit-request-v1.0',
|
|
25
|
+
CommunicationSend: 'Communication-send-v1.0',
|
|
26
|
+
CompositionEntryAdd: 'Composition-entry-add-v1.0',
|
|
27
|
+
CustomerForm: 'Customer-form-v1.0',
|
|
28
|
+
EmployeeForm: 'Employee-form-v1.0',
|
|
29
|
+
EmployeePurge: 'Employee-purge-request-v1.0',
|
|
30
|
+
EmployeeRegistration: 'Employee-registration-request-v1.0',
|
|
31
|
+
FamilyPurge: 'Family-purge-request-v1.0',
|
|
32
|
+
FamilyRegistrationForm: 'Family-registration-form-v1.0',
|
|
33
|
+
FamilyRegistration: 'Family-registration-request-v1.0',
|
|
34
|
+
ImmunizationCreate: 'Immunization-create-request-v1.0',
|
|
35
|
+
ImmunizationDelete: 'Immunization-delete-request-v1.0',
|
|
36
|
+
MedicationStatementSearch: 'MedicationStatement-search-request-v1.0',
|
|
37
|
+
ObservationCreate: 'Observation-create-request-v1.0',
|
|
38
|
+
OfferSearch: 'Offer-search-request-v1.0',
|
|
39
|
+
OrderSearch: 'Order-search-request-v1.0',
|
|
40
|
+
OrganizationActivation: 'Organization-activation-request-v1.0',
|
|
41
|
+
OrganizationDisable: 'Organization-disable-request-v1.0',
|
|
42
|
+
OrganizationEnable: 'Organization-enable-request-v1.0',
|
|
43
|
+
OrganizationLifecycleStatus: 'Organization-lifecycle-status-request-v1.0',
|
|
44
|
+
OrganizationOrder: 'Organization-order-request-v1.0',
|
|
45
|
+
OrganizationRegistrationForm: 'Organization-registration-form-v1.0',
|
|
46
|
+
PersonDiscover: 'Person-discover-v1.0',
|
|
47
|
+
SubscriptionCreate: 'Subscription-create-v1.0',
|
|
48
|
+
});
|
|
49
|
+
/** Shared asynchronous gateway response-entry discriminator values. */
|
|
50
|
+
export const GatewayResponseEntryTypes = Object.freeze({
|
|
51
|
+
BundleSearch: 'Bundle-search-response-v1.0',
|
|
52
|
+
BundleSummary: 'Bundle-summary-response-v1.0',
|
|
53
|
+
CommunicationIngestionRequest: 'Communication-ingestion-request-v1.0',
|
|
54
|
+
CommunicationSearch: 'Communication-search-response-v1.0',
|
|
55
|
+
CompositionSearch: 'Composition-search-response-v1.0',
|
|
56
|
+
DeviceRegistered: 'Device:Registered',
|
|
57
|
+
DocumentReferenceSearch: 'DocumentReference-search-response-v1.0',
|
|
58
|
+
EmployeeLicenseOffer: 'Employee-license-offer-v1.0',
|
|
59
|
+
EmployeeSearch: OrganizationEmployeeSearchResponseEntryTypes.Employee,
|
|
60
|
+
FamilyDisable: 'Family-disable-response-v1.0',
|
|
61
|
+
FamilyOrder: 'Family-order-response-v1.0',
|
|
62
|
+
FamilyOwnerDirectory: 'Family-owner-directory-result-v1.0',
|
|
63
|
+
FamilyPurge: 'Family-purge-response-v1.0',
|
|
64
|
+
FamilyRegistrationOffer: 'Family-registration-offer-v1.0',
|
|
65
|
+
FamilySearch: 'Family-search-result-v1.0',
|
|
66
|
+
IcaEnroll: 'IcaEnrollResponse-v1.0',
|
|
67
|
+
IndividualLicenseOffer: 'Individual-license-offer-v1.0',
|
|
68
|
+
LicenseGeneration: 'LicenseGenerationResult',
|
|
69
|
+
LicenseIssued: IdentityAuthResponseEntryTypes.LicenseIssued,
|
|
70
|
+
LicenseSearch: OrganizationEmployeeSearchResponseEntryTypes.License,
|
|
71
|
+
MedicationStatementSearch: 'MedicationStatement-search-response-v1.0',
|
|
72
|
+
MessagingDelete: 'MessagingDeleteResponse-v1.0',
|
|
73
|
+
MessagingGet: 'MessagingGetResponse-v1.0',
|
|
74
|
+
MessagingList: 'MessagingListResponse-v1.0',
|
|
75
|
+
MessagingReceive: 'MessagingReceiveResponse-v1.0',
|
|
76
|
+
MessagingResponse: 'MessagingResponse-v1.0',
|
|
77
|
+
MessagingSend: 'MessagingSendResponse-v1.0',
|
|
78
|
+
OfferSearch: 'Offer-search-response-v1.0',
|
|
79
|
+
OperationOutcome: ResourceTypesFhirR4.OperationOutcome,
|
|
80
|
+
OrganizationActivation: 'Organization-activation-response-v1.0',
|
|
81
|
+
OrganizationLifecycleStatus: 'Organization-lifecycle-status-response-v1.0',
|
|
82
|
+
OrganizationLicenseOffer: 'Organization-license-offer-response-v1.0',
|
|
83
|
+
OrganizationOrder: 'Organization-order-response-v1.0',
|
|
84
|
+
OrganizationPurge: 'Organization-purge-response-v1.0',
|
|
85
|
+
OrderSearch: 'Order-search-response-v1.0',
|
|
86
|
+
RelatedPersonSearch: 'RelatedPerson-search-response-v1.0',
|
|
87
|
+
ResearchSubjectSearch: 'ResearchSubject-search-response-v1.0',
|
|
88
|
+
SubjectSearch: 'Subject-search-response-v1.0',
|
|
89
|
+
});
|
|
90
|
+
/** Shared asynchronous gateway response-envelope discriminator values. */
|
|
91
|
+
export const GatewayEnvelopeTypes = Object.freeze({
|
|
92
|
+
BatchResponse: BundleTypes.batchResponse,
|
|
93
|
+
MessagingResponse: 'messaging-response',
|
|
94
|
+
TransactionResponse: BundleTypes.transactionResponse,
|
|
95
|
+
});
|
|
96
|
+
/** Non-FHIR resource discriminator values carried inside gateway entries. */
|
|
97
|
+
export const GatewayInternalResourceTypes = Object.freeze({
|
|
98
|
+
Document: 'Document',
|
|
99
|
+
IcaEnrollmentResult: 'IcaEnrollmentResult',
|
|
100
|
+
});
|
|
101
|
+
/** Verification states exposed by shared gateway response contracts. */
|
|
102
|
+
export const GatewayVerificationStatuses = Object.freeze({
|
|
103
|
+
Approved: 'approved',
|
|
104
|
+
});
|
package/dist/constants/http.d.ts
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
export declare const HttpStatusCodes: Readonly<{
|
|
3
3
|
readonly Ok: 200;
|
|
4
4
|
readonly Created: 201;
|
|
5
|
+
readonly Accepted: 202;
|
|
6
|
+
readonly NoContent: 204;
|
|
5
7
|
readonly BadRequest: 400;
|
|
6
8
|
readonly Unauthorized: 401;
|
|
7
9
|
readonly Forbidden: 403;
|
|
@@ -24,7 +26,19 @@ export declare const HttpHeaderNames: Readonly<{
|
|
|
24
26
|
readonly Authorization: "authorization";
|
|
25
27
|
readonly ContentType: "content-type";
|
|
26
28
|
}>;
|
|
29
|
+
/** Authorization schemes used by authenticated route examples and adapters. */
|
|
30
|
+
export declare const HttpAuthorizationSchemes: Readonly<{
|
|
31
|
+
readonly Bearer: "Bearer";
|
|
32
|
+
}>;
|
|
27
33
|
/** Media types shared by JSON route adapters. */
|
|
28
34
|
export declare const HttpMediaTypes: Readonly<{
|
|
35
|
+
readonly ApiJson: "application/api+json";
|
|
36
|
+
readonly ApiJsonShort: "api+json";
|
|
37
|
+
readonly BundleApiJson: "application/bundle-api+json";
|
|
38
|
+
readonly DidcommEncryptedJson: "application/didcomm-encrypted+json";
|
|
39
|
+
readonly DidcommPlainJson: "application/didcomm-plain+json";
|
|
40
|
+
readonly DidcommSignedJson: "application/didcomm-signed+json";
|
|
41
|
+
readonly FhirJson: "application/fhir+json";
|
|
29
42
|
readonly Json: "application/json";
|
|
43
|
+
readonly JsonApi: "application/vnd.api+json";
|
|
30
44
|
}>;
|
package/dist/constants/http.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
export const HttpStatusCodes = Object.freeze({
|
|
3
3
|
Ok: 200,
|
|
4
4
|
Created: 201,
|
|
5
|
+
Accepted: 202,
|
|
6
|
+
NoContent: 204,
|
|
5
7
|
BadRequest: 400,
|
|
6
8
|
Unauthorized: 401,
|
|
7
9
|
Forbidden: 403,
|
|
@@ -24,7 +26,19 @@ export const HttpHeaderNames = Object.freeze({
|
|
|
24
26
|
Authorization: 'authorization',
|
|
25
27
|
ContentType: 'content-type',
|
|
26
28
|
});
|
|
29
|
+
/** Authorization schemes used by authenticated route examples and adapters. */
|
|
30
|
+
export const HttpAuthorizationSchemes = Object.freeze({
|
|
31
|
+
Bearer: 'Bearer',
|
|
32
|
+
});
|
|
27
33
|
/** Media types shared by JSON route adapters. */
|
|
28
34
|
export const HttpMediaTypes = Object.freeze({
|
|
35
|
+
ApiJson: 'application/api+json',
|
|
36
|
+
ApiJsonShort: 'api+json',
|
|
37
|
+
BundleApiJson: 'application/bundle-api+json',
|
|
38
|
+
DidcommEncryptedJson: 'application/didcomm-encrypted+json',
|
|
39
|
+
DidcommPlainJson: 'application/didcomm-plain+json',
|
|
40
|
+
DidcommSignedJson: 'application/didcomm-signed+json',
|
|
41
|
+
FhirJson: 'application/fhir+json',
|
|
29
42
|
Json: 'application/json',
|
|
43
|
+
JsonApi: 'application/vnd.api+json',
|
|
30
44
|
});
|
|
@@ -18,6 +18,22 @@ export declare const IdentityAuthRouteSegments: Readonly<{
|
|
|
18
18
|
readonly Section: "identity";
|
|
19
19
|
readonly Format: "auth";
|
|
20
20
|
}>;
|
|
21
|
+
/** Resource discriminators used by identity/auth routes after DCR. */
|
|
22
|
+
export declare const IdentityAuthResourceTypes: Readonly<{
|
|
23
|
+
readonly Smart: "smart";
|
|
24
|
+
}>;
|
|
25
|
+
/**
|
|
26
|
+
* SMART post-DCR actions.
|
|
27
|
+
*
|
|
28
|
+
* `TokenResponse` is the canonical polling action. `LegacyBatchResponse` is
|
|
29
|
+
* accepted temporarily for installed clients; `_token` is intentionally not
|
|
30
|
+
* part of the contract.
|
|
31
|
+
*/
|
|
32
|
+
export declare const SmartPostDcrActions: Readonly<{
|
|
33
|
+
readonly Token: "token";
|
|
34
|
+
readonly TokenResponse: "token-response";
|
|
35
|
+
readonly LegacyBatchResponse: "_batch-response";
|
|
36
|
+
}>;
|
|
21
37
|
/** Wire-level request keys used by identity/auth operations. */
|
|
22
38
|
export declare const IdentityAuthRequestFields: Readonly<{
|
|
23
39
|
readonly SubjectToken: "subject_token";
|
|
@@ -18,6 +18,22 @@ export const IdentityAuthRouteSegments = Object.freeze({
|
|
|
18
18
|
Section: 'identity',
|
|
19
19
|
Format: 'auth',
|
|
20
20
|
});
|
|
21
|
+
/** Resource discriminators used by identity/auth routes after DCR. */
|
|
22
|
+
export const IdentityAuthResourceTypes = Object.freeze({
|
|
23
|
+
Smart: 'smart',
|
|
24
|
+
});
|
|
25
|
+
/**
|
|
26
|
+
* SMART post-DCR actions.
|
|
27
|
+
*
|
|
28
|
+
* `TokenResponse` is the canonical polling action. `LegacyBatchResponse` is
|
|
29
|
+
* accepted temporarily for installed clients; `_token` is intentionally not
|
|
30
|
+
* part of the contract.
|
|
31
|
+
*/
|
|
32
|
+
export const SmartPostDcrActions = Object.freeze({
|
|
33
|
+
Token: 'token',
|
|
34
|
+
TokenResponse: 'token-response',
|
|
35
|
+
LegacyBatchResponse: '_batch-response',
|
|
36
|
+
});
|
|
21
37
|
/** Wire-level request keys used by identity/auth operations. */
|
|
22
38
|
export const IdentityAuthRequestFields = Object.freeze({
|
|
23
39
|
SubjectToken: 'subject_token',
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './actor-session';
|
|
2
2
|
export * from './communication';
|
|
3
|
+
export * from './composition';
|
|
3
4
|
export * from './clinical-statuses';
|
|
4
5
|
export * from './cryptography';
|
|
5
6
|
export * from './data-collections';
|
|
@@ -10,6 +11,7 @@ export * from './didcomm';
|
|
|
10
11
|
export * from './device';
|
|
11
12
|
export * from './employee-lifecycle';
|
|
12
13
|
export * from './identity-auth';
|
|
14
|
+
export * from './jsonld';
|
|
13
15
|
export * from './http';
|
|
14
16
|
export * from './organization-application';
|
|
15
17
|
export * from './did-services';
|
|
@@ -17,6 +19,7 @@ export * from './eu-countries';
|
|
|
17
19
|
export * from './fhir-code-systems';
|
|
18
20
|
export * from './fhir-resource-types';
|
|
19
21
|
export * from './fhir-versions';
|
|
22
|
+
export * from './gateway-response';
|
|
20
23
|
export * from './schemaorg';
|
|
21
24
|
export * from './hl7-roles';
|
|
22
25
|
export * from './healthcare';
|
package/dist/constants/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './actor-session.js';
|
|
2
2
|
export * from './communication.js';
|
|
3
|
+
export * from './composition.js';
|
|
3
4
|
export * from './clinical-statuses.js';
|
|
4
5
|
export * from './cryptography.js';
|
|
5
6
|
export * from './data-collections.js';
|
|
@@ -10,6 +11,7 @@ export * from './didcomm.js';
|
|
|
10
11
|
export * from './device.js';
|
|
11
12
|
export * from './employee-lifecycle.js';
|
|
12
13
|
export * from './identity-auth.js';
|
|
14
|
+
export * from './jsonld.js';
|
|
13
15
|
export * from './http.js';
|
|
14
16
|
export * from './organization-application.js';
|
|
15
17
|
export * from './did-services.js';
|
|
@@ -17,6 +19,7 @@ export * from './eu-countries.js';
|
|
|
17
19
|
export * from './fhir-code-systems.js';
|
|
18
20
|
export * from './fhir-resource-types.js';
|
|
19
21
|
export * from './fhir-versions.js';
|
|
22
|
+
export * from './gateway-response.js';
|
|
20
23
|
export * from './schemaorg.js';
|
|
21
24
|
export * from './hl7-roles.js';
|
|
22
25
|
export * from './healthcare.js';
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { ParameterData } from "../models/params";
|
|
2
|
+
/** Schema.org entity types used as JSON-API entry discriminators. */
|
|
3
|
+
export declare const SchemaOrgTypes: Readonly<{
|
|
4
|
+
readonly Customer: "Customer";
|
|
5
|
+
readonly Order: "Order";
|
|
6
|
+
}>;
|
|
2
7
|
export declare enum ClaimsServiceSchemaorg {
|
|
3
8
|
areaServed = "org.schema.Service.areaServed",
|
|
4
9
|
additionalType = "org.schema.Service.additionalType",
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
// Copyright 2025 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
2
|
// File: src/models/schemaorg.ts
|
|
3
|
+
/** Schema.org entity types used as JSON-API entry discriminators. */
|
|
4
|
+
export const SchemaOrgTypes = Object.freeze({
|
|
5
|
+
Customer: 'Customer',
|
|
6
|
+
Order: 'Order',
|
|
7
|
+
});
|
|
3
8
|
export var ClaimsServiceSchemaorg;
|
|
4
9
|
(function (ClaimsServiceSchemaorg) {
|
|
5
10
|
ClaimsServiceSchemaorg["areaServed"] = "org.schema.Service.areaServed";
|
package/dist/constants/urn.d.ts
CHANGED
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
* as a bare base64url thumbprint value.
|
|
7
7
|
*/
|
|
8
8
|
export declare const UrnPrefixes: Readonly<{
|
|
9
|
+
readonly Email: "urn:email:";
|
|
9
10
|
readonly JwkThumbprintSha256KeyId: "urn:ietf:params:oauth:jwk-thumbprint:sha-256:";
|
|
10
11
|
readonly Multibase: "urn:multibase:";
|
|
12
|
+
readonly Uuid: "urn:uuid:";
|
|
11
13
|
}>;
|
|
12
14
|
export type UrnPrefix = typeof UrnPrefixes[keyof typeof UrnPrefixes];
|
package/dist/constants/urn.js
CHANGED
package/dist/examples/index.d.ts
CHANGED
package/dist/examples/index.js
CHANGED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export declare const EXAMPLE_RESEARCHER_WORKING_SELECTION_COMPOSITION_ID: "8a8a5e1b-0d8e-4a7c-8c39-3b8034440001";
|
|
2
|
+
export declare const EXAMPLE_RESEARCHER_WORKING_SELECTION_SUBJECT_ID: "urn:uuid:8a8a5e1b-0d8e-4a7c-8c39-3b8034440001";
|
|
3
|
+
export declare const EXAMPLE_RESEARCHER_WORKING_SELECTION_AUTHOR_ID: string;
|
|
4
|
+
export declare const EXAMPLE_RESEARCHER_WORKING_SELECTION_DATE: "2026-07-06T10:15:00Z";
|
|
5
|
+
export declare const EXAMPLE_RESEARCHER_WORKING_SELECTION_THREAD_ID: "researcher-selection-composition-save-001";
|
|
6
|
+
export declare const EXAMPLE_RESEARCHER_WORKING_SELECTION_SEARCH_THREAD_ID: "researcher-selection-composition-search-001";
|
|
7
|
+
export declare const EXAMPLE_RESEARCHER_WORKING_SELECTION_ACCESS_TOKEN: "demo-token";
|
|
8
|
+
export declare const EXAMPLE_RESEARCHER_WORKING_SELECTION_AUTHORIZATION: "Bearer demo-token";
|
|
9
|
+
export declare const EXAMPLE_RESEARCHER_WORKING_SELECTION_TAG: Readonly<{
|
|
10
|
+
id: "Composition.meta.tag[0]";
|
|
11
|
+
system: "urn:research:tag:score";
|
|
12
|
+
code: "10";
|
|
13
|
+
}>;
|
|
14
|
+
export type ResearcherWorkingSelectionInput = Readonly<{
|
|
15
|
+
compositionId?: string;
|
|
16
|
+
subjectId?: string;
|
|
17
|
+
authorId?: string;
|
|
18
|
+
date?: string;
|
|
19
|
+
tag?: Readonly<{
|
|
20
|
+
id: string;
|
|
21
|
+
system: string;
|
|
22
|
+
code: string;
|
|
23
|
+
}>;
|
|
24
|
+
}>;
|
|
25
|
+
export declare function buildResearcherWorkingSelectionBundle(input?: ResearcherWorkingSelectionInput): {
|
|
26
|
+
readonly resourceType: "Bundle";
|
|
27
|
+
readonly type: "batch";
|
|
28
|
+
readonly entry: readonly [{
|
|
29
|
+
readonly type: "Composition";
|
|
30
|
+
readonly request: {
|
|
31
|
+
readonly method: "POST";
|
|
32
|
+
readonly url: "digitaltwin/org.hl7.fhir.r4/Composition";
|
|
33
|
+
};
|
|
34
|
+
readonly resource: {
|
|
35
|
+
readonly resourceType: "Composition";
|
|
36
|
+
readonly id: string;
|
|
37
|
+
readonly meta: {
|
|
38
|
+
readonly tag: Readonly<{
|
|
39
|
+
id: string;
|
|
40
|
+
system: string;
|
|
41
|
+
code: string;
|
|
42
|
+
}>[];
|
|
43
|
+
readonly claims: {
|
|
44
|
+
readonly "@context": "org.hl7.fhir.r4";
|
|
45
|
+
readonly "@type": "Composition:ResearcherWorkingSelection";
|
|
46
|
+
readonly "Composition.identifier": string;
|
|
47
|
+
readonly "Composition.subject": string;
|
|
48
|
+
readonly "Composition.section": string;
|
|
49
|
+
readonly "Composition.type": string;
|
|
50
|
+
readonly "Composition.author": string;
|
|
51
|
+
readonly "Composition.date": string;
|
|
52
|
+
};
|
|
53
|
+
} | {
|
|
54
|
+
readonly tag?: undefined;
|
|
55
|
+
readonly claims: {
|
|
56
|
+
readonly "@context": "org.hl7.fhir.r4";
|
|
57
|
+
readonly "@type": "Composition:ResearcherWorkingSelection";
|
|
58
|
+
readonly "Composition.identifier": string;
|
|
59
|
+
readonly "Composition.subject": string;
|
|
60
|
+
readonly "Composition.section": string;
|
|
61
|
+
readonly "Composition.type": string;
|
|
62
|
+
readonly "Composition.author": string;
|
|
63
|
+
readonly "Composition.date": string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
}];
|
|
68
|
+
};
|