tychat-contracts 1.6.63 → 1.6.65
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.
|
@@ -8,9 +8,19 @@ export declare class CreatePatientDto {
|
|
|
8
8
|
gender?: string | null;
|
|
9
9
|
address?: string | null;
|
|
10
10
|
emergencyContact?: string | null;
|
|
11
|
+
cns?: string | null;
|
|
12
|
+
heightCm?: number | null;
|
|
13
|
+
weightKg?: number | null;
|
|
14
|
+
maritalStatus?: string | null;
|
|
15
|
+
secondaryPhone?: string | null;
|
|
16
|
+
bloodType?: string | null;
|
|
17
|
+
rhFactor?: string | null;
|
|
18
|
+
allergies?: string | null;
|
|
11
19
|
hasDisability: boolean;
|
|
12
20
|
disabilityDescription?: string | null;
|
|
13
21
|
initialObservation?: string | null;
|
|
14
22
|
observation?: string | null;
|
|
23
|
+
avatarStorageId?: string | null;
|
|
24
|
+
avatarObjectKey?: string | null;
|
|
15
25
|
}
|
|
16
26
|
//# sourceMappingURL=create-patient.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-patient.dto.d.ts","sourceRoot":"","sources":["../../src/patients/create-patient.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-patient.dto.d.ts","sourceRoot":"","sources":["../../src/patients/create-patient.dto.ts"],"names":[],"mappings":"AAcA,qBAAa,gBAAgB;IAS3B,IAAI,EAAE,MAAM,CAAC;IAUb,GAAG,EAAE,MAAM,CAAC;IAOZ,SAAS,EAAE,MAAM,CAAC;IAUlB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAUtB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAUtB,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAUnB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAUvB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAUxB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAUjC,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAQpB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAQzB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAUzB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAS9B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAS/B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAS1B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IASzB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAO1B,aAAa,EAAE,OAAO,CAAC;IAWvB,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAUtC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAYnC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAS5B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAShC,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC"}
|
|
@@ -23,10 +23,20 @@ class CreatePatientDto {
|
|
|
23
23
|
gender;
|
|
24
24
|
address;
|
|
25
25
|
emergencyContact;
|
|
26
|
+
cns;
|
|
27
|
+
heightCm;
|
|
28
|
+
weightKg;
|
|
29
|
+
maritalStatus;
|
|
30
|
+
secondaryPhone;
|
|
31
|
+
bloodType;
|
|
32
|
+
rhFactor;
|
|
33
|
+
allergies;
|
|
26
34
|
hasDisability;
|
|
27
35
|
disabilityDescription;
|
|
28
36
|
initialObservation;
|
|
29
37
|
observation;
|
|
38
|
+
avatarStorageId;
|
|
39
|
+
avatarObjectKey;
|
|
30
40
|
}
|
|
31
41
|
exports.CreatePatientDto = CreatePatientDto;
|
|
32
42
|
__decorate([
|
|
@@ -125,6 +135,86 @@ __decorate([
|
|
|
125
135
|
(0, class_validator_1.MaxLength)(30),
|
|
126
136
|
__metadata("design:type", Object)
|
|
127
137
|
], CreatePatientDto.prototype, "emergencyContact", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
140
|
+
description: 'Cartão Nacional de Saúde (15 dígitos)',
|
|
141
|
+
example: '123456789012345',
|
|
142
|
+
maxLength: 15,
|
|
143
|
+
}),
|
|
144
|
+
(0, class_validator_1.IsString)(),
|
|
145
|
+
(0, class_validator_1.IsOptional)(),
|
|
146
|
+
(0, class_validator_1.MaxLength)(15),
|
|
147
|
+
__metadata("design:type", Object)
|
|
148
|
+
], CreatePatientDto.prototype, "cns", void 0);
|
|
149
|
+
__decorate([
|
|
150
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
151
|
+
description: 'Altura em centímetros',
|
|
152
|
+
example: 170.5,
|
|
153
|
+
}),
|
|
154
|
+
(0, class_validator_1.IsOptional)(),
|
|
155
|
+
(0, class_validator_1.IsNumber)(),
|
|
156
|
+
__metadata("design:type", Object)
|
|
157
|
+
], CreatePatientDto.prototype, "heightCm", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
160
|
+
description: 'Peso em quilogramas',
|
|
161
|
+
example: 72.4,
|
|
162
|
+
}),
|
|
163
|
+
(0, class_validator_1.IsOptional)(),
|
|
164
|
+
(0, class_validator_1.IsNumber)(),
|
|
165
|
+
__metadata("design:type", Object)
|
|
166
|
+
], CreatePatientDto.prototype, "weightKg", void 0);
|
|
167
|
+
__decorate([
|
|
168
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
169
|
+
description: 'Estado civil',
|
|
170
|
+
example: 'casado',
|
|
171
|
+
maxLength: 50,
|
|
172
|
+
}),
|
|
173
|
+
(0, class_validator_1.IsString)(),
|
|
174
|
+
(0, class_validator_1.IsOptional)(),
|
|
175
|
+
(0, class_validator_1.MaxLength)(50),
|
|
176
|
+
__metadata("design:type", Object)
|
|
177
|
+
], CreatePatientDto.prototype, "maritalStatus", void 0);
|
|
178
|
+
__decorate([
|
|
179
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
180
|
+
description: 'Telefone secundário ou de emergência adicional',
|
|
181
|
+
maxLength: 30,
|
|
182
|
+
}),
|
|
183
|
+
(0, class_validator_1.IsString)(),
|
|
184
|
+
(0, class_validator_1.IsOptional)(),
|
|
185
|
+
(0, class_validator_1.MaxLength)(30),
|
|
186
|
+
__metadata("design:type", Object)
|
|
187
|
+
], CreatePatientDto.prototype, "secondaryPhone", void 0);
|
|
188
|
+
__decorate([
|
|
189
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
190
|
+
description: 'Tipo sanguíneo (A, B, AB, O)',
|
|
191
|
+
maxLength: 10,
|
|
192
|
+
}),
|
|
193
|
+
(0, class_validator_1.IsString)(),
|
|
194
|
+
(0, class_validator_1.IsOptional)(),
|
|
195
|
+
(0, class_validator_1.MaxLength)(10),
|
|
196
|
+
__metadata("design:type", Object)
|
|
197
|
+
], CreatePatientDto.prototype, "bloodType", void 0);
|
|
198
|
+
__decorate([
|
|
199
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
200
|
+
description: 'Fator RH (positivo ou negativo)',
|
|
201
|
+
maxLength: 20,
|
|
202
|
+
}),
|
|
203
|
+
(0, class_validator_1.IsString)(),
|
|
204
|
+
(0, class_validator_1.IsOptional)(),
|
|
205
|
+
(0, class_validator_1.MaxLength)(20),
|
|
206
|
+
__metadata("design:type", Object)
|
|
207
|
+
], CreatePatientDto.prototype, "rhFactor", void 0);
|
|
208
|
+
__decorate([
|
|
209
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
210
|
+
description: 'Alergias conhecidas',
|
|
211
|
+
maxLength: 1000,
|
|
212
|
+
}),
|
|
213
|
+
(0, class_validator_1.IsString)(),
|
|
214
|
+
(0, class_validator_1.IsOptional)(),
|
|
215
|
+
(0, class_validator_1.MaxLength)(1000),
|
|
216
|
+
__metadata("design:type", Object)
|
|
217
|
+
], CreatePatientDto.prototype, "allergies", void 0);
|
|
128
218
|
__decorate([
|
|
129
219
|
(0, swagger_1.ApiProperty)({
|
|
130
220
|
description: 'Indica se o paciente possui alguma deficiência',
|
|
@@ -167,3 +257,23 @@ __decorate([
|
|
|
167
257
|
(0, class_transformer_1.Transform)(({ value, obj }) => value ?? obj.notes ?? obj.observation),
|
|
168
258
|
__metadata("design:type", Object)
|
|
169
259
|
], CreatePatientDto.prototype, "observation", void 0);
|
|
260
|
+
__decorate([
|
|
261
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
262
|
+
description: 'ID do objeto no storage da foto de perfil',
|
|
263
|
+
maxLength: 64,
|
|
264
|
+
}),
|
|
265
|
+
(0, class_validator_1.IsString)(),
|
|
266
|
+
(0, class_validator_1.IsOptional)(),
|
|
267
|
+
(0, class_validator_1.MaxLength)(64),
|
|
268
|
+
__metadata("design:type", Object)
|
|
269
|
+
], CreatePatientDto.prototype, "avatarStorageId", void 0);
|
|
270
|
+
__decorate([
|
|
271
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
272
|
+
description: 'Chave do objeto no storage da foto de perfil',
|
|
273
|
+
maxLength: 1024,
|
|
274
|
+
}),
|
|
275
|
+
(0, class_validator_1.IsString)(),
|
|
276
|
+
(0, class_validator_1.IsOptional)(),
|
|
277
|
+
(0, class_validator_1.MaxLength)(1024),
|
|
278
|
+
__metadata("design:type", Object)
|
|
279
|
+
], CreatePatientDto.prototype, "avatarObjectKey", void 0);
|
package/package.json
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
IsDateString,
|
|
5
5
|
IsEmail,
|
|
6
6
|
IsNotEmpty,
|
|
7
|
+
IsNumber,
|
|
7
8
|
IsOptional,
|
|
8
9
|
IsString,
|
|
9
10
|
Length,
|
|
@@ -99,6 +100,78 @@ export class CreatePatientDto {
|
|
|
99
100
|
@MaxLength(30)
|
|
100
101
|
emergencyContact?: string | null;
|
|
101
102
|
|
|
103
|
+
@ApiPropertyOptional({
|
|
104
|
+
description: 'Cartão Nacional de Saúde (15 dígitos)',
|
|
105
|
+
example: '123456789012345',
|
|
106
|
+
maxLength: 15,
|
|
107
|
+
})
|
|
108
|
+
@IsString()
|
|
109
|
+
@IsOptional()
|
|
110
|
+
@MaxLength(15)
|
|
111
|
+
cns?: string | null;
|
|
112
|
+
|
|
113
|
+
@ApiPropertyOptional({
|
|
114
|
+
description: 'Altura em centímetros',
|
|
115
|
+
example: 170.5,
|
|
116
|
+
})
|
|
117
|
+
@IsOptional()
|
|
118
|
+
@IsNumber()
|
|
119
|
+
heightCm?: number | null;
|
|
120
|
+
|
|
121
|
+
@ApiPropertyOptional({
|
|
122
|
+
description: 'Peso em quilogramas',
|
|
123
|
+
example: 72.4,
|
|
124
|
+
})
|
|
125
|
+
@IsOptional()
|
|
126
|
+
@IsNumber()
|
|
127
|
+
weightKg?: number | null;
|
|
128
|
+
|
|
129
|
+
@ApiPropertyOptional({
|
|
130
|
+
description: 'Estado civil',
|
|
131
|
+
example: 'casado',
|
|
132
|
+
maxLength: 50,
|
|
133
|
+
})
|
|
134
|
+
@IsString()
|
|
135
|
+
@IsOptional()
|
|
136
|
+
@MaxLength(50)
|
|
137
|
+
maritalStatus?: string | null;
|
|
138
|
+
|
|
139
|
+
@ApiPropertyOptional({
|
|
140
|
+
description: 'Telefone secundário ou de emergência adicional',
|
|
141
|
+
maxLength: 30,
|
|
142
|
+
})
|
|
143
|
+
@IsString()
|
|
144
|
+
@IsOptional()
|
|
145
|
+
@MaxLength(30)
|
|
146
|
+
secondaryPhone?: string | null;
|
|
147
|
+
|
|
148
|
+
@ApiPropertyOptional({
|
|
149
|
+
description: 'Tipo sanguíneo (A, B, AB, O)',
|
|
150
|
+
maxLength: 10,
|
|
151
|
+
})
|
|
152
|
+
@IsString()
|
|
153
|
+
@IsOptional()
|
|
154
|
+
@MaxLength(10)
|
|
155
|
+
bloodType?: string | null;
|
|
156
|
+
|
|
157
|
+
@ApiPropertyOptional({
|
|
158
|
+
description: 'Fator RH (positivo ou negativo)',
|
|
159
|
+
maxLength: 20,
|
|
160
|
+
})
|
|
161
|
+
@IsString()
|
|
162
|
+
@IsOptional()
|
|
163
|
+
@MaxLength(20)
|
|
164
|
+
rhFactor?: string | null;
|
|
165
|
+
|
|
166
|
+
@ApiPropertyOptional({
|
|
167
|
+
description: 'Alergias conhecidas',
|
|
168
|
+
maxLength: 1000,
|
|
169
|
+
})
|
|
170
|
+
@IsString()
|
|
171
|
+
@IsOptional()
|
|
172
|
+
@MaxLength(1000)
|
|
173
|
+
allergies?: string | null;
|
|
174
|
+
|
|
102
175
|
@ApiProperty({
|
|
103
176
|
description: 'Indica se o paciente possui alguma deficiência',
|
|
104
177
|
example: true,
|
|
@@ -138,5 +211,23 @@ export class CreatePatientDto {
|
|
|
138
211
|
@MaxLength(2000)
|
|
139
212
|
@Transform(({ value, obj }) => value ?? obj.notes ?? obj.observation)
|
|
140
213
|
observation?: string | null;
|
|
214
|
+
|
|
215
|
+
@ApiPropertyOptional({
|
|
216
|
+
description: 'ID do objeto no storage da foto de perfil',
|
|
217
|
+
maxLength: 64,
|
|
218
|
+
})
|
|
219
|
+
@IsString()
|
|
220
|
+
@IsOptional()
|
|
221
|
+
@MaxLength(64)
|
|
222
|
+
avatarStorageId?: string | null;
|
|
223
|
+
|
|
224
|
+
@ApiPropertyOptional({
|
|
225
|
+
description: 'Chave do objeto no storage da foto de perfil',
|
|
226
|
+
maxLength: 1024,
|
|
227
|
+
})
|
|
228
|
+
@IsString()
|
|
229
|
+
@IsOptional()
|
|
230
|
+
@MaxLength(1024)
|
|
231
|
+
avatarObjectKey?: string | null;
|
|
141
232
|
}
|
|
142
233
|
|