gdc-common-utils-ts 2.3.21 → 2.3.23

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.
@@ -157,8 +157,13 @@ export declare function buildBundleSearchReferenceUrl(input: Readonly<{
157
157
  */
158
158
  export declare function createSummaryOperationRequestParameters(subjectIdOrInput: string | CreateSummaryOperationParametersInput, filterSections?: string[]): ReadonlyArray<ParameterData>;
159
159
  /**
160
- * Flattens semantic summary-operation parameters to the relative `Bundle/_search`
161
- * path currently stored in `Communication.content-reference`.
160
+ * Compatibility escape hatch that flattens semantic summary parameters into a
161
+ * relative `Bundle/_search` operation reference.
162
+ *
163
+ * New application/BFF code uses the actor facade `requestClinicalSummary(...)`.
164
+ * The facade submits a `Communication`; GW interprets its content reference
165
+ * internally. Callers must not turn this returned value into a second direct
166
+ * HTTP request to the subject index.
162
167
  */
163
168
  export declare function createSummaryOperationRequestReferencePath(parameters: ReadonlyArray<ParameterData>): string;
164
169
  /**
@@ -246,8 +246,13 @@ export function createSummaryOperationRequestParameters(subjectIdOrInput, filter
246
246
  ];
247
247
  }
248
248
  /**
249
- * Flattens semantic summary-operation parameters to the relative `Bundle/_search`
250
- * path currently stored in `Communication.content-reference`.
249
+ * Compatibility escape hatch that flattens semantic summary parameters into a
250
+ * relative `Bundle/_search` operation reference.
251
+ *
252
+ * New application/BFF code uses the actor facade `requestClinicalSummary(...)`.
253
+ * The facade submits a `Communication`; GW interprets its content reference
254
+ * internally. Callers must not turn this returned value into a second direct
255
+ * HTTP request to the subject index.
251
256
  */
252
257
  export function createSummaryOperationRequestReferencePath(parameters) {
253
258
  const params = ['type=document'];
@@ -230,8 +230,16 @@ function normalizeConsentRoleValue(value) {
230
230
  if (!trimmed || trimmed === '*')
231
231
  return trimmed;
232
232
  const [system, code] = trimmed.includes('|') ? trimmed.split('|', 2) : ['', trimmed];
233
+ const normalizedSystem = system.trim().toLowerCase();
234
+ const canonicalSystem = [
235
+ 'isco-08',
236
+ 'org.ilo.isco',
237
+ 'org.ilo.isco-08',
238
+ ].includes(normalizedSystem)
239
+ ? 'org.ilo.isco-08'
240
+ : normalizedSystem;
233
241
  return system
234
- ? `${system.trim().toLowerCase()}|${code.trim()}`
242
+ ? `${canonicalSystem}|${code.trim().toLowerCase()}`
235
243
  : trimmed.toLowerCase();
236
244
  }
237
245
  function parseNormalizedConsentRole(value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gdc-common-utils-ts",
3
- "version": "2.3.21",
3
+ "version": "2.3.23",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },