gdc-common-utils-ts 1.14.10 → 1.14.13
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 +54 -1
- package/dist/claims/claim-list-helpers.d.ts +21 -0
- package/dist/claims/claim-list-helpers.js +50 -0
- package/dist/claims/claims-helpers-allergy-intolerance.d.ts +10 -0
- package/dist/claims/claims-helpers-allergy-intolerance.js +47 -0
- package/dist/claims/claims-helpers-appointment-response.d.ts +8 -0
- package/dist/claims/claims-helpers-appointment-response.js +20 -0
- package/dist/claims/claims-helpers-appointment.d.ts +10 -0
- package/dist/claims/claims-helpers-appointment.js +26 -0
- package/dist/claims/claims-helpers-care-plan.d.ts +8 -0
- package/dist/claims/claims-helpers-care-plan.js +20 -0
- package/dist/claims/claims-helpers-clinical-impression.d.ts +10 -0
- package/dist/claims/claims-helpers-clinical-impression.js +26 -0
- package/dist/claims/claims-helpers-communication.d.ts +17 -0
- package/dist/claims/claims-helpers-communication.js +57 -0
- package/dist/claims/claims-helpers-composition.d.ts +12 -0
- package/dist/claims/claims-helpers-composition.js +32 -0
- package/dist/claims/claims-helpers-condition.d.ts +10 -0
- package/dist/claims/claims-helpers-condition.js +47 -0
- package/dist/claims/claims-helpers-consent.d.ts +112 -0
- package/dist/claims/claims-helpers-consent.js +271 -0
- package/dist/claims/claims-helpers-coverage.d.ts +10 -0
- package/dist/claims/claims-helpers-coverage.js +26 -0
- package/dist/claims/claims-helpers-device-use-statement.d.ts +8 -0
- package/dist/claims/claims-helpers-device-use-statement.js +20 -0
- package/dist/claims/claims-helpers-device.d.ts +8 -0
- package/dist/claims/claims-helpers-device.js +20 -0
- package/dist/claims/claims-helpers-diagnostic-report.d.ts +12 -0
- package/dist/claims/claims-helpers-diagnostic-report.js +32 -0
- package/dist/claims/claims-helpers-document-reference.d.ts +8 -0
- package/dist/claims/claims-helpers-document-reference.js +20 -0
- package/dist/claims/claims-helpers-encounter.d.ts +10 -0
- package/dist/claims/claims-helpers-encounter.js +26 -0
- package/dist/claims/claims-helpers-flag.d.ts +8 -0
- package/dist/claims/claims-helpers-flag.js +20 -0
- package/dist/claims/claims-helpers-immunization.d.ts +8 -0
- package/dist/claims/claims-helpers-immunization.js +20 -0
- package/dist/claims/claims-helpers-location.d.ts +10 -0
- package/dist/claims/claims-helpers-location.js +26 -0
- package/dist/claims/claims-helpers-medication-statement.d.ts +88 -0
- package/dist/claims/claims-helpers-medication-statement.js +259 -0
- package/dist/claims/claims-helpers-observation.d.ts +8 -0
- package/dist/claims/claims-helpers-observation.js +20 -0
- package/dist/claims/claims-helpers-organization.d.ts +12 -0
- package/dist/claims/claims-helpers-organization.js +32 -0
- package/dist/claims/claims-helpers-procedure.d.ts +8 -0
- package/dist/claims/claims-helpers-procedure.js +20 -0
- package/dist/claims/claims-helpers-related-person.d.ts +8 -0
- package/dist/claims/claims-helpers-related-person.js +20 -0
- package/dist/claims/index.d.ts +24 -0
- package/dist/claims/index.js +24 -0
- package/dist/constants/fhir-resource-types.d.ts +16 -0
- package/dist/constants/fhir-resource-types.js +8 -0
- package/dist/convert/convert-allergy-intolerance.d.ts +3 -0
- package/dist/convert/convert-allergy-intolerance.js +34 -0
- package/dist/convert/convert-appointment-response.d.ts +3 -0
- package/dist/convert/convert-appointment-response.js +32 -0
- package/dist/convert/convert-appointment.d.ts +3 -0
- package/dist/convert/convert-appointment.js +61 -0
- package/dist/convert/convert-care-plan.d.ts +3 -0
- package/dist/convert/convert-care-plan.js +58 -0
- package/dist/convert/convert-clinical-impression.d.ts +3 -0
- package/dist/convert/convert-clinical-impression.js +42 -0
- package/dist/convert/convert-composition.d.ts +3 -0
- package/dist/convert/convert-composition.js +35 -0
- package/dist/convert/convert-condition.d.ts +3 -0
- package/dist/convert/convert-condition.js +24 -0
- package/dist/convert/convert-coverage.d.ts +3 -0
- package/dist/convert/convert-coverage.js +51 -0
- package/dist/convert/convert-device-use-statement.d.ts +3 -0
- package/dist/convert/convert-device-use-statement.js +28 -0
- package/dist/convert/convert-device.d.ts +3 -0
- package/dist/convert/convert-device.js +37 -0
- package/dist/convert/convert-diagnostic-report.d.ts +3 -0
- package/dist/convert/convert-diagnostic-report.js +55 -0
- package/dist/convert/convert-document-reference.d.ts +3 -0
- package/dist/convert/convert-document-reference.js +35 -0
- package/dist/convert/convert-encounter.d.ts +3 -0
- package/dist/convert/convert-encounter.js +68 -0
- package/dist/convert/convert-flag.d.ts +3 -0
- package/dist/convert/convert-flag.js +34 -0
- package/dist/convert/convert-immunization.d.ts +3 -0
- package/dist/convert/convert-immunization.js +56 -0
- package/dist/convert/convert-location.d.ts +3 -0
- package/dist/convert/convert-location.js +44 -0
- package/dist/convert/convert-medication-statement.d.ts +3 -0
- package/dist/convert/convert-medication-statement.js +64 -0
- package/dist/convert/convert-observation.d.ts +3 -0
- package/dist/convert/convert-observation.js +57 -0
- package/dist/convert/convert-organization.d.ts +3 -0
- package/dist/convert/convert-organization.js +39 -0
- package/dist/convert/convert-procedure.d.ts +3 -0
- package/dist/convert/convert-procedure.js +50 -0
- package/dist/convert/convert-related-person.d.ts +3 -0
- package/dist/convert/convert-related-person.js +31 -0
- package/dist/convert/convert-shared.d.ts +34 -0
- package/dist/convert/convert-shared.js +179 -0
- package/dist/convert/index.d.ts +22 -0
- package/dist/convert/index.js +22 -0
- package/dist/examples/communication-bundle-session.js +2 -2
- package/dist/examples/shared.d.ts +19 -0
- package/dist/examples/shared.js +73 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/models/bundle.d.ts +13 -1
- package/dist/models/interoperable-claims/appointment-claims.d.ts +23 -1
- package/dist/models/interoperable-claims/appointment-claims.js +22 -1
- package/dist/models/interoperable-claims/appointment-response-claims.d.ts +14 -0
- package/dist/models/interoperable-claims/appointment-response-claims.js +13 -0
- package/dist/models/interoperable-claims/care-plan-claims.d.ts +24 -0
- package/dist/models/interoperable-claims/care-plan-claims.js +44 -0
- package/dist/models/interoperable-claims/clinical-impression-claims.d.ts +17 -0
- package/dist/models/interoperable-claims/clinical-impression-claims.js +30 -0
- package/dist/models/interoperable-claims/coverage-claims.d.ts +16 -0
- package/dist/models/interoperable-claims/coverage-claims.js +28 -0
- package/dist/models/interoperable-claims/device-claims.d.ts +18 -0
- package/dist/models/interoperable-claims/device-claims.js +32 -0
- package/dist/models/interoperable-claims/diagnostic-report-claims.d.ts +2 -2
- package/dist/models/interoperable-claims/diagnostic-report-claims.js +1 -1
- package/dist/models/interoperable-claims/encounter-claims.d.ts +18 -0
- package/dist/models/interoperable-claims/encounter-claims.js +32 -0
- package/dist/models/interoperable-claims/flag-claims.d.ts +16 -0
- package/dist/models/interoperable-claims/flag-claims.js +28 -0
- package/dist/models/interoperable-claims/immunization-claims.d.ts +23 -0
- package/dist/models/interoperable-claims/immunization-claims.js +42 -0
- package/dist/models/interoperable-claims/index.d.ts +12 -0
- package/dist/models/interoperable-claims/index.js +12 -0
- package/dist/models/interoperable-claims/location-claims.d.ts +22 -0
- package/dist/models/interoperable-claims/location-claims.js +34 -0
- package/dist/models/interoperable-claims/observation-claims.d.ts +26 -0
- package/dist/models/interoperable-claims/observation-claims.js +48 -0
- package/dist/models/interoperable-claims/organization-claims.d.ts +18 -0
- package/dist/models/interoperable-claims/organization-claims.js +27 -0
- package/dist/models/interoperable-claims/procedure-claims.d.ts +22 -0
- package/dist/models/interoperable-claims/procedure-claims.js +40 -0
- package/dist/models/interoperable-claims/related-person-claims.d.ts +14 -0
- package/dist/models/interoperable-claims/related-person-claims.js +24 -0
- package/dist/utils/appointment-claim-helpers.d.ts +10 -0
- package/dist/utils/appointment-claim-helpers.js +26 -0
- package/dist/utils/appointment-response-claim-helpers.d.ts +8 -0
- package/dist/utils/appointment-response-claim-helpers.js +20 -0
- package/dist/utils/bundle-document-builder.d.ts +36 -0
- package/dist/utils/bundle-document-builder.js +311 -0
- package/dist/utils/claims-helpers-allergy-intolerance.d.ts +1 -0
- package/dist/utils/claims-helpers-allergy-intolerance.js +1 -0
- package/dist/utils/claims-helpers-appointment-response.d.ts +1 -0
- package/dist/utils/claims-helpers-appointment-response.js +1 -0
- package/dist/utils/claims-helpers-appointment.d.ts +1 -0
- package/dist/utils/claims-helpers-appointment.js +1 -0
- package/dist/utils/claims-helpers-care-plan.d.ts +1 -0
- package/dist/utils/claims-helpers-care-plan.js +1 -0
- package/dist/utils/claims-helpers-clinical-impression.d.ts +1 -0
- package/dist/utils/claims-helpers-clinical-impression.js +1 -0
- package/dist/utils/claims-helpers-communication.d.ts +1 -0
- package/dist/utils/claims-helpers-communication.js +1 -0
- package/dist/utils/claims-helpers-composition.d.ts +1 -0
- package/dist/utils/claims-helpers-composition.js +1 -0
- package/dist/utils/claims-helpers-condition.d.ts +1 -0
- package/dist/utils/claims-helpers-condition.js +1 -0
- package/dist/utils/claims-helpers-consent.d.ts +1 -0
- package/dist/utils/claims-helpers-consent.js +1 -0
- package/dist/utils/claims-helpers-coverage.d.ts +1 -0
- package/dist/utils/claims-helpers-coverage.js +1 -0
- package/dist/utils/claims-helpers-device-use-statement.d.ts +1 -0
- package/dist/utils/claims-helpers-device-use-statement.js +1 -0
- package/dist/utils/claims-helpers-device.d.ts +1 -0
- package/dist/utils/claims-helpers-device.js +1 -0
- package/dist/utils/claims-helpers-diagnostic-report.d.ts +1 -0
- package/dist/utils/claims-helpers-diagnostic-report.js +1 -0
- package/dist/utils/claims-helpers-document-reference.d.ts +1 -0
- package/dist/utils/claims-helpers-document-reference.js +1 -0
- package/dist/utils/claims-helpers-encounter.d.ts +1 -0
- package/dist/utils/claims-helpers-encounter.js +1 -0
- package/dist/utils/claims-helpers-flag.d.ts +1 -0
- package/dist/utils/claims-helpers-flag.js +1 -0
- package/dist/utils/claims-helpers-immunization.d.ts +1 -0
- package/dist/utils/claims-helpers-immunization.js +1 -0
- package/dist/utils/claims-helpers-location.d.ts +1 -0
- package/dist/utils/claims-helpers-location.js +1 -0
- package/dist/utils/claims-helpers-medication-statement.d.ts +1 -0
- package/dist/utils/claims-helpers-medication-statement.js +1 -0
- package/dist/utils/claims-helpers-observation.d.ts +1 -0
- package/dist/utils/claims-helpers-observation.js +1 -0
- package/dist/utils/claims-helpers-organization.d.ts +1 -0
- package/dist/utils/claims-helpers-organization.js +1 -0
- package/dist/utils/claims-helpers-procedure.d.ts +1 -0
- package/dist/utils/claims-helpers-procedure.js +1 -0
- package/dist/utils/claims-helpers-related-person.d.ts +1 -0
- package/dist/utils/claims-helpers-related-person.js +1 -0
- package/dist/utils/clinical-impression-claim-helpers.d.ts +10 -0
- package/dist/utils/clinical-impression-claim-helpers.js +26 -0
- package/dist/utils/clinical-resource-converters.d.ts +91 -62
- package/dist/utils/clinical-resource-converters.js +135 -273
- package/dist/utils/communication-bundle-session.js +1 -1
- package/dist/utils/composition-claim-helpers.d.ts +12 -0
- package/dist/utils/composition-claim-helpers.js +32 -0
- package/dist/utils/consent-claim-helpers.d.ts +2 -2
- package/dist/utils/consent-claim-helpers.js +2 -2
- package/dist/utils/convert-allergy-intolerance.d.ts +3 -0
- package/dist/utils/convert-allergy-intolerance.js +34 -0
- package/dist/utils/convert-appointment-response.d.ts +3 -0
- package/dist/utils/convert-appointment-response.js +32 -0
- package/dist/utils/convert-appointment.d.ts +3 -0
- package/dist/utils/convert-appointment.js +61 -0
- package/dist/utils/convert-care-plan.d.ts +3 -0
- package/dist/utils/convert-care-plan.js +58 -0
- package/dist/utils/convert-clinical-impression.d.ts +3 -0
- package/dist/utils/convert-clinical-impression.js +42 -0
- package/dist/utils/convert-composition.d.ts +3 -0
- package/dist/utils/convert-composition.js +35 -0
- package/dist/utils/convert-condition.d.ts +3 -0
- package/dist/utils/convert-condition.js +24 -0
- package/dist/utils/convert-coverage.d.ts +3 -0
- package/dist/utils/convert-coverage.js +51 -0
- package/dist/utils/convert-device-use-statement.d.ts +3 -0
- package/dist/utils/convert-device-use-statement.js +28 -0
- package/dist/utils/convert-device.d.ts +3 -0
- package/dist/utils/convert-device.js +37 -0
- package/dist/utils/convert-diagnostic-report.d.ts +3 -0
- package/dist/utils/convert-diagnostic-report.js +55 -0
- package/dist/utils/convert-document-reference.d.ts +3 -0
- package/dist/utils/convert-document-reference.js +35 -0
- package/dist/utils/convert-encounter.d.ts +3 -0
- package/dist/utils/convert-encounter.js +68 -0
- package/dist/utils/convert-flag.d.ts +3 -0
- package/dist/utils/convert-flag.js +34 -0
- package/dist/utils/convert-immunization.d.ts +3 -0
- package/dist/utils/convert-immunization.js +56 -0
- package/dist/utils/convert-medication-statement.d.ts +3 -0
- package/dist/utils/convert-medication-statement.js +64 -0
- package/dist/utils/convert-observation.d.ts +3 -0
- package/dist/utils/convert-observation.js +57 -0
- package/dist/utils/convert-procedure.d.ts +3 -0
- package/dist/utils/convert-procedure.js +50 -0
- package/dist/utils/convert-related-person.d.ts +3 -0
- package/dist/utils/convert-related-person.js +31 -0
- package/dist/utils/convert-shared.d.ts +34 -0
- package/dist/utils/convert-shared.js +179 -0
- package/dist/utils/coverage-claim-helpers.d.ts +10 -0
- package/dist/utils/coverage-claim-helpers.js +26 -0
- package/dist/utils/diagnostic-report-claim-helpers.d.ts +12 -0
- package/dist/utils/diagnostic-report-claim-helpers.js +32 -0
- package/dist/utils/encounter-claim-helpers.d.ts +10 -0
- package/dist/utils/encounter-claim-helpers.js +26 -0
- package/dist/utils/fhir-cid.d.ts +49 -0
- package/dist/utils/fhir-cid.js +75 -0
- package/dist/utils/index.d.ts +4 -6
- package/dist/utils/index.js +4 -6
- package/dist/utils/ips-bundle-claims.d.ts +52 -0
- package/dist/utils/ips-bundle-claims.js +104 -0
- package/dist/utils/jwt.d.ts +16 -0
- package/dist/utils/jwt.js +21 -0
- package/dist/utils/related-person-claim-helpers.d.ts +8 -0
- package/dist/utils/related-person-claim-helpers.js +20 -0
- package/package.json +17 -1
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
export { addClaimValues, getClaimValues, removeClaimValues, setClaimValues, } from './claim-list-helpers.js';
|
|
2
|
+
import { type GenericInteroperableClaims } from './claim-list-helpers.js';
|
|
3
|
+
export type InteroperableClaims = GenericInteroperableClaims;
|
|
4
|
+
export declare function getActors(claims: InteroperableClaims): string[];
|
|
5
|
+
/**
|
|
6
|
+
* Returns actor identifiers as array instead of CSV.
|
|
7
|
+
*/
|
|
8
|
+
export declare function getActorIdentifierList(claims: InteroperableClaims): string[];
|
|
9
|
+
export declare function setActors(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
10
|
+
/**
|
|
11
|
+
* Stores actor identifiers from array/string input as canonical CSV claim.
|
|
12
|
+
*/
|
|
13
|
+
export declare function setActorIdentifierList(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
14
|
+
export declare function addActors(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
15
|
+
export declare function removeActors(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
16
|
+
export declare function addActorIdentifierList(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
17
|
+
export declare function removeActorIdentifierList(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
18
|
+
export declare function getRoles(claims: InteroperableClaims): string[];
|
|
19
|
+
/**
|
|
20
|
+
* Returns actor roles as array instead of CSV.
|
|
21
|
+
*/
|
|
22
|
+
export declare function getActorRoleList(claims: InteroperableClaims): string[];
|
|
23
|
+
export declare function setRoles(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
24
|
+
export declare function setActorRoleList(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
25
|
+
export declare function addRoles(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
26
|
+
export declare function removeRoles(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
27
|
+
export declare function addActorRoleList(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
28
|
+
export declare function removeActorRoleList(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
29
|
+
export declare function getPurposes(claims: InteroperableClaims): string[];
|
|
30
|
+
export declare function getPurposeList(claims: InteroperableClaims): string[];
|
|
31
|
+
export declare function setPurposes(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
32
|
+
export declare function setPurposeList(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
33
|
+
export declare function addPurposes(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
34
|
+
export declare function removePurposes(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
35
|
+
export declare function addPurposeList(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
36
|
+
export declare function removePurposeList(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
37
|
+
/**
|
|
38
|
+
* Consent category as array instead of CSV.
|
|
39
|
+
*/
|
|
40
|
+
export declare function getCategories(claims: InteroperableClaims): string[];
|
|
41
|
+
export declare function getCategoryList(claims: InteroperableClaims): string[];
|
|
42
|
+
export declare function setCategories(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
43
|
+
export declare function setCategoryList(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
44
|
+
export declare function addCategories(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
45
|
+
export declare function removeCategories(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
46
|
+
export declare function addCategoryList(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
47
|
+
export declare function removeCategoryList(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
48
|
+
export declare function getSections(claims: InteroperableClaims): string[];
|
|
49
|
+
export declare function getSectionList(claims: InteroperableClaims): string[];
|
|
50
|
+
/**
|
|
51
|
+
* Alias for teams that describe Consent.action values as sector-scoped access
|
|
52
|
+
* tokens. This maps to the same canonical Consent.action claim as sections.
|
|
53
|
+
*/
|
|
54
|
+
export declare function getSectors(claims: InteroperableClaims): string[];
|
|
55
|
+
export declare function setSections(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
56
|
+
export declare function setSectionList(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
57
|
+
/**
|
|
58
|
+
* Alias for teams that describe Consent.action values as sector-scoped access
|
|
59
|
+
* tokens. This maps to the same canonical Consent.action claim as sections.
|
|
60
|
+
*/
|
|
61
|
+
export declare function setSectors(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
62
|
+
export declare function addSections(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
63
|
+
export declare function addSectionList(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
64
|
+
/**
|
|
65
|
+
* Alias for teams that describe Consent.action values as sector-scoped access
|
|
66
|
+
* tokens. This maps to the same canonical Consent.action claim as sections.
|
|
67
|
+
*/
|
|
68
|
+
export declare function addSectors(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
69
|
+
export declare function removeSections(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
70
|
+
export declare function removeSectionList(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
71
|
+
/**
|
|
72
|
+
* Alias for teams that describe Consent.action values as sector-scoped access
|
|
73
|
+
* tokens. This maps to the same canonical Consent.action claim as sections.
|
|
74
|
+
*/
|
|
75
|
+
export declare function removeSectors(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
76
|
+
/**
|
|
77
|
+
* Returns linked DocumentReference identifiers carried by the consent.
|
|
78
|
+
*/
|
|
79
|
+
export declare function getContainedDocumentIdentifierList(claims: InteroperableClaims): string[];
|
|
80
|
+
export declare function setContainedDocumentIdentifierList(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
81
|
+
export declare function addContainedDocumentIdentifierList(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
82
|
+
export declare function removeContainedDocumentIdentifierList(claims: InteroperableClaims, values: string | readonly string[]): InteroperableClaims;
|
|
83
|
+
/**
|
|
84
|
+
* Reads the canonical consent date claim.
|
|
85
|
+
*/
|
|
86
|
+
export declare function getConsentDate(claims: InteroperableClaims): string;
|
|
87
|
+
/**
|
|
88
|
+
* Reads the canonical consent subject claim.
|
|
89
|
+
*/
|
|
90
|
+
export declare function getConsentSubject(claims: InteroperableClaims): string;
|
|
91
|
+
/**
|
|
92
|
+
* Sets the canonical consent subject claim.
|
|
93
|
+
*/
|
|
94
|
+
export declare function setConsentSubject(claims: InteroperableClaims, value: string): InteroperableClaims;
|
|
95
|
+
/**
|
|
96
|
+
* Reads the canonical consent decision claim.
|
|
97
|
+
*/
|
|
98
|
+
export declare function getConsentDecision(claims: InteroperableClaims): string;
|
|
99
|
+
/**
|
|
100
|
+
* Sets the canonical consent decision claim.
|
|
101
|
+
*/
|
|
102
|
+
export declare function setConsentDecision(claims: InteroperableClaims, value: string): InteroperableClaims;
|
|
103
|
+
/**
|
|
104
|
+
* Sets the canonical consent date claim.
|
|
105
|
+
*/
|
|
106
|
+
export declare function setConsentDate(claims: InteroperableClaims, value: string): InteroperableClaims;
|
|
107
|
+
export declare function getConsentPeriodStart(claims: InteroperableClaims): string;
|
|
108
|
+
export declare function setConsentPeriodStart(claims: InteroperableClaims, value: string): InteroperableClaims;
|
|
109
|
+
export declare function getConsentPeriodEnd(claims: InteroperableClaims): string;
|
|
110
|
+
export declare function setConsentPeriodEnd(claims: InteroperableClaims, value: string): InteroperableClaims;
|
|
111
|
+
export declare function getConsentIdentifier(claims: InteroperableClaims): string;
|
|
112
|
+
export declare function setConsentIdentifier(claims: InteroperableClaims, value: string): InteroperableClaims;
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
// Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
+
import { ClaimConsent } from '../models/consent-rule.js';
|
|
3
|
+
export { addClaimValues, getClaimValues, removeClaimValues, setClaimValues, } from './claim-list-helpers.js';
|
|
4
|
+
import { addClaimValues, getClaimValues, normalizeClaimScalar, removeClaimValues, setClaimValues, } from './claim-list-helpers.js';
|
|
5
|
+
export function getActors(claims) {
|
|
6
|
+
return getClaimValues(claims, ClaimConsent.actorIdentifier);
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Returns actor identifiers as array instead of CSV.
|
|
10
|
+
*/
|
|
11
|
+
export function getActorIdentifierList(claims) {
|
|
12
|
+
return getActors(claims);
|
|
13
|
+
}
|
|
14
|
+
export function setActors(claims, values) {
|
|
15
|
+
return setClaimValues(claims, ClaimConsent.actorIdentifier, values);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Stores actor identifiers from array/string input as canonical CSV claim.
|
|
19
|
+
*/
|
|
20
|
+
export function setActorIdentifierList(claims, values) {
|
|
21
|
+
return setActors(claims, values);
|
|
22
|
+
}
|
|
23
|
+
export function addActors(claims, values) {
|
|
24
|
+
return addClaimValues(claims, ClaimConsent.actorIdentifier, values);
|
|
25
|
+
}
|
|
26
|
+
export function removeActors(claims, values) {
|
|
27
|
+
return removeClaimValues(claims, ClaimConsent.actorIdentifier, values);
|
|
28
|
+
}
|
|
29
|
+
export function addActorIdentifierList(claims, values) {
|
|
30
|
+
return addActors(claims, values);
|
|
31
|
+
}
|
|
32
|
+
export function removeActorIdentifierList(claims, values) {
|
|
33
|
+
return removeActors(claims, values);
|
|
34
|
+
}
|
|
35
|
+
export function getRoles(claims) {
|
|
36
|
+
return getClaimValues(claims, ClaimConsent.actorRole);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Returns actor roles as array instead of CSV.
|
|
40
|
+
*/
|
|
41
|
+
export function getActorRoleList(claims) {
|
|
42
|
+
return getRoles(claims);
|
|
43
|
+
}
|
|
44
|
+
export function setRoles(claims, values) {
|
|
45
|
+
return setClaimValues(claims, ClaimConsent.actorRole, values);
|
|
46
|
+
}
|
|
47
|
+
export function setActorRoleList(claims, values) {
|
|
48
|
+
return setRoles(claims, values);
|
|
49
|
+
}
|
|
50
|
+
export function addRoles(claims, values) {
|
|
51
|
+
return addClaimValues(claims, ClaimConsent.actorRole, values);
|
|
52
|
+
}
|
|
53
|
+
export function removeRoles(claims, values) {
|
|
54
|
+
return removeClaimValues(claims, ClaimConsent.actorRole, values);
|
|
55
|
+
}
|
|
56
|
+
export function addActorRoleList(claims, values) {
|
|
57
|
+
return addRoles(claims, values);
|
|
58
|
+
}
|
|
59
|
+
export function removeActorRoleList(claims, values) {
|
|
60
|
+
return removeRoles(claims, values);
|
|
61
|
+
}
|
|
62
|
+
export function getPurposes(claims) {
|
|
63
|
+
return getClaimValues(claims, ClaimConsent.purpose);
|
|
64
|
+
}
|
|
65
|
+
export function getPurposeList(claims) {
|
|
66
|
+
return getPurposes(claims);
|
|
67
|
+
}
|
|
68
|
+
export function setPurposes(claims, values) {
|
|
69
|
+
return setClaimValues(claims, ClaimConsent.purpose, values);
|
|
70
|
+
}
|
|
71
|
+
export function setPurposeList(claims, values) {
|
|
72
|
+
return setPurposes(claims, values);
|
|
73
|
+
}
|
|
74
|
+
export function addPurposes(claims, values) {
|
|
75
|
+
return addClaimValues(claims, ClaimConsent.purpose, values);
|
|
76
|
+
}
|
|
77
|
+
export function removePurposes(claims, values) {
|
|
78
|
+
return removeClaimValues(claims, ClaimConsent.purpose, values);
|
|
79
|
+
}
|
|
80
|
+
export function addPurposeList(claims, values) {
|
|
81
|
+
return addPurposes(claims, values);
|
|
82
|
+
}
|
|
83
|
+
export function removePurposeList(claims, values) {
|
|
84
|
+
return removePurposes(claims, values);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Consent category as array instead of CSV.
|
|
88
|
+
*/
|
|
89
|
+
export function getCategories(claims) {
|
|
90
|
+
return getClaimValues(claims, ClaimConsent.category);
|
|
91
|
+
}
|
|
92
|
+
export function getCategoryList(claims) {
|
|
93
|
+
return getCategories(claims);
|
|
94
|
+
}
|
|
95
|
+
export function setCategories(claims, values) {
|
|
96
|
+
return setClaimValues(claims, ClaimConsent.category, values);
|
|
97
|
+
}
|
|
98
|
+
export function setCategoryList(claims, values) {
|
|
99
|
+
return setCategories(claims, values);
|
|
100
|
+
}
|
|
101
|
+
export function addCategories(claims, values) {
|
|
102
|
+
return addClaimValues(claims, ClaimConsent.category, values);
|
|
103
|
+
}
|
|
104
|
+
export function removeCategories(claims, values) {
|
|
105
|
+
return removeClaimValues(claims, ClaimConsent.category, values);
|
|
106
|
+
}
|
|
107
|
+
export function addCategoryList(claims, values) {
|
|
108
|
+
return addCategories(claims, values);
|
|
109
|
+
}
|
|
110
|
+
export function removeCategoryList(claims, values) {
|
|
111
|
+
return removeCategories(claims, values);
|
|
112
|
+
}
|
|
113
|
+
export function getSections(claims) {
|
|
114
|
+
return getClaimValues(claims, ClaimConsent.action);
|
|
115
|
+
}
|
|
116
|
+
export function getSectionList(claims) {
|
|
117
|
+
return getSections(claims);
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Alias for teams that describe Consent.action values as sector-scoped access
|
|
121
|
+
* tokens. This maps to the same canonical Consent.action claim as sections.
|
|
122
|
+
*/
|
|
123
|
+
export function getSectors(claims) {
|
|
124
|
+
return getSections(claims);
|
|
125
|
+
}
|
|
126
|
+
export function setSections(claims, values) {
|
|
127
|
+
return setClaimValues(claims, ClaimConsent.action, values);
|
|
128
|
+
}
|
|
129
|
+
export function setSectionList(claims, values) {
|
|
130
|
+
return setSections(claims, values);
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Alias for teams that describe Consent.action values as sector-scoped access
|
|
134
|
+
* tokens. This maps to the same canonical Consent.action claim as sections.
|
|
135
|
+
*/
|
|
136
|
+
export function setSectors(claims, values) {
|
|
137
|
+
return setSections(claims, values);
|
|
138
|
+
}
|
|
139
|
+
export function addSections(claims, values) {
|
|
140
|
+
return addClaimValues(claims, ClaimConsent.action, values);
|
|
141
|
+
}
|
|
142
|
+
export function addSectionList(claims, values) {
|
|
143
|
+
return addSections(claims, values);
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Alias for teams that describe Consent.action values as sector-scoped access
|
|
147
|
+
* tokens. This maps to the same canonical Consent.action claim as sections.
|
|
148
|
+
*/
|
|
149
|
+
export function addSectors(claims, values) {
|
|
150
|
+
return addSections(claims, values);
|
|
151
|
+
}
|
|
152
|
+
export function removeSections(claims, values) {
|
|
153
|
+
return removeClaimValues(claims, ClaimConsent.action, values);
|
|
154
|
+
}
|
|
155
|
+
export function removeSectionList(claims, values) {
|
|
156
|
+
return removeSections(claims, values);
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Alias for teams that describe Consent.action values as sector-scoped access
|
|
160
|
+
* tokens. This maps to the same canonical Consent.action claim as sections.
|
|
161
|
+
*/
|
|
162
|
+
export function removeSectors(claims, values) {
|
|
163
|
+
return removeSections(claims, values);
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Returns linked DocumentReference identifiers carried by the consent.
|
|
167
|
+
*/
|
|
168
|
+
export function getContainedDocumentIdentifierList(claims) {
|
|
169
|
+
return uniqueCsvLists([
|
|
170
|
+
getClaimValues(claims, ClaimConsent.containedDocuments),
|
|
171
|
+
getClaimValues(claims, ClaimConsent.attachmentContentIds),
|
|
172
|
+
]);
|
|
173
|
+
}
|
|
174
|
+
export function setContainedDocumentIdentifierList(claims, values) {
|
|
175
|
+
return setContainedDocuments(claims, values);
|
|
176
|
+
}
|
|
177
|
+
export function addContainedDocumentIdentifierList(claims, values) {
|
|
178
|
+
return setContainedDocuments(claims, uniqueCsvLists([
|
|
179
|
+
getContainedDocumentIdentifierList(claims),
|
|
180
|
+
Array.isArray(values) ? [...values] : getClaimValues({ [ClaimConsent.containedDocuments]: values }, ClaimConsent.containedDocuments),
|
|
181
|
+
]));
|
|
182
|
+
}
|
|
183
|
+
export function removeContainedDocumentIdentifierList(claims, values) {
|
|
184
|
+
const toRemove = new Set((Array.isArray(values) ? values : getClaimValues({ [ClaimConsent.containedDocuments]: values }, ClaimConsent.containedDocuments))
|
|
185
|
+
.map((item) => String(item || '').trim())
|
|
186
|
+
.filter(Boolean));
|
|
187
|
+
return setContainedDocuments(claims, getContainedDocumentIdentifierList(claims).filter((item) => !toRemove.has(item)));
|
|
188
|
+
}
|
|
189
|
+
function setContainedDocuments(claims, values) {
|
|
190
|
+
const next = setClaimValues(claims, ClaimConsent.containedDocuments, values);
|
|
191
|
+
const cleaned = {
|
|
192
|
+
...next,
|
|
193
|
+
};
|
|
194
|
+
delete cleaned[ClaimConsent.attachmentContentIds];
|
|
195
|
+
return cleaned;
|
|
196
|
+
}
|
|
197
|
+
function uniqueCsvLists(lists) {
|
|
198
|
+
return [...new Set(lists.flatMap((list) => list.map((item) => String(item || '').trim()).filter(Boolean)))];
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Reads the canonical consent date claim.
|
|
202
|
+
*/
|
|
203
|
+
export function getConsentDate(claims) {
|
|
204
|
+
return normalizeClaimScalar(claims[ClaimConsent.date]);
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Reads the canonical consent subject claim.
|
|
208
|
+
*/
|
|
209
|
+
export function getConsentSubject(claims) {
|
|
210
|
+
return normalizeClaimScalar(claims[ClaimConsent.subject]);
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Sets the canonical consent subject claim.
|
|
214
|
+
*/
|
|
215
|
+
export function setConsentSubject(claims, value) {
|
|
216
|
+
return {
|
|
217
|
+
...claims,
|
|
218
|
+
[ClaimConsent.subject]: normalizeClaimScalar(value),
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Reads the canonical consent decision claim.
|
|
223
|
+
*/
|
|
224
|
+
export function getConsentDecision(claims) {
|
|
225
|
+
return normalizeClaimScalar(claims[ClaimConsent.decision]);
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Sets the canonical consent decision claim.
|
|
229
|
+
*/
|
|
230
|
+
export function setConsentDecision(claims, value) {
|
|
231
|
+
return {
|
|
232
|
+
...claims,
|
|
233
|
+
[ClaimConsent.decision]: normalizeClaimScalar(value),
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Sets the canonical consent date claim.
|
|
238
|
+
*/
|
|
239
|
+
export function setConsentDate(claims, value) {
|
|
240
|
+
return {
|
|
241
|
+
...claims,
|
|
242
|
+
[ClaimConsent.date]: normalizeClaimScalar(value),
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
export function getConsentPeriodStart(claims) {
|
|
246
|
+
return normalizeClaimScalar(claims[ClaimConsent.periodStart]);
|
|
247
|
+
}
|
|
248
|
+
export function setConsentPeriodStart(claims, value) {
|
|
249
|
+
return {
|
|
250
|
+
...claims,
|
|
251
|
+
[ClaimConsent.periodStart]: normalizeClaimScalar(value),
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
export function getConsentPeriodEnd(claims) {
|
|
255
|
+
return normalizeClaimScalar(claims[ClaimConsent.periodEnd]);
|
|
256
|
+
}
|
|
257
|
+
export function setConsentPeriodEnd(claims, value) {
|
|
258
|
+
return {
|
|
259
|
+
...claims,
|
|
260
|
+
[ClaimConsent.periodEnd]: normalizeClaimScalar(value),
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
export function getConsentIdentifier(claims) {
|
|
264
|
+
return normalizeClaimScalar(claims[ClaimConsent.identifier]);
|
|
265
|
+
}
|
|
266
|
+
export function setConsentIdentifier(claims, value) {
|
|
267
|
+
return {
|
|
268
|
+
...claims,
|
|
269
|
+
[ClaimConsent.identifier]: normalizeClaimScalar(value),
|
|
270
|
+
};
|
|
271
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type GenericInteroperableClaims } from './claim-list-helpers.js';
|
|
2
|
+
export type CoverageInteroperableClaims = GenericInteroperableClaims;
|
|
3
|
+
export declare function getCoverageClaimList(claims: CoverageInteroperableClaims, claimKey: string): string[];
|
|
4
|
+
export declare function setCoverageClaimList(claims: CoverageInteroperableClaims, claimKey: string, values: string | readonly string[]): CoverageInteroperableClaims;
|
|
5
|
+
export declare function addCoverageClaimList(claims: CoverageInteroperableClaims, claimKey: string, values: string | readonly string[]): CoverageInteroperableClaims;
|
|
6
|
+
export declare function removeCoverageClaimList(claims: CoverageInteroperableClaims, claimKey: string, values: string | readonly string[]): CoverageInteroperableClaims;
|
|
7
|
+
export declare function getCoverageIdentifier(claims: CoverageInteroperableClaims): string;
|
|
8
|
+
export declare function setCoverageIdentifier(claims: CoverageInteroperableClaims, value: string): CoverageInteroperableClaims;
|
|
9
|
+
export declare function getCoveragePayorList(claims: CoverageInteroperableClaims): string[];
|
|
10
|
+
export declare function setCoveragePayorList(claims: CoverageInteroperableClaims, values: string | readonly string[]): CoverageInteroperableClaims;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { CoverageClaim } from '../models/interoperable-claims/coverage-claims.js';
|
|
2
|
+
import { addClaimValues, getClaimValues, normalizeClaimScalar, removeClaimValues, setClaimValues, } from './claim-list-helpers.js';
|
|
3
|
+
export function getCoverageClaimList(claims, claimKey) {
|
|
4
|
+
return getClaimValues(claims, claimKey);
|
|
5
|
+
}
|
|
6
|
+
export function setCoverageClaimList(claims, claimKey, values) {
|
|
7
|
+
return setClaimValues(claims, claimKey, values);
|
|
8
|
+
}
|
|
9
|
+
export function addCoverageClaimList(claims, claimKey, values) {
|
|
10
|
+
return addClaimValues(claims, claimKey, values);
|
|
11
|
+
}
|
|
12
|
+
export function removeCoverageClaimList(claims, claimKey, values) {
|
|
13
|
+
return removeClaimValues(claims, claimKey, values);
|
|
14
|
+
}
|
|
15
|
+
export function getCoverageIdentifier(claims) {
|
|
16
|
+
return normalizeClaimScalar(claims[CoverageClaim.Identifier]);
|
|
17
|
+
}
|
|
18
|
+
export function setCoverageIdentifier(claims, value) {
|
|
19
|
+
return { ...claims, [CoverageClaim.Identifier]: normalizeClaimScalar(value) };
|
|
20
|
+
}
|
|
21
|
+
export function getCoveragePayorList(claims) {
|
|
22
|
+
return getCoverageClaimList(claims, CoverageClaim.Payor);
|
|
23
|
+
}
|
|
24
|
+
export function setCoveragePayorList(claims, values) {
|
|
25
|
+
return setCoverageClaimList(claims, CoverageClaim.Payor, values);
|
|
26
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type GenericInteroperableClaims } from './claim-list-helpers.js';
|
|
2
|
+
export type DeviceUseStatementInteroperableClaims = GenericInteroperableClaims;
|
|
3
|
+
export declare function getDeviceUseStatementClaimList(claims: DeviceUseStatementInteroperableClaims, claimKey: string): string[];
|
|
4
|
+
export declare function setDeviceUseStatementClaimList(claims: DeviceUseStatementInteroperableClaims, claimKey: string, values: string | readonly string[]): DeviceUseStatementInteroperableClaims;
|
|
5
|
+
export declare function addDeviceUseStatementClaimList(claims: DeviceUseStatementInteroperableClaims, claimKey: string, values: string | readonly string[]): DeviceUseStatementInteroperableClaims;
|
|
6
|
+
export declare function removeDeviceUseStatementClaimList(claims: DeviceUseStatementInteroperableClaims, claimKey: string, values: string | readonly string[]): DeviceUseStatementInteroperableClaims;
|
|
7
|
+
export declare function getDeviceUseStatementIdentifier(claims: DeviceUseStatementInteroperableClaims): string;
|
|
8
|
+
export declare function setDeviceUseStatementIdentifier(claims: DeviceUseStatementInteroperableClaims, value: string): DeviceUseStatementInteroperableClaims;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DeviceUseStatementClaim } from '../models/interoperable-claims/device-use-statement-claims.js';
|
|
2
|
+
import { addClaimValues, getClaimValues, normalizeClaimScalar, removeClaimValues, setClaimValues, } from './claim-list-helpers.js';
|
|
3
|
+
export function getDeviceUseStatementClaimList(claims, claimKey) {
|
|
4
|
+
return getClaimValues(claims, claimKey);
|
|
5
|
+
}
|
|
6
|
+
export function setDeviceUseStatementClaimList(claims, claimKey, values) {
|
|
7
|
+
return setClaimValues(claims, claimKey, values);
|
|
8
|
+
}
|
|
9
|
+
export function addDeviceUseStatementClaimList(claims, claimKey, values) {
|
|
10
|
+
return addClaimValues(claims, claimKey, values);
|
|
11
|
+
}
|
|
12
|
+
export function removeDeviceUseStatementClaimList(claims, claimKey, values) {
|
|
13
|
+
return removeClaimValues(claims, claimKey, values);
|
|
14
|
+
}
|
|
15
|
+
export function getDeviceUseStatementIdentifier(claims) {
|
|
16
|
+
return normalizeClaimScalar(claims[DeviceUseStatementClaim.Identifier]);
|
|
17
|
+
}
|
|
18
|
+
export function setDeviceUseStatementIdentifier(claims, value) {
|
|
19
|
+
return { ...claims, [DeviceUseStatementClaim.Identifier]: normalizeClaimScalar(value) };
|
|
20
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type GenericInteroperableClaims } from './claim-list-helpers.js';
|
|
2
|
+
export type DeviceInteroperableClaims = GenericInteroperableClaims;
|
|
3
|
+
export declare function getDeviceClaimList(claims: DeviceInteroperableClaims, claimKey: string): string[];
|
|
4
|
+
export declare function setDeviceClaimList(claims: DeviceInteroperableClaims, claimKey: string, values: string | readonly string[]): DeviceInteroperableClaims;
|
|
5
|
+
export declare function addDeviceClaimList(claims: DeviceInteroperableClaims, claimKey: string, values: string | readonly string[]): DeviceInteroperableClaims;
|
|
6
|
+
export declare function removeDeviceClaimList(claims: DeviceInteroperableClaims, claimKey: string, values: string | readonly string[]): DeviceInteroperableClaims;
|
|
7
|
+
export declare function getDeviceIdentifier(claims: DeviceInteroperableClaims): string;
|
|
8
|
+
export declare function setDeviceIdentifier(claims: DeviceInteroperableClaims, value: string): DeviceInteroperableClaims;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DeviceClaim } from '../models/interoperable-claims/device-claims.js';
|
|
2
|
+
import { addClaimValues, getClaimValues, normalizeClaimScalar, removeClaimValues, setClaimValues, } from './claim-list-helpers.js';
|
|
3
|
+
export function getDeviceClaimList(claims, claimKey) {
|
|
4
|
+
return getClaimValues(claims, claimKey);
|
|
5
|
+
}
|
|
6
|
+
export function setDeviceClaimList(claims, claimKey, values) {
|
|
7
|
+
return setClaimValues(claims, claimKey, values);
|
|
8
|
+
}
|
|
9
|
+
export function addDeviceClaimList(claims, claimKey, values) {
|
|
10
|
+
return addClaimValues(claims, claimKey, values);
|
|
11
|
+
}
|
|
12
|
+
export function removeDeviceClaimList(claims, claimKey, values) {
|
|
13
|
+
return removeClaimValues(claims, claimKey, values);
|
|
14
|
+
}
|
|
15
|
+
export function getDeviceIdentifier(claims) {
|
|
16
|
+
return normalizeClaimScalar(claims[DeviceClaim.Identifier]);
|
|
17
|
+
}
|
|
18
|
+
export function setDeviceIdentifier(claims, value) {
|
|
19
|
+
return { ...claims, [DeviceClaim.Identifier]: normalizeClaimScalar(value) };
|
|
20
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type GenericInteroperableClaims } from './claim-list-helpers.js';
|
|
2
|
+
export type DiagnosticReportInteroperableClaims = GenericInteroperableClaims;
|
|
3
|
+
export declare function getDiagnosticReportClaimList(claims: DiagnosticReportInteroperableClaims, claimKey: string): string[];
|
|
4
|
+
export declare function setDiagnosticReportClaimList(claims: DiagnosticReportInteroperableClaims, claimKey: string, values: string | readonly string[]): DiagnosticReportInteroperableClaims;
|
|
5
|
+
export declare function addDiagnosticReportClaimList(claims: DiagnosticReportInteroperableClaims, claimKey: string, values: string | readonly string[]): DiagnosticReportInteroperableClaims;
|
|
6
|
+
export declare function removeDiagnosticReportClaimList(claims: DiagnosticReportInteroperableClaims, claimKey: string, values: string | readonly string[]): DiagnosticReportInteroperableClaims;
|
|
7
|
+
export declare function getDiagnosticReportIdentifier(claims: DiagnosticReportInteroperableClaims): string;
|
|
8
|
+
export declare function setDiagnosticReportIdentifier(claims: DiagnosticReportInteroperableClaims, value: string): DiagnosticReportInteroperableClaims;
|
|
9
|
+
export declare function getDiagnosticReportResultList(claims: DiagnosticReportInteroperableClaims): string[];
|
|
10
|
+
export declare function setDiagnosticReportResultList(claims: DiagnosticReportInteroperableClaims, values: string | readonly string[]): DiagnosticReportInteroperableClaims;
|
|
11
|
+
export declare function getDiagnosticReportContainedDocumentIdentifierList(claims: DiagnosticReportInteroperableClaims): string[];
|
|
12
|
+
export declare function setDiagnosticReportContainedDocumentIdentifierList(claims: DiagnosticReportInteroperableClaims, values: string | readonly string[]): DiagnosticReportInteroperableClaims;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DiagnosticReportClaim } from '../models/interoperable-claims/diagnostic-report-claims.js';
|
|
2
|
+
import { addClaimValues, getClaimValues, normalizeClaimScalar, removeClaimValues, setClaimValues, } from './claim-list-helpers.js';
|
|
3
|
+
export function getDiagnosticReportClaimList(claims, claimKey) {
|
|
4
|
+
return getClaimValues(claims, claimKey);
|
|
5
|
+
}
|
|
6
|
+
export function setDiagnosticReportClaimList(claims, claimKey, values) {
|
|
7
|
+
return setClaimValues(claims, claimKey, values);
|
|
8
|
+
}
|
|
9
|
+
export function addDiagnosticReportClaimList(claims, claimKey, values) {
|
|
10
|
+
return addClaimValues(claims, claimKey, values);
|
|
11
|
+
}
|
|
12
|
+
export function removeDiagnosticReportClaimList(claims, claimKey, values) {
|
|
13
|
+
return removeClaimValues(claims, claimKey, values);
|
|
14
|
+
}
|
|
15
|
+
export function getDiagnosticReportIdentifier(claims) {
|
|
16
|
+
return normalizeClaimScalar(claims[DiagnosticReportClaim.Identifier]);
|
|
17
|
+
}
|
|
18
|
+
export function setDiagnosticReportIdentifier(claims, value) {
|
|
19
|
+
return { ...claims, [DiagnosticReportClaim.Identifier]: normalizeClaimScalar(value) };
|
|
20
|
+
}
|
|
21
|
+
export function getDiagnosticReportResultList(claims) {
|
|
22
|
+
return getDiagnosticReportClaimList(claims, DiagnosticReportClaim.Result);
|
|
23
|
+
}
|
|
24
|
+
export function setDiagnosticReportResultList(claims, values) {
|
|
25
|
+
return setDiagnosticReportClaimList(claims, DiagnosticReportClaim.Result, values);
|
|
26
|
+
}
|
|
27
|
+
export function getDiagnosticReportContainedDocumentIdentifierList(claims) {
|
|
28
|
+
return getDiagnosticReportClaimList(claims, DiagnosticReportClaim.ContainedDocuments);
|
|
29
|
+
}
|
|
30
|
+
export function setDiagnosticReportContainedDocumentIdentifierList(claims, values) {
|
|
31
|
+
return setDiagnosticReportClaimList(claims, DiagnosticReportClaim.ContainedDocuments, values);
|
|
32
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type GenericInteroperableClaims } from './claim-list-helpers.js';
|
|
2
|
+
export type DocumentReferenceInteroperableClaims = GenericInteroperableClaims;
|
|
3
|
+
export declare function getDocumentReferenceClaimList(claims: DocumentReferenceInteroperableClaims, claimKey: string): string[];
|
|
4
|
+
export declare function setDocumentReferenceClaimList(claims: DocumentReferenceInteroperableClaims, claimKey: string, values: string | readonly string[]): DocumentReferenceInteroperableClaims;
|
|
5
|
+
export declare function addDocumentReferenceClaimList(claims: DocumentReferenceInteroperableClaims, claimKey: string, values: string | readonly string[]): DocumentReferenceInteroperableClaims;
|
|
6
|
+
export declare function removeDocumentReferenceClaimList(claims: DocumentReferenceInteroperableClaims, claimKey: string, values: string | readonly string[]): DocumentReferenceInteroperableClaims;
|
|
7
|
+
export declare function getDocumentReferenceIdentifier(claims: DocumentReferenceInteroperableClaims): string;
|
|
8
|
+
export declare function setDocumentReferenceIdentifier(claims: DocumentReferenceInteroperableClaims, value: string): DocumentReferenceInteroperableClaims;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DocumentReferenceClaim } from '../models/interoperable-claims/document-reference-claims.js';
|
|
2
|
+
import { addClaimValues, getClaimValues, normalizeClaimScalar, removeClaimValues, setClaimValues, } from './claim-list-helpers.js';
|
|
3
|
+
export function getDocumentReferenceClaimList(claims, claimKey) {
|
|
4
|
+
return getClaimValues(claims, claimKey);
|
|
5
|
+
}
|
|
6
|
+
export function setDocumentReferenceClaimList(claims, claimKey, values) {
|
|
7
|
+
return setClaimValues(claims, claimKey, values);
|
|
8
|
+
}
|
|
9
|
+
export function addDocumentReferenceClaimList(claims, claimKey, values) {
|
|
10
|
+
return addClaimValues(claims, claimKey, values);
|
|
11
|
+
}
|
|
12
|
+
export function removeDocumentReferenceClaimList(claims, claimKey, values) {
|
|
13
|
+
return removeClaimValues(claims, claimKey, values);
|
|
14
|
+
}
|
|
15
|
+
export function getDocumentReferenceIdentifier(claims) {
|
|
16
|
+
return normalizeClaimScalar(claims[DocumentReferenceClaim.Identifier]);
|
|
17
|
+
}
|
|
18
|
+
export function setDocumentReferenceIdentifier(claims, value) {
|
|
19
|
+
return { ...claims, [DocumentReferenceClaim.Identifier]: normalizeClaimScalar(value) };
|
|
20
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type GenericInteroperableClaims } from './claim-list-helpers.js';
|
|
2
|
+
export type EncounterInteroperableClaims = GenericInteroperableClaims;
|
|
3
|
+
export declare function getEncounterClaimList(claims: EncounterInteroperableClaims, claimKey: string): string[];
|
|
4
|
+
export declare function setEncounterClaimList(claims: EncounterInteroperableClaims, claimKey: string, values: string | readonly string[]): EncounterInteroperableClaims;
|
|
5
|
+
export declare function addEncounterClaimList(claims: EncounterInteroperableClaims, claimKey: string, values: string | readonly string[]): EncounterInteroperableClaims;
|
|
6
|
+
export declare function removeEncounterClaimList(claims: EncounterInteroperableClaims, claimKey: string, values: string | readonly string[]): EncounterInteroperableClaims;
|
|
7
|
+
export declare function getEncounterIdentifier(claims: EncounterInteroperableClaims): string;
|
|
8
|
+
export declare function setEncounterIdentifier(claims: EncounterInteroperableClaims, value: string): EncounterInteroperableClaims;
|
|
9
|
+
export declare function getEncounterParticipantList(claims: EncounterInteroperableClaims): string[];
|
|
10
|
+
export declare function setEncounterParticipantList(claims: EncounterInteroperableClaims, values: string | readonly string[]): EncounterInteroperableClaims;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { EncounterClaim } from '../models/interoperable-claims/encounter-claims.js';
|
|
2
|
+
import { addClaimValues, getClaimValues, normalizeClaimScalar, removeClaimValues, setClaimValues, } from './claim-list-helpers.js';
|
|
3
|
+
export function getEncounterClaimList(claims, claimKey) {
|
|
4
|
+
return getClaimValues(claims, claimKey);
|
|
5
|
+
}
|
|
6
|
+
export function setEncounterClaimList(claims, claimKey, values) {
|
|
7
|
+
return setClaimValues(claims, claimKey, values);
|
|
8
|
+
}
|
|
9
|
+
export function addEncounterClaimList(claims, claimKey, values) {
|
|
10
|
+
return addClaimValues(claims, claimKey, values);
|
|
11
|
+
}
|
|
12
|
+
export function removeEncounterClaimList(claims, claimKey, values) {
|
|
13
|
+
return removeClaimValues(claims, claimKey, values);
|
|
14
|
+
}
|
|
15
|
+
export function getEncounterIdentifier(claims) {
|
|
16
|
+
return normalizeClaimScalar(claims[EncounterClaim.Identifier]);
|
|
17
|
+
}
|
|
18
|
+
export function setEncounterIdentifier(claims, value) {
|
|
19
|
+
return { ...claims, [EncounterClaim.Identifier]: normalizeClaimScalar(value) };
|
|
20
|
+
}
|
|
21
|
+
export function getEncounterParticipantList(claims) {
|
|
22
|
+
return getEncounterClaimList(claims, EncounterClaim.Participant);
|
|
23
|
+
}
|
|
24
|
+
export function setEncounterParticipantList(claims, values) {
|
|
25
|
+
return setEncounterClaimList(claims, EncounterClaim.Participant, values);
|
|
26
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type GenericInteroperableClaims } from './claim-list-helpers.js';
|
|
2
|
+
export type FlagInteroperableClaims = GenericInteroperableClaims;
|
|
3
|
+
export declare function getFlagClaimList(claims: FlagInteroperableClaims, claimKey: string): string[];
|
|
4
|
+
export declare function setFlagClaimList(claims: FlagInteroperableClaims, claimKey: string, values: string | readonly string[]): FlagInteroperableClaims;
|
|
5
|
+
export declare function addFlagClaimList(claims: FlagInteroperableClaims, claimKey: string, values: string | readonly string[]): FlagInteroperableClaims;
|
|
6
|
+
export declare function removeFlagClaimList(claims: FlagInteroperableClaims, claimKey: string, values: string | readonly string[]): FlagInteroperableClaims;
|
|
7
|
+
export declare function getFlagIdentifier(claims: FlagInteroperableClaims): string;
|
|
8
|
+
export declare function setFlagIdentifier(claims: FlagInteroperableClaims, value: string): FlagInteroperableClaims;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FlagClaim } from '../models/interoperable-claims/flag-claims.js';
|
|
2
|
+
import { addClaimValues, getClaimValues, normalizeClaimScalar, removeClaimValues, setClaimValues, } from './claim-list-helpers.js';
|
|
3
|
+
export function getFlagClaimList(claims, claimKey) {
|
|
4
|
+
return getClaimValues(claims, claimKey);
|
|
5
|
+
}
|
|
6
|
+
export function setFlagClaimList(claims, claimKey, values) {
|
|
7
|
+
return setClaimValues(claims, claimKey, values);
|
|
8
|
+
}
|
|
9
|
+
export function addFlagClaimList(claims, claimKey, values) {
|
|
10
|
+
return addClaimValues(claims, claimKey, values);
|
|
11
|
+
}
|
|
12
|
+
export function removeFlagClaimList(claims, claimKey, values) {
|
|
13
|
+
return removeClaimValues(claims, claimKey, values);
|
|
14
|
+
}
|
|
15
|
+
export function getFlagIdentifier(claims) {
|
|
16
|
+
return normalizeClaimScalar(claims[FlagClaim.Identifier]);
|
|
17
|
+
}
|
|
18
|
+
export function setFlagIdentifier(claims, value) {
|
|
19
|
+
return { ...claims, [FlagClaim.Identifier]: normalizeClaimScalar(value) };
|
|
20
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type GenericInteroperableClaims } from './claim-list-helpers.js';
|
|
2
|
+
export type ImmunizationInteroperableClaims = GenericInteroperableClaims;
|
|
3
|
+
export declare function getImmunizationClaimList(claims: ImmunizationInteroperableClaims, claimKey: string): string[];
|
|
4
|
+
export declare function setImmunizationClaimList(claims: ImmunizationInteroperableClaims, claimKey: string, values: string | readonly string[]): ImmunizationInteroperableClaims;
|
|
5
|
+
export declare function addImmunizationClaimList(claims: ImmunizationInteroperableClaims, claimKey: string, values: string | readonly string[]): ImmunizationInteroperableClaims;
|
|
6
|
+
export declare function removeImmunizationClaimList(claims: ImmunizationInteroperableClaims, claimKey: string, values: string | readonly string[]): ImmunizationInteroperableClaims;
|
|
7
|
+
export declare function getImmunizationIdentifier(claims: ImmunizationInteroperableClaims): string;
|
|
8
|
+
export declare function setImmunizationIdentifier(claims: ImmunizationInteroperableClaims, value: string): ImmunizationInteroperableClaims;
|