gdc-sdk-node-ts 2.7.8 → 2.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -437,6 +437,12 @@ grant/deny operation and retains the original Communication identifier/thread.
|
|
|
437
437
|
and `GatewayActiveConsentProvider` supplies `evaluateRequestedAccess(...)` from
|
|
438
438
|
the GW Consent source of truth rather than a parallel application table.
|
|
439
439
|
There is no `AccessRequest` FHIR resource or `AccessRequest.*` claim family.
|
|
440
|
+
The Communication itself uses the standard FHIR `notification` category;
|
|
441
|
+
`permission-request` is workflow meaning carried by the attached draft Consent,
|
|
442
|
+
not a custom category. See the
|
|
443
|
+
[HL7 category value set](https://www.hl7.org/fhir/valueset-communication-category.html),
|
|
444
|
+
[HL7 `v3-ActReason` BTG code system](http://terminology.hl7.org/CodeSystem/v3-ActReason),
|
|
445
|
+
and the [IHE compound normal/break-glass Consent example](https://profiles.ihe.net/ITI/PCF/Consent-ex-consent-advanced-normal-break-glass-restricted.json.html).
|
|
440
446
|
|
|
441
447
|
## Main Flows
|
|
442
448
|
|
|
@@ -407,7 +407,12 @@ export type CommunicationParticipantRuntimeSearchInput = {
|
|
|
407
407
|
};
|
|
408
408
|
/** Subject/requester filters for canonical permission-request Communications. */
|
|
409
409
|
export type ProfessionalAccessRequestSearchInput = CommunicationParticipantRuntimeSearchInput;
|
|
410
|
-
/**
|
|
410
|
+
/**
|
|
411
|
+
* Restricts a Communication participant search to standard notifications.
|
|
412
|
+
* A permission request is identified by its attached draft Consent contract;
|
|
413
|
+
* it is not an invented fifth FHIR category. See
|
|
414
|
+
* https://www.hl7.org/fhir/valueset-communication-category.html
|
|
415
|
+
*/
|
|
411
416
|
export declare function buildProfessionalAccessRequestSearchInput(input: ProfessionalAccessRequestSearchInput): CommunicationParticipantRuntimeSearchInput;
|
|
412
417
|
export type ClinicalDateRange = DateRange;
|
|
413
418
|
export type ClinicalBundleSearchInput = Omit<BundleSearchQuery, 'section' | 'searchParams'> & {
|
|
@@ -6,6 +6,7 @@ import { CommunicationClaim } from 'gdc-common-utils-ts/models/interoperable-cla
|
|
|
6
6
|
import { BundleEditor, buildCommunicationParticipantSearchBundle, buildBlockchainArtifactDocumentReference, BundleQuery, createInteroperableResourceOperationEditor, IndividualOrganizationLifecycleEditor, LicenseOfferSearchEditor, LicenseOrderSearchEditor, InteroperableLifecycleStatuses, LicenseListSearchEditor, buildLicenseIssueEntry, buildLicensePurchaseEntry, } from 'gdc-common-utils-ts';
|
|
7
7
|
import { EmployeeBundleOperations, EmployeeResourceTypes, } from 'gdc-common-utils-ts/utils/employee';
|
|
8
8
|
import { DeviceAppTypes, DeviceUserClasses } from 'gdc-common-utils-ts/constants/device';
|
|
9
|
+
import { CommunicationCategoryCodes } from 'gdc-common-utils-ts/constants/communication';
|
|
9
10
|
import { addFhirResourceToCommunication, createCommunicationResource, buildClinicalSummaryCommunicationJob, buildPermissionRequestCommunication, createClinicalSectionUpdateOutboxJob, createClinicalSummaryUpdateOutboxJob, readClinicalSummaryOperationResult, TransportProfiles, } from 'gdc-sdk-core-ts';
|
|
10
11
|
import { GwCoreLifecycleRequestMethod, GwCoreLifecycleRequestType, GwCoreLifecycleTodo, } from './constants/lifecycle.js';
|
|
11
12
|
import { buildEmployeeSearchBundle, ConsentClaims, } from 'gdc-sdk-core-ts';
|
|
@@ -27,13 +28,18 @@ export function buildClinicalSummaryUpdateIngestion(input) {
|
|
|
27
28
|
pollOptions: input.pollOptions,
|
|
28
29
|
};
|
|
29
30
|
}
|
|
30
|
-
/**
|
|
31
|
+
/**
|
|
32
|
+
* Restricts a Communication participant search to standard notifications.
|
|
33
|
+
* A permission request is identified by its attached draft Consent contract;
|
|
34
|
+
* it is not an invented fifth FHIR category. See
|
|
35
|
+
* https://www.hl7.org/fhir/valueset-communication-category.html
|
|
36
|
+
*/
|
|
31
37
|
export function buildProfessionalAccessRequestSearchInput(input) {
|
|
32
38
|
return {
|
|
33
39
|
...input,
|
|
34
40
|
searchParams: {
|
|
35
41
|
...input.searchParams,
|
|
36
|
-
[CommunicationClaim.Category]:
|
|
42
|
+
[CommunicationClaim.Category]: CommunicationCategoryCodes.Notification.attributeValue,
|
|
37
43
|
},
|
|
38
44
|
};
|
|
39
45
|
}
|
|
@@ -520,7 +526,7 @@ export async function requestProfessionalAccessWithDeps(routeCtx, input, deps) {
|
|
|
520
526
|
});
|
|
521
527
|
const communicationClaims = {
|
|
522
528
|
...communication.claims,
|
|
523
|
-
[CommunicationClaim.Category]:
|
|
529
|
+
[CommunicationClaim.Category]: CommunicationCategoryCodes.Notification.attributeValue,
|
|
524
530
|
[CommunicationClaim.NoteText]: communication.text,
|
|
525
531
|
};
|
|
526
532
|
const persistedCommunication = { ...communication, claims: communicationClaims };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gdc-sdk-node-ts",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.9",
|
|
4
4
|
"description": "Next-generation Node runtime package for the GDC SDK family",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Antifraud Services Inc.",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"test:e2e:live-gw:clean": "bash ./scripts/run-live-gw-clean.sh"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"gdc-common-utils-ts": "2.8.
|
|
42
|
-
"gdc-sdk-core-ts": "2.5.
|
|
41
|
+
"gdc-common-utils-ts": "2.8.8",
|
|
42
|
+
"gdc-sdk-core-ts": "2.5.7"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/node": "^20.14.10",
|