gdc-common-utils-ts 2.1.0 → 2.2.2
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 +18 -0
- package/dist/claims/claims-helpers-allergy-intolerance.d.ts +8 -0
- package/dist/claims/claims-helpers-allergy-intolerance.js +30 -12
- package/dist/claims/claims-helpers-condition.d.ts +8 -0
- package/dist/claims/claims-helpers-condition.js +30 -12
- package/dist/claims/claims-helpers-consent.d.ts +4 -0
- package/dist/claims/claims-helpers-consent.js +15 -1
- package/dist/claims/claims-helpers-diagnostic-report.d.ts +4 -0
- package/dist/claims/claims-helpers-diagnostic-report.js +17 -2
- package/dist/claims/claims-helpers-medication-statement.d.ts +10 -2
- package/dist/claims/claims-helpers-medication-statement.js +32 -14
- package/dist/constants/didcomm.d.ts +22 -0
- package/dist/constants/didcomm.js +22 -0
- package/dist/constants/fhir-resource-types.d.ts +2 -0
- package/dist/constants/fhir-resource-types.js +1 -0
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/index.js +1 -0
- package/dist/constants/lifecycle.d.ts +2 -0
- package/dist/constants/lifecycle.js +2 -0
- package/dist/constants/verifiable-credentials.d.ts +9 -0
- package/dist/constants/verifiable-credentials.js +9 -0
- package/dist/examples/bundle-didcomm-payload.js +4 -2
- package/dist/examples/communication-attached-bundle-session.js +27 -27
- package/dist/examples/communication-didcomm-payload.d.ts +8 -4
- package/dist/examples/communication-didcomm-payload.js +17 -11
- package/dist/examples/consent-access.js +2 -1
- package/dist/examples/employee.d.ts +21 -0
- package/dist/examples/employee.js +21 -0
- package/dist/examples/individual-controller.d.ts +27 -0
- package/dist/examples/individual-controller.js +28 -1
- package/dist/examples/inter-tenant-access-contract.js +3 -2
- package/dist/examples/ips-bundle.js +17 -16
- package/dist/examples/lifecycle.js +13 -11
- package/dist/examples/profile-manager-mem.js +2 -1
- package/dist/examples/related-person.d.ts +14 -0
- package/dist/examples/related-person.js +18 -4
- package/dist/examples/shared.d.ts +12 -3
- package/dist/examples/shared.js +13 -4
- package/dist/examples/vital-signs.js +1 -1
- package/dist/examples/wallet-mem.js +4 -2
- package/dist/models/authority-resolution.d.ts +56 -0
- package/dist/models/authority-resolution.js +2 -0
- package/dist/models/bundle-editor-types.d.ts +89 -0
- package/dist/models/bundle-editor-types.js +45 -0
- package/dist/models/bundle.d.ts +5 -0
- package/dist/models/communication-attached-bundle-session.d.ts +6 -4
- package/dist/models/communication-attached-bundle-session.js +6 -4
- package/dist/models/confidential-storage.d.ts +2 -1
- package/dist/models/consent-rule.d.ts +11 -1
- package/dist/models/consent-rule.js +9 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/individual-onboarding.d.ts +18 -0
- package/dist/models/interoperable-claims/allergy-intolerance-claims.d.ts +12 -1
- package/dist/models/interoperable-claims/allergy-intolerance-claims.js +12 -1
- package/dist/models/interoperable-claims/condition-claims.d.ts +12 -1
- package/dist/models/interoperable-claims/condition-claims.js +12 -1
- package/dist/models/interoperable-claims/diagnostic-report-claims.d.ts +13 -2
- package/dist/models/interoperable-claims/diagnostic-report-claims.js +12 -1
- package/dist/models/interoperable-claims/document-reference-claims.d.ts +1 -0
- package/dist/models/interoperable-claims/document-reference-claims.js +3 -0
- package/dist/models/interoperable-claims/medication-statement-claims.d.ts +17 -0
- package/dist/models/interoperable-claims/medication-statement-claims.js +17 -0
- package/dist/utils/allergy-intolerance-entry-editor.d.ts +51 -0
- package/dist/utils/allergy-intolerance-entry-editor.js +55 -0
- package/dist/utils/authority-resolution.d.ts +37 -0
- package/dist/utils/authority-resolution.js +112 -0
- package/dist/utils/backend-message-manager-mem.d.ts +11 -0
- package/dist/utils/backend-message-manager-mem.js +11 -0
- package/dist/utils/bundle-didcomm-payload.js +3 -2
- package/dist/utils/bundle-document-builder.d.ts +1 -0
- package/dist/utils/bundle-document-builder.js +134 -14
- package/dist/utils/bundle-editor-core.d.ts +181 -0
- package/dist/utils/bundle-editor-core.js +467 -0
- package/dist/utils/bundle-editor-helpers.d.ts +53 -0
- package/dist/utils/bundle-editor-helpers.js +146 -0
- package/dist/utils/bundle-editor-registry.d.ts +6 -0
- package/dist/utils/bundle-editor-registry.js +14 -0
- package/dist/utils/bundle-editor.d.ts +21 -722
- package/dist/utils/bundle-editor.js +21 -1601
- package/dist/utils/bundle-entry-editor.d.ts +96 -0
- package/dist/utils/bundle-entry-editor.js +305 -0
- package/dist/utils/bundle-query.d.ts +1 -0
- package/dist/utils/bundle-query.js +12 -3
- package/dist/utils/bundle-reader.d.ts +48 -0
- package/dist/utils/bundle-reader.js +175 -1
- package/dist/utils/care-plan-entry-editor.d.ts +43 -0
- package/dist/utils/care-plan-entry-editor.js +47 -0
- package/dist/utils/client-assertion.d.ts +38 -0
- package/dist/utils/client-assertion.js +113 -0
- package/dist/utils/clinical-impression-entry-editor.d.ts +43 -0
- package/dist/utils/clinical-impression-entry-editor.js +47 -0
- package/dist/utils/clinical-resource-entry-editor.d.ts +123 -0
- package/dist/utils/clinical-resource-entry-editor.js +296 -0
- package/dist/utils/communication-attached-bundle-session-helpers.js +8 -6
- package/dist/utils/communication-attached-bundle-session.d.ts +29 -3
- package/dist/utils/communication-attached-bundle-session.js +62 -3
- package/dist/utils/communication-didcomm-payload.d.ts +5 -0
- package/dist/utils/communication-didcomm-payload.js +28 -18
- package/dist/utils/communication-document-reference.d.ts +23 -0
- package/dist/utils/communication-document-reference.js +89 -0
- package/dist/utils/communication-editor.d.ts +53 -0
- package/dist/utils/communication-editor.js +97 -0
- package/dist/utils/condition-entry-editor.d.ts +30 -0
- package/dist/utils/condition-entry-editor.js +34 -0
- package/dist/utils/consent-claim-helpers.d.ts +4 -0
- package/dist/utils/consent-claim-helpers.js +15 -1
- package/dist/utils/coverage-entry-editor.d.ts +51 -0
- package/dist/utils/coverage-entry-editor.js +55 -0
- package/dist/utils/device-entry-editor.d.ts +59 -0
- package/dist/utils/device-entry-editor.js +63 -0
- package/dist/utils/device-use-statement-entry-editor.d.ts +43 -0
- package/dist/utils/device-use-statement-entry-editor.js +47 -0
- package/dist/utils/diagnostic-report-entry-editor.d.ts +74 -0
- package/dist/utils/diagnostic-report-entry-editor.js +136 -0
- package/dist/utils/did.d.ts +8 -0
- package/dist/utils/did.js +22 -0
- package/dist/utils/document-reference-entry-editor.d.ts +62 -0
- package/dist/utils/document-reference-entry-editor.js +66 -0
- package/dist/utils/employee-entry-editor.d.ts +36 -0
- package/dist/utils/employee-entry-editor.js +88 -0
- package/dist/utils/employee.d.ts +1 -0
- package/dist/utils/employee.js +2 -1
- package/dist/utils/encounter-entry-editor.d.ts +51 -0
- package/dist/utils/encounter-entry-editor.js +55 -0
- package/dist/utils/flag-entry-editor.d.ts +47 -0
- package/dist/utils/flag-entry-editor.js +51 -0
- package/dist/utils/immunization-entry-editor.d.ts +87 -0
- package/dist/utils/immunization-entry-editor.js +169 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/index.js +7 -0
- package/dist/utils/individual-onboarding-acceptance-credential.d.ts +35 -0
- package/dist/utils/individual-onboarding-acceptance-credential.js +55 -0
- package/dist/utils/individual-smart.d.ts +59 -0
- package/dist/utils/individual-smart.js +135 -0
- package/dist/utils/medication-statement-entry-editor.d.ts +90 -0
- package/dist/utils/medication-statement-entry-editor.js +94 -0
- package/dist/utils/observation-component-entry-editor.d.ts +57 -0
- package/dist/utils/observation-component-entry-editor.js +105 -0
- package/dist/utils/observation-entry-editor.d.ts +29 -0
- package/dist/utils/observation-entry-editor.js +68 -0
- package/dist/utils/procedure-entry-editor.d.ts +71 -0
- package/dist/utils/procedure-entry-editor.js +75 -0
- package/dist/utils/professional-smart.d.ts +87 -0
- package/dist/utils/professional-smart.js +118 -4
- package/dist/utils/same-as.d.ts +40 -0
- package/dist/utils/same-as.js +72 -0
- package/dist/utils/unified-health-id.d.ts +51 -0
- package/dist/utils/unified-health-id.js +92 -0
- package/dist/utils/vital-sign-day-batch.d.ts +25 -0
- package/dist/utils/vital-sign-day-batch.js +115 -0
- package/dist/utils/vital-sign-entry-editor.d.ts +61 -0
- package/dist/utils/vital-sign-entry-editor.js +152 -0
- package/package.json +2 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ClinicalResourceEntryEditor } from './clinical-resource-entry-editor.js';
|
|
2
|
+
import { DeviceClaim } from '../models/interoperable-claims/device-claims.js';
|
|
3
|
+
import { BundleEditableResourceTypes } from '../models/bundle-editor-types.js';
|
|
4
|
+
import { registerBundleEntryEditor } from './bundle-editor-registry.js';
|
|
5
|
+
/**
|
|
6
|
+
* Typed editor for one staged Device resource entry.
|
|
7
|
+
*
|
|
8
|
+
* Use this when a caller needs to stage one device row with claims-first
|
|
9
|
+
* accessors in a bundle authoring flow.
|
|
10
|
+
*/
|
|
11
|
+
export class DeviceEntryEditor extends ClinicalResourceEntryEditor {
|
|
12
|
+
/** Writes the canonical device identifier. */
|
|
13
|
+
setIdentifier(identifier) { return this.setIdentifierValue(DeviceClaim.Identifier, identifier); }
|
|
14
|
+
/** Reads the canonical device identifier. */
|
|
15
|
+
getIdentifier() { return this.getIdentifierValue(DeviceClaim.Identifier); }
|
|
16
|
+
/** Ensures the device entry has one canonical `urn:uuid:*` identifier. */
|
|
17
|
+
ensureIdentifier() { return this.ensureIdentifierValue(DeviceClaim.Identifier); }
|
|
18
|
+
/** Writes the patient reference for the device. */
|
|
19
|
+
setPatient(value) { return this.setScalarClaim(DeviceClaim.Patient, value); }
|
|
20
|
+
/** Reads the patient reference for the device. */
|
|
21
|
+
getPatient() { return this.getScalarClaim(DeviceClaim.Patient); }
|
|
22
|
+
/** Writes the device status. */
|
|
23
|
+
setStatus(value) { return this.setScalarClaim(DeviceClaim.Status, value); }
|
|
24
|
+
/** Reads the device status. */
|
|
25
|
+
getStatus() { return this.getScalarClaim(DeviceClaim.Status); }
|
|
26
|
+
/** Writes the device type. */
|
|
27
|
+
setType(value) { return this.setScalarClaim(DeviceClaim.Type, value); }
|
|
28
|
+
/** Reads the device type. */
|
|
29
|
+
getType() { return this.getScalarClaim(DeviceClaim.Type); }
|
|
30
|
+
/** Writes the manufacturer reference. */
|
|
31
|
+
setManufacturer(value) { return this.setScalarClaim(DeviceClaim.Manufacturer, value); }
|
|
32
|
+
/** Reads the manufacturer reference. */
|
|
33
|
+
getManufacturer() { return this.getScalarClaim(DeviceClaim.Manufacturer); }
|
|
34
|
+
/** Writes the model. */
|
|
35
|
+
setModel(value) { return this.setScalarClaim(DeviceClaim.Model, value); }
|
|
36
|
+
/** Reads the model. */
|
|
37
|
+
getModel() { return this.getScalarClaim(DeviceClaim.Model); }
|
|
38
|
+
/** Writes the human-readable device name. */
|
|
39
|
+
setDeviceName(value) { return this.setScalarClaim(DeviceClaim.DeviceName, value); }
|
|
40
|
+
/** Reads the human-readable device name. */
|
|
41
|
+
getDeviceName() { return this.getScalarClaim(DeviceClaim.DeviceName); }
|
|
42
|
+
/** Writes the serial number. */
|
|
43
|
+
setSerialNumber(value) { return this.setScalarClaim(DeviceClaim.SerialNumber, value); }
|
|
44
|
+
/** Reads the serial number. */
|
|
45
|
+
getSerialNumber() { return this.getScalarClaim(DeviceClaim.SerialNumber); }
|
|
46
|
+
/** Writes the owning organization. */
|
|
47
|
+
setOrganization(value) { return this.setScalarClaim(DeviceClaim.Organization, value); }
|
|
48
|
+
/** Reads the owning organization. */
|
|
49
|
+
getOrganization() { return this.getScalarClaim(DeviceClaim.Organization); }
|
|
50
|
+
/** Writes the location reference. */
|
|
51
|
+
setLocation(value) { return this.setScalarClaim(DeviceClaim.Location, value); }
|
|
52
|
+
/** Reads the location reference. */
|
|
53
|
+
getLocation() { return this.getScalarClaim(DeviceClaim.Location); }
|
|
54
|
+
/** Writes the URL reference. */
|
|
55
|
+
setUrl(value) { return this.setScalarClaim(DeviceClaim.Url, value); }
|
|
56
|
+
/** Reads the URL reference. */
|
|
57
|
+
getUrl() { return this.getScalarClaim(DeviceClaim.Url); }
|
|
58
|
+
/** Writes the note text. */
|
|
59
|
+
setNote(value) { return this.setScalarClaim(DeviceClaim.Note, value); }
|
|
60
|
+
/** Reads the note text. */
|
|
61
|
+
getNote() { return this.getScalarClaim(DeviceClaim.Note); }
|
|
62
|
+
}
|
|
63
|
+
registerBundleEntryEditor(BundleEditableResourceTypes.device, DeviceEntryEditor);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ClinicalResourceEntryEditor } from './clinical-resource-entry-editor';
|
|
2
|
+
/**
|
|
3
|
+
* Typed editor for one staged DeviceUseStatement resource entry.
|
|
4
|
+
*
|
|
5
|
+
* Use this when a caller needs to stage one device-use row with claims-first
|
|
6
|
+
* accessors in a bundle authoring flow.
|
|
7
|
+
*/
|
|
8
|
+
export declare class DeviceUseStatementEntryEditor extends ClinicalResourceEntryEditor {
|
|
9
|
+
/** Writes the canonical device-use identifier. */
|
|
10
|
+
setIdentifier(identifier?: string | null): this;
|
|
11
|
+
/** Reads the canonical device-use identifier. */
|
|
12
|
+
getIdentifier(): string | undefined;
|
|
13
|
+
/** Ensures the device-use entry has one canonical `urn:uuid:*` identifier. */
|
|
14
|
+
ensureIdentifier(): string;
|
|
15
|
+
/** Writes the subject/patient reference. */
|
|
16
|
+
setSubject(subject?: string | null): this;
|
|
17
|
+
/** Reads the subject/patient reference. */
|
|
18
|
+
getSubject(): string | undefined;
|
|
19
|
+
/** Writes the device-use status. */
|
|
20
|
+
setStatus(value?: string | null): this;
|
|
21
|
+
/** Reads the device-use status. */
|
|
22
|
+
getStatus(): string | undefined;
|
|
23
|
+
/** Writes the linked device reference. */
|
|
24
|
+
setDevice(value?: string | null): this;
|
|
25
|
+
/** Reads the linked device reference. */
|
|
26
|
+
getDevice(): string | undefined;
|
|
27
|
+
/** Writes the recorded-on date. */
|
|
28
|
+
setRecordedOn(value?: string | null): this;
|
|
29
|
+
/** Reads the recorded-on date. */
|
|
30
|
+
getRecordedOn(): string | undefined;
|
|
31
|
+
/** Writes the timing date/time. */
|
|
32
|
+
setTimingDateTime(value?: string | null): this;
|
|
33
|
+
/** Reads the timing date/time. */
|
|
34
|
+
getTimingDateTime(): string | undefined;
|
|
35
|
+
/** Writes the reason code. */
|
|
36
|
+
setReasonCode(value?: string | null): this;
|
|
37
|
+
/** Reads the reason code. */
|
|
38
|
+
getReasonCode(): string | undefined;
|
|
39
|
+
/** Writes the source reference. */
|
|
40
|
+
setSource(value?: string | null): this;
|
|
41
|
+
/** Reads the source reference. */
|
|
42
|
+
getSource(): string | undefined;
|
|
43
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ClinicalResourceEntryEditor } from './clinical-resource-entry-editor.js';
|
|
2
|
+
import { DeviceUseStatementClaim } from '../models/interoperable-claims/device-use-statement-claims.js';
|
|
3
|
+
import { BundleEditableResourceTypes } from '../models/bundle-editor-types.js';
|
|
4
|
+
import { registerBundleEntryEditor } from './bundle-editor-registry.js';
|
|
5
|
+
/**
|
|
6
|
+
* Typed editor for one staged DeviceUseStatement resource entry.
|
|
7
|
+
*
|
|
8
|
+
* Use this when a caller needs to stage one device-use row with claims-first
|
|
9
|
+
* accessors in a bundle authoring flow.
|
|
10
|
+
*/
|
|
11
|
+
export class DeviceUseStatementEntryEditor extends ClinicalResourceEntryEditor {
|
|
12
|
+
/** Writes the canonical device-use identifier. */
|
|
13
|
+
setIdentifier(identifier) { return this.setIdentifierValue(DeviceUseStatementClaim.Identifier, identifier); }
|
|
14
|
+
/** Reads the canonical device-use identifier. */
|
|
15
|
+
getIdentifier() { return this.getIdentifierValue(DeviceUseStatementClaim.Identifier); }
|
|
16
|
+
/** Ensures the device-use entry has one canonical `urn:uuid:*` identifier. */
|
|
17
|
+
ensureIdentifier() { return this.ensureIdentifierValue(DeviceUseStatementClaim.Identifier); }
|
|
18
|
+
/** Writes the subject/patient reference. */
|
|
19
|
+
setSubject(subject) { return this.setSubjectClaims(DeviceUseStatementClaim.Subject, DeviceUseStatementClaim.Subject, subject); }
|
|
20
|
+
/** Reads the subject/patient reference. */
|
|
21
|
+
getSubject() { return this.getSubjectClaims(DeviceUseStatementClaim.Subject, DeviceUseStatementClaim.Subject); }
|
|
22
|
+
/** Writes the device-use status. */
|
|
23
|
+
setStatus(value) { return this.setScalarClaim(DeviceUseStatementClaim.Status, value); }
|
|
24
|
+
/** Reads the device-use status. */
|
|
25
|
+
getStatus() { return this.getScalarClaim(DeviceUseStatementClaim.Status); }
|
|
26
|
+
/** Writes the linked device reference. */
|
|
27
|
+
setDevice(value) { return this.setScalarClaim(DeviceUseStatementClaim.Device, value); }
|
|
28
|
+
/** Reads the linked device reference. */
|
|
29
|
+
getDevice() { return this.getScalarClaim(DeviceUseStatementClaim.Device); }
|
|
30
|
+
/** Writes the recorded-on date. */
|
|
31
|
+
setRecordedOn(value) { return this.setScalarClaim(DeviceUseStatementClaim.RecordedOn, value); }
|
|
32
|
+
/** Reads the recorded-on date. */
|
|
33
|
+
getRecordedOn() { return this.getScalarClaim(DeviceUseStatementClaim.RecordedOn); }
|
|
34
|
+
/** Writes the timing date/time. */
|
|
35
|
+
setTimingDateTime(value) { return this.setScalarClaim(DeviceUseStatementClaim.TimingDateTime, value); }
|
|
36
|
+
/** Reads the timing date/time. */
|
|
37
|
+
getTimingDateTime() { return this.getScalarClaim(DeviceUseStatementClaim.TimingDateTime); }
|
|
38
|
+
/** Writes the reason code. */
|
|
39
|
+
setReasonCode(value) { return this.setScalarClaim(DeviceUseStatementClaim.ReasonCode, value); }
|
|
40
|
+
/** Reads the reason code. */
|
|
41
|
+
getReasonCode() { return this.getScalarClaim(DeviceUseStatementClaim.ReasonCode); }
|
|
42
|
+
/** Writes the source reference. */
|
|
43
|
+
setSource(value) { return this.setScalarClaim(DeviceUseStatementClaim.Source, value); }
|
|
44
|
+
/** Reads the source reference. */
|
|
45
|
+
getSource() { return this.getScalarClaim(DeviceUseStatementClaim.Source); }
|
|
46
|
+
}
|
|
47
|
+
registerBundleEntryEditor(BundleEditableResourceTypes.deviceUseStatement, DeviceUseStatementEntryEditor);
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* File discipline note:
|
|
3
|
+
* - Read `ARCHITECTURE.md` and `CONTRIBUTING.md` before changing this module.
|
|
4
|
+
* - Keep exactly one exported class per file.
|
|
5
|
+
* - Keep this file focused on one typed editor surface.
|
|
6
|
+
* - Move shared helpers to reusable helper/base modules instead of duplicating logic here.
|
|
7
|
+
*/
|
|
8
|
+
import { ClinicalResourceEntryEditor } from './clinical-resource-entry-editor';
|
|
9
|
+
/**
|
|
10
|
+
* Typed editor for one staged DiagnosticReport resource entry.
|
|
11
|
+
*
|
|
12
|
+
* Use this surface when the frontend or BFF needs to stage one report with
|
|
13
|
+
* links to results, specimen references, or one rendered attachment.
|
|
14
|
+
*/
|
|
15
|
+
export declare class DiagnosticReportEntryEditor extends ClinicalResourceEntryEditor {
|
|
16
|
+
/** Overrides the canonical identifier when import or migration logic needs one explicit public id. */
|
|
17
|
+
setIdentifier(identifier?: string | null): this;
|
|
18
|
+
/** Returns the canonical identifier currently exposed for this report. */
|
|
19
|
+
getIdentifier(): string | undefined;
|
|
20
|
+
/** Ensures the entry has one synchronized canonical identifier across public claim, `resource.id`, and `fullUrl`. */
|
|
21
|
+
ensureIdentifier(): string;
|
|
22
|
+
/** Sets the subject or patient reference for this report. */
|
|
23
|
+
setSubject(subject?: string | null): this;
|
|
24
|
+
/** Returns the subject or patient reference for this report. */
|
|
25
|
+
getSubject(): string | undefined;
|
|
26
|
+
/** Sets the report status. */
|
|
27
|
+
setStatus(status?: string | null): this;
|
|
28
|
+
/** Returns the report status. */
|
|
29
|
+
getStatus(): string | undefined;
|
|
30
|
+
/** Sets the report date or effective time. */
|
|
31
|
+
setDate(date?: string | null): this;
|
|
32
|
+
/** Returns the report date or effective time. */
|
|
33
|
+
getDate(): string | undefined;
|
|
34
|
+
/** Sets the report category. */
|
|
35
|
+
setCategory(category?: string | null): this;
|
|
36
|
+
/** Returns the report category. */
|
|
37
|
+
getCategory(): string | undefined;
|
|
38
|
+
/** Sets the main report code. */
|
|
39
|
+
setCode(code?: string | null): this;
|
|
40
|
+
/** Returns the main report code. */
|
|
41
|
+
getCode(): string | undefined;
|
|
42
|
+
/** Sets the encounter reference linked to this report. */
|
|
43
|
+
setEncounter(reference?: string | null): this;
|
|
44
|
+
/** Returns the encounter reference linked to this report. */
|
|
45
|
+
getEncounter(): string | undefined;
|
|
46
|
+
/** Replaces the performer reference list. */
|
|
47
|
+
setPerformerList(references: readonly string[]): this;
|
|
48
|
+
/** Returns the performer reference list. */
|
|
49
|
+
getPerformerList(): string[];
|
|
50
|
+
/** Replaces the result reference list, often Observation references. */
|
|
51
|
+
setResultList(references: readonly string[]): this;
|
|
52
|
+
/** Returns the result reference list. */
|
|
53
|
+
getResultList(): string[];
|
|
54
|
+
/** Replaces the specimen reference list. */
|
|
55
|
+
setSpecimenList(references: readonly string[]): this;
|
|
56
|
+
/** Returns the specimen reference list. */
|
|
57
|
+
getSpecimenList(): string[];
|
|
58
|
+
/** @deprecated Use the shared contained-resource reference surface on `ClinicalResourceEntryEditor`. */
|
|
59
|
+
setContainedDocumentIdentifierList(identifiers: readonly string[]): this;
|
|
60
|
+
/** @deprecated Use the shared contained-resource reference surface on `ClinicalResourceEntryEditor`. */
|
|
61
|
+
getContainedDocumentIdentifierList(): string[];
|
|
62
|
+
/** Sets the MIME type for one attached presented form. */
|
|
63
|
+
setPresentedFormContentType(contentType?: string | null): this;
|
|
64
|
+
/** Returns the MIME type for the attached presented form. */
|
|
65
|
+
getPresentedFormContentType(): string | undefined;
|
|
66
|
+
/** Sets the inline base64 payload for one attached presented form. */
|
|
67
|
+
setPresentedFormData(data?: string | null): this;
|
|
68
|
+
/** Returns the inline base64 payload for the attached presented form. */
|
|
69
|
+
getPresentedFormData(): string | undefined;
|
|
70
|
+
/** Sets the external URL for one attached presented form. */
|
|
71
|
+
setPresentedFormUrl(url?: string | null): this;
|
|
72
|
+
/** Returns the external URL for the attached presented form. */
|
|
73
|
+
getPresentedFormUrl(): string | undefined;
|
|
74
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* File discipline note:
|
|
3
|
+
* - Read `ARCHITECTURE.md` and `CONTRIBUTING.md` before changing this module.
|
|
4
|
+
* - Keep exactly one exported class per file.
|
|
5
|
+
* - Keep this file focused on one typed editor surface.
|
|
6
|
+
* - Move shared helpers to reusable helper/base modules instead of duplicating logic here.
|
|
7
|
+
*/
|
|
8
|
+
import { ClinicalResourceEntryEditor } from './clinical-resource-entry-editor.js';
|
|
9
|
+
import { DiagnosticReportClaim } from '../models/interoperable-claims/diagnostic-report-claims.js';
|
|
10
|
+
import { BundleEditableResourceTypes } from '../models/bundle-editor-types.js';
|
|
11
|
+
import { registerBundleEntryEditor } from './bundle-editor-registry.js';
|
|
12
|
+
/**
|
|
13
|
+
* Typed editor for one staged DiagnosticReport resource entry.
|
|
14
|
+
*
|
|
15
|
+
* Use this surface when the frontend or BFF needs to stage one report with
|
|
16
|
+
* links to results, specimen references, or one rendered attachment.
|
|
17
|
+
*/
|
|
18
|
+
export class DiagnosticReportEntryEditor extends ClinicalResourceEntryEditor {
|
|
19
|
+
/** Overrides the canonical identifier when import or migration logic needs one explicit public id. */
|
|
20
|
+
setIdentifier(identifier) {
|
|
21
|
+
return this.setIdentifierValue(DiagnosticReportClaim.Identifier, identifier);
|
|
22
|
+
}
|
|
23
|
+
/** Returns the canonical identifier currently exposed for this report. */
|
|
24
|
+
getIdentifier() {
|
|
25
|
+
return this.getIdentifierValue(DiagnosticReportClaim.Identifier);
|
|
26
|
+
}
|
|
27
|
+
/** Ensures the entry has one synchronized canonical identifier across public claim, `resource.id`, and `fullUrl`. */
|
|
28
|
+
ensureIdentifier() {
|
|
29
|
+
return this.ensureIdentifierValue(DiagnosticReportClaim.Identifier);
|
|
30
|
+
}
|
|
31
|
+
/** Sets the subject or patient reference for this report. */
|
|
32
|
+
setSubject(subject) {
|
|
33
|
+
return this.setSubjectClaims(DiagnosticReportClaim.Subject, DiagnosticReportClaim.Patient, subject);
|
|
34
|
+
}
|
|
35
|
+
/** Returns the subject or patient reference for this report. */
|
|
36
|
+
getSubject() {
|
|
37
|
+
return this.getSubjectClaims(DiagnosticReportClaim.Subject, DiagnosticReportClaim.Patient);
|
|
38
|
+
}
|
|
39
|
+
/** Sets the report status. */
|
|
40
|
+
setStatus(status) {
|
|
41
|
+
return this.setScalarClaim(DiagnosticReportClaim.Status, status);
|
|
42
|
+
}
|
|
43
|
+
/** Returns the report status. */
|
|
44
|
+
getStatus() {
|
|
45
|
+
return this.getScalarClaim(DiagnosticReportClaim.Status);
|
|
46
|
+
}
|
|
47
|
+
/** Sets the report date or effective time. */
|
|
48
|
+
setDate(date) {
|
|
49
|
+
return this.setScalarClaim(DiagnosticReportClaim.Date, date);
|
|
50
|
+
}
|
|
51
|
+
/** Returns the report date or effective time. */
|
|
52
|
+
getDate() {
|
|
53
|
+
return this.getScalarClaim(DiagnosticReportClaim.Date);
|
|
54
|
+
}
|
|
55
|
+
/** Sets the report category. */
|
|
56
|
+
setCategory(category) {
|
|
57
|
+
return this.setScalarClaim(DiagnosticReportClaim.Category, category);
|
|
58
|
+
}
|
|
59
|
+
/** Returns the report category. */
|
|
60
|
+
getCategory() {
|
|
61
|
+
return this.getScalarClaim(DiagnosticReportClaim.Category);
|
|
62
|
+
}
|
|
63
|
+
/** Sets the main report code. */
|
|
64
|
+
setCode(code) {
|
|
65
|
+
return this.setScalarClaim(DiagnosticReportClaim.Code, code);
|
|
66
|
+
}
|
|
67
|
+
/** Returns the main report code. */
|
|
68
|
+
getCode() {
|
|
69
|
+
return this.getScalarClaim(DiagnosticReportClaim.Code);
|
|
70
|
+
}
|
|
71
|
+
/** Sets the encounter reference linked to this report. */
|
|
72
|
+
setEncounter(reference) {
|
|
73
|
+
return this.setScalarClaim(DiagnosticReportClaim.Encounter, reference);
|
|
74
|
+
}
|
|
75
|
+
/** Returns the encounter reference linked to this report. */
|
|
76
|
+
getEncounter() {
|
|
77
|
+
return this.getScalarClaim(DiagnosticReportClaim.Encounter);
|
|
78
|
+
}
|
|
79
|
+
/** Replaces the performer reference list. */
|
|
80
|
+
setPerformerList(references) {
|
|
81
|
+
return this.setCsvClaimList(DiagnosticReportClaim.Performer, references);
|
|
82
|
+
}
|
|
83
|
+
/** Returns the performer reference list. */
|
|
84
|
+
getPerformerList() {
|
|
85
|
+
return this.getCsvClaimList(DiagnosticReportClaim.Performer);
|
|
86
|
+
}
|
|
87
|
+
/** Replaces the result reference list, often Observation references. */
|
|
88
|
+
setResultList(references) {
|
|
89
|
+
return this.setCsvClaimList(DiagnosticReportClaim.Result, references);
|
|
90
|
+
}
|
|
91
|
+
/** Returns the result reference list. */
|
|
92
|
+
getResultList() {
|
|
93
|
+
return this.getCsvClaimList(DiagnosticReportClaim.Result);
|
|
94
|
+
}
|
|
95
|
+
/** Replaces the specimen reference list. */
|
|
96
|
+
setSpecimenList(references) {
|
|
97
|
+
return this.setCsvClaimList(DiagnosticReportClaim.Specimen, references);
|
|
98
|
+
}
|
|
99
|
+
/** Returns the specimen reference list. */
|
|
100
|
+
getSpecimenList() {
|
|
101
|
+
return this.getCsvClaimList(DiagnosticReportClaim.Specimen);
|
|
102
|
+
}
|
|
103
|
+
/** @deprecated Use the shared contained-resource reference surface on `ClinicalResourceEntryEditor`. */
|
|
104
|
+
setContainedDocumentIdentifierList(identifiers) {
|
|
105
|
+
return this.setCsvClaimList(DiagnosticReportClaim.ContainedDocuments, identifiers);
|
|
106
|
+
}
|
|
107
|
+
/** @deprecated Use the shared contained-resource reference surface on `ClinicalResourceEntryEditor`. */
|
|
108
|
+
getContainedDocumentIdentifierList() {
|
|
109
|
+
return this.getCsvClaimList(DiagnosticReportClaim.ContainedDocuments);
|
|
110
|
+
}
|
|
111
|
+
/** Sets the MIME type for one attached presented form. */
|
|
112
|
+
setPresentedFormContentType(contentType) {
|
|
113
|
+
return this.setScalarClaim(DiagnosticReportClaim.PresentedFormContentType, contentType);
|
|
114
|
+
}
|
|
115
|
+
/** Returns the MIME type for the attached presented form. */
|
|
116
|
+
getPresentedFormContentType() {
|
|
117
|
+
return this.getScalarClaim(DiagnosticReportClaim.PresentedFormContentType);
|
|
118
|
+
}
|
|
119
|
+
/** Sets the inline base64 payload for one attached presented form. */
|
|
120
|
+
setPresentedFormData(data) {
|
|
121
|
+
return this.setScalarClaim(DiagnosticReportClaim.PresentedFormData, data);
|
|
122
|
+
}
|
|
123
|
+
/** Returns the inline base64 payload for the attached presented form. */
|
|
124
|
+
getPresentedFormData() {
|
|
125
|
+
return this.getScalarClaim(DiagnosticReportClaim.PresentedFormData);
|
|
126
|
+
}
|
|
127
|
+
/** Sets the external URL for one attached presented form. */
|
|
128
|
+
setPresentedFormUrl(url) {
|
|
129
|
+
return this.setScalarClaim(DiagnosticReportClaim.PresentedFormUrl, url);
|
|
130
|
+
}
|
|
131
|
+
/** Returns the external URL for the attached presented form. */
|
|
132
|
+
getPresentedFormUrl() {
|
|
133
|
+
return this.getScalarClaim(DiagnosticReportClaim.PresentedFormUrl);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
registerBundleEntryEditor(BundleEditableResourceTypes.diagnosticReport, DiagnosticReportEntryEditor);
|
package/dist/utils/did.d.ts
CHANGED
|
@@ -59,6 +59,14 @@ export declare function createHostedDidWeb(hostDidWeb: string, tenantId: string,
|
|
|
59
59
|
version: string;
|
|
60
60
|
sector: string;
|
|
61
61
|
}): string;
|
|
62
|
+
/**
|
|
63
|
+
* Extracts the tenant identifier from one hosted `did:web`.
|
|
64
|
+
*
|
|
65
|
+
* This is a compatibility helper for places that still receive a full hosted
|
|
66
|
+
* DID where a route tenant id is expected. It only returns the tenant segment
|
|
67
|
+
* used by the hosted organization form.
|
|
68
|
+
*/
|
|
69
|
+
export declare function extractTenantIdFromHostedDidWeb(did: string): string | undefined;
|
|
62
70
|
/**
|
|
63
71
|
* Builds the canonical hosted provider DID root used by hosted tenant services.
|
|
64
72
|
*
|
package/dist/utils/did.js
CHANGED
|
@@ -111,6 +111,28 @@ export function createHostedDidWeb(hostDidWeb, tenantId, context) {
|
|
|
111
111
|
const didPath = `cds-${context.jurisdiction}:${context.version}:${context.sector}`;
|
|
112
112
|
return `did:web:${hostPart}:${tenantId}:${didPath}`;
|
|
113
113
|
}
|
|
114
|
+
/**
|
|
115
|
+
* Extracts the tenant identifier from one hosted `did:web`.
|
|
116
|
+
*
|
|
117
|
+
* This is a compatibility helper for places that still receive a full hosted
|
|
118
|
+
* DID where a route tenant id is expected. It only returns the tenant segment
|
|
119
|
+
* used by the hosted organization form.
|
|
120
|
+
*/
|
|
121
|
+
export function extractTenantIdFromHostedDidWeb(did) {
|
|
122
|
+
const normalizedDid = String(did || '').trim();
|
|
123
|
+
if (!normalizedDid.startsWith('did:web:')) {
|
|
124
|
+
return undefined;
|
|
125
|
+
}
|
|
126
|
+
const didParts = normalizedDid.slice('did:web:'.length).split(':');
|
|
127
|
+
if (didParts.length < 2) {
|
|
128
|
+
return undefined;
|
|
129
|
+
}
|
|
130
|
+
const tenantId = String(didParts[1] || '').trim();
|
|
131
|
+
if (!tenantId || /^cds-/i.test(tenantId)) {
|
|
132
|
+
return undefined;
|
|
133
|
+
}
|
|
134
|
+
return decodeURIComponent(tenantId);
|
|
135
|
+
}
|
|
114
136
|
/**
|
|
115
137
|
* Builds the canonical hosted provider DID root used by hosted tenant services.
|
|
116
138
|
*
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* File discipline note:
|
|
3
|
+
* - Read `ARCHITECTURE.md` and `CONTRIBUTING.md` before changing this module.
|
|
4
|
+
* - Keep exactly one exported class per file.
|
|
5
|
+
* - Keep this file focused on one typed editor surface.
|
|
6
|
+
* - Move shared helpers to reusable helper/base modules instead of duplicating logic here.
|
|
7
|
+
*/
|
|
8
|
+
import { ClinicalResourceEntryEditor } from './clinical-resource-entry-editor';
|
|
9
|
+
/**
|
|
10
|
+
* Typed editor for one staged DocumentReference resource entry.
|
|
11
|
+
*
|
|
12
|
+
* Use this surface when the frontend needs to attach one PDF, image, VC, or
|
|
13
|
+
* other document-like payload to a clinical document or Communication flow.
|
|
14
|
+
*/
|
|
15
|
+
export declare class DocumentReferenceEntryEditor extends ClinicalResourceEntryEditor {
|
|
16
|
+
/** Overrides the canonical identifier when import or migration logic needs one explicit public id. */
|
|
17
|
+
setIdentifier(identifier?: string | null): this;
|
|
18
|
+
/** Returns the canonical identifier currently exposed for this document entry. */
|
|
19
|
+
getIdentifier(): string | undefined;
|
|
20
|
+
/** Ensures the entry has one synchronized canonical identifier across public claim, `resource.id`, and `fullUrl`. */
|
|
21
|
+
ensureIdentifier(): string;
|
|
22
|
+
/** Sets the subject reference for the attached document. */
|
|
23
|
+
setSubject(subject?: string | null): this;
|
|
24
|
+
/** Returns the subject reference for the attached document. */
|
|
25
|
+
getSubject(): string | undefined;
|
|
26
|
+
/** Sets the coded document type. */
|
|
27
|
+
setType(value?: string | null): this;
|
|
28
|
+
/** Returns the coded document type. */
|
|
29
|
+
getType(): string | undefined;
|
|
30
|
+
/** Sets the document category. */
|
|
31
|
+
setCategory(value?: string | null): this;
|
|
32
|
+
/** Returns the document category. */
|
|
33
|
+
getCategory(): string | undefined;
|
|
34
|
+
/** Sets the MIME type of the attached payload, such as PDF or image content. */
|
|
35
|
+
setContentType(value?: string | null): this;
|
|
36
|
+
/** Returns the MIME type of the attached payload. */
|
|
37
|
+
getContentType(): string | undefined;
|
|
38
|
+
/** Sets the inline base64 payload when the document travels inside the bundle. */
|
|
39
|
+
setContentData(value?: string | null): this;
|
|
40
|
+
/** Returns the inline base64 payload when present. */
|
|
41
|
+
getContentData(): string | undefined;
|
|
42
|
+
/** Sets the content hash or CID-like value used for integrity and external retrieval. */
|
|
43
|
+
setContentHash(value?: string | null): this;
|
|
44
|
+
/** Returns the content hash or CID-like value. */
|
|
45
|
+
getContentHash(): string | undefined;
|
|
46
|
+
/** Sets the external location/URL when the payload is not embedded inline. */
|
|
47
|
+
setLocation(value?: string | null): this;
|
|
48
|
+
/** Returns the external location/URL when present. */
|
|
49
|
+
getLocation(): string | undefined;
|
|
50
|
+
/** Sets the user-facing description for the attached document. */
|
|
51
|
+
setDescription(value?: string | null): this;
|
|
52
|
+
/** Returns the user-facing description for the attached document. */
|
|
53
|
+
getDescription(): string | undefined;
|
|
54
|
+
/** Sets the document date. */
|
|
55
|
+
setDate(value?: string | null): this;
|
|
56
|
+
/** Returns the document date. */
|
|
57
|
+
getDate(): string | undefined;
|
|
58
|
+
/** Sets the document author reference. */
|
|
59
|
+
setAuthor(value?: string | null): this;
|
|
60
|
+
/** Returns the document author reference. */
|
|
61
|
+
getAuthor(): string | undefined;
|
|
62
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* File discipline note:
|
|
3
|
+
* - Read `ARCHITECTURE.md` and `CONTRIBUTING.md` before changing this module.
|
|
4
|
+
* - Keep exactly one exported class per file.
|
|
5
|
+
* - Keep this file focused on one typed editor surface.
|
|
6
|
+
* - Move shared helpers to reusable helper/base modules instead of duplicating logic here.
|
|
7
|
+
*/
|
|
8
|
+
import { ClinicalResourceEntryEditor } from './clinical-resource-entry-editor.js';
|
|
9
|
+
import { DocumentReferenceClaim } from '../models/interoperable-claims/document-reference-claims.js';
|
|
10
|
+
import { BundleEditableResourceTypes } from '../models/bundle-editor-types.js';
|
|
11
|
+
import { registerBundleEntryEditor } from './bundle-editor-registry.js';
|
|
12
|
+
/**
|
|
13
|
+
* Typed editor for one staged DocumentReference resource entry.
|
|
14
|
+
*
|
|
15
|
+
* Use this surface when the frontend needs to attach one PDF, image, VC, or
|
|
16
|
+
* other document-like payload to a clinical document or Communication flow.
|
|
17
|
+
*/
|
|
18
|
+
export class DocumentReferenceEntryEditor extends ClinicalResourceEntryEditor {
|
|
19
|
+
/** Overrides the canonical identifier when import or migration logic needs one explicit public id. */
|
|
20
|
+
setIdentifier(identifier) { return this.setIdentifierValue(DocumentReferenceClaim.Identifier, identifier); }
|
|
21
|
+
/** Returns the canonical identifier currently exposed for this document entry. */
|
|
22
|
+
getIdentifier() { return this.getIdentifierValue(DocumentReferenceClaim.Identifier); }
|
|
23
|
+
/** Ensures the entry has one synchronized canonical identifier across public claim, `resource.id`, and `fullUrl`. */
|
|
24
|
+
ensureIdentifier() { return this.ensureIdentifierValue(DocumentReferenceClaim.Identifier); }
|
|
25
|
+
/** Sets the subject reference for the attached document. */
|
|
26
|
+
setSubject(subject) { return this.setScalarClaim(DocumentReferenceClaim.Subject, subject); }
|
|
27
|
+
/** Returns the subject reference for the attached document. */
|
|
28
|
+
getSubject() { return this.getScalarClaim(DocumentReferenceClaim.Subject); }
|
|
29
|
+
/** Sets the coded document type. */
|
|
30
|
+
setType(value) { return this.setScalarClaim(DocumentReferenceClaim.Type, value); }
|
|
31
|
+
/** Returns the coded document type. */
|
|
32
|
+
getType() { return this.getScalarClaim(DocumentReferenceClaim.Type); }
|
|
33
|
+
/** Sets the document category. */
|
|
34
|
+
setCategory(value) { return this.setScalarClaim(DocumentReferenceClaim.Category, value); }
|
|
35
|
+
/** Returns the document category. */
|
|
36
|
+
getCategory() { return this.getScalarClaim(DocumentReferenceClaim.Category); }
|
|
37
|
+
/** Sets the MIME type of the attached payload, such as PDF or image content. */
|
|
38
|
+
setContentType(value) { return this.setScalarClaim(DocumentReferenceClaim.ContentType, value); }
|
|
39
|
+
/** Returns the MIME type of the attached payload. */
|
|
40
|
+
getContentType() { return this.getScalarClaim(DocumentReferenceClaim.ContentType); }
|
|
41
|
+
/** Sets the inline base64 payload when the document travels inside the bundle. */
|
|
42
|
+
setContentData(value) { return this.setScalarClaim(DocumentReferenceClaim.ContentData, value); }
|
|
43
|
+
/** Returns the inline base64 payload when present. */
|
|
44
|
+
getContentData() { return this.getScalarClaim(DocumentReferenceClaim.ContentData); }
|
|
45
|
+
/** Sets the content hash or CID-like value used for integrity and external retrieval. */
|
|
46
|
+
setContentHash(value) { return this.setScalarClaim(DocumentReferenceClaim.ContentHash, value); }
|
|
47
|
+
/** Returns the content hash or CID-like value. */
|
|
48
|
+
getContentHash() { return this.getScalarClaim(DocumentReferenceClaim.ContentHash); }
|
|
49
|
+
/** Sets the external location/URL when the payload is not embedded inline. */
|
|
50
|
+
setLocation(value) { return this.setScalarClaim(DocumentReferenceClaim.Location, value); }
|
|
51
|
+
/** Returns the external location/URL when present. */
|
|
52
|
+
getLocation() { return this.getScalarClaim(DocumentReferenceClaim.Location); }
|
|
53
|
+
/** Sets the user-facing description for the attached document. */
|
|
54
|
+
setDescription(value) { return this.setScalarClaim(DocumentReferenceClaim.Description, value); }
|
|
55
|
+
/** Returns the user-facing description for the attached document. */
|
|
56
|
+
getDescription() { return this.getScalarClaim(DocumentReferenceClaim.Description); }
|
|
57
|
+
/** Sets the document date. */
|
|
58
|
+
setDate(value) { return this.setScalarClaim(DocumentReferenceClaim.Date, value); }
|
|
59
|
+
/** Returns the document date. */
|
|
60
|
+
getDate() { return this.getScalarClaim(DocumentReferenceClaim.Date); }
|
|
61
|
+
/** Sets the document author reference. */
|
|
62
|
+
setAuthor(value) { return this.setScalarClaim(DocumentReferenceClaim.Author, value); }
|
|
63
|
+
/** Returns the document author reference. */
|
|
64
|
+
getAuthor() { return this.getScalarClaim(DocumentReferenceClaim.Author); }
|
|
65
|
+
}
|
|
66
|
+
registerBundleEntryEditor(BundleEditableResourceTypes.documentReference, DocumentReferenceEntryEditor);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { BundleEntryEditor } from './bundle-entry-editor';
|
|
2
|
+
/**
|
|
3
|
+
* Typed editor for one staged Employee resource entry.
|
|
4
|
+
*
|
|
5
|
+
* Use this when a caller needs to stage one employee row with claims-first
|
|
6
|
+
* accessors in a bundle authoring flow.
|
|
7
|
+
*/
|
|
8
|
+
export declare class EmployeeEntryEditor extends BundleEntryEditor {
|
|
9
|
+
/**
|
|
10
|
+
* Writes the canonical employee identifier.
|
|
11
|
+
*
|
|
12
|
+
* The identifier is synchronized across:
|
|
13
|
+
* - `entry.fullUrl`
|
|
14
|
+
* - `resource.id`
|
|
15
|
+
* - `org.schema.Person.identifier`
|
|
16
|
+
*/
|
|
17
|
+
setIdentifier(identifier?: string | null): this;
|
|
18
|
+
/** Reads the canonical employee identifier from claims, resource id, or fullUrl. */
|
|
19
|
+
getIdentifier(): string | undefined;
|
|
20
|
+
/** Ensures the employee entry carries one canonical `urn:uuid:*` identifier. */
|
|
21
|
+
ensureIdentifier(): string;
|
|
22
|
+
/** Writes the canonical employee email claim on this entry. */
|
|
23
|
+
setEmail(email: string): this;
|
|
24
|
+
/** Reads the canonical employee email claim from this entry. */
|
|
25
|
+
getEmail(): string | undefined;
|
|
26
|
+
/** Writes the canonical employee occupational role claim on this entry. */
|
|
27
|
+
setRole(role: string): this;
|
|
28
|
+
/** Reads the canonical employee occupational role claim from this entry. */
|
|
29
|
+
getRole(): string | undefined;
|
|
30
|
+
/** Writes the canonical employee `worksFor` claim on this entry. */
|
|
31
|
+
setWorksFor(worksFor: string): this;
|
|
32
|
+
/** Writes the canonical employee `memberOf` claim on this entry. */
|
|
33
|
+
setMemberOf(memberOf: string): this;
|
|
34
|
+
/** Writes the canonical employee organization tax id claim on this entry. */
|
|
35
|
+
setMemberOfOrgTaxId(taxId: string): this;
|
|
36
|
+
}
|