using Strata.RxNorm.Biz.RxNorm; namespace Strata.RxNorm.Biz.Test.Unit.RxNorm { public class FlattenConso { public string RRxcui1 { get; set; } public string RRxcui2 { get; set; } public string Rxcui1 { get; set; } public string Sab1 { get; set; } public string Tty1 { get; set; } public string Str1 { get; set; } public string Rxcui2 { get; set; } public string Sab2 { get; set; } public string Tty2 { get; set; } public string Str2 { get; set; } public string Sab3 { get; set; } public string Tty3 { get; set; } public string Str3 { get; set; } public string SatStype { get; set; } public string SatAtn { get; set; } public string SatSab { get; set; } public string SatAtv { get; set; } public RxnRelation RxnRelation { get; set; } public RxnConcept[] conso { get; set; } public RxnAttribute sat { get; set; } public FlattenConso(RxnRelation rel, RxnConcept conso1, RxnConcept conso2, RxnConcept conso3, RxnAttribute sat) { RxnRelation = rel; conso = new[] { conso1, conso2, conso3 }; this.sat = sat; RRxcui1 = rel.Rxcui1; RRxcui2 = rel.Rxcui2; Rxcui1 = conso1.Rxcui; Sab1 = conso1.Sab; Tty1 = conso1.Tty; Str1 = conso1.Str; Rxcui2 = conso2?.Rxcui; Sab2 = conso2?.Sab ?? ""; Tty2 = conso2?.Tty ?? ""; Str2 = conso2?.Str ?? ""; Sab3 = conso3?.Sab ?? ""; Tty3 = conso3?.Tty ?? ""; Str3 = conso3?.Str ?? ""; SatStype = sat?.Stype; SatAtn = sat?.Atn; SatSab = sat?.Sab; SatAtv = sat?.Atv; } } }