private Author_2 CreateAuthor()
        {
            AssignedAuthor assignedAuthor = new AssignedAuthor();

            assignedAuthor.Id.Add(new Identifier("2.16.840.1.113883.4.6", "99999999"));
            assignedAuthor.Addr.Add(CreateAddress("1002 Healthcare Drive", "Portland", "OR", "99123", "US"));
            assignedAuthor.Telecom.Add(CreateTelecom("555-555-1002", Ca.Infoway.Messagebuilder.Domainvalue.Basic.TelecommunicationAddressUse.WORKPLACE));

            Author_2 author = new Author_2();

            author.Time           = CreateDate(2005, 02, 29);
            author.AssignedAuthor = assignedAuthor;

            return(author);
        }
Exemple #2
0
        private static void MakeAuthorNode(ClinicalDocument ccda)
        {
            AssignedAuthor aa = new AssignedAuthor();

            //NPI 12345
            aa.Id = new SET<II>(new II("2.16.840.1.113883.4.6", "12345"));

            aa.Code = new CE<string>("207QA0505X",
                "2.16.840.1.113883.6.101",
                "NUCC",
                null,
                "Adult Medicine",
                null);

            aa.Addr = new SET<AD>(
                new AD(
                    new ADXP[]{
                            new ADXP("1400 Main Street Ste G", AddressPartType.StreetAddressLine),
                            new ADXP("Springfield", AddressPartType.City),
                            new ADXP("VA", AddressPartType.State),
                            new ADXP("22150", AddressPartType.PostalCode),
                            new ADXP("US", AddressPartType.Country)}));

            aa.Telecom = new SET<TEL>(
                new TEL("tel:+1(571)555-0179;ext=221",
                    TelecommunicationAddressUse.WorkPlace));

            aa.SetAssignedAuthorChoice(new SET<PN>(
                new PN(
                    new List<ENXP>{
                    new ENXP("Raymond",EntityNamePartType.Given),
                    new ENXP("Boccino",EntityNamePartType.Family),
                    new ENXP("MD",EntityNamePartType.Suffix)})));

            Author a = new Author();
            a.Time = DateTime.Now;
            a.AssignedAuthor = aa;

            ccda.Author.Add(a);
        }
Exemple #3
0
 /// <summary>
 /// Revises the assigned author.
 /// </summary>
 /// <param name="assignedAuthor">The assigned author.</param>
 public virtual void ReviseAssignedAuthor( AssignedAuthor assignedAuthor)
 {
     AssignedAuthor = assignedAuthor;
 }