diff --git a/src/UDS.Net.API.Client/UDS.Net.API.Client.csproj b/src/UDS.Net.API.Client/UDS.Net.API.Client.csproj index 6d8e7b5..5a7510d 100644 --- a/src/UDS.Net.API.Client/UDS.Net.API.Client.csproj +++ b/src/UDS.Net.API.Client/UDS.Net.API.Client.csproj @@ -4,13 +4,13 @@ netstandard2.1 Library UDS.Net.API.Client - 4.1.1 + 4.2.0 Sanders-Brown Center on Aging UDS client library for using UDS.Net.API UK-SBCoA Client library for API https://github.com/UK-SBCoA/uniform-data-set-dotnet-api - 4.1.1 + 4.2.0 diff --git a/src/UDS.Net.API/Data/Migrations/20241030191456_UpdateC2TProperties.Designer.cs b/src/UDS.Net.API/Data/Migrations/20241030191456_UpdateC2TProperties.Designer.cs new file mode 100644 index 0000000..1d81009 --- /dev/null +++ b/src/UDS.Net.API/Data/Migrations/20241030191456_UpdateC2TProperties.Designer.cs @@ -0,0 +1,8947 @@ +// +using System; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using UDS.Net.API.Data; + +#nullable disable + +namespace UDS.Net.API.Data.Migrations +{ + [DbContext(typeof(ApiDbContext))] + [Migration("20241030191456_UpdateC2TProperties")] + partial class UpdateC2TProperties + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "8.0.10") + .HasAnnotation("Relational:MaxIdentifierLength", 128); + + SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); + + modelBuilder.Entity("UDS.Net.API.Entities.A1", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId") + .HasColumnOrder(0); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("ADINAT") + .HasColumnType("int"); + + b.Property("ADISTATE") + .HasColumnType("int"); + + b.Property("BIRTHMO") + .HasColumnType("int"); + + b.Property("BIRTHSEX") + .HasColumnType("int"); + + b.Property("BIRTHYR") + .HasColumnType("int"); + + b.Property("CHLDHDCTRY") + .HasMaxLength(3) + .HasColumnType("nvarchar(3)"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("EDUC") + .HasColumnType("int"); + + b.Property("ETHAFAMER") + .HasColumnType("int"); + + b.Property("ETHASNOTH") + .HasColumnType("int"); + + b.Property("ETHASNOTHX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("ETHBLKOTH") + .HasColumnType("int"); + + b.Property("ETHBLKOTHX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("ETHCHAMOR") + .HasColumnType("int"); + + b.Property("ETHCHINESE") + .HasColumnType("int"); + + b.Property("ETHCUBAN") + .HasColumnType("int"); + + b.Property("ETHDOMIN") + .HasColumnType("int"); + + b.Property("ETHEGYPT") + .HasColumnType("int"); + + b.Property("ETHENGLISH") + .HasColumnType("int"); + + b.Property("ETHETHIOP") + .HasColumnType("int"); + + b.Property("ETHFIJIAN") + .HasColumnType("int"); + + b.Property("ETHFILIP") + .HasColumnType("int"); + + b.Property("ETHGERMAN") + .HasColumnType("int"); + + b.Property("ETHGUATEM") + .HasColumnType("int"); + + b.Property("ETHHAITIAN") + .HasColumnType("int"); + + b.Property("ETHHAWAII") + .HasColumnType("int"); + + b.Property("ETHHISOTH") + .HasColumnType("int"); + + b.Property("ETHHISOTHX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("ETHINDIA") + .HasColumnType("int"); + + b.Property("ETHIRAN") + .HasColumnType("int"); + + b.Property("ETHIRAQI") + .HasColumnType("int"); + + b.Property("ETHIRISH") + .HasColumnType("int"); + + b.Property("ETHISPANIC") + .HasColumnType("int"); + + b.Property("ETHISRAEL") + .HasColumnType("int"); + + b.Property("ETHITALIAN") + .HasColumnType("int"); + + b.Property("ETHJAMAICA") + .HasColumnType("int"); + + b.Property("ETHJAPAN") + .HasColumnType("int"); + + b.Property("ETHKOREAN") + .HasColumnType("int"); + + b.Property("ETHLEBANON") + .HasColumnType("int"); + + b.Property("ETHMARSHAL") + .HasColumnType("int"); + + b.Property("ETHMENAOTH") + .HasColumnType("int"); + + b.Property("ETHMENAOTX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("ETHMEXICAN") + .HasColumnType("int"); + + b.Property("ETHNHPIOTH") + .HasColumnType("int"); + + b.Property("ETHNHPIOTX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("ETHNIGERIA") + .HasColumnType("int"); + + b.Property("ETHPOLISH") + .HasColumnType("int"); + + b.Property("ETHPUERTO") + .HasColumnType("int"); + + b.Property("ETHSALVA") + .HasColumnType("int"); + + b.Property("ETHSAMOAN") + .HasColumnType("int"); + + b.Property("ETHSCOTT") + .HasColumnType("int"); + + b.Property("ETHSOMALI") + .HasColumnType("int"); + + b.Property("ETHSYRIA") + .HasColumnType("int"); + + b.Property("ETHTONGAN") + .HasColumnType("int"); + + b.Property("ETHVIETNAM") + .HasColumnType("int"); + + b.Property("ETHWHIOTH") + .HasColumnType("int"); + + b.Property("ETHWHIOTHX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("EXRTIME") + .HasColumnType("int"); + + b.Property("FRMDATE") + .HasColumnType("datetime2") + .HasColumnName("FRMDATE") + .HasColumnOrder(3); + + b.Property("GENDKN") + .HasColumnType("int"); + + b.Property("GENMAN") + .HasColumnType("int"); + + b.Property("GENNOANS") + .HasColumnType("int"); + + b.Property("GENNONBI") + .HasColumnType("int"); + + b.Property("GENOTH") + .HasColumnType("int"); + + b.Property("GENOTHX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("GENTRMAN") + .HasColumnType("int"); + + b.Property("GENTRWOMAN") + .HasColumnType("int"); + + b.Property("GENTWOSPIR") + .HasColumnType("int"); + + b.Property("GENWOMAN") + .HasColumnType("int"); + + b.Property("HANDED") + .HasColumnType("int"); + + b.Property("INITIALS") + .IsRequired() + .HasMaxLength(3) + .HasColumnType("nvarchar(3)") + .HasColumnName("INITIALS") + .HasColumnOrder(4); + + b.Property("INTERSEX") + .HasColumnType("int"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LANG") + .HasColumnType("int") + .HasColumnName("LANG") + .HasColumnOrder(5); + + b.Property("LIVSITUA") + .HasColumnType("int"); + + b.Property("LVLEDUC") + .HasColumnType("int"); + + b.Property("MARISTAT") + .HasColumnType("int"); + + b.Property("MEDVA") + .HasColumnType("int"); + + b.Property("MEMTEN") + .HasColumnType("int"); + + b.Property("MEMTROUB") + .HasColumnType("int"); + + b.Property("MEMWORS") + .HasColumnType("int"); + + b.Property("MODE") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(6); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NOT") + .HasColumnType("int") + .HasColumnName("NOT") + .HasColumnOrder(9); + + b.Property("PREDOMLAN") + .HasColumnType("int"); + + b.Property("PREDOMLANX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("PRIOCC") + .HasColumnType("int"); + + b.Property("RACEAIAN") + .HasColumnType("int"); + + b.Property("RACEAIANX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("RACEASIAN") + .HasColumnType("int"); + + b.Property("RACEBLACK") + .HasColumnType("int"); + + b.Property("RACEMENA") + .HasColumnType("int"); + + b.Property("RACENHPI") + .HasColumnType("int"); + + b.Property("RACEUNKN") + .HasColumnType("int"); + + b.Property("RACEWHITE") + .HasColumnType("int"); + + b.Property("REFCTRREGX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("REFCTRSOCX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("REFERSC") + .HasColumnType("int"); + + b.Property("REFERSCX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("REFLEARNED") + .HasColumnType("int"); + + b.Property("REFOTHMEDX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("REFOTHREGX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("REFOTHWEBX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("REFOTHX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("RESIDENC") + .HasColumnType("int"); + + b.Property("RMMODE") + .HasColumnType("int") + .HasColumnName("RMMODE") + .HasColumnOrder(8); + + b.Property("RMREAS") + .HasColumnType("int") + .HasColumnName("RMREASON") + .HasColumnOrder(7); + + b.Property("SERVED") + .HasColumnType("int"); + + b.Property("SEXORNBI") + .HasColumnType("int"); + + b.Property("SEXORNDNK") + .HasColumnType("int"); + + b.Property("SEXORNGAY") + .HasColumnType("int"); + + b.Property("SEXORNHET") + .HasColumnType("int"); + + b.Property("SEXORNNOAN") + .HasColumnType("int"); + + b.Property("SEXORNOTH") + .HasColumnType("int"); + + b.Property("SEXORNOTHX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("SEXORNTWOS") + .HasColumnType("int"); + + b.Property("SOURCENW") + .HasColumnType("int"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); + + b.Property("VisitId") + .HasColumnType("int") + .HasColumnOrder(1); + + b.Property("ZIP") + .HasMaxLength(3) + .HasColumnType("nvarchar(3)"); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_A1s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.A1a", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId") + .HasColumnOrder(0); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("ABANDONED") + .HasColumnType("int") + .HasComment("21. I often feel abandoned"); + + b.Property("ACTAFRAID") + .HasColumnType("int") + .HasComment("36. In your day-to-day life how often do people act as if they are afraid of you?"); + + b.Property("BILLPAY") + .HasColumnType("int") + .HasComment("9. How difficult is it for you to meet monthly payments on your bills?"); + + b.Property("CHILDCOMM") + .HasColumnType("int") + .HasComment("24. If you have children, how often do you have contact with your children (including child[ren]-in-law and stepchild[ren]) either in person, by phone, mail, or email (e.g., any online interaction)?"); + + b.Property("CLOSEFRND") + .HasColumnType("int") + .HasComment("22. I miss having a really good friend"); + + b.Property("COMPCOMM") + .HasColumnType("int") + .HasComment("15a. Where would you place yourself on this ladder compared to others in your community (or neighborhood)? Please mark the number where you would place yourself."); + + b.Property("COMPUSA") + .HasColumnType("int") + .HasComment("15b. Where would you place yourself on this ladder compared to others in the U.S.?"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DELAYMED") + .HasColumnType("int") + .HasComment("28. In the past year, how often did you delay seeking medical attention for a problem that was bothering you?"); + + b.Property("DOCADVICE") + .HasColumnType("int") + .HasComment("31. In the past year, how often did you follow a doctor's advice or treatment plan when it was given?"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("EATLESS") + .HasColumnType("int") + .HasComment("11. At any time, did you ever eat less than you felt you should because there wasn't enough money to buy food?"); + + b.Property("EATLESSYR") + .HasColumnType("int") + .HasComment("12. In the last 12 months, did you ever eat less than you felt you should because there wasn't enough money to buy food?"); + + b.Property("EMPTINESS") + .HasColumnType("int") + .HasComment("18. I experience a general sense of emptiness"); + + b.Property("EXPAGE") + .HasColumnType("bit") + .HasComment("39a4. Main reason--Your age"); + + b.Property("EXPANCEST") + .HasColumnType("bit") + .HasComment("39a1. Main reason--Your Ancestry or National Origins"); + + b.Property("EXPAPPEAR") + .HasColumnType("bit") + .HasComment("39a8. Main reason--Some other aspect of your physical appearance"); + + b.Property("EXPDISAB") + .HasColumnType("bit") + .HasComment("39a11. Main reason--A physical disability"); + + b.Property("EXPEDUCINC") + .HasColumnType("bit") + .HasComment("39a10. Main reason--Your education or income level"); + + b.Property("EXPGENDER") + .HasColumnType("bit") + .HasComment("39a2. Main reason--Your gender"); + + b.Property("EXPHEIGHT") + .HasColumnType("bit") + .HasComment("39a6. Main reason--Your height"); + + b.Property("EXPNOANS") + .HasColumnType("bit") + .HasComment("39a15. Main reason--Prefer not to answer"); + + b.Property("EXPNOTAPP") + .HasColumnType("bit") + .HasComment("39a14. Main reason -- not applicable - I do not have these experiences in my day to day life"); + + b.Property("EXPOTHER") + .HasColumnType("bit") + .HasComment("39a13. Main reason -- Other"); + + b.Property("EXPRACE") + .HasColumnType("bit") + .HasComment("39a3. Main reason--Your race"); + + b.Property("EXPRELIG") + .HasColumnType("bit") + .HasComment("39a5. Main reason--Your religion"); + + b.Property("EXPSEXORN") + .HasColumnType("bit") + .HasComment("39a9. Main reason--Your sexual orientation"); + + b.Property("EXPSKIN") + .HasColumnType("bit") + .HasComment("39a12. Main reason--Your shade of skin color"); + + b.Property("EXPSTRS") + .HasColumnType("int") + .HasComment("40. When you have had day-to-day experiences like those in questions 33 to 38, would you say they have been very stressful, moderately stressful, or not stressful?"); + + b.Property("EXPWEIGHT") + .HasColumnType("bit") + .HasComment("39a7. Main reason--Your weight"); + + b.Property("FAMCOMP") + .HasColumnType("int") + .HasComment("15c. Thinking of your childhood, where would your family have been placed on this ladder compared to others in your community (or neighborhood)?"); + + b.Property("FINSATIS") + .HasColumnType("int") + .HasComment("8. How satisfied are you with your current personal financial condition?"); + + b.Property("FINUPSET") + .HasColumnType("int") + .HasComment("10. If you have had financial problems that lasted twelve months or longer, how upsetting has it been to you?"); + + b.Property("FRIENDCOMM") + .HasColumnType("int") + .HasComment("25. How often do you have contact with close friends either in person, by phone, mail, or email (e.g., any online interaction)?"); + + b.Property("FRIENDS") + .HasColumnType("int") + .HasComment("20. I feel like I don't have enough friends"); + + b.Property("FRMDATE") + .HasColumnType("datetime2") + .HasColumnName("FRMDATE") + .HasColumnOrder(3); + + b.Property("GUARD2EDU") + .HasColumnType("int") + .HasComment("17. If there was a second person who raised you (e.g., your mother, father, grandmother, etc.?), what was that person's highest level of education completed?"); + + b.Property("GUARD2REL") + .HasColumnType("int") + .HasComment("17a. What was this second person's relationship to you (if applicable)?"); + + b.Property("GUARD2RELX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("17a1. Specify other relationship"); + + b.Property("GUARDEDU") + .HasColumnType("int") + .HasComment("16. Thinking of the person who raised you, what was their highest level of education completed?"); + + b.Property("GUARDREL") + .HasColumnType("int") + .HasComment("16a. What was this person's relationship to you?"); + + b.Property("GUARDRELX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("16a1. Specify other relationship"); + + b.Property("HEALTHACC") + .HasColumnType("int") + .HasComment("32. Overall, which of these describes your health insurance, access to healthcare services, and access to medications?"); + + b.Property("INCOMEYR") + .HasColumnType("int") + .HasComment("7. Which of these income groups represents your household income for the past year? Include income from all sources such as wages, salaries, social security or retirement benefits, help from relatives, rent from property, and so forth."); + + b.Property("INITIALS") + .IsRequired() + .HasMaxLength(3) + .HasColumnType("nvarchar(3)") + .HasColumnName("INITIALS") + .HasColumnOrder(4); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LANG") + .HasColumnType("int") + .HasColumnName("LANG") + .HasColumnOrder(5); + + b.Property("LESSCOURT") + .HasColumnType("int") + .HasComment("33. In your day-to-day life how often are you treated with less courtesy or respect than other people?"); + + b.Property("LESSMEDS") + .HasColumnType("int") + .HasComment("13. At any time, have you ended up taking less medication than was prescribed for you because of the cost?"); + + b.Property("LESSMEDSYR") + .HasColumnType("int") + .HasComment("14. In the last 12 months, have you ended up taking less medication than was prescribed for you because of the cost?"); + + b.Property("MISSEDFUP") + .HasColumnType("int") + .HasComment("30. In the past year, how often did you miss a follow-up medical appointment that was scheduled?"); + + b.Property("MISSPEOPLE") + .HasColumnType("int") + .HasComment("19. I miss having people around"); + + b.Property("MODE") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(6); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NOT") + .HasColumnType("int") + .HasColumnName("NOT") + .HasColumnOrder(9); + + b.Property("NOTSMART") + .HasColumnType("int") + .HasComment("35. In your day-to-day life how often do people act as if they think you are not smart?"); + + b.Property("OWNSCAR") + .HasColumnType("int") + .HasComment("1. Do you or someone in your household currently own a car?"); + + b.Property("PARENTCOMM") + .HasColumnType("int") + .HasComment("23. If your parents are still alive, how often do you have contact with them (including mother, father, mother-in-law, and father-in-law) either in person, by phone, mail, or email (e.g., any online interaction)?"); + + b.Property("PARTICIPATE") + .HasColumnType("int") + .HasComment("26. How often do you participate in activities outside the home (e.g., religious activities, educational activities, volunteer work, paid work, or activities with groups or organizations)?"); + + b.Property("POORMEDTRT") + .HasColumnType("int") + .HasComment("38. How frequently did you receive poorer service or treatment from doctors or in hospitals compared to other people?"); + + b.Property("POORSERV") + .HasColumnType("int") + .HasComment("34. In your day-to-day life how often do you receive poorer service than other people at restaurants or stores?"); + + b.Property("RMMODE") + .HasColumnType("int") + .HasColumnName("RMMODE") + .HasColumnOrder(8); + + b.Property("RMREAS") + .HasColumnType("int") + .HasColumnName("RMREASON") + .HasColumnOrder(7); + + b.Property("SAFECOMM") + .HasColumnType("int") + .HasComment("27b. How safe do you feel in your community (or neighborhood)?"); + + b.Property("SAFEHOME") + .HasColumnType("int") + .HasComment("27a. How safe do you feel in your home?"); + + b.Property("SCRIPTPROB") + .HasColumnType("int") + .HasComment("29. In the past year, how often did you experience challenges in filling a prescription?"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); + + b.Property("THREATENED") + .HasColumnType("int") + .HasComment("37. In your day-to-day life how often are you threatened or harassed?"); + + b.Property("TRANSPROB") + .HasColumnType("int") + .HasComment("3. In the past 30 days, how often were you not able to leave the house when you wanted to because of a problem with transportation?"); + + b.Property("TRANSWORRY") + .HasColumnType("int") + .HasComment("4. In the past 30 days, how often did you worry about whether or not you would be able to get somewhere because of a problem with transportation?"); + + b.Property("TRSPACCESS") + .HasColumnType("int") + .HasComment("2. Do you have consistent access to transportation?"); + + b.Property("TRSPLONGER") + .HasColumnType("int") + .HasComment("5. In the past 30 days, how often did it take you longer to get somewhere than it would have taken you if you had different transportation?"); + + b.Property("TRSPMED") + .HasColumnType("int") + .HasComment("6. In the past 30 days, how often has a lack of transportation kept you from medical appointments or from doing things needed for daily living?"); + + b.Property("VisitId") + .HasColumnType("int") + .HasColumnOrder(1); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_A1as"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.A2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId") + .HasColumnOrder(0); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("FRMDATE") + .HasColumnType("datetime2") + .HasColumnName("FRMDATE") + .HasColumnOrder(3); + + b.Property("INCNTFRQ") + .HasColumnType("int"); + + b.Property("INCNTMDX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("INCNTMOD") + .HasColumnType("int"); + + b.Property("INCNTTIM") + .HasColumnType("int"); + + b.Property("INITIALS") + .IsRequired() + .HasMaxLength(3) + .HasColumnType("nvarchar(3)") + .HasColumnName("INITIALS") + .HasColumnOrder(4); + + b.Property("INKNOWN") + .HasColumnType("int"); + + b.Property("INLIVWTH") + .HasColumnType("int"); + + b.Property("INMEMTEN") + .HasColumnType("int"); + + b.Property("INMEMTROUB") + .HasColumnType("int"); + + b.Property("INMEMWORS") + .HasColumnType("int"); + + b.Property("INRELTO") + .HasColumnType("int"); + + b.Property("INRELY") + .HasColumnType("int"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LANG") + .HasColumnType("int") + .HasColumnName("LANG") + .HasColumnOrder(5); + + b.Property("MODE") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(6); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NEWINF") + .HasColumnType("int"); + + b.Property("NOT") + .HasColumnType("int") + .HasColumnName("NOT") + .HasColumnOrder(9); + + b.Property("RMMODE") + .HasColumnType("int") + .HasColumnName("RMMODE") + .HasColumnOrder(8); + + b.Property("RMREAS") + .HasColumnType("int") + .HasColumnName("RMREASON") + .HasColumnOrder(7); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); + + b.Property("VisitId") + .HasColumnType("int") + .HasColumnOrder(1); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_A2s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.A3", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId") + .HasColumnOrder(0); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("AFFFAMM") + .HasColumnType("int"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DADAGEO") + .HasColumnType("int"); + + b.Property("DADDAGE") + .HasColumnType("int"); + + b.Property("DADETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b.Property("DADETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b.Property("DADMEVAL") + .HasColumnType("int"); + + b.Property("DADYOB") + .HasColumnType("int"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("FRMDATE") + .HasColumnType("datetime2") + .HasColumnName("FRMDATE") + .HasColumnOrder(3); + + b.Property("INITIALS") + .IsRequired() + .HasMaxLength(3) + .HasColumnType("nvarchar(3)") + .HasColumnName("INITIALS") + .HasColumnOrder(4); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("KIDS") + .HasColumnType("int"); + + b.Property("LANG") + .HasColumnType("int") + .HasColumnName("LANG") + .HasColumnOrder(5); + + b.Property("MODE") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(6); + + b.Property("MOMAGEO") + .HasColumnType("int"); + + b.Property("MOMDAGE") + .HasColumnType("int"); + + b.Property("MOMETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b.Property("MOMETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b.Property("MOMMEVAL") + .HasColumnType("int"); + + b.Property("MOMYOB") + .HasColumnType("int"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NOT") + .HasColumnType("int") + .HasColumnName("NOT") + .HasColumnOrder(9); + + b.Property("NWINFKID") + .HasColumnType("int"); + + b.Property("NWINFMUT") + .HasColumnType("int"); + + b.Property("NWINFSIB") + .HasColumnType("int"); + + b.Property("RMMODE") + .HasColumnType("int") + .HasColumnName("RMMODE") + .HasColumnOrder(8); + + b.Property("RMREAS") + .HasColumnType("int") + .HasColumnName("RMREASON") + .HasColumnOrder(7); + + b.Property("SIBS") + .HasColumnType("int"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); + + b.Property("VisitId") + .HasColumnType("int") + .HasColumnOrder(1); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_A3s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.A4", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId") + .HasColumnOrder(0); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("ANYMEDS") + .HasColumnType("int"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("FRMDATE") + .HasColumnType("datetime2") + .HasColumnName("FRMDATE") + .HasColumnOrder(3); + + b.Property("INITIALS") + .IsRequired() + .HasMaxLength(3) + .HasColumnType("nvarchar(3)") + .HasColumnName("INITIALS") + .HasColumnOrder(4); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LANG") + .HasColumnType("int") + .HasColumnName("LANG") + .HasColumnOrder(5); + + b.Property("MODE") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(6); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NOT") + .HasColumnType("int") + .HasColumnName("NOT") + .HasColumnOrder(9); + + b.Property("RMMODE") + .HasColumnType("int") + .HasColumnName("RMMODE") + .HasColumnOrder(8); + + b.Property("RMREAS") + .HasColumnType("int") + .HasColumnName("RMREASON") + .HasColumnOrder(7); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); + + b.Property("VisitId") + .HasColumnType("int") + .HasColumnOrder(1); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_A4s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.A4a", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId") + .HasColumnOrder(0); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("ADVERSEOTH") + .HasColumnType("bit"); + + b.Property("ADVERSEOTX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("ADVEVENT") + .HasColumnType("int"); + + b.Property("ARIAE") + .HasColumnType("bit"); + + b.Property("ARIAH") + .HasColumnType("bit"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("FRMDATE") + .HasColumnType("datetime2") + .HasColumnName("FRMDATE") + .HasColumnOrder(3); + + b.Property("INITIALS") + .IsRequired() + .HasMaxLength(3) + .HasColumnType("nvarchar(3)") + .HasColumnName("INITIALS") + .HasColumnOrder(4); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LANG") + .HasColumnType("int") + .HasColumnName("LANG") + .HasColumnOrder(5); + + b.Property("MODE") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(6); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NOT") + .HasColumnType("int") + .HasColumnName("NOT") + .HasColumnOrder(9); + + b.Property("RMMODE") + .HasColumnType("int") + .HasColumnName("RMMODE") + .HasColumnOrder(8); + + b.Property("RMREAS") + .HasColumnType("int") + .HasColumnName("RMREASON") + .HasColumnOrder(7); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); + + b.Property("TRTBIOMARK") + .HasColumnType("int"); + + b.Property("VisitId") + .HasColumnType("int") + .HasColumnOrder(1); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_A4as"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.A5D2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId") + .HasColumnOrder(0); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("ALCBINGE") + .HasColumnType("int") + .HasComment("In the past 12 months, how often did the participant have six or more drinks containing alcohol in one day?"); + + b.Property("ALCDRINKS") + .HasColumnType("int") + .HasComment("On a day when the participant drinks alcoholic beverages, how many standard drinks does the participant typically consume?"); + + b.Property("ALCFREQYR") + .HasColumnType("int") + .HasComment("In the past 12 months, how often has the participant had a drink containing alcohol?"); + + b.Property("ANGIOCP") + .HasColumnType("int") + .HasComment("Carotid artery surgery or stenting?"); + + b.Property("ANXIETY") + .HasColumnType("int") + .HasComment("Anxiety disorder (DSM-5-TR criteria)"); + + b.Property("APNEA") + .HasColumnType("int") + .HasComment("Sleep apnea"); + + b.Property("APNEAORAL") + .HasColumnType("int") + .HasComment("Typical use of an oral device for sleep apnea at night over the past 12 months?"); + + b.Property("ARTHLOEX") + .HasColumnType("bit") + .HasComment("Lower extremity affected by arthritis"); + + b.Property("ARTHRIT") + .HasColumnType("int") + .HasComment("Arthritis"); + + b.Property("ARTHROSTEO") + .HasColumnType("bit") + .HasComment("Type of arthritis: Osteoarthritis"); + + b.Property("ARTHROTHR") + .HasColumnType("bit") + .HasComment("Type of arthritis: Other"); + + b.Property("ARTHRRHEUM") + .HasColumnType("bit") + .HasComment("Type of arthritis: Rheumatoid"); + + b.Property("ARTHSPIN") + .HasColumnType("bit") + .HasComment("Spine affected by arthritis"); + + b.Property("ARTHTYPUNK") + .HasColumnType("bit") + .HasComment("Type of arthritis: Unknown"); + + b.Property("ARTHTYPX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("Specify other type of arthritis"); + + b.Property("ARTHUNK") + .HasColumnType("bit") + .HasComment("Region affected by arthritis unknown"); + + b.Property("ARTHUPEX") + .HasColumnType("bit") + .HasComment("Upper extremity affected by arthritis"); + + b.Property("B12DEF") + .HasColumnType("int") + .HasComment("B12 deficiency"); + + b.Property("BCENDAGE") + .HasColumnType("int") + .HasComment("Age at last use of birth control pills"); + + b.Property("BCPILLS") + .HasColumnType("int") + .HasComment("Has the participant ever taken birth control pills?"); + + b.Property("BCPILLSYR") + .HasColumnType("int") + .HasComment("Total number of years participant has taken birth control pills"); + + b.Property("BCSTARTAGE") + .HasColumnType("int") + .HasComment("Age at first use of birth control pills"); + + b.Property("BIPOLAR") + .HasColumnType("int") + .HasComment("Bipolar disorder(DSM - 5 - TR criteria)"); + + b.Property("BYPASSAGE") + .HasColumnType("int") + .HasComment("Age at most recent coronary artery bypass surgery"); + + b.Property("CANCBLOOD") + .HasColumnType("bit") + .HasComment("Primary site of cancer: Blood"); + + b.Property("CANCBONE") + .HasColumnType("bit") + .HasComment("Type of cancer treatment: Bone marrow transplant"); + + b.Property("CANCBREAST") + .HasColumnType("bit") + .HasComment("Primary site of cancer: Breast"); + + b.Property("CANCCHEMO") + .HasColumnType("bit") + .HasComment("Type of cancer treatment: Chemotherapy"); + + b.Property("CANCCOLON") + .HasColumnType("bit") + .HasComment("Primary site of cancer: Colon"); + + b.Property("CANCERACTV") + .HasColumnType("int") + .HasComment("Cancer, primary or metastatic (Report all known diagnoses. Exclude non-melanoma skin cancer.)"); + + b.Property("CANCERAGE") + .HasColumnType("int") + .HasComment("Age at most recent cancer diagnosis"); + + b.Property("CANCERMETA") + .HasColumnType("bit") + .HasComment("Type of cancer: Metastatic"); + + b.Property("CANCERPRIM") + .HasColumnType("bit") + .HasComment("Type of cancer: Primary/non-metastatic"); + + b.Property("CANCERUNK") + .HasColumnType("bit") + .HasComment("Type of cancer: Unknown"); + + b.Property("CANCHORM") + .HasColumnType("bit") + .HasComment("Type of cancer treatment: Hormone therapy"); + + b.Property("CANCIMMUNO") + .HasColumnType("bit") + .HasComment("Type of cancer treatment: Immunotherapy"); + + b.Property("CANCLUNG") + .HasColumnType("bit") + .HasComment("Primary site of cancer: Lung"); + + b.Property("CANCMETBR") + .HasColumnType("bit") + .HasComment("Type of metastatic cancer: Metatstic to brain"); + + b.Property("CANCMETOTH") + .HasColumnType("bit") + .HasComment("Type of metastatic cancer: Metastatic to sites other than brain"); + + b.Property("CANCOTHER") + .HasColumnType("bit") + .HasComment("Primary site of cancer: Other"); + + b.Property("CANCOTHERX") + .HasColumnType("nvarchar(max)") + .HasComment("Specify other primary site of cancer"); + + b.Property("CANCPROST") + .HasColumnType("bit") + .HasComment("Primary site of cancer: Prostate"); + + b.Property("CANCRAD") + .HasColumnType("bit") + .HasComment("Type of cancer treatment: Radiation"); + + b.Property("CANCRESECT") + .HasColumnType("bit") + .HasComment("Type of cancer treatment: Surgical resection"); + + b.Property("CANCTROTH") + .HasColumnType("bit") + .HasComment("Type of cancer treatment: Other"); + + b.Property("CANCTROTHX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("Specify other type of cancer treatment"); + + b.Property("CANNABIS") + .HasColumnType("int") + .HasComment("In the past 12 months, how often has the participant consumed cannabis (edibles, smoked, or vaporized)?"); + + b.Property("CARDARRAGE") + .HasColumnType("int") + .HasComment("Age at most recent cardiac arrest"); + + b.Property("CARDARREST") + .HasColumnType("int") + .HasComment("Cardiac arrest (heart stopped)"); + + b.Property("CAROTIDAGE") + .HasColumnType("int") + .HasComment("Age at most recent carotid artery surgery or stenting"); + + b.Property("CBSTROKE") + .HasColumnType("int") + .HasComment("Stroke by history, not exam (imaging is not required)"); + + b.Property("CBTIA") + .HasColumnType("int") + .HasComment("Transient ischemic attack (TIA)"); + + b.Property("COVID19") + .HasColumnType("int") + .HasComment("COVID-19 infection"); + + b.Property("COVIDHOSP") + .HasColumnType("int") + .HasComment("COVID-19 infection requiring hospitalization?"); + + b.Property("CPAP") + .HasColumnType("int") + .HasComment("Typical use of breathing machine (e.g. CPAP) at night over the past 12 months"); + + b.Property("CVAFIB") + .HasColumnType("int") + .HasComment("Atrial fibrillation"); + + b.Property("CVANGIO") + .HasColumnType("int") + .HasComment("Coronary artery angioplasty / endarterectomy / stenting"); + + b.Property("CVBYPASS") + .HasColumnType("int") + .HasComment("Coronary artery bypass procedure"); + + b.Property("CVCHF") + .HasColumnType("int") + .HasComment("Congestive heart failure (including pulmonary edema)"); + + b.Property("CVHVALVE") + .HasColumnType("int") + .HasComment("Heart valve replacement or repair"); + + b.Property("CVOTHR") + .HasColumnType("int") + .HasComment("Other cardiovascular disease"); + + b.Property("CVOTHRX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("Specify other cardiovascular disease"); + + b.Property("CVPACDEF") + .HasColumnType("int") + .HasComment("Pacemaker and/or defibrillator implantation"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DEPRTREAT") + .HasColumnType("bit") + .HasComment("Choose if treated or untreated"); + + b.Property("DIABAGE") + .HasColumnType("int") + .HasComment("Age at diabetes diagnosis"); + + b.Property("DIABDIET") + .HasColumnType("bit") + .HasComment("Diabetes treated with: Diet"); + + b.Property("DIABETES") + .HasColumnType("int") + .HasComment("Diabetes"); + + b.Property("DIABGLP1") + .HasColumnType("bit") + .HasComment("GLP-1 receptor activators"); + + b.Property("DIABINS") + .HasColumnType("bit") + .HasComment("Diabetes treated with: Insulin"); + + b.Property("DIABMEDS") + .HasColumnType("bit") + .HasComment("Diabetes treated with: Oral medications"); + + b.Property("DIABRECACT") + .HasColumnType("bit") + .HasComment("Other non-insulin, non-GLP-1 receptor activator injection medication"); + + b.Property("DIABTYPE") + .HasColumnType("int") + .HasComment("Diabetes type"); + + b.Property("DIABUNK") + .HasColumnType("bit") + .HasComment("Diabetes treated with: Unknown"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("FIRSTTBI") + .HasColumnType("int") + .HasComment("Age of first head injury"); + + b.Property("FRMDATE") + .HasColumnType("datetime2") + .HasColumnName("FRMDATE") + .HasColumnOrder(3); + + b.Property("GENERALANX") + .HasColumnType("int") + .HasComment("Generalized Anxiety Disorder"); + + b.Property("HEADACHE") + .HasColumnType("int") + .HasComment("Chronic headaches"); + + b.Property("HEADIMP") + .HasColumnType("int") + .HasComment("epetitive head impacts (e.g. from contact sports, intimate partner violence, or military duty), regardless of whether it caused symptoms."); + + b.Property("HEADINJCON") + .HasColumnType("int") + .HasComment("After a head injury, what was the longest period..."); + + b.Property("HEADINJNUM") + .HasColumnType("int") + .HasComment("Total number of head injuries"); + + b.Property("HEADINJUNC") + .HasColumnType("int") + .HasComment("After a head injury, what was the longest period of time that the participant was unconscious?"); + + b.Property("HEADINJURY") + .HasColumnType("int") + .HasComment("Head injury (e.g. in a vehicle accident, being hit by an object...)"); + + b.Property("HIVAGE") + .HasColumnType("int") + .HasComment("Age at HIV diagnosis"); + + b.Property("HIVDIAG") + .HasColumnType("int") + .HasComment("Human Immunodeficiency Virus"); + + b.Property("HRT") + .HasColumnType("int") + .HasComment("Has the participant taken female hormone replacement pills or patches (e.g. estrogen)?"); + + b.Property("HRTATTACK") + .HasColumnType("int") + .HasComment("Heart attack (heart artery blockage)"); + + b.Property("HRTATTAGE") + .HasColumnType("int") + .HasComment("Age at most recent heart attack"); + + b.Property("HRTATTMULT") + .HasColumnType("int") + .HasComment("More than one heart attack?"); + + b.Property("HRTENDAGE") + .HasColumnType("int") + .HasComment("Age at last use of female hormone replacement pills"); + + b.Property("HRTSTRTAGE") + .HasColumnType("int") + .HasComment("Age at first use of female hormone replacement pills"); + + b.Property("HRTYEARS") + .HasColumnType("int") + .HasComment("Total number of years participant has taken female hormone replacement pills"); + + b.Property("HYDROCEPH") + .HasColumnType("int") + .HasComment("Normal-pressure hydrocephalus"); + + b.Property("HYPERCHAGE") + .HasColumnType("int") + .HasComment("Age at hypercholesterolemia diagnosis"); + + b.Property("HYPERCHO") + .HasColumnType("int") + .HasComment("Hypercholesterolemia (or taking medication for high cholesterol)"); + + b.Property("HYPERTAGE") + .HasColumnType("int") + .HasComment("Age at hypertension diagnosis"); + + b.Property("HYPERTEN") + .HasColumnType("int") + .HasComment("Hypertension (or taking medication for hypertension)"); + + b.Property("IMPAMFOOT") + .HasColumnType("bit") + .HasComment("Source of exposure for repeated hits to the head: American football"); + + b.Property("IMPASSAULT") + .HasColumnType("bit") + .HasComment("Source of exposure for repeated hits to the head: Physical assault"); + + b.Property("IMPBOXING") + .HasColumnType("bit") + .HasComment("Source of exposure for repeated hits to the head: Boxing or mixed martial arts"); + + b.Property("IMPHOCKEY") + .HasColumnType("bit") + .HasComment("Source of exposure for repeated hits to the head: Ice hockey"); + + b.Property("IMPIPV") + .HasColumnType("bit") + .HasComment("Source of exposure for repeated hits to the head: Intimate partner violence"); + + b.Property("IMPMILIT") + .HasColumnType("bit") + .HasComment("Source of exposure for repeated hits to the head: Military service"); + + b.Property("IMPOTHER") + .HasColumnType("bit") + .HasComment("Source of exposure for repeated hits to the head: Other cause"); + + b.Property("IMPOTHERX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("Specify other source of exposure for repeated hits to the head"); + + b.Property("IMPSOCCER") + .HasColumnType("bit") + .HasComment("Source of exposure for repeated hits to the head: Soccer"); + + b.Property("IMPSPORT") + .HasColumnType("bit") + .HasComment("Source of exposure for repeated hits to the head: Other contact sport"); + + b.Property("IMPYEARS") + .HasColumnType("int") + .HasComment("The total length of time in years that the participant was exposed to repeated hits to the head (e.g. playing American football for 7 years)"); + + b.Property("INCONTF") + .HasColumnType("int") + .HasComment("Incontinence—bowel (occurring at least weekly)"); + + b.Property("INCONTU") + .HasColumnType("int") + .HasComment("Incontinence—urinary (occurring at least weekly)"); + + b.Property("INITIALS") + .IsRequired() + .HasMaxLength(3) + .HasColumnType("nvarchar(3)") + .HasColumnName("INITIALS") + .HasColumnOrder(4); + + b.Property("INSOMN") + .HasColumnType("int") + .HasComment("Hyposomnia/Insomnia (occurring at least weekly or requiring medication)"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("KIDNEY") + .HasColumnType("int") + .HasComment("Chronic kidney disease"); + + b.Property("KIDNEYAGE") + .HasColumnType("int") + .HasComment("Age at chronic kidney disease diagnosis"); + + b.Property("LANG") + .HasColumnType("int") + .HasColumnName("LANG") + .HasColumnOrder(5); + + b.Property("LASTTBI") + .HasColumnType("int") + .HasComment("Age of most recent head injury"); + + b.Property("LIVER") + .HasColumnType("int") + .HasComment("Liver disease"); + + b.Property("LIVERAGE") + .HasColumnType("int") + .HasComment("Age at liver disease diagnosis"); + + b.Property("MAJORDEP") + .HasColumnType("int") + .HasComment("Major depressive disorder (DSM-5-TR criteria)"); + + b.Property("MENARCHE") + .HasColumnType("int") + .HasComment("How old was the participant when they had their first menstrual period?"); + + b.Property("MODE") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(6); + + b.Property("MS") + .HasColumnType("int") + .HasComment("Multiple sclerosis"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NOMENSAGE") + .HasColumnType("int") + .HasComment("How old was the participant when they had their last menstrual period?"); + + b.Property("NOMENSCHEM") + .HasColumnType("bit") + .HasComment("Participant has stopped having menstrual periods due to chemotherapy for cancer or another condition"); + + b.Property("NOMENSESTR") + .HasColumnType("bit") + .HasComment("Participant has stopped having menstrual periods due to anti-estrogen medication"); + + b.Property("NOMENSHORM") + .HasColumnType("bit") + .HasComment("Participant has stopped having menstrual periods due to hormonal supplements (e.g. the Pill, injections, Mirena, HRT)"); + + b.Property("NOMENSHYST") + .HasColumnType("bit") + .HasComment("Participant has stopped having menstrual periods due to hysterectomy (surgical removal of uterus)"); + + b.Property("NOMENSNAT") + .HasColumnType("bit") + .HasComment("Participant has stopped having menstrual periods due to natural menopause"); + + b.Property("NOMENSOTH") + .HasColumnType("bit") + .HasComment("Other reason participant has stopped having menstrual periods"); + + b.Property("NOMENSOTHX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("Specify other reason participant has stopped having menstrual periods"); + + b.Property("NOMENSRAD") + .HasColumnType("bit") + .HasComment("Participant has stopped having menstrual periods due to radiation treatment or other damage/injury to reproductive organs"); + + b.Property("NOMENSSURG") + .HasColumnType("bit") + .HasComment("Participant has stopped having menstrual periods due to surgical removal of both ovaries"); + + b.Property("NOMENSUNK") + .HasColumnType("bit") + .HasComment("Unsure of reason participant has stopped having menstrual periods"); + + b.Property("NOT") + .HasColumnType("int") + .HasColumnName("NOT") + .HasColumnOrder(9); + + b.Property("NPSYDEV") + .HasColumnType("int") + .HasComment("Developmental neuropsychiatric disorders"); + + b.Property("OCD") + .HasColumnType("int") + .HasComment("Obsessive-compulsive disorder (OCD)"); + + b.Property("OTHANXDIS") + .HasColumnType("int") + .HasComment("Other anxiety disorder"); + + b.Property("OTHANXDISX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("Specify other anxiety disorder"); + + b.Property("OTHCONDX") + .HasColumnType("nvarchar(max)") + .HasComment("Specify other medical conditions or procedures"); + + b.Property("OTHERCOND") + .HasColumnType("int") + .HasComment("Other medical conditions or procedures"); + + b.Property("OTHERDEP") + .HasColumnType("int") + .HasComment("Other specified depressive disorder (DSm-5-TR criteria)"); + + b.Property("OTHSLEEP") + .HasColumnType("int") + .HasComment("Other sleep disorder"); + + b.Property("OTHSLEEX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("Specify other sleep disorder"); + + b.Property("PACDEFAGE") + .HasColumnType("int") + .HasComment("Age at first pacemaker and/or defibrillator implantation"); + + b.Property("PACKSPER") + .HasColumnType("int") + .HasComment("Average number of packs smoked per day"); + + b.Property("PANICDIS") + .HasColumnType("int") + .HasComment("Panic Disorder"); + + b.Property("PD") + .HasColumnType("int") + .HasComment("Parkinson’s disease (PD)"); + + b.Property("PDAGE") + .HasColumnType("int") + .HasComment("Age at estimated PD symptom onset"); + + b.Property("PDOTHR") + .HasColumnType("int") + .HasComment("Other parkinsonism disorder (e.g., DLB)"); + + b.Property("PDOTHRAGE") + .HasColumnType("int") + .HasComment("Age at parkinsonism disorder diagnosis"); + + b.Property("PSYCDIS") + .HasColumnType("int") + .HasComment("Other psychiatric disorders"); + + b.Property("PSYCDISX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("Specify other psychiatric disorders"); + + b.Property("PTSD") + .HasColumnType("int") + .HasComment("Post-traumatic stress disorder (PTSD) (DSM-5-TR criteria)"); + + b.Property("PULMONARY") + .HasColumnType("int") + .HasComment("Asthma/COPD/pulmonary disease"); + + b.Property("PVD") + .HasColumnType("int") + .HasComment("Peripheral vascular disease"); + + b.Property("PVDAGE") + .HasColumnType("int") + .HasComment("Age at peripheral vascular disease diagnosis"); + + b.Property("QUITSMOK") + .HasColumnType("int") + .HasComment("If the participant quit smoking, specify the age at which they last smoked (i.e., quit)"); + + b.Property("RBD") + .HasColumnType("int") + .HasComment("REM sleep behavior disorder"); + + b.Property("RMMODE") + .HasColumnType("int") + .HasColumnName("RMMODE") + .HasColumnOrder(8); + + b.Property("RMREAS") + .HasColumnType("int") + .HasColumnName("RMREASON") + .HasColumnOrder(7); + + b.Property("SCHIZ") + .HasColumnType("int") + .HasComment("Schizophrenia or other psychosis disorder (DSM-5-TR criteria)"); + + b.Property("SEIZAGE") + .HasColumnType("int") + .HasComment("Age at first seizure (excluding childhood febrile seizures)"); + + b.Property("SEIZNUM") + .HasColumnType("int") + .HasComment("How many seizures has the participant had in the past 12 months?"); + + b.Property("SEIZURES") + .HasColumnType("int") + .HasComment("Epilepsy and/or history of seizures (excluding childhood febrile seizures)"); + + b.Property("SMOKYRS") + .HasColumnType("int") + .HasComment("Total years smoked"); + + b.Property("STROKAGE") + .HasColumnType("int") + .HasComment("Age at most recent stroke"); + + b.Property("STROKMUL") + .HasColumnType("int") + .HasComment("More than one stroke?"); + + b.Property("STROKSTAT") + .HasColumnType("int") + .HasComment("What is status of stroke symptoms?"); + + b.Property("SUBSTPAST") + .HasColumnType("int") + .HasComment("Participant used substances including prescription or recreational drugs that caused significant impairment in work, legal, driving, or social areas prior to 12 months ago"); + + b.Property("SUBSTYEAR") + .HasColumnType("int") + .HasComment("Participant used substances including prescription or recreational drugs that caused significant impairment in work, legal, driving, or social areas within the past 12 months"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); + + b.Property("THYROID") + .HasColumnType("int") + .HasComment("Thyroid disease"); + + b.Property("TIAAGE") + .HasColumnType("int") + .HasComment("Age at most recent TIA"); + + b.Property("TOBAC100") + .HasColumnType("int") + .HasComment("Has participant smoked more than 100 cigarettes in their life?"); + + b.Property("TOBAC30") + .HasColumnType("int") + .HasComment("Has participant smoked within the last 30 days?"); + + b.Property("VALVEAGE") + .HasColumnType("int") + .HasComment("Age at most recent heart valve replacement or repair procedure"); + + b.Property("VisitId") + .HasColumnType("int") + .HasColumnOrder(1); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_A5D2s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.B1", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId") + .HasColumnOrder(0); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("BPDIASL1") + .HasColumnType("int") + .HasComment(" Participant blood pressure - Left arm: Diastolic Reading 1"); + + b.Property("BPDIASL2") + .HasColumnType("int") + .HasComment(" Participant blood pressure - Left arm: Diastolic Reading 2"); + + b.Property("BPDIASR1") + .HasColumnType("int") + .HasComment("Participant blood pressure - Right arm: Diastolic Reading 1"); + + b.Property("BPDIASR2") + .HasColumnType("int") + .HasComment("Participant blood pressure - Right arm: Diastolic Reading 2"); + + b.Property("BPSYSL1") + .HasColumnType("int") + .HasComment("Participant blood pressure - Left arm: Systolic Reading 1"); + + b.Property("BPSYSL2") + .HasColumnType("int") + .HasComment("Participant blood pressure - Left arm: Systolic Reading 2"); + + b.Property("BPSYSR1") + .HasColumnType("int") + .HasComment("Participant blood pressure - Right arm: Systolic Reading 1"); + + b.Property("BPSYSR2") + .HasColumnType("int") + .HasComment("Participant blood pressure - Right arm: Systolic Reading 2"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("FRMDATE") + .HasColumnType("datetime2") + .HasColumnName("FRMDATE") + .HasColumnOrder(3); + + b.Property("HEIGHT") + .HasColumnType("decimal(3,1)") + .HasComment("Participant height (inches)"); + + b.Property("HIP1") + .HasColumnType("int") + .HasComment("Hip circumference measurements (inches): Measurement 1"); + + b.Property("HIP2") + .HasColumnType("int") + .HasComment("Hip circumference measurements (inches): Measurement 2"); + + b.Property("HRATE") + .HasColumnType("int") + .HasComment("Participant resting heart rate (pulse)"); + + b.Property("INITIALS") + .IsRequired() + .HasMaxLength(3) + .HasColumnType("nvarchar(3)") + .HasColumnName("INITIALS") + .HasColumnOrder(4); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LANG") + .HasColumnType("int") + .HasColumnName("LANG") + .HasColumnOrder(5); + + b.Property("MODE") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(6); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NOT") + .HasColumnType("int") + .HasColumnName("NOT") + .HasColumnOrder(9); + + b.Property("RMMODE") + .HasColumnType("int") + .HasColumnName("RMMODE") + .HasColumnOrder(8); + + b.Property("RMREAS") + .HasColumnType("int") + .HasColumnName("RMREASON") + .HasColumnOrder(7); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); + + b.Property("VisitId") + .HasColumnType("int") + .HasColumnOrder(1); + + b.Property("WAIST1") + .HasColumnType("int") + .HasComment("Waist circumference measurements (inches): Measurement 1"); + + b.Property("WAIST2") + .HasColumnType("int") + .HasComment("Waist circumference measurements (inches): Measurement 2"); + + b.Property("WEIGHT") + .HasColumnType("int") + .HasComment("Participant weight (lbs.)"); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_B1s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.B3", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId") + .HasColumnOrder(0); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("ARISING") + .HasColumnType("int"); + + b.Property("ARISINGX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("BRADYKIN") + .HasColumnType("int"); + + b.Property("BRADYKIX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("FACEXP") + .HasColumnType("int"); + + b.Property("FACEXPX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("FRMDATE") + .HasColumnType("datetime2") + .HasColumnName("FRMDATE") + .HasColumnOrder(3); + + b.Property("GAIT") + .HasColumnType("int"); + + b.Property("GAITX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("HANDALTL") + .HasColumnType("int"); + + b.Property("HANDALTR") + .HasColumnType("int"); + + b.Property("HANDATLX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("HANDATRX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("HANDMOVL") + .HasColumnType("int"); + + b.Property("HANDMOVR") + .HasColumnType("int"); + + b.Property("HANDMVLX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("HANDMVRX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("INITIALS") + .IsRequired() + .HasMaxLength(3) + .HasColumnType("nvarchar(3)") + .HasColumnName("INITIALS") + .HasColumnOrder(4); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LANG") + .HasColumnType("int") + .HasColumnName("LANG") + .HasColumnOrder(5); + + b.Property("LEGLF") + .HasColumnType("int"); + + b.Property("LEGLFX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("LEGRT") + .HasColumnType("int"); + + b.Property("LEGRTX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("MODE") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(6); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NOT") + .HasColumnType("int") + .HasColumnName("NOT") + .HasColumnOrder(9); + + b.Property("PDNORMAL") + .HasColumnType("bit"); + + b.Property("POSSTAB") + .HasColumnType("int"); + + b.Property("POSSTABX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("POSTURE") + .HasColumnType("int"); + + b.Property("POSTUREX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("RIGDLOLF") + .HasColumnType("int"); + + b.Property("RIGDLOLX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("RIGDLORT") + .HasColumnType("int"); + + b.Property("RIGDLORX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("RIGDNECK") + .HasColumnType("int"); + + b.Property("RIGDNEX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("RIGDUPLF") + .HasColumnType("int"); + + b.Property("RIGDUPLX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("RIGDUPRT") + .HasColumnType("int"); + + b.Property("RIGDUPRX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("RMMODE") + .HasColumnType("int") + .HasColumnName("RMMODE") + .HasColumnOrder(8); + + b.Property("RMREAS") + .HasColumnType("int") + .HasColumnName("RMREASON") + .HasColumnOrder(7); + + b.Property("SPEECH") + .HasColumnType("int"); + + b.Property("SPEECHX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); + + b.Property("TAPSLF") + .HasColumnType("int"); + + b.Property("TAPSLFX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("TAPSRT") + .HasColumnType("int"); + + b.Property("TAPSRTX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("TOTALUPDRS") + .HasColumnType("int"); + + b.Property("TRACTLHD") + .HasColumnType("int"); + + b.Property("TRACTLHX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("TRACTRHD") + .HasColumnType("int"); + + b.Property("TRACTRHX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("TRESTFAC") + .HasColumnType("int"); + + b.Property("TRESTFAX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("TRESTLFT") + .HasColumnType("int"); + + b.Property("TRESTLFX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("TRESTLHD") + .HasColumnType("int"); + + b.Property("TRESTLHX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("TRESTRFT") + .HasColumnType("int"); + + b.Property("TRESTRFX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("TRESTRHD") + .HasColumnType("int"); + + b.Property("TRESTRHX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("VisitId") + .HasColumnType("int") + .HasColumnOrder(1); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_B3s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.B4", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId") + .HasColumnOrder(0); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CDRGLOB") + .HasColumnType("decimal(2,1)"); + + b.Property("CDRLANG") + .HasColumnType("decimal(2,1)"); + + b.Property("CDRSUM") + .HasColumnType("decimal(3,1)"); + + b.Property("COMMUN") + .HasColumnType("decimal(2,1)"); + + b.Property("COMPORT") + .HasColumnType("decimal(2,1)"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("FRMDATE") + .HasColumnType("datetime2") + .HasColumnName("FRMDATE") + .HasColumnOrder(3); + + b.Property("HOMEHOBB") + .HasColumnType("decimal(2,1)"); + + b.Property("INITIALS") + .IsRequired() + .HasMaxLength(3) + .HasColumnType("nvarchar(3)") + .HasColumnName("INITIALS") + .HasColumnOrder(4); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("JUDGMENT") + .HasColumnType("decimal(2,1)"); + + b.Property("LANG") + .HasColumnType("int") + .HasColumnName("LANG") + .HasColumnOrder(5); + + b.Property("MEMORY") + .HasColumnType("decimal(2,1)"); + + b.Property("MODE") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(6); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NOT") + .HasColumnType("int") + .HasColumnName("NOT") + .HasColumnOrder(9); + + b.Property("ORIENT") + .HasColumnType("decimal(2,1)"); + + b.Property("PERSCARE") + .HasColumnType("decimal(2,1)"); + + b.Property("RMMODE") + .HasColumnType("int") + .HasColumnName("RMMODE") + .HasColumnOrder(8); + + b.Property("RMREAS") + .HasColumnType("int") + .HasColumnName("RMREASON") + .HasColumnOrder(7); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); + + b.Property("VisitId") + .HasColumnType("int") + .HasColumnOrder(1); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_B4s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.B5", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId") + .HasColumnOrder(0); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("AGIT") + .HasColumnType("int"); + + b.Property("AGITSEV") + .HasColumnType("int"); + + b.Property("ANX") + .HasColumnType("int"); + + b.Property("ANXSEV") + .HasColumnType("int"); + + b.Property("APA") + .HasColumnType("int"); + + b.Property("APASEV") + .HasColumnType("int"); + + b.Property("APP") + .HasColumnType("int"); + + b.Property("APPSEV") + .HasColumnType("int"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DEL") + .HasColumnType("int"); + + b.Property("DELSEV") + .HasColumnType("int"); + + b.Property("DEPD") + .HasColumnType("int"); + + b.Property("DEPDSEV") + .HasColumnType("int"); + + b.Property("DISN") + .HasColumnType("int"); + + b.Property("DISNSEV") + .HasColumnType("int"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("ELAT") + .HasColumnType("int"); + + b.Property("ELATSEV") + .HasColumnType("int"); + + b.Property("FRMDATE") + .HasColumnType("datetime2") + .HasColumnName("FRMDATE") + .HasColumnOrder(3); + + b.Property("HALL") + .HasColumnType("int"); + + b.Property("HALLSEV") + .HasColumnType("int"); + + b.Property("INITIALS") + .IsRequired() + .HasMaxLength(3) + .HasColumnType("nvarchar(3)") + .HasColumnName("INITIALS") + .HasColumnOrder(4); + + b.Property("IRR") + .HasColumnType("int"); + + b.Property("IRRSEV") + .HasColumnType("int"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LANG") + .HasColumnType("int") + .HasColumnName("LANG") + .HasColumnOrder(5); + + b.Property("MODE") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(6); + + b.Property("MOT") + .HasColumnType("int"); + + b.Property("MOTSEV") + .HasColumnType("int"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NITE") + .HasColumnType("int"); + + b.Property("NITESEV") + .HasColumnType("int"); + + b.Property("NOT") + .HasColumnType("int") + .HasColumnName("NOT") + .HasColumnOrder(9); + + b.Property("NPIQINF") + .HasColumnType("int"); + + b.Property("NPIQINFX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("RMMODE") + .HasColumnType("int") + .HasColumnName("RMMODE") + .HasColumnOrder(8); + + b.Property("RMREAS") + .HasColumnType("int") + .HasColumnName("RMREASON") + .HasColumnOrder(7); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); + + b.Property("VisitId") + .HasColumnType("int") + .HasColumnOrder(1); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_B5s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.B6", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId") + .HasColumnOrder(0); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("AFRAID") + .HasColumnType("int"); + + b.Property("BETTER") + .HasColumnType("int"); + + b.Property("BORED") + .HasColumnType("int"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DROPACT") + .HasColumnType("int"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("EMPTY") + .HasColumnType("int"); + + b.Property("ENERGY") + .HasColumnType("int"); + + b.Property("FRMDATE") + .HasColumnType("datetime2") + .HasColumnName("FRMDATE") + .HasColumnOrder(3); + + b.Property("GDS") + .HasColumnType("int"); + + b.Property("HAPPY") + .HasColumnType("int"); + + b.Property("HELPLESS") + .HasColumnType("int"); + + b.Property("HOPELESS") + .HasColumnType("int"); + + b.Property("INITIALS") + .IsRequired() + .HasMaxLength(3) + .HasColumnType("nvarchar(3)") + .HasColumnName("INITIALS") + .HasColumnOrder(4); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LANG") + .HasColumnType("int") + .HasColumnName("LANG") + .HasColumnOrder(5); + + b.Property("MEMPROB") + .HasColumnType("int"); + + b.Property("MODE") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(6); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NOGDS") + .HasColumnType("int"); + + b.Property("NOT") + .HasColumnType("int") + .HasColumnName("NOT") + .HasColumnOrder(9); + + b.Property("RMMODE") + .HasColumnType("int") + .HasColumnName("RMMODE") + .HasColumnOrder(8); + + b.Property("RMREAS") + .HasColumnType("int") + .HasColumnName("RMREASON") + .HasColumnOrder(7); + + b.Property("SATIS") + .HasColumnType("int"); + + b.Property("SPIRITS") + .HasColumnType("int"); + + b.Property("STAYHOME") + .HasColumnType("int"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); + + b.Property("VisitId") + .HasColumnType("int") + .HasColumnOrder(1); + + b.Property("WONDRFUL") + .HasColumnType("int"); + + b.Property("WRTHLESS") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_B6s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.B7", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId") + .HasColumnOrder(0); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("BILLS") + .HasColumnType("int"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("EVENTS") + .HasColumnType("int"); + + b.Property("FRMDATE") + .HasColumnType("datetime2") + .HasColumnName("FRMDATE") + .HasColumnOrder(3); + + b.Property("GAMES") + .HasColumnType("int"); + + b.Property("INITIALS") + .IsRequired() + .HasMaxLength(3) + .HasColumnType("nvarchar(3)") + .HasColumnName("INITIALS") + .HasColumnOrder(4); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LANG") + .HasColumnType("int") + .HasColumnName("LANG") + .HasColumnOrder(5); + + b.Property("MEALPREP") + .HasColumnType("int"); + + b.Property("MODE") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(6); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NOT") + .HasColumnType("int") + .HasColumnName("NOT") + .HasColumnOrder(9); + + b.Property("PAYATTN") + .HasColumnType("int"); + + b.Property("REMDATES") + .HasColumnType("int"); + + b.Property("RMMODE") + .HasColumnType("int") + .HasColumnName("RMMODE") + .HasColumnOrder(8); + + b.Property("RMREAS") + .HasColumnType("int") + .HasColumnName("RMREASON") + .HasColumnOrder(7); + + b.Property("SHOPPING") + .HasColumnType("int"); + + b.Property("STOVE") + .HasColumnType("int"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); + + b.Property("TAXES") + .HasColumnType("int"); + + b.Property("TRAVEL") + .HasColumnType("int"); + + b.Property("VisitId") + .HasColumnType("int") + .HasColumnOrder(1); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_B7s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.B8", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId") + .HasColumnOrder(0); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("ALIENLIMB") + .HasColumnType("int"); + + b.Property("AMPMOTOR") + .HasColumnType("int"); + + b.Property("APHASIA") + .HasColumnType("int"); + + b.Property("APRAXGAZE") + .HasColumnType("int"); + + b.Property("APRAXSP") + .HasColumnType("int"); + + b.Property("AXIALRIG") + .HasColumnType("int"); + + b.Property("CHOREA") + .HasColumnType("int"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DYSARTH") + .HasColumnType("int"); + + b.Property("DYSTARM") + .HasColumnType("int"); + + b.Property("DYSTLEG") + .HasColumnType("int"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("FRMDATE") + .HasColumnType("datetime2") + .HasColumnName("FRMDATE") + .HasColumnOrder(3); + + b.Property("GAITABN") + .HasColumnType("int"); + + b.Property("GAITFIND") + .HasColumnType("int"); + + b.Property("GAITOTHRX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("HSPATNEG") + .HasColumnType("int"); + + b.Property("INITIALS") + .IsRequired() + .HasMaxLength(3) + .HasColumnType("nvarchar(3)") + .HasColumnName("INITIALS") + .HasColumnOrder(4); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LANG") + .HasColumnType("int") + .HasColumnName("LANG") + .HasColumnOrder(5); + + b.Property("LIMBAPRAX") + .HasColumnType("int"); + + b.Property("LIMBATAX") + .HasColumnType("int"); + + b.Property("LMNDIST") + .HasColumnType("int"); + + b.Property("MASKING") + .HasColumnType("int"); + + b.Property("MODE") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(6); + + b.Property("MYOCLON") + .HasColumnType("int"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NEUREXAM") + .HasColumnType("int"); + + b.Property("NORMNREXAM") + .HasColumnType("bit"); + + b.Property("NOT") + .HasColumnType("int") + .HasColumnName("NOT") + .HasColumnOrder(9); + + b.Property("OPTICATAX") + .HasColumnType("int"); + + b.Property("OTHERSIGN") + .HasColumnType("int"); + + b.Property("PARKSIGN") + .HasColumnType("int"); + + b.Property("POSTINST") + .HasColumnType("int"); + + b.Property("PSPOAGNO") + .HasColumnType("int"); + + b.Property("RIGIDARM") + .HasColumnType("int"); + + b.Property("RIGIDLEG") + .HasColumnType("int"); + + b.Property("RMMODE") + .HasColumnType("int") + .HasColumnName("RMMODE") + .HasColumnOrder(8); + + b.Property("RMREAS") + .HasColumnType("int") + .HasColumnName("RMREASON") + .HasColumnOrder(7); + + b.Property("SLOWINGFM") + .HasColumnType("int"); + + b.Property("SMTAGNO") + .HasColumnType("int"); + + b.Property("STOOPED") + .HasColumnType("int"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); + + b.Property("TREMKINE") + .HasColumnType("int"); + + b.Property("TREMPOST") + .HasColumnType("int"); + + b.Property("TREMREST") + .HasColumnType("int"); + + b.Property("UMNDIST") + .HasColumnType("int"); + + b.Property("UNISOMATO") + .HasColumnType("int"); + + b.Property("VFIELDCUT") + .HasColumnType("int"); + + b.Property("VHGAZEPAL") + .HasColumnType("int"); + + b.Property("VisitId") + .HasColumnType("int") + .HasColumnOrder(1); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_B8s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.B9", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId") + .HasColumnOrder(0); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("ALCUSE") + .HasColumnType("bit") + .HasComment("Alcohol use"); + + b.Property("BEAGGRS") + .HasColumnType("int") + .HasComment("Participant currently manifests meaningful change in behavior — Aggression"); + + b.Property("BEAGIT") + .HasColumnType("int") + .HasComment("Participant currently manifests meaningful change in behavior — Agitation"); + + b.Property("BEAHALL") + .HasColumnType("int") + .HasComment("Participant currently manifests meaningful change in behavior — Psychosis — Auditory hallucinations"); + + b.Property("BEAHCOMP") + .HasColumnType("int") + .HasComment("IF YES, do the auditory hallucinations include complex sounds like voices speaking words, or music?"); + + b.Property("BEAHSIMP") + .HasColumnType("int") + .HasComment("IF YES, do the auditory hallucinations include simple sounds like knocks or other simple sounds?"); + + b.Property("BEANGER") + .HasColumnType("int") + .HasComment("Participant currently manifests meaningful change in behavior — Explosive anger"); + + b.Property("BEANX") + .HasColumnType("int") + .HasComment("Participant currently manifests meaningful change in behavior — Anxiety"); + + b.Property("BEAPATHY") + .HasColumnType("int") + .HasComment("Participant currently manifests meaningful change in behavior — Apathy, withdrawal"); + + b.Property("BEDEL") + .HasColumnType("int") + .HasComment("Participant currently manifests meaningful change in behavior — Psychosis — Abnormal, false, or delusional beliefs"); + + b.Property("BEDEP") + .HasColumnType("int") + .HasComment("Participant currently manifests meaningful change in behavior — Depressed mood"); + + b.Property("BEDISIN") + .HasColumnType("int") + .HasComment("Participant currently manifests meaningful change in behavior — Disinhibition"); + + b.Property("BEEMPATH") + .HasColumnType("int") + .HasComment("Participant currently manifests meaningful change in behavior — Loss of empathy"); + + b.Property("BEEUPH") + .HasColumnType("int") + .HasComment("Participant currently manifests meaningful change in behavior - Euphoria"); + + b.Property("BEHAGE") + .HasColumnType("int") + .HasComment("If any of the mood-related behavioral symptoms in 12a-12f are present, at what age did they begin?"); + + b.Property("BEIRRIT") + .HasColumnType("int") + .HasComment("Participant currently manifests meaningful change in behavior — Irritability"); + + b.Property("BEMODE") + .HasColumnType("int") + .HasComment("Overall mode of onset for behavioral symptoms"); + + b.Property("BEMODEX") + .HasColumnType("nvarchar(max)") + .HasComment("Other mode of onset - specify"); + + b.Property("BEOBCOM") + .HasColumnType("int") + .HasComment("Participant currently manifests meaningful change in behavior — Obsessions/compulsions"); + + b.Property("BEOTHR") + .HasColumnType("int") + .HasComment("Other behavioral symptom"); + + b.Property("BEOTHRX") + .HasColumnType("nvarchar(max)") + .HasComment("Participant currently manifests meaningful change in behavior - Other, specify"); + + b.Property("BEPERCH") + .HasColumnType("int") + .HasComment("Participant currently manifests meaningful change in behavior — Personality change"); + + b.Property("BEREM") + .HasColumnType("int") + .HasComment("Participant currently manifests meaningful change in behavior — REM sleep behavior disorder"); + + b.Property("BEREMAGO") + .HasColumnType("int") + .HasComment("IF YES, at what age did the dream enactment behavior begin?"); + + b.Property("BEREMCONF") + .HasColumnType("int") + .HasComment("Was REM sleep behavior disorder confirmed by polysomnography?"); + + b.Property("BESUBAB") + .HasColumnType("int") + .HasComment("Participant currently manifests meaningful change in behavior - Substance use"); + + b.Property("BEVHALL") + .HasColumnType("int") + .HasComment("Participant currently manifests meaningful change in behavior — Psychosis — Visual hallucinations"); + + b.Property("BEVPATT") + .HasColumnType("int") + .HasComment("IF YES, do their hallucinations include patterns that are not definite objects, such as pixelation of flat uniform surfaces?"); + + b.Property("BEVWELL") + .HasColumnType("int") + .HasComment("IF YES, do their hallucinations include well formed and detailed images of objects or people, either as independent images or as part of other objects?"); + + b.Property("CANNABUSE") + .HasColumnType("bit") + .HasComment("Cannabis use"); + + b.Property("COCAINEUSE") + .HasColumnType("bit") + .HasComment("Cocaine use"); + + b.Property("COGAGE") + .HasColumnType("int") + .HasComment("If any of the cognitive-related behavioral symptoms in 9a-9h are present, at what age did they begin?"); + + b.Property("COGATTN") + .HasColumnType("int") + .HasComment("Indicate whether the participant currently is meaningfully impaired in attention/concentration"); + + b.Property("COGFLUC") + .HasColumnType("int") + .HasComment("Indicate whether the participant currently has fluctuating cognition"); + + b.Property("COGJUDG") + .HasColumnType("int") + .HasComment("Indicate whether the participant currently is meaningfully impaired in executive function (judgment, planning, and problem-solving)"); + + b.Property("COGLANG") + .HasColumnType("int") + .HasComment("Indicate whether the participant currently is meaningfully impaired in language"); + + b.Property("COGMEM") + .HasColumnType("int") + .HasComment("Indicate whether the participant currently is meaningfully impaired in memory."); + + b.Property("COGMODE") + .HasColumnType("int") + .HasComment("Indicate the mode of onset for the most prominent cognitive problem that is causing the participant's complaints and/or affecting the participant's function."); + + b.Property("COGMODEX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("Specify other mode of onset of cognitive symptoms"); + + b.Property("COGORI") + .HasColumnType("int") + .HasComment("Indicate whether the participant currently is meaningfully impaired in orientation."); + + b.Property("COGOTHR") + .HasColumnType("int") + .HasComment("Other cognitive impairment"); + + b.Property("COGOTHRX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("Specify other cognitive domains"); + + b.Property("COGVIS") + .HasColumnType("int") + .HasComment("Indicate whether the participant currently is meaningfully impaired in visuospatial function"); + + b.Property("COURSE") + .HasColumnType("int") + .HasComment("Overall course of decline of cognitive / behavorial / motor syndrome"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DECCLBE") + .HasColumnType("int") + .HasComment("Based on the clinician’s judgment, is the participant currently experiencing any kind of behavioral symptoms?"); + + b.Property("DECCLCOG") + .HasColumnType("bit") + .HasComment("Based on the clinician’s judgment, is the participant currently experiencing meaningful impairment in cognition?"); + + b.Property("DECCLIN") + .HasColumnType("bit") + .HasComment("Does the participant have any neuropsychiatric/behavioral symptoms or declines in any cognitive or motor domain?"); + + b.Property("DECCLMOT") + .HasColumnType("bit") + .HasComment("Based on the clinician’s judgment, is the participant currently experiencing any motor symptoms?"); + + b.Property("DECCOG") + .HasColumnType("int") + .HasComment("Does the participant report a decline in any cognitive domain (relative to stable baseline prior to onset of current syndrome)?"); + + b.Property("DECCOGIN") + .HasColumnType("int") + .HasComment("Does the co-participant report a decline in any cognitive domain (relative to stable baseline prior to onset of current syndrome)?"); + + b.Property("DECMOT") + .HasColumnType("int") + .HasComment("Does the participant report a decline in any motor domain (relative to stable baseline prior to onset of current syndrome)?"); + + b.Property("DECMOTIN") + .HasColumnType("int") + .HasComment("Does the co-participant report a change in any motor domain (relative to stable baseline prior to onset of current syndrome)?"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("FRMDATE") + .HasColumnType("datetime2") + .HasColumnName("FRMDATE") + .HasColumnOrder(3); + + b.Property("FRSTCHG") + .HasColumnType("int") + .HasComment("Indicate the predominant domain that was first recognized as changed in the participant"); + + b.Property("INITIALS") + .IsRequired() + .HasMaxLength(3) + .HasColumnType("nvarchar(3)") + .HasColumnName("INITIALS") + .HasColumnOrder(4); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LANG") + .HasColumnType("int") + .HasColumnName("LANG") + .HasColumnOrder(5); + + b.Property("MODE") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(6); + + b.Property("MOFACE") + .HasColumnType("int") + .HasComment("Indicate whether the participant currently has meaningful changes in motor function — Change in facial expression"); + + b.Property("MOFALLS") + .HasColumnType("int") + .HasComment("Indicate whether the participant currently has meaningful changes in motor function — Falls"); + + b.Property("MOGAIT") + .HasColumnType("int") + .HasComment("Indicate whether the participant currently has meaningful changes in motor function — Gait disorder"); + + b.Property("MOLIMB") + .HasColumnType("int") + .HasComment("Indicate whether the participant currently has meaningful changes in motor function — Limb weakness"); + + b.Property("MOMOALS") + .HasColumnType("int") + .HasComment("Were changes in motor function suggestive of amyotrophic lateral sclerosis?"); + + b.Property("MOMODE") + .HasColumnType("int") + .HasComment("Indicate the mode of onset for the most prominent motor problem that is causing the participant's complaints and/or affecting the participant's function."); + + b.Property("MOMODEX") + .HasColumnType("nvarchar(max)") + .HasComment("Indicate mode of onset for the most prominent motor problem that is causing the participant's complains and or affecting the participant's function - Other, specify"); + + b.Property("MOMOPARK") + .HasColumnType("int") + .HasComment("Were changes in motor function suggestive of parkinsonism?"); + + b.Property("MOSLOW") + .HasColumnType("int") + .HasComment("Indicate whether the participant currently has meaningful changes in motor function — Slowness"); + + b.Property("MOSPEECH") + .HasColumnType("int") + .HasComment("Indicate whether the participant currently has meaningful changes in motor function — Change in speech"); + + b.Property("MOTORAGE") + .HasColumnType("int") + .HasComment("If changes in motor function are present in 15a-15g, at what age did they begin?"); + + b.Property("MOTREM") + .HasColumnType("int") + .HasComment("Indicate whether the participant currently has meaningful changes in motor function — Tremor"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NOT") + .HasColumnType("int") + .HasColumnName("NOT") + .HasColumnOrder(9); + + b.Property("OPIATEUSE") + .HasColumnType("bit") + .HasComment("Opiate use"); + + b.Property("OTHSUBUSE") + .HasColumnType("bit") + .HasComment("Other substance use"); + + b.Property("OTHSUBUSEX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("Specify other substance use"); + + b.Property("PERCHAGE") + .HasColumnType("int") + .HasComment("If any of the personality-related behavioral symptoms in 12m-12r are present, at what age did they begin?"); + + b.Property("PSYCHAGE") + .HasColumnType("int") + .HasComment("If any of the psychosis and impulse control-related behavioral symptoms in 12h-12k are present, at what age did they begin?"); + + b.Property("PSYCHSYM") + .HasColumnType("int") + .HasComment("Does the participant report the development of any significant neuropsychiatric/behavioral symptoms (relative to stable baseline prior to onset of current syndrome)?"); + + b.Property("PSYCHSYMIN") + .HasColumnType("int") + .HasComment("Does the co-participant report the development of any significant neuropsychiatric/behavioral symptoms (relative to stable baseline prior to onset of current syndrome)?"); + + b.Property("RMMODE") + .HasColumnType("int") + .HasColumnName("RMMODE") + .HasColumnOrder(8); + + b.Property("RMREAS") + .HasColumnType("int") + .HasColumnName("RMREASON") + .HasColumnOrder(7); + + b.Property("SEDUSE") + .HasColumnType("bit") + .HasComment("Sedative/hypnotic use"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); + + b.Property("VisitId") + .HasColumnType("int") + .HasColumnOrder(1); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_B9s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.C1", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId") + .HasColumnOrder(0); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("ANIMALS") + .HasColumnType("int"); + + b.Property("BOSTON") + .HasColumnType("int"); + + b.Property("COGSTAT") + .HasColumnType("int"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DIGIB") + .HasColumnType("int"); + + b.Property("DIGIBLEN") + .HasColumnType("int"); + + b.Property("DIGIF") + .HasColumnType("int"); + + b.Property("DIGIFLEN") + .HasColumnType("int"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("FRMDATE") + .HasColumnType("datetime2") + .HasColumnName("FRMDATE") + .HasColumnOrder(3); + + b.Property("INITIALS") + .IsRequired() + .HasMaxLength(3) + .HasColumnType("nvarchar(3)") + .HasColumnName("INITIALS") + .HasColumnOrder(4); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LANG") + .HasColumnType("int") + .HasColumnName("LANG") + .HasColumnOrder(5); + + b.Property("LOGIDAY") + .HasColumnType("int"); + + b.Property("LOGIMEM") + .HasColumnType("int"); + + b.Property("LOGIMO") + .HasColumnType("int"); + + b.Property("LOGIPREV") + .HasColumnType("int"); + + b.Property("LOGIYR") + .HasColumnType("int"); + + b.Property("MEMTIME") + .HasColumnType("int"); + + b.Property("MEMUNITS") + .HasColumnType("int"); + + b.Property("MMSE") + .HasColumnType("int"); + + b.Property("MMSECOMP") + .HasColumnType("int"); + + b.Property("MMSEHEAR") + .HasColumnType("int"); + + b.Property("MMSELAN") + .HasColumnType("int"); + + b.Property("MMSELANX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("MMSELOC") + .HasColumnType("int"); + + b.Property("MMSEORDA") + .HasColumnType("int"); + + b.Property("MMSEORLO") + .HasColumnType("int"); + + b.Property("MMSEREAS") + .HasColumnType("int"); + + b.Property("MMSEVIS") + .HasColumnType("int"); + + b.Property("MODE") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(6); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NOT") + .HasColumnType("int") + .HasColumnName("NOT") + .HasColumnOrder(9); + + b.Property("NPSYCLOC") + .HasColumnType("int"); + + b.Property("NPSYLAN") + .HasColumnType("int"); + + b.Property("NPSYLANX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("PENTAGON") + .HasColumnType("int"); + + b.Property("RMMODE") + .HasColumnType("int") + .HasColumnName("RMMODE") + .HasColumnOrder(8); + + b.Property("RMREAS") + .HasColumnType("int") + .HasColumnName("RMREASON") + .HasColumnOrder(7); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); + + b.Property("TRAILA") + .HasColumnType("int"); + + b.Property("TRAILALI") + .HasColumnType("int"); + + b.Property("TRAILARR") + .HasColumnType("int"); + + b.Property("TRAILB") + .HasColumnType("int"); + + b.Property("TRAILBLI") + .HasColumnType("int"); + + b.Property("TRAILBRR") + .HasColumnType("int"); + + b.Property("UDSBENRS") + .HasColumnType("int"); + + b.Property("UDSBENTC") + .HasColumnType("int"); + + b.Property("UDSBENTD") + .HasColumnType("int"); + + b.Property("UDSVERFC") + .HasColumnType("int"); + + b.Property("UDSVERFN") + .HasColumnType("int"); + + b.Property("UDSVERLC") + .HasColumnType("int"); + + b.Property("UDSVERLN") + .HasColumnType("int"); + + b.Property("UDSVERLR") + .HasColumnType("int"); + + b.Property("UDSVERNF") + .HasColumnType("int"); + + b.Property("UDSVERTE") + .HasColumnType("int"); + + b.Property("UDSVERTI") + .HasColumnType("int"); + + b.Property("UDSVERTN") + .HasColumnType("int"); + + b.Property("VEG") + .HasColumnType("int"); + + b.Property("VisitId") + .HasColumnType("int") + .HasColumnOrder(1); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_C1s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.C2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId") + .HasColumnOrder(0); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("ANIMALS") + .HasColumnType("int"); + + b.Property("CERAD1INT") + .HasColumnType("int"); + + b.Property("CERAD1READ") + .HasColumnType("int"); + + b.Property("CERAD1REC") + .HasColumnType("int"); + + b.Property("CERAD2INT") + .HasColumnType("int"); + + b.Property("CERAD2READ") + .HasColumnType("int"); + + b.Property("CERAD2REC") + .HasColumnType("int"); + + b.Property("CERAD3INT") + .HasColumnType("int"); + + b.Property("CERAD3READ") + .HasColumnType("int"); + + b.Property("CERAD3REC") + .HasColumnType("int"); + + b.Property("CERADDTI") + .HasColumnType("int"); + + b.Property("CERADJ6INT") + .HasColumnType("int"); + + b.Property("CERADJ6REC") + .HasColumnType("int"); + + b.Property("CERADJ7NO") + .HasColumnType("int"); + + b.Property("CERADJ7YES") + .HasColumnType("int"); + + b.Property("COGSTAT") + .HasColumnType("int"); + + b.Property("CRAFTCUE") + .HasColumnType("int"); + + b.Property("CRAFTDRE") + .HasColumnType("int"); + + b.Property("CRAFTDTI") + .HasColumnType("int"); + + b.Property("CRAFTDVR") + .HasColumnType("int"); + + b.Property("CRAFTURS") + .HasColumnType("int"); + + b.Property("CRAFTVRS") + .HasColumnType("int"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DIGBACCT") + .HasColumnType("int"); + + b.Property("DIGBACLS") + .HasColumnType("int"); + + b.Property("DIGFORCT") + .HasColumnType("int"); + + b.Property("DIGFORSL") + .HasColumnType("int"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("FRMDATE") + .HasColumnType("datetime2") + .HasColumnName("FRMDATE") + .HasColumnOrder(3); + + b.Property("INITIALS") + .IsRequired() + .HasMaxLength(3) + .HasColumnType("nvarchar(3)") + .HasColumnName("INITIALS") + .HasColumnOrder(4); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LANG") + .HasColumnType("int") + .HasColumnName("LANG") + .HasColumnOrder(5); + + b.Property("MINTPCNC") + .HasColumnType("int"); + + b.Property("MINTPCNG") + .HasColumnType("int"); + + b.Property("MINTSCNC") + .HasColumnType("int"); + + b.Property("MINTSCNG") + .HasColumnType("int"); + + b.Property("MINTTOTS") + .HasColumnType("int"); + + b.Property("MINTTOTW") + .HasColumnType("int"); + + b.Property("MOCAABST") + .HasColumnType("int"); + + b.Property("MOCACLOC") + .HasColumnType("int"); + + b.Property("MOCACLOH") + .HasColumnType("int"); + + b.Property("MOCACLON") + .HasColumnType("int"); + + b.Property("MOCACOMP") + .HasColumnType("int"); + + b.Property("MOCACUBE") + .HasColumnType("int"); + + b.Property("MOCADIGI") + .HasColumnType("int"); + + b.Property("MOCAFLUE") + .HasColumnType("int"); + + b.Property("MOCAHEAR") + .HasColumnType("int"); + + b.Property("MOCALAN") + .HasColumnType("int"); + + b.Property("MOCALANX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("MOCALETT") + .HasColumnType("int"); + + b.Property("MOCALOC") + .HasColumnType("int"); + + b.Property("MOCANAMI") + .HasColumnType("int"); + + b.Property("MOCAORCT") + .HasColumnType("int"); + + b.Property("MOCAORDT") + .HasColumnType("int"); + + b.Property("MOCAORDY") + .HasColumnType("int"); + + b.Property("MOCAORMO") + .HasColumnType("int"); + + b.Property("MOCAORPL") + .HasColumnType("int"); + + b.Property("MOCAORYR") + .HasColumnType("int"); + + b.Property("MOCAREAS") + .HasColumnType("int"); + + b.Property("MOCARECC") + .HasColumnType("int"); + + b.Property("MOCARECN") + .HasColumnType("int"); + + b.Property("MOCARECR") + .HasColumnType("int"); + + b.Property("MOCAREGI") + .HasColumnType("int"); + + b.Property("MOCAREPE") + .HasColumnType("int"); + + b.Property("MOCASER7") + .HasColumnType("int"); + + b.Property("MOCATOTS") + .HasColumnType("int"); + + b.Property("MOCATRAI") + .HasColumnType("int"); + + b.Property("MOCAVIS") + .HasColumnType("int"); + + b.Property("MOCBTOTS") + .HasColumnType("int"); + + b.Property("MODE") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(6); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NOT") + .HasColumnType("int") + .HasColumnName("NOT") + .HasColumnOrder(9); + + b.Property("NPSYCLOC") + .HasColumnType("int"); + + b.Property("NPSYLAN") + .HasColumnType("int"); + + b.Property("NPSYLANX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("OTRAILA") + .HasColumnType("int"); + + b.Property("OTRAILB") + .HasColumnType("int"); + + b.Property("OTRLALI") + .HasColumnType("int"); + + b.Property("OTRLARR") + .HasColumnType("int"); + + b.Property("OTRLBLI") + .HasColumnType("int"); + + b.Property("OTRLBRR") + .HasColumnType("int"); + + b.Property("RESPASST") + .HasColumnType("int"); + + b.Property("RESPDISN") + .HasColumnType("int"); + + b.Property("RESPDIST") + .HasColumnType("int"); + + b.Property("RESPEMOT") + .HasColumnType("int"); + + b.Property("RESPFATG") + .HasColumnType("int"); + + b.Property("RESPHEAR") + .HasColumnType("int"); + + b.Property("RESPINTR") + .HasColumnType("int"); + + b.Property("RESPOTH") + .HasColumnType("int"); + + b.Property("RESPOTHX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("RESPVAL") + .HasColumnType("int"); + + b.Property("REY1INT") + .HasColumnType("int"); + + b.Property("REY1REC") + .HasColumnType("int"); + + b.Property("REY2INT") + .HasColumnType("int"); + + b.Property("REY2REC") + .HasColumnType("int"); + + b.Property("REY3INT") + .HasColumnType("int"); + + b.Property("REY3REC") + .HasColumnType("int"); + + b.Property("REY4INT") + .HasColumnType("int"); + + b.Property("REY4REC") + .HasColumnType("int"); + + b.Property("REY5INT") + .HasColumnType("int"); + + b.Property("REY5REC") + .HasColumnType("int"); + + b.Property("REY6INT") + .HasColumnType("int"); + + b.Property("REY6REC") + .HasColumnType("int"); + + b.Property("REYBINT") + .HasColumnType("int"); + + b.Property("REYBREC") + .HasColumnType("int"); + + b.Property("REYDINT") + .HasColumnType("int"); + + b.Property("REYDREC") + .HasColumnType("int"); + + b.Property("REYDTI") + .HasColumnType("int"); + + b.Property("REYFPOS") + .HasColumnType("int"); + + b.Property("REYMETHOD") + .HasColumnType("int"); + + b.Property("REYTCOR") + .HasColumnType("int"); + + b.Property("RMMODE") + .HasColumnType("int") + .HasColumnName("RMMODE") + .HasColumnOrder(8); + + b.Property("RMREAS") + .HasColumnType("int") + .HasColumnName("RMREASON") + .HasColumnOrder(7); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); + + b.Property("TRAILA") + .HasColumnType("int"); + + b.Property("TRAILALI") + .HasColumnType("int"); + + b.Property("TRAILARR") + .HasColumnType("int"); + + b.Property("TRAILB") + .HasColumnType("int"); + + b.Property("TRAILBLI") + .HasColumnType("int"); + + b.Property("TRAILBRR") + .HasColumnType("int"); + + b.Property("UDSBENRS") + .HasColumnType("int"); + + b.Property("UDSBENTC") + .HasColumnType("int"); + + b.Property("UDSBENTD") + .HasColumnType("int"); + + b.Property("UDSVERFC") + .HasColumnType("int"); + + b.Property("UDSVERFN") + .HasColumnType("int"); + + b.Property("UDSVERLC") + .HasColumnType("int"); + + b.Property("UDSVERLN") + .HasColumnType("int"); + + b.Property("UDSVERLR") + .HasColumnType("int"); + + b.Property("UDSVERNF") + .HasColumnType("int"); + + b.Property("UDSVERTE") + .HasColumnType("int"); + + b.Property("UDSVERTI") + .HasColumnType("int"); + + b.Property("UDSVERTN") + .HasColumnType("int"); + + b.Property("VEG") + .HasColumnType("int"); + + b.Property("VERBALTEST") + .HasColumnType("int"); + + b.Property("VNTPCNC") + .HasColumnType("int"); + + b.Property("VNTTOTW") + .HasColumnType("int"); + + b.Property("VisitId") + .HasColumnType("int") + .HasColumnOrder(1); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_C2s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.D1a", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId") + .HasColumnOrder(0); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("ALCDEM") + .HasColumnType("bit") + .HasComment("27. Cognitive impairment due to alcohol abuse (present)"); + + b.Property("ALCDEMIF") + .HasColumnType("int") + .HasComment("27a. Cognitive impairment due to alcohol abuse (primary/contributing/non-contributing)"); + + b.Property("AMNDEM") + .HasColumnType("bit") + .HasComment("8a. Amnestic predominant syndrome"); + + b.Property("ANXIET") + .HasColumnType("bit") + .HasComment("14. Anxiety disorder (present)"); + + b.Property("ANXIETIF") + .HasColumnType("int") + .HasComment("14a. Anxiety disorder (primary/contributing/non-contributing)"); + + b.Property("APNEADX") + .HasColumnType("bit") + .HasComment("25. Sleep apnea (i.e., obstructive, central, mixed or complex sleep apnea) (present)"); + + b.Property("APNEADXIF") + .HasColumnType("int") + .HasComment("25a. Sleep apnea (i.e., obstructive, central, mixed or complex sleep apnea) (primary/contributing/non-contributing)"); + + b.Property("BDOMAFREG") + .HasColumnType("int") + .HasComment("7b. MBI affected domains - Affective regulation"); + + b.Property("BDOMIMP") + .HasColumnType("int") + .HasComment("7c. MBI affected domains - Impulse control"); + + b.Property("BDOMMOT") + .HasColumnType("int") + .HasComment("7a. MBI affected domains - Motivation"); + + b.Property("BDOMSOCIAL") + .HasColumnType("int") + .HasComment("7d. MBI affected domains - Social appropriateness"); + + b.Property("BDOMTHTS") + .HasColumnType("int") + .HasComment("7e. MBI affected domains - Thought content/perception"); + + b.Property("BIPOLDIF") + .HasColumnType("int") + .HasComment("12a. Bipolar disorder (primary/contributing/non-contributing)"); + + b.Property("BIPOLDX") + .HasColumnType("bit") + .HasComment("12. Bipolar disorder (present)"); + + b.Property("CBSSYN") + .HasColumnType("bit") + .HasComment("8j. Corticobasal syndrome (CBS)"); + + b.Property("CDOMAPRAX") + .HasColumnType("bit") + .HasComment("6g. Dementia and MCI affected domains - Apraxia"); + + b.Property("CDOMATTN") + .HasColumnType("bit") + .HasComment("6c. Dementia and MCI affected domains - Attention"); + + b.Property("CDOMBEH") + .HasColumnType("bit") + .HasComment("6f. Dementia and MCI affected domains - Behavioral"); + + b.Property("CDOMEXEC") + .HasColumnType("bit") + .HasComment("6d. Dementia and MCI affected domains - Executive"); + + b.Property("CDOMLANG") + .HasColumnType("bit") + .HasComment("6b. Dementia and MCI affected domains - Language"); + + b.Property("CDOMMEM") + .HasColumnType("bit") + .HasComment("6a. Dementia and MCI affected domains - Memory"); + + b.Property("CDOMVISU") + .HasColumnType("bit") + .HasComment("6e. Dementia and MCI affected domains - Visuospatial"); + + b.Property("COGOTH") + .HasColumnType("bit") + .HasComment("30. Cognitive impairment not otherwise specified (NOS) (present)"); + + b.Property("COGOTH2") + .HasColumnType("bit") + .HasComment("31. Cognitive impairment not otherwise specified (NOS) (present)"); + + b.Property("COGOTH2F") + .HasColumnType("int") + .HasComment("31a. Cognitive impairment NOS (primary/contributing/non-contributing)"); + + b.Property("COGOTH2X") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("31b. Cognitive impairment NOS (specify)"); + + b.Property("COGOTH3") + .HasColumnType("bit") + .HasComment("32. Cognitive impairment not otherwise specified (NOS) (present)"); + + b.Property("COGOTH3F") + .HasColumnType("int") + .HasComment("32a. Cognitive impairment NOS (primary/contributing/non-contributing)"); + + b.Property("COGOTH3X") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("32b. Cognitive impairment NOS (specify)"); + + b.Property("COGOTHIF") + .HasColumnType("int") + .HasComment("30a. Cognitive impairment NOS (primary/contributing/non-contributing)"); + + b.Property("COGOTHX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("30b. Cognitive impairment NOS (specify)"); + + b.Property("CTESYN") + .HasColumnType("bit") + .HasComment("8i. Traumatic encephalopathy syndrome"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DELIR") + .HasColumnType("bit") + .HasComment("17. Delirium (present)"); + + b.Property("DELIRIF") + .HasColumnType("int") + .HasComment("17a. Delirium (primary/contributing/non-contributing)"); + + b.Property("DEMENTED") + .HasColumnType("int") + .HasComment("3. Does the participant meet criteria for dementia?"); + + b.Property("DXMETHOD") + .HasColumnType("int") + .HasComment("1. Diagnosis method—responses in this form are based on diagnosis by a:"); + + b.Property("DYEXECSYN") + .HasColumnType("bit") + .HasComment("8b. Dysexecutive predominant syndrome"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("EPILEP") + .HasColumnType("bit") + .HasComment("20. Epilepsy (present)"); + + b.Property("EPILEPIF") + .HasColumnType("int") + .HasComment("20a. Epilepsy (primary/contributing/non-contributing)"); + + b.Property("FRMDATE") + .HasColumnType("datetime2") + .HasColumnName("FRMDATE") + .HasColumnOrder(3); + + b.Property("FTDSYN") + .HasColumnType("bit") + .HasComment("8e. Behavioral variant frontotemporal (bvFTD) syndrome"); + + b.Property("GENANX") + .HasColumnType("bit") + .HasComment("14b. Generalized Anxiety Disorder"); + + b.Property("HIV") + .HasColumnType("bit") + .HasComment("23. Human Immunodeficiency Virus (HIV) infection (present)"); + + b.Property("HIVIF") + .HasColumnType("int") + .HasComment("23a. Human Immunodeficiency Virus (HIV) infection (primary/contributing/non-contributing)"); + + b.Property("HYCEPH") + .HasColumnType("bit") + .HasComment("21. Normal-pressure hydrocephalus (present)"); + + b.Property("HYCEPHIF") + .HasColumnType("int") + .HasComment("21a. Normal-pressure hydrocephalus (primary/contributing/non-contributing)"); + + b.Property("IMPNOMCI") + .HasColumnType("bit") + .HasComment("5b. Cognitively impaired, not MCI"); + + b.Property("IMPNOMCICG") + .HasColumnType("bit") + .HasComment("5a2. Cognitively impaired, not MCI reason - Cognitive testing is abnormal but no clinical concern or functional decline (e.g., CDR SB=0 and FAS=0)"); + + b.Property("IMPNOMCIFU") + .HasColumnType("bit") + .HasComment("5a1. Cognitively impaired, not MCI reason - Evidence of functional impairment (e.g., CDR SB>0 and/or FAS>0), but available cognitive testing is judged to be normal"); + + b.Property("IMPNOMCIO") + .HasColumnType("bit") + .HasComment("5a4. Cognitively impaired, not MCI reason - Other"); + + b.Property("IMPNOMCIOX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("5a4a. Cognitively impaired, not MCI reason - Other (specify)"); + + b.Property("IMPNOMCLCD") + .HasColumnType("bit") + .HasComment("5a3. Cognitively impaired, not MCI reason - Longstanding cognitive difficulties, not representing a change from their usual function"); + + b.Property("IMPSUB") + .HasColumnType("bit") + .HasComment("28. Cognitive impairment due to substance use or abuse (present)"); + + b.Property("IMPSUBIF") + .HasColumnType("int") + .HasComment("28a. Cognitive impairment due to substance use or abuse (primary/contributing/non-contributing)"); + + b.Property("INITIALS") + .IsRequired() + .HasMaxLength(3) + .HasColumnType("nvarchar(3)") + .HasColumnName("INITIALS") + .HasColumnOrder(4); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LANG") + .HasColumnType("int") + .HasColumnName("LANG") + .HasColumnOrder(5); + + b.Property("LBDSYN") + .HasColumnType("bit") + .HasComment("8f. Lewy body syndrome"); + + b.Property("LBDSYNT") + .HasColumnType("int") + .HasComment("8f1. Lewy body syndrome - type"); + + b.Property("MAJDEPDIF") + .HasColumnType("int") + .HasComment("10a. Major depressive disorder (primary/contributing/non-contributing)"); + + b.Property("MAJDEPDX") + .HasColumnType("bit") + .HasComment("10. Major depressive disorder (present)"); + + b.Property("MBI") + .HasColumnType("int") + .HasComment("7. Does the participant meet criteria for MBI"); + + b.Property("MCI") + .HasColumnType("int") + .HasComment("4b. Does the participant meet criteria for MCI (amnestic or non-amnestic)?"); + + b.Property("MCICRITCLN") + .HasColumnType("bit") + .HasComment("4a1. MCI criteria - Clinical concern about decline in cognition compared to participant’s prior level of lifelong or usual cognitive function"); + + b.Property("MCICRITFUN") + .HasColumnType("bit") + .HasComment("4a3. MCI criteria - Largely preserved functional independence OR functional dependence that is not related to cognitive decline"); + + b.Property("MCICRITIMP") + .HasColumnType("bit") + .HasComment("4a2. MCI criteria - Impairment in one or more cognitive domains, compared to participant’s estimated prior level of lifelong or usual cognitive function, or supported by objective longitudinal neuropsychological evidence of decline"); + + b.Property("MEDS") + .HasColumnType("bit") + .HasComment("29. Cognitive impairment due to medications (present)"); + + b.Property("MEDSIF") + .HasColumnType("int") + .HasComment("29a. Cognitive impairment due to medications (primary/contributing/non-contributing)"); + + b.Property("MODE") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(6); + + b.Property("MSASYN") + .HasColumnType("bit") + .HasComment("8k. Multiple system atrophy (MSA) syndrome"); + + b.Property("MSASYNT") + .HasColumnType("int") + .HasComment("8k1. Multiple system atrophy (MSA) syndrome - type"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NAMNDEM") + .HasColumnType("bit") + .HasComment("8g. Non-amnestic multidomain syndrome, not PCA, PPA, bvFT, or DLB syndrome"); + + b.Property("NDEVDIS") + .HasColumnType("bit") + .HasComment("16. Developmental neuropsychiatric disorders (e.g., autism spectrum disorder (ASD), attention-deficit hyperactivity disorder (ADHD), dyslexia) (present)"); + + b.Property("NDEVDISIF") + .HasColumnType("int") + .HasComment("16a. Developmental neuropsychiatric disorders (e.g., autism spectrum disorder (ASD), attention-deficit hyperactivity disorder (primary/contributing/non-contributing)"); + + b.Property("NEOP") + .HasColumnType("bit") + .HasComment("22. CNS Neoplasm (present)"); + + b.Property("NEOPIF") + .HasColumnType("int") + .HasComment("22a. CNS Neoplasm (primary/contributing/non-contributing)"); + + b.Property("NEOPSTAT") + .HasColumnType("int") + .HasComment("22b. CNS Neoplasm - benign or malignant"); + + b.Property("NORMCOG") + .HasColumnType("int") + .HasComment("2. Does the participant have unimpaired cognition & behavior"); + + b.Property("NOT") + .HasColumnType("int") + .HasColumnName("NOT") + .HasColumnOrder(9); + + b.Property("OCDDX") + .HasColumnType("bit") + .HasComment("14d. Obsessive-compulsive disorder (OCD)"); + + b.Property("OTHANXD") + .HasColumnType("bit") + .HasComment("14e. Other anxiety disorder"); + + b.Property("OTHANXDX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("14e1. Other anxiety disorder (specify)"); + + b.Property("OTHCILLIF") + .HasColumnType("int") + .HasComment("26a. Cognitive impairment due to other neurologic, genetic, infectious conditions (not listed above), or systemic disease/medical illness (as indicated on Form A5/D2) (primary/contributing/non-contributing)"); + + b.Property("OTHCOGILL") + .HasColumnType("bit") + .HasComment("26. Cognitive impairment due to other neurologic, genetic, infectious conditions (not listed above), or systemic disease/medical illness (as indicated on Form A5/D2) (present)"); + + b.Property("OTHCOGILLX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("26b. Specify cognitive impairment due to other neurologic, genetic, infection conditions or systemic disease"); + + b.Property("OTHDEPDIF") + .HasColumnType("int") + .HasComment("11a. Other specified depressive disorder (primary/contributing/non-contributing)"); + + b.Property("OTHDEPDX") + .HasColumnType("bit") + .HasComment("11. Other specified depressive disorder (present)"); + + b.Property("OTHPSY") + .HasColumnType("bit") + .HasComment("18. Other psychiatric disorder (present)"); + + b.Property("OTHPSYIF") + .HasColumnType("int") + .HasComment("18a. Other psychiatric disorder (primary/contributing/non-contributing)"); + + b.Property("OTHPSYX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("18b. Other psychiatric disorder (specify)"); + + b.Property("OTHSYN") + .HasColumnType("bit") + .HasComment("8l. Other syndrome"); + + b.Property("OTHSYNX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("8l1. Other syndrome (specify)"); + + b.Property("PANICDISDX") + .HasColumnType("bit") + .HasComment("14c. Panic Disorder"); + + b.Property("PCA") + .HasColumnType("bit") + .HasComment("8c. Primary visual presentation (such as posterior cortical atrophy (PCA) syndrome)"); + + b.Property("POSTC19") + .HasColumnType("bit") + .HasComment("24. Post COVID-19 cognitive impairment (present)"); + + b.Property("POSTC19IF") + .HasColumnType("int") + .HasComment("24a. Post COVID-19 cognitive impairment (primary/contributing/non-contributing)"); + + b.Property("PPASYN") + .HasColumnType("bit") + .HasComment("8d. Primary progressive aphasia (PPA) syndrome"); + + b.Property("PPASYNT") + .HasColumnType("int") + .HasComment("8d1. Primary progressive aphasia (PPA) syndrome - type"); + + b.Property("PREDOMSYN") + .HasColumnType("int") + .HasComment("8. Is there a predominant clinical syndrome?"); + + b.Property("PSPSYN") + .HasColumnType("bit") + .HasComment("8h. Primary supranuclear palsy (PSP) syndrome"); + + b.Property("PSPSYNT") + .HasColumnType("int") + .HasComment("8h1. Primary supranuclear palsy (PSP) syndrome - type"); + + b.Property("PTSDDX") + .HasColumnType("bit") + .HasComment("15. Post-traumatic stress disorder (PTSD) (present)"); + + b.Property("PTSDDXIF") + .HasColumnType("int") + .HasComment("15a. Post-traumatic stress disorder (PTSD) (primary/contributing/non-contributing)"); + + b.Property("RMMODE") + .HasColumnType("int") + .HasColumnName("RMMODE") + .HasColumnOrder(8); + + b.Property("RMREAS") + .HasColumnType("int") + .HasColumnName("RMREASON") + .HasColumnOrder(7); + + b.Property("SCD") + .HasColumnType("int") + .HasComment("2a. Does the participant report 1) significant concerns about changes in cognition AND 2) no neuropsychological evidence of decline AND 3) no functional decline?"); + + b.Property("SCDDXCONF") + .HasColumnType("int") + .HasComment("2b. As a clinician, are you confident that the subjective cognitive decline is clinically meaningful?"); + + b.Property("SCHIZOIF") + .HasColumnType("int") + .HasComment("13a. Schizophrenia or other psychotic disorder (primary/contributing/non-contributing)"); + + b.Property("SCHIZOP") + .HasColumnType("bit") + .HasComment("13. Schizophrenia or other psychotic disorder (present)"); + + b.Property("SYNINFBIOM") + .HasColumnType("bit") + .HasComment("9c. Indicate the source(s) of information used to assign the clinical syndrome - Biomarkers (MRI, PET, CSF, plasma)"); + + b.Property("SYNINFCLIN") + .HasColumnType("bit") + .HasComment("9a. Indicate the source(s) of information used to assign the clinical syndrome - Clinical information (history, CDR)"); + + b.Property("SYNINFCTST") + .HasColumnType("bit") + .HasComment("9b. Indicate the source(s) of information used to assign the clinical syndrome - Cognitive testing"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); + + b.Property("TBIDX") + .HasColumnType("bit") + .HasComment("19. Traumatic brain injury (present)"); + + b.Property("TBIDXIF") + .HasColumnType("int") + .HasComment("19a. Traumatic brain injury (primary/contributing/non-contributing)"); + + b.Property("VisitId") + .HasColumnType("int") + .HasColumnOrder(1); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_D1as"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.D1b", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId") + .HasColumnOrder(0); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("ALZDIS") + .HasColumnType("bit") + .HasComment("12. Alzheimer's disease"); + + b.Property("ALZDISIF") + .HasColumnType("int") + .HasComment("12a. Primary, contributing, or non-contributing - Alzheimer's disease"); + + b.Property("AMYLPET") + .HasColumnType("int") + .HasComment("6a1. Elevated amyloid"); + + b.Property("AUTDOMMUT") + .HasColumnType("int") + .HasComment("11. Is there an autosomal dominant pathogenic variant to support an etiological diagnosis?"); + + b.Property("BIOMAD1") + .HasColumnType("int") + .HasComment("8a. Other biomarker modality - Consistent with AD"); + + b.Property("BIOMAD2") + .HasColumnType("int") + .HasComment("9a. Other biomarker modality - Consistent with AD"); + + b.Property("BIOMAD3") + .HasColumnType("int") + .HasComment("10a. Other biomarker modality - Consistent with AD"); + + b.Property("BIOMARKDX") + .HasColumnType("int") + .HasComment("1. Were any biomarker results used to support the current etiological diagnosis?"); + + b.Property("BIOMFTLD1") + .HasColumnType("int") + .HasComment("8b. Other biomarker modality - Consistent with FTLD"); + + b.Property("BIOMFTLD2") + .HasColumnType("int") + .HasComment("9b. Other biomarker modality - Consistent with FTLD"); + + b.Property("BIOMFTLD3") + .HasColumnType("int") + .HasComment("10b. Other biomarker modality - Consistent with FTLD"); + + b.Property("BIOMLBD1") + .HasColumnType("int") + .HasComment("8c. Other biomarker modality - Consistent with LBD"); + + b.Property("BIOMLBD2") + .HasColumnType("int") + .HasComment("9c. Other biomarker modality - Consistent with LBD"); + + b.Property("BIOMLBD3") + .HasColumnType("int") + .HasComment("10c. Other biomarker modality - Consistent with LBD"); + + b.Property("BIOMOTH1") + .HasColumnType("int") + .HasComment("8d. Other biomarker modality - Consistent with other etiology"); + + b.Property("BIOMOTH2") + .HasColumnType("int") + .HasComment("9d. Other biomarker modality - Consistent with other etiology"); + + b.Property("BIOMOTH3") + .HasColumnType("int") + .HasComment("10d. Other biomarker modality - Consistent with other etiology"); + + b.Property("BIOMOTHX1") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("8d1. Other biomarker modality - Consistent with other etiology (specify)"); + + b.Property("BIOMOTHX2") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("9d1. Other biomarker modality - Consistent with other etiology (specify)"); + + b.Property("BIOMOTHX3") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("10d1. Other biomarker modality - Consistent with other etiology (specify)"); + + b.Property("BLOODAD") + .HasColumnType("int") + .HasComment("3a. Blood-based biomarkers - Consistent with AD"); + + b.Property("BLOODFTLD") + .HasColumnType("int") + .HasComment("3b. Blood-based biomarkers - Consistent with FTLD"); + + b.Property("BLOODLBD") + .HasColumnType("int") + .HasComment("3c. Blood-based biomarkers - Consistent with LBD"); + + b.Property("BLOODOTH") + .HasColumnType("int") + .HasComment("3d. Blood-based biomarkers - Consistent with other etiology"); + + b.Property("BLOODOTHX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("3d1. Blood-based biomarkers - Consistent with other etiology (specify)"); + + b.Property("CAA") + .HasColumnType("bit") + .HasComment("21. Cerebral amyloid angiopathy"); + + b.Property("CAAIF") + .HasColumnType("int") + .HasComment("21a. Primary, contributing, or non-contributing - Cerebral amyloid angiopathy"); + + b.Property("CORT") + .HasColumnType("bit") + .HasComment("14b2. Corticobasal degeneration (CBD)"); + + b.Property("CORTIF") + .HasColumnType("int") + .HasComment("14b2a. Primary, contributing, or non-contributing - Corticobasal degeneration (CBD)"); + + b.Property("CSFAD") + .HasColumnType("int") + .HasComment("4a. CSF-based biomarkers - Consistent with AD"); + + b.Property("CSFFTLD") + .HasColumnType("int") + .HasComment("4b. CSF-based biomarkers - Consistent with FTLD"); + + b.Property("CSFLBD") + .HasColumnType("int") + .HasComment("4c. CSF-based biomarkers - Consistent with LBD"); + + b.Property("CSFOTH") + .HasColumnType("int") + .HasComment("4d. CSF-based biomarkers - Consistent with other etiology"); + + b.Property("CSFOTHX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("4d1. CSF-based biomarkers - Consistent with other etiology (specify)"); + + b.Property("CTE") + .HasColumnType("bit") + .HasComment("17. Chronic traumatic encephalopathy"); + + b.Property("CTEIF") + .HasColumnType("int") + .HasComment("17a. Primary, contributing, or non-contributing - Chronic traumatic encephalopathy"); + + b.Property("CVD") + .HasColumnType("bit") + .HasComment("15. Vascular brain injury (based on clinical and imaging evidence according to your Center's standards)"); + + b.Property("CVDIF") + .HasColumnType("int") + .HasComment("15a. Primary, contributing, or non-contributing - Vascular brain injury"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DATSCANDX") + .HasColumnType("int") + .HasComment("6c. Dopamine Transporter (DAT) Scan - Was DAT Scan data or information used to support an etiological diagnosis?"); + + b.Property("DOWNS") + .HasColumnType("bit") + .HasComment("18. Down syndrome"); + + b.Property("DOWNSIF") + .HasColumnType("int") + .HasComment("18a. Primary, contributing, or non-contributing - Down syndrome"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("FDGAD") + .HasColumnType("int") + .HasComment("6b1. FDG PET - Consistent with AD"); + + b.Property("FDGFTLD") + .HasColumnType("int") + .HasComment("6b2. FDG PET - Consistent with FTLD"); + + b.Property("FDGLBD") + .HasColumnType("int") + .HasComment("6b3. FDG PET - Consistent with LBD"); + + b.Property("FDGOTH") + .HasColumnType("int") + .HasComment("6b4. FDG PET - Consistent with other etiology"); + + b.Property("FDGOTHX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("6b4a. FDG PET - Consistent with other etiology (specify)"); + + b.Property("FDGPETDX") + .HasColumnType("int") + .HasComment("6b. FDG PET - Was FDG PET data or information used to support an etiological diagnosis?"); + + b.Property("FLUIDBIOM") + .HasColumnType("int") + .HasComment("2. Fluid Biomarkers - Were fluid biomarkers used for assessing the etiological diagnosis?"); + + b.Property("FRMDATE") + .HasColumnType("datetime2") + .HasColumnName("FRMDATE") + .HasColumnOrder(3); + + b.Property("FTLD") + .HasColumnType("bit") + .HasComment("14. Frontotemporal lobar degeneration"); + + b.Property("FTLDIF") + .HasColumnType("int") + .HasComment("14a. Primary, contributing, or non-contributing - Frontotemporal lobar degeneration"); + + b.Property("FTLDMO") + .HasColumnType("bit") + .HasComment("14b3. FTLD with motor neuron disease"); + + b.Property("FTLDMOIF") + .HasColumnType("int") + .HasComment("14b3a. Primary, contributing, or non-contributing - FTLD with motor neuron disease"); + + b.Property("FTLDNOIF") + .HasColumnType("int") + .HasComment("14b4a. Primary, contributing, or non-contributing - FTLD not otherwise specified (NOS)"); + + b.Property("FTLDNOS") + .HasColumnType("bit") + .HasComment("14b4. FTLD not otherwise specified (NOS)"); + + b.Property("FTLDSUBT") + .HasColumnType("int") + .HasComment("14c. FTLD subtype"); + + b.Property("FTLDSUBX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("14c1. Other FTLD subtype (specify)"); + + b.Property("HUNT") + .HasColumnType("bit") + .HasComment("19. Huntington's disease"); + + b.Property("HUNTIF") + .HasColumnType("int") + .HasComment("19a. Primary, contributing, or non-contributing - Huntington's disease"); + + b.Property("IMAGEWMH") + .HasColumnType("int") + .HasComment("7a3f. Extensive white-matter hyperintensity (CHS score 7-8+)"); + + b.Property("IMAGINGDX") + .HasColumnType("int") + .HasComment("5. Imaging - Was imaging used for assessing etiological diagnosis?"); + + b.Property("IMAGLAC") + .HasColumnType("int") + .HasComment("7a3b. Lacunar infarct(s)"); + + b.Property("IMAGLINF") + .HasColumnType("int") + .HasComment("7a3a. Large vessel infarct(s)"); + + b.Property("IMAGMACH") + .HasColumnType("int") + .HasComment("7a3c. Macrohemorrhage(s)"); + + b.Property("IMAGMICH") + .HasColumnType("int") + .HasComment("7a3d. Microhemorrhage(s)"); + + b.Property("IMAGMWMH") + .HasColumnType("int") + .HasComment("7a3e. Moderate white-matter hyperintensity (CHS score 5-6)"); + + b.Property("INITIALS") + .IsRequired() + .HasMaxLength(3) + .HasColumnType("nvarchar(3)") + .HasColumnName("INITIALS") + .HasColumnOrder(4); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LANG") + .HasColumnType("int") + .HasColumnName("LANG") + .HasColumnOrder(5); + + b.Property("LATE") + .HasColumnType("bit") + .HasComment("22. LATE: Limbic-predominant age-related TDP-43 encephalopathy"); + + b.Property("LATEIF") + .HasColumnType("int") + .HasComment("22a. Primary, contributing, or non-contributing - LATE"); + + b.Property("LBDIF") + .HasColumnType("int") + .HasComment("13a. Primary, contributing, or non-contributing - Lewy body disease"); + + b.Property("LBDIS") + .HasColumnType("bit") + .HasComment("13. Lewy body disease"); + + b.Property("MODE") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(6); + + b.Property("MSA") + .HasColumnType("bit") + .HasComment("16. Multiple system atrophy"); + + b.Property("MSAIF") + .HasColumnType("int") + .HasComment("16a. Primary, contributing, or non-contributing - Multiple system atrophy"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NOT") + .HasColumnType("int") + .HasColumnName("NOT") + .HasColumnOrder(9); + + b.Property("OTHBIOM1") + .HasColumnType("int") + .HasComment("8. Other biomarker modality - Was another biomarker modality used to support an etiological diagnosis?"); + + b.Property("OTHBIOM2") + .HasColumnType("int") + .HasComment("9. Other biomarker modality - Was another biomarker modality used to support an etiological diagnosis?"); + + b.Property("OTHBIOM3") + .HasColumnType("int") + .HasComment("10. Other biomarker modality - Was another biomarker modality used to support an etiological diagnosis?"); + + b.Property("OTHBIOMX1") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("8a1. Other biomarker modality - Was another biomarker modality used to support an etiological diagnosis? (specify) OTHBI"); + + b.Property("OTHBIOMX2") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("9a1. Other biomarker modality - Was another biomarker modality used to support an etiological diagnosis? (specify)"); + + b.Property("OTHBIOMX3") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("10a1. Other biomarker modality - Was another biomarker modality used to support an etiological diagnosis? (specify)"); + + b.Property("OTHCOG") + .HasColumnType("bit") + .HasComment("23. Other"); + + b.Property("OTHCOGIF") + .HasColumnType("int") + .HasComment("23a. Primary, contributing, or non-contributing - Other"); + + b.Property("OTHCOGX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("23b. Other (specify)"); + + b.Property("PETDX") + .HasColumnType("int") + .HasComment("6a. Tracer-based PET - Were tracer-based PET measures used in assessing an etiological diagnosis?"); + + b.Property("PRION") + .HasColumnType("bit") + .HasComment("20. Prion disease (CJD, other)"); + + b.Property("PRIONIF") + .HasColumnType("int") + .HasComment("20a. Primary, contributing, or non-contributing - Prion disease (CJD, other)"); + + b.Property("PSP") + .HasColumnType("bit") + .HasComment("14ba. Primary supranuclear palsy (PSP)"); + + b.Property("PSPIF") + .HasColumnType("int") + .HasComment("14b1a. Primary, contributing, or non-contributing - Primary supranuclear palsy (PSP)"); + + b.Property("RMMODE") + .HasColumnType("int") + .HasColumnName("RMMODE") + .HasColumnOrder(8); + + b.Property("RMREAS") + .HasColumnType("int") + .HasColumnName("RMREASON") + .HasColumnOrder(7); + + b.Property("STRUCTAD") + .HasColumnType("int") + .HasComment("7a1. Atrophy pattern consistent with AD"); + + b.Property("STRUCTCVD") + .HasColumnType("int") + .HasComment("7a3. Consistent with cerebrovascular disease (CVD)"); + + b.Property("STRUCTDX") + .HasColumnType("int") + .HasComment("7a. Structural Imaging (i.e., MRI or CT) - Was structural imaging data or information used to support an etiological diagnosis?"); + + b.Property("STRUCTFTLD") + .HasColumnType("int") + .HasComment("7a2. Atrophy pattern consistent with FTLD"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); + + b.Property("TAUPET") + .HasColumnType("int") + .HasComment("6a2. Elevated tau pathology"); + + b.Property("TRACERAD") + .HasColumnType("int") + .HasComment("6d1. Other tracer-based imaging - Consistent with AD"); + + b.Property("TRACERFTLD") + .HasColumnType("int") + .HasComment("6d2. Other tracer-based imaging - Consistent with FTLD"); + + b.Property("TRACERLBD") + .HasColumnType("int") + .HasComment("6d3. Other tracer-based imaging - Consistent with LBD"); + + b.Property("TRACEROTH") + .HasColumnType("int") + .HasComment("6d4. Other tracer-based imaging - Consistent with other etiology"); + + b.Property("TRACEROTHX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("6d4a. Other tracer-based imaging - Consistent with other etiology (specify)"); + + b.Property("TRACOTHDX") + .HasColumnType("int") + .HasComment("6d. Other tracer-based imaging - Were other tracer-based imaging used to support an etiological diagnosis?"); + + b.Property("TRACOTHDXX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasComment("6d1a. Other tracer-based imaging - Were other tracer-based imaging used to support an etiological diagnosis? (specify)"); + + b.Property("VisitId") + .HasColumnType("int") + .HasColumnOrder(1); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_D1bs"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.DrugCodeLookup", b => + { + b.Property("RxNormId") + .HasColumnType("int"); + + b.Property("BrandNames") + .HasMaxLength(500) + .HasColumnType("nvarchar(500)"); + + b.Property("DrugName") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("nvarchar(500)"); + + b.Property("IsOverTheCounter") + .HasColumnType("bit"); + + b.Property("IsPopular") + .HasColumnType("bit"); + + b.HasKey("RxNormId"); + + b.ToTable("DrugCodesLookup"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.FormStatus", b => + { + b.Property("VisitId") + .HasColumnType("int") + .HasColumnOrder(1); + + b.Property("Kind") + .HasMaxLength(3) + .HasColumnType("nvarchar(3)"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("FRMDATE") + .HasColumnType("datetime2") + .HasColumnName("FRMDATE") + .HasColumnOrder(3); + + b.Property("INITIALS") + .IsRequired() + .HasMaxLength(3) + .HasColumnType("nvarchar(3)") + .HasColumnName("INITIALS") + .HasColumnOrder(4); + + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId") + .HasColumnOrder(0); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LANG") + .HasColumnType("int") + .HasColumnName("LANG") + .HasColumnOrder(5); + + b.Property("MODE") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(6); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NOT") + .HasColumnType("int") + .HasColumnName("NOT") + .HasColumnOrder(9); + + b.Property("RMMODE") + .HasColumnType("int") + .HasColumnName("RMMODE") + .HasColumnOrder(8); + + b.Property("RMREAS") + .HasColumnType("int") + .HasColumnName("RMREASON") + .HasColumnOrder(7); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); + + b.HasKey("VisitId", "Kind"); + + b.ToTable((string)null); + + b.ToView("vw_FormStatuses", (string)null); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.M1", b => + { + b.Property("FormId") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("FormId")); + + b.Property("ACONSENT") + .HasColumnType("int"); + + b.Property("AUTOPSY") + .HasColumnType("int"); + + b.Property("CHANGEDY") + .HasColumnType("int"); + + b.Property("CHANGEMO") + .HasColumnType("int"); + + b.Property("CHANGEYR") + .HasColumnType("int"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DEATHDY") + .HasColumnType("int"); + + b.Property("DEATHMO") + .HasColumnType("int"); + + b.Property("DEATHYR") + .HasColumnType("int"); + + b.Property("DECEASED") + .HasColumnType("int"); + + b.Property("DISCDAY") + .HasColumnType("int"); + + b.Property("DISCMO") + .HasColumnType("int"); + + b.Property("DISCONT") + .HasColumnType("int"); + + b.Property("DISCYR") + .HasColumnType("int"); + + b.Property("DROPREAS") + .HasColumnType("int"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("FTLDDISC") + .HasColumnType("int"); + + b.Property("FTLDREAS") + .HasColumnType("int"); + + b.Property("FTLDREAX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("MILESTONETYPE") + .HasColumnType("int"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NURSEDY") + .HasColumnType("int"); + + b.Property("NURSEMO") + .HasColumnType("int"); + + b.Property("NURSEYR") + .HasColumnType("int"); + + b.Property("PROTOCOL") + .HasColumnType("int"); + + b.Property("ParticipationId") + .HasColumnType("int"); + + b.Property("RECOGIM") + .HasColumnType("int"); + + b.Property("REJOIN") + .HasColumnType("int"); + + b.Property("RENAVAIL") + .HasColumnType("int"); + + b.Property("RENURSE") + .HasColumnType("int"); + + b.Property("REPHYILL") + .HasColumnType("int"); + + b.Property("REREFUSE") + .HasColumnType("int"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); + + b.HasKey("FormId"); + + b.HasIndex("ParticipationId"); + + b.ToTable("tbl_M1s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.PacketSubmission", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("PacketSubmissionId") + .HasColumnOrder(0); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("ErrorCount") + .HasColumnType("int"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("SubmissionDate") + .HasColumnType("datetime2"); + + b.Property("VisitId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("VisitId"); + + b.ToTable("PacketSubmissions"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.PacketSubmissionError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("PacketSubmissionErrorId") + .HasColumnOrder(0); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("AssignedTo") + .HasColumnType("nvarchar(max)"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("FormKind") + .HasMaxLength(10) + .HasColumnType("nvarchar(10)"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("Level") + .HasColumnType("int"); + + b.Property("Message") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("nvarchar(500)"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("PacketSubmissionId") + .HasColumnType("int"); + + b.Property("ResolvedBy") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.HasIndex("PacketSubmissionId"); + + b.ToTable("PacketSubmissionErrors"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.Participation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("ParticipationId"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LegacyId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.ToTable("Participation"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.T1", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId") + .HasColumnOrder(0); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("FRMDATE") + .HasColumnType("datetime2") + .HasColumnName("FRMDATE") + .HasColumnOrder(3); + + b.Property("INITIALS") + .IsRequired() + .HasMaxLength(3) + .HasColumnType("nvarchar(3)") + .HasColumnName("INITIALS") + .HasColumnOrder(4); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LANG") + .HasColumnType("int") + .HasColumnName("LANG") + .HasColumnOrder(5); + + b.Property("MODE") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(6); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NOT") + .HasColumnType("int") + .HasColumnName("NOT") + .HasColumnOrder(9); + + b.Property("RMMODE") + .HasColumnType("int") + .HasColumnName("RMMODE") + .HasColumnOrder(8); + + b.Property("RMREAS") + .HasColumnType("int") + .HasColumnName("RMREASON") + .HasColumnOrder(7); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); + + b.Property("TELCOG") + .HasColumnType("int"); + + b.Property("TELCOV") + .HasColumnType("int"); + + b.Property("TELHOME") + .HasColumnType("int"); + + b.Property("TELILL") + .HasColumnType("int"); + + b.Property("TELINPER") + .HasColumnType("int"); + + b.Property("TELMILE") + .HasColumnType("int"); + + b.Property("TELMOD") + .HasColumnType("int"); + + b.Property("TELOTHR") + .HasColumnType("int"); + + b.Property("TELOTHRX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("TELREFU") + .HasColumnType("int"); + + b.Property("VisitId") + .HasColumnType("int") + .HasColumnOrder(1); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_T1s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.Visit", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("VisitId"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DSSDUB") + .HasColumnType("int"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("FORMVER") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("nvarchar(1)") + .HasColumnName("FORMVER"); + + b.Property("INITIALS") + .IsRequired() + .HasMaxLength(3) + .HasColumnType("nvarchar(3)"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("PACKET") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("nvarchar(1)") + .HasColumnName("PACKET"); + + b.Property("ParticipationId") + .HasColumnType("int"); + + b.Property("Status") + .HasColumnType("int"); + + b.Property("VISITNUM") + .HasColumnType("int") + .HasColumnName("VISITNUM"); + + b.Property("VISIT_DATE") + .HasColumnType("datetime2"); + + b.HasKey("Id"); + + b.HasIndex("ParticipationId", "VISITNUM") + .IsUnique(); + + b.ToTable("tbl_Visits"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.A1", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", null) + .WithOne("A1") + .HasForeignKey("UDS.Net.API.Entities.A1", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.A1a", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", null) + .WithOne("A1a") + .HasForeignKey("UDS.Net.API.Entities.A1a", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.A2", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", null) + .WithOne("A2") + .HasForeignKey("UDS.Net.API.Entities.A2", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.A3", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", null) + .WithOne("A3") + .HasForeignKey("UDS.Net.API.Entities.A3", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "KID1", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "KID10", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "KID11", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "KID12", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "KID13", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "KID14", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "KID15", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "KID2", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "KID3", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "KID4", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "KID5", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "KID6", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "KID7", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "KID8", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "KID9", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB1", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB10", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB11", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB12", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB13", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB14", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB15", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB16", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB17", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB18", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB19", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB2", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB20", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB3", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB4", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB5", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB6", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB7", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB8", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB9", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("ETPR") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("ETSEC") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b1.Property("MEVAL") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.Navigation("KID1") + .IsRequired(); + + b.Navigation("KID10") + .IsRequired(); + + b.Navigation("KID11") + .IsRequired(); + + b.Navigation("KID12") + .IsRequired(); + + b.Navigation("KID13") + .IsRequired(); + + b.Navigation("KID14") + .IsRequired(); + + b.Navigation("KID15") + .IsRequired(); + + b.Navigation("KID2") + .IsRequired(); + + b.Navigation("KID3") + .IsRequired(); + + b.Navigation("KID4") + .IsRequired(); + + b.Navigation("KID5") + .IsRequired(); + + b.Navigation("KID6") + .IsRequired(); + + b.Navigation("KID7") + .IsRequired(); + + b.Navigation("KID8") + .IsRequired(); + + b.Navigation("KID9") + .IsRequired(); + + b.Navigation("SIB1") + .IsRequired(); + + b.Navigation("SIB10") + .IsRequired(); + + b.Navigation("SIB11") + .IsRequired(); + + b.Navigation("SIB12") + .IsRequired(); + + b.Navigation("SIB13") + .IsRequired(); + + b.Navigation("SIB14") + .IsRequired(); + + b.Navigation("SIB15") + .IsRequired(); + + b.Navigation("SIB16") + .IsRequired(); + + b.Navigation("SIB17") + .IsRequired(); + + b.Navigation("SIB18") + .IsRequired(); + + b.Navigation("SIB19") + .IsRequired(); + + b.Navigation("SIB2") + .IsRequired(); + + b.Navigation("SIB20") + .IsRequired(); + + b.Navigation("SIB3") + .IsRequired(); + + b.Navigation("SIB4") + .IsRequired(); + + b.Navigation("SIB5") + .IsRequired(); + + b.Navigation("SIB6") + .IsRequired(); + + b.Navigation("SIB7") + .IsRequired(); + + b.Navigation("SIB8") + .IsRequired(); + + b.Navigation("SIB9") + .IsRequired(); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.A4", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", null) + .WithOne("A4") + .HasForeignKey("UDS.Net.API.Entities.A4", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID1", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID10", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID11", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID12", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID13", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID14", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID15", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID16", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID17", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID18", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID19", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID2", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID20", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID21", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID22", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID23", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID24", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID25", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID26", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID27", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID28", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID29", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID3", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID30", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID31", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID32", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID33", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID34", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID35", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID36", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID37", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID38", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID39", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID4", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID40", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID5", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID6", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID7", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID8", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4D", "RXNORMID9", b1 => + { + b1.Property("A4Id") + .HasColumnType("int"); + + b1.Property("RxNormId") + .HasColumnType("int"); + + b1.HasKey("A4Id"); + + b1.HasIndex("RxNormId"); + + b1.ToTable("tbl_A4s"); + + b1.WithOwner() + .HasForeignKey("A4Id"); + + b1.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("RxNormId"); + + b1.Navigation("DrugCode"); + }); + + b.Navigation("RXNORMID1") + .IsRequired(); + + b.Navigation("RXNORMID10") + .IsRequired(); + + b.Navigation("RXNORMID11") + .IsRequired(); + + b.Navigation("RXNORMID12") + .IsRequired(); + + b.Navigation("RXNORMID13") + .IsRequired(); + + b.Navigation("RXNORMID14") + .IsRequired(); + + b.Navigation("RXNORMID15") + .IsRequired(); + + b.Navigation("RXNORMID16") + .IsRequired(); + + b.Navigation("RXNORMID17") + .IsRequired(); + + b.Navigation("RXNORMID18") + .IsRequired(); + + b.Navigation("RXNORMID19") + .IsRequired(); + + b.Navigation("RXNORMID2") + .IsRequired(); + + b.Navigation("RXNORMID20") + .IsRequired(); + + b.Navigation("RXNORMID21") + .IsRequired(); + + b.Navigation("RXNORMID22") + .IsRequired(); + + b.Navigation("RXNORMID23") + .IsRequired(); + + b.Navigation("RXNORMID24") + .IsRequired(); + + b.Navigation("RXNORMID25") + .IsRequired(); + + b.Navigation("RXNORMID26") + .IsRequired(); + + b.Navigation("RXNORMID27") + .IsRequired(); + + b.Navigation("RXNORMID28") + .IsRequired(); + + b.Navigation("RXNORMID29") + .IsRequired(); + + b.Navigation("RXNORMID3") + .IsRequired(); + + b.Navigation("RXNORMID30") + .IsRequired(); + + b.Navigation("RXNORMID31") + .IsRequired(); + + b.Navigation("RXNORMID32") + .IsRequired(); + + b.Navigation("RXNORMID33") + .IsRequired(); + + b.Navigation("RXNORMID34") + .IsRequired(); + + b.Navigation("RXNORMID35") + .IsRequired(); + + b.Navigation("RXNORMID36") + .IsRequired(); + + b.Navigation("RXNORMID37") + .IsRequired(); + + b.Navigation("RXNORMID38") + .IsRequired(); + + b.Navigation("RXNORMID39") + .IsRequired(); + + b.Navigation("RXNORMID4") + .IsRequired(); + + b.Navigation("RXNORMID40") + .IsRequired(); + + b.Navigation("RXNORMID5") + .IsRequired(); + + b.Navigation("RXNORMID6") + .IsRequired(); + + b.Navigation("RXNORMID7") + .IsRequired(); + + b.Navigation("RXNORMID8") + .IsRequired(); + + b.Navigation("RXNORMID9") + .IsRequired(); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.A4a", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", null) + .WithOne("A4a") + .HasForeignKey("UDS.Net.API.Entities.A4a", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.OwnsOne("UDS.Net.API.Entities.A4aTreatment", "Treatment1", b1 => + { + b1.Property("A4aId") + .HasColumnType("int"); + + b1.Property("CARETRIAL") + .HasColumnType("int") + .HasColumnName("CARETRIAL1"); + + b1.Property("ENDMO") + .HasColumnType("int") + .HasColumnName("ENDMO1"); + + b1.Property("ENDYEAR") + .HasColumnType("int") + .HasColumnName("ENDYEAR1"); + + b1.Property("NCTNUM") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasColumnName("NCTNUM1"); + + b1.Property("STARTMO") + .HasColumnType("int") + .HasColumnName("STARTMO1"); + + b1.Property("STARTYEAR") + .HasColumnType("int") + .HasColumnName("STARTYEAR1"); + + b1.Property("TARGETAB") + .HasColumnType("bit") + .HasColumnName("TARGETAB1"); + + b1.Property("TARGETINF") + .HasColumnType("bit") + .HasColumnName("TARGETINF1"); + + b1.Property("TARGETOTH") + .HasColumnType("bit") + .HasColumnName("TARGETOTH1"); + + b1.Property("TARGETOTX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasColumnName("TARGETOTX1"); + + b1.Property("TARGETSYN") + .HasColumnType("bit") + .HasColumnName("TARGETSYN1"); + + b1.Property("TARGETTAU") + .HasColumnType("bit") + .HasColumnName("TARGETTAU1"); + + b1.Property("TRIALGRP") + .HasColumnType("int") + .HasColumnName("TRIALGRP1"); + + b1.Property("TRTTRIAL") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasColumnName("TRTTRIAL1"); + + b1.HasKey("A4aId"); + + b1.ToTable("tbl_A4as"); + + b1.WithOwner() + .HasForeignKey("A4aId"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4aTreatment", "Treatment2", b1 => + { + b1.Property("A4aId") + .HasColumnType("int"); + + b1.Property("CARETRIAL") + .HasColumnType("int") + .HasColumnName("CARETRIAL2"); + + b1.Property("ENDMO") + .HasColumnType("int") + .HasColumnName("ENDMO2"); + + b1.Property("ENDYEAR") + .HasColumnType("int") + .HasColumnName("ENDYEAR2"); + + b1.Property("NCTNUM") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasColumnName("NCTNUM2"); + + b1.Property("STARTMO") + .HasColumnType("int") + .HasColumnName("STARTMO2"); + + b1.Property("STARTYEAR") + .HasColumnType("int") + .HasColumnName("STARTYEAR2"); + + b1.Property("TARGETAB") + .HasColumnType("bit") + .HasColumnName("TARGETAB2"); + + b1.Property("TARGETINF") + .HasColumnType("bit") + .HasColumnName("TARGETINF2"); + + b1.Property("TARGETOTH") + .HasColumnType("bit") + .HasColumnName("TARGETOTH2"); + + b1.Property("TARGETOTX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasColumnName("TARGETOTX2"); + + b1.Property("TARGETSYN") + .HasColumnType("bit") + .HasColumnName("TARGETSYN2"); + + b1.Property("TARGETTAU") + .HasColumnType("bit") + .HasColumnName("TARGETTAU2"); + + b1.Property("TRIALGRP") + .HasColumnType("int") + .HasColumnName("TRIALGRP2"); + + b1.Property("TRTTRIAL") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasColumnName("TRTTRIAL2"); + + b1.HasKey("A4aId"); + + b1.ToTable("tbl_A4as"); + + b1.WithOwner() + .HasForeignKey("A4aId"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4aTreatment", "Treatment3", b1 => + { + b1.Property("A4aId") + .HasColumnType("int"); + + b1.Property("CARETRIAL") + .HasColumnType("int") + .HasColumnName("CARETRIAL3"); + + b1.Property("ENDMO") + .HasColumnType("int") + .HasColumnName("ENDMO3"); + + b1.Property("ENDYEAR") + .HasColumnType("int") + .HasColumnName("ENDYEAR3"); + + b1.Property("NCTNUM") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasColumnName("NCTNUM3"); + + b1.Property("STARTMO") + .HasColumnType("int") + .HasColumnName("STARTMO3"); + + b1.Property("STARTYEAR") + .HasColumnType("int") + .HasColumnName("STARTYEAR3"); + + b1.Property("TARGETAB") + .HasColumnType("bit") + .HasColumnName("TARGETAB3"); + + b1.Property("TARGETINF") + .HasColumnType("bit") + .HasColumnName("TARGETINF3"); + + b1.Property("TARGETOTH") + .HasColumnType("bit") + .HasColumnName("TARGETOTH3"); + + b1.Property("TARGETOTX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasColumnName("TARGETOTX3"); + + b1.Property("TARGETSYN") + .HasColumnType("bit") + .HasColumnName("TARGETSYN3"); + + b1.Property("TARGETTAU") + .HasColumnType("bit") + .HasColumnName("TARGETTAU3"); + + b1.Property("TRIALGRP") + .HasColumnType("int") + .HasColumnName("TRIALGRP3"); + + b1.Property("TRTTRIAL") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasColumnName("TRTTRIAL3"); + + b1.HasKey("A4aId"); + + b1.ToTable("tbl_A4as"); + + b1.WithOwner() + .HasForeignKey("A4aId"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4aTreatment", "Treatment4", b1 => + { + b1.Property("A4aId") + .HasColumnType("int"); + + b1.Property("CARETRIAL") + .HasColumnType("int") + .HasColumnName("CARETRIAL4"); + + b1.Property("ENDMO") + .HasColumnType("int") + .HasColumnName("ENDMO4"); + + b1.Property("ENDYEAR") + .HasColumnType("int") + .HasColumnName("ENDYEAR4"); + + b1.Property("NCTNUM") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasColumnName("NCTNUM4"); + + b1.Property("STARTMO") + .HasColumnType("int") + .HasColumnName("STARTMO4"); + + b1.Property("STARTYEAR") + .HasColumnType("int") + .HasColumnName("STARTYEAR4"); + + b1.Property("TARGETAB") + .HasColumnType("bit") + .HasColumnName("TARGETAB4"); + + b1.Property("TARGETINF") + .HasColumnType("bit") + .HasColumnName("TARGETINF4"); + + b1.Property("TARGETOTH") + .HasColumnType("bit") + .HasColumnName("TARGETOTH4"); + + b1.Property("TARGETOTX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasColumnName("TARGETOTX4"); + + b1.Property("TARGETSYN") + .HasColumnType("bit") + .HasColumnName("TARGETSYN4"); + + b1.Property("TARGETTAU") + .HasColumnType("bit") + .HasColumnName("TARGETTAU4"); + + b1.Property("TRIALGRP") + .HasColumnType("int") + .HasColumnName("TRIALGRP4"); + + b1.Property("TRTTRIAL") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasColumnName("TRTTRIAL4"); + + b1.HasKey("A4aId"); + + b1.ToTable("tbl_A4as"); + + b1.WithOwner() + .HasForeignKey("A4aId"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4aTreatment", "Treatment5", b1 => + { + b1.Property("A4aId") + .HasColumnType("int"); + + b1.Property("CARETRIAL") + .HasColumnType("int") + .HasColumnName("CARETRIAL5"); + + b1.Property("ENDMO") + .HasColumnType("int") + .HasColumnName("ENDMO5"); + + b1.Property("ENDYEAR") + .HasColumnType("int") + .HasColumnName("ENDYEAR5"); + + b1.Property("NCTNUM") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasColumnName("NCTNUM5"); + + b1.Property("STARTMO") + .HasColumnType("int") + .HasColumnName("STARTMO5"); + + b1.Property("STARTYEAR") + .HasColumnType("int") + .HasColumnName("STARTYEAR5"); + + b1.Property("TARGETAB") + .HasColumnType("bit") + .HasColumnName("TARGETAB5"); + + b1.Property("TARGETINF") + .HasColumnType("bit") + .HasColumnName("TARGETINF5"); + + b1.Property("TARGETOTH") + .HasColumnType("bit") + .HasColumnName("TARGETOTH5"); + + b1.Property("TARGETOTX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasColumnName("TARGETOTX5"); + + b1.Property("TARGETSYN") + .HasColumnType("bit") + .HasColumnName("TARGETSYN5"); + + b1.Property("TARGETTAU") + .HasColumnType("bit") + .HasColumnName("TARGETTAU5"); + + b1.Property("TRIALGRP") + .HasColumnType("int") + .HasColumnName("TRIALGRP5"); + + b1.Property("TRTTRIAL") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasColumnName("TRTTRIAL5"); + + b1.HasKey("A4aId"); + + b1.ToTable("tbl_A4as"); + + b1.WithOwner() + .HasForeignKey("A4aId"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4aTreatment", "Treatment6", b1 => + { + b1.Property("A4aId") + .HasColumnType("int"); + + b1.Property("CARETRIAL") + .HasColumnType("int") + .HasColumnName("CARETRIAL6"); + + b1.Property("ENDMO") + .HasColumnType("int") + .HasColumnName("ENDMO6"); + + b1.Property("ENDYEAR") + .HasColumnType("int") + .HasColumnName("ENDYEAR6"); + + b1.Property("NCTNUM") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasColumnName("NCTNUM6"); + + b1.Property("STARTMO") + .HasColumnType("int") + .HasColumnName("STARTMO6"); + + b1.Property("STARTYEAR") + .HasColumnType("int") + .HasColumnName("STARTYEAR6"); + + b1.Property("TARGETAB") + .HasColumnType("bit") + .HasColumnName("TARGETAB6"); + + b1.Property("TARGETINF") + .HasColumnType("bit") + .HasColumnName("TARGETINF6"); + + b1.Property("TARGETOTH") + .HasColumnType("bit") + .HasColumnName("TARGETOTH6"); + + b1.Property("TARGETOTX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasColumnName("TARGETOTX6"); + + b1.Property("TARGETSYN") + .HasColumnType("bit") + .HasColumnName("TARGETSYN6"); + + b1.Property("TARGETTAU") + .HasColumnType("bit") + .HasColumnName("TARGETTAU6"); + + b1.Property("TRIALGRP") + .HasColumnType("int") + .HasColumnName("TRIALGRP6"); + + b1.Property("TRTTRIAL") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasColumnName("TRTTRIAL6"); + + b1.HasKey("A4aId"); + + b1.ToTable("tbl_A4as"); + + b1.WithOwner() + .HasForeignKey("A4aId"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4aTreatment", "Treatment7", b1 => + { + b1.Property("A4aId") + .HasColumnType("int"); + + b1.Property("CARETRIAL") + .HasColumnType("int") + .HasColumnName("CARETRIAL7"); + + b1.Property("ENDMO") + .HasColumnType("int") + .HasColumnName("ENDMO7"); + + b1.Property("ENDYEAR") + .HasColumnType("int") + .HasColumnName("ENDYEAR7"); + + b1.Property("NCTNUM") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasColumnName("NCTNUM7"); + + b1.Property("STARTMO") + .HasColumnType("int") + .HasColumnName("STARTMO7"); + + b1.Property("STARTYEAR") + .HasColumnType("int") + .HasColumnName("STARTYEAR7"); + + b1.Property("TARGETAB") + .HasColumnType("bit") + .HasColumnName("TARGETAB7"); + + b1.Property("TARGETINF") + .HasColumnType("bit") + .HasColumnName("TARGETINF7"); + + b1.Property("TARGETOTH") + .HasColumnType("bit") + .HasColumnName("TARGETOTH7"); + + b1.Property("TARGETOTX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasColumnName("TARGETOTX7"); + + b1.Property("TARGETSYN") + .HasColumnType("bit") + .HasColumnName("TARGETSYN7"); + + b1.Property("TARGETTAU") + .HasColumnType("bit") + .HasColumnName("TARGETTAU7"); + + b1.Property("TRIALGRP") + .HasColumnType("int") + .HasColumnName("TRIALGRP7"); + + b1.Property("TRTTRIAL") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasColumnName("TRTTRIAL7"); + + b1.HasKey("A4aId"); + + b1.ToTable("tbl_A4as"); + + b1.WithOwner() + .HasForeignKey("A4aId"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A4aTreatment", "Treatment8", b1 => + { + b1.Property("A4aId") + .HasColumnType("int"); + + b1.Property("CARETRIAL") + .HasColumnType("int") + .HasColumnName("CARETRIAL8"); + + b1.Property("ENDMO") + .HasColumnType("int") + .HasColumnName("ENDMO8"); + + b1.Property("ENDYEAR") + .HasColumnType("int") + .HasColumnName("ENDYEAR8"); + + b1.Property("NCTNUM") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasColumnName("NCTNUM8"); + + b1.Property("STARTMO") + .HasColumnType("int") + .HasColumnName("STARTMO8"); + + b1.Property("STARTYEAR") + .HasColumnType("int") + .HasColumnName("STARTYEAR8"); + + b1.Property("TARGETAB") + .HasColumnType("bit") + .HasColumnName("TARGETAB8"); + + b1.Property("TARGETINF") + .HasColumnType("bit") + .HasColumnName("TARGETINF8"); + + b1.Property("TARGETOTH") + .HasColumnType("bit") + .HasColumnName("TARGETOTH8"); + + b1.Property("TARGETOTX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasColumnName("TARGETOTX8"); + + b1.Property("TARGETSYN") + .HasColumnType("bit") + .HasColumnName("TARGETSYN8"); + + b1.Property("TARGETTAU") + .HasColumnType("bit") + .HasColumnName("TARGETTAU8"); + + b1.Property("TRIALGRP") + .HasColumnType("int") + .HasColumnName("TRIALGRP8"); + + b1.Property("TRTTRIAL") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)") + .HasColumnName("TRTTRIAL8"); + + b1.HasKey("A4aId"); + + b1.ToTable("tbl_A4as"); + + b1.WithOwner() + .HasForeignKey("A4aId"); + }); + + b.Navigation("Treatment1") + .IsRequired(); + + b.Navigation("Treatment2") + .IsRequired(); + + b.Navigation("Treatment3") + .IsRequired(); + + b.Navigation("Treatment4") + .IsRequired(); + + b.Navigation("Treatment5") + .IsRequired(); + + b.Navigation("Treatment6") + .IsRequired(); + + b.Navigation("Treatment7") + .IsRequired(); + + b.Navigation("Treatment8") + .IsRequired(); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.A5D2", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", null) + .WithOne("A5D2") + .HasForeignKey("UDS.Net.API.Entities.A5D2", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.B1", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", null) + .WithOne("B1") + .HasForeignKey("UDS.Net.API.Entities.B1", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.B3", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", null) + .WithOne("B3") + .HasForeignKey("UDS.Net.API.Entities.B3", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.B4", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", null) + .WithOne("B4") + .HasForeignKey("UDS.Net.API.Entities.B4", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.B5", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", null) + .WithOne("B5") + .HasForeignKey("UDS.Net.API.Entities.B5", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.B6", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", null) + .WithOne("B6") + .HasForeignKey("UDS.Net.API.Entities.B6", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.B7", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", null) + .WithOne("B7") + .HasForeignKey("UDS.Net.API.Entities.B7", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.B8", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", null) + .WithOne("B8") + .HasForeignKey("UDS.Net.API.Entities.B8", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.B9", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", null) + .WithOne("B9") + .HasForeignKey("UDS.Net.API.Entities.B9", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.C1", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", null) + .WithOne("C1") + .HasForeignKey("UDS.Net.API.Entities.C1", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.C2", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", null) + .WithOne("C2") + .HasForeignKey("UDS.Net.API.Entities.C2", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.D1a", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", null) + .WithOne("D1a") + .HasForeignKey("UDS.Net.API.Entities.D1a", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.D1b", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", null) + .WithOne("D1b") + .HasForeignKey("UDS.Net.API.Entities.D1b", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.FormStatus", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", null) + .WithMany("FormStatuses") + .HasForeignKey("VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.M1", b => + { + b.HasOne("UDS.Net.API.Entities.Participation", "Participation") + .WithMany("M1s") + .HasForeignKey("ParticipationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Participation"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.PacketSubmission", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + .WithMany("PacketSubmissions") + .HasForeignKey("VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Visit"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.PacketSubmissionError", b => + { + b.HasOne("UDS.Net.API.Entities.PacketSubmission", "PacketSubmission") + .WithMany("PacketSubmissionErrors") + .HasForeignKey("PacketSubmissionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PacketSubmission"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.T1", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", null) + .WithOne("T1") + .HasForeignKey("UDS.Net.API.Entities.T1", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.Visit", b => + { + b.HasOne("UDS.Net.API.Entities.Participation", "Participation") + .WithMany("Visits") + .HasForeignKey("ParticipationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Participation"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.PacketSubmission", b => + { + b.Navigation("PacketSubmissionErrors"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.Participation", b => + { + b.Navigation("M1s"); + + b.Navigation("Visits"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.Visit", b => + { + b.Navigation("A1") + .IsRequired(); + + b.Navigation("A1a") + .IsRequired(); + + b.Navigation("A2") + .IsRequired(); + + b.Navigation("A3") + .IsRequired(); + + b.Navigation("A4") + .IsRequired(); + + b.Navigation("A4a") + .IsRequired(); + + b.Navigation("A5D2") + .IsRequired(); + + b.Navigation("B1") + .IsRequired(); + + b.Navigation("B3") + .IsRequired(); + + b.Navigation("B4") + .IsRequired(); + + b.Navigation("B5") + .IsRequired(); + + b.Navigation("B6") + .IsRequired(); + + b.Navigation("B7") + .IsRequired(); + + b.Navigation("B8") + .IsRequired(); + + b.Navigation("B9") + .IsRequired(); + + b.Navigation("C1") + .IsRequired(); + + b.Navigation("C2") + .IsRequired(); + + b.Navigation("D1a") + .IsRequired(); + + b.Navigation("D1b") + .IsRequired(); + + b.Navigation("FormStatuses"); + + b.Navigation("PacketSubmissions"); + + b.Navigation("T1"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/UDS.Net.API/Data/Migrations/20241030191456_UpdateC2TProperties.cs b/src/UDS.Net.API/Data/Migrations/20241030191456_UpdateC2TProperties.cs new file mode 100644 index 0000000..2d23ecc --- /dev/null +++ b/src/UDS.Net.API/Data/Migrations/20241030191456_UpdateC2TProperties.cs @@ -0,0 +1,108 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace UDS.Net.API.Data.Migrations +{ + /// + public partial class UpdateC2TProperties : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "MOCBTOTS", + table: "tbl_C2s", + type: "int", + nullable: true); + + migrationBuilder.AddColumn( + name: "OTRAILA", + table: "tbl_C2s", + type: "int", + nullable: true); + + migrationBuilder.AddColumn( + name: "OTRAILB", + table: "tbl_C2s", + type: "int", + nullable: true); + + migrationBuilder.AddColumn( + name: "OTRLALI", + table: "tbl_C2s", + type: "int", + nullable: true); + + migrationBuilder.AddColumn( + name: "OTRLARR", + table: "tbl_C2s", + type: "int", + nullable: true); + + migrationBuilder.AddColumn( + name: "OTRLBLI", + table: "tbl_C2s", + type: "int", + nullable: true); + + migrationBuilder.AddColumn( + name: "OTRLBRR", + table: "tbl_C2s", + type: "int", + nullable: true); + + migrationBuilder.AddColumn( + name: "VNTPCNC", + table: "tbl_C2s", + type: "int", + nullable: true); + + migrationBuilder.AddColumn( + name: "VNTTOTW", + table: "tbl_C2s", + type: "int", + nullable: true); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "MOCBTOTS", + table: "tbl_C2s"); + + migrationBuilder.DropColumn( + name: "OTRAILA", + table: "tbl_C2s"); + + migrationBuilder.DropColumn( + name: "OTRAILB", + table: "tbl_C2s"); + + migrationBuilder.DropColumn( + name: "OTRLALI", + table: "tbl_C2s"); + + migrationBuilder.DropColumn( + name: "OTRLARR", + table: "tbl_C2s"); + + migrationBuilder.DropColumn( + name: "OTRLBLI", + table: "tbl_C2s"); + + migrationBuilder.DropColumn( + name: "OTRLBRR", + table: "tbl_C2s"); + + migrationBuilder.DropColumn( + name: "VNTPCNC", + table: "tbl_C2s"); + + migrationBuilder.DropColumn( + name: "VNTTOTW", + table: "tbl_C2s"); + } + } +} diff --git a/src/UDS.Net.API/Data/Migrations/ApiDbContextModelSnapshot.cs b/src/UDS.Net.API/Data/Migrations/ApiDbContextModelSnapshot.cs index e636b32..3fbb5fd 100644 --- a/src/UDS.Net.API/Data/Migrations/ApiDbContextModelSnapshot.cs +++ b/src/UDS.Net.API/Data/Migrations/ApiDbContextModelSnapshot.cs @@ -3925,6 +3925,9 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("MOCAVIS") .HasColumnType("int"); + b.Property("MOCBTOTS") + .HasColumnType("int"); + b.Property("MODE") .HasColumnType("int") .HasColumnName("MODE") @@ -3948,6 +3951,24 @@ protected override void BuildModel(ModelBuilder modelBuilder) .HasMaxLength(60) .HasColumnType("nvarchar(60)"); + b.Property("OTRAILA") + .HasColumnType("int"); + + b.Property("OTRAILB") + .HasColumnType("int"); + + b.Property("OTRLALI") + .HasColumnType("int"); + + b.Property("OTRLARR") + .HasColumnType("int"); + + b.Property("OTRLBLI") + .HasColumnType("int"); + + b.Property("OTRLBRR") + .HasColumnType("int"); + b.Property("RESPASST") .HasColumnType("int"); @@ -4115,6 +4136,12 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("VERBALTEST") .HasColumnType("int"); + b.Property("VNTPCNC") + .HasColumnType("int"); + + b.Property("VNTTOTW") + .HasColumnType("int"); + b.Property("VisitId") .HasColumnType("int") .HasColumnOrder(1); diff --git a/src/UDS.Net.API/Entities/C2.cs b/src/UDS.Net.API/Entities/C2.cs index ee7be61..6c0d871 100644 --- a/src/UDS.Net.API/Entities/C2.cs +++ b/src/UDS.Net.API/Entities/C2.cs @@ -19,6 +19,7 @@ public class C2 : Form public int? MOCAVIS { get; set; } public int? MOCAHEAR { get; set; } public int? MOCATOTS { get; set; } + public int? MOCBTOTS { get; set; } public int? MOCATRAI { get; set; } public int? MOCACUBE { get; set; } public int? MOCACLOC { get; set; } @@ -96,6 +97,8 @@ public class C2 : Form public int? REYMETHOD { get; set; } public int? REYTCOR { get; set; } public int? REYFPOS { get; set; } + public int? VNTTOTW { get; set; } + public int? VNTPCNC { get; set; } public int? CERAD1REC { get; set; } public int? CERAD1READ { get; set; } public int? CERAD1INT { get; set; } @@ -110,6 +113,12 @@ public class C2 : Form public int? CERADJ6INT { get; set; } public int? CERADJ7YES { get; set; } public int? CERADJ7NO { get; set; } + public int? OTRAILA { get; set; } + public int? OTRLARR { get; set; } + public int? OTRLALI { get; set; } + public int? OTRAILB { get; set; } + public int? OTRLBRR { get; set; } + public int? OTRLBLI { get; set; } public int? MINTTOTS { get; set; } public int? MINTTOTW { get; set; } public int? MINTSCNG { get; set; } diff --git a/src/UDS.Net.API/Extensions/DtoToEntityMapper.cs b/src/UDS.Net.API/Extensions/DtoToEntityMapper.cs index ff98aad..8c4c7bb 100644 --- a/src/UDS.Net.API/Extensions/DtoToEntityMapper.cs +++ b/src/UDS.Net.API/Extensions/DtoToEntityMapper.cs @@ -1218,6 +1218,7 @@ public static bool Update(this C2 entity, C2Dto dto) entity.MOCAVIS = dto.MOCAVIS; entity.MOCAHEAR = dto.MOCAHEAR; entity.MOCATOTS = dto.MOCATOTS; + entity.MOCBTOTS = dto.MOCBTOTS; entity.MOCATRAI = dto.MOCATRAI; entity.MOCACUBE = dto.MOCACUBE; entity.MOCACLOC = dto.MOCACLOC; @@ -1294,6 +1295,8 @@ public static bool Update(this C2 entity, C2Dto dto) entity.REYMETHOD = dto.REYMETHOD; entity.REYTCOR = dto.REYTCOR; entity.REYFPOS = dto.REYFPOS; + entity.VNTTOTW = dto.VNTTOTW; + entity.VNTPCNC = dto.VNTPCNC; entity.CERAD1REC = dto.CERAD1REC; entity.CERAD1READ = dto.CERAD1READ; entity.CERAD1INT = dto.CERAD1INT; @@ -1308,6 +1311,12 @@ public static bool Update(this C2 entity, C2Dto dto) entity.CERADJ6INT = dto.CERADJ6INT; entity.CERADJ7YES = dto.CERADJ7YES; entity.CERADJ7NO = dto.CERADJ7NO; + entity.OTRAILA = dto.OTRAILA; + entity.OTRLARR = dto.OTRLARR; + entity.OTRLALI = dto.OTRLALI; + entity.OTRAILB = dto.OTRAILB; + entity.OTRLBRR = dto.OTRLBRR; + entity.OTRLBLI = dto.OTRLBLI; entity.MINTTOTS = dto.MINTTOTS; entity.MINTTOTW = dto.MINTTOTW; entity.MINTSCNG = dto.MINTSCNG; diff --git a/src/UDS.Net.API/Extensions/EntityToDtoMapper.cs b/src/UDS.Net.API/Extensions/EntityToDtoMapper.cs index 35b518a..1fe3c3c 100644 --- a/src/UDS.Net.API/Extensions/EntityToDtoMapper.cs +++ b/src/UDS.Net.API/Extensions/EntityToDtoMapper.cs @@ -1252,6 +1252,7 @@ public static C2Dto ToFullDto(this C2 c2) MOCAVIS = c2.MOCAVIS, MOCAHEAR = c2.MOCAHEAR, MOCATOTS = c2.MOCATOTS, + MOCBTOTS = c2.MOCBTOTS, MOCATRAI = c2.MOCATRAI, MOCACUBE = c2.MOCACUBE, MOCACLOC = c2.MOCACLOC, @@ -1328,6 +1329,8 @@ public static C2Dto ToFullDto(this C2 c2) REYMETHOD = c2.REYMETHOD, REYTCOR = c2.REYTCOR, REYFPOS = c2.REYFPOS, + VNTTOTW = c2.VNTTOTW, + VNTPCNC = c2.VNTPCNC, CERAD1REC = c2.CERAD1REC, CERAD1READ = c2.CERAD1READ, CERAD1INT = c2.CERAD1INT, @@ -1342,6 +1345,12 @@ public static C2Dto ToFullDto(this C2 c2) CERADJ6INT = c2.CERADJ6INT, CERADJ7YES = c2.CERADJ7YES, CERADJ7NO = c2.CERADJ7NO, + OTRAILA = c2.OTRAILA, + OTRLARR = c2.OTRLARR, + OTRLALI = c2.OTRLALI, + OTRAILB = c2.OTRAILB, + OTRLBRR = c2.OTRLBRR, + OTRLBLI = c2.OTRLBLI, MINTTOTS = c2.MINTTOTS, MINTTOTW = c2.MINTTOTW, MINTSCNG = c2.MINTSCNG, diff --git a/src/UDS.Net.API/UDS.Net.API.csproj b/src/UDS.Net.API/UDS.Net.API.csproj index dd5255c..a1bc4a9 100644 --- a/src/UDS.Net.API/UDS.Net.API.csproj +++ b/src/UDS.Net.API/UDS.Net.API.csproj @@ -4,7 +4,7 @@ net8.0 enable enable - 4.1.1 + 4.2.0 ../docker-compose.dcproj c1dd1715-6fa0-4515-bcf2-6a7f6a0c11a5 Release;Debug diff --git a/src/UDS.Net.Dto/C2Dto.cs b/src/UDS.Net.Dto/C2Dto.cs index 8010732..9ae059f 100644 --- a/src/UDS.Net.Dto/C2Dto.cs +++ b/src/UDS.Net.Dto/C2Dto.cs @@ -11,6 +11,7 @@ public class C2Dto : FormDto public int? MOCAVIS { get; set; } public int? MOCAHEAR { get; set; } public int? MOCATOTS { get; set; } + public int? MOCBTOTS { get; set; } public int? MOCATRAI { get; set; } public int? MOCACUBE { get; set; } public int? MOCACLOC { get; set; } @@ -87,6 +88,8 @@ public class C2Dto : FormDto public int? REYMETHOD { get; set; } public int? REYTCOR { get; set; } public int? REYFPOS { get; set; } + public int? VNTTOTW { get; set; } + public int? VNTPCNC { get; set; } public int? CERAD1REC { get; set; } public int? CERAD1READ { get; set; } public int? CERAD1INT { get; set; } @@ -101,6 +104,12 @@ public class C2Dto : FormDto public int? CERADJ6INT { get; set; } public int? CERADJ7YES { get; set; } public int? CERADJ7NO { get; set; } + public int? OTRAILA { get; set; } + public int? OTRLARR { get; set; } + public int? OTRLALI { get; set; } + public int? OTRAILB { get; set; } + public int? OTRLBRR { get; set; } + public int? OTRLBLI { get; set; } public int? MINTTOTS { get; set; } public int? MINTTOTW { get; set; } public int? MINTSCNG { get; set; } diff --git a/src/UDS.Net.Dto/UDS.Net.Dto.csproj b/src/UDS.Net.Dto/UDS.Net.Dto.csproj index ad77460..8d72258 100644 --- a/src/UDS.Net.Dto/UDS.Net.Dto.csproj +++ b/src/UDS.Net.Dto/UDS.Net.Dto.csproj @@ -4,13 +4,13 @@ netstandard2.1 Library UDS.Net.Dto - 4.1.1 + 4.2.0 Sanders-Brown Center on Aging UDS data transfer objects for use with API UK-SBCoA Dtos for API https://github.com/UK-SBCoA/uniform-data-set-dotnet-api - 4.1.1 + 4.2.0