private Custodian CreateCustodian()
        {
            EntityNamePart namePart = new EntityNamePart("Community Health and Hospitals");

            OrganizationName name = new OrganizationName();

            name.AddNamePart(namePart);

            CustodianOrganization organization = new CustodianOrganization();

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

            AssignedCustodian assignedCustodian = new AssignedCustodian();

            assignedCustodian.RepresentedCustodianOrganization = organization;

            Custodian custodian = new Custodian();

            custodian.AssignedCustodian = assignedCustodian;

            return(custodian);
        }
Example #2
0
        private static void MakeCustodianNode(ClinicalDocument ccda)
        {
            CustodianOrganization rco = new CustodianOrganization();

            rco.Id = new SET<II>(new II("1.1.1.1.1.1.1.1.2"));
            ON on = new ON();
            on.Part.Add(new ENXP("Primo Adult Health"));
            rco.Name = on;

            rco.Telecom = new TEL("tel:+1(571)555-0179;ext=222",
                    TelecommunicationAddressUse.WorkPlace);

            rco.Addr = 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)});

            AssignedCustodian ac = new AssignedCustodian();
            ac.RepresentedCustodianOrganization = rco;

            Custodian custodian = new Custodian();
            custodian.AssignedCustodian = ac;
            ccda.Custodian = custodian;
        }