コード例 #1
0
        BreastRadiologyDocument MakeDoc()
        {
            BreastRadiologyDocument doc = BreastRadiologyDocument.Create();

            //$doc.Subject = new ResourceReference { Reference = "xxyyz" };
            //$doc.Encounter = new ResourceReference { Reference = "xxyyz" };
            return(doc);
        }
コード例 #2
0
        BreastRadiologyDocument MakeDoc()
        {
            BreastRadiologyDocument doc = BreastRadiologyDocument.Create();

            {
                Patient p = new Patient
                {
                    Id = "Patient1"
                };
                p.Name.Add(new HumanName
                {
                    Given  = new String[] { "Bullwinkle" },
                    Family = "Moose"
                });
                doc.Subject = p;
            }
            {
                Encounter e = new Encounter
                {
                    Id     = "Encounter1",
                    Status = Encounter.EncounterStatus.Finished,
                    Class  = new Coding("http://terminology.hl7.org/CodeSystem/v3-ActCode",
                                        "CASH")
                };
                doc.Encounter = e;
            }

            {
                Device e = new Device
                {
                    Id = "Device1"
                };
                e.DeviceName.Add(new Device.DeviceNameComponent
                {
                    Name = "Test Author",
                    Type = DeviceNameType.UserFriendlyName
                });
                doc.Author = e;
            }
            return(doc);
        }