@more-life/types-more-life-nest 0.72.0 → 0.74.0

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.
Files changed (44) hide show
  1. package/dist/dto/application/applicationEmbedded.dto.d.ts +3 -1
  2. package/dist/dto/application/applicationEmbedded.dto.js +9 -1
  3. package/dist/dto/application/applicationEmbedded.dto.js.map +1 -1
  4. package/dist/dto/geridocDiagnosis/geridocDiagnosis.dto.d.ts +16 -0
  5. package/dist/dto/geridocDiagnosis/geridocDiagnosis.dto.js +62 -0
  6. package/dist/dto/geridocDiagnosis/geridocDiagnosis.dto.js.map +1 -0
  7. package/dist/dto/geridocDiagnosis/geridocDiagnosisEmbedded.dto.d.ts +4 -0
  8. package/dist/dto/geridocDiagnosis/geridocDiagnosisEmbedded.dto.js +31 -0
  9. package/dist/dto/geridocDiagnosis/geridocDiagnosisEmbedded.dto.js.map +1 -0
  10. package/dist/dto/geridocDiagnosis/geridocDiagnosisPage.dto.d.ts +12 -0
  11. package/dist/dto/geridocDiagnosis/geridocDiagnosisPage.dto.js +62 -0
  12. package/dist/dto/geridocDiagnosis/geridocDiagnosisPage.dto.js.map +1 -0
  13. package/dist/dto/geridocMedication/geridocMedication.dto.d.ts +15 -0
  14. package/dist/dto/geridocMedication/geridocMedication.dto.js +56 -0
  15. package/dist/dto/geridocMedication/geridocMedication.dto.js.map +1 -0
  16. package/dist/dto/geridocMedication/geridocMedicationEmbedded.dto.d.ts +4 -0
  17. package/dist/dto/geridocMedication/geridocMedicationEmbedded.dto.js +32 -0
  18. package/dist/dto/geridocMedication/geridocMedicationEmbedded.dto.js.map +1 -0
  19. package/dist/dto/geridocMedication/geridocMedicationPage.dto.d.ts +12 -0
  20. package/dist/dto/geridocMedication/geridocMedicationPage.dto.js +62 -0
  21. package/dist/dto/geridocMedication/geridocMedicationPage.dto.js.map +1 -0
  22. package/dist/dto/geridocPatient/geridocPatient.dto.d.ts +14 -0
  23. package/dist/dto/geridocPatient/geridocPatient.dto.js +50 -0
  24. package/dist/dto/geridocPatient/geridocPatient.dto.js.map +1 -0
  25. package/dist/dto/geridocPatient/geridocPatientEmbedded.dto.d.ts +10 -0
  26. package/dist/dto/geridocPatient/geridocPatientEmbedded.dto.js +67 -0
  27. package/dist/dto/geridocPatient/geridocPatientEmbedded.dto.js.map +1 -0
  28. package/dist/dto/geridocPatient/geridocPatientPage.dto.d.ts +12 -0
  29. package/dist/dto/geridocPatient/geridocPatientPage.dto.js +62 -0
  30. package/dist/dto/geridocPatient/geridocPatientPage.dto.js.map +1 -0
  31. package/dist/dto/geridocTherapyGoal/geridocTherapyGoal.dto.d.ts +14 -0
  32. package/dist/dto/geridocTherapyGoal/geridocTherapyGoal.dto.js +50 -0
  33. package/dist/dto/geridocTherapyGoal/geridocTherapyGoal.dto.js.map +1 -0
  34. package/dist/dto/geridocTherapyGoal/geridocTherapyGoalEmbedded.dto.d.ts +4 -0
  35. package/dist/dto/geridocTherapyGoal/geridocTherapyGoalEmbedded.dto.js +31 -0
  36. package/dist/dto/geridocTherapyGoal/geridocTherapyGoalEmbedded.dto.js.map +1 -0
  37. package/dist/dto/geridocTherapyGoal/geridocTherapyGoalPage.dto.d.ts +12 -0
  38. package/dist/dto/geridocTherapyGoal/geridocTherapyGoalPage.dto.js +62 -0
  39. package/dist/dto/geridocTherapyGoal/geridocTherapyGoalPage.dto.js.map +1 -0
  40. package/dist/index.d.ts +13 -1
  41. package/dist/index.js +27 -3
  42. package/dist/index.js.map +1 -1
  43. package/dist/tsconfig.build.tsbuildinfo +1 -1
  44. package/package.json +1 -1
@@ -5,7 +5,8 @@ import { ExtensionDto } from '../extension/extension.dto';
5
5
  import { ApplicationCalculatedDto } from './applicationCalculated.dto';
6
6
  import { ApplicationInsuranceDto } from '../applicationInsurance/applicationInsurance.dto';
7
7
  import { CareFacilityDto } from '../careFacility/careFacility.dto';
8
- import { TherapySummaryDto } from "../therapySummary/therapySummary.dto";
8
+ import { TherapySummaryDto } from '../therapySummary/therapySummary.dto';
9
+ import { GeridocPatientDto } from '../geridocPatient/geridocPatient.dto';
9
10
  export declare class ApplicationEmbeddedDto {
10
11
  patientInfo?: PatientInfoDto;
11
12
  extensions?: ExtensionDto[];
@@ -15,6 +16,7 @@ export declare class ApplicationEmbeddedDto {
15
16
  applicationInsurances?: ApplicationInsuranceDto[];
16
17
  calculated?: ApplicationCalculatedDto;
17
18
  therapySummary?: TherapySummaryDto;
19
+ geridocPatient?: GeridocPatientDto;
18
20
  createdBy?: UserDto;
19
21
  updatedBy?: UserDto;
20
22
  }
@@ -22,9 +22,10 @@ const applicationCalculated_dto_1 = require("./applicationCalculated.dto");
22
22
  const applicationInsurance_dto_1 = require("../applicationInsurance/applicationInsurance.dto");
23
23
  const careFacility_dto_1 = require("../careFacility/careFacility.dto");
24
24
  const therapySummary_dto_1 = require("../therapySummary/therapySummary.dto");
25
+ const geridocPatient_dto_1 = require("../geridocPatient/geridocPatient.dto");
25
26
  class ApplicationEmbeddedDto {
26
27
  static _OPENAPI_METADATA_FACTORY() {
27
- return { patientInfo: { required: false, type: () => require("../patient/patientInfo.dto").PatientInfoDto }, extensions: { required: false, type: () => [require("../extension/extension.dto").ExtensionDto] }, latestExtensionView: { required: false, type: () => require("../extension/extension.dto").ExtensionDto }, practitionerInfo: { required: false, type: () => require("../generalPractionerInfo/generalPractitionerInfo.dto").GeneralPractitionerInfoDto }, careFacility: { required: false, type: () => require("../careFacility/careFacility.dto").CareFacilityDto }, applicationInsurances: { required: false, type: () => [require("../applicationInsurance/applicationInsurance.dto").ApplicationInsuranceDto] }, calculated: { required: false, type: () => require("./applicationCalculated.dto").ApplicationCalculatedDto }, therapySummary: { required: false, type: () => require("../therapySummary/therapySummary.dto").TherapySummaryDto }, createdBy: { required: false, type: () => require("../user/user.dto").UserDto }, updatedBy: { required: false, type: () => require("../user/user.dto").UserDto } };
28
+ return { patientInfo: { required: false, type: () => require("../patient/patientInfo.dto").PatientInfoDto }, extensions: { required: false, type: () => [require("../extension/extension.dto").ExtensionDto] }, latestExtensionView: { required: false, type: () => require("../extension/extension.dto").ExtensionDto }, practitionerInfo: { required: false, type: () => require("../generalPractionerInfo/generalPractitionerInfo.dto").GeneralPractitionerInfoDto }, careFacility: { required: false, type: () => require("../careFacility/careFacility.dto").CareFacilityDto }, applicationInsurances: { required: false, type: () => [require("../applicationInsurance/applicationInsurance.dto").ApplicationInsuranceDto] }, calculated: { required: false, type: () => require("./applicationCalculated.dto").ApplicationCalculatedDto }, therapySummary: { required: false, type: () => require("../therapySummary/therapySummary.dto").TherapySummaryDto }, geridocPatient: { required: false, type: () => require("../geridocPatient/geridocPatient.dto").GeridocPatientDto }, createdBy: { required: false, type: () => require("../user/user.dto").UserDto }, updatedBy: { required: false, type: () => require("../user/user.dto").UserDto } };
28
29
  }
29
30
  }
30
31
  exports.ApplicationEmbeddedDto = ApplicationEmbeddedDto;
@@ -88,6 +89,13 @@ __decorate([
88
89
  (0, class_transformer_1.Expose)(),
89
90
  __metadata("design:type", therapySummary_dto_1.TherapySummaryDto)
90
91
  ], ApplicationEmbeddedDto.prototype, "therapySummary", void 0);
92
+ __decorate([
93
+ (0, nestjs_1.ApiProperty)({ type: () => geridocPatient_dto_1.GeridocPatientDto, required: false }),
94
+ (0, class_transformer_1.Type)(() => geridocPatient_dto_1.GeridocPatientDto),
95
+ (0, class_validator_1.IsOptional)(),
96
+ (0, class_transformer_1.Expose)(),
97
+ __metadata("design:type", geridocPatient_dto_1.GeridocPatientDto)
98
+ ], ApplicationEmbeddedDto.prototype, "geridocPatient", void 0);
91
99
  __decorate([
92
100
  (0, nestjs_1.ApiProperty)({ type: () => user_dto_1.UserDto, required: false }),
93
101
  (0, class_transformer_1.Type)(() => user_dto_1.UserDto),
@@ -1 +1 @@
1
- {"version":3,"file":"applicationEmbedded.dto.js","sourceRoot":"","sources":["../../../src/dto/application/applicationEmbedded.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAA6C;AAC7C,yDAAiD;AACj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AAA,oBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACrD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kBAAO,CAAC;IACnB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;8BACG,kBAAO;yDAAC;AAMpB;IAJC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACrD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kBAAO,CAAC;IACnB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;8BACG,kBAAO;yDAAC"}
@@ -0,0 +1,16 @@
1
+ import { GeridocDiagnosisEmbeddedDto } from './geridocDiagnosisEmbedded.dto';
2
+ declare const GeridocDiagnosisDto_base: new () => {
3
+ createdAt: string;
4
+ updatedAt: string;
5
+ _embedded?: GeridocDiagnosisEmbeddedDto;
6
+ };
7
+ export declare class GeridocDiagnosisDto extends GeridocDiagnosisDto_base {
8
+ id: string;
9
+ geridocPatientId: string;
10
+ diagnosisCode: string;
11
+ description: string;
12
+ diagnosisType: string;
13
+ static fromPlain(object: any): GeridocDiagnosisDto;
14
+ static fromEntity(entity: any): GeridocDiagnosisDto;
15
+ }
16
+ export {};
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.GeridocDiagnosisDto = void 0;
13
+ const openapi = require("@nestjs/swagger");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const nestjs_1 = require("../../nestjs");
16
+ const convertAndValidate_1 = require("../../util/convertAndValidate");
17
+ const base_dto_1 = require("../generic/base.dto");
18
+ const geridocDiagnosisEmbedded_dto_1 = require("./geridocDiagnosisEmbedded.dto");
19
+ const class_validator_1 = require("class-validator");
20
+ class GeridocDiagnosisDto extends (0, base_dto_1.BaseDto)(geridocDiagnosisEmbedded_dto_1.GeridocDiagnosisEmbeddedDto) {
21
+ static fromPlain(object) {
22
+ return (0, convertAndValidate_1.convertAndValidate)(GeridocDiagnosisDto, object);
23
+ }
24
+ static fromEntity(entity) {
25
+ return (0, convertAndValidate_1.convert)(GeridocDiagnosisDto, entity);
26
+ }
27
+ static _OPENAPI_METADATA_FACTORY() {
28
+ return { id: { required: true, type: () => String, format: "uuid" }, geridocPatientId: { required: true, type: () => String, format: "uuid" }, diagnosisCode: { required: true, type: () => String }, description: { required: true, type: () => String }, diagnosisType: { required: true, type: () => String } };
29
+ }
30
+ }
31
+ exports.GeridocDiagnosisDto = GeridocDiagnosisDto;
32
+ __decorate([
33
+ (0, nestjs_1.ApiProperty)({ type: String, format: 'uuid', required: true }),
34
+ (0, class_validator_1.IsUUID)(),
35
+ (0, class_transformer_1.Expose)(),
36
+ __metadata("design:type", String)
37
+ ], GeridocDiagnosisDto.prototype, "id", void 0);
38
+ __decorate([
39
+ (0, nestjs_1.ApiProperty)({ type: String, format: 'uuid', required: true }),
40
+ (0, class_validator_1.IsUUID)(),
41
+ (0, class_transformer_1.Expose)(),
42
+ __metadata("design:type", String)
43
+ ], GeridocDiagnosisDto.prototype, "geridocPatientId", void 0);
44
+ __decorate([
45
+ (0, nestjs_1.ApiProperty)({ type: String, required: true }),
46
+ (0, class_validator_1.IsString)(),
47
+ (0, class_transformer_1.Expose)(),
48
+ __metadata("design:type", String)
49
+ ], GeridocDiagnosisDto.prototype, "diagnosisCode", void 0);
50
+ __decorate([
51
+ (0, nestjs_1.ApiProperty)({ type: String, required: true }),
52
+ (0, class_validator_1.IsString)(),
53
+ (0, class_transformer_1.Expose)(),
54
+ __metadata("design:type", String)
55
+ ], GeridocDiagnosisDto.prototype, "description", void 0);
56
+ __decorate([
57
+ (0, nestjs_1.ApiProperty)({ type: String, required: true }),
58
+ (0, class_validator_1.IsString)(),
59
+ (0, class_transformer_1.Expose)(),
60
+ __metadata("design:type", String)
61
+ ], GeridocDiagnosisDto.prototype, "diagnosisType", void 0);
62
+ //# sourceMappingURL=geridocDiagnosis.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geridocDiagnosis.dto.js","sourceRoot":"","sources":["../../../src/dto/geridocDiagnosis/geridocDiagnosis.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yDAA2C;AAC3C,yCAA2C;AAC3C,sEAA4E;AAC5E,kDAA8C;AAC9C,iFAA6E;AAC7E,qDAAmD;AAEnD,MAAa,mBAAoB,SAAQ,IAAA,kBAAO,EAAC,0DAA2B,CAAC;IA0BrE,MAAM,CAAC,SAAS,CAAC,MAAW;QAClC,OAAO,IAAA,uCAAkB,EAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;IACxD,CAAC;IAEM,MAAM,CAAC,UAAU,CAAC,MAAW;QACnC,OAAO,IAAA,4BAAO,EAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;IAC7C,CAAC;;;;CACD;AAjCD,kDAiCC;AA7BA;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7D,IAAA,wBAAM,GAAE;IACR,IAAA,0BAAM,GAAE;;+CACG;AAKZ;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7D,IAAA,wBAAM,GAAE;IACR,IAAA,0BAAM,GAAE;;6DACiB;AAK1B;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,GAAE;;0DACc;AAKvB;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,GAAE;;wDACY;AAKrB;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,GAAE;;0DACc"}
@@ -0,0 +1,4 @@
1
+ import { GeridocPatientDto } from '../geridocPatient/geridocPatient.dto';
2
+ export declare class GeridocDiagnosisEmbeddedDto {
3
+ geridocPatient?: GeridocPatientDto;
4
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.GeridocDiagnosisEmbeddedDto = void 0;
13
+ const openapi = require("@nestjs/swagger");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const nestjs_1 = require("../../nestjs");
16
+ const class_validator_1 = require("class-validator");
17
+ const geridocPatient_dto_1 = require("../geridocPatient/geridocPatient.dto");
18
+ class GeridocDiagnosisEmbeddedDto {
19
+ static _OPENAPI_METADATA_FACTORY() {
20
+ return { geridocPatient: { required: false, type: () => require("../geridocPatient/geridocPatient.dto").GeridocPatientDto } };
21
+ }
22
+ }
23
+ exports.GeridocDiagnosisEmbeddedDto = GeridocDiagnosisEmbeddedDto;
24
+ __decorate([
25
+ (0, nestjs_1.ApiProperty)({ type: () => geridocPatient_dto_1.GeridocPatientDto, required: false }),
26
+ (0, class_validator_1.IsOptional)(),
27
+ (0, class_transformer_1.Type)(() => geridocPatient_dto_1.GeridocPatientDto),
28
+ (0, class_transformer_1.Expose)(),
29
+ __metadata("design:type", geridocPatient_dto_1.GeridocPatientDto)
30
+ ], GeridocDiagnosisEmbeddedDto.prototype, "geridocPatient", void 0);
31
+ //# sourceMappingURL=geridocDiagnosisEmbedded.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geridocDiagnosisEmbedded.dto.js","sourceRoot":"","sources":["../../../src/dto/geridocDiagnosis/geridocDiagnosisEmbedded.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yDAAiD;AACjD,yCAA2C;AAC3C,qDAA6C;AAC7C,6EAAyE;AAEzE,MAAa,2BAA2B;;;;CAMvC;AAND,kEAMC;AADA;IAJC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,sCAAiB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC/D,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,sCAAiB,CAAC;IAC7B,IAAA,0BAAM,GAAE;8BACQ,sCAAiB;mEAAC"}
@@ -0,0 +1,12 @@
1
+ import { PageDto } from '../generic/page.dto';
2
+ import { PageInfoDto } from '../generic/pageInfo.dto';
3
+ import { GeridocDiagnosisDto } from './geridocDiagnosis.dto';
4
+ declare class EmbeddedGeridocDiagnoses {
5
+ geridocDiagnoses?: GeridocDiagnosisDto[];
6
+ }
7
+ export declare class GeridocDiagnosisPageDto extends PageDto {
8
+ _embedded: EmbeddedGeridocDiagnoses;
9
+ static fromPlain(object: any): GeridocDiagnosisPageDto;
10
+ static fromEntityList(geridocDiagnoses: any[], _page: PageInfoDto): unknown;
11
+ }
12
+ export {};
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.GeridocDiagnosisPageDto = void 0;
16
+ const openapi = require("@nestjs/swagger");
17
+ const page_dto_1 = require("../generic/page.dto");
18
+ const class_transformer_1 = require("class-transformer");
19
+ const convertAndValidate_1 = require("../../util/convertAndValidate");
20
+ const transformEmbedded_1 = __importDefault(require("../../util/transformEmbedded"));
21
+ const nestjs_1 = require("../../nestjs");
22
+ const class_validator_1 = require("class-validator");
23
+ const geridocDiagnosis_dto_1 = require("./geridocDiagnosis.dto");
24
+ class EmbeddedGeridocDiagnoses {
25
+ static _OPENAPI_METADATA_FACTORY() {
26
+ return { geridocDiagnoses: { required: false, type: () => [require("./geridocDiagnosis.dto").GeridocDiagnosisDto] } };
27
+ }
28
+ }
29
+ __decorate([
30
+ (0, nestjs_1.ApiProperty)({
31
+ isArray: true,
32
+ type: () => geridocDiagnosis_dto_1.GeridocDiagnosisDto,
33
+ required: false,
34
+ }),
35
+ (0, class_transformer_1.Type)(() => geridocDiagnosis_dto_1.GeridocDiagnosisDto),
36
+ (0, class_validator_1.IsOptional)(),
37
+ (0, class_transformer_1.Expose)(),
38
+ __metadata("design:type", Array)
39
+ ], EmbeddedGeridocDiagnoses.prototype, "geridocDiagnoses", void 0);
40
+ class GeridocDiagnosisPageDto extends page_dto_1.PageDto {
41
+ static fromPlain(object) {
42
+ return (0, convertAndValidate_1.convertAndValidate)(GeridocDiagnosisPageDto, object);
43
+ }
44
+ static fromEntityList(geridocDiagnoses, _page) {
45
+ return (0, convertAndValidate_1.convert)(GeridocDiagnosisPageDto, {
46
+ geridocDiagnoses,
47
+ _page,
48
+ });
49
+ }
50
+ static _OPENAPI_METADATA_FACTORY() {
51
+ return { _embedded: { required: true, type: () => EmbeddedGeridocDiagnoses } };
52
+ }
53
+ }
54
+ exports.GeridocDiagnosisPageDto = GeridocDiagnosisPageDto;
55
+ __decorate([
56
+ (0, nestjs_1.ApiProperty)({ type: () => EmbeddedGeridocDiagnoses, required: true }),
57
+ (0, class_transformer_1.Type)(() => EmbeddedGeridocDiagnoses),
58
+ (0, transformEmbedded_1.default)(EmbeddedGeridocDiagnoses),
59
+ (0, class_transformer_1.Expose)(),
60
+ __metadata("design:type", EmbeddedGeridocDiagnoses)
61
+ ], GeridocDiagnosisPageDto.prototype, "_embedded", void 0);
62
+ //# sourceMappingURL=geridocDiagnosisPage.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geridocDiagnosisPage.dto.js","sourceRoot":"","sources":["../../../src/dto/geridocDiagnosis/geridocDiagnosisPage.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA8C;AAC9C,yDAAiD;AAEjD,sEAA4E;AAC5E,qFAA6D;AAC7D,yCAA2C;AAC3C,qDAA6C;AAC7C,iEAA6D;AAE7D,MAAM,wBAAwB;;;;CAU7B;AADA;IARC,IAAA,oBAAW,EAAC;QACZ,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,GAAG,EAAE,CAAC,0CAAmB;QAC/B,QAAQ,EAAE,KAAK;KACf,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,0CAAmB,CAAC;IAC/B,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;kEACgC;AAG1C,MAAa,uBAAwB,SAAQ,kBAAO;IAO5C,MAAM,CAAC,SAAS,CAAC,MAAW;QAClC,OAAO,IAAA,uCAAkB,EAAC,uBAAuB,EAAE,MAAM,CAAC,CAAC;IAC5D,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,gBAAuB,EAAE,KAAkB;QACvE,OAAO,IAAA,4BAAO,EAAC,uBAAuB,EAAE;YACvC,gBAAgB;YAChB,KAAK;SACL,CAAC,CAAC;IACJ,CAAC;;;;CACD;AAjBD,0DAiBC;AAZA;IAJC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,wBAAwB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACrE,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC;IACpC,IAAA,2BAAiB,EAAC,wBAAwB,CAAC;IAC3C,IAAA,0BAAM,GAAE;8BACG,wBAAwB;0DAAC"}
@@ -0,0 +1,15 @@
1
+ import { GeridocMedicationEmbeddedDto } from './geridocMedicationEmbedded.dto';
2
+ declare const GeridocMedicationDto_base: new () => {
3
+ createdAt: string;
4
+ updatedAt: string;
5
+ _embedded?: GeridocMedicationEmbeddedDto;
6
+ };
7
+ export declare class GeridocMedicationDto extends GeridocMedicationDto_base {
8
+ id: string;
9
+ geridocPatientId: string;
10
+ name: string;
11
+ dosage: string;
12
+ static fromPlain(object: any): GeridocMedicationDto;
13
+ static fromEntity(entity: any): GeridocMedicationDto;
14
+ }
15
+ export {};
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.GeridocMedicationDto = void 0;
13
+ const openapi = require("@nestjs/swagger");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const nestjs_1 = require("../../nestjs");
16
+ const convertAndValidate_1 = require("../../util/convertAndValidate");
17
+ const base_dto_1 = require("../generic/base.dto");
18
+ const geridocMedicationEmbedded_dto_1 = require("./geridocMedicationEmbedded.dto");
19
+ const class_validator_1 = require("class-validator");
20
+ class GeridocMedicationDto extends (0, base_dto_1.BaseDto)(geridocMedicationEmbedded_dto_1.GeridocMedicationEmbeddedDto) {
21
+ static fromPlain(object) {
22
+ return (0, convertAndValidate_1.convertAndValidate)(GeridocMedicationDto, object);
23
+ }
24
+ static fromEntity(entity) {
25
+ return (0, convertAndValidate_1.convert)(GeridocMedicationDto, entity);
26
+ }
27
+ static _OPENAPI_METADATA_FACTORY() {
28
+ return { id: { required: true, type: () => String, format: "uuid" }, geridocPatientId: { required: true, type: () => String, format: "uuid" }, name: { required: true, type: () => String }, dosage: { required: true, type: () => String } };
29
+ }
30
+ }
31
+ exports.GeridocMedicationDto = GeridocMedicationDto;
32
+ __decorate([
33
+ (0, nestjs_1.ApiProperty)({ type: String, format: 'uuid', required: true }),
34
+ (0, class_validator_1.IsUUID)(),
35
+ (0, class_transformer_1.Expose)(),
36
+ __metadata("design:type", String)
37
+ ], GeridocMedicationDto.prototype, "id", void 0);
38
+ __decorate([
39
+ (0, nestjs_1.ApiProperty)({ type: String, format: 'uuid', required: true }),
40
+ (0, class_validator_1.IsUUID)(),
41
+ (0, class_transformer_1.Expose)(),
42
+ __metadata("design:type", String)
43
+ ], GeridocMedicationDto.prototype, "geridocPatientId", void 0);
44
+ __decorate([
45
+ (0, nestjs_1.ApiProperty)({ type: String, required: true }),
46
+ (0, class_validator_1.IsString)(),
47
+ (0, class_transformer_1.Expose)(),
48
+ __metadata("design:type", String)
49
+ ], GeridocMedicationDto.prototype, "name", void 0);
50
+ __decorate([
51
+ (0, nestjs_1.ApiProperty)({ type: String, required: true }),
52
+ (0, class_validator_1.IsString)(),
53
+ (0, class_transformer_1.Expose)(),
54
+ __metadata("design:type", String)
55
+ ], GeridocMedicationDto.prototype, "dosage", void 0);
56
+ //# sourceMappingURL=geridocMedication.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geridocMedication.dto.js","sourceRoot":"","sources":["../../../src/dto/geridocMedication/geridocMedication.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yDAA2C;AAC3C,yCAA2C;AAC3C,sEAA4E;AAC5E,kDAA8C;AAC9C,mFAA+E;AAC/E,qDAAmD;AAEnD,MAAa,oBAAqB,SAAQ,IAAA,kBAAO,EAChD,4DAA4B,CAC5B;IAqBO,MAAM,CAAC,SAAS,CAAC,MAAW;QAClC,OAAO,IAAA,uCAAkB,EAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;IACzD,CAAC;IAEM,MAAM,CAAC,UAAU,CAAC,MAAW;QACnC,OAAO,IAAA,4BAAO,EAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;IAC9C,CAAC;;;;CACD;AA9BD,oDA8BC;AAxBA;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7D,IAAA,wBAAM,GAAE;IACR,IAAA,0BAAM,GAAE;;gDACG;AAKZ;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7D,IAAA,wBAAM,GAAE;IACR,IAAA,0BAAM,GAAE;;8DACiB;AAK1B;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,GAAE;;kDACK;AAKd;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,GAAE;;oDACO"}
@@ -0,0 +1,4 @@
1
+ import { GeridocPatientDto } from '../geridocPatient/geridocPatient.dto';
2
+ export declare class GeridocMedicationEmbeddedDto {
3
+ geridocPatient?: GeridocPatientDto;
4
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.GeridocMedicationEmbeddedDto = void 0;
13
+ const openapi = require("@nestjs/swagger");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const nestjs_1 = require("../../nestjs");
16
+ const class_validator_1 = require("class-validator");
17
+ const geridocPatient_dto_1 = require("../geridocPatient/geridocPatient.dto");
18
+ const class_transformer_2 = require("class-transformer");
19
+ class GeridocMedicationEmbeddedDto {
20
+ static _OPENAPI_METADATA_FACTORY() {
21
+ return { geridocPatient: { required: false, type: () => require("../geridocPatient/geridocPatient.dto").GeridocPatientDto } };
22
+ }
23
+ }
24
+ exports.GeridocMedicationEmbeddedDto = GeridocMedicationEmbeddedDto;
25
+ __decorate([
26
+ (0, nestjs_1.ApiProperty)({ type: () => geridocPatient_dto_1.GeridocPatientDto, required: false }),
27
+ (0, class_validator_1.IsOptional)(),
28
+ (0, class_transformer_2.Type)(() => geridocPatient_dto_1.GeridocPatientDto),
29
+ (0, class_transformer_1.Expose)(),
30
+ __metadata("design:type", geridocPatient_dto_1.GeridocPatientDto)
31
+ ], GeridocMedicationEmbeddedDto.prototype, "geridocPatient", void 0);
32
+ //# sourceMappingURL=geridocMedicationEmbedded.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geridocMedicationEmbedded.dto.js","sourceRoot":"","sources":["../../../src/dto/geridocMedication/geridocMedicationEmbedded.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yDAA2C;AAC3C,yCAA2C;AAC3C,qDAA6C;AAC7C,6EAAyE;AACzE,yDAAyC;AAEzC,MAAa,4BAA4B;;;;CAMxC;AAND,oEAMC;AADA;IAJC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,sCAAiB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC/D,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,sCAAiB,CAAC;IAC7B,IAAA,0BAAM,GAAE;8BACQ,sCAAiB;oEAAC"}
@@ -0,0 +1,12 @@
1
+ import { PageDto } from '../generic/page.dto';
2
+ import { PageInfoDto } from '../generic/pageInfo.dto';
3
+ import { GeridocMedicationDto } from './geridocMedication.dto';
4
+ declare class EmbeddedGeridocMedications {
5
+ geridocMedications?: GeridocMedicationDto[];
6
+ }
7
+ export declare class GeridocMedicationPageDto extends PageDto {
8
+ _embedded: EmbeddedGeridocMedications;
9
+ static fromPlain(object: any): GeridocMedicationPageDto;
10
+ static fromEntityList(geridocMedications: any[], _page: PageInfoDto): unknown;
11
+ }
12
+ export {};
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.GeridocMedicationPageDto = void 0;
16
+ const openapi = require("@nestjs/swagger");
17
+ const page_dto_1 = require("../generic/page.dto");
18
+ const class_transformer_1 = require("class-transformer");
19
+ const convertAndValidate_1 = require("../../util/convertAndValidate");
20
+ const transformEmbedded_1 = __importDefault(require("../../util/transformEmbedded"));
21
+ const nestjs_1 = require("../../nestjs");
22
+ const class_validator_1 = require("class-validator");
23
+ const geridocMedication_dto_1 = require("./geridocMedication.dto");
24
+ class EmbeddedGeridocMedications {
25
+ static _OPENAPI_METADATA_FACTORY() {
26
+ return { geridocMedications: { required: false, type: () => [require("./geridocMedication.dto").GeridocMedicationDto] } };
27
+ }
28
+ }
29
+ __decorate([
30
+ (0, nestjs_1.ApiProperty)({
31
+ isArray: true,
32
+ type: () => geridocMedication_dto_1.GeridocMedicationDto,
33
+ required: false,
34
+ }),
35
+ (0, class_transformer_1.Type)(() => geridocMedication_dto_1.GeridocMedicationDto),
36
+ (0, class_validator_1.IsOptional)(),
37
+ (0, class_transformer_1.Expose)(),
38
+ __metadata("design:type", Array)
39
+ ], EmbeddedGeridocMedications.prototype, "geridocMedications", void 0);
40
+ class GeridocMedicationPageDto extends page_dto_1.PageDto {
41
+ static fromPlain(object) {
42
+ return (0, convertAndValidate_1.convertAndValidate)(GeridocMedicationPageDto, object);
43
+ }
44
+ static fromEntityList(geridocMedications, _page) {
45
+ return (0, convertAndValidate_1.convert)(GeridocMedicationPageDto, {
46
+ geridocMedications,
47
+ _page,
48
+ });
49
+ }
50
+ static _OPENAPI_METADATA_FACTORY() {
51
+ return { _embedded: { required: true, type: () => EmbeddedGeridocMedications } };
52
+ }
53
+ }
54
+ exports.GeridocMedicationPageDto = GeridocMedicationPageDto;
55
+ __decorate([
56
+ (0, nestjs_1.ApiProperty)({ type: () => EmbeddedGeridocMedications, required: true }),
57
+ (0, class_transformer_1.Type)(() => EmbeddedGeridocMedications),
58
+ (0, transformEmbedded_1.default)(EmbeddedGeridocMedications),
59
+ (0, class_transformer_1.Expose)(),
60
+ __metadata("design:type", EmbeddedGeridocMedications)
61
+ ], GeridocMedicationPageDto.prototype, "_embedded", void 0);
62
+ //# sourceMappingURL=geridocMedicationPage.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geridocMedicationPage.dto.js","sourceRoot":"","sources":["../../../src/dto/geridocMedication/geridocMedicationPage.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA8C;AAC9C,yDAAiD;AAEjD,sEAA4E;AAC5E,qFAA6D;AAC7D,yCAA2C;AAC3C,qDAA6C;AAC7C,mEAA+D;AAE/D,MAAM,0BAA0B;;;;CAU/B;AADA;IARC,IAAA,oBAAW,EAAC;QACZ,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,GAAG,EAAE,CAAC,4CAAoB;QAChC,QAAQ,EAAE,KAAK;KACf,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,4CAAoB,CAAC;IAChC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;sEACmC;AAG7C,MAAa,wBAAyB,SAAQ,kBAAO;IAO7C,MAAM,CAAC,SAAS,CAAC,MAAW;QAClC,OAAO,IAAA,uCAAkB,EAAC,wBAAwB,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,kBAAyB,EAAE,KAAkB;QACzE,OAAO,IAAA,4BAAO,EAAC,wBAAwB,EAAE;YACxC,kBAAkB;YAClB,KAAK;SACL,CAAC,CAAC;IACJ,CAAC;;;;CACD;AAjBD,4DAiBC;AAZA;IAJC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,0BAA0B,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACvE,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC;IACtC,IAAA,2BAAiB,EAAC,0BAA0B,CAAC;IAC7C,IAAA,0BAAM,GAAE;8BACG,0BAA0B;2DAAC"}
@@ -0,0 +1,14 @@
1
+ import { GeridocPatientEmbeddedDto } from './geridocPatientEmbedded.dto';
2
+ declare const GeridocPatientDto_base: new () => {
3
+ createdAt: string;
4
+ updatedAt: string;
5
+ _embedded?: GeridocPatientEmbeddedDto;
6
+ };
7
+ export declare class GeridocPatientDto extends GeridocPatientDto_base {
8
+ id: string;
9
+ geridocCaseNumber: string;
10
+ applicationId: string;
11
+ static fromPlain(object: any): GeridocPatientDto;
12
+ static fromEntity(entity: any): GeridocPatientDto;
13
+ }
14
+ export {};
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.GeridocPatientDto = void 0;
13
+ const openapi = require("@nestjs/swagger");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const nestjs_1 = require("../../nestjs");
16
+ const convertAndValidate_1 = require("../../util/convertAndValidate");
17
+ const base_dto_1 = require("../generic/base.dto");
18
+ const geridocPatientEmbedded_dto_1 = require("./geridocPatientEmbedded.dto");
19
+ const class_validator_1 = require("class-validator");
20
+ class GeridocPatientDto extends (0, base_dto_1.BaseDto)(geridocPatientEmbedded_dto_1.GeridocPatientEmbeddedDto) {
21
+ static fromPlain(object) {
22
+ return (0, convertAndValidate_1.convertAndValidate)(GeridocPatientDto, object);
23
+ }
24
+ static fromEntity(entity) {
25
+ return (0, convertAndValidate_1.convert)(GeridocPatientDto, entity);
26
+ }
27
+ static _OPENAPI_METADATA_FACTORY() {
28
+ return { id: { required: true, type: () => String, format: "uuid" }, geridocCaseNumber: { required: true, type: () => String }, applicationId: { required: true, type: () => String, format: "uuid" } };
29
+ }
30
+ }
31
+ exports.GeridocPatientDto = GeridocPatientDto;
32
+ __decorate([
33
+ (0, nestjs_1.ApiProperty)({ type: String, format: 'uuid', required: true }),
34
+ (0, class_validator_1.IsUUID)(),
35
+ (0, class_transformer_1.Expose)(),
36
+ __metadata("design:type", String)
37
+ ], GeridocPatientDto.prototype, "id", void 0);
38
+ __decorate([
39
+ (0, nestjs_1.ApiProperty)({ type: String, required: true }),
40
+ (0, class_validator_1.IsString)(),
41
+ (0, class_transformer_1.Expose)(),
42
+ __metadata("design:type", String)
43
+ ], GeridocPatientDto.prototype, "geridocCaseNumber", void 0);
44
+ __decorate([
45
+ (0, nestjs_1.ApiProperty)({ type: String, format: 'uuid', required: true }),
46
+ (0, class_validator_1.IsUUID)(),
47
+ (0, class_transformer_1.Expose)(),
48
+ __metadata("design:type", String)
49
+ ], GeridocPatientDto.prototype, "applicationId", void 0);
50
+ //# sourceMappingURL=geridocPatient.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geridocPatient.dto.js","sourceRoot":"","sources":["../../../src/dto/geridocPatient/geridocPatient.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yDAA2C;AAC3C,yCAA2C;AAC3C,sEAA4E;AAC5E,kDAA8C;AAC9C,6EAAyE;AACzE,qDAAmD;AAEnD,MAAa,iBAAkB,SAAQ,IAAA,kBAAO,EAAC,sDAAyB,CAAC;IAgBjE,MAAM,CAAC,SAAS,CAAC,MAAW;QAClC,OAAO,IAAA,uCAAkB,EAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;IACtD,CAAC;IAEM,MAAM,CAAC,UAAU,CAAC,MAAW;QACnC,OAAO,IAAA,4BAAO,EAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;IAC3C,CAAC;;;;CACD;AAvBD,8CAuBC;AAnBA;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7D,IAAA,wBAAM,GAAE;IACR,IAAA,0BAAM,GAAE;;6CACG;AAKZ;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,GAAE;;4DACkB;AAK3B;IAHC,IAAA,oBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7D,IAAA,wBAAM,GAAE;IACR,IAAA,0BAAM,GAAE;;wDACc"}
@@ -0,0 +1,10 @@
1
+ import { ApplicationDto } from '../application/application.dto';
2
+ import { GeridocTherapyGoalDto } from '../geridocTherapyGoal/geridocTherapyGoal.dto';
3
+ import { GeridocDiagnosisDto } from '../geridocDiagnosis/geridocDiagnosis.dto';
4
+ import { GeridocMedicationDto } from '../geridocMedication/geridocMedication.dto';
5
+ export declare class GeridocPatientEmbeddedDto {
6
+ application?: ApplicationDto;
7
+ therapyGoals?: GeridocTherapyGoalDto[];
8
+ diagnosis?: GeridocDiagnosisDto[];
9
+ medications?: GeridocMedicationDto[];
10
+ }
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.GeridocPatientEmbeddedDto = void 0;
13
+ const openapi = require("@nestjs/swagger");
14
+ const nestjs_1 = require("../../nestjs");
15
+ const class_transformer_1 = require("class-transformer");
16
+ const class_validator_1 = require("class-validator");
17
+ const application_dto_1 = require("../application/application.dto");
18
+ const geridocTherapyGoal_dto_1 = require("../geridocTherapyGoal/geridocTherapyGoal.dto");
19
+ const geridocDiagnosis_dto_1 = require("../geridocDiagnosis/geridocDiagnosis.dto");
20
+ const geridocMedication_dto_1 = require("../geridocMedication/geridocMedication.dto");
21
+ class GeridocPatientEmbeddedDto {
22
+ static _OPENAPI_METADATA_FACTORY() {
23
+ return { application: { required: false, type: () => require("../application/application.dto").ApplicationDto }, therapyGoals: { required: false, type: () => [require("../geridocTherapyGoal/geridocTherapyGoal.dto").GeridocTherapyGoalDto] }, diagnosis: { required: false, type: () => [require("../geridocDiagnosis/geridocDiagnosis.dto").GeridocDiagnosisDto] }, medications: { required: false, type: () => [require("../geridocMedication/geridocMedication.dto").GeridocMedicationDto] } };
24
+ }
25
+ }
26
+ exports.GeridocPatientEmbeddedDto = GeridocPatientEmbeddedDto;
27
+ __decorate([
28
+ (0, nestjs_1.ApiProperty)({ type: () => application_dto_1.ApplicationDto, required: false }),
29
+ (0, class_validator_1.IsOptional)(),
30
+ (0, class_transformer_1.Type)(() => application_dto_1.ApplicationDto),
31
+ (0, class_transformer_1.Expose)(),
32
+ __metadata("design:type", application_dto_1.ApplicationDto)
33
+ ], GeridocPatientEmbeddedDto.prototype, "application", void 0);
34
+ __decorate([
35
+ (0, nestjs_1.ApiProperty)({
36
+ type: () => geridocTherapyGoal_dto_1.GeridocTherapyGoalDto,
37
+ isArray: true,
38
+ required: false,
39
+ }),
40
+ (0, class_validator_1.IsOptional)(),
41
+ (0, class_transformer_1.Type)(() => geridocTherapyGoal_dto_1.GeridocTherapyGoalDto),
42
+ (0, class_transformer_1.Expose)(),
43
+ __metadata("design:type", Array)
44
+ ], GeridocPatientEmbeddedDto.prototype, "therapyGoals", void 0);
45
+ __decorate([
46
+ (0, nestjs_1.ApiProperty)({
47
+ type: () => geridocDiagnosis_dto_1.GeridocDiagnosisDto,
48
+ isArray: true,
49
+ required: false,
50
+ }),
51
+ (0, class_validator_1.IsOptional)(),
52
+ (0, class_transformer_1.Type)(() => geridocDiagnosis_dto_1.GeridocDiagnosisDto),
53
+ (0, class_transformer_1.Expose)(),
54
+ __metadata("design:type", Array)
55
+ ], GeridocPatientEmbeddedDto.prototype, "diagnosis", void 0);
56
+ __decorate([
57
+ (0, nestjs_1.ApiProperty)({
58
+ type: () => geridocMedication_dto_1.GeridocMedicationDto,
59
+ isArray: true,
60
+ required: false,
61
+ }),
62
+ (0, class_validator_1.IsOptional)(),
63
+ (0, class_transformer_1.Type)(() => geridocMedication_dto_1.GeridocMedicationDto),
64
+ (0, class_transformer_1.Expose)(),
65
+ __metadata("design:type", Array)
66
+ ], GeridocPatientEmbeddedDto.prototype, "medications", void 0);
67
+ //# sourceMappingURL=geridocPatientEmbedded.dto.js.map