gdc-common-utils-ts 2.3.0 → 2.3.1

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.
@@ -131,7 +131,7 @@ export declare const EXAMPLE_PROVIDER_SECTOR_DID: string;
131
131
  *
132
132
  * There are two valid base roots:
133
133
  * - hosted provider root:
134
- * `did:web:<host.domain>:<sector>;organization:taxid:<provider-tax-id>`
134
+ * `did:web:<host.domain>:<sector>:organization:taxid:<provider-tax-id>`
135
135
  * - external provider custom-domain root:
136
136
  * `did:web:<sector.provider.domain>`
137
137
  *
@@ -156,7 +156,7 @@ export const EXAMPLE_PROVIDER_SECTOR_DID = EXAMPLE_PROVIDER_DOMAIN_DID;
156
156
  *
157
157
  * There are two valid base roots:
158
158
  * - hosted provider root:
159
- * `did:web:<host.domain>:<sector>;organization:taxid:<provider-tax-id>`
159
+ * `did:web:<host.domain>:<sector>:organization:taxid:<provider-tax-id>`
160
160
  * - external provider custom-domain root:
161
161
  * `did:web:<sector.provider.domain>`
162
162
  *
@@ -12,7 +12,7 @@ export declare const InvoiceClaim: {
12
12
  readonly Date: "Invoice.date";
13
13
  /** Invoice lifecycle status. Example: `issued`. */
14
14
  readonly Status: "Invoice.status";
15
- /** Subject or tenant context reference. Example: `did:web:host.example.com:health-care;organization:taxid:VATES-B00112233:individual:multibase:zExampleIndividualId`. */
15
+ /** Subject or tenant context reference. Example: `did:web:host.example.com:health-care:organization:taxid:VATES-B00112233:individual:multibase:zExampleIndividualId`. */
16
16
  readonly Subject: "Invoice.subject";
17
17
  /** Billed recipient reference. Example: `did:web:portal.example.org:billing`. */
18
18
  readonly Recipient: "Invoice.recipient";
@@ -13,7 +13,7 @@ export const InvoiceClaim = {
13
13
  Date: 'Invoice.date',
14
14
  /** Invoice lifecycle status. Example: `issued`. */
15
15
  Status: 'Invoice.status',
16
- /** Subject or tenant context reference. Example: `did:web:host.example.com:health-care;organization:taxid:VATES-B00112233:individual:multibase:zExampleIndividualId`. */
16
+ /** Subject or tenant context reference. Example: `did:web:host.example.com:health-care:organization:taxid:VATES-B00112233:individual:multibase:zExampleIndividualId`. */
17
17
  Subject: 'Invoice.subject',
18
18
  /** Billed recipient reference. Example: `did:web:portal.example.org:billing`. */
19
19
  Recipient: 'Invoice.recipient',
@@ -156,7 +156,7 @@ export const InvoiceClaimSpecs = [
156
156
  {
157
157
  key: InvoiceClaim.Subject,
158
158
  meaning: 'Subject or tenant context reference.',
159
- example: 'did:web:host.example.com:health-care;organization:taxid:VATES-B00112233:individual:multibase:zExampleIndividualId',
159
+ example: 'did:web:host.example.com:health-care:organization:taxid:VATES-B00112233:individual:multibase:zExampleIndividualId',
160
160
  },
161
161
  { key: InvoiceClaim.Recipient, meaning: 'Billed recipient reference.', example: 'did:web:portal.example.org:billing' },
162
162
  { key: InvoiceClaim.Issuer, meaning: 'Invoice issuer reference.', example: 'did:web:api.acme.org' },
@@ -72,7 +72,7 @@ export declare const ObservationClaim: {
72
72
  readonly Language: "Observation.language";
73
73
  /** Observation method token. Example: `http://snomed.info/sct|252465000`. */
74
74
  readonly Method: "Observation.method";
75
- /** Optional compatibility alias of `Observation.subject`. Example: `did:web:host.example.com:health-care;organization:taxid:VATES-B00112233:individual:multibase:zExampleIndividualId`. */
75
+ /** Optional compatibility alias of `Observation.subject`. Example: `did:web:host.example.com:health-care:organization:taxid:VATES-B00112233:individual:multibase:zExampleIndividualId`. */
76
76
  readonly Patient: "Observation.patient";
77
77
  /** Performer reference list. Example: `Practitioner/prac-1`. */
78
78
  readonly Performer: "Observation.performer";
@@ -80,7 +80,7 @@ export declare const ObservationClaim: {
80
80
  readonly Specimen: "Observation.specimen";
81
81
  /** Observation status. Presence marks one visible/searchable main observation. Example: `final`. */
82
82
  readonly Status: "Observation.status";
83
- /** Canonical subject reference. Example: `did:web:host.example.com:health-care;organization:taxid:VATES-B00112233:individual:multibase:zExampleIndividualId`. */
83
+ /** Canonical subject reference. Example: `did:web:host.example.com:health-care:organization:taxid:VATES-B00112233:individual:multibase:zExampleIndividualId`. */
84
84
  readonly Subject: "Observation.subject";
85
85
  /** Value as coded concept token. Example: `http://terminology.hl7.org/CodeSystem/data-absent-reason|not-performed`. */
86
86
  readonly ValueConcept: "Observation.value-concept";
@@ -74,7 +74,7 @@ export const ObservationClaim = {
74
74
  Language: 'Observation.language',
75
75
  /** Observation method token. Example: `http://snomed.info/sct|252465000`. */
76
76
  Method: 'Observation.method',
77
- /** Optional compatibility alias of `Observation.subject`. Example: `did:web:host.example.com:health-care;organization:taxid:VATES-B00112233:individual:multibase:zExampleIndividualId`. */
77
+ /** Optional compatibility alias of `Observation.subject`. Example: `did:web:host.example.com:health-care:organization:taxid:VATES-B00112233:individual:multibase:zExampleIndividualId`. */
78
78
  Patient: 'Observation.patient',
79
79
  /** Performer reference list. Example: `Practitioner/prac-1`. */
80
80
  Performer: 'Observation.performer',
@@ -82,7 +82,7 @@ export const ObservationClaim = {
82
82
  Specimen: 'Observation.specimen',
83
83
  /** Observation status. Presence marks one visible/searchable main observation. Example: `final`. */
84
84
  Status: 'Observation.status',
85
- /** Canonical subject reference. Example: `did:web:host.example.com:health-care;organization:taxid:VATES-B00112233:individual:multibase:zExampleIndividualId`. */
85
+ /** Canonical subject reference. Example: `did:web:host.example.com:health-care:organization:taxid:VATES-B00112233:individual:multibase:zExampleIndividualId`. */
86
86
  Subject: 'Observation.subject',
87
87
  /** Value as coded concept token. Example: `http://terminology.hl7.org/CodeSystem/data-absent-reason|not-performed`. */
88
88
  ValueConcept: 'Observation.value-concept',
@@ -71,7 +71,7 @@ export declare function extractTenantIdFromHostedDidWeb(did: string): string | u
71
71
  * Builds the canonical hosted provider DID root used by hosted tenant services.
72
72
  *
73
73
  * Canonical form:
74
- * `did:web:<host.domain>:<sector>;organization:taxid:<provider-tax-id>`
74
+ * `did:web:<host.domain>:<sector>:organization:taxid:<provider-tax-id>`
75
75
  *
76
76
  * This is the provider-scoped DID root under which hosted individual and member
77
77
  * identities are published. Downstream individual DIDs extend this root with
@@ -167,7 +167,7 @@ export declare function buildProfessionalDidWeb(input: {
167
167
  *
168
168
  * Canonical supported forms:
169
169
  * - hosted:
170
- * `did:web:<host.domain>:<sector>;organization:taxid:<provider-tax-id>:individual:multibase:<individualId>`
170
+ * `did:web:<host.domain>:<sector>:organization:taxid:<provider-tax-id>:individual:multibase:<individualId>`
171
171
  * - external/provider-domain:
172
172
  * `did:web:<sector.provider.domain>:individual:multibase:<individualId>`
173
173
  *
package/dist/utils/did.js CHANGED
@@ -137,7 +137,7 @@ export function extractTenantIdFromHostedDidWeb(did) {
137
137
  * Builds the canonical hosted provider DID root used by hosted tenant services.
138
138
  *
139
139
  * Canonical form:
140
- * `did:web:<host.domain>:<sector>;organization:taxid:<provider-tax-id>`
140
+ * `did:web:<host.domain>:<sector>:organization:taxid:<provider-tax-id>`
141
141
  *
142
142
  * This is the provider-scoped DID root under which hosted individual and member
143
143
  * identities are published. Downstream individual DIDs extend this root with
@@ -153,7 +153,7 @@ export function buildHostedProviderDidWeb(input) {
153
153
  throw new Error('buildHostedProviderDidWeb requires sector.');
154
154
  if (!providerTaxId)
155
155
  throw new Error('buildHostedProviderDidWeb requires providerTaxId.');
156
- return `did:web:${hostDomain}:${sector};organization:taxid:${providerTaxId}`;
156
+ return `did:web:${hostDomain}:${sector}:organization:taxid:${providerTaxId}`;
157
157
  }
158
158
  /**
159
159
  * Builds the canonical public provider DID root used by an external provider domain.
@@ -269,7 +269,7 @@ export function buildProfessionalDidWeb(input) {
269
269
  *
270
270
  * Canonical supported forms:
271
271
  * - hosted:
272
- * `did:web:<host.domain>:<sector>;organization:taxid:<provider-tax-id>:individual:multibase:<individualId>`
272
+ * `did:web:<host.domain>:<sector>:organization:taxid:<provider-tax-id>:individual:multibase:<individualId>`
273
273
  * - external/provider-domain:
274
274
  * `did:web:<sector.provider.domain>:individual:multibase:<individualId>`
275
275
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gdc-common-utils-ts",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },