tychat-contracts 1.6.63 → 1.6.64
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,6 +8,14 @@ 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;
|
|
@@ -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;CAC7B"}
|
|
@@ -23,6 +23,14 @@ 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;
|
|
@@ -125,6 +133,86 @@ __decorate([
|
|
|
125
133
|
(0, class_validator_1.MaxLength)(30),
|
|
126
134
|
__metadata("design:type", Object)
|
|
127
135
|
], CreatePatientDto.prototype, "emergencyContact", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
138
|
+
description: 'Cartão Nacional de Saúde (15 dígitos)',
|
|
139
|
+
example: '123456789012345',
|
|
140
|
+
maxLength: 15,
|
|
141
|
+
}),
|
|
142
|
+
(0, class_validator_1.IsString)(),
|
|
143
|
+
(0, class_validator_1.IsOptional)(),
|
|
144
|
+
(0, class_validator_1.MaxLength)(15),
|
|
145
|
+
__metadata("design:type", Object)
|
|
146
|
+
], CreatePatientDto.prototype, "cns", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
149
|
+
description: 'Altura em centímetros',
|
|
150
|
+
example: 170.5,
|
|
151
|
+
}),
|
|
152
|
+
(0, class_validator_1.IsOptional)(),
|
|
153
|
+
(0, class_validator_1.IsNumber)(),
|
|
154
|
+
__metadata("design:type", Object)
|
|
155
|
+
], CreatePatientDto.prototype, "heightCm", void 0);
|
|
156
|
+
__decorate([
|
|
157
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
158
|
+
description: 'Peso em quilogramas',
|
|
159
|
+
example: 72.4,
|
|
160
|
+
}),
|
|
161
|
+
(0, class_validator_1.IsOptional)(),
|
|
162
|
+
(0, class_validator_1.IsNumber)(),
|
|
163
|
+
__metadata("design:type", Object)
|
|
164
|
+
], CreatePatientDto.prototype, "weightKg", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
167
|
+
description: 'Estado civil',
|
|
168
|
+
example: 'casado',
|
|
169
|
+
maxLength: 50,
|
|
170
|
+
}),
|
|
171
|
+
(0, class_validator_1.IsString)(),
|
|
172
|
+
(0, class_validator_1.IsOptional)(),
|
|
173
|
+
(0, class_validator_1.MaxLength)(50),
|
|
174
|
+
__metadata("design:type", Object)
|
|
175
|
+
], CreatePatientDto.prototype, "maritalStatus", void 0);
|
|
176
|
+
__decorate([
|
|
177
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
178
|
+
description: 'Telefone secundário ou de emergência adicional',
|
|
179
|
+
maxLength: 30,
|
|
180
|
+
}),
|
|
181
|
+
(0, class_validator_1.IsString)(),
|
|
182
|
+
(0, class_validator_1.IsOptional)(),
|
|
183
|
+
(0, class_validator_1.MaxLength)(30),
|
|
184
|
+
__metadata("design:type", Object)
|
|
185
|
+
], CreatePatientDto.prototype, "secondaryPhone", void 0);
|
|
186
|
+
__decorate([
|
|
187
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
188
|
+
description: 'Tipo sanguíneo (A, B, AB, O)',
|
|
189
|
+
maxLength: 10,
|
|
190
|
+
}),
|
|
191
|
+
(0, class_validator_1.IsString)(),
|
|
192
|
+
(0, class_validator_1.IsOptional)(),
|
|
193
|
+
(0, class_validator_1.MaxLength)(10),
|
|
194
|
+
__metadata("design:type", Object)
|
|
195
|
+
], CreatePatientDto.prototype, "bloodType", void 0);
|
|
196
|
+
__decorate([
|
|
197
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
198
|
+
description: 'Fator RH (positivo ou negativo)',
|
|
199
|
+
maxLength: 20,
|
|
200
|
+
}),
|
|
201
|
+
(0, class_validator_1.IsString)(),
|
|
202
|
+
(0, class_validator_1.IsOptional)(),
|
|
203
|
+
(0, class_validator_1.MaxLength)(20),
|
|
204
|
+
__metadata("design:type", Object)
|
|
205
|
+
], CreatePatientDto.prototype, "rhFactor", void 0);
|
|
206
|
+
__decorate([
|
|
207
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
208
|
+
description: 'Alergias conhecidas',
|
|
209
|
+
maxLength: 1000,
|
|
210
|
+
}),
|
|
211
|
+
(0, class_validator_1.IsString)(),
|
|
212
|
+
(0, class_validator_1.IsOptional)(),
|
|
213
|
+
(0, class_validator_1.MaxLength)(1000),
|
|
214
|
+
__metadata("design:type", Object)
|
|
215
|
+
], CreatePatientDto.prototype, "allergies", void 0);
|
|
128
216
|
__decorate([
|
|
129
217
|
(0, swagger_1.ApiProperty)({
|
|
130
218
|
description: 'Indica se o paciente possui alguma deficiência',
|
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,
|