diff --git a/.github/instructions/lowcode-reference.instructions.md b/.github/instructions/lowcode-reference.instructions.md index cbcf3d4e..97e94125 100644 --- a/.github/instructions/lowcode-reference.instructions.md +++ b/.github/instructions/lowcode-reference.instructions.md @@ -1314,7 +1314,9 @@ ekranları ABP tablolarıdır, Licence/Dev Request host tablolarını okur. | **Identity › Permission Groups / Permissions** | `Abp.Identity.PermissionGroups` · `Abp.Identity.Permissions` | `AbpPermissionGroups` · `AbpPermissions` | Yetki ağacı (tree düzeni). Yeni ekranın yetkileri burada görünür; `Modules` kolonu yetkiyi modüllere bağlar (pipe ile çoklu), `Order` kardeşler arası sıradır. Seed: `data/Abp.Identity.Permission{Groups,s}.json`. | | **Identity › Claim Type** | `App.IdentityManagement.ClaimType` | `AbpClaimTypes` | Kullanıcıya ek alan (claim) tanımı: `ValueType`, `Regex`, `Required`, `IsStatic`. | | **Identity › Roles** | `AbpIdentity.Roles` | `AbpRoles` | Rol yönetimi + `RolesPermission` diyaloğu; yeni ekranın yetkisi role buradan verilir. Yazma `list-form-dynamic-api/role-*`. | -| **Identity › Users** | `AbpIdentity.Users` · detay `/admin/users/detail/:userId` | `AbpUsers` | Kullanıcı yönetimi + `UsersPermission` diyaloğu, **KPI widget'ları** ve `list-form-dynamic-api/user-*` ile devredilen yazma. Kullanıcı `WorkHour`, `DepartmentId`, `JobPositionId`, `Gender` (`Male`/`Female`, `App.StaticLookup.*`) ve `HomeAddress` alanlarını liste ve formda taşır; kişisel ve kimlik bilgileri (`IdentityNumber`, `BirthDate`, `EducationLevel`, `BloodType`, `Nationality`, `SskNo`…) detay ekranındadır. Kullanıcı seçen her lookup bu bilgileri `AbpUsers`'tan okur ve kopya kolon aynı ad/tip/değer kümesiyle açılır (`lowcode.instructions.md` §0.12 madde 5). Yeni bir kullanıcı alanı = `PlatformConsts.AbpIdentity.User` + `AbpIdentityUserExtensions` + EF eşlemesi ve migration + `UserInfoViewModel` (detay/profil) + `CreateUpdateUserInput` ve `user-insert`/`user-update` (liste) + `ListFormSeeder_Administration` alanı. | +| **Identity › Users** | `AbpIdentity.Users` · detay `/admin/users/detail/:userId` | `AbpUsers` | Kullanıcı yönetimi + `UsersPermission` diyaloğu, **KPI widget'ları** ve `list-form-dynamic-api/user-*` ile devredilen yazma. Kullanıcı `WorkHour`, `DepartmentId`, `JobPositionId`, `Gender` (`Male`/`Female`, `App.StaticLookup.*`) ve `HomeAddress` alanlarını liste ve formda taşır; kişisel ve kimlik bilgileri (`IdentityNumber`, `BirthDate`, `EducationLevel`, `Nationality`, `SskNo`…) detay ekranındadır. Detaydaki **Sağlık Kartı** sekmesi `BloodType` ile soy geçmişini (`{Mother,Father,Sibling,Child}HealthStatus` — `Alive`/`Deceased`, `App.StaticLookup.*` — ve `…HealthNote`) ve öz geçmişini (`ChronicDisease`, `TetanusVaccination`, `HepatitisVaccination`, `OtherVaccination`) taşır; sekme dört gruptur (Soy/Öz Geçmişi, Laboratuvar - Fizik Muayene `Lab*`/`Exam*`, Anamnez `Complaint*`/`Diagnosis*` + 3-10. sorular, Sonuç `FitForWork*`/`ShiftWorkFit`/`NightWorkFit`). Sonuçtaki hekim (`FitnessDoctorId`, `ShiftNightDoctorId`) wizard tablosu `Hr_T_Doctor`'dan `LookupQueryValues.TenantDoctorValues` ile seçilir; diploma ve işyeri hekimliği belgesi hekimden gösterilir, kullanıcıya yazılmaz. Bu alanların hepsi listede gizli alandır; arayüz `user-management/HealthCardTab.tsx`. Kullanıcı seçen her lookup bu bilgileri `AbpUsers`'tan okur ve kopya kolon aynı ad/tip/değer kümesiyle açılır (`lowcode.instructions.md` §0.12 madde 5). Yeni bir kullanıcı alanı = `PlatformConsts.AbpIdentity.User` + `AbpIdentityUserExtensions` + EF eşlemesi ve migration + `UserInfoViewModel` (detay/profil) + `CreateUpdateUserInput` ve `user-insert`/`user-update` (liste) + `ListFormSeeder_Administration` alanı. | +| **Identity › Users › Work Experience** | `App.IdentityManagement.UserWorkExperience` (menüsüz alt liste) | `Adm_T_UserWorkExperience` | Kullanıcının daha önce çalıştığı yerler: `CompanyName`, `SectorId` (Sektörler lookup'ı, `LookupQueryValues.TenantSectorValues`), `StartDate`, `EndDate`, `JobDescription` (HtmlEditor). Entity `IMultiTenant`; kullanıcı detayının Work sekmesinde `PlatformViewHost` ile `UserId` filtresiyle gömülüdür, yeni satır `UserId`'yi filtreden alır. Kendi yetkisi yoktur: okuma `AbpIdentity.Users`, ekleme/güncelleme/silme detay sayfasının yetkisi `AbpIdentity.Users.Update`. | +| **Identity › Users › Health Card lists** | `App.IdentityManagement.UserPeriodicExamination` · `.UserPatientProtocol` · `.UserSickLeave` (menüsüz alt listeler) | `Adm_T_UserPeriodicExamination` · `Adm_T_UserPatientProtocol` · `Adm_T_UserSickLeave` | Periyodik muayene (hekim `Hr_T_Doctor`'dan, diploma no seçimde `EditorScript.Copy` ile kopyalanır), hasta protokol defteri (`ProtocolType`/`ProtocolResult` statik lookup) ve istirahat listesi (`Days` tarihlerden `EditorScript.Days` ile hesaplanır). Entity'ler `IMultiTenant`; Sağlık Kartı sekmesinde (`HealthCardTab.tsx`) `UserId` filtresiyle gömülüdür. Yetki Work Experience ile aynıdır: okuma `AbpIdentity.Users`, ekleme/güncelleme/silme `AbpIdentity.Users.Update`. | | **Identity › Organization Units** | `Abp.Identity.OrganizationUnits` · `/admin/ous` | ABP OU tabloları | Birim ağacı. Ekranı `IsOrganizationUnit = true` yaparsan veri bu ağaca göre süzülür; bildirim alıcısı da OU olabilir. | | **Identity › Audit Logs** | `App.IdentityManagement.AuditLogs` | `AbpAuditLogs` | İstek denetim kaydı + `AuditLogDetail` diyaloğu. "Kim ne zaman ne yaptı" isteği yeni tablo gerektirmez. | | **Identity › Sessions** | `App.IdentityManagement.Sessions` | `AbpSessions` | Açık oturumlar; `UiEvalService.ApiKickUser` ile oturum düşürme (`lowcode` §9.13). | diff --git a/.github/instructions/lowcode.instructions.md b/.github/instructions/lowcode.instructions.md index c356acb1..c8748bab 100644 --- a/.github/instructions/lowcode.instructions.md +++ b/.github/instructions/lowcode.instructions.md @@ -737,7 +737,9 @@ Kısa ve karar odaklı yaz; talebi tekrar anlatma. (`dxTextArea`, `dxHtmlEditor`) de `nvarchar(MAX)`'tir. **Kullanıcı (çalışan) bilgisi `AbpUsers`'tan okunur.** Kullanıcıya ait her bilgi kullanıcı kaydında durur: `IdentityNumber` (TC), `BirthDate`, `BirthPlace`, `Gender` (`Male`/`Female`), - `HomeAddress`, `EducationLevel`, `GraduationSchool`, `BloodType`, `Nationality`, `MaritalStatus`, + `HomeAddress`, `EducationLevel`, `GraduationSchool`, `BloodType`, sağlık kartı alanları + (`{Mother,Father,Sibling,Child}HealthStatus`/`…HealthNote`, `ChronicDisease`, `…Vaccination`, `Lab*`, `Exam*`, + `Complaint*`, `Diagnosis*`, anamnez soruları, `FitForWork*`, `ShiftWorkFit`, `NightWorkFit`, `*DoctorId`), `Nationality`, `MaritalStatus`, `SskNo`, `HireDate`, `DepartmentId`, `JobPositionId`, `WorkHour`, kimlik kartı alanları (`SerialNo`, `Province`, `District`, `FatherName`, `MotherName`…). Kullanıcı seçen bir lookup bu kolonları doğrudan `u.` ile seçer; başka bir ekranın tablosundaki son kayıttan (`OUTER APPLY diff --git a/api/src/Sozsoft.Platform.Application.Contracts/Identity/Dto/UserInfoViewModel.cs b/api/src/Sozsoft.Platform.Application.Contracts/Identity/Dto/UserInfoViewModel.cs index ab00341d..fbe75bd7 100644 --- a/api/src/Sozsoft.Platform.Application.Contracts/Identity/Dto/UserInfoViewModel.cs +++ b/api/src/Sozsoft.Platform.Application.Contracts/Identity/Dto/UserInfoViewModel.cs @@ -69,4 +69,80 @@ public class UserInfoViewModel : ExtensibleObject public string EducationLevel { get; set; } public string GraduationSchool { get; set; } public string BloodType { get; set; } + public string MotherHealthStatus { get; set; } + public string MotherHealthNote { get; set; } + public string FatherHealthStatus { get; set; } + public string FatherHealthNote { get; set; } + public string SiblingHealthStatus { get; set; } + public string SiblingHealthNote { get; set; } + public string ChildHealthStatus { get; set; } + public string ChildHealthNote { get; set; } + public string ChronicDisease { get; set; } + public string TetanusVaccination { get; set; } + public string HepatitisVaccination { get; set; } + public string OtherVaccination { get; set; } + public string LabBiologicalAnalysis { get; set; } + public string LabBlood { get; set; } + public string LabUrine { get; set; } + public string LabRadiological { get; set; } + public string LabRadiologicalPhysiological { get; set; } + public string LabAudiometry { get; set; } + public string LabPulmonaryFunction { get; set; } + public string LabPsychologicalTests { get; set; } + public string LabOther { get; set; } + public string ExamSensoryOrgans { get; set; } + public string ExamEye { get; set; } + public string ExamEnt { get; set; } + public string ExamSkin { get; set; } + public string ExamCardiovascular { get; set; } + public string ExamRespiratory { get; set; } + public string ExamDigestive { get; set; } + public string ExamUrogenital { get; set; } + public string ExamMusculoskeletal { get; set; } + public string ExamNeurological { get; set; } + public string ExamPsychiatric { get; set; } + public string ExamOther { get; set; } + public string ExamBloodPressure { get; set; } + public string ExamPulse { get; set; } + public decimal? ExamHeight { get; set; } + public decimal? ExamWeight { get; set; } + public bool? ComplaintProductiveCough { get; set; } + public bool? ComplaintDyspnea { get; set; } + public bool? ComplaintChestPain { get; set; } + public bool? ComplaintPalpitation { get; set; } + public bool? ComplaintBackPain { get; set; } + public bool? ComplaintDiarrheaConstipation { get; set; } + public bool? ComplaintJointPain { get; set; } + public bool? DiagnosisHeartDisease { get; set; } + public bool? DiagnosisDiabetes { get; set; } + public bool? DiagnosisKidneyDisease { get; set; } + public bool? DiagnosisJaundice { get; set; } + public bool? DiagnosisPepticUlcer { get; set; } + public bool? DiagnosisHearingLoss { get; set; } + public bool? DiagnosisVisionImpairment { get; set; } + public bool? DiagnosisNervousSystemDisease { get; set; } + public bool? DiagnosisSkinDisease { get; set; } + public bool? DiagnosisFoodPoisoning { get; set; } + public bool? Hospitalized { get; set; } + public string HospitalizedNote { get; set; } + public bool? HadSurgery { get; set; } + public string HadSurgeryNote { get; set; } + public bool? HadWorkAccident { get; set; } + public string HadWorkAccidentNote { get; set; } + public bool? OccupationalDiseaseExam { get; set; } + public string OccupationalDiseaseExamNote { get; set; } + public bool? DisabilityPension { get; set; } + public string DisabilityPensionNote { get; set; } + public bool? UnderTreatment { get; set; } + public string UnderTreatmentNote { get; set; } + public string Smoking { get; set; } + public string SmokingNote { get; set; } + public string Alcohol { get; set; } + public string AlcoholNote { get; set; } + public string FitForWorkJob { get; set; } + public string FitForWorkCondition { get; set; } + public Guid? FitnessDoctorId { get; set; } + public bool? ShiftWorkFit { get; set; } + public bool? NightWorkFit { get; set; } + public Guid? ShiftNightDoctorId { get; set; } } diff --git a/api/src/Sozsoft.Platform.Application.Contracts/LookUpQueryValues.cs b/api/src/Sozsoft.Platform.Application.Contracts/LookUpQueryValues.cs index e9c91795..99022508 100644 --- a/api/src/Sozsoft.Platform.Application.Contracts/LookUpQueryValues.cs +++ b/api/src/Sozsoft.Platform.Application.Contracts/LookUpQueryValues.cs @@ -178,6 +178,40 @@ public static class LookupQueryValues $"AND \"TenantId\" = '@TENANTID' " + $"ORDER BY \"Name\";"; + /// + /// Oturumun kiracisina ait sektorler. Tablo kiraci basina ayristigi icin filtre '@TENANTID' + /// ile kurulur; host baglaminda "IS NULL" olarak cozulur. + /// + public static string TenantSectorValues = + $"SELECT " + + $"\"Id\" AS \"Key\", " + + $"\"Name\" AS \"Name\" " + + $"FROM \"{FullNameTable(TableNameEnum.Sector)}\" " + + $"WHERE " + + $"\"IsDeleted\" = 'false' " + + $"AND \"TenantId\" = '@TENANTID' " + + $"ORDER BY \"Name\";"; + + /// + /// Saglik kartindaki hekim secimi. Hr_T_Doctor wizard ile uretilen bir tablodur (entity'si + /// yoktur); diploma ve isyeri hekimligi belgesi kolonlari da secilir, detay ekrani secilen + /// hekimin bu bilgilerini gosterir. + /// + public static string TenantDoctorValues = + $"SELECT " + + $"\"Id\" AS \"Key\", " + + $"\"FullName\" AS \"Name\", " + + $"\"DiplomaNo\", " + + $"\"DiplomaDate\", " + + $"\"OhsCertificateNo\", " + + $"\"OhsCertificateDate\" " + + $"FROM \"Hr_T_Doctor\" " + + $"WHERE " + + $"\"IsDeleted\" = 'false' " + + $"AND \"IsActive\" = 'true' " + + $"AND \"TenantId\" = '@TENANTID' " + + $"ORDER BY \"FullName\";"; + public static string UserValues = $"SELECT " + $"\"Id\" AS \"Key\", " + diff --git a/api/src/Sozsoft.Platform.Application/Identity/PlatformIdentityAppService.cs b/api/src/Sozsoft.Platform.Application/Identity/PlatformIdentityAppService.cs index 3ffb5be7..79699f15 100644 --- a/api/src/Sozsoft.Platform.Application/Identity/PlatformIdentityAppService.cs +++ b/api/src/Sozsoft.Platform.Application/Identity/PlatformIdentityAppService.cs @@ -289,6 +289,82 @@ public class PlatformIdentityAppService : ApplicationService user.SetEducationLevel(UserInfo.EducationLevel); user.SetGraduationSchool(UserInfo.GraduationSchool); user.SetBloodType(UserInfo.BloodType); + user.SetMotherHealthStatus(UserInfo.MotherHealthStatus); + user.SetMotherHealthNote(UserInfo.MotherHealthNote); + user.SetFatherHealthStatus(UserInfo.FatherHealthStatus); + user.SetFatherHealthNote(UserInfo.FatherHealthNote); + user.SetSiblingHealthStatus(UserInfo.SiblingHealthStatus); + user.SetSiblingHealthNote(UserInfo.SiblingHealthNote); + user.SetChildHealthStatus(UserInfo.ChildHealthStatus); + user.SetChildHealthNote(UserInfo.ChildHealthNote); + user.SetChronicDisease(UserInfo.ChronicDisease); + user.SetTetanusVaccination(UserInfo.TetanusVaccination); + user.SetHepatitisVaccination(UserInfo.HepatitisVaccination); + user.SetOtherVaccination(UserInfo.OtherVaccination); + user.SetLabBiologicalAnalysis(UserInfo.LabBiologicalAnalysis); + user.SetLabBlood(UserInfo.LabBlood); + user.SetLabUrine(UserInfo.LabUrine); + user.SetLabRadiological(UserInfo.LabRadiological); + user.SetLabRadiologicalPhysiological(UserInfo.LabRadiologicalPhysiological); + user.SetLabAudiometry(UserInfo.LabAudiometry); + user.SetLabPulmonaryFunction(UserInfo.LabPulmonaryFunction); + user.SetLabPsychologicalTests(UserInfo.LabPsychologicalTests); + user.SetLabOther(UserInfo.LabOther); + user.SetExamSensoryOrgans(UserInfo.ExamSensoryOrgans); + user.SetExamEye(UserInfo.ExamEye); + user.SetExamEnt(UserInfo.ExamEnt); + user.SetExamSkin(UserInfo.ExamSkin); + user.SetExamCardiovascular(UserInfo.ExamCardiovascular); + user.SetExamRespiratory(UserInfo.ExamRespiratory); + user.SetExamDigestive(UserInfo.ExamDigestive); + user.SetExamUrogenital(UserInfo.ExamUrogenital); + user.SetExamMusculoskeletal(UserInfo.ExamMusculoskeletal); + user.SetExamNeurological(UserInfo.ExamNeurological); + user.SetExamPsychiatric(UserInfo.ExamPsychiatric); + user.SetExamOther(UserInfo.ExamOther); + user.SetExamBloodPressure(UserInfo.ExamBloodPressure); + user.SetExamPulse(UserInfo.ExamPulse); + user.SetExamHeight(UserInfo.ExamHeight); + user.SetExamWeight(UserInfo.ExamWeight); + user.SetComplaintProductiveCough(UserInfo.ComplaintProductiveCough); + user.SetComplaintDyspnea(UserInfo.ComplaintDyspnea); + user.SetComplaintChestPain(UserInfo.ComplaintChestPain); + user.SetComplaintPalpitation(UserInfo.ComplaintPalpitation); + user.SetComplaintBackPain(UserInfo.ComplaintBackPain); + user.SetComplaintDiarrheaConstipation(UserInfo.ComplaintDiarrheaConstipation); + user.SetComplaintJointPain(UserInfo.ComplaintJointPain); + user.SetDiagnosisHeartDisease(UserInfo.DiagnosisHeartDisease); + user.SetDiagnosisDiabetes(UserInfo.DiagnosisDiabetes); + user.SetDiagnosisKidneyDisease(UserInfo.DiagnosisKidneyDisease); + user.SetDiagnosisJaundice(UserInfo.DiagnosisJaundice); + user.SetDiagnosisPepticUlcer(UserInfo.DiagnosisPepticUlcer); + user.SetDiagnosisHearingLoss(UserInfo.DiagnosisHearingLoss); + user.SetDiagnosisVisionImpairment(UserInfo.DiagnosisVisionImpairment); + user.SetDiagnosisNervousSystemDisease(UserInfo.DiagnosisNervousSystemDisease); + user.SetDiagnosisSkinDisease(UserInfo.DiagnosisSkinDisease); + user.SetDiagnosisFoodPoisoning(UserInfo.DiagnosisFoodPoisoning); + user.SetHospitalized(UserInfo.Hospitalized); + user.SetHospitalizedNote(UserInfo.HospitalizedNote); + user.SetHadSurgery(UserInfo.HadSurgery); + user.SetHadSurgeryNote(UserInfo.HadSurgeryNote); + user.SetHadWorkAccident(UserInfo.HadWorkAccident); + user.SetHadWorkAccidentNote(UserInfo.HadWorkAccidentNote); + user.SetOccupationalDiseaseExam(UserInfo.OccupationalDiseaseExam); + user.SetOccupationalDiseaseExamNote(UserInfo.OccupationalDiseaseExamNote); + user.SetDisabilityPension(UserInfo.DisabilityPension); + user.SetDisabilityPensionNote(UserInfo.DisabilityPensionNote); + user.SetUnderTreatment(UserInfo.UnderTreatment); + user.SetUnderTreatmentNote(UserInfo.UnderTreatmentNote); + user.SetSmoking(UserInfo.Smoking); + user.SetSmokingNote(UserInfo.SmokingNote); + user.SetAlcohol(UserInfo.Alcohol); + user.SetAlcoholNote(UserInfo.AlcoholNote); + user.SetFitForWorkJob(UserInfo.FitForWorkJob); + user.SetFitForWorkCondition(UserInfo.FitForWorkCondition); + user.SetFitnessDoctorId(UserInfo.FitnessDoctorId); + user.SetShiftWorkFit(UserInfo.ShiftWorkFit); + user.SetNightWorkFit(UserInfo.NightWorkFit); + user.SetShiftNightDoctorId(UserInfo.ShiftNightDoctorId); user.SetAvatar(UserInfo.Avatar); user.SetUserType(UserInfo.UserType); diff --git a/api/src/Sozsoft.Platform.Application/Identity/UserInfoViewModelMappingExtensions.cs b/api/src/Sozsoft.Platform.Application/Identity/UserInfoViewModelMappingExtensions.cs index 5bc796cb..a4e543e1 100644 --- a/api/src/Sozsoft.Platform.Application/Identity/UserInfoViewModelMappingExtensions.cs +++ b/api/src/Sozsoft.Platform.Application/Identity/UserInfoViewModelMappingExtensions.cs @@ -45,6 +45,82 @@ public static class UserInfoViewModelMappingExtensions userInfoViewModel.EducationLevel = user.GetEducationLevel(); userInfoViewModel.GraduationSchool = user.GetGraduationSchool(); userInfoViewModel.BloodType = user.GetBloodType(); + userInfoViewModel.MotherHealthStatus = user.GetMotherHealthStatus(); + userInfoViewModel.MotherHealthNote = user.GetMotherHealthNote(); + userInfoViewModel.FatherHealthStatus = user.GetFatherHealthStatus(); + userInfoViewModel.FatherHealthNote = user.GetFatherHealthNote(); + userInfoViewModel.SiblingHealthStatus = user.GetSiblingHealthStatus(); + userInfoViewModel.SiblingHealthNote = user.GetSiblingHealthNote(); + userInfoViewModel.ChildHealthStatus = user.GetChildHealthStatus(); + userInfoViewModel.ChildHealthNote = user.GetChildHealthNote(); + userInfoViewModel.ChronicDisease = user.GetChronicDisease(); + userInfoViewModel.TetanusVaccination = user.GetTetanusVaccination(); + userInfoViewModel.HepatitisVaccination = user.GetHepatitisVaccination(); + userInfoViewModel.OtherVaccination = user.GetOtherVaccination(); + userInfoViewModel.LabBiologicalAnalysis = user.GetLabBiologicalAnalysis(); + userInfoViewModel.LabBlood = user.GetLabBlood(); + userInfoViewModel.LabUrine = user.GetLabUrine(); + userInfoViewModel.LabRadiological = user.GetLabRadiological(); + userInfoViewModel.LabRadiologicalPhysiological = user.GetLabRadiologicalPhysiological(); + userInfoViewModel.LabAudiometry = user.GetLabAudiometry(); + userInfoViewModel.LabPulmonaryFunction = user.GetLabPulmonaryFunction(); + userInfoViewModel.LabPsychologicalTests = user.GetLabPsychologicalTests(); + userInfoViewModel.LabOther = user.GetLabOther(); + userInfoViewModel.ExamSensoryOrgans = user.GetExamSensoryOrgans(); + userInfoViewModel.ExamEye = user.GetExamEye(); + userInfoViewModel.ExamEnt = user.GetExamEnt(); + userInfoViewModel.ExamSkin = user.GetExamSkin(); + userInfoViewModel.ExamCardiovascular = user.GetExamCardiovascular(); + userInfoViewModel.ExamRespiratory = user.GetExamRespiratory(); + userInfoViewModel.ExamDigestive = user.GetExamDigestive(); + userInfoViewModel.ExamUrogenital = user.GetExamUrogenital(); + userInfoViewModel.ExamMusculoskeletal = user.GetExamMusculoskeletal(); + userInfoViewModel.ExamNeurological = user.GetExamNeurological(); + userInfoViewModel.ExamPsychiatric = user.GetExamPsychiatric(); + userInfoViewModel.ExamOther = user.GetExamOther(); + userInfoViewModel.ExamBloodPressure = user.GetExamBloodPressure(); + userInfoViewModel.ExamPulse = user.GetExamPulse(); + userInfoViewModel.ExamHeight = user.GetExamHeight(); + userInfoViewModel.ExamWeight = user.GetExamWeight(); + userInfoViewModel.ComplaintProductiveCough = user.GetComplaintProductiveCough(); + userInfoViewModel.ComplaintDyspnea = user.GetComplaintDyspnea(); + userInfoViewModel.ComplaintChestPain = user.GetComplaintChestPain(); + userInfoViewModel.ComplaintPalpitation = user.GetComplaintPalpitation(); + userInfoViewModel.ComplaintBackPain = user.GetComplaintBackPain(); + userInfoViewModel.ComplaintDiarrheaConstipation = user.GetComplaintDiarrheaConstipation(); + userInfoViewModel.ComplaintJointPain = user.GetComplaintJointPain(); + userInfoViewModel.DiagnosisHeartDisease = user.GetDiagnosisHeartDisease(); + userInfoViewModel.DiagnosisDiabetes = user.GetDiagnosisDiabetes(); + userInfoViewModel.DiagnosisKidneyDisease = user.GetDiagnosisKidneyDisease(); + userInfoViewModel.DiagnosisJaundice = user.GetDiagnosisJaundice(); + userInfoViewModel.DiagnosisPepticUlcer = user.GetDiagnosisPepticUlcer(); + userInfoViewModel.DiagnosisHearingLoss = user.GetDiagnosisHearingLoss(); + userInfoViewModel.DiagnosisVisionImpairment = user.GetDiagnosisVisionImpairment(); + userInfoViewModel.DiagnosisNervousSystemDisease = user.GetDiagnosisNervousSystemDisease(); + userInfoViewModel.DiagnosisSkinDisease = user.GetDiagnosisSkinDisease(); + userInfoViewModel.DiagnosisFoodPoisoning = user.GetDiagnosisFoodPoisoning(); + userInfoViewModel.Hospitalized = user.GetHospitalized(); + userInfoViewModel.HospitalizedNote = user.GetHospitalizedNote(); + userInfoViewModel.HadSurgery = user.GetHadSurgery(); + userInfoViewModel.HadSurgeryNote = user.GetHadSurgeryNote(); + userInfoViewModel.HadWorkAccident = user.GetHadWorkAccident(); + userInfoViewModel.HadWorkAccidentNote = user.GetHadWorkAccidentNote(); + userInfoViewModel.OccupationalDiseaseExam = user.GetOccupationalDiseaseExam(); + userInfoViewModel.OccupationalDiseaseExamNote = user.GetOccupationalDiseaseExamNote(); + userInfoViewModel.DisabilityPension = user.GetDisabilityPension(); + userInfoViewModel.DisabilityPensionNote = user.GetDisabilityPensionNote(); + userInfoViewModel.UnderTreatment = user.GetUnderTreatment(); + userInfoViewModel.UnderTreatmentNote = user.GetUnderTreatmentNote(); + userInfoViewModel.Smoking = user.GetSmoking(); + userInfoViewModel.SmokingNote = user.GetSmokingNote(); + userInfoViewModel.Alcohol = user.GetAlcohol(); + userInfoViewModel.AlcoholNote = user.GetAlcoholNote(); + userInfoViewModel.FitForWorkJob = user.GetFitForWorkJob(); + userInfoViewModel.FitForWorkCondition = user.GetFitForWorkCondition(); + userInfoViewModel.FitnessDoctorId = user.GetFitnessDoctorId(); + userInfoViewModel.ShiftWorkFit = user.GetShiftWorkFit(); + userInfoViewModel.NightWorkFit = user.GetNightWorkFit(); + userInfoViewModel.ShiftNightDoctorId = user.GetShiftNightDoctorId(); return userInfoViewModel; } diff --git a/api/src/Sozsoft.Platform.DbMigrator/Migrations/ListFormSeeder_Administration.cs b/api/src/Sozsoft.Platform.DbMigrator/Migrations/ListFormSeeder_Administration.cs index 485983fc..1c652530 100644 --- a/api/src/Sozsoft.Platform.DbMigrator/Migrations/ListFormSeeder_Administration.cs +++ b/api/src/Sozsoft.Platform.DbMigrator/Migrations/ListFormSeeder_Administration.cs @@ -1617,6 +1617,1386 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), PivotSettingsJson = DefaultPivotSettingsJson }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "MotherHealthStatus", + CaptionName = "Abp.Identity.User.HealthCard.MotherHealthStatus", + Width = 0, + ListOrderNo = 30, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "MotherHealthNote", + CaptionName = "Abp.Identity.User.HealthCard.MotherHealthNote", + Width = 0, + ListOrderNo = 31, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "FatherHealthStatus", + CaptionName = "Abp.Identity.User.HealthCard.FatherHealthStatus", + Width = 0, + ListOrderNo = 32, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "FatherHealthNote", + CaptionName = "Abp.Identity.User.HealthCard.FatherHealthNote", + Width = 0, + ListOrderNo = 33, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "SiblingHealthStatus", + CaptionName = "Abp.Identity.User.HealthCard.SiblingHealthStatus", + Width = 0, + ListOrderNo = 34, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "SiblingHealthNote", + CaptionName = "Abp.Identity.User.HealthCard.SiblingHealthNote", + Width = 0, + ListOrderNo = 35, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "ChildHealthStatus", + CaptionName = "Abp.Identity.User.HealthCard.ChildHealthStatus", + Width = 0, + ListOrderNo = 36, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "ChildHealthNote", + CaptionName = "Abp.Identity.User.HealthCard.ChildHealthNote", + Width = 0, + ListOrderNo = 37, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "ChronicDisease", + CaptionName = "Abp.Identity.User.HealthCard.ChronicDisease", + Width = 0, + ListOrderNo = 38, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "TetanusVaccination", + CaptionName = "Abp.Identity.User.HealthCard.TetanusVaccination", + Width = 0, + ListOrderNo = 39, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "HepatitisVaccination", + CaptionName = "Abp.Identity.User.HealthCard.HepatitisVaccination", + Width = 0, + ListOrderNo = 40, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "OtherVaccination", + CaptionName = "Abp.Identity.User.HealthCard.OtherVaccination", + Width = 0, + ListOrderNo = 41, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "LabBiologicalAnalysis", + CaptionName = "Abp.Identity.User.HealthCard.LabBiologicalAnalysis", + Width = 0, + ListOrderNo = 42, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "LabBlood", + CaptionName = "Abp.Identity.User.HealthCard.LabBlood", + Width = 0, + ListOrderNo = 43, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "LabUrine", + CaptionName = "Abp.Identity.User.HealthCard.LabUrine", + Width = 0, + ListOrderNo = 44, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "LabRadiological", + CaptionName = "Abp.Identity.User.HealthCard.LabRadiological", + Width = 0, + ListOrderNo = 45, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "LabRadiologicalPhysiological", + CaptionName = "Abp.Identity.User.HealthCard.LabRadiologicalPhysiological", + Width = 0, + ListOrderNo = 46, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "LabAudiometry", + CaptionName = "Abp.Identity.User.HealthCard.LabAudiometry", + Width = 0, + ListOrderNo = 47, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "LabPulmonaryFunction", + CaptionName = "Abp.Identity.User.HealthCard.LabPulmonaryFunction", + Width = 0, + ListOrderNo = 48, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "LabPsychologicalTests", + CaptionName = "Abp.Identity.User.HealthCard.LabPsychologicalTests", + Width = 0, + ListOrderNo = 49, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "LabOther", + CaptionName = "Abp.Identity.User.HealthCard.LabOther", + Width = 0, + ListOrderNo = 50, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "ExamSensoryOrgans", + CaptionName = "Abp.Identity.User.HealthCard.ExamSensoryOrgans", + Width = 0, + ListOrderNo = 51, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "ExamEye", + CaptionName = "Abp.Identity.User.HealthCard.ExamEye", + Width = 0, + ListOrderNo = 52, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "ExamEnt", + CaptionName = "Abp.Identity.User.HealthCard.ExamEnt", + Width = 0, + ListOrderNo = 53, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "ExamSkin", + CaptionName = "Abp.Identity.User.HealthCard.ExamSkin", + Width = 0, + ListOrderNo = 54, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "ExamCardiovascular", + CaptionName = "Abp.Identity.User.HealthCard.ExamCardiovascular", + Width = 0, + ListOrderNo = 55, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "ExamRespiratory", + CaptionName = "Abp.Identity.User.HealthCard.ExamRespiratory", + Width = 0, + ListOrderNo = 56, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "ExamDigestive", + CaptionName = "Abp.Identity.User.HealthCard.ExamDigestive", + Width = 0, + ListOrderNo = 57, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "ExamUrogenital", + CaptionName = "Abp.Identity.User.HealthCard.ExamUrogenital", + Width = 0, + ListOrderNo = 58, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "ExamMusculoskeletal", + CaptionName = "Abp.Identity.User.HealthCard.ExamMusculoskeletal", + Width = 0, + ListOrderNo = 59, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "ExamNeurological", + CaptionName = "Abp.Identity.User.HealthCard.ExamNeurological", + Width = 0, + ListOrderNo = 60, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "ExamPsychiatric", + CaptionName = "Abp.Identity.User.HealthCard.ExamPsychiatric", + Width = 0, + ListOrderNo = 61, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "ExamOther", + CaptionName = "Abp.Identity.User.HealthCard.ExamOther", + Width = 0, + ListOrderNo = 62, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "ExamBloodPressure", + CaptionName = "Abp.Identity.User.HealthCard.ExamBloodPressure", + Width = 0, + ListOrderNo = 63, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "ExamPulse", + CaptionName = "Abp.Identity.User.HealthCard.ExamPulse", + Width = 0, + ListOrderNo = 64, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Decimal, + FieldName = "ExamHeight", + CaptionName = "Abp.Identity.User.HealthCard.ExamHeight", + Width = 0, + ListOrderNo = 65, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Decimal, + FieldName = "ExamWeight", + CaptionName = "Abp.Identity.User.HealthCard.ExamWeight", + Width = 0, + ListOrderNo = 66, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Boolean, + FieldName = "ComplaintProductiveCough", + CaptionName = "Abp.Identity.User.HealthCard.ComplaintProductiveCough", + Width = 0, + ListOrderNo = 67, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Boolean, + FieldName = "ComplaintDyspnea", + CaptionName = "Abp.Identity.User.HealthCard.ComplaintDyspnea", + Width = 0, + ListOrderNo = 68, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Boolean, + FieldName = "ComplaintChestPain", + CaptionName = "Abp.Identity.User.HealthCard.ComplaintChestPain", + Width = 0, + ListOrderNo = 69, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Boolean, + FieldName = "ComplaintPalpitation", + CaptionName = "Abp.Identity.User.HealthCard.ComplaintPalpitation", + Width = 0, + ListOrderNo = 70, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Boolean, + FieldName = "ComplaintBackPain", + CaptionName = "Abp.Identity.User.HealthCard.ComplaintBackPain", + Width = 0, + ListOrderNo = 71, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Boolean, + FieldName = "ComplaintDiarrheaConstipation", + CaptionName = "Abp.Identity.User.HealthCard.ComplaintDiarrheaConstipation", + Width = 0, + ListOrderNo = 72, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Boolean, + FieldName = "ComplaintJointPain", + CaptionName = "Abp.Identity.User.HealthCard.ComplaintJointPain", + Width = 0, + ListOrderNo = 73, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Boolean, + FieldName = "DiagnosisHeartDisease", + CaptionName = "Abp.Identity.User.HealthCard.DiagnosisHeartDisease", + Width = 0, + ListOrderNo = 74, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Boolean, + FieldName = "DiagnosisDiabetes", + CaptionName = "Abp.Identity.User.HealthCard.DiagnosisDiabetes", + Width = 0, + ListOrderNo = 75, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Boolean, + FieldName = "DiagnosisKidneyDisease", + CaptionName = "Abp.Identity.User.HealthCard.DiagnosisKidneyDisease", + Width = 0, + ListOrderNo = 76, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Boolean, + FieldName = "DiagnosisJaundice", + CaptionName = "Abp.Identity.User.HealthCard.DiagnosisJaundice", + Width = 0, + ListOrderNo = 77, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Boolean, + FieldName = "DiagnosisPepticUlcer", + CaptionName = "Abp.Identity.User.HealthCard.DiagnosisPepticUlcer", + Width = 0, + ListOrderNo = 78, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Boolean, + FieldName = "DiagnosisHearingLoss", + CaptionName = "Abp.Identity.User.HealthCard.DiagnosisHearingLoss", + Width = 0, + ListOrderNo = 79, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Boolean, + FieldName = "DiagnosisVisionImpairment", + CaptionName = "Abp.Identity.User.HealthCard.DiagnosisVisionImpairment", + Width = 0, + ListOrderNo = 80, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Boolean, + FieldName = "DiagnosisNervousSystemDisease", + CaptionName = "Abp.Identity.User.HealthCard.DiagnosisNervousSystemDisease", + Width = 0, + ListOrderNo = 81, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Boolean, + FieldName = "DiagnosisSkinDisease", + CaptionName = "Abp.Identity.User.HealthCard.DiagnosisSkinDisease", + Width = 0, + ListOrderNo = 82, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Boolean, + FieldName = "DiagnosisFoodPoisoning", + CaptionName = "Abp.Identity.User.HealthCard.DiagnosisFoodPoisoning", + Width = 0, + ListOrderNo = 83, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Boolean, + FieldName = "Hospitalized", + CaptionName = "Abp.Identity.User.HealthCard.Hospitalized", + Width = 0, + ListOrderNo = 84, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "HospitalizedNote", + CaptionName = "Abp.Identity.User.HealthCard.HospitalizedNote", + Width = 0, + ListOrderNo = 85, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Boolean, + FieldName = "HadSurgery", + CaptionName = "Abp.Identity.User.HealthCard.HadSurgery", + Width = 0, + ListOrderNo = 86, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "HadSurgeryNote", + CaptionName = "Abp.Identity.User.HealthCard.HadSurgeryNote", + Width = 0, + ListOrderNo = 87, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Boolean, + FieldName = "HadWorkAccident", + CaptionName = "Abp.Identity.User.HealthCard.HadWorkAccident", + Width = 0, + ListOrderNo = 88, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "HadWorkAccidentNote", + CaptionName = "Abp.Identity.User.HealthCard.HadWorkAccidentNote", + Width = 0, + ListOrderNo = 89, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Boolean, + FieldName = "OccupationalDiseaseExam", + CaptionName = "Abp.Identity.User.HealthCard.OccupationalDiseaseExam", + Width = 0, + ListOrderNo = 90, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "OccupationalDiseaseExamNote", + CaptionName = "Abp.Identity.User.HealthCard.OccupationalDiseaseExamNote", + Width = 0, + ListOrderNo = 91, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Boolean, + FieldName = "DisabilityPension", + CaptionName = "Abp.Identity.User.HealthCard.DisabilityPension", + Width = 0, + ListOrderNo = 92, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "DisabilityPensionNote", + CaptionName = "Abp.Identity.User.HealthCard.DisabilityPensionNote", + Width = 0, + ListOrderNo = 93, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Boolean, + FieldName = "UnderTreatment", + CaptionName = "Abp.Identity.User.HealthCard.UnderTreatment", + Width = 0, + ListOrderNo = 94, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "UnderTreatmentNote", + CaptionName = "Abp.Identity.User.HealthCard.UnderTreatmentNote", + Width = 0, + ListOrderNo = 95, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Smoking", + CaptionName = "Abp.Identity.User.HealthCard.Smoking", + Width = 0, + ListOrderNo = 96, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "SmokingNote", + CaptionName = "Abp.Identity.User.HealthCard.SmokingNote", + Width = 0, + ListOrderNo = 97, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Alcohol", + CaptionName = "Abp.Identity.User.HealthCard.Alcohol", + Width = 0, + ListOrderNo = 98, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "AlcoholNote", + CaptionName = "Abp.Identity.User.HealthCard.AlcoholNote", + Width = 0, + ListOrderNo = 99, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "FitForWorkJob", + CaptionName = "Abp.Identity.User.HealthCard.FitForWorkJob", + Width = 0, + ListOrderNo = 100, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "FitForWorkCondition", + CaptionName = "Abp.Identity.User.HealthCard.FitForWorkCondition", + Width = 0, + ListOrderNo = 101, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Guid, + FieldName = "FitnessDoctorId", + CaptionName = "Abp.Identity.User.HealthCard.FitnessDoctorId", + Width = 0, + ListOrderNo = 102, + Visible = false, + IsActive = true, + + AllowSearch = true, + LookupJson = JsonSerializer.Serialize(new LookupDto { + DataSourceType = UiLookupDataSourceTypeEnum.Query, + DisplayExpr = "Name", + ValueExpr = "Key", + LookupQuery = LookupQueryValues.TenantDoctorValues, + }), + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Boolean, + FieldName = "ShiftWorkFit", + CaptionName = "Abp.Identity.User.HealthCard.ShiftWorkFit", + Width = 0, + ListOrderNo = 103, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Boolean, + FieldName = "NightWorkFit", + CaptionName = "Abp.Identity.User.HealthCard.NightWorkFit", + Width = 0, + ListOrderNo = 104, + Visible = false, + IsActive = true, + + AllowSearch = true, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, + new ListFormField { + ListFormCode = listForm.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Guid, + FieldName = "ShiftNightDoctorId", + CaptionName = "Abp.Identity.User.HealthCard.ShiftNightDoctorId", + Width = 0, + ListOrderNo = 105, + Visible = false, + IsActive = true, + + AllowSearch = true, + LookupJson = JsonSerializer.Serialize(new LookupDto { + DataSourceType = UiLookupDataSourceTypeEnum.Query, + DisplayExpr = "Name", + ValueExpr = "Key", + LookupQuery = LookupQueryValues.TenantDoctorValues, + }), + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Create, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false), + PivotSettingsJson = DefaultPivotSettingsJson + }, ]); #endregion } @@ -1825,6 +3205,896 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep } #endregion + #region User Work Experience + listFormName = AppCodes.IdentityManagement.UserWorkExperience; + if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == listFormName)) + { + var listForm = await _listFormRepository.InsertAsync( + new ListForm() + { + ListFormType = ListFormTypeEnum.List, + PageSize = 10, + ExportJson = DefaultExportJson, + IsSubForm = true, + ShowNote = false, + LayoutJson = DefaultLayoutJson(), + CultureName = LanguageCodes.En, + ListFormCode = listFormName, + Name = listFormName, + Title = listFormName, + DataSourceCode = SeedConsts.DataSources.DefaultCode, + IsTenant = true, + IsBranch = false, + IsOrganizationUnit = false, + Description = $"{listFormName}.Description", + SelectCommandType = SelectCommandTypeEnum.Table, + SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.UserWorkExperience)), + KeyFieldName = "Id", + KeyFieldDbSourceType = DbType.Guid, + DefaultFilter = DefaultFilterJson, + SortMode = GridOptions.SortModeSingle, + FilterRowJson = DefaultFilterRowJson(), + HeaderFilterJson = DefaultHeaderFilterJson(), + SearchPanelJson = DefaultSearchPanelJson(), + GroupPanelJson = DefaultGroupPanelJson(), + SelectionJson = DefaultSelectionSingleJson, + ColumnOptionJson = DefaultColumnOptionJson(), + // Ayri yetki yok: liste kullanici detayinin parcasidir. Satir eklemek/silmek kullaniciyi + // duzenlemektir, bu yuzden C/U/D detay sayfasinin istedigi Users.Update'e baglanir. + PermissionJson = DefaultPermissionJson(PlatformConsts.IdentityPermissions.Users.Update, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, PlatformConsts.IdentityPermissions.Users.Update, PlatformConsts.IdentityPermissions.Users.Export, PlatformConsts.IdentityPermissions.Users.Import, PlatformConsts.IdentityPermissions.Users.Note), + DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.UserWorkExperience)), + DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(), + PagerOptionJson = DefaultPagerOptionJson, + InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(), + EditingOptionJson = DefaultEditingOptionJson(listFormName, 900, 650, true, true, true, true, false), + EditingFormJson = JsonSerializer.Serialize(new List + { + new() { + Order = 1, ColCount = 2, ColSpan = 1, ItemType = "group" }, + }), + }, autoSave: true + ); + + #region User Work Experience Fields + var fieldPermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Update, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false); + await _listFormFieldRepository.InsertManyAsync([ + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Guid, + FieldName = "Id", + CaptionName = "App.Listform.ListformField.Id", + Width = 0, + ListOrderNo = 1, + Visible = false, + IsActive = true, + + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + // Kullanici detayi listeyi UserId filtresiyle acar; yeni satir degerini o filtreden alir. + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Guid, + FieldName = "UserId", + CaptionName = "App.Listform.ListformField.UserId", + Width = 0, + ListOrderNo = 2, + Visible = false, + IsActive = true, + + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "CompanyName", + EditGroupOrderNo = 1, + EditOrderNo = 1, + EditorType2 = EditorTypes.dxTextBox, + ColSpan = 1, + CaptionName = "App.Listform.ListformField.CompanyName", + Width = 0, + ListOrderNo = 3, + Visible = true, + IsActive = true, + AllowSearch = true, + + ValidationRuleJson = DefaultValidationRuleRequiredJson, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Guid, + FieldName = "SectorId", + EditGroupOrderNo = 1, + EditOrderNo = 2, + EditorType2 = EditorTypes.dxSelectBox, + ColSpan = 1, + CaptionName = "App.Listform.ListformField.LineOfBusiness", + Width = 0, + ListOrderNo = 4, + Visible = true, + IsActive = true, + AllowSearch = true, + + LookupJson = JsonSerializer.Serialize(new LookupDto { + DataSourceType = UiLookupDataSourceTypeEnum.Query, + DisplayExpr = "Name", + ValueExpr = "Key", + LookupQuery = LookupQueryValues.TenantSectorValues, + }), + ValidationRuleJson = DefaultValidationRuleRequiredJson, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto{ IsPivot = true }) + }, + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Date, + FieldName = "StartDate", + EditGroupOrderNo = 1, + EditOrderNo = 3, + EditorType2 = EditorTypes.dxDateBox, + ColSpan = 1, + CaptionName = "App.Listform.ListformField.EntryDate", + Width = 0, + ListOrderNo = 5, + Visible = true, + IsActive = true, + + SortIndex = 1, + SortDirection = GridColumnOptions.SortOrderDesc, + ValidationRuleJson = DefaultValidationRuleRequiredJson, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Date, + FieldName = "EndDate", + EditGroupOrderNo = 1, + EditOrderNo = 4, + EditorType2 = EditorTypes.dxDateBox, + ColSpan = 1, + EditorOptions = EditorOptions.ShowClearButton(), + CaptionName = "App.Listform.ListformField.ExitDate", + Width = 0, + ListOrderNo = 6, + Visible = true, + IsActive = true, + + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "JobDescription", + EditGroupOrderNo = 1, + EditOrderNo = 5, + EditorType2 = EditorTypes.dxHtmlEditor, + ColSpan = 2, + EditorOptions = EditorOptions.Html(), + CaptionName = "App.Listform.ListformField.JobDescription", + Width = 0, + ListOrderNo = 7, + Visible = false, + IsActive = true, + + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + ], autoSave: true); + #endregion + } + #endregion + + #region User Periodic Examination + listFormName = AppCodes.IdentityManagement.UserPeriodicExamination; + if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == listFormName)) + { + var listForm = await _listFormRepository.InsertAsync( + new ListForm() + { + ListFormType = ListFormTypeEnum.List, + PageSize = 10, + ExportJson = DefaultExportJson, + IsSubForm = true, + ShowNote = false, + LayoutJson = DefaultLayoutJson(), + CultureName = LanguageCodes.En, + ListFormCode = listFormName, + Name = listFormName, + Title = listFormName, + DataSourceCode = SeedConsts.DataSources.DefaultCode, + IsTenant = true, + IsBranch = false, + IsOrganizationUnit = false, + Description = $"{listFormName}.Description", + SelectCommandType = SelectCommandTypeEnum.Table, + SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.UserPeriodicExamination)), + KeyFieldName = "Id", + KeyFieldDbSourceType = DbType.Guid, + DefaultFilter = DefaultFilterJson, + SortMode = GridOptions.SortModeSingle, + FilterRowJson = DefaultFilterRowJson(), + HeaderFilterJson = DefaultHeaderFilterJson(), + SearchPanelJson = DefaultSearchPanelJson(), + GroupPanelJson = DefaultGroupPanelJson(), + SelectionJson = DefaultSelectionSingleJson, + ColumnOptionJson = DefaultColumnOptionJson(), + // Kullanici detayinin parcasidir: yetkisi UserWorkExperience ile aynidir. + PermissionJson = DefaultPermissionJson(PlatformConsts.IdentityPermissions.Users.Update, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, PlatformConsts.IdentityPermissions.Users.Update, PlatformConsts.IdentityPermissions.Users.Export, PlatformConsts.IdentityPermissions.Users.Import, PlatformConsts.IdentityPermissions.Users.Note), + DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.UserPeriodicExamination)), + DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(), + PagerOptionJson = DefaultPagerOptionJson, + InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(), + EditingOptionJson = DefaultEditingOptionJson(listFormName, 700, 450, true, true, true, true, false), + EditingFormJson = JsonSerializer.Serialize(new List + { + new() { + Order = 1, ColCount = 2, ColSpan = 1, ItemType = "group" }, + }), + }, autoSave: true + ); + + #region User Periodic Examination Fields + var fieldPermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Update, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false); + await _listFormFieldRepository.InsertManyAsync([ + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Guid, + FieldName = "Id", + CaptionName = "App.Listform.ListformField.Id", + Width = 0, + ListOrderNo = 1, + Visible = false, + IsActive = true, + + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + // Saglik karti listeyi UserId filtresiyle acar; yeni satir degerini o filtreden alir. + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Guid, + FieldName = "UserId", + CaptionName = "App.Listform.ListformField.UserId", + Width = 0, + ListOrderNo = 2, + Visible = false, + IsActive = true, + + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Date, + FieldName = "ExamDate", + EditGroupOrderNo = 1, + EditOrderNo = 1, + EditorType2 = EditorTypes.dxDateBox, + ColSpan = 1, + CaptionName = "App.Listform.ListformField.Date", + Width = 0, + ListOrderNo = 3, + Visible = true, + IsActive = true, + + SortIndex = 1, + SortDirection = GridColumnOptions.SortOrderDesc, + ValidationRuleJson = DefaultValidationRuleRequiredJson, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Examination", + EditGroupOrderNo = 1, + EditOrderNo = 2, + EditorType2 = EditorTypes.dxTextBox, + ColSpan = 1, + CaptionName = "App.Listform.ListformField.Examination", + Width = 0, + ListOrderNo = 4, + Visible = true, + IsActive = true, + + ValidationRuleJson = DefaultValidationRuleRequiredJson, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Result", + EditGroupOrderNo = 1, + EditOrderNo = 3, + EditorType2 = EditorTypes.dxTextBox, + ColSpan = 1, + CaptionName = "App.Listform.ListformField.Result", + Width = 0, + ListOrderNo = 5, + Visible = true, + IsActive = true, + + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Guid, + FieldName = "DoctorId", + EditGroupOrderNo = 1, + EditOrderNo = 4, + EditorType2 = EditorTypes.dxSelectBox, + ColSpan = 1, + EditorOptions = EditorOptions.ShowClearButton(), + CaptionName = "App.Listform.ListformField.Doctor", + Width = 0, + ListOrderNo = 6, + Visible = true, + IsActive = true, + + EditorScript = EditorScript.Copy("DiplomaNo", "DoctorDiplomaNo").OnChange(), + LookupJson = JsonSerializer.Serialize(new LookupDto { + DataSourceType = UiLookupDataSourceTypeEnum.Query, + DisplayExpr = "Name", + ValueExpr = "Key", + LookupQuery = LookupQueryValues.TenantDoctorValues, + }), + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "DoctorDiplomaNo", + EditGroupOrderNo = 1, + EditOrderNo = 5, + EditorType2 = EditorTypes.dxTextBox, + ColSpan = 1, + EditorOptions = EditorOptions.New().ReadOnly(), + CaptionName = "App.Listform.ListformField.DiplomaNo", + Width = 0, + ListOrderNo = 7, + Visible = true, + IsActive = true, + + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + ], autoSave: true); + #endregion + } + #endregion + + #region User Patient Protocol + listFormName = AppCodes.IdentityManagement.UserPatientProtocol; + if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == listFormName)) + { + var listForm = await _listFormRepository.InsertAsync( + new ListForm() + { + ListFormType = ListFormTypeEnum.List, + PageSize = 10, + ExportJson = DefaultExportJson, + IsSubForm = true, + ShowNote = false, + LayoutJson = DefaultLayoutJson(), + CultureName = LanguageCodes.En, + ListFormCode = listFormName, + Name = listFormName, + Title = listFormName, + DataSourceCode = SeedConsts.DataSources.DefaultCode, + IsTenant = true, + IsBranch = false, + IsOrganizationUnit = false, + Description = $"{listFormName}.Description", + SelectCommandType = SelectCommandTypeEnum.Table, + SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.UserPatientProtocol)), + KeyFieldName = "Id", + KeyFieldDbSourceType = DbType.Guid, + DefaultFilter = DefaultFilterJson, + SortMode = GridOptions.SortModeSingle, + FilterRowJson = DefaultFilterRowJson(), + HeaderFilterJson = DefaultHeaderFilterJson(), + SearchPanelJson = DefaultSearchPanelJson(), + GroupPanelJson = DefaultGroupPanelJson(), + SelectionJson = DefaultSelectionSingleJson, + ColumnOptionJson = DefaultColumnOptionJson(), + // Kullanici detayinin parcasidir: yetkisi UserWorkExperience ile aynidir. + PermissionJson = DefaultPermissionJson(PlatformConsts.IdentityPermissions.Users.Update, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, PlatformConsts.IdentityPermissions.Users.Update, PlatformConsts.IdentityPermissions.Users.Export, PlatformConsts.IdentityPermissions.Users.Import, PlatformConsts.IdentityPermissions.Users.Note), + DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.UserPatientProtocol)), + DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(), + PagerOptionJson = DefaultPagerOptionJson, + InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(), + EditingOptionJson = DefaultEditingOptionJson(listFormName, 700, 450, true, true, true, true, false), + EditingFormJson = JsonSerializer.Serialize(new List + { + new() { + Order = 1, ColCount = 2, ColSpan = 1, ItemType = "group" }, + }), + }, autoSave: true + ); + + #region User Patient Protocol Fields + var fieldPermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Update, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false); + await _listFormFieldRepository.InsertManyAsync([ + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Guid, + FieldName = "Id", + CaptionName = "App.Listform.ListformField.Id", + Width = 0, + ListOrderNo = 1, + Visible = false, + IsActive = true, + + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + // Saglik karti listeyi UserId filtresiyle acar; yeni satir degerini o filtreden alir. + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Guid, + FieldName = "UserId", + CaptionName = "App.Listform.ListformField.UserId", + Width = 0, + ListOrderNo = 2, + Visible = false, + IsActive = true, + + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Int32, + FieldName = "SequenceNo", + EditGroupOrderNo = 1, + EditOrderNo = 1, + EditorType2 = EditorTypes.dxNumberBox, + ColSpan = 1, + CaptionName = "App.Listform.ListformField.SequenceNo", + Width = 0, + ListOrderNo = 3, + Visible = true, + IsActive = true, + + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Date, + FieldName = "ProtocolDate", + EditGroupOrderNo = 1, + EditOrderNo = 2, + EditorType2 = EditorTypes.dxDateBox, + ColSpan = 1, + CaptionName = "App.Listform.ListformField.Date", + Width = 0, + ListOrderNo = 4, + Visible = true, + IsActive = true, + + SortIndex = 1, + SortDirection = GridColumnOptions.SortOrderDesc, + ValidationRuleJson = DefaultValidationRuleRequiredJson, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "ProtocolType", + EditGroupOrderNo = 1, + EditOrderNo = 3, + EditorType2 = EditorTypes.dxSelectBox, + ColSpan = 1, + CaptionName = "App.Listform.ListformField.ProtocolType", + Width = 0, + ListOrderNo = 5, + Visible = true, + IsActive = true, + + LookupJson = JsonSerializer.Serialize(new LookupDto { + DataSourceType = UiLookupDataSourceTypeEnum.StaticData, + DisplayExpr = "name", + ValueExpr = "key", + LookupQuery = JsonSerializer.Serialize(new LookupDataDto[] { + new () { Key = "Disease", Name = "App.StaticLookup.Disease" }, + new () { Key = "WorkAccident", Name = "App.StaticLookup.WorkAccident" }, + new () { Key = "OccupationalDisease", Name = "App.StaticLookup.OccupationalDisease" }, + new () { Key = "Control", Name = "App.StaticLookup.Control" }, + new () { Key = "Other", Name = "App.StaticLookup.Other" }, + }), + }), + ValidationRuleJson = DefaultValidationRuleRequiredJson, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "ProtocolResult", + EditGroupOrderNo = 1, + EditOrderNo = 4, + EditorType2 = EditorTypes.dxSelectBox, + ColSpan = 1, + EditorOptions = EditorOptions.ShowClearButton(), + CaptionName = "App.Listform.ListformField.Result", + Width = 0, + ListOrderNo = 6, + Visible = true, + IsActive = true, + + LookupJson = JsonSerializer.Serialize(new LookupDto { + DataSourceType = UiLookupDataSourceTypeEnum.StaticData, + DisplayExpr = "name", + ValueExpr = "key", + LookupQuery = JsonSerializer.Serialize(new LookupDataDto[] { + new () { Key = "TreatmentDischarged", Name = "App.StaticLookup.TreatmentDischarged" }, + new () { Key = "Rest", Name = "App.StaticLookup.Rest" }, + new () { Key = "Referral", Name = "App.StaticLookup.Referral" }, + }), + }), + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Int32, + FieldName = "RestDays", + EditGroupOrderNo = 1, + EditOrderNo = 5, + EditorType2 = EditorTypes.dxNumberBox, + ColSpan = 1, + CaptionName = "App.Listform.ListformField.RestDays", + Width = 0, + ListOrderNo = 7, + Visible = true, + IsActive = true, + + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "ReferralPlace", + EditGroupOrderNo = 1, + EditOrderNo = 6, + EditorType2 = EditorTypes.dxTextBox, + ColSpan = 1, + CaptionName = "App.Listform.ListformField.ReferralPlace", + Width = 0, + ListOrderNo = 8, + Visible = true, + IsActive = true, + + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Guid, + FieldName = "DoctorId", + EditGroupOrderNo = 1, + EditOrderNo = 7, + EditorType2 = EditorTypes.dxSelectBox, + ColSpan = 1, + EditorOptions = EditorOptions.ShowClearButton(), + CaptionName = "App.Listform.ListformField.Doctor", + Width = 0, + ListOrderNo = 9, + Visible = true, + IsActive = true, + + LookupJson = JsonSerializer.Serialize(new LookupDto { + DataSourceType = UiLookupDataSourceTypeEnum.Query, + DisplayExpr = "Name", + ValueExpr = "Key", + LookupQuery = LookupQueryValues.TenantDoctorValues, + }), + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + ], autoSave: true); + #endregion + } + #endregion + + #region User Sick Leave + listFormName = AppCodes.IdentityManagement.UserSickLeave; + if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == listFormName)) + { + var listForm = await _listFormRepository.InsertAsync( + new ListForm() + { + ListFormType = ListFormTypeEnum.List, + PageSize = 10, + ExportJson = DefaultExportJson, + IsSubForm = true, + ShowNote = false, + LayoutJson = DefaultLayoutJson(), + CultureName = LanguageCodes.En, + ListFormCode = listFormName, + Name = listFormName, + Title = listFormName, + DataSourceCode = SeedConsts.DataSources.DefaultCode, + IsTenant = true, + IsBranch = false, + IsOrganizationUnit = false, + Description = $"{listFormName}.Description", + SelectCommandType = SelectCommandTypeEnum.Table, + SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.UserSickLeave)), + KeyFieldName = "Id", + KeyFieldDbSourceType = DbType.Guid, + DefaultFilter = DefaultFilterJson, + SortMode = GridOptions.SortModeSingle, + FilterRowJson = DefaultFilterRowJson(), + HeaderFilterJson = DefaultHeaderFilterJson(), + SearchPanelJson = DefaultSearchPanelJson(), + GroupPanelJson = DefaultGroupPanelJson(), + SelectionJson = DefaultSelectionSingleJson, + ColumnOptionJson = DefaultColumnOptionJson(), + // Kullanici detayinin parcasidir: yetkisi UserWorkExperience ile aynidir. + PermissionJson = DefaultPermissionJson(PlatformConsts.IdentityPermissions.Users.Update, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, PlatformConsts.IdentityPermissions.Users.Update, PlatformConsts.IdentityPermissions.Users.Export, PlatformConsts.IdentityPermissions.Users.Import, PlatformConsts.IdentityPermissions.Users.Note), + DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.UserSickLeave)), + DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(), + PagerOptionJson = DefaultPagerOptionJson, + InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(), + EditingOptionJson = DefaultEditingOptionJson(listFormName, 700, 450, true, true, true, true, false), + EditingFormJson = JsonSerializer.Serialize(new List + { + new() { + Order = 1, ColCount = 2, ColSpan = 1, ItemType = "group" }, + }), + }, autoSave: true + ); + + #region User Sick Leave Fields + var fieldPermissionJson = DefaultFieldPermissionJson(PlatformConsts.IdentityPermissions.Users.Update, PlatformConsts.IdentityPermissions.Users.Default, PlatformConsts.IdentityPermissions.Users.Update, true, true, false); + await _listFormFieldRepository.InsertManyAsync([ + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Guid, + FieldName = "Id", + CaptionName = "App.Listform.ListformField.Id", + Width = 0, + ListOrderNo = 1, + Visible = false, + IsActive = true, + + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + // Saglik karti listeyi UserId filtresiyle acar; yeni satir degerini o filtreden alir. + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Guid, + FieldName = "UserId", + CaptionName = "App.Listform.ListformField.UserId", + Width = 0, + ListOrderNo = 2, + Visible = false, + IsActive = true, + + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Date, + FieldName = "StartDate", + EditGroupOrderNo = 1, + EditOrderNo = 1, + EditorType2 = EditorTypes.dxDateBox, + ColSpan = 1, + CaptionName = "App.Listform.ListformField.StartDate", + Width = 0, + ListOrderNo = 3, + Visible = true, + IsActive = true, + + SortIndex = 1, + SortDirection = GridColumnOptions.SortOrderDesc, + EditorScript = EditorScript.Days("StartDate", "EndDate", "Days").OnChange(), + ValidationRuleJson = DefaultValidationRuleRequiredJson, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Date, + FieldName = "EndDate", + EditGroupOrderNo = 1, + EditOrderNo = 2, + EditorType2 = EditorTypes.dxDateBox, + ColSpan = 1, + CaptionName = "App.Listform.ListformField.EndDate", + Width = 0, + ListOrderNo = 4, + Visible = true, + IsActive = true, + + EditorScript = EditorScript.Days("StartDate", "EndDate", "Days").OnChange(), + ValidationRuleJson = DefaultValidationRuleRequiredJson, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Int32, + FieldName = "Days", + EditGroupOrderNo = 1, + EditOrderNo = 3, + EditorType2 = EditorTypes.dxNumberBox, + ColSpan = 1, + CaptionName = "App.Listform.ListformField.Days", + Width = 0, + ListOrderNo = 5, + Visible = true, + IsActive = true, + + ValidationRuleJson = DefaultValidationRuleRequiredJson, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "SickLeaveType", + EditGroupOrderNo = 1, + EditOrderNo = 4, + EditorType2 = EditorTypes.dxSelectBox, + ColSpan = 1, + CaptionName = "App.Listform.ListformField.SickLeaveType", + Width = 0, + ListOrderNo = 6, + Visible = true, + IsActive = true, + + LookupJson = JsonSerializer.Serialize(new LookupDto { + DataSourceType = UiLookupDataSourceTypeEnum.StaticData, + DisplayExpr = "name", + ValueExpr = "key", + LookupQuery = JsonSerializer.Serialize(new LookupDataDto[] { + new () { Key = "Disease", Name = "App.StaticLookup.Disease" }, + new () { Key = "WorkAccident", Name = "App.StaticLookup.WorkAccident" }, + new () { Key = "OccupationalDisease", Name = "App.StaticLookup.OccupationalDisease" }, + new () { Key = "Maternity", Name = "App.StaticLookup.Maternity" }, + }), + }), + ValidationRuleJson = DefaultValidationRuleRequiredJson, + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Institution", + EditGroupOrderNo = 1, + EditOrderNo = 5, + EditorType2 = EditorTypes.dxTextBox, + ColSpan = 1, + CaptionName = "App.Listform.ListformField.Institution", + Width = 0, + ListOrderNo = 7, + Visible = true, + IsActive = true, + + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Clinic", + EditGroupOrderNo = 1, + EditOrderNo = 6, + EditorType2 = EditorTypes.dxTextBox, + ColSpan = 1, + CaptionName = "App.Listform.ListformField.Clinic", + Width = 0, + ListOrderNo = 8, + Visible = true, + IsActive = true, + + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + new() { + ListFormCode = listForm.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "SickLeaveReason", + EditGroupOrderNo = 1, + EditOrderNo = 7, + EditorType2 = EditorTypes.dxTextBox, + ColSpan = 2, + CaptionName = "App.Listform.ListformField.SickLeaveReason", + Width = 0, + ListOrderNo = 9, + Visible = true, + IsActive = true, + + ColumnCustomizationJson = DefaultColumnCustomizationJson, + PermissionJson = fieldPermissionJson, + PivotSettingsJson = DefaultPivotSettingsJson + }, + ], autoSave: true); + #endregion + } + #endregion + #region Report Categories listFormName = AppCodes.Reports.Categories; if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == listFormName)) diff --git a/api/src/Sozsoft.Platform.Domain.Shared/Enums/TableNameEnum.cs b/api/src/Sozsoft.Platform.Domain.Shared/Enums/TableNameEnum.cs index 2f47a77b..0f31a1bd 100644 --- a/api/src/Sozsoft.Platform.Domain.Shared/Enums/TableNameEnum.cs +++ b/api/src/Sozsoft.Platform.Domain.Shared/Enums/TableNameEnum.cs @@ -97,5 +97,9 @@ public enum TableNameEnum DbTableColumn, DevRequest, Agenda, - ChangeLog + ChangeLog, + UserWorkExperience, + UserPeriodicExamination, + UserPatientProtocol, + UserSickLeave } diff --git a/api/src/Sozsoft.Platform.Domain.Shared/PlatformConsts.cs b/api/src/Sozsoft.Platform.Domain.Shared/PlatformConsts.cs index 37ba0868..70fb2383 100644 --- a/api/src/Sozsoft.Platform.Domain.Shared/PlatformConsts.cs +++ b/api/src/Sozsoft.Platform.Domain.Shared/PlatformConsts.cs @@ -118,6 +118,82 @@ public static class PlatformConsts public const string EducationLevel = "EducationLevel"; public const string GraduationSchool = "GraduationSchool"; public const string BloodType = "BloodType"; + public const string MotherHealthStatus = "MotherHealthStatus"; + public const string MotherHealthNote = "MotherHealthNote"; + public const string FatherHealthStatus = "FatherHealthStatus"; + public const string FatherHealthNote = "FatherHealthNote"; + public const string SiblingHealthStatus = "SiblingHealthStatus"; + public const string SiblingHealthNote = "SiblingHealthNote"; + public const string ChildHealthStatus = "ChildHealthStatus"; + public const string ChildHealthNote = "ChildHealthNote"; + public const string ChronicDisease = "ChronicDisease"; + public const string TetanusVaccination = "TetanusVaccination"; + public const string HepatitisVaccination = "HepatitisVaccination"; + public const string OtherVaccination = "OtherVaccination"; + public const string LabBiologicalAnalysis = "LabBiologicalAnalysis"; + public const string LabBlood = "LabBlood"; + public const string LabUrine = "LabUrine"; + public const string LabRadiological = "LabRadiological"; + public const string LabRadiologicalPhysiological = "LabRadiologicalPhysiological"; + public const string LabAudiometry = "LabAudiometry"; + public const string LabPulmonaryFunction = "LabPulmonaryFunction"; + public const string LabPsychologicalTests = "LabPsychologicalTests"; + public const string LabOther = "LabOther"; + public const string ExamSensoryOrgans = "ExamSensoryOrgans"; + public const string ExamEye = "ExamEye"; + public const string ExamEnt = "ExamEnt"; + public const string ExamSkin = "ExamSkin"; + public const string ExamCardiovascular = "ExamCardiovascular"; + public const string ExamRespiratory = "ExamRespiratory"; + public const string ExamDigestive = "ExamDigestive"; + public const string ExamUrogenital = "ExamUrogenital"; + public const string ExamMusculoskeletal = "ExamMusculoskeletal"; + public const string ExamNeurological = "ExamNeurological"; + public const string ExamPsychiatric = "ExamPsychiatric"; + public const string ExamOther = "ExamOther"; + public const string ExamBloodPressure = "ExamBloodPressure"; + public const string ExamPulse = "ExamPulse"; + public const string ExamHeight = "ExamHeight"; + public const string ExamWeight = "ExamWeight"; + public const string ComplaintProductiveCough = "ComplaintProductiveCough"; + public const string ComplaintDyspnea = "ComplaintDyspnea"; + public const string ComplaintChestPain = "ComplaintChestPain"; + public const string ComplaintPalpitation = "ComplaintPalpitation"; + public const string ComplaintBackPain = "ComplaintBackPain"; + public const string ComplaintDiarrheaConstipation = "ComplaintDiarrheaConstipation"; + public const string ComplaintJointPain = "ComplaintJointPain"; + public const string DiagnosisHeartDisease = "DiagnosisHeartDisease"; + public const string DiagnosisDiabetes = "DiagnosisDiabetes"; + public const string DiagnosisKidneyDisease = "DiagnosisKidneyDisease"; + public const string DiagnosisJaundice = "DiagnosisJaundice"; + public const string DiagnosisPepticUlcer = "DiagnosisPepticUlcer"; + public const string DiagnosisHearingLoss = "DiagnosisHearingLoss"; + public const string DiagnosisVisionImpairment = "DiagnosisVisionImpairment"; + public const string DiagnosisNervousSystemDisease = "DiagnosisNervousSystemDisease"; + public const string DiagnosisSkinDisease = "DiagnosisSkinDisease"; + public const string DiagnosisFoodPoisoning = "DiagnosisFoodPoisoning"; + public const string Hospitalized = "Hospitalized"; + public const string HospitalizedNote = "HospitalizedNote"; + public const string HadSurgery = "HadSurgery"; + public const string HadSurgeryNote = "HadSurgeryNote"; + public const string HadWorkAccident = "HadWorkAccident"; + public const string HadWorkAccidentNote = "HadWorkAccidentNote"; + public const string OccupationalDiseaseExam = "OccupationalDiseaseExam"; + public const string OccupationalDiseaseExamNote = "OccupationalDiseaseExamNote"; + public const string DisabilityPension = "DisabilityPension"; + public const string DisabilityPensionNote = "DisabilityPensionNote"; + public const string UnderTreatment = "UnderTreatment"; + public const string UnderTreatmentNote = "UnderTreatmentNote"; + public const string Smoking = "Smoking"; + public const string SmokingNote = "SmokingNote"; + public const string Alcohol = "Alcohol"; + public const string AlcoholNote = "AlcoholNote"; + public const string FitForWorkJob = "FitForWorkJob"; + public const string FitForWorkCondition = "FitForWorkCondition"; + public const string FitnessDoctorId = "FitnessDoctorId"; + public const string ShiftWorkFit = "ShiftWorkFit"; + public const string NightWorkFit = "NightWorkFit"; + public const string ShiftNightDoctorId = "ShiftNightDoctorId"; public const string Nationality = "Nationality"; public const string Gender = "Gender"; @@ -624,6 +700,10 @@ public static class PlatformConsts public const string ClaimTypes = Default + ".ClaimType"; public const string AuditLogs = Default + ".AuditLogs"; + public const string UserWorkExperience = Default + ".UserWorkExperience"; + public const string UserPeriodicExamination = Default + ".UserPeriodicExamination"; + public const string UserPatientProtocol = Default + ".UserPatientProtocol"; + public const string UserSickLeave = Default + ".UserSickLeave"; } public static class Reports diff --git a/api/src/Sozsoft.Platform.Domain.Shared/TableNameResolver.cs b/api/src/Sozsoft.Platform.Domain.Shared/TableNameResolver.cs index 69ed6ec6..9f4641f7 100644 --- a/api/src/Sozsoft.Platform.Domain.Shared/TableNameResolver.cs +++ b/api/src/Sozsoft.Platform.Domain.Shared/TableNameResolver.cs @@ -83,6 +83,10 @@ public static class TableNameResolver { nameof(TableNameEnum.VideoroomChat), (TablePrefix.TenantByName, MenuPrefix.Administration) }, { nameof(TableNameEnum.Sequence), (TablePrefix.TenantByName, MenuPrefix.Administration) }, { nameof(TableNameEnum.Agenda), (TablePrefix.TenantByName, MenuPrefix.Administration) }, + { nameof(TableNameEnum.UserWorkExperience), (TablePrefix.TenantByName, MenuPrefix.Administration) }, + { nameof(TableNameEnum.UserPeriodicExamination), (TablePrefix.TenantByName, MenuPrefix.Administration) }, + { nameof(TableNameEnum.UserPatientProtocol), (TablePrefix.TenantByName, MenuPrefix.Administration) }, + { nameof(TableNameEnum.UserSickLeave), (TablePrefix.TenantByName, MenuPrefix.Administration) }, { nameof(TableNameEnum.NotificationTemplate), (TablePrefix.TenantByName, MenuPrefix.Administration) }, { nameof(TableNameEnum.NotificationType), (TablePrefix.TenantByName, MenuPrefix.Administration) }, { nameof(TableNameEnum.NotificationRule), (TablePrefix.TenantByName, MenuPrefix.Administration) }, diff --git a/api/src/Sozsoft.Platform.Domain/Data/SeedConsts.cs b/api/src/Sozsoft.Platform.Domain/Data/SeedConsts.cs index 28c9faf3..b318c92e 100644 --- a/api/src/Sozsoft.Platform.Domain/Data/SeedConsts.cs +++ b/api/src/Sozsoft.Platform.Domain/Data/SeedConsts.cs @@ -494,6 +494,10 @@ public static class SeedConsts public const string ClaimTypes = Default + ".ClaimType"; public const string AuditLogs = Default + ".AuditLogs"; public const string Sessions = Default + ".Sessions"; + public const string UserWorkExperience = Default + ".UserWorkExperience"; + public const string UserPeriodicExamination = Default + ".UserPeriodicExamination"; + public const string UserPatientProtocol = Default + ".UserPatientProtocol"; + public const string UserSickLeave = Default + ".UserSickLeave"; } diff --git a/api/src/Sozsoft.Platform.Domain/Entities/Tenant/Administration/UserPatientProtocol.cs b/api/src/Sozsoft.Platform.Domain/Entities/Tenant/Administration/UserPatientProtocol.cs new file mode 100644 index 00000000..3dd8b609 --- /dev/null +++ b/api/src/Sozsoft.Platform.Domain/Entities/Tenant/Administration/UserPatientProtocol.cs @@ -0,0 +1,24 @@ +using System; +using Volo.Abp.Domain.Entities.Auditing; +using Volo.Abp.MultiTenancy; + +namespace Sozsoft.Platform.Entities; + +/// +/// Kullanicinin hasta protokol defteri kayitlari. Saglik kartinda kullaniciya gore suzulen alt liste olarak cizilir. +/// +public class UserPatientProtocol : FullAuditedEntity, IMultiTenant +{ + public Guid? TenantId { get; set; } + + public Guid UserId { get; set; } + public int? SequenceNo { get; set; } + public DateTime ProtocolDate { get; set; } + public string ProtocolType { get; set; } + public string ProtocolResult { get; set; } + public int? RestDays { get; set; } + public string ReferralPlace { get; set; } + public Guid? DoctorId { get; set; } + + Guid? IMultiTenant.TenantId => TenantId; +} diff --git a/api/src/Sozsoft.Platform.Domain/Entities/Tenant/Administration/UserPeriodicExamination.cs b/api/src/Sozsoft.Platform.Domain/Entities/Tenant/Administration/UserPeriodicExamination.cs new file mode 100644 index 00000000..b601fc29 --- /dev/null +++ b/api/src/Sozsoft.Platform.Domain/Entities/Tenant/Administration/UserPeriodicExamination.cs @@ -0,0 +1,22 @@ +using System; +using Volo.Abp.Domain.Entities.Auditing; +using Volo.Abp.MultiTenancy; + +namespace Sozsoft.Platform.Entities; + +/// +/// Kullanicinin periyodik saglik muayeneleri. Saglik kartinda kullaniciya gore suzulen alt liste olarak cizilir. +/// +public class UserPeriodicExamination : FullAuditedEntity, IMultiTenant +{ + public Guid? TenantId { get; set; } + + public Guid UserId { get; set; } + public DateTime ExamDate { get; set; } + public string Examination { get; set; } + public string Result { get; set; } + public Guid? DoctorId { get; set; } + public string DoctorDiplomaNo { get; set; } + + Guid? IMultiTenant.TenantId => TenantId; +} diff --git a/api/src/Sozsoft.Platform.Domain/Entities/Tenant/Administration/UserSickLeave.cs b/api/src/Sozsoft.Platform.Domain/Entities/Tenant/Administration/UserSickLeave.cs new file mode 100644 index 00000000..2dbc6345 --- /dev/null +++ b/api/src/Sozsoft.Platform.Domain/Entities/Tenant/Administration/UserSickLeave.cs @@ -0,0 +1,24 @@ +using System; +using Volo.Abp.Domain.Entities.Auditing; +using Volo.Abp.MultiTenancy; + +namespace Sozsoft.Platform.Entities; + +/// +/// Kullanicinin istirahat (rapor) kayitlari. Saglik kartinda kullaniciya gore suzulen alt liste olarak cizilir. +/// +public class UserSickLeave : FullAuditedEntity, IMultiTenant +{ + public Guid? TenantId { get; set; } + + public Guid UserId { get; set; } + public DateTime StartDate { get; set; } + public DateTime EndDate { get; set; } + public int Days { get; set; } + public string SickLeaveType { get; set; } + public string Institution { get; set; } + public string Clinic { get; set; } + public string SickLeaveReason { get; set; } + + Guid? IMultiTenant.TenantId => TenantId; +} diff --git a/api/src/Sozsoft.Platform.Domain/Entities/Tenant/Administration/UserWorkExperience.cs b/api/src/Sozsoft.Platform.Domain/Entities/Tenant/Administration/UserWorkExperience.cs new file mode 100644 index 00000000..64c97da6 --- /dev/null +++ b/api/src/Sozsoft.Platform.Domain/Entities/Tenant/Administration/UserWorkExperience.cs @@ -0,0 +1,23 @@ +using System; +using Volo.Abp.Domain.Entities.Auditing; +using Volo.Abp.MultiTenancy; + +namespace Sozsoft.Platform.Entities; + +/// +/// Kullanicinin daha once calistigi yerler. AbpUsers ABP'nin tablosu oldugu icin +/// gecmis ayri tabloda tutulur ve kullanici detayindaki Work sekmesinde alt liste olarak cizilir. +/// +public class UserWorkExperience : FullAuditedEntity, IMultiTenant +{ + public Guid? TenantId { get; set; } + + public Guid UserId { get; set; } + public string CompanyName { get; set; } + public Guid SectorId { get; set; } + public DateTime StartDate { get; set; } + public DateTime? EndDate { get; set; } + public string JobDescription { get; set; } + + Guid? IMultiTenant.TenantId => TenantId; +} diff --git a/api/src/Sozsoft.Platform.Domain/Extensions/AbpIdentityUserExtensions.cs b/api/src/Sozsoft.Platform.Domain/Extensions/AbpIdentityUserExtensions.cs index df1579f3..86d1c669 100644 --- a/api/src/Sozsoft.Platform.Domain/Extensions/AbpIdentityUserExtensions.cs +++ b/api/src/Sozsoft.Platform.Domain/Extensions/AbpIdentityUserExtensions.cs @@ -350,5 +350,765 @@ public static class AbpIdentityUserExtensions { return user.GetProperty(PlatformConsts.AbpIdentity.User.BloodType); } + + //MotherHealthStatus + public static void SetMotherHealthStatus(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.MotherHealthStatus, value); + } + public static string GetMotherHealthStatus(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.MotherHealthStatus); + } + + //MotherHealthNote + public static void SetMotherHealthNote(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.MotherHealthNote, value); + } + public static string GetMotherHealthNote(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.MotherHealthNote); + } + + //FatherHealthStatus + public static void SetFatherHealthStatus(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.FatherHealthStatus, value); + } + public static string GetFatherHealthStatus(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.FatherHealthStatus); + } + + //FatherHealthNote + public static void SetFatherHealthNote(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.FatherHealthNote, value); + } + public static string GetFatherHealthNote(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.FatherHealthNote); + } + + //SiblingHealthStatus + public static void SetSiblingHealthStatus(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.SiblingHealthStatus, value); + } + public static string GetSiblingHealthStatus(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.SiblingHealthStatus); + } + + //SiblingHealthNote + public static void SetSiblingHealthNote(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.SiblingHealthNote, value); + } + public static string GetSiblingHealthNote(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.SiblingHealthNote); + } + + //ChildHealthStatus + public static void SetChildHealthStatus(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.ChildHealthStatus, value); + } + public static string GetChildHealthStatus(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.ChildHealthStatus); + } + + //ChildHealthNote + public static void SetChildHealthNote(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.ChildHealthNote, value); + } + public static string GetChildHealthNote(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.ChildHealthNote); + } + + //ChronicDisease + public static void SetChronicDisease(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.ChronicDisease, value); + } + public static string GetChronicDisease(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.ChronicDisease); + } + + //TetanusVaccination + public static void SetTetanusVaccination(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.TetanusVaccination, value); + } + public static string GetTetanusVaccination(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.TetanusVaccination); + } + + //HepatitisVaccination + public static void SetHepatitisVaccination(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.HepatitisVaccination, value); + } + public static string GetHepatitisVaccination(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.HepatitisVaccination); + } + + //OtherVaccination + public static void SetOtherVaccination(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.OtherVaccination, value); + } + public static string GetOtherVaccination(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.OtherVaccination); + } + + //LabBiologicalAnalysis + public static void SetLabBiologicalAnalysis(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.LabBiologicalAnalysis, value); + } + public static string GetLabBiologicalAnalysis(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.LabBiologicalAnalysis); + } + + //LabBlood + public static void SetLabBlood(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.LabBlood, value); + } + public static string GetLabBlood(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.LabBlood); + } + + //LabUrine + public static void SetLabUrine(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.LabUrine, value); + } + public static string GetLabUrine(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.LabUrine); + } + + //LabRadiological + public static void SetLabRadiological(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.LabRadiological, value); + } + public static string GetLabRadiological(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.LabRadiological); + } + + //LabRadiologicalPhysiological + public static void SetLabRadiologicalPhysiological(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.LabRadiologicalPhysiological, value); + } + public static string GetLabRadiologicalPhysiological(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.LabRadiologicalPhysiological); + } + + //LabAudiometry + public static void SetLabAudiometry(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.LabAudiometry, value); + } + public static string GetLabAudiometry(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.LabAudiometry); + } + + //LabPulmonaryFunction + public static void SetLabPulmonaryFunction(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.LabPulmonaryFunction, value); + } + public static string GetLabPulmonaryFunction(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.LabPulmonaryFunction); + } + + //LabPsychologicalTests + public static void SetLabPsychologicalTests(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.LabPsychologicalTests, value); + } + public static string GetLabPsychologicalTests(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.LabPsychologicalTests); + } + + //LabOther + public static void SetLabOther(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.LabOther, value); + } + public static string GetLabOther(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.LabOther); + } + + //ExamSensoryOrgans + public static void SetExamSensoryOrgans(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.ExamSensoryOrgans, value); + } + public static string GetExamSensoryOrgans(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.ExamSensoryOrgans); + } + + //ExamEye + public static void SetExamEye(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.ExamEye, value); + } + public static string GetExamEye(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.ExamEye); + } + + //ExamEnt + public static void SetExamEnt(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.ExamEnt, value); + } + public static string GetExamEnt(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.ExamEnt); + } + + //ExamSkin + public static void SetExamSkin(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.ExamSkin, value); + } + public static string GetExamSkin(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.ExamSkin); + } + + //ExamCardiovascular + public static void SetExamCardiovascular(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.ExamCardiovascular, value); + } + public static string GetExamCardiovascular(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.ExamCardiovascular); + } + + //ExamRespiratory + public static void SetExamRespiratory(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.ExamRespiratory, value); + } + public static string GetExamRespiratory(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.ExamRespiratory); + } + + //ExamDigestive + public static void SetExamDigestive(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.ExamDigestive, value); + } + public static string GetExamDigestive(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.ExamDigestive); + } + + //ExamUrogenital + public static void SetExamUrogenital(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.ExamUrogenital, value); + } + public static string GetExamUrogenital(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.ExamUrogenital); + } + + //ExamMusculoskeletal + public static void SetExamMusculoskeletal(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.ExamMusculoskeletal, value); + } + public static string GetExamMusculoskeletal(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.ExamMusculoskeletal); + } + + //ExamNeurological + public static void SetExamNeurological(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.ExamNeurological, value); + } + public static string GetExamNeurological(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.ExamNeurological); + } + + //ExamPsychiatric + public static void SetExamPsychiatric(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.ExamPsychiatric, value); + } + public static string GetExamPsychiatric(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.ExamPsychiatric); + } + + //ExamOther + public static void SetExamOther(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.ExamOther, value); + } + public static string GetExamOther(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.ExamOther); + } + + //ExamBloodPressure + public static void SetExamBloodPressure(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.ExamBloodPressure, value); + } + public static string GetExamBloodPressure(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.ExamBloodPressure); + } + + //ExamPulse + public static void SetExamPulse(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.ExamPulse, value); + } + public static string GetExamPulse(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.ExamPulse); + } + + //ExamHeight + public static void SetExamHeight(this IdentityUser user, decimal? value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.ExamHeight, value); + } + public static decimal? GetExamHeight(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.ExamHeight); + } + + //ExamWeight + public static void SetExamWeight(this IdentityUser user, decimal? value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.ExamWeight, value); + } + public static decimal? GetExamWeight(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.ExamWeight); + } + + //ComplaintProductiveCough + public static void SetComplaintProductiveCough(this IdentityUser user, bool? value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.ComplaintProductiveCough, value); + } + public static bool? GetComplaintProductiveCough(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.ComplaintProductiveCough); + } + + //ComplaintDyspnea + public static void SetComplaintDyspnea(this IdentityUser user, bool? value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.ComplaintDyspnea, value); + } + public static bool? GetComplaintDyspnea(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.ComplaintDyspnea); + } + + //ComplaintChestPain + public static void SetComplaintChestPain(this IdentityUser user, bool? value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.ComplaintChestPain, value); + } + public static bool? GetComplaintChestPain(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.ComplaintChestPain); + } + + //ComplaintPalpitation + public static void SetComplaintPalpitation(this IdentityUser user, bool? value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.ComplaintPalpitation, value); + } + public static bool? GetComplaintPalpitation(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.ComplaintPalpitation); + } + + //ComplaintBackPain + public static void SetComplaintBackPain(this IdentityUser user, bool? value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.ComplaintBackPain, value); + } + public static bool? GetComplaintBackPain(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.ComplaintBackPain); + } + + //ComplaintDiarrheaConstipation + public static void SetComplaintDiarrheaConstipation(this IdentityUser user, bool? value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.ComplaintDiarrheaConstipation, value); + } + public static bool? GetComplaintDiarrheaConstipation(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.ComplaintDiarrheaConstipation); + } + + //ComplaintJointPain + public static void SetComplaintJointPain(this IdentityUser user, bool? value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.ComplaintJointPain, value); + } + public static bool? GetComplaintJointPain(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.ComplaintJointPain); + } + + //DiagnosisHeartDisease + public static void SetDiagnosisHeartDisease(this IdentityUser user, bool? value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.DiagnosisHeartDisease, value); + } + public static bool? GetDiagnosisHeartDisease(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.DiagnosisHeartDisease); + } + + //DiagnosisDiabetes + public static void SetDiagnosisDiabetes(this IdentityUser user, bool? value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.DiagnosisDiabetes, value); + } + public static bool? GetDiagnosisDiabetes(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.DiagnosisDiabetes); + } + + //DiagnosisKidneyDisease + public static void SetDiagnosisKidneyDisease(this IdentityUser user, bool? value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.DiagnosisKidneyDisease, value); + } + public static bool? GetDiagnosisKidneyDisease(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.DiagnosisKidneyDisease); + } + + //DiagnosisJaundice + public static void SetDiagnosisJaundice(this IdentityUser user, bool? value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.DiagnosisJaundice, value); + } + public static bool? GetDiagnosisJaundice(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.DiagnosisJaundice); + } + + //DiagnosisPepticUlcer + public static void SetDiagnosisPepticUlcer(this IdentityUser user, bool? value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.DiagnosisPepticUlcer, value); + } + public static bool? GetDiagnosisPepticUlcer(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.DiagnosisPepticUlcer); + } + + //DiagnosisHearingLoss + public static void SetDiagnosisHearingLoss(this IdentityUser user, bool? value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.DiagnosisHearingLoss, value); + } + public static bool? GetDiagnosisHearingLoss(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.DiagnosisHearingLoss); + } + + //DiagnosisVisionImpairment + public static void SetDiagnosisVisionImpairment(this IdentityUser user, bool? value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.DiagnosisVisionImpairment, value); + } + public static bool? GetDiagnosisVisionImpairment(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.DiagnosisVisionImpairment); + } + + //DiagnosisNervousSystemDisease + public static void SetDiagnosisNervousSystemDisease(this IdentityUser user, bool? value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.DiagnosisNervousSystemDisease, value); + } + public static bool? GetDiagnosisNervousSystemDisease(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.DiagnosisNervousSystemDisease); + } + + //DiagnosisSkinDisease + public static void SetDiagnosisSkinDisease(this IdentityUser user, bool? value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.DiagnosisSkinDisease, value); + } + public static bool? GetDiagnosisSkinDisease(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.DiagnosisSkinDisease); + } + + //DiagnosisFoodPoisoning + public static void SetDiagnosisFoodPoisoning(this IdentityUser user, bool? value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.DiagnosisFoodPoisoning, value); + } + public static bool? GetDiagnosisFoodPoisoning(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.DiagnosisFoodPoisoning); + } + + //Hospitalized + public static void SetHospitalized(this IdentityUser user, bool? value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.Hospitalized, value); + } + public static bool? GetHospitalized(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.Hospitalized); + } + + //HospitalizedNote + public static void SetHospitalizedNote(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.HospitalizedNote, value); + } + public static string GetHospitalizedNote(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.HospitalizedNote); + } + + //HadSurgery + public static void SetHadSurgery(this IdentityUser user, bool? value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.HadSurgery, value); + } + public static bool? GetHadSurgery(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.HadSurgery); + } + + //HadSurgeryNote + public static void SetHadSurgeryNote(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.HadSurgeryNote, value); + } + public static string GetHadSurgeryNote(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.HadSurgeryNote); + } + + //HadWorkAccident + public static void SetHadWorkAccident(this IdentityUser user, bool? value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.HadWorkAccident, value); + } + public static bool? GetHadWorkAccident(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.HadWorkAccident); + } + + //HadWorkAccidentNote + public static void SetHadWorkAccidentNote(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.HadWorkAccidentNote, value); + } + public static string GetHadWorkAccidentNote(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.HadWorkAccidentNote); + } + + //OccupationalDiseaseExam + public static void SetOccupationalDiseaseExam(this IdentityUser user, bool? value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.OccupationalDiseaseExam, value); + } + public static bool? GetOccupationalDiseaseExam(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.OccupationalDiseaseExam); + } + + //OccupationalDiseaseExamNote + public static void SetOccupationalDiseaseExamNote(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.OccupationalDiseaseExamNote, value); + } + public static string GetOccupationalDiseaseExamNote(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.OccupationalDiseaseExamNote); + } + + //DisabilityPension + public static void SetDisabilityPension(this IdentityUser user, bool? value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.DisabilityPension, value); + } + public static bool? GetDisabilityPension(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.DisabilityPension); + } + + //DisabilityPensionNote + public static void SetDisabilityPensionNote(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.DisabilityPensionNote, value); + } + public static string GetDisabilityPensionNote(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.DisabilityPensionNote); + } + + //UnderTreatment + public static void SetUnderTreatment(this IdentityUser user, bool? value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.UnderTreatment, value); + } + public static bool? GetUnderTreatment(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.UnderTreatment); + } + + //UnderTreatmentNote + public static void SetUnderTreatmentNote(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.UnderTreatmentNote, value); + } + public static string GetUnderTreatmentNote(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.UnderTreatmentNote); + } + + //Smoking + public static void SetSmoking(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.Smoking, value); + } + public static string GetSmoking(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.Smoking); + } + + //SmokingNote + public static void SetSmokingNote(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.SmokingNote, value); + } + public static string GetSmokingNote(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.SmokingNote); + } + + //Alcohol + public static void SetAlcohol(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.Alcohol, value); + } + public static string GetAlcohol(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.Alcohol); + } + + //AlcoholNote + public static void SetAlcoholNote(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.AlcoholNote, value); + } + public static string GetAlcoholNote(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.AlcoholNote); + } + + //FitForWorkJob + public static void SetFitForWorkJob(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.FitForWorkJob, value); + } + public static string GetFitForWorkJob(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.FitForWorkJob); + } + + //FitForWorkCondition + public static void SetFitForWorkCondition(this IdentityUser user, string value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.FitForWorkCondition, value); + } + public static string GetFitForWorkCondition(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.FitForWorkCondition); + } + + //FitnessDoctorId + public static void SetFitnessDoctorId(this IdentityUser user, Guid? value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.FitnessDoctorId, value); + } + public static Guid? GetFitnessDoctorId(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.FitnessDoctorId); + } + + //ShiftWorkFit + public static void SetShiftWorkFit(this IdentityUser user, bool? value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.ShiftWorkFit, value); + } + public static bool? GetShiftWorkFit(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.ShiftWorkFit); + } + + //NightWorkFit + public static void SetNightWorkFit(this IdentityUser user, bool? value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.NightWorkFit, value); + } + public static bool? GetNightWorkFit(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.NightWorkFit); + } + + //ShiftNightDoctorId + public static void SetShiftNightDoctorId(this IdentityUser user, Guid? value) + { + user.SetProperty(PlatformConsts.AbpIdentity.User.ShiftNightDoctorId, value); + } + public static Guid? GetShiftNightDoctorId(this IdentityUser user) + { + return user.GetProperty(PlatformConsts.AbpIdentity.User.ShiftNightDoctorId); + } } diff --git a/api/src/Sozsoft.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformDbContext.cs b/api/src/Sozsoft.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformDbContext.cs index 08215786..58659b1c 100644 --- a/api/src/Sozsoft.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformDbContext.cs +++ b/api/src/Sozsoft.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformDbContext.cs @@ -99,6 +99,10 @@ public class PlatformDbContext : public DbSet BlogCategories { get; set; } public DbSet Demos { get; set; } public DbSet Sectors { get; set; } + public DbSet UserWorkExperiences { get; set; } + public DbSet UserPeriodicExaminations { get; set; } + public DbSet UserPatientProtocols { get; set; } + public DbSet UserSickLeaves { get; set; } public DbSet SkillTypes { get; set; } public DbSet DevRequests { get; set; } public DbSet Agendas { get; set; } @@ -765,6 +769,70 @@ public class PlatformDbContext : b.HasIndex(x => new { x.TenantId, x.ResourceType, x.ResourceId, x.IP }).IsUnique().HasFilter("[IsDeleted] = 0"); }); + builder.Entity(b => + { + b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.UserWorkExperience)), Prefix.DbSchema); + b.ConfigureByConvention(); + + b.Property(x => x.UserId).IsRequired(); + b.Property(x => x.CompanyName).IsRequired().HasMaxLength(256); + b.Property(x => x.SectorId).IsRequired(); + b.Property(x => x.StartDate).IsRequired(); + b.Property(x => x.JobDescription).IsRequired(false); + + b.HasIndex(x => new { x.TenantId, x.UserId }); + + b.HasOne() + .WithMany() + .HasForeignKey(x => x.SectorId) + .OnDelete(DeleteBehavior.Restrict); + }); + + builder.Entity(b => + { + b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.UserPeriodicExamination)), Prefix.DbSchema); + b.ConfigureByConvention(); + + b.Property(x => x.UserId).IsRequired(); + b.Property(x => x.ExamDate).IsRequired(); + b.Property(x => x.Examination).IsRequired().HasMaxLength(256); + b.Property(x => x.Result).IsRequired(false).HasMaxLength(512); + b.Property(x => x.DoctorDiplomaNo).IsRequired(false).HasMaxLength(50); + + b.HasIndex(x => new { x.TenantId, x.UserId }); + }); + + builder.Entity(b => + { + b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.UserPatientProtocol)), Prefix.DbSchema); + b.ConfigureByConvention(); + + b.Property(x => x.UserId).IsRequired(); + b.Property(x => x.ProtocolDate).IsRequired(); + b.Property(x => x.ProtocolType).IsRequired().HasMaxLength(32); + b.Property(x => x.ProtocolResult).IsRequired(false).HasMaxLength(32); + b.Property(x => x.ReferralPlace).IsRequired(false).HasMaxLength(256); + + b.HasIndex(x => new { x.TenantId, x.UserId }); + }); + + builder.Entity(b => + { + b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.UserSickLeave)), Prefix.DbSchema); + b.ConfigureByConvention(); + + b.Property(x => x.UserId).IsRequired(); + b.Property(x => x.StartDate).IsRequired(); + b.Property(x => x.EndDate).IsRequired(); + b.Property(x => x.Days).IsRequired(); + b.Property(x => x.SickLeaveType).IsRequired().HasMaxLength(32); + b.Property(x => x.Institution).IsRequired(false).HasMaxLength(256); + b.Property(x => x.Clinic).IsRequired(false).HasMaxLength(256); + b.Property(x => x.SickLeaveReason).IsRequired(false).HasMaxLength(512); + + b.HasIndex(x => new { x.TenantId, x.UserId }); + }); + // Definitions builder.Entity(b => { diff --git a/api/src/Sozsoft.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformEfCoreEntityExtensionMappings.cs b/api/src/Sozsoft.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformEfCoreEntityExtensionMappings.cs index 9f36fc1e..d6688d38 100644 --- a/api/src/Sozsoft.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformEfCoreEntityExtensionMappings.cs +++ b/api/src/Sozsoft.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformEfCoreEntityExtensionMappings.cs @@ -326,6 +326,690 @@ public static class PlatformEfCoreEntityExtensionMappings } ); + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.MotherHealthStatus, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(16).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.MotherHealthNote, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(512).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.FatherHealthStatus, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(16).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.FatherHealthNote, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(512).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.SiblingHealthStatus, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(16).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.SiblingHealthNote, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(512).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.ChildHealthStatus, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(16).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.ChildHealthNote, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(512).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.ChronicDisease, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(512).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.TetanusVaccination, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(256).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.HepatitisVaccination, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(256).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.OtherVaccination, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(512).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.LabBiologicalAnalysis, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(256).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.LabBlood, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(256).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.LabUrine, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(256).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.LabRadiological, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(256).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.LabRadiologicalPhysiological, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(256).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.LabAudiometry, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(256).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.LabPulmonaryFunction, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(256).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.LabPsychologicalTests, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(256).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.LabOther, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(256).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.ExamSensoryOrgans, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(256).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.ExamEye, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(256).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.ExamEnt, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(256).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.ExamSkin, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(256).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.ExamCardiovascular, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(256).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.ExamRespiratory, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(256).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.ExamDigestive, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(256).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.ExamUrogenital, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(256).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.ExamMusculoskeletal, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(256).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.ExamNeurological, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(256).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.ExamPsychiatric, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(256).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.ExamOther, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(256).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.ExamBloodPressure, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(16).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.ExamPulse, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(16).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.ExamHeight, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasPrecision(5, 2).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.ExamWeight, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasPrecision(5, 2).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.ComplaintProductiveCough, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.ComplaintDyspnea, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.ComplaintChestPain, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.ComplaintPalpitation, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.ComplaintBackPain, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.ComplaintDiarrheaConstipation, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.ComplaintJointPain, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.DiagnosisHeartDisease, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.DiagnosisDiabetes, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.DiagnosisKidneyDisease, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.DiagnosisJaundice, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.DiagnosisPepticUlcer, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.DiagnosisHearingLoss, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.DiagnosisVisionImpairment, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.DiagnosisNervousSystemDisease, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.DiagnosisSkinDisease, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.DiagnosisFoodPoisoning, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.Hospitalized, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.HospitalizedNote, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(512).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.HadSurgery, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.HadSurgeryNote, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(512).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.HadWorkAccident, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.HadWorkAccidentNote, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(512).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.OccupationalDiseaseExam, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.OccupationalDiseaseExamNote, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(512).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.DisabilityPension, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.DisabilityPensionNote, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(512).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.UnderTreatment, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.UnderTreatmentNote, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(512).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.Smoking, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(16).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.SmokingNote, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(512).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.Alcohol, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(16).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.AlcoholNote, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(512).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.FitForWorkJob, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(256).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.FitForWorkCondition, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(512).HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.FitnessDoctorId, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.ShiftWorkFit, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.NightWorkFit, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasDefaultValue(null); + } + ); + + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.AbpIdentity.User.ShiftNightDoctorId, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasDefaultValue(null); + } + ); + ObjectExtensionManager.Instance .MapEfCoreProperty( PlatformConsts.Tenants.IsActive, diff --git a/api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/20260930212718_Initial.Designer.cs b/api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/20261001063425_Initial.Designer.cs similarity index 94% rename from api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/20260930212718_Initial.Designer.cs rename to api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/20261001063425_Initial.Designer.cs index bf1f434a..0e8b20c4 100644 --- a/api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/20260930212718_Initial.Designer.cs +++ b/api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/20261001063425_Initial.Designer.cs @@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore; namespace Sozsoft.Platform.Migrations { [DbContext(typeof(PlatformDbContext))] - [Migration("20260930212718_Initial")] + [Migration("20261001063425_Initial")] partial class Initial { /// @@ -6144,6 +6144,291 @@ namespace Sozsoft.Platform.Migrations b.ToTable("Adm_T_UomCategory", (string)null); }); + modelBuilder.Entity("Sozsoft.Platform.Entities.UserPatientProtocol", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier") + .HasColumnName("CreatorId"); + + b.Property("DeleterId") + .HasColumnType("uniqueidentifier") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime2") + .HasColumnName("DeletionTime"); + + b.Property("DoctorId") + .HasColumnType("uniqueidentifier"); + + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false) + .HasColumnName("IsDeleted"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier") + .HasColumnName("LastModifierId"); + + b.Property("ProtocolDate") + .HasColumnType("datetime2"); + + b.Property("ProtocolResult") + .HasMaxLength(32) + .HasColumnType("nvarchar(32)"); + + b.Property("ProtocolType") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("nvarchar(32)"); + + b.Property("ReferralPlace") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("RestDays") + .HasColumnType("int"); + + b.Property("SequenceNo") + .HasColumnType("int"); + + b.Property("TenantId") + .HasColumnType("uniqueidentifier") + .HasColumnName("TenantId"); + + b.Property("UserId") + .HasColumnType("uniqueidentifier"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "UserId"); + + b.ToTable("Adm_T_UserPatientProtocol", (string)null); + }); + + modelBuilder.Entity("Sozsoft.Platform.Entities.UserPeriodicExamination", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier") + .HasColumnName("CreatorId"); + + b.Property("DeleterId") + .HasColumnType("uniqueidentifier") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime2") + .HasColumnName("DeletionTime"); + + b.Property("DoctorDiplomaNo") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("DoctorId") + .HasColumnType("uniqueidentifier"); + + b.Property("ExamDate") + .HasColumnType("datetime2"); + + b.Property("Examination") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false) + .HasColumnName("IsDeleted"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier") + .HasColumnName("LastModifierId"); + + b.Property("Result") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + + b.Property("TenantId") + .HasColumnType("uniqueidentifier") + .HasColumnName("TenantId"); + + b.Property("UserId") + .HasColumnType("uniqueidentifier"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "UserId"); + + b.ToTable("Adm_T_UserPeriodicExamination", (string)null); + }); + + modelBuilder.Entity("Sozsoft.Platform.Entities.UserSickLeave", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("Clinic") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("CreationTime") + .HasColumnType("datetime2") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier") + .HasColumnName("CreatorId"); + + b.Property("Days") + .HasColumnType("int"); + + b.Property("DeleterId") + .HasColumnType("uniqueidentifier") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime2") + .HasColumnName("DeletionTime"); + + b.Property("EndDate") + .HasColumnType("datetime2"); + + b.Property("Institution") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false) + .HasColumnName("IsDeleted"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier") + .HasColumnName("LastModifierId"); + + b.Property("SickLeaveReason") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + + b.Property("SickLeaveType") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("nvarchar(32)"); + + b.Property("StartDate") + .HasColumnType("datetime2"); + + b.Property("TenantId") + .HasColumnType("uniqueidentifier") + .HasColumnName("TenantId"); + + b.Property("UserId") + .HasColumnType("uniqueidentifier"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "UserId"); + + b.ToTable("Adm_T_UserSickLeave", (string)null); + }); + + modelBuilder.Entity("Sozsoft.Platform.Entities.UserWorkExperience", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("CompanyName") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("CreationTime") + .HasColumnType("datetime2") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier") + .HasColumnName("CreatorId"); + + b.Property("DeleterId") + .HasColumnType("uniqueidentifier") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime2") + .HasColumnName("DeletionTime"); + + b.Property("EndDate") + .HasColumnType("datetime2"); + + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false) + .HasColumnName("IsDeleted"); + + b.Property("JobDescription") + .HasColumnType("nvarchar(max)"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier") + .HasColumnName("LastModifierId"); + + b.Property("SectorId") + .HasColumnType("uniqueidentifier"); + + b.Property("StartDate") + .HasColumnType("datetime2"); + + b.Property("TenantId") + .HasColumnType("uniqueidentifier") + .HasColumnName("TenantId"); + + b.Property("UserId") + .HasColumnType("uniqueidentifier"); + + b.HasKey("Id"); + + b.HasIndex("SectorId"); + + b.HasIndex("TenantId", "UserId"); + + b.ToTable("Adm_T_UserWorkExperience", (string)null); + }); + modelBuilder.Entity("Sozsoft.Platform.Entities.Videoroom", b => { b.Property("Id") @@ -7731,6 +8016,14 @@ namespace Sozsoft.Platform.Migrations .HasDefaultValue(0) .HasColumnName("AccessFailedCount"); + b.Property("Alcohol") + .HasMaxLength(16) + .HasColumnType("nvarchar(16)"); + + b.Property("AlcoholNote") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + b.Property("Avatar") .HasMaxLength(512) .HasColumnType("nvarchar(512)"); @@ -7746,6 +8039,39 @@ namespace Sozsoft.Platform.Migrations .HasMaxLength(16) .HasColumnType("nvarchar(16)"); + b.Property("ChildHealthNote") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + + b.Property("ChildHealthStatus") + .HasMaxLength(16) + .HasColumnType("nvarchar(16)"); + + b.Property("ChronicDisease") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + + b.Property("ComplaintBackPain") + .HasColumnType("bit"); + + b.Property("ComplaintChestPain") + .HasColumnType("bit"); + + b.Property("ComplaintDiarrheaConstipation") + .HasColumnType("bit"); + + b.Property("ComplaintDyspnea") + .HasColumnType("bit"); + + b.Property("ComplaintJointPain") + .HasColumnType("bit"); + + b.Property("ComplaintPalpitation") + .HasColumnType("bit"); + + b.Property("ComplaintProductiveCough") + .HasColumnType("bit"); + b.Property("ConcurrencyStamp") .IsConcurrencyToken() .IsRequired() @@ -7772,6 +8098,43 @@ namespace Sozsoft.Platform.Migrations b.Property("DepartmentId") .HasColumnType("uniqueidentifier"); + b.Property("DiagnosisDiabetes") + .HasColumnType("bit"); + + b.Property("DiagnosisFoodPoisoning") + .HasColumnType("bit"); + + b.Property("DiagnosisHearingLoss") + .HasColumnType("bit"); + + b.Property("DiagnosisHeartDisease") + .HasColumnType("bit"); + + b.Property("DiagnosisJaundice") + .HasColumnType("bit"); + + b.Property("DiagnosisKidneyDisease") + .HasColumnType("bit"); + + b.Property("DiagnosisNervousSystemDisease") + .HasColumnType("bit"); + + b.Property("DiagnosisPepticUlcer") + .HasColumnType("bit"); + + b.Property("DiagnosisSkinDisease") + .HasColumnType("bit"); + + b.Property("DiagnosisVisionImpairment") + .HasColumnType("bit"); + + b.Property("DisabilityPension") + .HasColumnType("bit"); + + b.Property("DisabilityPensionNote") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + b.Property("District") .HasMaxLength(128) .HasColumnType("nvarchar(128)"); @@ -7795,6 +8158,70 @@ namespace Sozsoft.Platform.Migrations b.Property("EntityVersion") .HasColumnType("int"); + b.Property("ExamBloodPressure") + .HasMaxLength(16) + .HasColumnType("nvarchar(16)"); + + b.Property("ExamCardiovascular") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("ExamDigestive") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("ExamEnt") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("ExamEye") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("ExamHeight") + .HasPrecision(5, 2) + .HasColumnType("decimal(5,2)"); + + b.Property("ExamMusculoskeletal") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("ExamNeurological") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("ExamOther") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("ExamPsychiatric") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("ExamPulse") + .HasMaxLength(16) + .HasColumnType("nvarchar(16)"); + + b.Property("ExamRespiratory") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("ExamSensoryOrgans") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("ExamSkin") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("ExamUrogenital") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("ExamWeight") + .HasPrecision(5, 2) + .HasColumnType("decimal(5,2)"); + b.Property("ExtraProperties") .IsRequired() .HasColumnType("nvarchar(max)") @@ -7804,10 +8231,29 @@ namespace Sozsoft.Platform.Migrations .HasMaxLength(32) .HasColumnType("nvarchar(32)"); + b.Property("FatherHealthNote") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + + b.Property("FatherHealthStatus") + .HasMaxLength(16) + .HasColumnType("nvarchar(16)"); + b.Property("FatherName") .HasMaxLength(128) .HasColumnType("nvarchar(128)"); + b.Property("FitForWorkCondition") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + + b.Property("FitForWorkJob") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("FitnessDoctorId") + .HasColumnType("uniqueidentifier"); + b.Property("Gender") .HasMaxLength(16) .HasColumnType("nvarchar(16)"); @@ -7816,6 +8262,24 @@ namespace Sozsoft.Platform.Migrations .HasMaxLength(256) .HasColumnType("nvarchar(256)"); + b.Property("HadSurgery") + .HasColumnType("bit"); + + b.Property("HadSurgeryNote") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + + b.Property("HadWorkAccident") + .HasColumnType("bit"); + + b.Property("HadWorkAccidentNote") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + + b.Property("HepatitisVaccination") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + b.Property("HireDate") .HasColumnType("datetime2"); @@ -7823,6 +8287,13 @@ namespace Sozsoft.Platform.Migrations .HasMaxLength(512) .HasColumnType("nvarchar(512)"); + b.Property("Hospitalized") + .HasColumnType("bit"); + + b.Property("HospitalizedNote") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + b.Property("IdentityNumber") .HasMaxLength(15) .HasColumnType("nvarchar(15)"); @@ -7858,6 +8329,42 @@ namespace Sozsoft.Platform.Migrations b.Property("JobPositionId") .HasColumnType("uniqueidentifier"); + b.Property("LabAudiometry") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("LabBiologicalAnalysis") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("LabBlood") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("LabOther") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("LabPsychologicalTests") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("LabPulmonaryFunction") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("LabRadiological") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("LabRadiologicalPhysiological") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("LabUrine") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); @@ -7888,6 +8395,14 @@ namespace Sozsoft.Platform.Migrations b.Property("MarriageDate") .HasColumnType("datetime2"); + b.Property("MotherHealthNote") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + + b.Property("MotherHealthStatus") + .HasMaxLength(16) + .HasColumnType("nvarchar(16)"); + b.Property("MotherName") .HasMaxLength(128) .HasColumnType("nvarchar(128)"); @@ -7901,6 +8416,9 @@ namespace Sozsoft.Platform.Migrations .HasMaxLength(128) .HasColumnType("nvarchar(128)"); + b.Property("NightWorkFit") + .HasColumnType("bit"); + b.Property("NormalizedEmail") .IsRequired() .HasMaxLength(256) @@ -7913,6 +8431,17 @@ namespace Sozsoft.Platform.Migrations .HasColumnType("nvarchar(256)") .HasColumnName("NormalizedUserName"); + b.Property("OccupationalDiseaseExam") + .HasColumnType("bit"); + + b.Property("OccupationalDiseaseExamNote") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + + b.Property("OtherVaccination") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + b.Property("PasswordHash") .HasMaxLength(256) .HasColumnType("nvarchar(256)") @@ -7950,9 +8479,31 @@ namespace Sozsoft.Platform.Migrations .HasMaxLength(32) .HasColumnType("nvarchar(32)"); + b.Property("ShiftNightDoctorId") + .HasColumnType("uniqueidentifier"); + + b.Property("ShiftWorkFit") + .HasColumnType("bit"); + b.Property("ShouldChangePasswordOnNextLogin") .HasColumnType("bit"); + b.Property("SiblingHealthNote") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + + b.Property("SiblingHealthStatus") + .HasMaxLength(16) + .HasColumnType("nvarchar(16)"); + + b.Property("Smoking") + .HasMaxLength(16) + .HasColumnType("nvarchar(16)"); + + b.Property("SmokingNote") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + b.Property("SskNo") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); @@ -7973,12 +8524,23 @@ namespace Sozsoft.Platform.Migrations b.Property("TerminationDate") .HasColumnType("datetime2"); + b.Property("TetanusVaccination") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + b.Property("TwoFactorEnabled") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("TwoFactorEnabled"); + b.Property("UnderTreatment") + .HasColumnType("bit"); + + b.Property("UnderTreatmentNote") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + b.Property("UserName") .IsRequired() .HasMaxLength(256) @@ -9354,6 +9916,15 @@ namespace Sozsoft.Platform.Migrations b.Navigation("UomCategory"); }); + modelBuilder.Entity("Sozsoft.Platform.Entities.UserWorkExperience", b => + { + b.HasOne("Sozsoft.Platform.Entities.Sector", null) + .WithMany() + .HasForeignKey("SectorId") + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + }); + modelBuilder.Entity("Sozsoft.Platform.Entities.VideoroomAttandance", b => { b.HasOne("Sozsoft.Platform.Entities.Videoroom", "Session") diff --git a/api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/20260930212718_Initial.cs b/api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/20261001063425_Initial.cs similarity index 94% rename from api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/20260930212718_Initial.cs rename to api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/20261001063425_Initial.cs index 6ac1a9b7..e6714605 100644 --- a/api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/20260930212718_Initial.cs +++ b/api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/20261001063425_Initial.cs @@ -436,36 +436,112 @@ namespace Sozsoft.Platform.Migrations ShouldChangePasswordOnNextLogin = table.Column(type: "bit", nullable: false), EntityVersion = table.Column(type: "int", nullable: false), LastPasswordChangeTime = table.Column(type: "datetimeoffset", nullable: true), + Alcohol = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: true), + AlcoholNote = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), Avatar = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), BirthDate = table.Column(type: "datetime2", nullable: true), BirthPlace = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), BloodType = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: true), + ChildHealthNote = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + ChildHealthStatus = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: true), + ChronicDisease = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + ComplaintBackPain = table.Column(type: "bit", nullable: true), + ComplaintChestPain = table.Column(type: "bit", nullable: true), + ComplaintDiarrheaConstipation = table.Column(type: "bit", nullable: true), + ComplaintDyspnea = table.Column(type: "bit", nullable: true), + ComplaintJointPain = table.Column(type: "bit", nullable: true), + ComplaintPalpitation = table.Column(type: "bit", nullable: true), + ComplaintProductiveCough = table.Column(type: "bit", nullable: true), DepartmentId = table.Column(type: "uniqueidentifier", nullable: false), + DiagnosisDiabetes = table.Column(type: "bit", nullable: true), + DiagnosisFoodPoisoning = table.Column(type: "bit", nullable: true), + DiagnosisHearingLoss = table.Column(type: "bit", nullable: true), + DiagnosisHeartDisease = table.Column(type: "bit", nullable: true), + DiagnosisJaundice = table.Column(type: "bit", nullable: true), + DiagnosisKidneyDisease = table.Column(type: "bit", nullable: true), + DiagnosisNervousSystemDisease = table.Column(type: "bit", nullable: true), + DiagnosisPepticUlcer = table.Column(type: "bit", nullable: true), + DiagnosisSkinDisease = table.Column(type: "bit", nullable: true), + DiagnosisVisionImpairment = table.Column(type: "bit", nullable: true), + DisabilityPension = table.Column(type: "bit", nullable: true), + DisabilityPensionNote = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), District = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), EducationLevel = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + ExamBloodPressure = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: true), + ExamCardiovascular = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + ExamDigestive = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + ExamEnt = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + ExamEye = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + ExamHeight = table.Column(type: "decimal(5,2)", precision: 5, scale: 2, nullable: true), + ExamMusculoskeletal = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + ExamNeurological = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + ExamOther = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + ExamPsychiatric = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + ExamPulse = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: true), + ExamRespiratory = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + ExamSensoryOrgans = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + ExamSkin = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + ExamUrogenital = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + ExamWeight = table.Column(type: "decimal(5,2)", precision: 5, scale: 2, nullable: true), FamilySequenceNo = table.Column(type: "nvarchar(32)", maxLength: 32, nullable: true), + FatherHealthNote = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + FatherHealthStatus = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: true), FatherName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + FitForWorkCondition = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + FitForWorkJob = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + FitnessDoctorId = table.Column(type: "uniqueidentifier", nullable: true), Gender = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: true), GraduationSchool = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + HadSurgery = table.Column(type: "bit", nullable: true), + HadSurgeryNote = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + HadWorkAccident = table.Column(type: "bit", nullable: true), + HadWorkAccidentNote = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + HepatitisVaccination = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), HireDate = table.Column(type: "datetime2", nullable: true), HomeAddress = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + Hospitalized = table.Column(type: "bit", nullable: true), + HospitalizedNote = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IdentityNumber = table.Column(type: "nvarchar(15)", maxLength: 15, nullable: true), IsVerified = table.Column(type: "bit", nullable: false, defaultValue: false), IssuedDate = table.Column(type: "datetime2", nullable: true), IssuedPlace = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), JobPositionId = table.Column(type: "uniqueidentifier", nullable: false), + LabAudiometry = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + LabBiologicalAnalysis = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + LabBlood = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + LabOther = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + LabPsychologicalTests = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + LabPulmonaryFunction = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + LabRadiological = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + LabRadiologicalPhysiological = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + LabUrine = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), LoginEndDate = table.Column(type: "datetime2", nullable: true), MaritalStatus = table.Column(type: "nvarchar(32)", maxLength: 32, nullable: true), MarriageDate = table.Column(type: "datetime2", nullable: true), + MotherHealthNote = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + MotherHealthStatus = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: true), MotherName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), Nationality = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + NightWorkFit = table.Column(type: "bit", nullable: true), + OccupationalDiseaseExam = table.Column(type: "bit", nullable: true), + OccupationalDiseaseExamNote = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + OtherVaccination = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), Province = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), RocketUsername = table.Column(type: "nvarchar(max)", nullable: true), SequenceNo = table.Column(type: "nvarchar(32)", maxLength: 32, nullable: true), SerialNo = table.Column(type: "nvarchar(32)", maxLength: 32, nullable: true), + ShiftNightDoctorId = table.Column(type: "uniqueidentifier", nullable: true), + ShiftWorkFit = table.Column(type: "bit", nullable: true), + SiblingHealthNote = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + SiblingHealthStatus = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: true), + Smoking = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: true), + SmokingNote = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), SskNo = table.Column(type: "nvarchar(32)", maxLength: 32, nullable: true), TelegramChatId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), TerminationDate = table.Column(type: "datetime2", nullable: true), + TetanusVaccination = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + UnderTreatment = table.Column(type: "bit", nullable: true), + UnderTreatmentNote = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), UserType = table.Column(type: "int", nullable: false, defaultValue: 0), Village = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), VolumeNo = table.Column(type: "nvarchar(32)", maxLength: 32, nullable: true), @@ -844,6 +920,85 @@ namespace Sozsoft.Platform.Migrations table.PrimaryKey("PK_Adm_T_UomCategory", x => x.Id); }); + migrationBuilder.CreateTable( + name: "Adm_T_UserPatientProtocol", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + UserId = table.Column(type: "uniqueidentifier", nullable: false), + SequenceNo = table.Column(type: "int", nullable: true), + ProtocolDate = table.Column(type: "datetime2", nullable: false), + ProtocolType = table.Column(type: "nvarchar(32)", maxLength: 32, nullable: false), + ProtocolResult = table.Column(type: "nvarchar(32)", maxLength: 32, nullable: true), + RestDays = table.Column(type: "int", nullable: true), + ReferralPlace = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + DoctorId = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Adm_T_UserPatientProtocol", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_UserPeriodicExamination", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + UserId = table.Column(type: "uniqueidentifier", nullable: false), + ExamDate = table.Column(type: "datetime2", nullable: false), + Examination = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Result = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + DoctorId = table.Column(type: "uniqueidentifier", nullable: true), + DoctorDiplomaNo = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Adm_T_UserPeriodicExamination", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_UserSickLeave", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + UserId = table.Column(type: "uniqueidentifier", nullable: false), + StartDate = table.Column(type: "datetime2", nullable: false), + EndDate = table.Column(type: "datetime2", nullable: false), + Days = table.Column(type: "int", nullable: false), + SickLeaveType = table.Column(type: "nvarchar(32)", maxLength: 32, nullable: false), + Institution = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + Clinic = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + SickLeaveReason = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Adm_T_UserSickLeave", x => x.Id); + }); + migrationBuilder.CreateTable( name: "Adm_T_Videoroom", columns: table => new @@ -2352,6 +2507,37 @@ namespace Sozsoft.Platform.Migrations onDelete: ReferentialAction.Restrict); }); + migrationBuilder.CreateTable( + name: "Adm_T_UserWorkExperience", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + UserId = table.Column(type: "uniqueidentifier", nullable: false), + CompanyName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + SectorId = table.Column(type: "uniqueidentifier", nullable: false), + StartDate = table.Column(type: "datetime2", nullable: false), + EndDate = table.Column(type: "datetime2", nullable: true), + JobDescription = table.Column(type: "nvarchar(max)", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Adm_T_UserWorkExperience", x => x.Id); + table.ForeignKey( + name: "FK_Adm_T_UserWorkExperience_Adm_T_Sector_SectorId", + column: x => x.SectorId, + principalTable: "Adm_T_Sector", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + migrationBuilder.CreateTable( name: "Adm_T_SocialComment", columns: table => new @@ -4018,6 +4204,31 @@ namespace Sozsoft.Platform.Migrations unique: true, filter: "[IsDeleted] = 0"); + migrationBuilder.CreateIndex( + name: "IX_Adm_T_UserPatientProtocol_TenantId_UserId", + table: "Adm_T_UserPatientProtocol", + columns: new[] { "TenantId", "UserId" }); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_UserPeriodicExamination_TenantId_UserId", + table: "Adm_T_UserPeriodicExamination", + columns: new[] { "TenantId", "UserId" }); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_UserSickLeave_TenantId_UserId", + table: "Adm_T_UserSickLeave", + columns: new[] { "TenantId", "UserId" }); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_UserWorkExperience_SectorId", + table: "Adm_T_UserWorkExperience", + column: "SectorId"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_UserWorkExperience_TenantId_UserId", + table: "Adm_T_UserWorkExperience", + columns: new[] { "TenantId", "UserId" }); + migrationBuilder.CreateIndex( name: "IX_Adm_T_Videoroom_TenantId_BranchId_Name", table: "Adm_T_Videoroom", @@ -4542,9 +4753,6 @@ namespace Sozsoft.Platform.Migrations migrationBuilder.DropTable( name: "Adm_T_ReportTemplate"); - migrationBuilder.DropTable( - name: "Adm_T_Sector"); - migrationBuilder.DropTable( name: "Adm_T_Sequence"); @@ -4569,6 +4777,18 @@ namespace Sozsoft.Platform.Migrations migrationBuilder.DropTable( name: "Adm_T_Uom"); + migrationBuilder.DropTable( + name: "Adm_T_UserPatientProtocol"); + + migrationBuilder.DropTable( + name: "Adm_T_UserPeriodicExamination"); + + migrationBuilder.DropTable( + name: "Adm_T_UserSickLeave"); + + migrationBuilder.DropTable( + name: "Adm_T_UserWorkExperience"); + migrationBuilder.DropTable( name: "Adm_T_VideoroomAttandance"); @@ -4743,6 +4963,9 @@ namespace Sozsoft.Platform.Migrations migrationBuilder.DropTable( name: "Adm_T_UomCategory"); + migrationBuilder.DropTable( + name: "Adm_T_Sector"); + migrationBuilder.DropTable( name: "Adm_T_Videoroom"); diff --git a/api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs b/api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs index 4d5fe7da..7c99bb50 100644 --- a/api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs +++ b/api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs @@ -6141,6 +6141,291 @@ namespace Sozsoft.Platform.Migrations b.ToTable("Adm_T_UomCategory", (string)null); }); + modelBuilder.Entity("Sozsoft.Platform.Entities.UserPatientProtocol", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier") + .HasColumnName("CreatorId"); + + b.Property("DeleterId") + .HasColumnType("uniqueidentifier") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime2") + .HasColumnName("DeletionTime"); + + b.Property("DoctorId") + .HasColumnType("uniqueidentifier"); + + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false) + .HasColumnName("IsDeleted"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier") + .HasColumnName("LastModifierId"); + + b.Property("ProtocolDate") + .HasColumnType("datetime2"); + + b.Property("ProtocolResult") + .HasMaxLength(32) + .HasColumnType("nvarchar(32)"); + + b.Property("ProtocolType") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("nvarchar(32)"); + + b.Property("ReferralPlace") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("RestDays") + .HasColumnType("int"); + + b.Property("SequenceNo") + .HasColumnType("int"); + + b.Property("TenantId") + .HasColumnType("uniqueidentifier") + .HasColumnName("TenantId"); + + b.Property("UserId") + .HasColumnType("uniqueidentifier"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "UserId"); + + b.ToTable("Adm_T_UserPatientProtocol", (string)null); + }); + + modelBuilder.Entity("Sozsoft.Platform.Entities.UserPeriodicExamination", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier") + .HasColumnName("CreatorId"); + + b.Property("DeleterId") + .HasColumnType("uniqueidentifier") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime2") + .HasColumnName("DeletionTime"); + + b.Property("DoctorDiplomaNo") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("DoctorId") + .HasColumnType("uniqueidentifier"); + + b.Property("ExamDate") + .HasColumnType("datetime2"); + + b.Property("Examination") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false) + .HasColumnName("IsDeleted"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier") + .HasColumnName("LastModifierId"); + + b.Property("Result") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + + b.Property("TenantId") + .HasColumnType("uniqueidentifier") + .HasColumnName("TenantId"); + + b.Property("UserId") + .HasColumnType("uniqueidentifier"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "UserId"); + + b.ToTable("Adm_T_UserPeriodicExamination", (string)null); + }); + + modelBuilder.Entity("Sozsoft.Platform.Entities.UserSickLeave", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("Clinic") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("CreationTime") + .HasColumnType("datetime2") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier") + .HasColumnName("CreatorId"); + + b.Property("Days") + .HasColumnType("int"); + + b.Property("DeleterId") + .HasColumnType("uniqueidentifier") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime2") + .HasColumnName("DeletionTime"); + + b.Property("EndDate") + .HasColumnType("datetime2"); + + b.Property("Institution") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false) + .HasColumnName("IsDeleted"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier") + .HasColumnName("LastModifierId"); + + b.Property("SickLeaveReason") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + + b.Property("SickLeaveType") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("nvarchar(32)"); + + b.Property("StartDate") + .HasColumnType("datetime2"); + + b.Property("TenantId") + .HasColumnType("uniqueidentifier") + .HasColumnName("TenantId"); + + b.Property("UserId") + .HasColumnType("uniqueidentifier"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "UserId"); + + b.ToTable("Adm_T_UserSickLeave", (string)null); + }); + + modelBuilder.Entity("Sozsoft.Platform.Entities.UserWorkExperience", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("CompanyName") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("CreationTime") + .HasColumnType("datetime2") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier") + .HasColumnName("CreatorId"); + + b.Property("DeleterId") + .HasColumnType("uniqueidentifier") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime2") + .HasColumnName("DeletionTime"); + + b.Property("EndDate") + .HasColumnType("datetime2"); + + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false) + .HasColumnName("IsDeleted"); + + b.Property("JobDescription") + .HasColumnType("nvarchar(max)"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier") + .HasColumnName("LastModifierId"); + + b.Property("SectorId") + .HasColumnType("uniqueidentifier"); + + b.Property("StartDate") + .HasColumnType("datetime2"); + + b.Property("TenantId") + .HasColumnType("uniqueidentifier") + .HasColumnName("TenantId"); + + b.Property("UserId") + .HasColumnType("uniqueidentifier"); + + b.HasKey("Id"); + + b.HasIndex("SectorId"); + + b.HasIndex("TenantId", "UserId"); + + b.ToTable("Adm_T_UserWorkExperience", (string)null); + }); + modelBuilder.Entity("Sozsoft.Platform.Entities.Videoroom", b => { b.Property("Id") @@ -7728,6 +8013,14 @@ namespace Sozsoft.Platform.Migrations .HasDefaultValue(0) .HasColumnName("AccessFailedCount"); + b.Property("Alcohol") + .HasMaxLength(16) + .HasColumnType("nvarchar(16)"); + + b.Property("AlcoholNote") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + b.Property("Avatar") .HasMaxLength(512) .HasColumnType("nvarchar(512)"); @@ -7743,6 +8036,39 @@ namespace Sozsoft.Platform.Migrations .HasMaxLength(16) .HasColumnType("nvarchar(16)"); + b.Property("ChildHealthNote") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + + b.Property("ChildHealthStatus") + .HasMaxLength(16) + .HasColumnType("nvarchar(16)"); + + b.Property("ChronicDisease") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + + b.Property("ComplaintBackPain") + .HasColumnType("bit"); + + b.Property("ComplaintChestPain") + .HasColumnType("bit"); + + b.Property("ComplaintDiarrheaConstipation") + .HasColumnType("bit"); + + b.Property("ComplaintDyspnea") + .HasColumnType("bit"); + + b.Property("ComplaintJointPain") + .HasColumnType("bit"); + + b.Property("ComplaintPalpitation") + .HasColumnType("bit"); + + b.Property("ComplaintProductiveCough") + .HasColumnType("bit"); + b.Property("ConcurrencyStamp") .IsConcurrencyToken() .IsRequired() @@ -7769,6 +8095,43 @@ namespace Sozsoft.Platform.Migrations b.Property("DepartmentId") .HasColumnType("uniqueidentifier"); + b.Property("DiagnosisDiabetes") + .HasColumnType("bit"); + + b.Property("DiagnosisFoodPoisoning") + .HasColumnType("bit"); + + b.Property("DiagnosisHearingLoss") + .HasColumnType("bit"); + + b.Property("DiagnosisHeartDisease") + .HasColumnType("bit"); + + b.Property("DiagnosisJaundice") + .HasColumnType("bit"); + + b.Property("DiagnosisKidneyDisease") + .HasColumnType("bit"); + + b.Property("DiagnosisNervousSystemDisease") + .HasColumnType("bit"); + + b.Property("DiagnosisPepticUlcer") + .HasColumnType("bit"); + + b.Property("DiagnosisSkinDisease") + .HasColumnType("bit"); + + b.Property("DiagnosisVisionImpairment") + .HasColumnType("bit"); + + b.Property("DisabilityPension") + .HasColumnType("bit"); + + b.Property("DisabilityPensionNote") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + b.Property("District") .HasMaxLength(128) .HasColumnType("nvarchar(128)"); @@ -7792,6 +8155,70 @@ namespace Sozsoft.Platform.Migrations b.Property("EntityVersion") .HasColumnType("int"); + b.Property("ExamBloodPressure") + .HasMaxLength(16) + .HasColumnType("nvarchar(16)"); + + b.Property("ExamCardiovascular") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("ExamDigestive") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("ExamEnt") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("ExamEye") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("ExamHeight") + .HasPrecision(5, 2) + .HasColumnType("decimal(5,2)"); + + b.Property("ExamMusculoskeletal") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("ExamNeurological") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("ExamOther") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("ExamPsychiatric") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("ExamPulse") + .HasMaxLength(16) + .HasColumnType("nvarchar(16)"); + + b.Property("ExamRespiratory") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("ExamSensoryOrgans") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("ExamSkin") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("ExamUrogenital") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("ExamWeight") + .HasPrecision(5, 2) + .HasColumnType("decimal(5,2)"); + b.Property("ExtraProperties") .IsRequired() .HasColumnType("nvarchar(max)") @@ -7801,10 +8228,29 @@ namespace Sozsoft.Platform.Migrations .HasMaxLength(32) .HasColumnType("nvarchar(32)"); + b.Property("FatherHealthNote") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + + b.Property("FatherHealthStatus") + .HasMaxLength(16) + .HasColumnType("nvarchar(16)"); + b.Property("FatherName") .HasMaxLength(128) .HasColumnType("nvarchar(128)"); + b.Property("FitForWorkCondition") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + + b.Property("FitForWorkJob") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("FitnessDoctorId") + .HasColumnType("uniqueidentifier"); + b.Property("Gender") .HasMaxLength(16) .HasColumnType("nvarchar(16)"); @@ -7813,6 +8259,24 @@ namespace Sozsoft.Platform.Migrations .HasMaxLength(256) .HasColumnType("nvarchar(256)"); + b.Property("HadSurgery") + .HasColumnType("bit"); + + b.Property("HadSurgeryNote") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + + b.Property("HadWorkAccident") + .HasColumnType("bit"); + + b.Property("HadWorkAccidentNote") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + + b.Property("HepatitisVaccination") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + b.Property("HireDate") .HasColumnType("datetime2"); @@ -7820,6 +8284,13 @@ namespace Sozsoft.Platform.Migrations .HasMaxLength(512) .HasColumnType("nvarchar(512)"); + b.Property("Hospitalized") + .HasColumnType("bit"); + + b.Property("HospitalizedNote") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + b.Property("IdentityNumber") .HasMaxLength(15) .HasColumnType("nvarchar(15)"); @@ -7855,6 +8326,42 @@ namespace Sozsoft.Platform.Migrations b.Property("JobPositionId") .HasColumnType("uniqueidentifier"); + b.Property("LabAudiometry") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("LabBiologicalAnalysis") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("LabBlood") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("LabOther") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("LabPsychologicalTests") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("LabPulmonaryFunction") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("LabRadiological") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("LabRadiologicalPhysiological") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + + b.Property("LabUrine") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); @@ -7885,6 +8392,14 @@ namespace Sozsoft.Platform.Migrations b.Property("MarriageDate") .HasColumnType("datetime2"); + b.Property("MotherHealthNote") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + + b.Property("MotherHealthStatus") + .HasMaxLength(16) + .HasColumnType("nvarchar(16)"); + b.Property("MotherName") .HasMaxLength(128) .HasColumnType("nvarchar(128)"); @@ -7898,6 +8413,9 @@ namespace Sozsoft.Platform.Migrations .HasMaxLength(128) .HasColumnType("nvarchar(128)"); + b.Property("NightWorkFit") + .HasColumnType("bit"); + b.Property("NormalizedEmail") .IsRequired() .HasMaxLength(256) @@ -7910,6 +8428,17 @@ namespace Sozsoft.Platform.Migrations .HasColumnType("nvarchar(256)") .HasColumnName("NormalizedUserName"); + b.Property("OccupationalDiseaseExam") + .HasColumnType("bit"); + + b.Property("OccupationalDiseaseExamNote") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + + b.Property("OtherVaccination") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + b.Property("PasswordHash") .HasMaxLength(256) .HasColumnType("nvarchar(256)") @@ -7947,9 +8476,31 @@ namespace Sozsoft.Platform.Migrations .HasMaxLength(32) .HasColumnType("nvarchar(32)"); + b.Property("ShiftNightDoctorId") + .HasColumnType("uniqueidentifier"); + + b.Property("ShiftWorkFit") + .HasColumnType("bit"); + b.Property("ShouldChangePasswordOnNextLogin") .HasColumnType("bit"); + b.Property("SiblingHealthNote") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + + b.Property("SiblingHealthStatus") + .HasMaxLength(16) + .HasColumnType("nvarchar(16)"); + + b.Property("Smoking") + .HasMaxLength(16) + .HasColumnType("nvarchar(16)"); + + b.Property("SmokingNote") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + b.Property("SskNo") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); @@ -7970,12 +8521,23 @@ namespace Sozsoft.Platform.Migrations b.Property("TerminationDate") .HasColumnType("datetime2"); + b.Property("TetanusVaccination") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); + b.Property("TwoFactorEnabled") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("TwoFactorEnabled"); + b.Property("UnderTreatment") + .HasColumnType("bit"); + + b.Property("UnderTreatmentNote") + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); + b.Property("UserName") .IsRequired() .HasMaxLength(256) @@ -9351,6 +9913,15 @@ namespace Sozsoft.Platform.Migrations b.Navigation("UomCategory"); }); + modelBuilder.Entity("Sozsoft.Platform.Entities.UserWorkExperience", b => + { + b.HasOne("Sozsoft.Platform.Entities.Sector", null) + .WithMany() + .HasForeignKey("SectorId") + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + }); + modelBuilder.Entity("Sozsoft.Platform.Entities.VideoroomAttandance", b => { b.HasOne("Sozsoft.Platform.Entities.Videoroom", "Session") diff --git a/configs/seeds/host/data/App.DevRequests/ce4269ad-8d08-487a-9e36-c002dd482a3c.json b/configs/seeds/host/data/App.DevRequests/ce4269ad-8d08-487a-9e36-c002dd482a3c.json deleted file mode 100644 index ac3b3250..00000000 --- a/configs/seeds/host/data/App.DevRequests/ce4269ad-8d08-487a-9e36-c002dd482a3c.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "ListFormCode": "App.DevRequests", - "KeyFieldName": "Id", - "GeneratedAt": "2026-09-30T13:46:58.3804382Z", - "Order": 0, - "Rows": [ - { - "Id": "ce4269ad-8d08-487a-9e36-c002dd482a3c", - "TenantId": null, - "UserName": "system@sozsoft.com", - "RequestDate": null, - "Status": "Backlog", - "Title": "Human Resources -> Sağlık", - "Description": "

Bu eklenecekler Human Resources -> Sağlık alt menüsünün içerisine eklenecektir. Çalışan (Kullanıcı) ile ilgili tüm bilgileri AbpUsers tablosundan alınabilir. Örneğin Idendity Number, Gender, EducationStatus, BirthDate vs. tüm bilgiler bu tablodan alınabilir. Branch bilgisi eğer kullanıcı birden fazla Branch yetkisi varsa seçmeli, eğer bir branch yetkisi varsa o branch kullanıcı seçildikten sonra otomatik gelmeli. Lİstelerde Avatar (Kullanıcı Resmi) olmasına gerek yok, eklenmeyecek.


İstirahat Listesi : Çalışanların istirahat listesi ekranıdır. İstirahat Tipi: Hastalık, İş Kazası, Analık, Meslek Hastalığı gibi seçilebilmelidir.


Muayene Listesi : Çalışanların Muayene Listesidir. Her kullanıcının periyodik veya plansız şekilde yapılan muayene sonuçlarının listesidir.Kullanıcı seçilince Eğitim Durumu, Tc Kimlik No, Doğum Tarihi, Departman gibi bilgiler otomatik gelir.



Hasta Kayıt Defteri: Kullanıcıların hasta olduklarında doldurdukları listedir. Tip sütununda Hastalık, İş Kazası Dönüş, İstirahat Dönüş, Sonuç kısmında Tedavi (Taburcu), Sevk ve İstirahat seçenekleri olmalı. Sevk olaunca Sevk Yeri açılıyor. Kullanıcı seçilince Adres, yaş, cinsiyet gibi bilgiler otomatik gelir. Sıra No sütunu eklenmeyecek.

", - "DueDate": "2026-09-30T13:58:00", - "Tags": "HR", - "Assignees": "system@sozsoft.com", - "Priority": "5", - "Completed": false, - "SortOrder": 0, - "Timesheets": "[{\"id\":\"513d552f-dd7b-087b-cecf-3a2406c146e2\",\"date\":\"2026-10-01\",\"userName\":\"system@sozsoft.com\",\"description\":\"Hr_T_SickLeave tablosu olu\\u015Fturuldu\",\"duration\":0.0167},{\"id\":\"a256b7df-8987-46e4-940d-3a2406c1ebed\",\"date\":\"2026-10-01\",\"userName\":\"system@sozsoft.com\",\"description\":\"SickLeave.json wizard\\u0027\\u0131 deploy edildi (1 demo sat\\u0131r)\",\"duration\":0.0167},{\"id\":\"82bf0002-cb61-3f1a-68cd-3a2406c2038c\",\"date\":\"2026-10-01\",\"userName\":\"system@sozsoft.com\",\"description\":\"Hr_T_MedicalExamination tablosu olu\\u015Fturuldu\",\"duration\":0.0167},{\"id\":\"b300744f-c937-5077-1163-3a2406c2b2c7\",\"date\":\"2026-10-01\",\"userName\":\"system@sozsoft.com\",\"description\":\"MedicalExamination.json wizard\\u0027\\u0131 deploy edildi (0 demo sat\\u0131r)\",\"duration\":0.0167},{\"id\":\"a9948d0b-f295-2b53-03cb-3a2406c2cf79\",\"date\":\"2026-10-01\",\"userName\":\"system@sozsoft.com\",\"description\":\"Hr_T_PatientRegister tablosu olu\\u015Fturuldu\",\"duration\":0.0167},{\"id\":\"39277b02-bfea-5956-e53f-3a2406c37cb7\",\"date\":\"2026-10-01\",\"userName\":\"system@sozsoft.com\",\"description\":\"PatientRegister.json wizard\\u0027\\u0131 deploy edildi (0 demo sat\\u0131r)\",\"duration\":0.0167},{\"id\":\"9dd7b848-72b6-69ee-7605-3a2406c38b22\",\"date\":\"2026-10-01\",\"userName\":\"system@sozsoft.com\",\"description\":\"6 tamamlanm\\u0131\\u015F alt g\\u00F6rev eklendi\",\"duration\":0.0167},{\"id\":\"49f9f61d-15f0-1d2b-3740-3a2406c3b8e5\",\"date\":\"2026-10-01\",\"userName\":\"system@sozsoft.com\",\"description\":\"Analize \\u00FCretim notu eklendi\",\"duration\":0.0167},{\"id\":\"341e6a23-9f14-cb0c-aa1e-3a2406c3c46c\",\"date\":\"2026-10-01\",\"userName\":\"system@sozsoft.com\",\"description\":\"App.DevRequests ekran\\u0131nda sat\\u0131r g\\u00FCncellendi (Status)\",\"duration\":0.0167}]", - "SubTasks": "[{\"id\":\"8464be6d-1c5c-d05d-fca4-3a2406c38b07\",\"title\":\"create_table: Hr_T_SickLeave\",\"assignee\":\"system@sozsoft.com\",\"dueDate\":\"2026-10-01\",\"completed\":true},{\"id\":\"19173842-47c0-628a-7d6d-3a2406c38b07\",\"title\":\"deploy_wizard: SickLeave.json\",\"assignee\":\"system@sozsoft.com\",\"dueDate\":\"2026-10-01\",\"completed\":true},{\"id\":\"b3b782f7-48bc-19b4-28ef-3a2406c38b07\",\"title\":\"create_table: Hr_T_MedicalExamination\",\"assignee\":\"system@sozsoft.com\",\"dueDate\":\"2026-10-01\",\"completed\":true},{\"id\":\"16aa3400-b553-c836-ef94-3a2406c38b07\",\"title\":\"deploy_wizard: MedicalExamination.json\",\"assignee\":\"system@sozsoft.com\",\"dueDate\":\"2026-10-01\",\"completed\":true},{\"id\":\"b0b4d1e7-cfb2-c2ae-2058-3a2406c38b07\",\"title\":\"create_table: Hr_T_PatientRegister\",\"assignee\":\"system@sozsoft.com\",\"dueDate\":\"2026-10-01\",\"completed\":true},{\"id\":\"d4be70d9-98b3-38c6-a8da-3a2406c38b07\",\"title\":\"deploy_wizard: PatientRegister.json\",\"assignee\":\"system@sozsoft.com\",\"dueDate\":\"2026-10-01\",\"completed\":true}]", - "Analysis": "

Amaç

\n

İK / işyeri hekimliği ekibinin çalışanların sağlık süreçlerini tek menüde takip etmesi: istirahat raporları, periyodik/plansız muayene sonuçları ve revire başvuran çalışanların hasta kayıt defteri. Çalışan bilgileri (TC, cinsiyet, doğum tarihi, eğitim, adres, departman, görev) kullanıcı seçilince AbpUsers'tan, şube ise kullanıcının şube yetkilerinden (Sas_T_BranchUsers) otomatik gelir.

\n\n

Görsel analizi

\n
    \n
  • [image-1] İstirahat Listesi: grid + popup form. Grid kolonları: Sicil No, Adı Soyadı, Şube Adı, Departman, Başlangıç Tarihi, Bitiş Tarihi, Gün, İstirahat Tipi, Kurum, Bölüm, İstirahat Sebebi. Form (tek grup): Adı Soyadı (seçim), Şube Adı, TC Numarası, Departmanı, Başlangıç / Bitiş Tarihi, Gün, İstirahat Tipi (seçim), Kurum Adı (seçim), Bölüm (seçim), İstirahat Sebebi (çok satırlı metin). Demo satır: Sedat Öztürk · 1. Tesis · BİLGİ TEKNOLOJİLERİ · 17.02.2026 – 19.02.2026 · 2 gün · Hastalık · Baltalimanı Kemik Hastalıkları Hastanesi · Beyin ve Sinir Cerrahisi.
  • \n
  • [image-2] Periyodik Muayene Listesi: grid + popup form. Grid kolonları: TC, Adı Soyadı, Görevi, Departman, Muayene, Sonuç, Muayene Tarihi, Doktor, Diploma No, Diploma Tarihi, İş Yeri Hekim Belge No, İş Yeri Hekim Belge Tarihi, Şube Adı. Form: çalışan fotoğrafı; Adı (seçim), Tarih (bugün), T.C. Kimlik No, Eğitim Durumu, Doğum Tarihi, Çalıştığı Bölüm (salt okunur), Muayene ve Sonuç (çok satırlı metin), Doktor (seçim), Diploma Tarihi/No (salt okunur). Görünen satır yok.
  • \n
  • [image-3] Hasta Kayıt Defteri Listesi: grid + popup form. Grid kolonları: Sıra No, Adı Soyadı, Adres, Yaş, Cinsiyet, Doktor, Protokol Tipi, İstirahat Günü, Sonuç, Sevk Yeri, Şube Adı, Açıklama. Form: fotoğraf; Adı (seçim), Tarih (bugün), Adres, Yaş, Cinsiyet, Tip (varsayılan Hastalık), Doktor (seçim), Sonuç (varsayılan Tedavi (Taburcu)), İstirahat Gün ve Sevk Yeri (koşula göre açılan), Açıklama. Görünen satır yok.
  • \n
\n

Görsellerdeki fotoğraf alanı talep metni gereği (\"Listelerde Avatar olmasına gerek yok, eklenmeyecek\") üretilmez.

\n\n

Çözüm yolu

\n

Üç ekran da Wizard List (ComponentKind 0) ile, her biri kendi yeni tablosu üzerinde üretilir: kayıt listesi + popup ekle/düzenle/sil, filtre ve arama. Otomatik dolan çalışan/şube/doktor bilgileri lookup'ların seçili kaydından EditorScript (copy, selected) ile taşınır; hesaplar (Gün, Yaş), şube doğrulaması ve koşullu kilitler de EditorScript ile yapılır.

\n\n

Menü yeri

\n

İnsan Kaynakları › Sağlık › {Ekran}

\n\n\n\n\n\n\n\n
SeviyeKodAd (TR / EN)İkonDurum
KökApp.Hrİnsan Kaynakları / Human ResourcesFcConferenceCallVar
AraApp.Hr.HealthSağlık / HealthFcLikeYeni
EkranApp.Hr.SickLeaveİstirahat Listesi / Sick LeavesFcPlannerYeni
EkranApp.Hr.MedicalExaminationMuayene Listesi / Medical ExaminationsFcInspectionYeni
EkranApp.Hr.PatientRegisterHasta Kayıt Defteri / Patient RegisterFcViewDetailsYeni
\n

ModuleId: Hr · İzin grubu: App.Hr (var) · MenuParentCode: App.Hr.Health · MenuParentPath: App.Hr · Route: /admin/list/{ListFormCode}.

\n

Yetki: App.Hr › App.Hr.Health (Yeni) › App.Hr.SickLeave / App.Hr.MedicalExamination / App.Hr.PatientRegister.

\n

Ekranlar arasında lookup bağımlılığı yok (hepsi var olan tanım ekranlarını kullanır); menüde talepteki sırayla yer alırlar.

\n\n

Veri modeli

\n

Üç tablo da yenidir (önceki üretimin tabloları, wizard'ları ve menüleri kaldırılmış; veritabanında yoklar). Her tabloda Multi-Tenant + Full Audited kolon seti. Kapsam IsTenant = true, IsBranch = false. Kullanıcıdan kopyalanan kolonlar AbpUsers ile aynı ad/tip/boyla açılır: IdentityNumber nvarchar(15), Gender nvarchar(16) (Male/Female), EducationLevel nvarchar(128), HomeAddress nvarchar(512), BirthDate datetime2, DepartmentId/JobPositionId uniqueidentifier. Avatar kolonu hiçbir tabloda açılmaz.

\n\n

Şube kuralı (üç ekranda ortak): BranchId kullanıcının şube yetkilerinden (Sas_T_BranchUsers, yalnızca aktif ve silinmemiş Sas_T_Branch) belirlenir.

\n
    \n
  • Kullanıcı lookup'ı her kullanıcı için şube sayısını ve tek şubesini döner:
    \nSELECT u.Id AS [Key], u.Name + ' ' + u.Surname AS [Name], {ekranın kopya kolonları}, bc.BranchCount, bc.SingleBranchId FROM AbpUsers u OUTER APPLY (SELECT COUNT(*) AS BranchCount, CASE WHEN COUNT(*) = 1 THEN LOWER(MAX(CAST(bu.BranchId AS nvarchar(36)))) END AS SingleBranchId FROM Sas_T_BranchUsers bu JOIN Sas_T_Branch b ON b.Id = bu.BranchId AND b.IsDeleted = 'false' AND b.IsActive = 'true' WHERE bu.UserId = u.Id) bc WHERE u.IsDeleted = 'false' AND u.IsActive = 'true' AND u.TenantId = '@TENANTID' ORDER BY u.Name, u.Surname
  • \n
  • UserId seçilince: BranchCount = 1 ise BranchId tek şubeyle dolar ve kilitlenir; birden fazlaysa ya da hiç yoksa BranchId boşaltılır ve seçime açılır.
  • \n
  • BranchId lookup'ı aktif şubeleri, her şubeye yetkili kullanıcıların listesiyle döner:
    \nSELECT b.Id AS [Key], b.Name AS [Name], (SELECT LOWER(STRING_AGG(CAST(bu.UserId AS nvarchar(36)), ',')) FROM Sas_T_BranchUsers bu WHERE bu.BranchId = b.Id) AS [UserIds] FROM Sas_T_Branch b WHERE b.IsDeleted = 'false' AND b.IsActive = 'true' AND b.TenantId = '@TENANTID' ORDER BY b.Name
    \nBranchId değişince seçili şubenin UserIds listesinde çalışan yoksa \"Seçilen şube bu çalışana tanımlı değil\" uyarısı verilir ve alan boşaltılır. BranchId formda zorunludur.
  • \n
\n\n

Gösterim lookup'ları: DepartmentId → Hr_T_Department, JobPositionId → Hr_T_JobPosition, DoctorId → Hr_T_Doctor (IsActive), HospitalId/ReferralHospitalId → Hr_T_Hospital (IsActive), HospitalDepartmentId → Hr_T_HospitalDepartment (IsActive); hepsinde IsDeleted = 'false' ve TenantId = '@TENANTID'.

\n\n

Hr_T_SickLeave — Tanım tablosu: Hayır (çalışan bazlı hareket kaydı).

\n\n\n\n\n\n\n\n\n\n\n\n\n\n
KolonTipZorunluBaşlıkNot
UserIduniqueidentifierEvetAdı Soyadıkullanıcı lookup'ı
BranchIduniqueidentifier NULLEvet (form)Şube Adışube kuralı
IdentityNumbernvarchar(15)HayırTC Kimlik Nokopya, salt okunur
DepartmentIduniqueidentifierHayırDepartmankopya, salt okunur
StartDatedateEvetBaşlangıç Tarihi
EndDatedateEvetBitiş Tarihi
DayCountintHayırGünhesap, salt okunur
LeaveTypenvarchar(32)Evetİstirahat Tipisabit liste: Hastalık · İş Kazası · Analık · Meslek Hastalığı; varsayılan Hastalık
HospitalIduniqueidentifierHayırKurumHr_T_Hospital
HospitalDepartmentIduniqueidentifierHayırBölümHr_T_HospitalDepartment
Reasonnvarchar(MAX)Hayırİstirahat SebebidxTextArea
\n\n

Hr_T_MedicalExamination — Tanım tablosu: Hayır (çalışan bazlı muayene kaydı).

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
KolonTipZorunluBaşlıkNot
UserIduniqueidentifierEvetAdı Soyadıkullanıcı lookup'ı
IdentityNumbernvarchar(15)HayırTC Kimlik Nokopya, salt okunur
ExaminationDatedateEvetMuayene Tarihiaçılışta bugün
ExaminationTypenvarchar(32)EvetMuayene Tipisabit liste: Periyodik · Plansız; varsayılan Periyodik
EducationLevelnvarchar(128)HayırEğitim Durumukopya, salt okunur
BirthDatedatetime2HayırDoğum Tarihikopya, salt okunur
JobPositionIduniqueidentifierHayırGörevikopya, salt okunur
DepartmentIduniqueidentifierHayırDepartmankopya, salt okunur
BranchIduniqueidentifier NULLEvet (form)Şube Adışube kuralı
Examinationnvarchar(MAX)HayırMuayenedxTextArea
Resultnvarchar(MAX)HayırSonuçdxTextArea
DoctorIduniqueidentifierEvetDoktorHr_T_Doctor
DiplomaNonvarchar(50)HayırDiploma Nodoktordan kopya, salt okunur
DiplomaDatedateHayırDiploma Tarihidoktordan kopya, salt okunur
OhsCertificateNonvarchar(50)Hayırİşyeri Hekimi Belge Nodoktordan kopya, salt okunur
OhsCertificateDatedateHayırİşyeri Hekimi Belge Tarihidoktordan kopya, salt okunur
\n\n

Hr_T_PatientRegister — Tanım tablosu: Hayır (revir başvuru kaydı).

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
KolonTipZorunluBaşlıkNot
UserIduniqueidentifierEvetAdı Soyadıkullanıcı lookup'ı
RegisterDatedateEvetTarihaçılışta bugün
HomeAddressnvarchar(512)HayırAdreskopya, salt okunur
BirthDatedatetime2HayırDoğum Tarihikopya, salt okunur (Yaş hesabının kaynağı)
AgeintHayırYaşhesap, salt okunur
Gendernvarchar(16)HayırCinsiyetkopya, salt okunur; Male/Female, App.StaticLookup.Male/Female
BranchIduniqueidentifier NULLEvet (form)Şube Adışube kuralı
DoctorIduniqueidentifierHayırDoktorHr_T_Doctor
RegisterTypenvarchar(32)EvetTipsabit liste: Hastalık · İş Kazası Dönüş · İstirahat Dönüş; varsayılan Hastalık
Resultnvarchar(32)EvetSonuçsabit liste: Tedavi (Taburcu) · Sevk · İstirahat; varsayılan Tedavi (Taburcu)
LeaveDayCountintHayırİstirahat Günüyalnızca Sonuç = İstirahat iken açık
ReferralHospitalIduniqueidentifierHayırSevk YeriHr_T_Hospital; yalnızca Sonuç = Sevk iken açık
Descriptionnvarchar(MAX)HayırAçıklamadxTextArea
\n\n

Etkilenen kısımlar

\n
    \n
  • Yeni ara menü App.Hr.Health (Sağlık) ve aynı kodlu ara yetki; altında üç yeni liste ekranı ve menü kaydı.
  • \n
  • Her ekran için yetkiler: {ListFormCode} + .Create/.Update/.Delete/.Export/.Import/.Note, App.Hr grubunda.
  • \n
  • Dil anahtarları (EN + TR): ara menü, üç ekran başlık/açıklaması, dokuz widget başlığı, yeni alan başlıkları (App.Listform.ListformField. + UserId, StartDate, EndDate, DayCount, LeaveType, HospitalId, HospitalDepartmentId, Reason, ExaminationDate, ExaminationType, Examination, Result, DoctorId, RegisterDate, Age, RegisterType, LeaveDayCount, ReferralHospitalId — var olanlar yeniden açılmaz).
  • \n
  • Var olan ekranlara (Kullanıcılar, Şubeler, Kurum Doktorları, Hastaneler, Hastane Bölümleri, Departmanlar, Pozisyonlar) dokunulmaz; yalnızca lookup kaynağı olarak okunurlar.
  • \n
\n\n

Görünümler ve davranış

\n
    \n
  • Görünümler Grid, Card, Pivot ve Chart; açılış Grid. Filtre satırı ve arama açık. Form popup, tek grup 2 kolon; çok satırlı alanlar ColSpan 2. Grid kolon sırası form sırasını izler (Adı Soyadı ilk seçim alanı).
  • \n
  • UserId EditorScript (değişimde): ekranın kopya kolonlarını copy ile doldurur (İstirahat: IdentityNumber, DepartmentId · Muayene: IdentityNumber, EducationLevel, BirthDate, JobPositionId, DepartmentId · Hasta Kayıt: HomeAddress, BirthDate, Gender) ve şube kuralını uygular (snum(\"BranchCount\") = 1 → set(BranchId) + readOnly(BranchId, true); aksi → clear(BranchId) + readOnly(BranchId, false)). Kopya alanlar EditorOptions.readOnly ile kilitlidir.
  • \n
  • BranchId EditorScript (değişimde): seçili şubenin UserIds listesinde UserId yoksa notify + clear(BranchId).
  • \n
  • İstirahat — Gün: StartDate ve EndDate script'lerinde DayCount = EndDate − StartDate (gün, bitiş hariç); iki tarih de doluysa yazılır. EndDate < StartDate ise uyarı verilir, EndDate ve DayCount boşaltılır.
  • \n
  • Muayene — Doktor: DoctorId lookup'ı DiplomaNo, DiplomaDate, OhsCertificateNo, OhsCertificateDate'i de döner; seçimde dört alan copy ile dolar. ExaminationDate açılışta bugün, ExaminationType açılışta Periyodik.
  • \n
  • Hasta Kayıt — Yaş: UserId seçiminde (seçili kaydın BirthDate'i ile) ve RegisterDate değişiminde, BirthDate ile RegisterDate arasındaki tam yıl; BirthDate boşsa Age boşalır.
  • \n
  • Hasta Kayıt — Sonuç: readOnly(LeaveDayCount, Result ≠ İstirahat), readOnly(ReferralHospitalId, Result ≠ Sevk) (açılışta ve değişimde); değişimde koşulu kalkan alan boşaltılır. RegisterDate açılışta bugün, RegisterType açılışta Hastalık, Result açılışta Tedavi (Taburcu).
  • \n
  • Widget kartları (3 kart, ColSpan 4, her kartta \"TenantId\" = '@TENANTID' ve \"IsDeleted\" = 'false'): İstirahat — Bu Ay Başlayan · Şu An İstirahatte · Bu Ay Toplam Gün; Muayene — Toplam · Bu Ay · Plansız; Hasta Kayıt — Bugün · Bu Ay Sevk · Bu Ay İstirahat.
  • \n
\n\n

Kararlar

\n
    \n
  • Talep metnindeki yeni kural gereği Avatar (kullanıcı resmi) üç ekranda da ne tabloya ne forma ne listeye eklenir; görsellerdeki fotoğraf alanı üretilmez.
  • \n
  • Üç ekran için üç ayrı tablo; Hasta Kayıt'ta Sonuç = İstirahat seçilmesi İstirahat Listesi'ne kayıt açmaz (talepte böyle bir bağ yok).
  • \n
  • Çalışan ve doktor bilgileri kayıt anındaki hâliyle tabloya kopyalanır (sağlık kaydı tarihsel belgedir).
  • \n
  • Şube kullanıcının şube yetkilerinden gelir. Wizard lookup'ı cascade parametresi taşımadığından şube listesi tüm aktif şubeleri gösterir; çalışana tanımlı olmayan şube seçimi script ile reddedilir, tek şubeli çalışanda alan otomatik dolup kilitlenir.
  • \n
  • (onay) Hiç şube yetkisi olmayan çalışan için kayıt girilemez (Şube zorunlu, hiçbir şube kabul edilmez); önce Kullanıcılar ekranının Şubeler sekmesinden şube ataması yapılır.
  • \n
  • Görseldeki \"Sicil No\" kolonu TC değerini gösteriyor; ayrı sicil kolonu açılmaz, TC Kimlik No alanı kullanılır.
  • \n
  • Muayene Listesi'ne talepteki \"periyodik veya plansız\" ayrımı için ExaminationType alanı eklenir.
  • \n
  • Hasta Kayıt'ta görseldeki \"Protokol Tipi\" kolonunun başlığı talep metnindeki gibi \"Tip\" olur; Sıra No kolonu talep gereği eklenmez.
  • \n
  • Sevk Yeri, var olan Hastaneler tanımından seçilir. Hastane ile bölüm arasında cascade yoktur (bölümler düz listedir).
  • \n
  • Sabit liste anahtarları Türkçe değerin kendisidir (Ziyaretçi ekranındaki kalıp).
  • \n
  • Hasta Kayıt'taki BirthDate, Yaş hesabının kaynağı olduğu için saklanır ve gridde de görünür (wizard alanında grid görünürlüğü ayarı yoktur; kolon seçicisinden gizlenebilir).
  • \n
  • Script'ler kod olarak yazılır (Script Builder'ın kod görünümünde açılır).
  • \n
  • (onay) İstirahat Gün = Bitiş − Başlangıç (bitiş günü hariç); görseldeki 17.02–19.02 = 2 gün ile uyumludur.
  • \n
  • (onay) Yaş, kayıt tarihindeki tam yıl olarak hesaplanır ve saklanır.
  • \n
  • Demo veri: İstirahat'a görseldeki tek satır yazılır — Sedat ÖZTÜRK (d9f5fe73-d18e-cd9d-7666-3a2406936c9f), tek şube yetkisi Branch1 (1c125bf3-3ffd-4445-a270-1bc43ac3f61c), departman 8f14e45f-ea2d-4d9f-9f1d-1a2b3c4d5e6f, TC boş (kullanıcı kaydında yok), 17.02.2026 – 19.02.2026, 2 gün, Hastalık, Baltalimanı Kemik Hastalıkları Hastanesi (ccc391fa-7813-628e-38f2-3a240383beb3), Beyin ve Sinir Cerrahisi (d6271053-2d73-9ada-7de4-3a2403842c90). Muayene ve Hasta Kayıt görsellerinde satır olmadığından demo veri yazılmaz.
  • \n
\n\n

Üretim planı

\n
    \n
  1. create_table: Hr_T_SickLeave
  2. \n
  3. deploy_wizard: SickLeave.json
  4. \n
  5. create_table: Hr_T_MedicalExamination
  6. \n
  7. deploy_wizard: MedicalExamination.json
  8. \n
  9. create_table: Hr_T_PatientRegister
  10. \n
  11. deploy_wizard: PatientRegister.json
  12. \n
\n\n

Üretime hazır

\n

Evet

MCP

\n

Üretilenler (menü: İnsan Kaynakları › Sağlık — App.Hr.Health yeni ara menü/ara yetki, ikon FcLike; izin grubu App.Hr; IsTenant = true, IsBranch = false; görünümler Grid/Card/Pivot/Chart, açılış Grid; form popup, tek grup 2 kolon):

\n
    \n
  • Hr_T_SickLeave → App.Hr.SickLeave (SickLeave.json): UserId, BranchId, IdentityNumber, DepartmentId, StartDate, EndDate, DayCount, LeaveType, HospitalId, HospitalDepartmentId, Reason. Demo: 1 satır (Sedat ÖZTÜRK · Branch1 · 17.02–19.02.2026 · 2 gün · Hastalık · Baltalimanı Kemik Hastalıkları Hastanesi · Beyin ve Sinir Cerrahisi). Widget: Bu Ay Başlayan · Şu An İstirahatte · Bu Ay Toplam Gün.
  • \n
  • Hr_T_MedicalExamination → App.Hr.MedicalExamination (MedicalExamination.json): UserId, IdentityNumber, ExaminationDate, ExaminationType, EducationLevel, BirthDate, JobPositionId, DepartmentId, BranchId, Examination, Result, DoctorId, DiplomaNo, DiplomaDate, OhsCertificateNo, OhsCertificateDate. Demo yok. Widget: Toplam · Bu Ay · Plansız.
  • \n
  • Hr_T_PatientRegister → App.Hr.PatientRegister (PatientRegister.json): UserId, RegisterDate, HomeAddress, BirthDate, Age, Gender, BranchId, DoctorId, RegisterType, Result, LeaveDayCount, ReferralHospitalId, Description. Demo yok. Widget: Bugün · Bu Ay Sevk · Bu Ay İstirahat.
  • \n
\n

Avatar talep gereği hiçbir ekrana ve tabloya eklenmedi. Şube kuralı üç ekranda da uygulandı (tek şubede otomatik dolup kilitlenir, birden fazla ya da hiç şube yoksa seçime açılır, çalışana tanımlı olmayan şube uyarıyla reddedilir; BranchId formda zorunlu).

\n

Yetkiler her ekranda {ListFormCode} + .Create/.Update/.Delete/.Export/.Import/.Note; hiçbir role atanmadı. Yeni dil anahtarları: ara menü, üç ekran başlığı/açıklaması, dokuz widget başlığı ve yeni alan başlıkları.

\n

Varsayılanlar: script'ler kod olarak yazıldı (Script Builder kod görünümünde açılır); kopya alanlar EditorOptions.readOnly ile kilitli; departman ve görev gösterim lookup'larında IsActive filtresi yok (eski satırlarda adları görünsün diye); menü sırası deploy sırasıyla (İstirahat · Muayene · Hasta Kayıt).

\n

DB Migrate bekleyen wizard'lar: SickLeave.json, MedicalExamination.json, PatientRegister.json.

" - } - ] -} diff --git a/configs/seeds/host/data/App.Languages.LanguageText.json b/configs/seeds/host/data/App.Languages.LanguageText.json index 9327b1f2..ed6b229b 100644 --- a/configs/seeds/host/data/App.Languages.LanguageText.json +++ b/configs/seeds/host/data/App.Languages.LanguageText.json @@ -2594,6 +2594,468 @@ "Key": "App.IdentityManagement.Sessions", "Value": "Oturumlar" }, + { + "Id": "7737a61f-7545-5267-a279-2704cdb8a43d", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.IdentityManagement.UserWorkExperience", + "Value": "Previous Work Experience" + }, + { + "Id": "d6b8785e-2d79-5998-a5cb-33329a89f979", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.IdentityManagement.UserWorkExperience", + "Value": "Daha Önce Çalıştığı Yerler" + }, + { + "Id": "652eb2b1-fb9b-5825-a2d2-afd9cc624a34", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.IdentityManagement.UserWorkExperience.Description", + "Value": "Previous Work Experience — the workplaces a user worked at before. Table: Adm_T_UserWorkExperience · tenant scope (IsTenant = true) · sub list without a menu.\nUsage: shown in the Work tab of the user detail (/admin/users/detail/:userId), filtered by UserId; a new row takes its UserId from that filter.\nFields:\n• CompanyName → company worked at\n• SectorId → line of business, from the Sectors list (Adm_T_Sector)\n• StartDate, EndDate → entry and exit dates; an empty EndDate means still working\n• JobDescription → what the user did (HTML)\nCaution: the list has no permission of its own — reading follows AbpIdentity.Users, adding/updating/deleting rows follows AbpIdentity.Users.Update (the detail page's permission)." + }, + { + "Id": "f7755c21-3848-5ae9-8871-e374b4a8fcb8", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.IdentityManagement.UserWorkExperience.Description", + "Value": "Daha Önce Çalıştığı Yerler — kullanıcının önceki iş yerleri. Tablo: Adm_T_UserWorkExperience · tenant kapsamlı (IsTenant = true) · menüsüz alt liste.\nKullanım: kullanıcı detayının Work sekmesinde (/admin/users/detail/:userId) UserId filtresiyle gösterilir; yeni satır UserId değerini bu filtreden alır.\nAlanlar:\n• CompanyName → çalışılan firma\n• SectorId → iş kolu, Sektörler listesinden (Adm_T_Sector)\n• StartDate, EndDate → giriş ve çıkış tarihi; boş EndDate hâlâ çalıştığı anlamına gelir\n• JobDescription → yaptığı iş (HTML)\nDikkat: listenin kendi yetkisi yoktur — okuma AbpIdentity.Users, satır ekleme/güncelleme/silme AbpIdentity.Users.Update (detay sayfasının yetkisi) ile çalışır." + }, + { + "Id": "99b6ee68-830d-5a50-b00d-baf5dcea8b16", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.IdentityManagement.UserPeriodicExamination", + "Value": "Periodic Examinations" + }, + { + "Id": "637e3e62-3f45-5875-a9d5-e8512d269127", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.IdentityManagement.UserPeriodicExamination", + "Value": "Periyodik Muayeneler" + }, + { + "Id": "7f9507f6-8db8-55e9-9425-5c77098a02bf", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.IdentityManagement.UserPeriodicExamination.Description", + "Value": "Periodic Examinations — the periodic health examinations of a user. Table: Adm_T_UserPeriodicExamination · tenant scope (IsTenant = true) · sub list without a menu.\nUsage: shown in the Health Card tab of the user detail, filtered by UserId; a new row takes its UserId from that filter.\nFields:\n• ExamDate → examination date\n• Examination → examination performed\n• Result → result\n• DoctorId → physician, from Hr_T_Doctor\n• DoctorDiplomaNo → diploma number copied from the selected physician at examination time\nCaution: no permission of its own — reading follows AbpIdentity.Users, adding/updating/deleting follows AbpIdentity.Users.Update." + }, + { + "Id": "1ad1420a-44a4-5ee3-911b-1a30a65ec1bb", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.IdentityManagement.UserPeriodicExamination.Description", + "Value": "Periyodik Muayeneler — kullanıcının periyodik sağlık muayeneleri. Tablo: Adm_T_UserPeriodicExamination · tenant kapsamlı (IsTenant = true) · menüsüz alt liste.\nKullanım: kullanıcı detayının Sağlık Kartı sekmesinde UserId filtresiyle gösterilir; yeni satır UserId değerini bu filtreden alır.\nAlanlar:\n• ExamDate → muayene tarihi\n• Examination → yapılan muayene\n• Result → sonuç\n• DoctorId → hekim, Hr_T_Doctor tablosundan\n• DoctorDiplomaNo → muayene anında seçilen hekimden kopyalanan diploma no\nDikkat: listenin kendi yetkisi yoktur — okuma AbpIdentity.Users, ekleme/güncelleme/silme AbpIdentity.Users.Update ile çalışır." + }, + { + "Id": "f239ed81-d894-5708-b841-66cc7a0633b9", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.IdentityManagement.UserPatientProtocol", + "Value": "Patient Protocol Book" + }, + { + "Id": "643a6616-bdce-5510-a327-aca9541a57a5", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.IdentityManagement.UserPatientProtocol", + "Value": "Hasta Protokol Defteri" + }, + { + "Id": "2dd8e5a2-0356-5186-aa87-bb23aa703ecf", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.IdentityManagement.UserPatientProtocol.Description", + "Value": "Patient Protocol Book — the infirmary visits of a user. Table: Adm_T_UserPatientProtocol · tenant scope (IsTenant = true) · sub list without a menu.\nUsage: shown in the Health Card tab of the user detail, filtered by UserId; a new row takes its UserId from that filter.\nFields:\n• SequenceNo → protocol number\n• ProtocolDate → visit date\n• ProtocolType → Disease / WorkAccident / OccupationalDisease / Control / Other\n• ProtocolResult → TreatmentDischarged / Rest / Referral\n• RestDays → rest days given\n• ReferralPlace → where the patient was referred\n• DoctorId → physician, from Hr_T_Doctor\nCaution: no permission of its own — reading follows AbpIdentity.Users, adding/updating/deleting follows AbpIdentity.Users.Update." + }, + { + "Id": "0b8ad41c-d867-5d67-9a6e-b7f0fe5dd0bd", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.IdentityManagement.UserPatientProtocol.Description", + "Value": "Hasta Protokol Defteri — kullanıcının revir başvuruları. Tablo: Adm_T_UserPatientProtocol · tenant kapsamlı (IsTenant = true) · menüsüz alt liste.\nKullanım: kullanıcı detayının Sağlık Kartı sekmesinde UserId filtresiyle gösterilir; yeni satır UserId değerini bu filtreden alır.\nAlanlar:\n• SequenceNo → protokol sıra no\n• ProtocolDate → başvuru tarihi\n• ProtocolType → Hastalık / İş Kazası / Meslek Hastalığı / Kontrol / Diğer\n• ProtocolResult → Tedavi (Taburcu) / İstirahat / Sevk\n• RestDays → verilen istirahat günü\n• ReferralPlace → sevk edildiği yer\n• DoctorId → hekim, Hr_T_Doctor tablosundan\nDikkat: listenin kendi yetkisi yoktur — okuma AbpIdentity.Users, ekleme/güncelleme/silme AbpIdentity.Users.Update ile çalışır." + }, + { + "Id": "12bf3501-e750-5c23-b961-2b38e8b48819", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.IdentityManagement.UserSickLeave", + "Value": "Sick Leaves" + }, + { + "Id": "b049d8d4-d9ad-54d2-ba78-01f4e046d477", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.IdentityManagement.UserSickLeave", + "Value": "İstirahat Listesi" + }, + { + "Id": "f30d8cd4-deb6-50f3-adbc-d5a46beca0cc", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.IdentityManagement.UserSickLeave.Description", + "Value": "Sick Leaves — the medical rest reports of a user. Table: Adm_T_UserSickLeave · tenant scope (IsTenant = true) · sub list without a menu.\nUsage: shown in the Health Card tab of the user detail, filtered by UserId; a new row takes its UserId from that filter.\nFields:\n• StartDate, EndDate → rest period\n• Days → day count, calculated from the dates (end date included) and editable\n• SickLeaveType → Disease / WorkAccident / OccupationalDisease / Maternity\n• Institution → issuing institution\n• Clinic → clinic / department of the institution\n• SickLeaveReason → reason\nCaution: no permission of its own — reading follows AbpIdentity.Users, adding/updating/deleting follows AbpIdentity.Users.Update." + }, + { + "Id": "88b2e74d-dcd6-5152-9b94-02562976c573", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.IdentityManagement.UserSickLeave.Description", + "Value": "İstirahat Listesi — kullanıcının istirahat raporları. Tablo: Adm_T_UserSickLeave · tenant kapsamlı (IsTenant = true) · menüsüz alt liste.\nKullanım: kullanıcı detayının Sağlık Kartı sekmesinde UserId filtresiyle gösterilir; yeni satır UserId değerini bu filtreden alır.\nAlanlar:\n• StartDate, EndDate → istirahat dönemi\n• Days → gün sayısı, tarihlerden hesaplanır (bitiş dahil) ve değiştirilebilir\n• SickLeaveType → Hastalık / İş Kazası / Meslek Hastalığı / Analık\n• Institution → raporu veren kurum\n• Clinic → kurumun bölümü\n• SickLeaveReason → istirahat sebebi\nDikkat: listenin kendi yetkisi yoktur — okuma AbpIdentity.Users, ekleme/güncelleme/silme AbpIdentity.Users.Update ile çalışır." + }, + { + "Id": "00024ec4-d966-5661-b275-c21796d55c31", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.Examination", + "Value": "Examination" + }, + { + "Id": "8d8246b3-94fe-5db0-88fc-07788bf517e4", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.Examination", + "Value": "Muayene" + }, + { + "Id": "2f315a80-d5d9-56e9-918a-ffcc7efa0d8e", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.Result", + "Value": "Result" + }, + { + "Id": "6203f8fe-1e7d-5dde-b7da-fbbb93003c5f", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.Result", + "Value": "Sonuç" + }, + { + "Id": "7a9eef4e-49c5-50f5-99a4-3feb7a2f2ec6", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.Doctor", + "Value": "Doctor" + }, + { + "Id": "b1bc43fc-fafa-550c-8839-af9ac65d6adc", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.Doctor", + "Value": "Doktor" + }, + { + "Id": "46ddf726-3529-54c4-8e8e-f8e46f759a4d", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.SequenceNo", + "Value": "Sequence No" + }, + { + "Id": "98c3f677-8f1e-5a09-8a4c-301f84b38b74", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.SequenceNo", + "Value": "Sıra No" + }, + { + "Id": "72491f8b-6872-555e-9a96-42a84f004c2a", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.ProtocolType", + "Value": "Protocol Type" + }, + { + "Id": "c219101e-ed21-54a1-b77f-652c28556f47", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.ProtocolType", + "Value": "Protokol Tipi" + }, + { + "Id": "3c791875-95de-5683-87b7-4f508a698a6d", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.RestDays", + "Value": "Rest Days" + }, + { + "Id": "75bfd332-7f2a-5858-ae62-8fe10541e4a0", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.RestDays", + "Value": "İstirahat Gün" + }, + { + "Id": "0e334d20-c10d-5a6a-a201-54e7430479d1", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.ReferralPlace", + "Value": "Referral Place" + }, + { + "Id": "6c7718d8-55fd-5b33-9845-22720842446c", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.ReferralPlace", + "Value": "Sevk Yeri" + }, + { + "Id": "ac223b54-ce01-5fa6-b00d-b3ef18c2a091", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.Days", + "Value": "Days" + }, + { + "Id": "aa86c274-d7a1-5489-907c-6ef81ca2ba9c", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.Days", + "Value": "Gün" + }, + { + "Id": "6f5a5d74-4e57-564d-9ac1-d0eb21deb6f7", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.SickLeaveType", + "Value": "Sick Leave Type" + }, + { + "Id": "7d1d6f1a-e286-59d0-8b21-319f78b76969", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.SickLeaveType", + "Value": "İstirahat Tipi" + }, + { + "Id": "4bc2f775-dd80-5313-8fec-f67d09942fcf", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.Institution", + "Value": "Institution" + }, + { + "Id": "1c6dd661-9462-5f07-aa8b-e3672fc13908", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.Institution", + "Value": "Kurum" + }, + { + "Id": "3f5c95aa-a83f-5e72-ac80-b3c8c94c2aac", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.Clinic", + "Value": "Clinic" + }, + { + "Id": "20f21468-e7ad-5299-8a2c-a106abd24e2c", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.Clinic", + "Value": "Bölüm" + }, + { + "Id": "9b9976ed-c884-52c9-97e5-672f00466089", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.SickLeaveReason", + "Value": "Sick Leave Reason" + }, + { + "Id": "0fe95c99-95bc-5332-8944-7166f71193b8", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.SickLeaveReason", + "Value": "İstirahat Sebebi" + }, + { + "Id": "23d64bb5-2a0e-5cdb-ae58-f58c1b5d132e", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.StaticLookup.Disease", + "Value": "Disease" + }, + { + "Id": "af4d10f2-de03-5cee-850f-b802e7f61def", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.StaticLookup.Disease", + "Value": "Hastalık" + }, + { + "Id": "38a2309e-f7a7-5043-aac6-88555a94f9ba", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.StaticLookup.WorkAccident", + "Value": "Work Accident" + }, + { + "Id": "4b6fc801-1584-57bd-be51-e10b8001db96", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.StaticLookup.WorkAccident", + "Value": "İş Kazası" + }, + { + "Id": "dbb702a1-308b-52ab-982c-5e1359110a25", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.StaticLookup.OccupationalDisease", + "Value": "Occupational Disease" + }, + { + "Id": "7965719b-9209-525e-9504-224713fd4053", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.StaticLookup.OccupationalDisease", + "Value": "Meslek Hastalığı" + }, + { + "Id": "73de4823-692d-594c-803a-faad4f00ed23", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.StaticLookup.Control", + "Value": "Control" + }, + { + "Id": "ae5ae246-4529-52c3-afa8-f484cb033cac", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.StaticLookup.Control", + "Value": "Kontrol" + }, + { + "Id": "64cbbc16-2b7e-5f2b-9a09-ea0062b29875", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.StaticLookup.Other", + "Value": "Other" + }, + { + "Id": "653432af-23fa-5990-9784-462fcc1cb83e", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.StaticLookup.Other", + "Value": "Diğer" + }, + { + "Id": "cb9db347-f76e-5a61-aa8c-d11714ff791f", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.StaticLookup.Maternity", + "Value": "Maternity" + }, + { + "Id": "be89175a-5d5d-5207-be8c-895741812e30", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.StaticLookup.Maternity", + "Value": "Analık" + }, + { + "Id": "a5161f0e-2da1-53be-979d-e0b060161184", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.StaticLookup.TreatmentDischarged", + "Value": "Treatment (Discharged)" + }, + { + "Id": "7100272f-a2aa-5e66-8373-bc76fff994e3", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.StaticLookup.TreatmentDischarged", + "Value": "Tedavi (Taburcu)" + }, + { + "Id": "925ea87a-5c4b-5b39-b257-64ed552e6bc0", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.StaticLookup.Rest", + "Value": "Rest" + }, + { + "Id": "64c45cf5-a2d7-5c8d-9050-97283c40e30d", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.StaticLookup.Rest", + "Value": "İstirahat" + }, + { + "Id": "11736895-1e82-58d7-abe5-31cca1960a03", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.StaticLookup.Referral", + "Value": "Referral" + }, + { + "Id": "0ea09d33-63c4-501f-b516-5a9d8a483dc7", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.StaticLookup.Referral", + "Value": "Sevk" + }, + { + "Id": "8b86436d-0ed0-5b3f-9e4d-8e34ca3f007c", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.LineOfBusiness", + "Value": "Line of Business" + }, + { + "Id": "949064b1-9466-5a67-ae14-f99d7a8968db", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.LineOfBusiness", + "Value": "İş Kolu" + }, + { + "Id": "b229c924-b64f-5ff9-99d0-53e633dca4c1", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.EntryDate", + "Value": "Entry Date" + }, + { + "Id": "0a75972d-b198-5cdd-8af3-ed9233a289b7", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.EntryDate", + "Value": "Giriş Tarihi" + }, + { + "Id": "75bf8ea5-7ebb-5932-9688-669cfde1d0ae", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.ExitDate", + "Value": "Exit Date" + }, + { + "Id": "969fb909-bc1f-51fc-bb61-aeec21f53bd9", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.ExitDate", + "Value": "Çıkış Tarihi" + }, + { + "Id": "5366c396-666b-54ca-8a55-87b985c38e57", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.JobDescription", + "Value": "Job Description" + }, + { + "Id": "60d4b1f5-62c1-5c27-aef8-5ae59e186dce", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.Listform.ListformField.JobDescription", + "Value": "Yaptığı İş" + }, { "Id": "dab154b2-9afd-5822-8299-a5ef18c1d2d8", "CultureName": "en", @@ -7088,6 +7550,1378 @@ "Key": "Abp.Identity.User.WorkInformation", "Value": "İş" }, + { + "Id": "5b36f5bd-01f4-58bc-ac48-264e4ca96d6d", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard", + "Value": "Health Card" + }, + { + "Id": "ae14b049-d71f-56ab-95a9-9146b814e807", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard", + "Value": "Sağlık Kartı" + }, + { + "Id": "30c11ffd-8f42-5321-96c3-e79d18a7ba6a", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.FamilyHistory", + "Value": "Family History" + }, + { + "Id": "f77745ba-9213-58ea-979a-4426b61dd88a", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.FamilyHistory", + "Value": "Soy Geçmişi" + }, + { + "Id": "7754c8fd-5010-5edd-9f32-383c6dab5338", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.PersonalHistory", + "Value": "Personal History" + }, + { + "Id": "513e864e-f7db-50ad-8fce-6798c7f67bbf", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.PersonalHistory", + "Value": "Öz Geçmişi" + }, + { + "Id": "dfe5f5cb-fb1a-525b-abbe-5e61a0902bc0", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.Immunization", + "Value": "Immunization" + }, + { + "Id": "8c5841f9-5cc6-5bb7-b367-19536b8e793c", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.Immunization", + "Value": "Bağışıklama" + }, + { + "Id": "e890ef51-1b95-59e4-9776-c52e01cd9234", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.MotherHealthStatus", + "Value": "Mother" + }, + { + "Id": "99291de7-df17-5281-96ae-3831177d4cb0", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.MotherHealthStatus", + "Value": "Anne" + }, + { + "Id": "2d17c0b7-81fb-58bf-8150-b0fe22acb934", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.MotherHealthNote", + "Value": "Mother Note" + }, + { + "Id": "29aa94f5-e7b2-5e74-82ec-b22cc9a9fe7b", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.MotherHealthNote", + "Value": "Anne Açıklama" + }, + { + "Id": "013859d0-9643-5e68-881e-6f7fc9bb9cf5", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.FatherHealthStatus", + "Value": "Father" + }, + { + "Id": "e956e8aa-00d7-559f-8a00-7d6ba4b198b3", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.FatherHealthStatus", + "Value": "Baba" + }, + { + "Id": "e637e250-826b-56cc-be23-3876d1a485fd", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.FatherHealthNote", + "Value": "Father Note" + }, + { + "Id": "437e20dc-1670-555b-bd68-60f0ba01b4e9", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.FatherHealthNote", + "Value": "Baba Açıklama" + }, + { + "Id": "4fdacaf8-7bb3-5775-ad3a-91a34805db75", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.SiblingHealthStatus", + "Value": "Sibling" + }, + { + "Id": "a6c3477e-1ad4-54f1-b7fb-02c0382a2d05", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.SiblingHealthStatus", + "Value": "Kardeş" + }, + { + "Id": "0db4bb27-c090-53ee-a2e8-e7f83843c8a4", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.SiblingHealthNote", + "Value": "Sibling Note" + }, + { + "Id": "44bfbfaa-2ae7-5561-9dd5-39eaae0dfaa9", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.SiblingHealthNote", + "Value": "Kardeş Açıklama" + }, + { + "Id": "65e022df-ad49-5442-9c53-277e353dc469", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ChildHealthStatus", + "Value": "Child" + }, + { + "Id": "cfa38e91-13dd-5d91-baec-9d09ec329f86", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ChildHealthStatus", + "Value": "Çocuk" + }, + { + "Id": "d5a5f151-f72d-599d-9b07-25b3f4a802bb", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ChildHealthNote", + "Value": "Child Note" + }, + { + "Id": "eea874c3-1476-5d30-ab9b-277bcd53ca8e", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ChildHealthNote", + "Value": "Çocuk Açıklama" + }, + { + "Id": "215d85b4-ee6b-5cf9-967c-5d3cdf8aa0d8", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ChronicDisease", + "Value": "Congenital / Chronic Disease" + }, + { + "Id": "c87eab69-9b4f-50e0-a7ce-cdcbd55b6f6f", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ChronicDisease", + "Value": "Konjenital / Kronik Hastalık" + }, + { + "Id": "fd237c97-22b8-54f4-a7d7-9b475cb5ebbc", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.TetanusVaccination", + "Value": "Tetanus" + }, + { + "Id": "63af0275-0d73-570e-a78d-448aa18db893", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.TetanusVaccination", + "Value": "Tetanoz" + }, + { + "Id": "d16c4b3c-8160-5a59-8422-f6bd76693ea6", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.HepatitisVaccination", + "Value": "Hepatitis" + }, + { + "Id": "9ab73426-e35b-5d52-96b6-5173dbea70f8", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.HepatitisVaccination", + "Value": "Hepatit" + }, + { + "Id": "cdcaeb90-3a8d-5a3d-8f67-98ae30ed6dd0", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.OtherVaccination", + "Value": "Other" + }, + { + "Id": "c82136d7-a31f-5a33-9a50-7cd33662e239", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.OtherVaccination", + "Value": "Diğer" + }, + { + "Id": "d6e27083-c23a-59c5-b1a6-bf7a66621245", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.StaticLookup.Alive", + "Value": "Alive" + }, + { + "Id": "ab3099af-7599-5149-b9cd-b1a5c5b6f89f", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.StaticLookup.Alive", + "Value": "Sağ" + }, + { + "Id": "0d8d05b8-17fd-54c6-848c-2877735b97ea", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.StaticLookup.Deceased", + "Value": "Deceased" + }, + { + "Id": "9074b29b-a552-5c8d-a3ca-70cfe2381274", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.StaticLookup.Deceased", + "Value": "Vefat" + }, + { + "Id": "c419eb18-7ca2-5df3-a318-9261ea4e7158", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.LabBiologicalAnalysis", + "Value": "Biological Analyses" + }, + { + "Id": "59286447-872c-5272-8093-eb4b582d207c", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.LabBiologicalAnalysis", + "Value": "Biyolojik Analizler" + }, + { + "Id": "b1b14347-9862-51d9-b341-50d003777405", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.LabBlood", + "Value": "Blood" + }, + { + "Id": "5a3871f4-9736-5357-9abf-2fb836822466", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.LabBlood", + "Value": "Kan" + }, + { + "Id": "4875abd4-3bcd-51f2-ab09-04938905482a", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.LabUrine", + "Value": "Urine" + }, + { + "Id": "3343fcd6-9b39-520f-9878-b7dac0abd023", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.LabUrine", + "Value": "İdrar" + }, + { + "Id": "f0b0e822-cea9-5ccb-95aa-480db0929c24", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.LabRadiological", + "Value": "Radiological Analyses" + }, + { + "Id": "1fca7812-e12e-5f33-882a-554ba60ba400", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.LabRadiological", + "Value": "Radyolojik Analizler" + }, + { + "Id": "668aae49-4808-5881-851e-966c46e28fd3", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.LabRadiologicalPhysiological", + "Value": "Radiological Physiological" + }, + { + "Id": "30ce963f-e0ee-53d6-8bb6-b38228e25f70", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.LabRadiologicalPhysiological", + "Value": "Radyolojik Fizyolojik" + }, + { + "Id": "cbe35455-3286-5efa-9981-846eeba151b6", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.LabAudiometry", + "Value": "Audiometry" + }, + { + "Id": "20d56950-6cf8-545d-8a4f-8d0718c3cc50", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.LabAudiometry", + "Value": "Odyometre" + }, + { + "Id": "a59087c3-0016-53f5-8a08-58a761a8018a", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.LabPulmonaryFunction", + "Value": "Pulmonary Function Test" + }, + { + "Id": "78651c6d-0cc4-53c5-96f4-227ebdbc9e96", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.LabPulmonaryFunction", + "Value": "SFT" + }, + { + "Id": "1dcb02b6-b94d-5f69-8a33-d9aa907fe56e", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.LabPsychologicalTests", + "Value": "Psychological Tests" + }, + { + "Id": "c829b3ee-c704-521c-8235-37f7875f9b82", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.LabPsychologicalTests", + "Value": "Psikolojik Testler" + }, + { + "Id": "110960f3-c419-5dad-9310-a587a5d6fcc1", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.LabOther", + "Value": "Other Laboratory Findings" + }, + { + "Id": "63a03ef2-1f91-5a70-bed4-09b87d785e5e", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.LabOther", + "Value": "Diğer Laboratuvar Bulguları" + }, + { + "Id": "658613d8-7981-58c8-a844-66af4d7db2eb", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamSensoryOrgans", + "Value": "Sensory Organs" + }, + { + "Id": "66a07c86-8418-5e21-9047-97ce5d705e70", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamSensoryOrgans", + "Value": "Duyu Organları" + }, + { + "Id": "f550c7e4-e049-513e-8ea4-4bef05c192a5", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamEye", + "Value": "Eye" + }, + { + "Id": "544865cf-9485-55a7-a799-2b082606c07d", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamEye", + "Value": "Göz" + }, + { + "Id": "2e3e5c21-8fee-5f48-9ea8-a37f7a8d39b4", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamEnt", + "Value": "Ear-Nose-Throat" + }, + { + "Id": "f58dc84d-875d-571b-8dcb-8587bb72c520", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamEnt", + "Value": "Kulak-Burun-Boğaz" + }, + { + "Id": "5f3f869c-a626-5833-a3e7-cbbebf0bba61", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamSkin", + "Value": "Skin" + }, + { + "Id": "27bb3bd1-9b8b-5916-a65a-efae3e28d59b", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamSkin", + "Value": "Deri" + }, + { + "Id": "e58e8aac-7bc1-5e06-a365-baed05a20168", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamCardiovascular", + "Value": "Cardiovascular System Examination" + }, + { + "Id": "591c1446-7427-5c5a-95ee-9226d02746ee", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamCardiovascular", + "Value": "Kardiyovasküler Sistem Muayenesi" + }, + { + "Id": "d4a31915-30c4-5d9d-845c-097f50768e28", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamRespiratory", + "Value": "Respiratory System Examination" + }, + { + "Id": "9efcf152-ae99-5ea6-97bc-9165eaa7c61e", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamRespiratory", + "Value": "Solunum Sistemi Muayenesi" + }, + { + "Id": "2fb89cb0-a379-5035-90a5-60a8c0774d7f", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamDigestive", + "Value": "Digestive System Examination" + }, + { + "Id": "c1b37ba1-1421-5edb-8432-a5cde5e02b08", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamDigestive", + "Value": "Sindirim Sistemi Muayenesi" + }, + { + "Id": "237bcdd4-bd96-58e6-967f-ea11aaaf1710", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamUrogenital", + "Value": "Urogenital System Examination" + }, + { + "Id": "9a0eb14b-a591-5a43-bb6f-0e2a1e952a27", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamUrogenital", + "Value": "Ürogenital Sistem Muayenesi" + }, + { + "Id": "6fc917ac-ae4f-5417-848f-63269ad02d2b", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamMusculoskeletal", + "Value": "Musculoskeletal System Examination" + }, + { + "Id": "413bf43e-d192-5ca1-a2a7-82ea6c5108f8", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamMusculoskeletal", + "Value": "Kas-İskelet Sistemi Muayenesi" + }, + { + "Id": "837ee1a2-a90a-55f3-87fb-2645abb74f7e", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamNeurological", + "Value": "Neurological Examination" + }, + { + "Id": "c789db9f-4ad6-5849-9b32-882034972990", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamNeurological", + "Value": "Nörolojik Muayene" + }, + { + "Id": "0b173d98-210b-5299-ac21-168461209d5b", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamPsychiatric", + "Value": "Psychiatric Examination" + }, + { + "Id": "ed4e38a8-27e2-5b9e-afc9-20ef7e041b3c", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamPsychiatric", + "Value": "Psikiyatrik Muayene" + }, + { + "Id": "aa25b9bf-9155-5676-90ec-b80000f40210", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamOther", + "Value": "Other Examination Findings" + }, + { + "Id": "f0f3e856-9b24-5655-9873-f20d882deaef", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamOther", + "Value": "Diğer Muayene Bulguları" + }, + { + "Id": "502cb063-256d-5027-b79c-6fe22a19144e", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamBloodPressure", + "Value": "Blood Pressure" + }, + { + "Id": "4a224ffa-e9c0-5ebd-b1be-bd7fb3e0d1bc", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamBloodPressure", + "Value": "TA" + }, + { + "Id": "38c9277b-1897-5d34-812e-aa46efa8257c", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamPulse", + "Value": "Pulse / min" + }, + { + "Id": "9a504c10-e983-50c7-90e3-01d59c4bb66e", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamPulse", + "Value": "DB/dk" + }, + { + "Id": "a997ce1c-b21b-567a-b164-68d60f85bd89", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamHeight", + "Value": "Height (cm)" + }, + { + "Id": "45e4a7b7-701a-5cce-92e9-ad0850a4927e", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamHeight", + "Value": "Boy (cm)" + }, + { + "Id": "8322370a-614f-5e54-aeea-5e558c979977", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamWeight", + "Value": "Weight (kg)" + }, + { + "Id": "84c9fc17-149a-590a-a9af-cabe8944c858", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ExamWeight", + "Value": "Kilo (kg)" + }, + { + "Id": "f450793e-87b6-5969-9804-6111c41709d5", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ComplaintProductiveCough", + "Value": "Productive Cough" + }, + { + "Id": "3e0d226c-4609-5289-acb1-5f62bafd2c6c", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ComplaintProductiveCough", + "Value": "Balgamlı Öksürük" + }, + { + "Id": "d0bb5930-c32b-5720-ba4f-a62813d983b0", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ComplaintDyspnea", + "Value": "Shortness of Breath" + }, + { + "Id": "a2b6cd09-e863-5569-8502-53b30a5a6103", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ComplaintDyspnea", + "Value": "Nefes Darlığı" + }, + { + "Id": "de4cb1ad-aa43-5423-a8f8-850c7c6bc1a5", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ComplaintChestPain", + "Value": "Chest Pain" + }, + { + "Id": "0eb359c2-9ac2-5e20-a0ac-98a55e896974", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ComplaintChestPain", + "Value": "Göğüs Ağrısı" + }, + { + "Id": "cc8f631d-6970-5892-aaf6-06dcfbbe5659", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ComplaintPalpitation", + "Value": "Palpitation" + }, + { + "Id": "c6419922-44bc-5d4c-880a-34cec5bc693e", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ComplaintPalpitation", + "Value": "Çarpıntı" + }, + { + "Id": "492d1d95-5aa4-55d8-bb0c-b6340965e3ce", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ComplaintBackPain", + "Value": "Back Pain" + }, + { + "Id": "3a362413-d207-5014-86ad-b3f53d2b10ca", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ComplaintBackPain", + "Value": "Sırt Ağrısı" + }, + { + "Id": "dee0e445-067e-5f40-bdab-e860c9fbe0b0", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ComplaintDiarrheaConstipation", + "Value": "Diarrhea or Constipation" + }, + { + "Id": "f722c898-6b64-5b9e-88c0-728d612c5252", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ComplaintDiarrheaConstipation", + "Value": "İshal veya Kabızlık" + }, + { + "Id": "b4171461-d58e-57a7-8701-610ce89245b8", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ComplaintJointPain", + "Value": "Joint Pain" + }, + { + "Id": "7f985c32-825b-5411-885c-ddc879d04b41", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ComplaintJointPain", + "Value": "Eklemlerde Ağrı" + }, + { + "Id": "dc0522d3-9074-538a-96be-672b42a50473", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.DiagnosisHeartDisease", + "Value": "Heart Disease" + }, + { + "Id": "cd209652-516e-5737-9cbc-4bdca291f8f1", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.DiagnosisHeartDisease", + "Value": "Kalp Hastalığı" + }, + { + "Id": "41a20a23-274b-54a0-a945-2f4d52b4b6d9", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.DiagnosisDiabetes", + "Value": "Diabetes" + }, + { + "Id": "9a386218-9237-534b-993d-31ccd30aaef7", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.DiagnosisDiabetes", + "Value": "Şeker Hastalığı" + }, + { + "Id": "44802171-8bee-5470-8879-49e6f3aab61d", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.DiagnosisKidneyDisease", + "Value": "Kidney Disease" + }, + { + "Id": "4405e647-230d-5d33-ac3a-39652fc350c3", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.DiagnosisKidneyDisease", + "Value": "Böbrek Rahatsızlığı" + }, + { + "Id": "01992dd0-a447-5eea-b447-025876d1c024", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.DiagnosisJaundice", + "Value": "Jaundice" + }, + { + "Id": "c41f8dbf-472e-5bd9-a638-fd5d6f8a9654", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.DiagnosisJaundice", + "Value": "Sarılık" + }, + { + "Id": "701dc8e3-e7ec-5030-9494-03ff2e8ecf7a", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.DiagnosisPepticUlcer", + "Value": "Gastric / Duodenal Ulcer" + }, + { + "Id": "39d12e53-106e-5031-a219-1e33946cd988", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.DiagnosisPepticUlcer", + "Value": "Mide/Oniki Parmak Ülseri" + }, + { + "Id": "97847930-1d98-52ea-8a3f-52d69e931184", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.DiagnosisHearingLoss", + "Value": "Hearing Loss" + }, + { + "Id": "17afde6d-5f5b-5f0d-9073-3f954d4aaa23", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.DiagnosisHearingLoss", + "Value": "İşitme Kaybı" + }, + { + "Id": "415cc238-7bce-50fd-a053-0a43615f50dc", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.DiagnosisVisionImpairment", + "Value": "Vision Impairment" + }, + { + "Id": "c8b42233-5ae7-5ce4-978a-2326a9d03bff", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.DiagnosisVisionImpairment", + "Value": "Görme Bozukluğu" + }, + { + "Id": "5b39a70a-47a3-54ca-9398-8da8be218279", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.DiagnosisNervousSystemDisease", + "Value": "Nervous System Disease" + }, + { + "Id": "cd1709cb-a506-5450-b9e6-5786990d13ee", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.DiagnosisNervousSystemDisease", + "Value": "Sinir Sistemi Hastalığı" + }, + { + "Id": "1fd8417b-41d7-5ea9-8e29-ed702f46402e", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.DiagnosisSkinDisease", + "Value": "Skin Disease" + }, + { + "Id": "73586a94-366a-5754-8c34-92d6e92e9847", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.DiagnosisSkinDisease", + "Value": "Deri Hastalığı" + }, + { + "Id": "93cb99aa-9783-50b3-b675-b6f1892daf4e", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.DiagnosisFoodPoisoning", + "Value": "Food Poisoning" + }, + { + "Id": "ca4b7bd3-e986-5156-8739-ebaa7b021768", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.DiagnosisFoodPoisoning", + "Value": "Besin Zehirlenmesi" + }, + { + "Id": "bfe7282d-4d9e-571f-b62e-2405f51315ab", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.Hospitalized", + "Value": "3. Have you been hospitalized?" + }, + { + "Id": "0e5af4c1-e05a-55b4-b348-520defdb4afa", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.Hospitalized", + "Value": "3. Hastanede Yattınız mı?" + }, + { + "Id": "1fca978c-e2c3-5b86-8aa5-fee1575b2057", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.HospitalizedNote", + "Value": "Hospitalization Note" + }, + { + "Id": "61d8e160-5e22-58ef-a13c-d9cefa1406ce", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.HospitalizedNote", + "Value": "Hastane Yatışı Açıklaması" + }, + { + "Id": "d21b6816-92b5-537e-91f2-2351b0c68156", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.HadSurgery", + "Value": "4. Have you had surgery?" + }, + { + "Id": "81085a2d-70bf-5bd1-8660-d08bb00e0ce6", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.HadSurgery", + "Value": "4. Ameliyat Oldunuz mu?" + }, + { + "Id": "786c51b5-4349-58fb-84a7-f02aeba34104", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.HadSurgeryNote", + "Value": "Surgery Note" + }, + { + "Id": "d3d9594e-9311-528c-9577-e020e766f23d", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.HadSurgeryNote", + "Value": "Ameliyat Açıklaması" + }, + { + "Id": "75715647-6921-5784-ad7c-8d4c3c3eb088", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.HadWorkAccident", + "Value": "5. Have you had a work accident?" + }, + { + "Id": "e1a484ae-3f1e-577e-9c06-9253b7a98bd6", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.HadWorkAccident", + "Value": "5. İş Kazası Geçirdiniz mi?" + }, + { + "Id": "32a238cc-53da-5cbf-b9e1-182edf5db41a", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.HadWorkAccidentNote", + "Value": "Work Accident Note" + }, + { + "Id": "4369b843-2bf0-585d-a1dd-4e764dc97678", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.HadWorkAccidentNote", + "Value": "İş Kazası Açıklaması" + }, + { + "Id": "a7179be3-741e-5235-90a4-f176f7543515", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.OccupationalDiseaseExam", + "Value": "6. Have you been tested or examined for a suspected occupational disease?" + }, + { + "Id": "27dce798-4197-58eb-9997-5db90714f99f", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.OccupationalDiseaseExam", + "Value": "6. Meslek Hastalıkları Şüphesi İle İlgili Tetkik veya Muayeneye Tabi Tutuldunuz mu?" + }, + { + "Id": "44e4ffe9-5c32-5a14-bf8a-0bb1b879b5b7", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.OccupationalDiseaseExamNote", + "Value": "Occupational Disease Examination Note" + }, + { + "Id": "4ffe131b-55ba-5a3b-9a69-c78e1bdd89df", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.OccupationalDiseaseExamNote", + "Value": "Meslek Hastalığı Muayenesi Açıklaması" + }, + { + "Id": "4cee7897-c93d-528f-8250-57e678244d6c", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.DisabilityPension", + "Value": "7. Have you received a disability pension?" + }, + { + "Id": "ea39467b-7fdc-5711-947f-b638b85467ec", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.DisabilityPension", + "Value": "7. Maluliyet Aldınız mı?" + }, + { + "Id": "187cea5f-f7f2-5740-8ee9-31b71c772c5c", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.DisabilityPensionNote", + "Value": "Disability Pension Note" + }, + { + "Id": "b0f0bcba-1d37-55b7-a34a-06930293642b", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.DisabilityPensionNote", + "Value": "Maluliyet Açıklaması" + }, + { + "Id": "35a5c10f-198e-53c7-911e-6df337763e08", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.UnderTreatment", + "Value": "8. Are you currently receiving any treatment?" + }, + { + "Id": "663d1646-2459-5b4b-ba5a-78b8950a1220", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.UnderTreatment", + "Value": "8. Şu Anda Herhangi Bir Tedavi Görüyor musunuz?" + }, + { + "Id": "9ff84136-2d7f-507b-a50e-7110f122e7d2", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.UnderTreatmentNote", + "Value": "Treatment Note" + }, + { + "Id": "51332d8f-9952-5de2-9d2a-ad392496fe55", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.UnderTreatmentNote", + "Value": "Tedavi Açıklaması" + }, + { + "Id": "c71552dd-a072-5f1a-b1a7-95f2c1a4de12", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.Smoking", + "Value": "9. Do you smoke?" + }, + { + "Id": "ad7181fc-e2ca-5b04-996b-4862160e9aba", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.Smoking", + "Value": "9. Sigara İçiyor musunuz?" + }, + { + "Id": "61bf1ec3-6c02-5344-a315-138857fce5b3", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.SmokingNote", + "Value": "Smoking Note" + }, + { + "Id": "98872831-389e-5488-b1c2-8682de73a197", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.SmokingNote", + "Value": "Sigara Açıklaması" + }, + { + "Id": "659718f8-170f-5434-81e6-a857480f92de", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.Alcohol", + "Value": "10. Do you drink alcohol?" + }, + { + "Id": "2483b941-06fd-5b01-b26a-dc3086b08cea", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.Alcohol", + "Value": "10. Alkol Kullanıyor musunuz?" + }, + { + "Id": "616ad606-33b7-5975-a646-e4a1410b6aff", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.AlcoholNote", + "Value": "Alcohol Note" + }, + { + "Id": "b5e911fb-3232-5387-870b-5a5a290bef20", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.AlcoholNote", + "Value": "Alkol Açıklaması" + }, + { + "Id": "d904afa1-bd9d-5f39-a550-baaccb1c9e5c", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.FitForWorkJob", + "Value": "Fit for Work - Job" + }, + { + "Id": "1409ff30-963e-5933-adb5-e3e69e305d04", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.FitForWorkJob", + "Value": "Çalışmaya Elverişli - İş" + }, + { + "Id": "6c1e1edf-92fe-523e-89a9-a119df080e17", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.FitForWorkCondition", + "Value": "Fit for Work - Condition" + }, + { + "Id": "9ca1d645-7395-5980-af2c-6c5c499c7cab", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.FitForWorkCondition", + "Value": "Çalışmaya Elverişli - Şart" + }, + { + "Id": "70cdc4f8-9a30-5224-94e9-b20da7260136", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.FitnessDoctorId", + "Value": "Doctor" + }, + { + "Id": "d29958b5-e20e-5d22-ba04-2136f0aa3cc6", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.FitnessDoctorId", + "Value": "Doktor" + }, + { + "Id": "0e8d1131-4578-5134-b5fe-41420e2f6400", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ShiftWorkFit", + "Value": "Can Work in Shifts" + }, + { + "Id": "2845f6fe-288d-5d8b-9ad3-07cdf6cab0f5", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ShiftWorkFit", + "Value": "Vardiyalı Çalışabilir" + }, + { + "Id": "489375cf-9b5d-5e1f-b268-dc1db5f62bca", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.NightWorkFit", + "Value": "Can Work at Night" + }, + { + "Id": "bdaaa621-df1e-5bce-a83a-05e04b9e47c2", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.NightWorkFit", + "Value": "Gece Çalışabilir" + }, + { + "Id": "cbca1ede-0b9c-53d0-bf43-06d9dd18676c", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ShiftNightDoctorId", + "Value": "Shift / Night Work Doctor" + }, + { + "Id": "0e4a088a-2927-5f0f-a1f9-2555994e3d36", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ShiftNightDoctorId", + "Value": "Vardiya / Gece Çalışma Doktoru" + }, + { + "Id": "165630ac-40af-5663-8502-81724d61bd03", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.History", + "Value": "Family / Personal History" + }, + { + "Id": "5c0a74ed-9815-5572-a352-2bc68b178411", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.History", + "Value": "Soy / Öz Geçmişi" + }, + { + "Id": "621be68b-28f8-5a4f-bec4-005812c6a441", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.LabPhysical", + "Value": "Laboratory - Physical Examination" + }, + { + "Id": "8e736c84-7fa5-57bc-8c0d-3aabf60e4cf2", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.LabPhysical", + "Value": "Laboratuvar - Fizik Muayene" + }, + { + "Id": "e38211cb-0c89-5a9f-aab0-570c4d5fb2ab", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.LaboratoryFindings", + "Value": "Laboratory Findings" + }, + { + "Id": "4aa7ba36-4e03-5eda-a27f-e4e686fce0b9", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.LaboratoryFindings", + "Value": "Laboratuvar Bulguları" + }, + { + "Id": "a07e8c04-0364-5b70-8e8f-bf0795e0e24b", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.PhysicalExamResults", + "Value": "Physical Examination Results" + }, + { + "Id": "e9d3a8ad-1aea-53dd-ae80-f49a290ee9b1", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.PhysicalExamResults", + "Value": "Fizik Muayene Sonuçları" + }, + { + "Id": "db086ef1-0258-5a44-9dce-fc7733596d3f", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.BodyMassIndex", + "Value": "Body Mass Index" + }, + { + "Id": "9f8401bc-f4b2-5c1f-afef-e534eaef1e9b", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.BodyMassIndex", + "Value": "Vücut Kitle İndeksi" + }, + { + "Id": "fad05a46-c34c-5669-8d3b-c4b44e87101b", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.Anamnesis", + "Value": "Anamnesis" + }, + { + "Id": "c3a1ed8c-8335-5989-8899-ad3375a5ae11", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.Anamnesis", + "Value": "Anamnez" + }, + { + "Id": "3ed3f3e5-ce88-54b7-a486-b625be0ee92b", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ComplaintsQuestion", + "Value": "1. Have you experienced any of the following complaints?" + }, + { + "Id": "0136bf10-bfa3-545d-b1c1-295064312a08", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ComplaintsQuestion", + "Value": "1. Aşağıdaki yakınmalardan herhangi birini yaşadınız mı?" + }, + { + "Id": "2e565e33-7878-555a-bda2-73d27fb67d1b", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.DiagnosesQuestion", + "Value": "2. Have you been diagnosed with any of the following diseases?" + }, + { + "Id": "8c628f80-e30c-5291-bbc8-565b36998768", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.DiagnosesQuestion", + "Value": "2. Aşağıdaki hastalıklardan herhangi biri için teşhis konuldu mu?" + }, + { + "Id": "e1ab6954-2114-5efa-86cb-d3a93614eb83", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.Result", + "Value": "Result" + }, + { + "Id": "b2ecafe8-ae4b-59c3-b72c-b02b0c927822", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.Result", + "Value": "Sonuç" + }, + { + "Id": "8e2aafe7-3598-596e-8e8f-4d4f5318ce94", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.FitForWorkJobSuffix", + "Value": "is physically and mentally fit to work in this job." + }, + { + "Id": "07aa938c-9570-50d0-9a44-5cbd8d690968", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.FitForWorkJobSuffix", + "Value": "işinde bedenen ve ruhen çalışmaya elverişlidir." + }, + { + "Id": "c8bd3c6c-b776-5431-98a2-84748e767bfe", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.FitForWorkConditionSuffix", + "Value": "is fit to work on this condition." + }, + { + "Id": "252bc684-5ec4-51bc-a7b0-25034563c11f", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.FitForWorkConditionSuffix", + "Value": "şartıyla çalışmaya elverişlidir." + }, + { + "Id": "9620a683-8dcc-5b0c-a54a-e3bb0cd4e887", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.DiplomaDateNo", + "Value": "Diploma Date / No" + }, + { + "Id": "8e9af4d8-48ee-5a46-a9c0-489ba3c5c534", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.DiplomaDateNo", + "Value": "Diploma Tarihi / No" + }, + { + "Id": "83d4d7e2-0fb8-52d1-a14d-28a93b0598d7", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.OhsCertificateDateNo", + "Value": "Workplace Physician Certificate Date / No" + }, + { + "Id": "00014fab-3a78-5e8b-b0d5-d26d468bd994", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.OhsCertificateDateNo", + "Value": "İşyeri Hekimliği Belgesi Tarihi / No" + }, + { + "Id": "1e6065ad-7ef2-5753-b979-17f0a8da8480", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ShiftNightInfo", + "Value": "(Based on the examination, it is stated whether the employee is fit to work in night or shift conditions, provided that suitable equipment complementing body health and integrity is available.)" + }, + { + "Id": "2ab090ec-fd5f-51e9-ab59-55b76d0d5a56", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "Abp.Identity.User.HealthCard.ShiftNightInfo", + "Value": "(Yapılan muayene sonucunda çalışanın gece veya vardiyalı çalışma koşullarında çalışıp çalışamayacağı ile vücut sağlığını ve bütünlüğünü tamamlayıcı uygun alet teçhizat vs... bulunması durumunda çalışan için bu koşullarla çalışmaya elverişli olup olmadığı kanaati belirtilecektir.)" + }, + { + "Id": "e0bbe780-fa6a-5d4e-8724-9a8db92ec693", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.StaticLookup.Quit", + "Value": "Quit" + }, + { + "Id": "53f715a2-3e82-52e0-b20c-0b4302706d1b", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.StaticLookup.Quit", + "Value": "Bıraktı" + }, + { + "Id": "51c9e41e-fa12-5500-8242-258809378173", + "CultureName": "en", + "ResourceName": "Platform", + "Key": "App.StaticLookup.Occasionally", + "Value": "Occasionally" + }, + { + "Id": "c75d4f46-9739-5c37-8a42-909821b6df6f", + "CultureName": "tr", + "ResourceName": "Platform", + "Key": "App.StaticLookup.Occasionally", + "Value": "Ara sıra" + }, { "Id": "5445f0fd-91ce-5a9a-9f77-d5c61e417456", "CultureName": "en", diff --git a/ui/src/proxy/admin/models.ts b/ui/src/proxy/admin/models.ts index 4320c7c6..0a6b34f6 100644 --- a/ui/src/proxy/admin/models.ts +++ b/ui/src/proxy/admin/models.ts @@ -172,6 +172,82 @@ export interface UserInfoViewModel extends ExtensibleObject { educationLevel?: string graduationSchool?: string bloodType?: string + motherHealthStatus?: string + motherHealthNote?: string + fatherHealthStatus?: string + fatherHealthNote?: string + siblingHealthStatus?: string + siblingHealthNote?: string + childHealthStatus?: string + childHealthNote?: string + chronicDisease?: string + tetanusVaccination?: string + hepatitisVaccination?: string + otherVaccination?: string + labBiologicalAnalysis?: string + labBlood?: string + labUrine?: string + labRadiological?: string + labRadiologicalPhysiological?: string + labAudiometry?: string + labPulmonaryFunction?: string + labPsychologicalTests?: string + labOther?: string + examSensoryOrgans?: string + examEye?: string + examEnt?: string + examSkin?: string + examCardiovascular?: string + examRespiratory?: string + examDigestive?: string + examUrogenital?: string + examMusculoskeletal?: string + examNeurological?: string + examPsychiatric?: string + examOther?: string + examBloodPressure?: string + examPulse?: string + examHeight?: number + examWeight?: number + complaintProductiveCough?: boolean + complaintDyspnea?: boolean + complaintChestPain?: boolean + complaintPalpitation?: boolean + complaintBackPain?: boolean + complaintDiarrheaConstipation?: boolean + complaintJointPain?: boolean + diagnosisHeartDisease?: boolean + diagnosisDiabetes?: boolean + diagnosisKidneyDisease?: boolean + diagnosisJaundice?: boolean + diagnosisPepticUlcer?: boolean + diagnosisHearingLoss?: boolean + diagnosisVisionImpairment?: boolean + diagnosisNervousSystemDisease?: boolean + diagnosisSkinDisease?: boolean + diagnosisFoodPoisoning?: boolean + hospitalized?: boolean + hospitalizedNote?: string + hadSurgery?: boolean + hadSurgeryNote?: string + hadWorkAccident?: boolean + hadWorkAccidentNote?: string + occupationalDiseaseExam?: boolean + occupationalDiseaseExamNote?: string + disabilityPension?: boolean + disabilityPensionNote?: string + underTreatment?: boolean + underTreatmentNote?: string + smoking?: string + smokingNote?: string + alcohol?: string + alcoholNote?: string + fitForWorkJob?: string + fitForWorkCondition?: string + fitnessDoctorId?: string + shiftWorkFit?: boolean + nightWorkFit?: boolean + shiftNightDoctorId?: string } export interface AssignedRoleViewModel { diff --git a/ui/src/views/admin/user-management/Details.tsx b/ui/src/views/admin/user-management/Details.tsx index 7403c0d3..8e6eba8c 100644 --- a/ui/src/views/admin/user-management/Details.tsx +++ b/ui/src/views/admin/user-management/Details.tsx @@ -35,7 +35,7 @@ import { CountryDto, getCountry } from '@/services/country.service' import { useLocalization } from '@/utils/hooks/useLocalization' import dayjs from 'dayjs' import { Field, FieldArray, FieldProps, Form, Formik, FormikHelpers } from 'formik' -import { useEffect, useRef, useState } from 'react' +import { useEffect, useMemo, useRef, useState } from 'react' import PageTitle from '@/components/shared/PageTitle' import { FaBuilding, @@ -63,6 +63,7 @@ import { FaUserTie, FaFemale, FaHeart, + FaHeartbeat, FaExclamationTriangle, FaUsers, FaPlus, @@ -83,6 +84,8 @@ import { AssignedClaimViewModel, UserInfoViewModel } from '@/proxy/admin/models' import { AVATAR_URL } from '@/constants/app.constant' import { useStoreActions, useStoreState } from '@/store' import { useSetting } from '@/utils/hooks/useSetting' +import PlatformViewHost from '@/components/componentEditor/PlatformViewHost' +import HealthCardTab from './HealthCardTab' export interface ClaimTypeDto { claimType: string @@ -104,6 +107,11 @@ function UserDetails() { const { setUser } = useStoreActions((actions) => actions.auth.user) const { setting } = useSetting() + // Yeni satırın UserId değeri de bu filtreden dolar (applyNewRowDefaults). + const workExperienceSearchParams = useMemo( + () => new URLSearchParams({ filter: JSON.stringify(['UserId', '=', userId]) }), + [userId], + ) const isEmailUpdateEnabled = setting('Abp.Identity.User.IsEmailUpdateEnabled') const isRequireConfirmedEmail = setting('Abp.Identity.SignIn.RequireConfirmedEmail') @@ -240,6 +248,9 @@ function UserDetails() { }> {translate('::Abp.Identity.User.WorkInformation')} + }> + {translate('::Abp.Identity.User.HealthCard')} + }> {translate('::Abp.Identity.User.IndentityInformation')} @@ -528,37 +539,6 @@ function UserDetails() { prefix={} /> - - - {({ field, form }: FieldProps) => { - const bloodTypeOptions: SelectBoxOption[] = [ - { value: 'A Rh+', label: 'A Rh+' }, - { value: 'A Rh-', label: 'A Rh-' }, - { value: 'B Rh+', label: 'B Rh+' }, - { value: 'B Rh-', label: 'B Rh-' }, - { value: 'AB Rh+', label: 'AB Rh+' }, - { value: 'AB Rh-', label: 'AB Rh-' }, - { value: '0 Rh+', label: '0 Rh+' }, - { value: '0 Rh-', label: '0 Rh-' }, - ] - return ( - option.value === values[name])} + onChange={(option) => form.setFieldValue(field.name, option?.value ?? null)} + /> + )} + + ) + + const renderText = (name: string, placeholder: string) => ( + + ) + + const renderYesNo = (name: string, { values, setFieldValue }: FormikProps) => ( +
+ {[true, false].map((answer) => ( + setFieldValue(name, answer)} + > + {translate(answer ? '::App.Platform.Yes' : '::App.Platform.No')} + + ))} +
+ ) + + /** Görseldeki üst "Evet / Hayır" seçimi: bloğun bütün sorularını tek seferde işaretler. */ + const renderSetAll = (names: string[], { setFieldValue }: FormikProps) => ( +
+ {[true, false].map((answer) => ( + + ))} +
+ ) + + const renderTextRows = (rows: [string, boolean][]) => + rows.map(([name, indented]) => ( +
+
+ {indented ? '- ' : ''} + {label(name)} +
+ {renderText(fieldName(name), label(name))} +
+ )) + + const renderYesNoRows = (rows: string[], formik: FormikProps) => ( +
+ {rows.map((name) => ( +
+
{label(name)}
+ {renderYesNo(fieldName(name), formik)} +
+ ))} +
+ ) + + const renderDoctor = (name: string, values: HealthValues) => { + const doctor = doctors.find((item) => item.key === values[fieldName(name)]) + + return ( +
+
{label(name)}
+ {renderSelect(fieldName(name), doctorOptions, values)} +
{label('DiplomaDateNo')}
+ + + +
{label('OhsCertificateDateNo')}
+ + + +
+ ) + } + + const bodyMassIndex = (values: HealthValues) => { + const height = Number(values.examHeight) + const weight = Number(values.examWeight) + if (!height || !weight) return 0 + return Number((weight / (height / 100) ** 2).toFixed(2)) + } + + return ( + { + setSubmitting(true) + // Sayı kutusu metin döndürür; API decimal bekler. + const toNumber = (value: unknown) => + value === '' || value === null || value === undefined ? undefined : Number(value) + await putUserDetail({ + ...values, + examHeight: toNumber(values.examHeight), + examWeight: toNumber(values.examWeight), + }) + + toast.push( + + {translate('::App.Platform.Save')} + , + { + placement: 'bottom-end', + }, + ) + + onSaved() + setSubmitting(false) + }} + > + {(formik) => { + const { isSubmitting, values } = formik + + return ( + // Alt listeler bu bileşenin içinde çizildiği için form etiketi kullanılmaz; liste + // düğmeleri kart formunu göndermesin. +
+ + setActiveTab(String(tab))}> + + {label('History')} + {label('LabPhysical')} + {label('Anamnesis')} + {label('Result')} + {healthLists.map((code) => ( + + {translate(`::App.IdentityManagement.${code}`)} + + ))} + + + +
+
{label('FamilyHistory')}
+ {familyRows.map((member) => ( +
+
{label(`${member}HealthStatus`)}
+ + {renderSelect( + fieldName(`${member}HealthStatus`), + healthStatusOptions, + values, + )} + + + {renderText( + fieldName(`${member}HealthNote`), + label(`${member}HealthNote`), + )} + +
+ ))} + +
{label('PersonalHistory')}
+
+
+ {translate('::Abp.Account.BloodType')} +
+ {renderSelect('bloodType', bloodTypeOptions, values)} + +
{label('ChronicDisease')}
+ {renderText('chronicDisease', label('ChronicDisease'))} + +
+ {label('Immunization')} +
+ {vaccinationRows.map((vaccination) => ( +
+
- {label(vaccination)}
+ + {renderText(fieldName(vaccination), label(vaccination))} + +
+ ))} +
+
+
+ + +
+
+
{label('LaboratoryFindings')}
+ {renderTextRows(labRows)} +
+
+
{label('PhysicalExamResults')}
+
+
{renderTextRows(examRows)}
+
+ {renderTextRows(otherExamRows)} + {['ExamHeight', 'ExamWeight'].map((name) => ( +
+
- {label(name)}
+ + + +
+ ))} +
+
+ - {label('BodyMassIndex')} +
+ + + +
+
+
+
+
+
+ + +
+ {renderSetAll([...complaintRows, ...diagnosisRows], formik)} +
+
+
{label('ComplaintsQuestion')}
+ {renderYesNoRows(complaintRows, formik)} +
+
+
{label('DiagnosesQuestion')}
+ {renderYesNoRows(diagnosisRows, formik)} +
+
+ +
+ {renderSetAll(questionRows, formik)} + {questionRows.map((name) => ( +
+
{label(name)}
+
+ {renderYesNo(fieldName(name), formik)} + + {renderText(fieldName(`${name}Note`), label(`${name}Note`))} + +
+
+ ))} + {( + [ + ['Smoking', smokingOptions], + ['Alcohol', alcoholOptions], + ] as const + ).map(([name, options]) => ( +
+
{label(name)}
+
+ + {renderSelect(fieldName(name), [...options], values)} + + + {renderText(fieldName(`${name}Note`), label(`${name}Note`))} + +
+
+ ))} +
+
+
+ + +
+
+
1.
+ {renderText('fitForWorkJob', label('FitForWorkJob'))} +
{label('FitForWorkJobSuffix')}
+ +
2.
+ + {renderText('fitForWorkCondition', label('FitForWorkCondition'))} + +
{label('FitForWorkConditionSuffix')}
+
+ {renderDoctor('FitnessDoctorId', values)} + +

{label('ShiftNightInfo')}

+ +
+ {['ShiftWorkFit', 'NightWorkFit'].map((name) => ( +
+
{label(name)}
+ {renderYesNo(fieldName(name), formik)} +
+ ))} +
+ {renderDoctor('ShiftNightDoctorId', values)} +
+
+ + {healthLists.map((code) => ( + +
+ +
+
+ ))} +
+
+ + {!isListTab && ( +
+ +
+ )} +
+ ) + }} +
+ ) +} + +export default HealthCardTab