c2-clinical 1.0.120 → 1.0.121

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.
@@ -16,7 +16,7 @@ class BuildTreeFlowItem {
16
16
  const lines = config.children.reduce((acc, item) => {
17
17
  if (!acc.some((a) => a.line === item.line)) {
18
18
  acc.push({
19
- id: GenerateUUIDFlowItem_1.default.execute(),
19
+ id: item.lineId ?? GenerateUUIDFlowItem_1.default.execute(),
20
20
  line: item.line,
21
21
  collumns: []
22
22
  });
@@ -11,7 +11,7 @@ class ConvertRowToFormUnitsFlowItem {
11
11
  iterate(row) {
12
12
  let formUnits = [];
13
13
  row.collumns?.forEach((collumn) => {
14
- formUnits.push({ ...collumn, lines: undefined });
14
+ formUnits.push({ ...collumn, lineId: row.id });
15
15
  if (collumn.lines?.length) {
16
16
  collumn.lines.forEach((line) => {
17
17
  formUnits = [...formUnits, ...this.iterate(line)];
@@ -95,6 +95,7 @@ export interface IFormUnit extends IDefault {
95
95
  }[];
96
96
  };
97
97
  isAnalyticalResult: boolean;
98
+ lineId?: string;
98
99
  }
99
100
  export interface IQuestionOption {
100
101
  sequence: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-clinical",
3
- "version": "1.0.120",
3
+ "version": "1.0.121",
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>",