Ejemplo n.º 1
0
        private static AuthorBean CreateAuthorV01()
        {
            AuthorBean result = new AuthorBean();

            result.Time = DateUtil.GetDate(2008, 8, 18, 18, 18, 0, 0);
            result.Id   = new Identifier("2.16.840.1.113883.4.267", "EHR ID EXT");
            result.SetLicenseNumber(new Identifier("2.16.840.1.113883.4.268", "55555"));
            // I'm a little unhappy about this. The data setup seems too HL7-y. Would it be better to retain the PersonNameBean and the adaptor?
            PersonName name = new PersonName();

            name.AddNamePart(new EntityNamePart("Jane", PersonNamePartType.GIVEN));
            name.AddNamePart(new EntityNamePart("Doe", PersonNamePartType.FAMILY));
            result.SetName(name);
            return(result);
        }
Ejemplo n.º 2
0
 public virtual void SetAuthor(AuthorBean author)
 {
     this.author = author;
 }