gdc-common-utils-ts 2.8.6 → 2.8.7

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
@@ -522,6 +522,12 @@ The canonical API contract should live in JSDoc on exported code. The README act
522
522
  - The base token examples are read-only; richer scenario fixtures intentionally add `organization/Consent.cruds`.
523
523
  - [`src/examples/related-person.ts`](src/examples/related-person.ts)
524
524
  - RelatedPerson/family-member examples.
525
+ - [`buildFhirIpsCreatorProvenance(...)`](src/utils/fhir-ips-creator-identity.ts)
526
+ and [`docs/101-DIDCOMM-IDENTITY-BOUNDARY.md`](docs/101-DIDCOMM-IDENTITY-BOUNDARY.md)
527
+ - Keep `Composition.author`, `Composition.attester`, DIDComm sender and
528
+ signing key separate. A member-created fact may use the registered
529
+ RelatedPerson as both author and personal attester; a dictated
530
+ individual-created fact keeps the individual as author.
525
531
  - [`src/examples/frontend-session.ts`](src/examples/frontend-session.ts)
526
532
  - Frontend profile/session bootstrap examples.
527
533
  - [`src/examples/lifecycle.ts`](src/examples/lifecycle.ts)
@@ -32,7 +32,12 @@ export type FhirIpsCreatorAuthor = Readonly<{
32
32
  entries: readonly FhirIpsCreatorBundleEntry[];
33
33
  }>;
34
34
  export type FhirIpsCreatorProvenanceInput = FhirIpsCreatorAuthorInput & Readonly<{
35
- /** Explicit source originator; defaults to organization, subject, or oneself by creator kind. */
35
+ /**
36
+ * Explicit source originator. Defaults to the owning organization or
37
+ * individual. When the authenticated member/professional actually authored
38
+ * the content, pass its registered RelatedPerson/PractitionerRole assignment
39
+ * reference; that same assignment may also remain the attester.
40
+ */
36
41
  compositionAuthorReference?: string;
37
42
  /** Defaults to professional for employees and personal for individual members. */
38
43
  attesterMode?: CompositionAttesterMode;
@@ -53,10 +58,13 @@ export type FhirIpsCreatorProvenance = Readonly<{
53
58
  /**
54
59
  * Builds source authorship separately from the person or role that attests it.
55
60
  *
56
- * Defaults model the ordinary delegated flows: an organization's professional
57
- * attests an organization-authored record, while a member/caregiver attests a
58
- * subject-authored record. `compositionAuthorReference` remains explicit for
59
- * imports and cases where the actual originator differs from those defaults.
61
+ * Defaults model delegated flows: an organization's professional attests an
62
+ * organization-authored record, while a member/caregiver attests a
63
+ * subject-authored record. For content actually created by that authenticated
64
+ * member or professional, set `compositionAuthorReference` to its registered
65
+ * RelatedPerson or PractitionerRole assignment. Author and attester may then
66
+ * intentionally reference the same assignment; neither is the transport
67
+ * sender or signing key.
60
68
  */
61
69
  export declare function buildFhirIpsCreatorProvenance(input: FhirIpsCreatorProvenanceInput): FhirIpsCreatorProvenance;
62
70
  /**
@@ -11,10 +11,13 @@ export const FhirIpsCreatorKinds = Object.freeze({
11
11
  /**
12
12
  * Builds source authorship separately from the person or role that attests it.
13
13
  *
14
- * Defaults model the ordinary delegated flows: an organization's professional
15
- * attests an organization-authored record, while a member/caregiver attests a
16
- * subject-authored record. `compositionAuthorReference` remains explicit for
17
- * imports and cases where the actual originator differs from those defaults.
14
+ * Defaults model delegated flows: an organization's professional attests an
15
+ * organization-authored record, while a member/caregiver attests a
16
+ * subject-authored record. For content actually created by that authenticated
17
+ * member or professional, set `compositionAuthorReference` to its registered
18
+ * RelatedPerson or PractitionerRole assignment. Author and attester may then
19
+ * intentionally reference the same assignment; neither is the transport
20
+ * sender or signing key.
18
21
  */
19
22
  export function buildFhirIpsCreatorProvenance(input) {
20
23
  if (input.kind === FhirIpsCreatorKinds.IndividualSubject) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gdc-common-utils-ts",
3
- "version": "2.8.6",
3
+ "version": "2.8.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },