evo360-types 1.2.26 → 1.2.27

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.
@@ -99,10 +99,17 @@ export interface IChronicCondition extends IFireDoc {
99
99
  medications?: IMedication[] | null;
100
100
  notes?: string | null;
101
101
  }
102
+ export type AllergyKind = "Food" | "Drug" | "Insect" | "Other";
103
+ export declare enum IAllergyKind {
104
+ Food = "Food",
105
+ Drug = "Drug",
106
+ Insect = "Insect",
107
+ Other = "Other"
108
+ }
102
109
  export interface IAllergy extends IFireDoc {
103
110
  code: string;
104
111
  name: string;
105
- kind?: "Food" | "Drug" | "Insect" | "Other" | null;
112
+ kind?: AllergyKind | null;
106
113
  }
107
114
  export interface IMedicalCouncil extends IFireDoc {
108
115
  name: string;
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.IAppointmentStatusType = exports.IMedDicAction = void 0;
17
+ exports.IAllergyKind = exports.IAppointmentStatusType = exports.IMedDicAction = void 0;
18
18
  __exportStar(require("../../evo-people/fb_collections"), exports);
19
19
  var IMedDicAction;
20
20
  (function (IMedDicAction) {
@@ -49,3 +49,10 @@ var IAppointmentStatusType;
49
49
  IAppointmentStatusType["Canceled"] = "cx";
50
50
  IAppointmentStatusType["NoShow"] = "ns";
51
51
  })(IAppointmentStatusType || (exports.IAppointmentStatusType = IAppointmentStatusType = {}));
52
+ var IAllergyKind;
53
+ (function (IAllergyKind) {
54
+ IAllergyKind["Food"] = "Food";
55
+ IAllergyKind["Drug"] = "Drug";
56
+ IAllergyKind["Insect"] = "Insect";
57
+ IAllergyKind["Other"] = "Other";
58
+ })(IAllergyKind || (exports.IAllergyKind = IAllergyKind = {}));
@@ -137,10 +137,18 @@ export interface IChronicCondition extends IFireDoc {
137
137
  notes?: string | null; // Observações adicionais
138
138
  }
139
139
 
140
+ export type AllergyKind = "Food" | "Drug" | "Insect" | "Other";
141
+ export enum IAllergyKind {
142
+ Food = "Food",
143
+ Drug = "Drug",
144
+ Insect = "Insect",
145
+ Other = "Other",
146
+ }
147
+
140
148
  export interface IAllergy extends IFireDoc {
141
149
  code: string;
142
150
  name: string;
143
- kind?: "Food" | "Drug" | "Insect" | "Other" | null;
151
+ kind?: AllergyKind | null;
144
152
  }
145
153
 
146
154
  export interface IMedicalCouncil extends IFireDoc {
@@ -1,7 +1,7 @@
1
1
  export * from "../fb_collections";
2
2
  import { IProfile } from "../../evo-people";
3
3
  import type { FirestoreDocumentReference, IAddress, IContact, ITag } from "../../shared";
4
- import { IAllergy, IMedication } from "../dic";
4
+ import { IMedication } from "../dic";
5
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
6
  export declare enum IMedPeopleAction {
7
7
  Create_professional = "CREATE_PROFESSIONAL",
@@ -113,7 +113,7 @@ export interface IPatient extends IProfile {
113
113
  height_cm?: number | null;
114
114
  weight_kg?: number | null;
115
115
  blood_type?: BloodType | null;
116
- allergies?: IAllergy[] | null;
116
+ allergies?: IPatientAllergy[] | null;
117
117
  chronic_conditions?: IPatientChronicCondition[] | null;
118
118
  tags?: ITag[] | null;
119
119
  userRef?: FirestoreDocumentReference;
@@ -176,7 +176,7 @@ export interface IPatient extends IProfile {
176
176
  height_cm?: number | null; // Altura em centímetros
177
177
  weight_kg?: number | null; // Peso em kg
178
178
  blood_type?: BloodType | null; // Tipo sanguíneo
179
- allergies?: IAllergy[] | null; // Lista de alergias conhecidas
179
+ allergies?: IPatientAllergy[] | null; // Lista de alergias conhecidas
180
180
  chronic_conditions?: IPatientChronicCondition[] | null; // Lista de doenças crônicas do paciente
181
181
  tags?: ITag[] | null;
182
182
  userRef?: FirestoreDocumentReference;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.2.26",
3
+ "version": "1.2.27",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",