31 lines
733 B
C#
31 lines
733 B
C#
using Strata.RxNorm.Biz.RxNorm;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Strata.RxNorm.Biz.Test.Unit.RxNorm
|
|
{
|
|
public class Rxndata
|
|
{
|
|
[Key]
|
|
public int Key { get; set; }
|
|
public string Rxcui { get; set; }
|
|
public string Description { get; set; }
|
|
|
|
public Rxndata() { }
|
|
|
|
public Rxndata(RxnAttribute sat)
|
|
{
|
|
Key = int.TryParse(sat.Rxcui, out var cui) ? cui : 0;
|
|
Rxcui = sat.Rxcui;
|
|
Description = sat.Atv;
|
|
}
|
|
|
|
public Rxndata(RxnConcept conso)
|
|
{
|
|
Key = int.TryParse(conso.Rxcui, out var cui) ? cui : 0;
|
|
Rxcui = conso.Rxcui;
|
|
Description = conso.Str;
|
|
}
|
|
}
|
|
|
|
}
|