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.
- package/package.json +1 -1
- package/dist/apps/evo-activity/zod-schemas.d.ts +0 -93
- package/dist/apps/evo-activity/zod-schemas.js +0 -40
- package/dist/apps/evo-activity/zod-schemas.ts +0 -43
- package/dist/apps/evo-cake/zod-schemas.d.ts +0 -783
- package/dist/apps/evo-cake/zod-schemas.js +0 -110
- package/dist/apps/evo-cake/zod-schemas.ts +0 -121
- package/dist/apps/evo-calendar/zod-schemas.d.ts +0 -71
- package/dist/apps/evo-calendar/zod-schemas.js +0 -32
- package/dist/apps/evo-calendar/zod-schemas.ts +0 -33
- package/dist/apps/evo-core/zod-schemas.d.ts +0 -14
- package/dist/apps/evo-core/zod-schemas.js +0 -9
- package/dist/apps/evo-core/zod-schemas.ts +0 -7
- package/dist/apps/evo-crm/dic/zod-schemas.d.ts +0 -233
- package/dist/apps/evo-crm/dic/zod-schemas.js +0 -45
- package/dist/apps/evo-crm/dic/zod-schemas.ts +0 -46
- package/dist/apps/evo-crm/lead/zod-schemas.d.ts +0 -347
- package/dist/apps/evo-crm/lead/zod-schemas.js +0 -30
- package/dist/apps/evo-crm/lead/zod-schemas.ts +0 -35
- package/dist/apps/evo-med/dic/zod-schemas.d.ts +0 -501
- package/dist/apps/evo-med/dic/zod-schemas.js +0 -116
- package/dist/apps/evo-med/dic/zod-schemas.ts +0 -127
- package/dist/apps/evo-med/insurance/zod-schemas.d.ts +0 -421
- package/dist/apps/evo-med/insurance/zod-schemas.js +0 -33
- package/dist/apps/evo-med/insurance/zod-schemas.ts +0 -39
- package/dist/apps/evo-med/people/zod-schemas.d.ts +0 -955
- package/dist/apps/evo-med/people/zod-schemas.js +0 -100
- package/dist/apps/evo-med/people/zod-schemas.ts +0 -117
- package/dist/apps/evo-med/procedure/zod-schemas.d.ts +0 -141
- package/dist/apps/evo-med/procedure/zod-schemas.js +0 -26
- package/dist/apps/evo-med/procedure/zod-schemas.ts +0 -26
- package/dist/apps/evo-meeting/zod-schemas.d.ts +0 -429
- package/dist/apps/evo-meeting/zod-schemas.js +0 -56
- package/dist/apps/evo-meeting/zod-schemas.ts +0 -62
- package/dist/apps/evo-people/zod-schemas.d.ts +0 -476
- package/dist/apps/evo-people/zod-schemas.js +0 -120
- package/dist/apps/evo-people/zod-schemas.ts +0 -124
- package/dist/apps/evo-survey/zod-schemas.d.ts +0 -1579
- package/dist/apps/evo-survey/zod-schemas.js +0 -191
- package/dist/apps/evo-survey/zod-schemas.ts +0 -209
- package/dist/apps/evo-task/zod-schemas.d.ts +0 -4
- package/dist/apps/evo-task/zod-schemas.js +0 -17
- package/dist/apps/evo-task/zod-schemas.ts +0 -17
- package/dist/apps/evo-tenant/zod-schemas.d.ts +0 -51
- package/dist/apps/evo-tenant/zod-schemas.js +0 -22
- package/dist/apps/evo-tenant/zod-schemas.ts +0 -23
- package/dist/apps/shared/zod-schemas.d.ts +0 -84
- package/dist/apps/shared/zod-schemas.js +0 -49
- package/dist/apps/shared/zod-schemas.ts +0 -51
- package/dist/index.d.ts +0 -35
- package/dist/index.js +0 -50
- package/dist/index.ts +0 -35
- package/dist/types/evo-activity/fb_collections.d.ts +0 -4
- package/dist/types/evo-activity/fb_collections.js +0 -9
- package/dist/types/evo-activity/fb_collections.ts +0 -7
- package/dist/types/evo-activity/index.d.ts +0 -28
- package/dist/types/evo-activity/index.js +0 -27
- package/dist/types/evo-activity/index.ts +0 -45
- package/dist/types/evo-cake/fb_collections.d.ts +0 -4
- package/dist/types/evo-cake/fb_collections.js +0 -9
- package/dist/types/evo-cake/fb_collections.ts +0 -7
- package/dist/types/evo-cake/index.d.ts +0 -111
- package/dist/types/evo-cake/index.js +0 -79
- package/dist/types/evo-cake/index.ts +0 -186
- package/dist/types/evo-calendar/fb_collections.d.ts +0 -2
- package/dist/types/evo-calendar/fb_collections.js +0 -7
- package/dist/types/evo-calendar/fb_collections.ts +0 -5
- package/dist/types/evo-calendar/index.d.ts +0 -56
- package/dist/types/evo-calendar/index.js +0 -37
- package/dist/types/evo-calendar/index.ts +0 -69
- package/dist/types/evo-core/index.d.ts +0 -41
- package/dist/types/evo-core/index.js +0 -2
- package/dist/types/evo-core/index.ts +0 -48
- package/dist/types/evo-crm/dic/index.d.ts +0 -50
- package/dist/types/evo-crm/dic/index.js +0 -31
- package/dist/types/evo-crm/dic/index.ts +0 -84
- package/dist/types/evo-crm/fb_collections.d.ts +0 -7
- package/dist/types/evo-crm/fb_collections.js +0 -13
- package/dist/types/evo-crm/fb_collections.ts +0 -13
- package/dist/types/evo-crm/lead/index.d.ts +0 -30
- package/dist/types/evo-crm/lead/index.js +0 -9
- package/dist/types/evo-crm/lead/index.ts +0 -40
- package/dist/types/evo-med/dic/index.d.ts +0 -99
- package/dist/types/evo-med/dic/index.js +0 -52
- package/dist/types/evo-med/dic/index.ts +0 -131
- package/dist/types/evo-med/fb_collections.d.ts +0 -20
- package/dist/types/evo-med/fb_collections.js +0 -28
- package/dist/types/evo-med/fb_collections.ts +0 -31
- package/dist/types/evo-med/insurance/index.d.ts +0 -34
- package/dist/types/evo-med/insurance/index.js +0 -24
- package/dist/types/evo-med/insurance/index.ts +0 -45
- package/dist/types/evo-med/people/index.d.ts +0 -125
- package/dist/types/evo-med/people/index.js +0 -66
- package/dist/types/evo-med/people/index.ts +0 -188
- package/dist/types/evo-med/procedure/index.d.ts +0 -36
- package/dist/types/evo-med/procedure/index.js +0 -30
- package/dist/types/evo-med/procedure/index.ts +0 -48
- package/dist/types/evo-meeting/fb_collections.d.ts +0 -2
- package/dist/types/evo-meeting/fb_collections.js +0 -7
- package/dist/types/evo-meeting/fb_collections.ts +0 -5
- package/dist/types/evo-meeting/index.d.ts +0 -58
- package/dist/types/evo-meeting/index.js +0 -32
- package/dist/types/evo-meeting/index.ts +0 -80
- package/dist/types/evo-messages/fb_collections.d.ts +0 -1
- package/dist/types/evo-messages/fb_collections.js +0 -2
- package/dist/types/evo-messages/fb_collections.ts +0 -0
- package/dist/types/evo-people/fb_collections.d.ts +0 -5
- package/dist/types/evo-people/fb_collections.js +0 -10
- package/dist/types/evo-people/fb_collections.ts +0 -8
- package/dist/types/evo-people/index.d.ts +0 -117
- package/dist/types/evo-people/index.js +0 -59
- package/dist/types/evo-people/index.ts +0 -167
- package/dist/types/evo-survey/fb_collections.d.ts +0 -7
- package/dist/types/evo-survey/fb_collections.js +0 -13
- package/dist/types/evo-survey/fb_collections.ts +0 -12
- package/dist/types/evo-survey/index.d.ts +0 -172
- package/dist/types/evo-survey/index.js +0 -70
- package/dist/types/evo-survey/index.ts +0 -224
- package/dist/types/evo-task/fb_collections.d.ts +0 -2
- package/dist/types/evo-task/fb_collections.js +0 -7
- package/dist/types/evo-task/fb_collections.ts +0 -5
- package/dist/types/evo-task/index.d.ts +0 -35
- package/dist/types/evo-task/index.js +0 -38
- package/dist/types/evo-task/index.ts +0 -51
- package/dist/types/evo-tenant/fb_collections.d.ts +0 -1
- package/dist/types/evo-tenant/fb_collections.js +0 -5
- package/dist/types/evo-tenant/fb_collections.ts +0 -2
- package/dist/types/evo-tenant/index.d.ts +0 -28
- package/dist/types/evo-tenant/index.js +0 -35
- package/dist/types/evo-tenant/index.ts +0 -35
- package/dist/types/shared/fb_collections.d.ts +0 -5
- package/dist/types/shared/fb_collections.js +0 -13
- package/dist/types/shared/fb_collections.ts +0 -14
- package/dist/types/shared/index.d.ts +0 -52
- package/dist/types/shared/index.js +0 -30
- package/dist/types/shared/index.ts +0 -74
- package/dist/types/shared/maska.d.ts +0 -23
- package/dist/types/shared/maska.js +0 -2
- package/dist/types/shared/maska.ts +0 -26
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { FirestoreDocumentReference, IAddress, IContact, ITag } from "../../shared";
|
|
2
|
-
import { IProfile } from "../../evo-people";
|
|
3
|
-
import { QualificationFunnelLevel } from "../dic";
|
|
4
|
-
export type LeadStatus = "active" | "inactive" | "draft";
|
|
5
|
-
export declare enum ILeadStatus {
|
|
6
|
-
Active = "active",
|
|
7
|
-
Inactive = "inactive",
|
|
8
|
-
Draft = "draft"
|
|
9
|
-
}
|
|
10
|
-
export interface ILeadQualification {
|
|
11
|
-
code: string;
|
|
12
|
-
name: string;
|
|
13
|
-
funnelLevel: QualificationFunnelLevel;
|
|
14
|
-
ref?: FirestoreDocumentReference;
|
|
15
|
-
}
|
|
16
|
-
export interface ILeadDistChannel {
|
|
17
|
-
code: string;
|
|
18
|
-
name: string;
|
|
19
|
-
ref?: FirestoreDocumentReference;
|
|
20
|
-
}
|
|
21
|
-
export interface ILead extends IProfile {
|
|
22
|
-
status?: LeadStatus;
|
|
23
|
-
qualification?: ILeadQualification | null;
|
|
24
|
-
distChannel?: ILeadDistChannel | null;
|
|
25
|
-
address?: IAddress | null;
|
|
26
|
-
contact?: IContact | null;
|
|
27
|
-
tags?: ITag[] | null;
|
|
28
|
-
userRef?: FirestoreDocumentReference;
|
|
29
|
-
[key: string]: unknown;
|
|
30
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ILeadStatus = void 0;
|
|
4
|
-
var ILeadStatus;
|
|
5
|
-
(function (ILeadStatus) {
|
|
6
|
-
ILeadStatus["Active"] = "active";
|
|
7
|
-
ILeadStatus["Inactive"] = "inactive";
|
|
8
|
-
ILeadStatus["Draft"] = "draft";
|
|
9
|
-
})(ILeadStatus || (exports.ILeadStatus = ILeadStatus = {}));
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
FirestoreDocumentReference,
|
|
3
|
-
IAddress,
|
|
4
|
-
IContact,
|
|
5
|
-
ITag,
|
|
6
|
-
} from "../../shared";
|
|
7
|
-
import { IProfile } from "../../evo-people";
|
|
8
|
-
import { QualificationFunnelLevel } from "../dic";
|
|
9
|
-
|
|
10
|
-
// Lead status
|
|
11
|
-
export type LeadStatus = "active" | "inactive" | "draft";
|
|
12
|
-
export enum ILeadStatus {
|
|
13
|
-
Active = "active",
|
|
14
|
-
Inactive = "inactive",
|
|
15
|
-
Draft = "draft",
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface ILeadQualification {
|
|
19
|
-
code: string;
|
|
20
|
-
name: string;
|
|
21
|
-
funnelLevel: QualificationFunnelLevel;
|
|
22
|
-
ref?: FirestoreDocumentReference;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface ILeadDistChannel {
|
|
26
|
-
code: string;
|
|
27
|
-
name: string;
|
|
28
|
-
ref?: FirestoreDocumentReference;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface ILead extends IProfile {
|
|
32
|
-
status?: LeadStatus;
|
|
33
|
-
qualification?: ILeadQualification | null;
|
|
34
|
-
distChannel?: ILeadDistChannel | null;
|
|
35
|
-
address?: IAddress | null;
|
|
36
|
-
contact?: IContact | null;
|
|
37
|
-
tags?: ITag[] | null;
|
|
38
|
-
userRef?: FirestoreDocumentReference;
|
|
39
|
-
[key: string]: unknown; // index signature
|
|
40
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
export * from "../../evo-people/fb_collections";
|
|
2
|
-
import type { FirestoreDocumentReference, IFireDoc, ITag } from "../../shared";
|
|
3
|
-
export type MedDicAction = "CREATE_SPECIALTY" | "DELETE_SPECIALTY" | "UPDATE_SPECIALTY" | "CREATE_PATIENT_SOURCE" | "DELETE_PATIENT_SOURCE" | "UPDATE_PATIENT_SOURCE" | "CREATE_APPOINTMENT_SOURCE" | "DELETE_APPOINTMENT_SOURCE" | "UPDATE_APPOINTMENT_SOURCE" | "CREATE_APPOINTMENT_REQUEST_TYPE" | "DELETE_APPOINTMENT_REQUEST_TYPE" | "UPDATE_APPOINTMENT_REQUEST_TYPE" | "CREATE_APPOINTMENT_STATUS" | "DELETE_APPOINTMENT_STATUS" | "UPDATE_APPOINTMENT_STATUS";
|
|
4
|
-
export declare enum IMedDicAction {
|
|
5
|
-
Create_specialty = "CREATE_SPECIALTY",
|
|
6
|
-
Delete_specialty = "DELETE_SPECIALTY",
|
|
7
|
-
Update_specialty = "UPDATE_SPECIALTY",
|
|
8
|
-
Create_patient_source = "CREATE_PATIENT_SOURCE",
|
|
9
|
-
Delete_patient_source = "DELETE_PATIENT_SOURCE",
|
|
10
|
-
Update_patient_source = "UPDATE_PATIENT_SOURCE",
|
|
11
|
-
Create_appointment_source = "CREATE_APPOINTMENT_SOURCE",
|
|
12
|
-
Delete_appointment_source = "DELETE_APPOINTMENT_SOURCE",
|
|
13
|
-
Update_appointment_source = "UPDATE_APPOINTMENT_SOURCE",
|
|
14
|
-
Create_appointment_request_type = "CREATE_APPOINTMENT_REQUEST_TYPE",
|
|
15
|
-
Delete_appointment_request_type = "DELETE_APPOINTMENT_REQUEST_TYPE",
|
|
16
|
-
Update_appointment_request_type = "UPDATE_APPOINTMENT_REQUEST_TYPE",
|
|
17
|
-
Create_appointment_status = "CREATE_APPOINTMENT_STATUS",
|
|
18
|
-
Delete_appointment_status = "DELETE_APPOINTMENT_STATUS",
|
|
19
|
-
Update_appointment_status = "UPDATE_APPOINTMENT_STATUS"
|
|
20
|
-
}
|
|
21
|
-
export interface ISpecialtyType extends IFireDoc {
|
|
22
|
-
code: string;
|
|
23
|
-
name: string;
|
|
24
|
-
}
|
|
25
|
-
export interface ISpecialty extends IFireDoc {
|
|
26
|
-
code: string;
|
|
27
|
-
name: string;
|
|
28
|
-
tiss?: string;
|
|
29
|
-
type_code?: string;
|
|
30
|
-
type_name?: string;
|
|
31
|
-
typeRef?: FirestoreDocumentReference;
|
|
32
|
-
tags?: ITag[] | null;
|
|
33
|
-
[key: string]: unknown;
|
|
34
|
-
}
|
|
35
|
-
export interface IPatientSource extends IFireDoc {
|
|
36
|
-
code: string;
|
|
37
|
-
name: string;
|
|
38
|
-
tags?: ITag[] | null;
|
|
39
|
-
[key: string]: unknown;
|
|
40
|
-
}
|
|
41
|
-
export interface IAppointmentSource extends IFireDoc {
|
|
42
|
-
code: string;
|
|
43
|
-
name: string;
|
|
44
|
-
tags?: ITag[] | null;
|
|
45
|
-
[key: string]: unknown;
|
|
46
|
-
}
|
|
47
|
-
export interface IAppointmentRequestType extends IFireDoc {
|
|
48
|
-
code: string;
|
|
49
|
-
name: string;
|
|
50
|
-
tags?: ITag[] | null;
|
|
51
|
-
[key: string]: unknown;
|
|
52
|
-
}
|
|
53
|
-
export type AppointmentStatusType = "rs" | "cf" | "ci" | "co" | "cx" | "ns";
|
|
54
|
-
export declare enum IAppointmentStatusType {
|
|
55
|
-
Reserved = "rs",
|
|
56
|
-
Confirmed = "cf",
|
|
57
|
-
CheckedIn = "ci",
|
|
58
|
-
CheckedOut = "co",
|
|
59
|
-
Canceled = "cx",
|
|
60
|
-
NoShow = "ns"
|
|
61
|
-
}
|
|
62
|
-
export interface IAppointmentStatus extends IFireDoc {
|
|
63
|
-
code: string;
|
|
64
|
-
name: string;
|
|
65
|
-
type: AppointmentStatusType;
|
|
66
|
-
}
|
|
67
|
-
export interface IMedication {
|
|
68
|
-
name: string;
|
|
69
|
-
dosage?: string | null;
|
|
70
|
-
frequency?: string | null;
|
|
71
|
-
}
|
|
72
|
-
export interface IChronicCondition extends IFireDoc {
|
|
73
|
-
code: string;
|
|
74
|
-
name: string;
|
|
75
|
-
diagnosis_date?: string | null;
|
|
76
|
-
severity?: "Mild" | "Moderate" | "Severe";
|
|
77
|
-
controlled?: boolean;
|
|
78
|
-
medications?: IMedication[] | null;
|
|
79
|
-
notes?: string | null;
|
|
80
|
-
}
|
|
81
|
-
export type AllergyKind = "Food" | "Drug" | "Insect" | "Other";
|
|
82
|
-
export declare enum IAllergyKind {
|
|
83
|
-
Food = "Food",
|
|
84
|
-
Drug = "Drug",
|
|
85
|
-
Insect = "Insect",
|
|
86
|
-
Other = "Other"
|
|
87
|
-
}
|
|
88
|
-
export interface IAllergy extends IFireDoc {
|
|
89
|
-
code: string;
|
|
90
|
-
name: string;
|
|
91
|
-
kind?: AllergyKind | null;
|
|
92
|
-
}
|
|
93
|
-
export interface IMedicalCouncil extends IFireDoc {
|
|
94
|
-
name: string;
|
|
95
|
-
acronym: string;
|
|
96
|
-
uf?: string | null;
|
|
97
|
-
country?: string | null;
|
|
98
|
-
[key: string]: unknown;
|
|
99
|
-
}
|
|
@@ -1,52 +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.IAllergyKind = exports.IAppointmentStatusType = exports.IMedDicAction = void 0;
|
|
18
|
-
__exportStar(require("../../evo-people/fb_collections"), exports);
|
|
19
|
-
var IMedDicAction;
|
|
20
|
-
(function (IMedDicAction) {
|
|
21
|
-
IMedDicAction["Create_specialty"] = "CREATE_SPECIALTY";
|
|
22
|
-
IMedDicAction["Delete_specialty"] = "DELETE_SPECIALTY";
|
|
23
|
-
IMedDicAction["Update_specialty"] = "UPDATE_SPECIALTY";
|
|
24
|
-
IMedDicAction["Create_patient_source"] = "CREATE_PATIENT_SOURCE";
|
|
25
|
-
IMedDicAction["Delete_patient_source"] = "DELETE_PATIENT_SOURCE";
|
|
26
|
-
IMedDicAction["Update_patient_source"] = "UPDATE_PATIENT_SOURCE";
|
|
27
|
-
IMedDicAction["Create_appointment_source"] = "CREATE_APPOINTMENT_SOURCE";
|
|
28
|
-
IMedDicAction["Delete_appointment_source"] = "DELETE_APPOINTMENT_SOURCE";
|
|
29
|
-
IMedDicAction["Update_appointment_source"] = "UPDATE_APPOINTMENT_SOURCE";
|
|
30
|
-
IMedDicAction["Create_appointment_request_type"] = "CREATE_APPOINTMENT_REQUEST_TYPE";
|
|
31
|
-
IMedDicAction["Delete_appointment_request_type"] = "DELETE_APPOINTMENT_REQUEST_TYPE";
|
|
32
|
-
IMedDicAction["Update_appointment_request_type"] = "UPDATE_APPOINTMENT_REQUEST_TYPE";
|
|
33
|
-
IMedDicAction["Create_appointment_status"] = "CREATE_APPOINTMENT_STATUS";
|
|
34
|
-
IMedDicAction["Delete_appointment_status"] = "DELETE_APPOINTMENT_STATUS";
|
|
35
|
-
IMedDicAction["Update_appointment_status"] = "UPDATE_APPOINTMENT_STATUS";
|
|
36
|
-
})(IMedDicAction || (exports.IMedDicAction = IMedDicAction = {}));
|
|
37
|
-
var IAppointmentStatusType;
|
|
38
|
-
(function (IAppointmentStatusType) {
|
|
39
|
-
IAppointmentStatusType["Reserved"] = "rs";
|
|
40
|
-
IAppointmentStatusType["Confirmed"] = "cf";
|
|
41
|
-
IAppointmentStatusType["CheckedIn"] = "ci";
|
|
42
|
-
IAppointmentStatusType["CheckedOut"] = "co";
|
|
43
|
-
IAppointmentStatusType["Canceled"] = "cx";
|
|
44
|
-
IAppointmentStatusType["NoShow"] = "ns";
|
|
45
|
-
})(IAppointmentStatusType || (exports.IAppointmentStatusType = IAppointmentStatusType = {}));
|
|
46
|
-
var IAllergyKind;
|
|
47
|
-
(function (IAllergyKind) {
|
|
48
|
-
IAllergyKind["Food"] = "Food";
|
|
49
|
-
IAllergyKind["Drug"] = "Drug";
|
|
50
|
-
IAllergyKind["Insect"] = "Insect";
|
|
51
|
-
IAllergyKind["Other"] = "Other";
|
|
52
|
-
})(IAllergyKind || (exports.IAllergyKind = IAllergyKind = {}));
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
export * from "../../evo-people/fb_collections";
|
|
2
|
-
import type { FirestoreDocumentReference, IFireDoc, ITag } from "../../shared";
|
|
3
|
-
|
|
4
|
-
// ----- MedDicTypes
|
|
5
|
-
|
|
6
|
-
// Enum for EvoMed Dic Action - used in Dictionaries tracking
|
|
7
|
-
export type MedDicAction =
|
|
8
|
-
| "CREATE_SPECIALTY"
|
|
9
|
-
| "DELETE_SPECIALTY"
|
|
10
|
-
| "UPDATE_SPECIALTY"
|
|
11
|
-
| "CREATE_PATIENT_SOURCE"
|
|
12
|
-
| "DELETE_PATIENT_SOURCE"
|
|
13
|
-
| "UPDATE_PATIENT_SOURCE"
|
|
14
|
-
| "CREATE_APPOINTMENT_SOURCE"
|
|
15
|
-
| "DELETE_APPOINTMENT_SOURCE"
|
|
16
|
-
| "UPDATE_APPOINTMENT_SOURCE"
|
|
17
|
-
| "CREATE_APPOINTMENT_REQUEST_TYPE"
|
|
18
|
-
| "DELETE_APPOINTMENT_REQUEST_TYPE"
|
|
19
|
-
| "UPDATE_APPOINTMENT_REQUEST_TYPE"
|
|
20
|
-
| "CREATE_APPOINTMENT_STATUS"
|
|
21
|
-
| "DELETE_APPOINTMENT_STATUS"
|
|
22
|
-
| "UPDATE_APPOINTMENT_STATUS";
|
|
23
|
-
|
|
24
|
-
export enum IMedDicAction {
|
|
25
|
-
Create_specialty = "CREATE_SPECIALTY",
|
|
26
|
-
Delete_specialty = "DELETE_SPECIALTY",
|
|
27
|
-
Update_specialty = "UPDATE_SPECIALTY",
|
|
28
|
-
Create_patient_source = "CREATE_PATIENT_SOURCE",
|
|
29
|
-
Delete_patient_source = "DELETE_PATIENT_SOURCE",
|
|
30
|
-
Update_patient_source = "UPDATE_PATIENT_SOURCE",
|
|
31
|
-
Create_appointment_source = "CREATE_APPOINTMENT_SOURCE",
|
|
32
|
-
Delete_appointment_source = "DELETE_APPOINTMENT_SOURCE",
|
|
33
|
-
Update_appointment_source = "UPDATE_APPOINTMENT_SOURCE",
|
|
34
|
-
Create_appointment_request_type = "CREATE_APPOINTMENT_REQUEST_TYPE",
|
|
35
|
-
Delete_appointment_request_type = "DELETE_APPOINTMENT_REQUEST_TYPE",
|
|
36
|
-
Update_appointment_request_type = "UPDATE_APPOINTMENT_REQUEST_TYPE",
|
|
37
|
-
Create_appointment_status = "CREATE_APPOINTMENT_STATUS",
|
|
38
|
-
Delete_appointment_status = "DELETE_APPOINTMENT_STATUS",
|
|
39
|
-
Update_appointment_status = "UPDATE_APPOINTMENT_STATUS",
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export interface ISpecialtyType extends IFireDoc {
|
|
43
|
-
code: string;
|
|
44
|
-
name: string;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export interface ISpecialty extends IFireDoc {
|
|
48
|
-
code: string;
|
|
49
|
-
name: string;
|
|
50
|
-
tiss?: string;
|
|
51
|
-
type_code?: string;
|
|
52
|
-
type_name?: string;
|
|
53
|
-
typeRef?: FirestoreDocumentReference;
|
|
54
|
-
tags?: ITag[] | null;
|
|
55
|
-
[key: string]: unknown; // index signature
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export interface IPatientSource extends IFireDoc {
|
|
59
|
-
code: string;
|
|
60
|
-
name: string;
|
|
61
|
-
tags?: ITag[] | null;
|
|
62
|
-
[key: string]: unknown; // index signature
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export interface IAppointmentSource extends IFireDoc {
|
|
66
|
-
code: string;
|
|
67
|
-
name: string;
|
|
68
|
-
tags?: ITag[] | null;
|
|
69
|
-
[key: string]: unknown; // index signature
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export interface IAppointmentRequestType extends IFireDoc {
|
|
73
|
-
code: string;
|
|
74
|
-
name: string;
|
|
75
|
-
tags?: ITag[] | null;
|
|
76
|
-
[key: string]: unknown; // index signature
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export type AppointmentStatusType = "rs" | "cf" | "ci" | "co" | "cx" | "ns";
|
|
80
|
-
export enum IAppointmentStatusType {
|
|
81
|
-
Reserved = "rs",
|
|
82
|
-
Confirmed = "cf",
|
|
83
|
-
CheckedIn = "ci",
|
|
84
|
-
CheckedOut = "co",
|
|
85
|
-
Canceled = "cx",
|
|
86
|
-
NoShow = "ns",
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export interface IAppointmentStatus extends IFireDoc {
|
|
90
|
-
code: string;
|
|
91
|
-
name: string;
|
|
92
|
-
type: AppointmentStatusType;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export interface IMedication {
|
|
96
|
-
name: string;
|
|
97
|
-
dosage?: string | null;
|
|
98
|
-
frequency?: string | null;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export interface IChronicCondition extends IFireDoc {
|
|
102
|
-
code: string; // Identificador único da condição
|
|
103
|
-
name: string; // Nome da doença crônica, ex: "Diabetes Tipo 2"
|
|
104
|
-
diagnosis_date?: string | null; // Data do diagnóstico (ISO 8601)
|
|
105
|
-
severity?: "Mild" | "Moderate" | "Severe"; // Nível de gravidade
|
|
106
|
-
controlled?: boolean; // Indica se a condição está sob controle
|
|
107
|
-
medications?: IMedication[] | null; // Lista de medicamentos utilizados para tratar a condição
|
|
108
|
-
notes?: string | null; // Observações adicionais
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export type AllergyKind = "Food" | "Drug" | "Insect" | "Other";
|
|
112
|
-
export enum IAllergyKind {
|
|
113
|
-
Food = "Food",
|
|
114
|
-
Drug = "Drug",
|
|
115
|
-
Insect = "Insect",
|
|
116
|
-
Other = "Other",
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export interface IAllergy extends IFireDoc {
|
|
120
|
-
code: string;
|
|
121
|
-
name: string;
|
|
122
|
-
kind?: AllergyKind | null;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export interface IMedicalCouncil extends IFireDoc {
|
|
126
|
-
name: string; // Nome do conselho (ex: "Conselho Regional de Medicina de São Paulo")
|
|
127
|
-
acronym: string; // Sigla do conselho
|
|
128
|
-
uf?: string | null; // Estado de atuação (ex: "SP", "RJ") - Opcional, pois alguns são nacionais
|
|
129
|
-
country?: string | null; // País onde o conselho atua (ex: "Brasil")
|
|
130
|
-
[key: string]: unknown; // index signature
|
|
131
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare const EVO_MED_APP = "evo-med";
|
|
2
|
-
export declare const PROFESSIONALS_COLLECTION = "professionals";
|
|
3
|
-
export declare const PATIENTS_COLLECTION = "patients";
|
|
4
|
-
export declare const INSURANCES_COLLECTION = "insurances";
|
|
5
|
-
export declare const PROCEDURES_COLLECTION = "procedures";
|
|
6
|
-
export declare const DICS_COLLECTION = "dics";
|
|
7
|
-
export declare const SPECIALTIES = "specialties";
|
|
8
|
-
export declare const SPECIALTIES_TYPES_COLLECTION = "specialties-types";
|
|
9
|
-
export declare const SPECIALTIES_COLLECTION = "specialties";
|
|
10
|
-
export declare const COUNCILS = "councils";
|
|
11
|
-
export declare const MEDICAL_COUNCILS_COLLECTION = "medical-councils";
|
|
12
|
-
export declare const SOURCES = "sources";
|
|
13
|
-
export declare const PATIENT_SOURCES_COLLECTION = "patient_sources";
|
|
14
|
-
export declare const APPOINTMENTS = "appointments";
|
|
15
|
-
export declare const APPOINTMENT_SOURCES_COLLECTION = "appointment_sources";
|
|
16
|
-
export declare const APPOINTMENT_STATUSES_COLLECTION = "appointment_statuses";
|
|
17
|
-
export declare const APPOINTMENT_REQUEST_TYPES_COLLECTION = "appointment_request_types";
|
|
18
|
-
export declare const DISEASES = "diseases";
|
|
19
|
-
export declare const ALLERGIES_COLLECTION = "allergies";
|
|
20
|
-
export declare const CHRONIC_CONDITIONS_COLLECTION = "chronic_conditions";
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CHRONIC_CONDITIONS_COLLECTION = exports.ALLERGIES_COLLECTION = exports.DISEASES = exports.APPOINTMENT_REQUEST_TYPES_COLLECTION = exports.APPOINTMENT_STATUSES_COLLECTION = exports.APPOINTMENT_SOURCES_COLLECTION = exports.APPOINTMENTS = exports.PATIENT_SOURCES_COLLECTION = exports.SOURCES = exports.MEDICAL_COUNCILS_COLLECTION = exports.COUNCILS = exports.SPECIALTIES_COLLECTION = exports.SPECIALTIES_TYPES_COLLECTION = exports.SPECIALTIES = exports.DICS_COLLECTION = exports.PROCEDURES_COLLECTION = exports.INSURANCES_COLLECTION = exports.PATIENTS_COLLECTION = exports.PROFESSIONALS_COLLECTION = exports.EVO_MED_APP = void 0;
|
|
4
|
-
//EVO Med Application Doc
|
|
5
|
-
exports.EVO_MED_APP = "evo-med";
|
|
6
|
-
//people
|
|
7
|
-
exports.PROFESSIONALS_COLLECTION = "professionals";
|
|
8
|
-
exports.PATIENTS_COLLECTION = "patients";
|
|
9
|
-
//insurance
|
|
10
|
-
exports.INSURANCES_COLLECTION = "insurances";
|
|
11
|
-
//procedure
|
|
12
|
-
exports.PROCEDURES_COLLECTION = "procedures";
|
|
13
|
-
//dictionaries
|
|
14
|
-
exports.DICS_COLLECTION = "dics";
|
|
15
|
-
exports.SPECIALTIES = "specialties";
|
|
16
|
-
exports.SPECIALTIES_TYPES_COLLECTION = "specialties-types";
|
|
17
|
-
exports.SPECIALTIES_COLLECTION = "specialties";
|
|
18
|
-
exports.COUNCILS = "councils";
|
|
19
|
-
exports.MEDICAL_COUNCILS_COLLECTION = "medical-councils";
|
|
20
|
-
exports.SOURCES = "sources";
|
|
21
|
-
exports.PATIENT_SOURCES_COLLECTION = "patient_sources";
|
|
22
|
-
exports.APPOINTMENTS = "appointments";
|
|
23
|
-
exports.APPOINTMENT_SOURCES_COLLECTION = "appointment_sources";
|
|
24
|
-
exports.APPOINTMENT_STATUSES_COLLECTION = "appointment_statuses";
|
|
25
|
-
exports.APPOINTMENT_REQUEST_TYPES_COLLECTION = "appointment_request_types";
|
|
26
|
-
exports.DISEASES = "diseases";
|
|
27
|
-
exports.ALLERGIES_COLLECTION = "allergies";
|
|
28
|
-
exports.CHRONIC_CONDITIONS_COLLECTION = "chronic_conditions";
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
//EVO Med Application Doc
|
|
2
|
-
export const EVO_MED_APP = "evo-med";
|
|
3
|
-
|
|
4
|
-
//people
|
|
5
|
-
export const PROFESSIONALS_COLLECTION = "professionals";
|
|
6
|
-
export const PATIENTS_COLLECTION = "patients";
|
|
7
|
-
//insurance
|
|
8
|
-
export const INSURANCES_COLLECTION = "insurances";
|
|
9
|
-
//procedure
|
|
10
|
-
export const PROCEDURES_COLLECTION = "procedures";
|
|
11
|
-
//dictionaries
|
|
12
|
-
export const DICS_COLLECTION = "dics";
|
|
13
|
-
|
|
14
|
-
export const SPECIALTIES = "specialties";
|
|
15
|
-
export const SPECIALTIES_TYPES_COLLECTION = "specialties-types";
|
|
16
|
-
export const SPECIALTIES_COLLECTION = "specialties";
|
|
17
|
-
|
|
18
|
-
export const COUNCILS = "councils";
|
|
19
|
-
export const MEDICAL_COUNCILS_COLLECTION = "medical-councils";
|
|
20
|
-
|
|
21
|
-
export const SOURCES = "sources";
|
|
22
|
-
export const PATIENT_SOURCES_COLLECTION = "patient_sources";
|
|
23
|
-
|
|
24
|
-
export const APPOINTMENTS = "appointments";
|
|
25
|
-
export const APPOINTMENT_SOURCES_COLLECTION = "appointment_sources";
|
|
26
|
-
export const APPOINTMENT_STATUSES_COLLECTION = "appointment_statuses";
|
|
27
|
-
export const APPOINTMENT_REQUEST_TYPES_COLLECTION = "appointment_request_types";
|
|
28
|
-
|
|
29
|
-
export const DISEASES = "diseases";
|
|
30
|
-
export const ALLERGIES_COLLECTION = "allergies";
|
|
31
|
-
export const CHRONIC_CONDITIONS_COLLECTION = "chronic_conditions";
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export * from "../../evo-people/fb_collections";
|
|
2
|
-
import type { IAddress, IContact, IFireDoc, ITag } from "../../shared";
|
|
3
|
-
export type MedInsuranceAction = "CREATE_INSURANCE" | "DELETE_INSURANCE" | "UPDATE_INSURANCE";
|
|
4
|
-
export declare enum IMedInsuranceAction {
|
|
5
|
-
Create_insurance = "CREATE_INSURANCE",
|
|
6
|
-
Delete_insurance = "DELETE_INSURANCE",
|
|
7
|
-
Update_insurance = "UPDATE_INSURANCE"
|
|
8
|
-
}
|
|
9
|
-
export interface ITissContract {
|
|
10
|
-
type: "PJ" | "PF";
|
|
11
|
-
operatorCode: string;
|
|
12
|
-
taxId: string;
|
|
13
|
-
name: string;
|
|
14
|
-
cnes: string;
|
|
15
|
-
}
|
|
16
|
-
export interface ITissConfig {
|
|
17
|
-
active: boolean;
|
|
18
|
-
version: string;
|
|
19
|
-
currentBatch: number;
|
|
20
|
-
contract: ITissContract;
|
|
21
|
-
}
|
|
22
|
-
export interface IInsuranceCompany extends IFireDoc {
|
|
23
|
-
code: string;
|
|
24
|
-
name: string;
|
|
25
|
-
corporate_name?: string;
|
|
26
|
-
tax_id?: string;
|
|
27
|
-
active: boolean;
|
|
28
|
-
ans?: string;
|
|
29
|
-
tiss?: ITissConfig;
|
|
30
|
-
address?: IAddress;
|
|
31
|
-
contact?: IContact;
|
|
32
|
-
tags?: ITag[] | null;
|
|
33
|
-
[key: string]: unknown;
|
|
34
|
-
}
|
|
@@ -1,24 +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.IMedInsuranceAction = void 0;
|
|
18
|
-
__exportStar(require("../../evo-people/fb_collections"), exports);
|
|
19
|
-
var IMedInsuranceAction;
|
|
20
|
-
(function (IMedInsuranceAction) {
|
|
21
|
-
IMedInsuranceAction["Create_insurance"] = "CREATE_INSURANCE";
|
|
22
|
-
IMedInsuranceAction["Delete_insurance"] = "DELETE_INSURANCE";
|
|
23
|
-
IMedInsuranceAction["Update_insurance"] = "UPDATE_INSURANCE";
|
|
24
|
-
})(IMedInsuranceAction || (exports.IMedInsuranceAction = IMedInsuranceAction = {}));
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export * from "../../evo-people/fb_collections";
|
|
2
|
-
import type { IAddress, IContact, IFireDoc, ITag } from "../../shared";
|
|
3
|
-
|
|
4
|
-
// ----- MedInsuranceTypes
|
|
5
|
-
|
|
6
|
-
// Enum for EvoMed Insurance Action - used in Insurance tracking
|
|
7
|
-
export type MedInsuranceAction =
|
|
8
|
-
| "CREATE_INSURANCE"
|
|
9
|
-
| "DELETE_INSURANCE"
|
|
10
|
-
| "UPDATE_INSURANCE";
|
|
11
|
-
|
|
12
|
-
export enum IMedInsuranceAction {
|
|
13
|
-
Create_insurance = "CREATE_INSURANCE",
|
|
14
|
-
Delete_insurance = "DELETE_INSURANCE",
|
|
15
|
-
Update_insurance = "UPDATE_INSURANCE",
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface ITissContract {
|
|
19
|
-
type: "PJ" | "PF"; // Tipo de contrato: Pessoa Jurídica (PJ) ou Física (PF)
|
|
20
|
-
operatorCode: string; // Código na operadora
|
|
21
|
-
taxId: string; // CNPJ ou CPF da operadora
|
|
22
|
-
name: string; // Nome da operadora
|
|
23
|
-
cnes: string; // Código CNES (Cadastro Nacional de Estabelecimentos de Saúde)
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface ITissConfig {
|
|
27
|
-
active: boolean; // Indica se o faturamento TISS está ativo
|
|
28
|
-
version: string; // Versão do TISS (ex: "4.01.00")
|
|
29
|
-
currentBatch: number; // Número do lote atual
|
|
30
|
-
contract: ITissContract;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface IInsuranceCompany extends IFireDoc {
|
|
34
|
-
code: string;
|
|
35
|
-
name: string;
|
|
36
|
-
corporate_name?: string; // Razão Social
|
|
37
|
-
tax_id?: string; // CNPJ (ou equivalente para outros países)
|
|
38
|
-
active: boolean; // Indica se o convênio está ativo
|
|
39
|
-
ans?: string; // Número de registro na ANS (Agência Nacional de Saúde Suplementar)
|
|
40
|
-
tiss?: ITissConfig;
|
|
41
|
-
address?: IAddress;
|
|
42
|
-
contact?: IContact;
|
|
43
|
-
tags?: ITag[] | null;
|
|
44
|
-
[key: string]: unknown; // index signature
|
|
45
|
-
}
|