コード例 #1
0
        public XDocument CreateFileDataXML()
        {
            XDocument xDoc = new XDocument(
                new XDeclaration("1.0", "utf-8", "yes"),
                new XElement("TTBNHT", new XAttribute("id", Patient_ID.ToString()), new XAttribute("code", Patient_Code),
                             new XElement("BasicInfor",
                                          new XElement("fullName", FullName),
                                          new XElement("dateOfBirth", DateOfBirth.ToString()),
                                          new XElement("phoneNumber", PhoneNo),
                                          new XElement("email", Email),
                                          new XElement("levelId", LevelID),
                                          new XElement("job", Job),
                                          new XElement("nationalInfor", new XAttribute("nationID", NationID), new XAttribute("classID", ClassID), new XAttribute("provinceCode", ProvinceCode), new XAttribute("districtCode", DistrictCode)),
                                          new XElement("CMNDInfor", new XAttribute("noCMND", CMND_No), new XAttribute("dateOfId", CMND_DateOfID.ToString()), new XAttribute("address", CMND_Address), new XAttribute("addressOfId", CMND_AddressOfID)),
                                          new XElement("marriageInformation", new XAttribute("isMarried", IsMarried), new XAttribute("hasChild", HasChild), new XAttribute("numberOfChild", NoOfChild), new XAttribute("yearOfChildLast", YearOfChildLast), new XAttribute("dayOfHaveBaby", DayOfHaveBaby)),
                                          new XElement("HeathStatus", new XAttribute("heathStatus", HeathStatus), new XAttribute("historyOfPatient", HistoryOfPatient), new XAttribute("historyOfFamily", HistoryOfFamily)),
                                          new XElement("FP",
                                                       new XElement("FPRightThumb", FPRightThumb),
                                                       new XElement("FPLeftThumb", FPLeftThumb),
                                                       new XElement("FPRightIndex", FPRightIndex),
                                                       new XElement("FPLeftIndex", FPLeftIndex)),
                                          new XElement("WifeInfors", new XAttribute("wifeName", WifeName), new XAttribute("wIdentify", WIdentify), new XAttribute("wDateOfId", WDateOfID), new XAttribute("wAddress", WAddress), new XAttribute("wPhone", WPhone), new XAttribute("wEmail", WEmail)),
                                          new XElement("createdDate", CreatedDate.ToString()))));

            return(xDoc);
        }
コード例 #2
0
        public XDocument CreateFileDataXML()
        {
            XDocument xDoc = new XDocument(
                new XDeclaration("1.0", "utf-8", "yes"),
                new XElement("TTTSKN", new XAttribute("id", Patient_ID.ToString()), new XAttribute("code", Patient_Code),
                             new XElement("TuoiCoKinhLanDau", TuoiCoKinhLanDau),
                             new XElement("ChuKyKinh", ChuKyKinh),
                             new XElement("SoNgayCoKinh", SoNgayCoKinh),
                             new XElement("SoLuong", SoLuong),
                             new XElement("createdDate", CreatedDate.ToString()))
                );

            return(xDoc);
        }
コード例 #3
0
        public XDocument CreateFileDataXML()
        {
            XDocument xDoc = new XDocument(
                new XDeclaration("1.0", "utf-8", "yes"),
                new XElement("TTNQHBNHN", new XAttribute("id", Patient_ID.ToString()), new XAttribute("code", Patient_Code),
                             new XElement("BasicInfor",
                                          new XElement("fullName", FullName),
                                          new XElement("dateOfBirth", DateOfBirth.ToString()),
                                          new XElement("phoneNumber", PhoneNo),
                                          new XElement("email", Email),
                                          new XElement("nationalInfor", new XAttribute("nationID", NationID), new XAttribute("classID", ClassID), new XAttribute("provinceCode", ProvinceCode), new XAttribute("districtCode", DistrictCode)),
                                          new XElement("CMNDInfor", new XAttribute("noCMND", CMND_No), new XAttribute("dateOfId", CMND_DateOfID.ToString()), new XAttribute("address", CMND_Address), new XAttribute("addressOfId", CMND_AddressOfID)),
                                          new XElement("status", Status))));

            return(xDoc);
        }
コード例 #4
0
        public XDocument CreateFileDataXML()
        {
            XDocument xDoc = new XDocument(
                new XDeclaration("1.0", "utf-8", "yes"),
                new XElement("TTLSBTT", new XAttribute("id", Patient_ID.ToString()), new XAttribute("code", Patient_Code),
                             new XElement("TieuDuong", TieuDuong),
                             new XElement("Lao", Lao),
                             new XElement("BenhKhac", BenhKhac),
                             new XElement("DieuTriNoiKhoa", DieuTriNoiKhoa),
                             new XElement("TienSuPhauThuat", TienSuPhauThuat),
                             new XElement("NhiemTrungTietLieu", NhiemTrungTietLieu),
                             new XElement("createdDate", CreatedDate.ToString()))
                );

            return(xDoc);
        }
コード例 #5
0
        public XDocument CreateFileDataXML()
        {
            XDocument xDoc = new XDocument(
                new XDeclaration("1.0", "utf-8", "yes"),
                new XElement("TTDDNHN", new XAttribute("id", Patient_ID.ToString()), new XAttribute("code", Patient_Code),
                             new XElement("ChieuCao", ChieuCao),
                             new XElement("CanNang", CanNang),
                             new XElement("HuyetAp", HuyetAp),
                             new XElement("PhatTrienVu", PhatTrienVu),
                             new XElement("TietSua", TietSua),
                             new XElement("VanDeKhac", VanDeKhac),
                             new XElement("createdDate", CreatedDate.ToString()))
                );

            return(xDoc);
        }
コード例 #6
0
        public XDocument CreateFileDataXML()
        {
            XDocument xDoc = new XDocument(
                new XDeclaration("1.0", "utf-8", "yes"),
                new XElement("TTTSKN", new XAttribute("id", Patient_ID.ToString()), new XAttribute("code", Patient_Code),
                             new XElement("SoLanCoThai", SoLanCoThai),
                             new XElement("SoLuongDeConSong", SoLuongDeConSong),
                             new XElement("NaoHut", NaoHut),
                             new XElement("ThaiLuu", ThaiLuu),
                             new XElement("ChuaNgoaiDaCon", ChuaNgoaiDaCon),
                             new XElement("ChuaTrung", ChuaTrung),
                             new XElement("createdDate", CreatedDate.ToString()))
                );

            return(xDoc);
        }
コード例 #7
0
        public XDocument CreateFileDataXML()
        {
            XDocument xDoc = new XDocument(
                new XDeclaration("1.0", "utf-8", "yes"),
                new XElement("TTKHVXC", new XAttribute("id", Patient_ID.ToString()), new XAttribute("code", Patient_Code),
                             new XElement("SinhDucNgoai", SinhDucNgoai),
                             new XElement("AmHo", AmHo),
                             new XElement("AmDao", AmDao),
                             new XElement("ViemLoTuyenCoTuCung", ViemLoTuyenCoTuCung),
                             new XElement("SuiCotuCung", SuiCotuCung),
                             new XElement("PoLypCoTuCung", PoLypCoTuCung),
                             new XElement("HaiCtcCoTuCung", HaiCtcCoTuCung),
                             new XElement("CoTuCungBinhThuong", CoTuCungBinhThuong),
                             new XElement("TuTheTuCung", TuTheTuCung),
                             new XElement("TheTichTuCung", TheTichTuCung),
                             new XElement("MatDoTuCung", MatDoTuCung),
                             new XElement("DiDongTuCung", DiDongTuCung),
                             new XElement("HaiPhanPhu", HaiPhanPhu),
                             new XElement("createdDate", CreatedDate.ToString()))
                );

            return(xDoc);
        }