gdc-common-utils-ts 1.14.9 → 1.14.10

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
@@ -95,7 +95,7 @@ import { JweObject, JwtCompactParts } from 'gdc-common-utils-ts/models';
95
95
  - [docs/consent-access-matrix-task.md](docs/consent-access-matrix-task.md)
96
96
  - next-step design/task document for active consent aggregation, explicit deny precedence, controller views, permission-request communications, and SMART access evaluation
97
97
  - [docs/IPS_BUNDLE_101.md](docs/IPS_BUNDLE_101.md)
98
- - quick guide for editing IPS-like bundle history in `Communication.content-attachment-data`, reading `resource.meta.claims`, and building frontend cards by section
98
+ - canonical 101 for requesting IPS, editing IPS-style bundles in `Communication.content-attachment-data`, and reading resources by section
99
99
 
100
100
  ## Dataspace Protocol And Discovery
101
101
 
@@ -39,7 +39,7 @@ export function buildExampleIpsBundleDocumentRequestFromDoctor() {
39
39
  sender: EXAMPLE_EMAIL_PROFESSIONAL,
40
40
  requesterKind: BundleDocumentRequesterKinds.Employee,
41
41
  requesterIdentifier: EXAMPLE_EMAIL_PROFESSIONAL,
42
- requesterRole: HealthcareActorRoles.Physician,
42
+ requesterRole: HealthcareActorRoles.GeneralistMedicalPractitioner,
43
43
  documentType: DocumentTypeLoincOntology.IPS,
44
44
  sections,
45
45
  summaryOperationRequestReferencePath,
@@ -49,7 +49,7 @@ export function buildExampleIpsBundleDocumentRequestFromDoctor() {
49
49
  sender: EXAMPLE_EMAIL_PROFESSIONAL,
50
50
  requesterKind: BundleDocumentRequesterKinds.Employee,
51
51
  requesterIdentifier: EXAMPLE_EMAIL_PROFESSIONAL,
52
- requesterRole: HealthcareActorRoles.Physician,
52
+ requesterRole: HealthcareActorRoles.GeneralistMedicalPractitioner,
53
53
  documentType: DocumentTypeLoincOntology.IPS,
54
54
  sections,
55
55
  text: String(claims[CommunicationClaim.Text] || ''),
@@ -110,8 +110,8 @@ export declare const EXAMPLE_MEDICATION_PARACETAMOL_TEXT: "Paracetamol 600 mg";
110
110
  export declare const EXAMPLE_MEDICATION_PARACETAMOL_IDENTIFIER_PREFIX: "urn:uuid:med-paracetamol";
111
111
  export declare const EXAMPLE_MEDICATION_PARACETAMOL_EFFECTIVE: "2026-06-01T12:00:00Z";
112
112
  export declare const EXAMPLE_MEDICATION_PARACETAMOL_NOTE: "Take every 8 hours as needed. Keep a 4 hour gap from ibuprofen.";
113
- export declare const EXAMPLE_IPS_BUNDLE_REFERENCE_URL: "individual/org.hl7.fhir.r4/Bundle?type=document&composition.subject=did:web:api.acme.org:individual:123&composition.type=http://loinc.org|60591-5";
114
- export declare const EXAMPLE_IPS_BUNDLE_REFERENCE_ABSOLUTE_URL: "https://provider.example.org/acme-id/cds-ES/v1/health-care/individual/org.hl7.fhir.r4/Bundle?type=document&composition.subject=did:web:api.acme.org:individual:123&composition.type=http://loinc.org|60591-5";
113
+ export declare const EXAMPLE_IPS_BUNDLE_REFERENCE_URL: "individual/org.hl7.fhir.r4/Bundle/_search?type=document&composition.subject=did:web:api.acme.org:individual:123&composition.type=http://loinc.org|60591-5";
114
+ export declare const EXAMPLE_IPS_BUNDLE_REFERENCE_ABSOLUTE_URL: "https://provider.example.org/acme-id/cds-ES/v1/health-care/individual/org.hl7.fhir.r4/Bundle/_search?type=document&composition.subject=did:web:api.acme.org:individual:123&composition.type=http://loinc.org|60591-5";
115
115
  export type ExampleDateRange = Readonly<{
116
116
  start: string;
117
117
  end: string;
@@ -116,7 +116,7 @@ export const EXAMPLE_MEDICATION_PARACETAMOL_TEXT = 'Paracetamol 600 mg';
116
116
  export const EXAMPLE_MEDICATION_PARACETAMOL_IDENTIFIER_PREFIX = 'urn:uuid:med-paracetamol';
117
117
  export const EXAMPLE_MEDICATION_PARACETAMOL_EFFECTIVE = '2026-06-01T12:00:00Z';
118
118
  export const EXAMPLE_MEDICATION_PARACETAMOL_NOTE = 'Take every 8 hours as needed. Keep a 4 hour gap from ibuprofen.';
119
- export const EXAMPLE_IPS_BUNDLE_REFERENCE_URL = `individual/org.hl7.fhir.r4/Bundle?type=document&composition.subject=${EXAMPLE_SUBJECT_DID}&composition.type=http://loinc.org|60591-5`;
119
+ export const EXAMPLE_IPS_BUNDLE_REFERENCE_URL = `individual/org.hl7.fhir.r4/Bundle/_search?type=document&composition.subject=${EXAMPLE_SUBJECT_DID}&composition.type=http://loinc.org|60591-5`;
120
120
  export const EXAMPLE_IPS_BUNDLE_REFERENCE_ABSOLUTE_URL = `https://provider.example.org/acme-id/cds-ES/v1/health-care/${EXAMPLE_IPS_BUNDLE_REFERENCE_URL}`;
121
121
  export const EXAMPLE_CLINICAL_DATE_RANGE = {
122
122
  start: '2026-01-01',
@@ -136,8 +136,8 @@ export declare function buildBundleSearchReferenceUrl(input: Readonly<{
136
136
  */
137
137
  export declare function createSummaryOperationRequestParameters(subjectIdOrInput: string | CreateSummaryOperationParametersInput, filterSections?: string[]): ReadonlyArray<ParameterData>;
138
138
  /**
139
- * Flattens semantic summary-operation parameters to the relative search path
140
- * currently stored in `Communication.content-reference`.
139
+ * Flattens semantic summary-operation parameters to the relative `Bundle/_search`
140
+ * path currently stored in `Communication.content-reference`.
141
141
  */
142
142
  export declare function createSummaryOperationRequestReferencePath(parameters: ReadonlyArray<ParameterData>): string;
143
143
  /**
@@ -187,8 +187,10 @@ export declare const communication: Readonly<{
187
187
  */
188
188
  newIpsSummarySearchCommunication: typeof createIpsSummarySearchCommunicationClaims;
189
189
  /**
190
- * Frontend-facing IPS helper: creates the DIDComm-ready message to request
191
- * an IPS summary/search using an already-generated reference path.
190
+ * Compatibility helper for current DIDComm transport flows.
191
+ *
192
+ * Prefer `newIpsSummarySearchCommunication(...)` in `common-utils` 101 docs.
193
+ * DIDComm/outbox orchestration belongs to the next SDK layer.
192
194
  */
193
195
  newIpsSummarySearchDidcommMessage: typeof createIpsSummarySearchDidcommMessage;
194
196
  /**
@@ -235,8 +235,8 @@ export function createSummaryOperationRequestParameters(subjectIdOrInput, filter
235
235
  ];
236
236
  }
237
237
  /**
238
- * Flattens semantic summary-operation parameters to the relative search path
239
- * currently stored in `Communication.content-reference`.
238
+ * Flattens semantic summary-operation parameters to the relative `Bundle/_search`
239
+ * path currently stored in `Communication.content-reference`.
240
240
  */
241
241
  export function createSummaryOperationRequestReferencePath(parameters) {
242
242
  const params = ['type=document'];
@@ -258,7 +258,7 @@ export function createSummaryOperationRequestReferencePath(parameters) {
258
258
  params.push(`composition.section=${String(parameter.value || '').trim()}`);
259
259
  }
260
260
  }
261
- return `individual/org.hl7.fhir.r4/Bundle?${params.filter(Boolean).join('&')}`;
261
+ return `individual/org.hl7.fhir.r4/Bundle/_search?${params.filter(Boolean).join('&')}`;
262
262
  }
263
263
  /**
264
264
  * Resolves the full runtime URL to call GW CORE from the provider sector DID
@@ -323,8 +323,10 @@ export const communication = Object.freeze({
323
323
  */
324
324
  newIpsSummarySearchCommunication: createIpsSummarySearchCommunicationClaims,
325
325
  /**
326
- * Frontend-facing IPS helper: creates the DIDComm-ready message to request
327
- * an IPS summary/search using an already-generated reference path.
326
+ * Compatibility helper for current DIDComm transport flows.
327
+ *
328
+ * Prefer `newIpsSummarySearchCommunication(...)` in `common-utils` 101 docs.
329
+ * DIDComm/outbox orchestration belongs to the next SDK layer.
328
330
  */
329
331
  newIpsSummarySearchDidcommMessage: createIpsSummarySearchDidcommMessage,
330
332
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gdc-common-utils-ts",
3
- "version": "1.14.9",
3
+ "version": "1.14.10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },