evo360-types 1.3.4 → 1.3.6

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.
Files changed (139) hide show
  1. package/package.json +1 -1
  2. package/dist/apps/evo-activity/zod-schemas.d.ts +0 -93
  3. package/dist/apps/evo-activity/zod-schemas.js +0 -40
  4. package/dist/apps/evo-activity/zod-schemas.ts +0 -43
  5. package/dist/apps/evo-cake/zod-schemas.d.ts +0 -783
  6. package/dist/apps/evo-cake/zod-schemas.js +0 -110
  7. package/dist/apps/evo-cake/zod-schemas.ts +0 -121
  8. package/dist/apps/evo-calendar/zod-schemas.d.ts +0 -71
  9. package/dist/apps/evo-calendar/zod-schemas.js +0 -32
  10. package/dist/apps/evo-calendar/zod-schemas.ts +0 -33
  11. package/dist/apps/evo-core/zod-schemas.d.ts +0 -14
  12. package/dist/apps/evo-core/zod-schemas.js +0 -9
  13. package/dist/apps/evo-core/zod-schemas.ts +0 -7
  14. package/dist/apps/evo-crm/dic/zod-schemas.d.ts +0 -233
  15. package/dist/apps/evo-crm/dic/zod-schemas.js +0 -45
  16. package/dist/apps/evo-crm/dic/zod-schemas.ts +0 -46
  17. package/dist/apps/evo-crm/lead/zod-schemas.d.ts +0 -347
  18. package/dist/apps/evo-crm/lead/zod-schemas.js +0 -30
  19. package/dist/apps/evo-crm/lead/zod-schemas.ts +0 -35
  20. package/dist/apps/evo-med/dic/zod-schemas.d.ts +0 -501
  21. package/dist/apps/evo-med/dic/zod-schemas.js +0 -116
  22. package/dist/apps/evo-med/dic/zod-schemas.ts +0 -127
  23. package/dist/apps/evo-med/insurance/zod-schemas.d.ts +0 -421
  24. package/dist/apps/evo-med/insurance/zod-schemas.js +0 -33
  25. package/dist/apps/evo-med/insurance/zod-schemas.ts +0 -39
  26. package/dist/apps/evo-med/people/zod-schemas.d.ts +0 -955
  27. package/dist/apps/evo-med/people/zod-schemas.js +0 -100
  28. package/dist/apps/evo-med/people/zod-schemas.ts +0 -117
  29. package/dist/apps/evo-med/procedure/zod-schemas.d.ts +0 -141
  30. package/dist/apps/evo-med/procedure/zod-schemas.js +0 -26
  31. package/dist/apps/evo-med/procedure/zod-schemas.ts +0 -26
  32. package/dist/apps/evo-meeting/zod-schemas.d.ts +0 -429
  33. package/dist/apps/evo-meeting/zod-schemas.js +0 -56
  34. package/dist/apps/evo-meeting/zod-schemas.ts +0 -62
  35. package/dist/apps/evo-people/zod-schemas.d.ts +0 -476
  36. package/dist/apps/evo-people/zod-schemas.js +0 -120
  37. package/dist/apps/evo-people/zod-schemas.ts +0 -124
  38. package/dist/apps/evo-survey/zod-schemas.d.ts +0 -1579
  39. package/dist/apps/evo-survey/zod-schemas.js +0 -191
  40. package/dist/apps/evo-survey/zod-schemas.ts +0 -209
  41. package/dist/apps/evo-task/zod-schemas.d.ts +0 -4
  42. package/dist/apps/evo-task/zod-schemas.js +0 -17
  43. package/dist/apps/evo-task/zod-schemas.ts +0 -17
  44. package/dist/apps/evo-tenant/zod-schemas.d.ts +0 -51
  45. package/dist/apps/evo-tenant/zod-schemas.js +0 -22
  46. package/dist/apps/evo-tenant/zod-schemas.ts +0 -23
  47. package/dist/apps/shared/zod-schemas.d.ts +0 -84
  48. package/dist/apps/shared/zod-schemas.js +0 -49
  49. package/dist/apps/shared/zod-schemas.ts +0 -51
  50. package/dist/index.d.ts +0 -35
  51. package/dist/index.js +0 -50
  52. package/dist/index.ts +0 -35
  53. package/dist/types/evo-activity/fb_collections.d.ts +0 -4
  54. package/dist/types/evo-activity/fb_collections.js +0 -9
  55. package/dist/types/evo-activity/fb_collections.ts +0 -7
  56. package/dist/types/evo-activity/index.d.ts +0 -28
  57. package/dist/types/evo-activity/index.js +0 -27
  58. package/dist/types/evo-activity/index.ts +0 -45
  59. package/dist/types/evo-cake/fb_collections.d.ts +0 -4
  60. package/dist/types/evo-cake/fb_collections.js +0 -9
  61. package/dist/types/evo-cake/fb_collections.ts +0 -7
  62. package/dist/types/evo-cake/index.d.ts +0 -111
  63. package/dist/types/evo-cake/index.js +0 -79
  64. package/dist/types/evo-cake/index.ts +0 -186
  65. package/dist/types/evo-calendar/fb_collections.d.ts +0 -2
  66. package/dist/types/evo-calendar/fb_collections.js +0 -7
  67. package/dist/types/evo-calendar/fb_collections.ts +0 -5
  68. package/dist/types/evo-calendar/index.d.ts +0 -56
  69. package/dist/types/evo-calendar/index.js +0 -37
  70. package/dist/types/evo-calendar/index.ts +0 -69
  71. package/dist/types/evo-core/index.d.ts +0 -41
  72. package/dist/types/evo-core/index.js +0 -2
  73. package/dist/types/evo-core/index.ts +0 -48
  74. package/dist/types/evo-crm/dic/index.d.ts +0 -50
  75. package/dist/types/evo-crm/dic/index.js +0 -31
  76. package/dist/types/evo-crm/dic/index.ts +0 -84
  77. package/dist/types/evo-crm/fb_collections.d.ts +0 -7
  78. package/dist/types/evo-crm/fb_collections.js +0 -13
  79. package/dist/types/evo-crm/fb_collections.ts +0 -13
  80. package/dist/types/evo-crm/lead/index.d.ts +0 -30
  81. package/dist/types/evo-crm/lead/index.js +0 -9
  82. package/dist/types/evo-crm/lead/index.ts +0 -40
  83. package/dist/types/evo-med/dic/index.d.ts +0 -99
  84. package/dist/types/evo-med/dic/index.js +0 -52
  85. package/dist/types/evo-med/dic/index.ts +0 -131
  86. package/dist/types/evo-med/fb_collections.d.ts +0 -20
  87. package/dist/types/evo-med/fb_collections.js +0 -28
  88. package/dist/types/evo-med/fb_collections.ts +0 -31
  89. package/dist/types/evo-med/insurance/index.d.ts +0 -34
  90. package/dist/types/evo-med/insurance/index.js +0 -24
  91. package/dist/types/evo-med/insurance/index.ts +0 -45
  92. package/dist/types/evo-med/people/index.d.ts +0 -125
  93. package/dist/types/evo-med/people/index.js +0 -66
  94. package/dist/types/evo-med/people/index.ts +0 -188
  95. package/dist/types/evo-med/procedure/index.d.ts +0 -36
  96. package/dist/types/evo-med/procedure/index.js +0 -30
  97. package/dist/types/evo-med/procedure/index.ts +0 -48
  98. package/dist/types/evo-meeting/fb_collections.d.ts +0 -2
  99. package/dist/types/evo-meeting/fb_collections.js +0 -7
  100. package/dist/types/evo-meeting/fb_collections.ts +0 -5
  101. package/dist/types/evo-meeting/index.d.ts +0 -58
  102. package/dist/types/evo-meeting/index.js +0 -32
  103. package/dist/types/evo-meeting/index.ts +0 -80
  104. package/dist/types/evo-messages/fb_collections.d.ts +0 -1
  105. package/dist/types/evo-messages/fb_collections.js +0 -2
  106. package/dist/types/evo-messages/fb_collections.ts +0 -0
  107. package/dist/types/evo-people/fb_collections.d.ts +0 -5
  108. package/dist/types/evo-people/fb_collections.js +0 -10
  109. package/dist/types/evo-people/fb_collections.ts +0 -8
  110. package/dist/types/evo-people/index.d.ts +0 -117
  111. package/dist/types/evo-people/index.js +0 -59
  112. package/dist/types/evo-people/index.ts +0 -167
  113. package/dist/types/evo-survey/fb_collections.d.ts +0 -7
  114. package/dist/types/evo-survey/fb_collections.js +0 -13
  115. package/dist/types/evo-survey/fb_collections.ts +0 -12
  116. package/dist/types/evo-survey/index.d.ts +0 -172
  117. package/dist/types/evo-survey/index.js +0 -70
  118. package/dist/types/evo-survey/index.ts +0 -224
  119. package/dist/types/evo-task/fb_collections.d.ts +0 -2
  120. package/dist/types/evo-task/fb_collections.js +0 -7
  121. package/dist/types/evo-task/fb_collections.ts +0 -5
  122. package/dist/types/evo-task/index.d.ts +0 -35
  123. package/dist/types/evo-task/index.js +0 -38
  124. package/dist/types/evo-task/index.ts +0 -51
  125. package/dist/types/evo-tenant/fb_collections.d.ts +0 -1
  126. package/dist/types/evo-tenant/fb_collections.js +0 -5
  127. package/dist/types/evo-tenant/fb_collections.ts +0 -2
  128. package/dist/types/evo-tenant/index.d.ts +0 -28
  129. package/dist/types/evo-tenant/index.js +0 -35
  130. package/dist/types/evo-tenant/index.ts +0 -35
  131. package/dist/types/shared/fb_collections.d.ts +0 -5
  132. package/dist/types/shared/fb_collections.js +0 -13
  133. package/dist/types/shared/fb_collections.ts +0 -14
  134. package/dist/types/shared/index.d.ts +0 -52
  135. package/dist/types/shared/index.js +0 -30
  136. package/dist/types/shared/index.ts +0 -74
  137. package/dist/types/shared/maska.d.ts +0 -23
  138. package/dist/types/shared/maska.js +0 -2
  139. package/dist/types/shared/maska.ts +0 -26
@@ -1,125 +0,0 @@
1
- export * from "../fb_collections";
2
- import { IProfile } from "../../evo-people";
3
- import type { FirestoreDocumentReference, IAddress, IContact, ITag } from "../../shared";
4
- import { IMedication } from "../dic";
5
- export type MedPeopleAction = "CREATE_PROFESSIONAL" | "DELETE_PROFESSIONAL" | "UPDATE_PROFESSIONAL" | "UPDATE_PROFESSIONAL_PHOTO" | "UPDATE_PROFESSIONAL_PROFILE" | "UPDATE_PROFESSIONAL_PASSWORD" | "UPDATE_PROFESSIONAL_REPORT_TO" | "UPDATE_PROFESSIONAL_DEPARTMENT" | "UPDATE_PROFESSIONAL_OFFICE" | "UPDATE_PROFESSIONAL_COMPANY" | "UPDATE_PROFESSIONAL_JOB_TITLE" | "UPDATE_PROFESSIONAL_WORK_EMAIL" | "UPDATE_PROFESSIONAL_STATUS";
6
- export declare enum IMedPeopleAction {
7
- Create_professional = "CREATE_PROFESSIONAL",
8
- Delete_professional = "DELETE_PROFESSIONAL",
9
- Update_professional = "UPDATE_PROFESSIONAL",
10
- Update_professional_photo = "UPDATE_PROFESSIONAL_PHOTO",
11
- Update_professional_profile = "UPDATE_PROFESSIONAL_PROFILE",
12
- Update_professional_password = "UPDATE_PROFESSIONAL_PASSWORD",
13
- Update_professional_report_to = "UPDATE_PROFESSIONAL_REPORT_TO",
14
- Update_professional_department = "UPDATE_PROFESSIONAL_DEPARTMENT",
15
- Update_professional_office = "UPDATE_PROFESSIONAL_OFFICE",
16
- Update_professional_company = "UPDATE_PROFESSIONAL_COMPANY",
17
- Update_professional_job_title = "UPDATE_PROFESSIONAL_JOB_TITLE",
18
- Update_professional_work_email = "UPDATE_PROFESSIONAL_WORK_EMAIL",
19
- Update_professional_status = "UPDATE_PROFESSIONAL_STATUS"
20
- }
21
- export type ProfessionalStatus = "active" | "inactive" | "draft";
22
- export declare enum IProfessionalStatus {
23
- Active = "active",
24
- Inactive = "inactive",
25
- Draft = "draft"
26
- }
27
- export interface IProfessionalCouncil {
28
- doc: string;
29
- name: string;
30
- acronym: string;
31
- uf?: string | null;
32
- ref?: FirestoreDocumentReference;
33
- }
34
- export interface IProfessionalSpecialty {
35
- code: string;
36
- name: string;
37
- ref?: FirestoreDocumentReference;
38
- }
39
- export interface IProfessionalOffice {
40
- code: string;
41
- name: string;
42
- ref?: FirestoreDocumentReference;
43
- }
44
- export interface IProfessional extends IProfile {
45
- status?: ProfessionalStatus;
46
- professionalId?: string | null;
47
- title?: string | null;
48
- type?: string | null;
49
- job_title?: string | null;
50
- councils?: IProfessionalCouncil[] | null;
51
- specialties?: IProfessionalSpecialty[] | null;
52
- offices?: IProfessionalOffice[] | null;
53
- date_joining?: Date | null;
54
- company_code?: string | null;
55
- company_name?: string | null;
56
- companyRef?: FirestoreDocumentReference;
57
- department_code?: string | null;
58
- department_name?: string | null;
59
- departmentRef?: FirestoreDocumentReference;
60
- address?: IAddress | null;
61
- contact?: IContact | null;
62
- tags?: ITag[] | null;
63
- userRef?: FirestoreDocumentReference;
64
- [key: string]: unknown;
65
- }
66
- export type PatientStatus = "active" | "inactive" | "draft" | "anonymized";
67
- export declare enum IPatientStatus {
68
- Active = "active",
69
- Inactive = "inactive",
70
- Draft = "draft",
71
- Anonymized = "anonymized"
72
- }
73
- export type BloodType = "A+" | "A-" | "B+" | "B-" | "AB+" | "AB-" | "O+" | "O-" | "Unknown";
74
- export declare enum IBloodType {
75
- APositive = "A+",
76
- ANegative = "A-",
77
- BPositive = "B+",
78
- BNegative = "B-",
79
- ABPositive = "AB+",
80
- ABNegative = "AB-",
81
- OPositive = "O+",
82
- ONegative = "O-",
83
- Unknown = "Unknown"
84
- }
85
- export type Severity = "Mild" | "Moderate" | "Severe" | "Unknown";
86
- export declare enum ISeverity {
87
- Mild = "Mild",
88
- Moderate = "Moderate",
89
- Severe = "Severe",
90
- Unknown = "Unknown"
91
- }
92
- export interface IPatientChronicCondition {
93
- code: string;
94
- name: string;
95
- ref?: FirestoreDocumentReference;
96
- diagnosis_date?: Date | null;
97
- severity?: Severity | null;
98
- controlled?: boolean | null;
99
- medications?: IMedication[] | null;
100
- notes?: string | null;
101
- }
102
- export interface IPatientAllergy {
103
- code: string;
104
- name: string;
105
- kind?: "Food" | "Drug" | "Insect" | "Other" | null;
106
- ref?: FirestoreDocumentReference;
107
- severity?: Severity | null;
108
- }
109
- export interface IPatient extends IProfile {
110
- social_id?: string | null;
111
- status?: PatientStatus;
112
- source_code?: string | null;
113
- source_name?: string | null;
114
- sourceRef?: FirestoreDocumentReference;
115
- address?: IAddress | null;
116
- contact?: IContact | null;
117
- height_cm?: number | null;
118
- weight_kg?: number | null;
119
- blood_type?: BloodType | null;
120
- allergies?: IPatientAllergy[] | null;
121
- chronic_conditions?: IPatientChronicCondition[] | null;
122
- tags?: ITag[] | null;
123
- userRef?: FirestoreDocumentReference;
124
- [key: string]: unknown;
125
- }
@@ -1,66 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.ISeverity = exports.IBloodType = exports.IPatientStatus = exports.IProfessionalStatus = exports.IMedPeopleAction = void 0;
18
- __exportStar(require("../fb_collections"), exports);
19
- var IMedPeopleAction;
20
- (function (IMedPeopleAction) {
21
- IMedPeopleAction["Create_professional"] = "CREATE_PROFESSIONAL";
22
- IMedPeopleAction["Delete_professional"] = "DELETE_PROFESSIONAL";
23
- IMedPeopleAction["Update_professional"] = "UPDATE_PROFESSIONAL";
24
- IMedPeopleAction["Update_professional_photo"] = "UPDATE_PROFESSIONAL_PHOTO";
25
- IMedPeopleAction["Update_professional_profile"] = "UPDATE_PROFESSIONAL_PROFILE";
26
- IMedPeopleAction["Update_professional_password"] = "UPDATE_PROFESSIONAL_PASSWORD";
27
- IMedPeopleAction["Update_professional_report_to"] = "UPDATE_PROFESSIONAL_REPORT_TO";
28
- IMedPeopleAction["Update_professional_department"] = "UPDATE_PROFESSIONAL_DEPARTMENT";
29
- IMedPeopleAction["Update_professional_office"] = "UPDATE_PROFESSIONAL_OFFICE";
30
- IMedPeopleAction["Update_professional_company"] = "UPDATE_PROFESSIONAL_COMPANY";
31
- IMedPeopleAction["Update_professional_job_title"] = "UPDATE_PROFESSIONAL_JOB_TITLE";
32
- IMedPeopleAction["Update_professional_work_email"] = "UPDATE_PROFESSIONAL_WORK_EMAIL";
33
- IMedPeopleAction["Update_professional_status"] = "UPDATE_PROFESSIONAL_STATUS";
34
- })(IMedPeopleAction || (exports.IMedPeopleAction = IMedPeopleAction = {}));
35
- var IProfessionalStatus;
36
- (function (IProfessionalStatus) {
37
- IProfessionalStatus["Active"] = "active";
38
- IProfessionalStatus["Inactive"] = "inactive";
39
- IProfessionalStatus["Draft"] = "draft";
40
- })(IProfessionalStatus || (exports.IProfessionalStatus = IProfessionalStatus = {}));
41
- var IPatientStatus;
42
- (function (IPatientStatus) {
43
- IPatientStatus["Active"] = "active";
44
- IPatientStatus["Inactive"] = "inactive";
45
- IPatientStatus["Draft"] = "draft";
46
- IPatientStatus["Anonymized"] = "anonymized";
47
- })(IPatientStatus || (exports.IPatientStatus = IPatientStatus = {}));
48
- var IBloodType;
49
- (function (IBloodType) {
50
- IBloodType["APositive"] = "A+";
51
- IBloodType["ANegative"] = "A-";
52
- IBloodType["BPositive"] = "B+";
53
- IBloodType["BNegative"] = "B-";
54
- IBloodType["ABPositive"] = "AB+";
55
- IBloodType["ABNegative"] = "AB-";
56
- IBloodType["OPositive"] = "O+";
57
- IBloodType["ONegative"] = "O-";
58
- IBloodType["Unknown"] = "Unknown";
59
- })(IBloodType || (exports.IBloodType = IBloodType = {}));
60
- var ISeverity;
61
- (function (ISeverity) {
62
- ISeverity["Mild"] = "Mild";
63
- ISeverity["Moderate"] = "Moderate";
64
- ISeverity["Severe"] = "Severe";
65
- ISeverity["Unknown"] = "Unknown";
66
- })(ISeverity || (exports.ISeverity = ISeverity = {}));
@@ -1,188 +0,0 @@
1
- export * from "../fb_collections";
2
- import { IProfile } from "../../evo-people";
3
- import type {
4
- FirestoreDocumentReference,
5
- IAddress,
6
- IContact,
7
- ITag,
8
- } from "../../shared";
9
- import { IMedication } from "../dic";
10
-
11
- // ----- MedPeopleTypes
12
-
13
- // Enum for EvoMed People Action - used in Professionals and Patients tracking
14
- export type MedPeopleAction =
15
- | "CREATE_PROFESSIONAL"
16
- | "DELETE_PROFESSIONAL"
17
- | "UPDATE_PROFESSIONAL"
18
- | "UPDATE_PROFESSIONAL_PHOTO"
19
- | "UPDATE_PROFESSIONAL_PROFILE"
20
- | "UPDATE_PROFESSIONAL_PASSWORD"
21
- | "UPDATE_PROFESSIONAL_REPORT_TO"
22
- | "UPDATE_PROFESSIONAL_DEPARTMENT"
23
- | "UPDATE_PROFESSIONAL_OFFICE"
24
- | "UPDATE_PROFESSIONAL_COMPANY"
25
- | "UPDATE_PROFESSIONAL_JOB_TITLE"
26
- | "UPDATE_PROFESSIONAL_WORK_EMAIL"
27
- | "UPDATE_PROFESSIONAL_STATUS";
28
-
29
- export enum IMedPeopleAction {
30
- Create_professional = "CREATE_PROFESSIONAL",
31
- Delete_professional = "DELETE_PROFESSIONAL",
32
- Update_professional = "UPDATE_PROFESSIONAL",
33
- Update_professional_photo = "UPDATE_PROFESSIONAL_PHOTO",
34
- Update_professional_profile = "UPDATE_PROFESSIONAL_PROFILE",
35
- Update_professional_password = "UPDATE_PROFESSIONAL_PASSWORD",
36
- Update_professional_report_to = "UPDATE_PROFESSIONAL_REPORT_TO",
37
- Update_professional_department = "UPDATE_PROFESSIONAL_DEPARTMENT",
38
- Update_professional_office = "UPDATE_PROFESSIONAL_OFFICE",
39
- Update_professional_company = "UPDATE_PROFESSIONAL_COMPANY",
40
- Update_professional_job_title = "UPDATE_PROFESSIONAL_JOB_TITLE",
41
- Update_professional_work_email = "UPDATE_PROFESSIONAL_WORK_EMAIL",
42
- Update_professional_status = "UPDATE_PROFESSIONAL_STATUS",
43
- }
44
-
45
- // export interface IProfessionalCounters {
46
- // active: number;
47
- // inactive: number;
48
- // draft: number;
49
- // deleted: number;
50
- // total: number;
51
- // }
52
-
53
- // Professional status
54
- export type ProfessionalStatus = "active" | "inactive" | "draft";
55
- export enum IProfessionalStatus {
56
- Active = "active",
57
- Inactive = "inactive",
58
- Draft = "draft",
59
- }
60
-
61
- export interface IProfessionalCouncil {
62
- doc: string;
63
- name: string;
64
- acronym: string;
65
- uf?: string | null;
66
- ref?: FirestoreDocumentReference;
67
- }
68
-
69
- export interface IProfessionalSpecialty {
70
- code: string;
71
- name: string;
72
- ref?: FirestoreDocumentReference;
73
- }
74
-
75
- export interface IProfessionalOffice {
76
- code: string;
77
- name: string;
78
- ref?: FirestoreDocumentReference;
79
- }
80
-
81
- export interface IProfessional extends IProfile {
82
- status?: ProfessionalStatus;
83
- professionalId?: string | null;
84
- title?: string | null;
85
- type?: string | null;
86
- job_title?: string | null;
87
- councils?: IProfessionalCouncil[] | null;
88
- specialties?: IProfessionalSpecialty[] | null;
89
- offices?: IProfessionalOffice[] | null;
90
- date_joining?: Date | null;
91
- company_code?: string | null;
92
- company_name?: string | null;
93
- companyRef?: FirestoreDocumentReference;
94
- department_code?: string | null;
95
- department_name?: string | null;
96
- departmentRef?: FirestoreDocumentReference;
97
- address?: IAddress | null;
98
- contact?: IContact | null;
99
- tags?: ITag[] | null;
100
- userRef?: FirestoreDocumentReference;
101
- [key: string]: unknown; // index signature
102
- }
103
-
104
- // export interface IPatientCounters {
105
- // active: number;
106
- // inactive: number;
107
- // draft: number;
108
- // deleted: number;
109
- // total: number;
110
- // }
111
-
112
- // Patient status
113
- export type PatientStatus = "active" | "inactive" | "draft" | "anonymized";
114
- export enum IPatientStatus {
115
- Active = "active",
116
- Inactive = "inactive",
117
- Draft = "draft",
118
- Anonymized = "anonymized",
119
- }
120
-
121
- // Patient status
122
- export type BloodType =
123
- | "A+"
124
- | "A-"
125
- | "B+"
126
- | "B-"
127
- | "AB+"
128
- | "AB-"
129
- | "O+"
130
- | "O-"
131
- | "Unknown";
132
- export enum IBloodType {
133
- APositive = "A+",
134
- ANegative = "A-",
135
- BPositive = "B+",
136
- BNegative = "B-",
137
- ABPositive = "AB+",
138
- ABNegative = "AB-",
139
- OPositive = "O+",
140
- ONegative = "O-",
141
- Unknown = "Unknown",
142
- }
143
-
144
- export type Severity = "Mild" | "Moderate" | "Severe" | "Unknown";
145
- export enum ISeverity {
146
- Mild = "Mild",
147
- Moderate = "Moderate",
148
- Severe = "Severe",
149
- Unknown = "Unknown",
150
- }
151
-
152
- export interface IPatientChronicCondition {
153
- code: string; // Identificador único da condição
154
- name: string; // Nome da doença crônica, ex: "Diabetes Tipo 2"
155
- ref?: FirestoreDocumentReference;
156
- diagnosis_date?: Date | null; // Data do diagnóstico (ISO 8601)
157
- severity?: Severity | null; // Nível de gravidade
158
- controlled?: boolean | null; // Indica se a condição está sob controle
159
- medications?: IMedication[] | null; // Lista de medicamentos utilizados para tratar a condição
160
- notes?: string | null; // Observações adicionais
161
- }
162
-
163
- export interface IPatientAllergy {
164
- code: string;
165
- name: string;
166
- kind?: "Food" | "Drug" | "Insect" | "Other" | null;
167
- ref?: FirestoreDocumentReference;
168
- severity?: Severity | null; // Nível de gravidade
169
- }
170
-
171
- export interface IPatient extends IProfile {
172
- social_id?: string | null; //CPF
173
- status?: PatientStatus;
174
- source_code?: string | null;
175
- source_name?: string | null;
176
- sourceRef?: FirestoreDocumentReference;
177
- address?: IAddress | null;
178
- contact?: IContact | null;
179
- //informações médicas
180
- height_cm?: number | null; // Altura em centímetros
181
- weight_kg?: number | null; // Peso em kg
182
- blood_type?: BloodType | null; // Tipo sanguíneo
183
- allergies?: IPatientAllergy[] | null; // Lista de alergias conhecidas
184
- chronic_conditions?: IPatientChronicCondition[] | null; // Lista de doenças crônicas do paciente
185
- tags?: ITag[] | null;
186
- userRef?: FirestoreDocumentReference;
187
- [key: string]: unknown; // index signature
188
- }
@@ -1,36 +0,0 @@
1
- export * from "../../evo-people/fb_collections";
2
- import type { FirestoreDocumentReference, IFireDoc, ITag } from "../../shared";
3
- export type MedProcedureAction = "CREATE_PROCEDURE" | "DELETE_PROCEDURE" | "UPDATE_PROCEDURE";
4
- export declare enum IMedProcedureAction {
5
- Create_procedure = "CREATE_PROCEDURE",
6
- Delete_procedure = "DELETE_PROCEDURE",
7
- Update_procedure = "UPDATE_PROCEDURE"
8
- }
9
- export type ProcedureStatus = "active" | "inactive" | "draft";
10
- export declare enum IProcedureStatus {
11
- Active = "active",
12
- Inactive = "inactive",
13
- Draft = "draft"
14
- }
15
- export interface IProcedureType extends IFireDoc {
16
- code: string;
17
- name: string;
18
- tags?: ITag[] | null;
19
- [key: string]: unknown;
20
- }
21
- export interface IProcedure extends IFireDoc {
22
- code: string;
23
- name: string;
24
- technical_name: string;
25
- status: ProcedureStatus;
26
- type_code?: string;
27
- type_name?: string;
28
- typeRef?: FirestoreDocumentReference;
29
- duration?: number;
30
- color?: string;
31
- acronym?: string;
32
- description?: string;
33
- tuss?: string;
34
- tags?: ITag[] | null;
35
- [key: string]: unknown;
36
- }
@@ -1,30 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.IProcedureStatus = exports.IMedProcedureAction = void 0;
18
- __exportStar(require("../../evo-people/fb_collections"), exports);
19
- var IMedProcedureAction;
20
- (function (IMedProcedureAction) {
21
- IMedProcedureAction["Create_procedure"] = "CREATE_PROCEDURE";
22
- IMedProcedureAction["Delete_procedure"] = "DELETE_PROCEDURE";
23
- IMedProcedureAction["Update_procedure"] = "UPDATE_PROCEDURE";
24
- })(IMedProcedureAction || (exports.IMedProcedureAction = IMedProcedureAction = {}));
25
- var IProcedureStatus;
26
- (function (IProcedureStatus) {
27
- IProcedureStatus["Active"] = "active";
28
- IProcedureStatus["Inactive"] = "inactive";
29
- IProcedureStatus["Draft"] = "draft";
30
- })(IProcedureStatus || (exports.IProcedureStatus = IProcedureStatus = {}));
@@ -1,48 +0,0 @@
1
- export * from "../../evo-people/fb_collections";
2
- import type { FirestoreDocumentReference, IFireDoc, ITag } from "../../shared";
3
-
4
- // ----- MedProcedureAction
5
-
6
- // Enum for EvoMed Procedure Action - used in Dictionaries tracking
7
- export type MedProcedureAction =
8
- | "CREATE_PROCEDURE"
9
- | "DELETE_PROCEDURE"
10
- | "UPDATE_PROCEDURE";
11
-
12
- export enum IMedProcedureAction {
13
- Create_procedure = "CREATE_PROCEDURE",
14
- Delete_procedure = "DELETE_PROCEDURE",
15
- Update_procedure = "UPDATE_PROCEDURE",
16
- }
17
-
18
- // Professional status
19
- export type ProcedureStatus = "active" | "inactive" | "draft";
20
- export enum IProcedureStatus {
21
- Active = "active",
22
- Inactive = "inactive",
23
- Draft = "draft",
24
- }
25
-
26
- export interface IProcedureType extends IFireDoc {
27
- code: string;
28
- name: string;
29
- tags?: ITag[] | null;
30
- [key: string]: unknown; // index signature
31
- }
32
-
33
- export interface IProcedure extends IFireDoc {
34
- code: string;
35
- name: string;
36
- technical_name: string;
37
- status: ProcedureStatus;
38
- type_code?: string;
39
- type_name?: string;
40
- typeRef?: FirestoreDocumentReference;
41
- duration?: number; // Duração em minutos
42
- color?: string; // Cor para exibição
43
- acronym?: string; // Sigla
44
- description?: string;
45
- tuss?: string;
46
- tags?: ITag[] | null;
47
- [key: string]: unknown; // index signature
48
- }
@@ -1,2 +0,0 @@
1
- export declare const EVO_MEETING_APP = "evo-meeting";
2
- export declare const MEETINGS_COLLECTION = "meetings";
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MEETINGS_COLLECTION = exports.EVO_MEETING_APP = void 0;
4
- //EVO Meeting Application Doc
5
- exports.EVO_MEETING_APP = "evo-meeting";
6
- //meetings collection
7
- exports.MEETINGS_COLLECTION = "meetings";
@@ -1,5 +0,0 @@
1
- //EVO Meeting Application Doc
2
- export const EVO_MEETING_APP = "evo-meeting";
3
-
4
- //meetings collection
5
- export const MEETINGS_COLLECTION = "meetings";
@@ -1,58 +0,0 @@
1
- export * from "./fb_collections";
2
- import type { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
3
- import type { TaskPriority, TaskStatus } from "../evo-task";
4
- export type MeetingAction = "CREATE_MEETING" | "DELETE_MEETING" | "UPDATE_MEETING";
5
- export declare enum IMeetingAction {
6
- Create_meeting = "CREATE_MEETING",
7
- Delete_meeting = "DELETE_MEETING",
8
- Update_meeting = "UPDATE_MEETING"
9
- }
10
- export type MeetingType = "regular" | "oneonone" | "feedback" | "presentation" | "other";
11
- export declare enum IMeetingType {
12
- Regular = "regular",// A regular meeting
13
- OneOnOne = "oneonone",// A one-on-one meeting
14
- Feedback = "feedback",// A feedback session
15
- Presentation = "presentation",// A presentation meeting
16
- Other = "other"
17
- }
18
- export interface IMeetingEvent {
19
- eventRef?: FirestoreDocumentReference;
20
- participantNames: string[];
21
- participantRefs?: FirestoreDocumentReference[];
22
- startDate: Date;
23
- endDate?: Date;
24
- }
25
- export interface IMeetingTask {
26
- taskRef?: FirestoreDocumentReference;
27
- title: string;
28
- status: TaskStatus;
29
- priority?: TaskPriority;
30
- assigneeName?: string;
31
- }
32
- export interface ITalkingPointTemplate extends IFireDoc {
33
- title: string;
34
- description?: string;
35
- tags?: ITag[] | null;
36
- }
37
- export interface IMeetingTalkingPoint {
38
- templateRef?: FirestoreDocumentReference;
39
- title: string;
40
- description?: string;
41
- tags?: ITag[] | null;
42
- discussed: boolean;
43
- notes?: string;
44
- assigneeName?: string;
45
- assigneeRef?: FirestoreDocumentReference;
46
- }
47
- export interface IMeeting extends IFireDoc {
48
- title: string;
49
- description?: string;
50
- creatorName: string;
51
- creatorRef?: FirestoreDocumentReference;
52
- event: IMeetingEvent;
53
- type: MeetingType;
54
- tasks?: IMeetingTask[];
55
- talkingPoints?: IMeetingTalkingPoint[];
56
- tags?: ITag[] | null;
57
- [key: string]: unknown;
58
- }
@@ -1,32 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.IMeetingType = exports.IMeetingAction = void 0;
18
- __exportStar(require("./fb_collections"), exports);
19
- var IMeetingAction;
20
- (function (IMeetingAction) {
21
- IMeetingAction["Create_meeting"] = "CREATE_MEETING";
22
- IMeetingAction["Delete_meeting"] = "DELETE_MEETING";
23
- IMeetingAction["Update_meeting"] = "UPDATE_MEETING";
24
- })(IMeetingAction || (exports.IMeetingAction = IMeetingAction = {}));
25
- var IMeetingType;
26
- (function (IMeetingType) {
27
- IMeetingType["Regular"] = "regular";
28
- IMeetingType["OneOnOne"] = "oneonone";
29
- IMeetingType["Feedback"] = "feedback";
30
- IMeetingType["Presentation"] = "presentation";
31
- IMeetingType["Other"] = "other";
32
- })(IMeetingType || (exports.IMeetingType = IMeetingType = {}));