gdc-common-utils-ts 2.7.4 → 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/communication-bundle-document-request.d.ts +0 -6
- package/dist/examples/index.d.ts +1 -0
- package/dist/examples/index.js +1 -0
- package/dist/examples/individual-controller.d.ts +15 -13
- package/dist/examples/individual-controller.js +16 -12
- package/dist/examples/license.d.ts +67 -65
- package/dist/examples/license.js +37 -39
- package/dist/examples/lifecycle.d.ts +0 -6
- package/dist/examples/related-person.d.ts +0 -36
- package/dist/examples/related-person.js +0 -2
- 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/dist/utils/communication-bundle-document-request.d.ts +0 -3
- package/dist/utils/communication-bundle-document-request.js +0 -2
- package/dist/utils/communication-didcomm-payload.js +0 -3
- package/dist/utils/individual-organization-lifecycle.d.ts +1 -4
- package/dist/utils/individual-organization-lifecycle.js +1 -2
- package/dist/utils/license-commercial-search.d.ts +0 -2
- package/dist/utils/license-commercial-search.js +5 -17
- package/dist/utils/license-list-search.js +1 -1
- package/dist/utils/license-offer-order.js +1 -1
- package/dist/utils/license.d.ts +16 -4
- package/dist/utils/license.js +19 -13
- package/dist/utils/organization-lifecycle.d.ts +0 -3
- package/dist/utils/organization-lifecycle.js +0 -1
- 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
|
@@ -3,9 +3,6 @@ export declare function buildExampleIpsBundleDocumentRequestFromController(): Re
|
|
|
3
3
|
body: Readonly<{
|
|
4
4
|
data: ReadonlyArray<{
|
|
5
5
|
type: string;
|
|
6
|
-
meta: {
|
|
7
|
-
claims: Record<string, unknown>;
|
|
8
|
-
};
|
|
9
6
|
resource: Record<string, unknown>;
|
|
10
7
|
}>;
|
|
11
8
|
}>;
|
|
@@ -15,9 +12,6 @@ export declare function buildExampleIpsBundleDocumentRequestFromDoctor(): Readon
|
|
|
15
12
|
body: Readonly<{
|
|
16
13
|
data: ReadonlyArray<{
|
|
17
14
|
type: string;
|
|
18
|
-
meta: {
|
|
19
|
-
claims: Record<string, unknown>;
|
|
20
|
-
};
|
|
21
15
|
resource: Record<string, unknown>;
|
|
22
16
|
}>;
|
|
23
17
|
}>;
|
package/dist/examples/index.d.ts
CHANGED
package/dist/examples/index.js
CHANGED
|
@@ -107,9 +107,11 @@ export declare const EXAMPLE_CONSENT_GRANT_RESPONSE: {
|
|
|
107
107
|
export declare const EXAMPLE_COMMUNICATION_INGESTION_PAYLOAD: {
|
|
108
108
|
readonly body: {
|
|
109
109
|
readonly data: readonly [{
|
|
110
|
-
readonly
|
|
111
|
-
readonly
|
|
112
|
-
readonly
|
|
110
|
+
readonly resource: {
|
|
111
|
+
readonly meta: {
|
|
112
|
+
readonly claims: {
|
|
113
|
+
readonly a: 1;
|
|
114
|
+
};
|
|
113
115
|
};
|
|
114
116
|
};
|
|
115
117
|
}];
|
|
@@ -132,18 +134,18 @@ export declare const EXAMPLE_FAMILY_ORGANIZATION_SEARCH_RESPONSE_BODY: {
|
|
|
132
134
|
readonly body: {
|
|
133
135
|
readonly data: readonly [{
|
|
134
136
|
readonly type: "Family-search-result-v1.0";
|
|
135
|
-
readonly meta: {
|
|
136
|
-
readonly claims: {
|
|
137
|
-
readonly 'org.schema.FamilyRegistration.status': "already_exists";
|
|
138
|
-
readonly 'org.schema.Offer.identifier': "offer-uuid-001";
|
|
139
|
-
readonly 'org.schema.Organization.identifier.value': "org-uuid-001";
|
|
140
|
-
readonly 'org.schema.Organization.alternateName': "Ana";
|
|
141
|
-
readonly 'org.schema.Organization.owner.telephone': "+34600000001";
|
|
142
|
-
readonly 'org.schema.Organization.foundingDate': "2010-05-20";
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
137
|
readonly resource: {
|
|
146
138
|
readonly id: "org-uuid-001";
|
|
139
|
+
readonly meta: {
|
|
140
|
+
readonly claims: {
|
|
141
|
+
readonly 'org.schema.FamilyRegistration.status': "already_exists";
|
|
142
|
+
readonly 'org.schema.Offer.identifier': "offer-uuid-001";
|
|
143
|
+
readonly 'org.schema.Organization.identifier.value': "org-uuid-001";
|
|
144
|
+
readonly 'org.schema.Organization.alternateName': "Ana";
|
|
145
|
+
readonly 'org.schema.Organization.owner.telephone': "+34600000001";
|
|
146
|
+
readonly 'org.schema.Organization.foundingDate': "2010-05-20";
|
|
147
|
+
};
|
|
148
|
+
};
|
|
147
149
|
};
|
|
148
150
|
}];
|
|
149
151
|
};
|
|
@@ -70,9 +70,11 @@ export const EXAMPLE_COMMUNICATION_INGESTION_PAYLOAD = {
|
|
|
70
70
|
body: {
|
|
71
71
|
data: [
|
|
72
72
|
{
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
resource: {
|
|
74
|
+
meta: {
|
|
75
|
+
claims: {
|
|
76
|
+
a: 1,
|
|
77
|
+
},
|
|
76
78
|
},
|
|
77
79
|
},
|
|
78
80
|
},
|
|
@@ -105,17 +107,19 @@ export const EXAMPLE_FAMILY_ORGANIZATION_SEARCH_RESPONSE_BODY = {
|
|
|
105
107
|
body: {
|
|
106
108
|
data: [{
|
|
107
109
|
type: 'Family-search-result-v1.0',
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
110
|
+
resource: {
|
|
111
|
+
id: 'org-uuid-001',
|
|
112
|
+
meta: {
|
|
113
|
+
claims: {
|
|
114
|
+
'org.schema.FamilyRegistration.status': 'already_exists',
|
|
115
|
+
'org.schema.Offer.identifier': 'offer-uuid-001',
|
|
116
|
+
'org.schema.Organization.identifier.value': 'org-uuid-001',
|
|
117
|
+
'org.schema.Organization.alternateName': EXAMPLE_FAMILY_ORGANIZATION_SEARCH_INPUT.usualname,
|
|
118
|
+
'org.schema.Organization.owner.telephone': EXAMPLE_FAMILY_ORGANIZATION_SEARCH_INPUT.controllerPhone,
|
|
119
|
+
'org.schema.Organization.foundingDate': EXAMPLE_FAMILY_ORGANIZATION_SEARCH_INPUT.birthDate,
|
|
120
|
+
},
|
|
116
121
|
},
|
|
117
122
|
},
|
|
118
|
-
resource: { id: 'org-uuid-001' },
|
|
119
123
|
}],
|
|
120
124
|
},
|
|
121
125
|
};
|