gdc-sdk-node-ts 2.6.5 → 2.6.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/README.md CHANGED
@@ -699,7 +699,9 @@ modules below.
699
699
  - draft/outbox helpers
700
700
  - document facade helpers
701
701
  - `cloneImportedClinicalDocumentForDemo(...)` for an explicit editable demo
702
- copy owned by an authenticated profile `actorDid`
702
+ copy owned by an authenticated profile `actorDid`; direct summary updates
703
+ use that same value as `sender` and the real hosted provider-tenant DID as
704
+ `recipient`, never a portal alias
703
705
  - vital-sign helpers
704
706
 
705
707
  ### Node runtime client
@@ -50,16 +50,19 @@ export type BackendLoadedActorProfile = LoadedActorProfile & {
50
50
  };
51
51
  export type BackendIndividualControllerProfile = {
52
52
  profile: BackendLoadedActorProfile;
53
+ /** Loaded actor session; its `actorDid` is the operational DID to use as a direct clinical sender. */
53
54
  session: ActorSession;
54
55
  sdk: IndividualControllerSdk;
55
56
  };
56
57
  export type BackendPersonalProfile = {
57
58
  profile: BackendLoadedActorProfile;
59
+ /** Loaded actor session; its `actorDid` is the operational DID to use as a direct clinical sender. */
58
60
  session: ActorSession;
59
61
  sdk: PersonalSdk;
60
62
  };
61
63
  export type BackendIndividualMemberProfile = {
62
64
  profile: BackendLoadedActorProfile;
65
+ /** Loaded caregiver/member session; its `actorDid` is the operational DID for that relationship role. */
63
66
  session: ActorSession;
64
67
  sdk: IndividualMemberSdk;
65
68
  };
@@ -70,6 +73,7 @@ export type BackendOrganizationControllerProfile = {
70
73
  };
71
74
  export type BackendProfessionalProfile = {
72
75
  profile: BackendLoadedActorProfile;
76
+ /** Loaded professional session; its `actorDid` is the operational professional DID. */
73
77
  session: ActorSession;
74
78
  sdk: ProfessionalSdk;
75
79
  };
@@ -523,6 +523,9 @@ export declare class HttpRuntimeClient implements NodeRuntimeClient {
523
523
  *
524
524
  * The attached payload must be `Bundle.type=document` with `Composition` in
525
525
  * `entry[0]`; its `section[].entry[]` references delimit the updated data.
526
+ * Direct callers pass the authenticated profile `actorDid` as `sender` and
527
+ * the real hosted provider-tenant DID as `recipient`. A stable multibase URN
528
+ * or portal DID/alias is never the authenticated clinical actor.
526
529
  */
527
530
  updateClinicalSummary(ctx: RouteContext, input: ClinicalSummaryUpdateInput): Promise<SubmitAndPollResult>;
528
531
  /**
@@ -1020,6 +1020,9 @@ export class HttpRuntimeClient {
1020
1020
  *
1021
1021
  * The attached payload must be `Bundle.type=document` with `Composition` in
1022
1022
  * `entry[0]`; its `section[].entry[]` references delimit the updated data.
1023
+ * Direct callers pass the authenticated profile `actorDid` as `sender` and
1024
+ * the real hosted provider-tenant DID as `recipient`. A stable multibase URN
1025
+ * or portal DID/alias is never the authenticated clinical actor.
1023
1026
  */
1024
1027
  async updateClinicalSummary(ctx, input) {
1025
1028
  return this.ingestCommunicationAndUpdateIndex(ctx, buildClinicalSummaryUpdateIngestion(input));
@@ -107,7 +107,11 @@ export declare class IndividualControllerSdk {
107
107
  * DELETE entries contain no resource body.
108
108
  */
109
109
  updateClinicalSection(ctx: RouteContext, input: ClinicalSectionUpdateInput): Promise<SubmitAndPollResult>;
110
- /** Updates the multi-section summary through a Composition-first document. */
110
+ /**
111
+ * Updates the multi-section summary through a Composition-first document.
112
+ * On a direct call, use the authenticated profile `actorDid` as `sender` and
113
+ * the real hosted provider-tenant DID as `recipient`.
114
+ */
111
115
  updateClinicalSummary(ctx: RouteContext, input: ClinicalSummaryUpdateInput): Promise<SubmitAndPollResult>;
112
116
  /**
113
117
  * Reads the subject's available clinical document through
@@ -158,7 +158,11 @@ export class IndividualControllerSdk {
158
158
  assertFacadeCapability(this.capabilities, ActorCapabilities.IndividualIngestCommunication, ActorKinds.IndividualController, 'updateClinicalSection');
159
159
  return requireClientMethod(this.client, 'updateClinicalSection')(ctx, input);
160
160
  }
161
- /** Updates the multi-section summary through a Composition-first document. */
161
+ /**
162
+ * Updates the multi-section summary through a Composition-first document.
163
+ * On a direct call, use the authenticated profile `actorDid` as `sender` and
164
+ * the real hosted provider-tenant DID as `recipient`.
165
+ */
162
166
  updateClinicalSummary(ctx, input) {
163
167
  assertFacadeCapability(this.capabilities, ActorCapabilities.IndividualIngestCommunication, ActorKinds.IndividualController, 'updateClinicalSummary');
164
168
  return requireClientMethod(this.client, 'updateClinicalSummary')(ctx, input);
@@ -314,7 +314,14 @@ type ClinicalUpdateRuntimeOptions = Readonly<{
314
314
  * controller cannot subsequently update or delete that source-authored fact.
315
315
  */
316
316
  export type ClinicalSectionUpdateInput = ClinicalSectionUpdateCommunicationInput & ClinicalUpdateRuntimeOptions;
317
- /** Updates one complete multi-section clinical summary document. */
317
+ /**
318
+ * Updates one complete multi-section clinical summary document.
319
+ *
320
+ * For the direct call, `sender` is the authenticated profile's operational
321
+ * `actorDid`, and `recipient` is the real provider-tenant DID inside the host
322
+ * that accommodates it. Neither value is a portal alias. When the document is
323
+ * an editable demo clone, its `Composition.author` is that same `actorDid`.
324
+ */
318
325
  export type ClinicalSummaryUpdateInput = ClinicalUpdateCommunicationInput & ClinicalUpdateRuntimeOptions;
319
326
  export declare function buildClinicalSectionUpdateIngestion(input: ClinicalSectionUpdateInput): CommunicationIngestionInput;
320
327
  export declare function buildClinicalSummaryUpdateIngestion(input: ClinicalSummaryUpdateInput): CommunicationIngestionInput;
package/dist/session.d.ts CHANGED
@@ -34,6 +34,7 @@ export type DemoClinicalDocumentCloneOptions = Readonly<{
34
34
  */
35
35
  export declare class ActorSession {
36
36
  readonly actorKind: ActorKind;
37
+ /** Operational DID returned with the loaded actor profile, including its role-bearing path. */
37
38
  readonly actorDid?: string;
38
39
  readonly subjectDid?: string;
39
40
  readonly capabilities: NodeCapability[];
@@ -54,7 +55,11 @@ export declare class ActorSession {
54
55
  asProfessional(): ProfessionalSdk;
55
56
  /** Materializes the digital-twin facade for an organization employee or professional actor. */
56
57
  asDigitalTwin(): DigitalTwinSdk;
57
- /** Creates an editable demo copy owned by this session's authenticated actor DID. */
58
+ /**
59
+ * Creates an editable demo copy whose `Composition.author` is this
60
+ * authenticated profile's operational `actorDid`. The actor is never taken
61
+ * from a stable multibase URN or a DID/alias supplied by a portal.
62
+ */
58
63
  cloneImportedClinicalDocumentForDemo(bundle: Record<string, unknown>, options?: DemoClinicalDocumentCloneOptions): Record<string, any>;
59
64
  private requireClient;
60
65
  }
package/dist/session.js CHANGED
@@ -70,7 +70,11 @@ export class ActorSession {
70
70
  }
71
71
  return new DigitalTwinSdk(this.requireClient(), this.actorDid);
72
72
  }
73
- /** Creates an editable demo copy owned by this session's authenticated actor DID. */
73
+ /**
74
+ * Creates an editable demo copy whose `Composition.author` is this
75
+ * authenticated profile's operational `actorDid`. The actor is never taken
76
+ * from a stable multibase URN or a DID/alias supplied by a portal.
77
+ */
74
78
  cloneImportedClinicalDocumentForDemo(bundle, options = {}) {
75
79
  const actorDid = String(this.actorDid || '').trim();
76
80
  if (!actorDid) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gdc-sdk-node-ts",
3
- "version": "2.6.5",
3
+ "version": "2.6.6",
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.",
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "gdc-common-utils-ts": "2.7.4",
42
- "gdc-sdk-core-ts": "2.4.5"
42
+ "gdc-sdk-core-ts": "2.4.6"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/node": "^20.14.10",