vet-data-utils-ts 0.4.8 → 0.4.9
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 +5 -0
- package/dist/communication.d.ts +37 -0
- package/dist/communication.js +30 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -8,6 +8,11 @@ Current surfaces cover the canonical animal-card DID, veterinary summary
|
|
|
8
8
|
sections, animal-only emergency data, pseudonymous DigitalTwin search input and
|
|
9
9
|
veterinary assistant intents.
|
|
10
10
|
|
|
11
|
+
Reusable Communication screens receive immutable workflow presets from
|
|
12
|
+
`vet-data-utils-ts/communication`. The research-agreement screen is fixed to
|
|
13
|
+
FHIR `notification` plus HL7 v3 ActReason `HRESCH` and does not expose a topic
|
|
14
|
+
picker. See [`docs/communication-inbox-filters.md`](docs/communication-inbox-filters.md).
|
|
15
|
+
|
|
11
16
|
The deferred spreadsheet shape for member and employee role assignments is
|
|
12
17
|
documented in [`docs/member-import-contract.md`](docs/member-import-contract.md).
|
|
13
18
|
It is not an implemented importer API.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const VeterinaryCommunicationTopicSystems: Readonly<{
|
|
2
|
+
ActReason: "http://terminology.hl7.org/CodeSystem/v3-ActReason";
|
|
3
|
+
}>;
|
|
4
|
+
export type VeterinaryCommunicationTopic = Readonly<{
|
|
5
|
+
system: typeof VeterinaryCommunicationTopicSystems.ActReason;
|
|
6
|
+
code: string;
|
|
7
|
+
value: `${typeof VeterinaryCommunicationTopicSystems.ActReason}|${string}`;
|
|
8
|
+
}>;
|
|
9
|
+
/**
|
|
10
|
+
* Governed topics included by the VetChain research-agreement inbox.
|
|
11
|
+
* HRESCH is the HL7 v3 ActReason healthcare-research code:
|
|
12
|
+
* http://terminology.hl7.org/CodeSystem/v3-ActReason
|
|
13
|
+
*
|
|
14
|
+
* This topic filter is distinct from the four FHIR Communication categories:
|
|
15
|
+
* https://www.hl7.org/fhir/valueset-communication-category.html
|
|
16
|
+
*/
|
|
17
|
+
export declare const VeterinaryResearchCommunicationTopics: readonly VeterinaryCommunicationTopic[];
|
|
18
|
+
export type VeterinaryCommunicationPresetFilter = Readonly<{
|
|
19
|
+
categories: readonly string[];
|
|
20
|
+
topics: readonly VeterinaryCommunicationTopic[];
|
|
21
|
+
allowTopicSelection: false;
|
|
22
|
+
}>;
|
|
23
|
+
/**
|
|
24
|
+
* Screen-owned presets for a reusable Communication component. Consumers pass
|
|
25
|
+
* this filter to the component; users cannot broaden the governed topic set.
|
|
26
|
+
*/
|
|
27
|
+
export declare const VeterinaryCommunicationPresetFilters: Readonly<{
|
|
28
|
+
ResearchAgreements: Readonly<{
|
|
29
|
+
categories: readonly string[];
|
|
30
|
+
topics: readonly Readonly<{
|
|
31
|
+
system: typeof VeterinaryCommunicationTopicSystems.ActReason;
|
|
32
|
+
code: string;
|
|
33
|
+
value: `${typeof VeterinaryCommunicationTopicSystems.ActReason}|${string}`;
|
|
34
|
+
}>[];
|
|
35
|
+
allowTopicSelection: false;
|
|
36
|
+
}>;
|
|
37
|
+
}>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CommunicationCategoryCodes } from 'gdc-common-utils-ts/constants/communication';
|
|
2
|
+
export const VeterinaryCommunicationTopicSystems = Object.freeze({
|
|
3
|
+
ActReason: 'http://terminology.hl7.org/CodeSystem/v3-ActReason',
|
|
4
|
+
});
|
|
5
|
+
/**
|
|
6
|
+
* Governed topics included by the VetChain research-agreement inbox.
|
|
7
|
+
* HRESCH is the HL7 v3 ActReason healthcare-research code:
|
|
8
|
+
* http://terminology.hl7.org/CodeSystem/v3-ActReason
|
|
9
|
+
*
|
|
10
|
+
* This topic filter is distinct from the four FHIR Communication categories:
|
|
11
|
+
* https://www.hl7.org/fhir/valueset-communication-category.html
|
|
12
|
+
*/
|
|
13
|
+
export const VeterinaryResearchCommunicationTopics = Object.freeze([
|
|
14
|
+
Object.freeze({
|
|
15
|
+
system: VeterinaryCommunicationTopicSystems.ActReason,
|
|
16
|
+
code: 'HRESCH',
|
|
17
|
+
value: `${VeterinaryCommunicationTopicSystems.ActReason}|HRESCH`,
|
|
18
|
+
}),
|
|
19
|
+
]);
|
|
20
|
+
/**
|
|
21
|
+
* Screen-owned presets for a reusable Communication component. Consumers pass
|
|
22
|
+
* this filter to the component; users cannot broaden the governed topic set.
|
|
23
|
+
*/
|
|
24
|
+
export const VeterinaryCommunicationPresetFilters = Object.freeze({
|
|
25
|
+
ResearchAgreements: Object.freeze({
|
|
26
|
+
categories: Object.freeze([CommunicationCategoryCodes.Notification.attributeValue]),
|
|
27
|
+
topics: VeterinaryResearchCommunicationTopics,
|
|
28
|
+
allowTopicSelection: false,
|
|
29
|
+
}),
|
|
30
|
+
});
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vet-data-utils-ts",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.9",
|
|
4
4
|
"description": "Browser-safe governed VetChain data contracts",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Connecting Solution & Applications Ltd",
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
"types": "./dist/animal-card.d.ts",
|
|
17
17
|
"default": "./dist/animal-card.js"
|
|
18
18
|
},
|
|
19
|
+
"./communication": {
|
|
20
|
+
"types": "./dist/communication.d.ts",
|
|
21
|
+
"default": "./dist/communication.js"
|
|
22
|
+
},
|
|
19
23
|
"./digital-twin": {
|
|
20
24
|
"types": "./dist/digital-twin.d.ts",
|
|
21
25
|
"default": "./dist/digital-twin.js"
|
|
@@ -68,7 +72,7 @@
|
|
|
68
72
|
"typescript": "^5.5.4"
|
|
69
73
|
},
|
|
70
74
|
"dependencies": {
|
|
71
|
-
"gdc-common-utils-ts": "2.
|
|
75
|
+
"gdc-common-utils-ts": "2.8.8"
|
|
72
76
|
},
|
|
73
77
|
"engines": {
|
|
74
78
|
"node": ">=20"
|