c2-clinical 1.0.84 → 1.0.86

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.
@@ -1,6 +1,6 @@
1
1
  import { Schema, Types } from "mongoose";
2
2
  import { IDefault } from "../Default";
3
- import { CategoryFormEnum, TypeAnswerEnum, TypeButtonAction, TypeFormUnitEnum, TypeOutputValidationEnum, TypeTipEnum, TypeValidationEnum, VariantViewEnum } from "../enum";
3
+ import { CategoryFormEnum, TypeAnswerEnum, TypeButtonAction, TypeFormUnitEnum, TypeOutputValidationEnum, TypeTipEnum, TypeValidationEnum } from "../enum";
4
4
  import { IForm } from "./Form";
5
5
  export interface IModalConfig {
6
6
  title: string;
@@ -8,6 +8,9 @@ export interface IModalConfig {
8
8
  labelButtonCancel: string;
9
9
  labelButtonConfirm: string;
10
10
  }
11
+ export interface IGroupConfig {
12
+ showTips: boolean;
13
+ }
11
14
  export interface ITip {
12
15
  type: TypeTipEnum;
13
16
  title: string;
@@ -44,7 +47,6 @@ export interface IFormUnit extends IDefault {
44
47
  typeAnswer: TypeAnswerEnum;
45
48
  defaultAnswer: string;
46
49
  category: CategoryFormEnum;
47
- typeChoiceView: VariantViewEnum;
48
50
  typeButtonAction: TypeButtonAction;
49
51
  measurementUnit: string;
50
52
  options: IQuestionOption[];
@@ -55,14 +57,15 @@ export interface IFormUnit extends IDefault {
55
57
  show: boolean;
56
58
  readOnly: boolean;
57
59
  required: boolean;
60
+ ellegibleForComparison: boolean;
58
61
  codeEnableFreeText: string;
59
62
  labelFreeText: string;
60
63
  graphicData: any;
61
64
  requestGraphicData: IRequestGraphicData[];
62
65
  children?: IFormUnit[];
63
66
  modalConfig?: IModalConfig;
64
- showTips?: boolean;
65
67
  tips?: ITip[];
68
+ groupConfig: IGroupConfig;
66
69
  }
67
70
  export interface IQuestionOption {
68
71
  sequence: number;
@@ -219,6 +222,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
219
222
  }>;
220
223
  show: any;
221
224
  readOnly: any;
225
+ ellegibleForComparison: any;
222
226
  requestGraphicData: Types.DocumentArray<{
223
227
  method: string;
224
228
  url: string;
@@ -235,7 +239,6 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
235
239
  body?: any;
236
240
  dataset?: any;
237
241
  }>;
238
- showTips: any;
239
242
  tips: Types.DocumentArray<{
240
243
  type: string;
241
244
  text?: string | null | undefined;
@@ -275,6 +278,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
275
278
  labelFreeText?: string | null | undefined;
276
279
  graphicData?: any;
277
280
  modalConfig?: any;
281
+ groupConfig?: any;
278
282
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
279
283
  type: string;
280
284
  required: any;
@@ -330,6 +334,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
330
334
  }>;
331
335
  show: any;
332
336
  readOnly: any;
337
+ ellegibleForComparison: any;
333
338
  requestGraphicData: Types.DocumentArray<{
334
339
  method: string;
335
340
  url: string;
@@ -346,7 +351,6 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
346
351
  body?: any;
347
352
  dataset?: any;
348
353
  }>;
349
- showTips: any;
350
354
  tips: Types.DocumentArray<{
351
355
  type: string;
352
356
  text?: string | null | undefined;
@@ -386,6 +390,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
386
390
  labelFreeText?: string | null | undefined;
387
391
  graphicData?: any;
388
392
  modalConfig?: any;
393
+ groupConfig?: any;
389
394
  }>, {}> & import("mongoose").FlatRecord<{} & {
390
395
  type: string;
391
396
  required: any;
@@ -441,6 +446,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
441
446
  }>;
442
447
  show: any;
443
448
  readOnly: any;
449
+ ellegibleForComparison: any;
444
450
  requestGraphicData: Types.DocumentArray<{
445
451
  method: string;
446
452
  url: string;
@@ -457,7 +463,6 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
457
463
  body?: any;
458
464
  dataset?: any;
459
465
  }>;
460
- showTips: any;
461
466
  tips: Types.DocumentArray<{
462
467
  type: string;
463
468
  text?: string | null | undefined;
@@ -497,6 +502,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
497
502
  labelFreeText?: string | null | undefined;
498
503
  graphicData?: any;
499
504
  modalConfig?: any;
505
+ groupConfig?: any;
500
506
  }> & {
501
507
  _id: Types.ObjectId;
502
508
  } & {
@@ -60,6 +60,7 @@ exports.FormUnitSchema = new mongoose_1.Schema({
60
60
  show: { type: Boolean, required: true, default: true }, //determina se a pergunta é exibida nos formulario (IDADE EM DIAS POR EXEMPLO, perguntas necessárias para alguns calculos mas q nao fazem sentido exibi-las)
61
61
  readOnly: { type: Boolean, default: false },
62
62
  required: { type: Boolean, default: false },
63
+ ellegibleForComparison: { type: Boolean, default: false },
63
64
  //DADOS PARA PERGUNTAS CHOICE_SINGLE E CHOICE_MULTIPLE
64
65
  codeEnableFreeText: { type: String },
65
66
  labelFreeText: { type: String },
@@ -75,7 +76,12 @@ exports.FormUnitSchema = new mongoose_1.Schema({
75
76
  labelButtonConfirm: { type: String }
76
77
  }
77
78
  },
78
- showTips: { type: Boolean, default: true }, // Indica se os tips serão exibidos ou não, replicado aos filhos (via parent)
79
+ //DADOS PARA GRUPO
80
+ groupConfig: {
81
+ type: {
82
+ showTips: { type: Boolean, default: true }
83
+ }
84
+ },
79
85
  tips: {
80
86
  type: [
81
87
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-clinical",
3
- "version": "1.0.84",
3
+ "version": "1.0.86",
4
4
  "description": "Biblioteca Typescript para API NodeJS",
5
5
  "repository": "https://github.com/cabralsilva/c2-clinical.git",
6
6
  "author": "Daniel Cabral <cabralconsultoriaemsoftware@gmail.com>",