本文整理汇总了C#中Person.ToSourcePatientInfoValues方法的典型用法代码示例。如果您正苦于以下问题:C# Person.ToSourcePatientInfoValues方法的具体用法?C# Person.ToSourcePatientInfoValues怎么用?C# Person.ToSourcePatientInfoValues使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Person
的用法示例。
在下文中一共展示了Person.ToSourcePatientInfoValues方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ToSourcePatientInfoResturnsCorrectAddressValue
public void ToSourcePatientInfoResturnsCorrectAddressValue()
{
Person p = new Person { First = "John", Last = "Jacob", Address = new PostalAddress { City = "Wiesbaden", State = "Hesse", Street = "Meadow Bath Ave", Zip="00000"} };
Assert.Contains("PID-11|" + p.Address.Value.ToHL7Ad(), p.ToSourcePatientInfoValues(null));
}
示例2: ToSourcePatientInfoResturnsCorrectDobValue
public void ToSourcePatientInfoResturnsCorrectDobValue()
{
Person p = new Person { First = "John", Last = "Jacob", Dob = new DateTime(1969, 06, 20) };
Assert.Contains("PID-7|" + p.Dob.ToHL7Date(), p.ToSourcePatientInfoValues(null));
}
示例3: ToSourcePatientInfoResturnsCorrectSexValue
public void ToSourcePatientInfoResturnsCorrectSexValue()
{
Person p = new Person { First = "John", Last = "Jacob", Sex = Sex.Male };
Assert.Contains("PID-8|M", p.ToSourcePatientInfoValues(null));
}
示例4: ToSourcePatientInfoReturnsCorrectNameValue
public void ToSourcePatientInfoReturnsCorrectNameValue()
{
Person p = new Person { First = "Bob", Last = "Smith", MI = "A" };
Assert.Contains("PID-5|" + p.ToXCN(), p.ToSourcePatientInfoValues(null));
}