gdc-common-utils-ts 2.7.5 → 2.7.6
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/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
|
});
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Format } from '../constants/Schemas.js';
|
|
2
|
+
import { CompositionRequestPaths, CompositionSemanticTypes } from '../constants/composition.js';
|
|
3
|
+
import { HealthcareBasicSections } from '../constants/healthcare.js';
|
|
4
|
+
import { HttpAuthorizationSchemes, HttpRequestMethods } from '../constants/http.js';
|
|
5
|
+
import { JsonLdKeywords } from '../constants/jsonld.js';
|
|
6
|
+
import { ResourceTypesFhirR4 } from '../constants/fhir-resource-types.js';
|
|
7
|
+
import { UrnPrefixes } from '../constants/urn.js';
|
|
8
|
+
import { BundleTypes } from '../models/bundle-editor-types.js';
|
|
9
|
+
import { CompositionClaim } from '../models/interoperable-claims/composition-claims.js';
|
|
10
|
+
import { EXAMPLE_COMPOSITION_DATE_MEDICATION_DOCUMENT, EXAMPLE_LICENSE_SEAT_UUID_ACTIVE, EXAMPLE_PROFESSIONAL_DID, } from './shared.js';
|
|
11
|
+
export const EXAMPLE_RESEARCHER_WORKING_SELECTION_COMPOSITION_ID = EXAMPLE_LICENSE_SEAT_UUID_ACTIVE;
|
|
12
|
+
export const EXAMPLE_RESEARCHER_WORKING_SELECTION_SUBJECT_ID = `${UrnPrefixes.Uuid}${EXAMPLE_LICENSE_SEAT_UUID_ACTIVE}`;
|
|
13
|
+
export const EXAMPLE_RESEARCHER_WORKING_SELECTION_AUTHOR_ID = EXAMPLE_PROFESSIONAL_DID;
|
|
14
|
+
export const EXAMPLE_RESEARCHER_WORKING_SELECTION_DATE = EXAMPLE_COMPOSITION_DATE_MEDICATION_DOCUMENT;
|
|
15
|
+
export const EXAMPLE_RESEARCHER_WORKING_SELECTION_THREAD_ID = 'researcher-selection-composition-save-001';
|
|
16
|
+
export const EXAMPLE_RESEARCHER_WORKING_SELECTION_SEARCH_THREAD_ID = 'researcher-selection-composition-search-001';
|
|
17
|
+
export const EXAMPLE_RESEARCHER_WORKING_SELECTION_ACCESS_TOKEN = 'demo-token';
|
|
18
|
+
export const EXAMPLE_RESEARCHER_WORKING_SELECTION_AUTHORIZATION = `${HttpAuthorizationSchemes.Bearer} ${EXAMPLE_RESEARCHER_WORKING_SELECTION_ACCESS_TOKEN}`;
|
|
19
|
+
export const EXAMPLE_RESEARCHER_WORKING_SELECTION_TAG = Object.freeze({
|
|
20
|
+
id: 'Composition.meta.tag[0]',
|
|
21
|
+
system: 'urn:research:tag:score',
|
|
22
|
+
code: '10',
|
|
23
|
+
});
|
|
24
|
+
export function buildResearcherWorkingSelectionBundle(input = {}) {
|
|
25
|
+
const compositionId = input.compositionId
|
|
26
|
+
?? EXAMPLE_RESEARCHER_WORKING_SELECTION_COMPOSITION_ID;
|
|
27
|
+
const subjectId = input.subjectId ?? EXAMPLE_RESEARCHER_WORKING_SELECTION_SUBJECT_ID;
|
|
28
|
+
const authorId = input.authorId ?? EXAMPLE_RESEARCHER_WORKING_SELECTION_AUTHOR_ID;
|
|
29
|
+
const date = input.date ?? EXAMPLE_RESEARCHER_WORKING_SELECTION_DATE;
|
|
30
|
+
const tag = input.tag ? { tag: [input.tag] } : {};
|
|
31
|
+
return {
|
|
32
|
+
resourceType: ResourceTypesFhirR4.Bundle,
|
|
33
|
+
type: BundleTypes.batch,
|
|
34
|
+
entry: [{
|
|
35
|
+
type: ResourceTypesFhirR4.Composition,
|
|
36
|
+
request: {
|
|
37
|
+
method: HttpRequestMethods.Post,
|
|
38
|
+
url: CompositionRequestPaths.ResearcherWorkingSelection,
|
|
39
|
+
},
|
|
40
|
+
resource: {
|
|
41
|
+
resourceType: ResourceTypesFhirR4.Composition,
|
|
42
|
+
id: compositionId,
|
|
43
|
+
meta: {
|
|
44
|
+
claims: {
|
|
45
|
+
[JsonLdKeywords.Context]: Format.FHIR_R4,
|
|
46
|
+
[JsonLdKeywords.Type]: CompositionSemanticTypes.ResearcherWorkingSelection,
|
|
47
|
+
[CompositionClaim.Identifier]: compositionId,
|
|
48
|
+
[CompositionClaim.Subject]: subjectId,
|
|
49
|
+
[CompositionClaim.Section]: HealthcareBasicSections.HistoryOfMedicationUse.attributeValue,
|
|
50
|
+
[CompositionClaim.Type]: HealthcareBasicSections.PatientSummaryDocument.attributeValue,
|
|
51
|
+
[CompositionClaim.Author]: authorId,
|
|
52
|
+
[CompositionClaim.Date]: date,
|
|
53
|
+
},
|
|
54
|
+
...tag,
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
}],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -141,6 +141,7 @@ export declare const EXAMPLE_PROVIDER_ORGANIZATION_DID: "did:web:hospital.acme.o
|
|
|
141
141
|
export declare const EXAMPLE_PROVIDER_ORGANIZATION_URL: "https://hospital.acme.org";
|
|
142
142
|
export declare const EXAMPLE_GATEWAY_PUBLIC_ORIGIN: "https://gateway.example.com";
|
|
143
143
|
export declare const EXAMPLE_HOST_PUBLIC_HOSTNAME: "host.example.com";
|
|
144
|
+
export declare const EXAMPLE_HOST_PUBLIC_DID: "did:web:host.example.com";
|
|
144
145
|
export declare const EXAMPLE_PERSON_CARD_URI: "urn:example:card:person:subject-001";
|
|
145
146
|
export declare const EXAMPLE_ANIMAL_CARD_URI: "urn:example:card:animal:subject-002";
|
|
146
147
|
export declare const EXAMPLE_PROVIDER_TAX_ID: "VATES-B00112233";
|
package/dist/examples/shared.js
CHANGED
|
@@ -159,6 +159,7 @@ export const EXAMPLE_PROVIDER_ORGANIZATION_DID = 'did:web:hospital.acme.org';
|
|
|
159
159
|
export const EXAMPLE_PROVIDER_ORGANIZATION_URL = 'https://hospital.acme.org';
|
|
160
160
|
export const EXAMPLE_GATEWAY_PUBLIC_ORIGIN = 'https://gateway.example.com';
|
|
161
161
|
export const EXAMPLE_HOST_PUBLIC_HOSTNAME = 'host.example.com';
|
|
162
|
+
export const EXAMPLE_HOST_PUBLIC_DID = `did:web:${EXAMPLE_HOST_PUBLIC_HOSTNAME}`;
|
|
162
163
|
export const EXAMPLE_PERSON_CARD_URI = 'urn:example:card:person:subject-001';
|
|
163
164
|
export const EXAMPLE_ANIMAL_CARD_URI = 'urn:example:card:animal:subject-002';
|
|
164
165
|
export const EXAMPLE_PROVIDER_TAX_ID = 'VATES-B00112233';
|
|
@@ -73,9 +73,12 @@ export type BuiltBundleEntry = {
|
|
|
73
73
|
};
|
|
74
74
|
export declare const BundleTypes: Readonly<{
|
|
75
75
|
readonly batch: "batch";
|
|
76
|
+
readonly batchResponse: "batch-response";
|
|
76
77
|
readonly document: "document";
|
|
77
78
|
readonly collection: "collection";
|
|
79
|
+
readonly searchset: "searchset";
|
|
78
80
|
readonly transaction: "transaction";
|
|
81
|
+
readonly transactionResponse: "transaction-response";
|
|
79
82
|
}>;
|
|
80
83
|
export type BundleType = (typeof BundleTypes)[keyof typeof BundleTypes];
|
|
81
84
|
/** Canonical validation issues returned by `BundleEditor.validateDocumentAuthoring()`. */
|