Commit 1e535fea2589f4fcef22f566d9c20e16adcfbfe2
1 parent
f162c09e17
Exists in
master
and in
6 other branches
妊高症平板接口提交
Showing 7 changed files with 938 additions and 2 deletions
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/BasicConfigServiceTest.java
- platform-dal/src/main/java/com/lyms/platform/pojo/PihModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/PihParameterModel.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/annualReportController.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/pihController.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/PihService.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PihServiceImpl.java
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/BasicConfigServiceTest.java
View file @
1e535fe
... | ... | @@ -3521,6 +3521,490 @@ |
3521 | 3521 | |
3522 | 3522 | } |
3523 | 3523 | |
3524 | + public static void renGaoZhen(String fileName) { | |
3525 | + ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:/spring/applicationContext_biz_patient1.xml"); | |
3526 | + MongoTemplate mongoTemplate | |
3527 | + = (MongoTemplate) applicationContext.getBean("mongoTemplate"); | |
3528 | + mongoTemplate.getDb().authenticate("platform", "platform123".toCharArray()); | |
3529 | + File file = new File(fileName); | |
3530 | + Workbook wb = null; | |
3531 | + try { | |
3532 | + wb = Workbook.getWorkbook(file); | |
3533 | + | |
3534 | + Sheet s = wb.getSheet(0); | |
3535 | + System.out.println(s.getName() + " : "); | |
3536 | + int rows = s.getRows(); | |
3537 | + if (rows > 0) { | |
3538 | + //遍历每行 | |
3539 | + for (int i = 1; i < rows; i++) { | |
3540 | + System.out.println("rows=" + i); | |
3541 | + PihModel pin = new PihModel(); | |
3542 | + //0 健康教育之孕期相关 1 饮食 2 饮食之营养指南 3 运动 | |
3543 | + pin.setType(1); | |
3544 | + pin.setSymptomsType(1); | |
3545 | + Cell[] cells = s.getRow(i); | |
3546 | + if (cells.length > 0) { | |
3547 | + //遍历每行中的每列 | |
3548 | + for (int j = 0; j < cells.length; j++) { | |
3549 | + String str = cells[j].getContents().trim(); | |
3550 | + switch (j) { | |
3551 | + case 0: | |
3552 | + pin.setStartWeek(Integer.parseInt(str)); | |
3553 | + continue; | |
3554 | + case 1: | |
3555 | + pin.setEndWeek(Integer.parseInt(str)); | |
3556 | + continue; | |
3557 | + case 2: | |
3558 | + List<String> list1 = Arrays.asList(str.split("\n")); | |
3559 | + pin.setUnscramble(list1); | |
3560 | + continue; | |
3561 | + case 3: | |
3562 | + List<String> list2 = Arrays.asList(str.split("\n")); | |
3563 | + pin.setCheck(list2); | |
3564 | + continue; | |
3565 | + case 4: | |
3566 | + List<String> list3 = Arrays.asList(str.split("\n")); | |
3567 | + pin.setDiet(list3); | |
3568 | + continue; | |
3569 | + case 5: | |
3570 | + List<String> list4 = Arrays.asList(str.split("\n")); | |
3571 | + pin.setLifeStyle(list4); | |
3572 | + continue; | |
3573 | + } | |
3574 | + } | |
3575 | + | |
3576 | + } | |
3577 | + mongoTemplate.save(pin); | |
3578 | + } | |
3579 | + | |
3580 | + } | |
3581 | + | |
3582 | + Sheet s1 = wb.getSheet(1); | |
3583 | + System.out.println(s.getName() + " : "); | |
3584 | + int rows1 = s1.getRows(); | |
3585 | + if (rows1 > 0) { | |
3586 | + for (int i = 1; i < rows1; i++) { | |
3587 | + System.out.println("rows=" + i); | |
3588 | + PihModel pin = new PihModel(); | |
3589 | + //0 健康教育之孕期相关 1 饮食 2 饮食之营养指南 3 运动 | |
3590 | + pin.setType(2); | |
3591 | + pin.setSymptomsType(1); | |
3592 | + Cell[] cells = s1.getRow(i); | |
3593 | + if (cells.length > 0) { | |
3594 | + //遍历每行中的每列 | |
3595 | + for (int j = 0; j < cells.length; j++) { | |
3596 | + String str = cells[j].getContents().trim(); | |
3597 | + switch (j) { | |
3598 | + case 0: | |
3599 | + pin.setStartWeek(Integer.parseInt(str)); | |
3600 | + continue; | |
3601 | + case 1: | |
3602 | + pin.setEndWeek(Integer.parseInt(str)); | |
3603 | + continue; | |
3604 | + case 2: | |
3605 | + List<String> list1 = Arrays.asList(str.split("\n")); | |
3606 | + pin.setUnscramble(list1); | |
3607 | + continue; | |
3608 | + case 3: | |
3609 | + List<String> list2 = Arrays.asList(str.split("\n")); | |
3610 | + pin.setCheck(list2); | |
3611 | + continue; | |
3612 | + case 4: | |
3613 | + List<String> list3 = Arrays.asList(str.split("\n")); | |
3614 | + pin.setDiet(list3); | |
3615 | + continue; | |
3616 | + case 5: | |
3617 | + List<String> list4 = Arrays.asList(str.split("\n")); | |
3618 | + pin.setLifeStyle(list4); | |
3619 | + continue; | |
3620 | + } | |
3621 | + } | |
3622 | + | |
3623 | + } | |
3624 | + mongoTemplate.save(pin); | |
3625 | + } | |
3626 | + } | |
3627 | + | |
3628 | + Sheet s2 = wb.getSheet(2); | |
3629 | + System.out.println(s2.getName() + " : "); | |
3630 | + int rows2 = s2.getRows(); | |
3631 | + if (rows2 > 0) { | |
3632 | + //遍历每行 | |
3633 | + for (int i = 1; i < rows2; i++) { | |
3634 | + System.out.println("rows=" + i); | |
3635 | + PihModel pih = new PihModel(); | |
3636 | + //0 健康教育之孕期相关 1 饮食 2 饮食之营养指南 3 运动 | |
3637 | + pih.setType(3); | |
3638 | + pih.setSymptomsType(1); | |
3639 | + Cell[] cells = s2.getRow(i); | |
3640 | + if (cells.length > 0) { | |
3641 | + //遍历每行中的每列 | |
3642 | + for (int j = 0; j < cells.length; j++) { | |
3643 | + String str = cells[j].getContents().trim(); | |
3644 | + switch (j) { | |
3645 | + case 0: | |
3646 | + pih.setStartWeek(Integer.parseInt(str)); | |
3647 | + continue; | |
3648 | + case 1: | |
3649 | + pih.setEndWeek(Integer.parseInt(str)); | |
3650 | + continue; | |
3651 | + case 2: | |
3652 | + List<String> list1 = Arrays.asList(str.split("\n")); | |
3653 | + pih.setUnscramble(list1); | |
3654 | + continue; | |
3655 | + case 3: | |
3656 | + List<String> list2 = Arrays.asList(str.split("\n")); | |
3657 | + pih.setCheck(list2); | |
3658 | + continue; | |
3659 | + case 4: | |
3660 | + List<String> list3 = Arrays.asList(str.split("\n")); | |
3661 | + pih.setDiet(list3); | |
3662 | + continue; | |
3663 | + case 5: | |
3664 | + List<String> list4 = Arrays.asList(str.split("\n")); | |
3665 | + pih.setLifeStyle(list4); | |
3666 | + continue; | |
3667 | + | |
3668 | + } | |
3669 | + } | |
3670 | + | |
3671 | + } | |
3672 | + mongoTemplate.save(pih); | |
3673 | + } | |
3674 | + } | |
3675 | + | |
3676 | + Sheet s3 = wb.getSheet(3); | |
3677 | + System.out.println(s3.getName() + " : "); | |
3678 | + int rows3 = s3.getRows(); | |
3679 | + if (rows3 > 0) { | |
3680 | + //遍历每行 | |
3681 | + for (int i = 1; i < rows3; i++) { | |
3682 | + System.out.println("rows=" + i); | |
3683 | + PihModel pih = new PihModel(); | |
3684 | + //0 健康教育之孕期相关 1 饮食 2 饮食之营养指南 3 运动 | |
3685 | + pih.setType(1); | |
3686 | + pih.setSymptomsType(2); | |
3687 | + Cell[] cells = s3.getRow(i); | |
3688 | + if (cells.length > 0) { | |
3689 | + //遍历每行中的每列 | |
3690 | + for (int j = 0; j < cells.length; j++) { | |
3691 | + String str = cells[j].getContents().trim(); | |
3692 | + switch (j) { | |
3693 | + case 0: | |
3694 | + pih.setStartWeek(Integer.parseInt(str)); | |
3695 | + continue; | |
3696 | + case 1: | |
3697 | + pih.setEndWeek(Integer.parseInt(str)); | |
3698 | + continue; | |
3699 | + case 2: | |
3700 | + List<String> list4 = Arrays.asList(str.split("\n")); | |
3701 | + pih.setLifeStyle(list4); | |
3702 | + continue; | |
3703 | + } | |
3704 | + } | |
3705 | + | |
3706 | + } | |
3707 | + mongoTemplate.save(pih); | |
3708 | + } | |
3709 | + } | |
3710 | + | |
3711 | + Sheet s4 = wb.getSheet(4); | |
3712 | + System.out.println(s4.getName() + " : "); | |
3713 | + int rows4 = s4.getRows(); | |
3714 | + if (rows4 > 0) { | |
3715 | + //遍历每行 | |
3716 | + for (int i = 1; i < rows4; i++) { | |
3717 | + System.out.println("rows=" + i); | |
3718 | + PihModel pih = new PihModel(); | |
3719 | + //1,阴性 2.阳性 3.可疑 | |
3720 | + //c1.无风险因素 2.甲亢 3.糖尿病 4.缺铁性贫血 | |
3721 | + pih.setType(2); | |
3722 | + pih.setSymptomsType(2); | |
3723 | + Cell[] cells = s4.getRow(i); | |
3724 | + if (cells.length > 0) { | |
3725 | + //遍历每行中的每列 | |
3726 | + for (int j = 0; j < cells.length; j++) { | |
3727 | + String str = cells[j].getContents().trim(); | |
3728 | + switch (j) { | |
3729 | + case 0: | |
3730 | + pih.setStartWeek(Integer.parseInt(str)); | |
3731 | + continue; | |
3732 | + case 1: | |
3733 | + pih.setEndWeek(Integer.parseInt(str)); | |
3734 | + continue; | |
3735 | + case 2: | |
3736 | + List<String> list1 = Arrays.asList(str.split("\n")); | |
3737 | + pih.setLifeStyle(list1); | |
3738 | + continue; | |
3739 | + | |
3740 | + } | |
3741 | + } | |
3742 | + | |
3743 | + } | |
3744 | + mongoTemplate.save(pih); | |
3745 | + } | |
3746 | + } | |
3747 | + | |
3748 | + Sheet s5 = wb.getSheet(5); | |
3749 | + System.out.println(s5.getName() + " : "); | |
3750 | + int rows5 = s5.getRows(); | |
3751 | + if (rows5 > 0) { | |
3752 | + //遍历每行 | |
3753 | + for (int i = 1; i < rows5; i++) { | |
3754 | + System.out.println("rows=" + i); | |
3755 | + PihModel pih = new PihModel(); | |
3756 | + //1,阴性 2.阳性 3.可疑 | |
3757 | + //c1.无风险因素 2.甲亢 3.糖尿病 4.缺铁性贫血 | |
3758 | + pih.setType(3); | |
3759 | + pih.setSymptomsType(2); | |
3760 | + Cell[] cells = s5.getRow(i); | |
3761 | + if (cells.length > 0) { | |
3762 | + //遍历每行中的每列 | |
3763 | + for (int j = 0; j < cells.length; j++) { | |
3764 | + String str = cells[j].getContents().trim(); | |
3765 | + switch (j) { | |
3766 | + case 0: | |
3767 | + pih.setStartWeek(Integer.parseInt(str)); | |
3768 | + continue; | |
3769 | + case 1: | |
3770 | + pih.setEndWeek(Integer.parseInt(str)); | |
3771 | + continue; | |
3772 | + case 2: | |
3773 | + List<String> list1 = Arrays.asList(str.split("\n")); | |
3774 | + pih.setLifeStyle(list1); | |
3775 | + continue; | |
3776 | + | |
3777 | + } | |
3778 | + } | |
3779 | + | |
3780 | + } | |
3781 | + mongoTemplate.save(pih); | |
3782 | + } | |
3783 | + } | |
3784 | + | |
3785 | + Sheet s6 = wb.getSheet(6); | |
3786 | + System.out.println(s6.getName() + " : "); | |
3787 | + int rows6 = s6.getRows(); | |
3788 | + if (rows6 > 0) { | |
3789 | + //遍历每行 | |
3790 | + for (int i = 1; i < rows6; i++) { | |
3791 | + System.out.println("rows=" + i); | |
3792 | + PihModel pih = new PihModel(); | |
3793 | + //1,阴性 2.阳性 3.可疑 | |
3794 | + //c1.无风险因素 2.甲亢 3.糖尿病 4.缺铁性贫血 | |
3795 | + pih.setType(1); | |
3796 | + pih.setSymptomsType(3); | |
3797 | + Cell[] cells = s6.getRow(i); | |
3798 | + if (cells.length > 0) { | |
3799 | + //遍历每行中的每列 | |
3800 | + for (int j = 0; j < cells.length; j++) { | |
3801 | + String str = cells[j].getContents().trim(); | |
3802 | + switch (j) { | |
3803 | + case 0: | |
3804 | + pih.setStartWeek(Integer.parseInt(str)); | |
3805 | + continue; | |
3806 | + case 1: | |
3807 | + pih.setEndWeek(Integer.parseInt(str)); | |
3808 | + continue; | |
3809 | + case 2: | |
3810 | + List<String> list1 = Arrays.asList(str.split("\n")); | |
3811 | + pih.setLifeStyle(list1); | |
3812 | + continue; | |
3813 | + | |
3814 | + } | |
3815 | + } | |
3816 | + | |
3817 | + } | |
3818 | + mongoTemplate.save(pih); | |
3819 | + } | |
3820 | + } | |
3821 | + Sheet s7 = wb.getSheet(7); | |
3822 | + System.out.println(s7.getName() + " : "); | |
3823 | + int rows7 = s7.getRows(); | |
3824 | + if (rows7 > 0) { | |
3825 | + //遍历每行 | |
3826 | + for (int i = 1; i < rows7; i++) { | |
3827 | + System.out.println("rows=" + i); | |
3828 | + PihModel pih = new PihModel(); | |
3829 | + //1,阴性 2.阳性 3.可疑 | |
3830 | + //c1.无风险因素 2.甲亢 3.糖尿病 4.缺铁性贫血 | |
3831 | + pih.setType(2); | |
3832 | + pih.setSymptomsType(3); | |
3833 | + Cell[] cells = s7.getRow(i); | |
3834 | + if (cells.length > 0) { | |
3835 | + //遍历每行中的每列 | |
3836 | + for (int j = 0; j < cells.length; j++) { | |
3837 | + String str = cells[j].getContents().trim(); | |
3838 | + switch (j) { | |
3839 | + case 0: | |
3840 | + pih.setStartWeek(Integer.parseInt(str)); | |
3841 | + continue; | |
3842 | + case 1: | |
3843 | + pih.setEndWeek(Integer.parseInt(str)); | |
3844 | + continue; | |
3845 | + case 2: | |
3846 | + List<String> list1 = Arrays.asList(str.split("\n")); | |
3847 | + pih.setLifeStyle(list1); | |
3848 | + continue; | |
3849 | + | |
3850 | + } | |
3851 | + } | |
3852 | + | |
3853 | + } | |
3854 | + mongoTemplate.save(pih); | |
3855 | + } | |
3856 | + } | |
3857 | + Sheet s8 = wb.getSheet(8); | |
3858 | + System.out.println(s8.getName() + " : "); | |
3859 | + int rows8 = s8.getRows(); | |
3860 | + if (rows8 > 0) { | |
3861 | + //遍历每行 | |
3862 | + for (int i = 1; i < rows8; i++) { | |
3863 | + System.out.println("rows=" + i); | |
3864 | + PihModel pih = new PihModel(); | |
3865 | + //1,阴性 2.阳性 3.可疑 | |
3866 | + //c1.无风险因素 2.甲亢 3.糖尿病 4.缺铁性贫血 | |
3867 | + pih.setType(3); | |
3868 | + pih.setSymptomsType(3); | |
3869 | + Cell[] cells = s8.getRow(i); | |
3870 | + if (cells.length > 0) { | |
3871 | + //遍历每行中的每列 | |
3872 | + for (int j = 0; j < cells.length; j++) { | |
3873 | + String str = cells[j].getContents().trim(); | |
3874 | + switch (j) { | |
3875 | + case 0: | |
3876 | + pih.setStartWeek(Integer.parseInt(str)); | |
3877 | + continue; | |
3878 | + case 1: | |
3879 | + pih.setEndWeek(Integer.parseInt(str)); | |
3880 | + continue; | |
3881 | + case 2: | |
3882 | + List<String> list1 = Arrays.asList(str.split("\n")); | |
3883 | + pih.setLifeStyle(list1); | |
3884 | + continue; | |
3885 | + | |
3886 | + } | |
3887 | + } | |
3888 | + | |
3889 | + } | |
3890 | + mongoTemplate.save(pih); | |
3891 | + } | |
3892 | + } | |
3893 | + Sheet s9 = wb.getSheet(9); | |
3894 | + System.out.println(s9.getName() + " : "); | |
3895 | + int rows9 = s9.getRows(); | |
3896 | + if (rows9 > 0) { | |
3897 | + //遍历每行 | |
3898 | + for (int i = 1; i < rows9; i++) { | |
3899 | + System.out.println("rows=" + i); | |
3900 | + PihModel pih = new PihModel(); | |
3901 | + //1,阴性 2.阳性 3.可疑 | |
3902 | + //c1.无风险因素 2.甲亢 3.糖尿病 4.缺铁性贫血 | |
3903 | + pih.setType(1); | |
3904 | + pih.setSymptomsType(4); | |
3905 | + Cell[] cells = s9.getRow(i); | |
3906 | + if (cells.length > 0) { | |
3907 | + //遍历每行中的每列 | |
3908 | + for (int j = 0; j < cells.length; j++) { | |
3909 | + String str = cells[j].getContents().trim(); | |
3910 | + switch (j) { | |
3911 | + case 0: | |
3912 | + pih.setStartWeek(Integer.parseInt(str)); | |
3913 | + continue; | |
3914 | + case 1: | |
3915 | + pih.setEndWeek(Integer.parseInt(str)); | |
3916 | + continue; | |
3917 | + case 2: | |
3918 | + List<String> list1 = Arrays.asList(str.split("\n")); | |
3919 | + pih.setLifeStyle(list1); | |
3920 | + continue; | |
3921 | + | |
3922 | + } | |
3923 | + } | |
3924 | + | |
3925 | + } | |
3926 | + mongoTemplate.save(pih); | |
3927 | + } | |
3928 | + } | |
3929 | + Sheet s10 = wb.getSheet(10); | |
3930 | + System.out.println(s10.getName() + " : "); | |
3931 | + int rows10 = s10.getRows(); | |
3932 | + if (rows10 > 0) { | |
3933 | + //遍历每行 | |
3934 | + for (int i = 1; i < rows10; i++) { | |
3935 | + System.out.println("rows=" + i); | |
3936 | + PihModel pih = new PihModel(); | |
3937 | + //1,阴性 2.阳性 3.可疑 | |
3938 | + //c1.无风险因素 2.甲亢 3.糖尿病 4.缺铁性贫血 | |
3939 | + pih.setType(2); | |
3940 | + pih.setSymptomsType(4); | |
3941 | + Cell[] cells = s10.getRow(i); | |
3942 | + if (cells.length > 0) { | |
3943 | + //遍历每行中的每列 | |
3944 | + for (int j = 0; j < cells.length; j++) { | |
3945 | + String str = cells[j].getContents().trim(); | |
3946 | + switch (j) { | |
3947 | + case 0: | |
3948 | + pih.setStartWeek(Integer.parseInt(str)); | |
3949 | + continue; | |
3950 | + case 1: | |
3951 | + pih.setEndWeek(Integer.parseInt(str)); | |
3952 | + continue; | |
3953 | + case 2: | |
3954 | + List<String> list1 = Arrays.asList(str.split("\n")); | |
3955 | + pih.setLifeStyle(list1); | |
3956 | + continue; | |
3957 | + | |
3958 | + } | |
3959 | + } | |
3960 | + | |
3961 | + } | |
3962 | + mongoTemplate.save(pih); | |
3963 | + } | |
3964 | + } | |
3965 | + Sheet s11 = wb.getSheet(11); | |
3966 | + System.out.println(s11.getName() + " : "); | |
3967 | + int rows11 = s11.getRows(); | |
3968 | + if (rows11 > 0) { | |
3969 | + //遍历每行 | |
3970 | + for (int i = 1; i < rows11; i++) { | |
3971 | + System.out.println("rows=" + i); | |
3972 | + PihModel pih = new PihModel(); | |
3973 | + //1,阴性 2.阳性 3.可疑 | |
3974 | + //c1.无风险因素 2.甲亢 3.糖尿病 4.缺铁性贫血 | |
3975 | + pih.setType(3); | |
3976 | + pih.setSymptomsType(4); | |
3977 | + Cell[] cells = s11.getRow(i); | |
3978 | + if (cells.length > 0) { | |
3979 | + //遍历每行中的每列 | |
3980 | + for (int j = 0; j < cells.length; j++) { | |
3981 | + String str = cells[j].getContents().trim(); | |
3982 | + switch (j) { | |
3983 | + case 0: | |
3984 | + pih.setStartWeek(Integer.parseInt(str)); | |
3985 | + continue; | |
3986 | + case 1: | |
3987 | + pih.setEndWeek(Integer.parseInt(str)); | |
3988 | + continue; | |
3989 | + case 2: | |
3990 | + List<String> list1 = Arrays.asList(str.split("\n")); | |
3991 | + pih.setLifeStyle(list1); | |
3992 | + continue; | |
3993 | + | |
3994 | + } | |
3995 | + } | |
3996 | + } | |
3997 | + mongoTemplate.save(pih); | |
3998 | + } | |
3999 | + } | |
4000 | + } catch (IOException e) { | |
4001 | + e.printStackTrace(); | |
4002 | + } catch (BiffException e) { | |
4003 | + e.printStackTrace(); | |
4004 | + } | |
4005 | + | |
4006 | + } | |
4007 | + | |
3524 | 4008 | public static void main(String[] args) { |
3525 | 4009 | // weightWeek("F:\\体重与营养管理\\体重与营养管理第三版(北方)改标红“、冰淇淋”-晓萌.xls"); |
3526 | 4010 | // weightMange("F:\\体重与营养管理\\体重与营养管理第三版(北方)改标红“、冰淇淋”-晓萌.xls"); |
... | ... | @@ -3537,7 +4021,8 @@ |
3537 | 4021 | |
3538 | 4022 | // babyNutritionConfig("F:\\儿童营养报告\\婴幼儿体重与营养管理报告内容及规则\\儿童膳食报告文章2.xls"); |
3539 | 4023 | //xyPresentation("E:\\血压报告.xls"); |
3540 | - weightReport("E:\\体重营养报告10.xls"); | |
4024 | + //weightReport("E:\\体重营养报告10.xls"); | |
4025 | + renGaoZhen("G:\\妊高症风险.xls"); | |
3541 | 4026 | } |
3542 | 4027 | |
3543 | 4028 | } |
platform-dal/src/main/java/com/lyms/platform/pojo/PihModel.java
View file @
1e535fe
1 | +package com.lyms.platform.pojo; | |
2 | + | |
3 | +import org.springframework.data.mongodb.core.mapping.Document; | |
4 | + | |
5 | +import java.util.List; | |
6 | + | |
7 | +@Document(collection = "lyms_pin_config") | |
8 | +public class PihModel { | |
9 | + | |
10 | + private String id; | |
11 | + private Integer startWeek; | |
12 | + private Integer endWeek; | |
13 | + private List<String> unscramble;//检查结果解读 | |
14 | + private List<String> check;//定期检查 | |
15 | + private List<String> diet;//饮食建议 | |
16 | + private List<String> lifeStyle;//生活方式指导 | |
17 | + /** | |
18 | + * 1,阴性 2.阳性 3.可疑 | |
19 | + */ | |
20 | + private Integer type; | |
21 | + /** | |
22 | + * 1.无风险因素 2.甲亢 3.糖尿病 4.缺铁性贫血 | |
23 | + */ | |
24 | + private Integer symptomsType; | |
25 | + | |
26 | + public String getId() { | |
27 | + return id; | |
28 | + } | |
29 | + | |
30 | + public void setId(String id) { | |
31 | + this.id = id; | |
32 | + } | |
33 | + | |
34 | + public Integer getStartWeek() { | |
35 | + return startWeek; | |
36 | + } | |
37 | + | |
38 | + public void setStartWeek(Integer startWeek) { | |
39 | + this.startWeek = startWeek; | |
40 | + } | |
41 | + | |
42 | + public Integer getEndWeek() { | |
43 | + return endWeek; | |
44 | + } | |
45 | + | |
46 | + public void setEndWeek(Integer endWeek) { | |
47 | + this.endWeek = endWeek; | |
48 | + } | |
49 | + | |
50 | + public List<String> getUnscramble() { | |
51 | + return unscramble; | |
52 | + } | |
53 | + | |
54 | + public void setUnscramble(List<String> unscramble) { | |
55 | + this.unscramble = unscramble; | |
56 | + } | |
57 | + | |
58 | + public List<String> getCheck() { | |
59 | + return check; | |
60 | + } | |
61 | + | |
62 | + public void setCheck(List<String> check) { | |
63 | + this.check = check; | |
64 | + } | |
65 | + | |
66 | + public List<String> getDiet() { | |
67 | + return diet; | |
68 | + } | |
69 | + | |
70 | + public void setDiet(List<String> diet) { | |
71 | + this.diet = diet; | |
72 | + } | |
73 | + | |
74 | + public List<String> getLifeStyle() { | |
75 | + return lifeStyle; | |
76 | + } | |
77 | + | |
78 | + public void setLifeStyle(List<String> lifeStyle) { | |
79 | + this.lifeStyle = lifeStyle; | |
80 | + } | |
81 | + | |
82 | + public Integer getType() { | |
83 | + return type; | |
84 | + } | |
85 | + | |
86 | + public void setType(Integer type) { | |
87 | + this.type = type; | |
88 | + } | |
89 | + | |
90 | + public Integer getSymptomsType() { | |
91 | + return symptomsType; | |
92 | + } | |
93 | + | |
94 | + public void setSymptomsType(Integer symptomsType) { | |
95 | + this.symptomsType = symptomsType; | |
96 | + } | |
97 | +} |
platform-dal/src/main/java/com/lyms/platform/pojo/PihParameterModel.java
View file @
1e535fe
1 | +package com.lyms.platform.pojo; | |
2 | + | |
3 | + | |
4 | +import org.springframework.data.mongodb.core.mapping.Document; | |
5 | + | |
6 | +@Document(collection = "lyms_pin_parameter") | |
7 | +public class PihParameterModel { | |
8 | + | |
9 | + private String id; | |
10 | + private String ssyBT;//收缩压 | |
11 | + private String szyBT;//舒张压 | |
12 | + private String cvp;//脉压 | |
13 | + private String meanAP;//平均动脉压 | |
14 | + private String pbpi;//血压指数 | |
15 | + private String bsa;//体表面积 | |
16 | + private String totalBloodVolume;//总血容量 | |
17 | + private String sff;//波形系数 | |
18 | + private String bmi;//体重指数 | |
19 | + private String cardiacOutput;//心输出力 | |
20 | + private String wzzl;//外周助力 | |
21 | + private String aestheticVolume;//美博量 | |
22 | + private String cl;//心脏指数 | |
23 | + private String cardiacIndex;//心博指数 | |
24 | + private String compliance;//顺应性 | |
25 | + private String heartRate;//心率 | |
26 | + private String cbf;//中心血流量 | |
27 | + private String bloodViscosity;//血液沾度 | |
28 | + private String arTime;//平均滞留时间 | |
29 | + private String parameterResult;//参数结果 | |
30 | + private String parameterGuide;//参数指南 | |
31 | + private String pulse;//脉搏波形 | |
32 | + private String measureEnd;//测量结束 | |
33 | + private String exit;//非正常退出 | |
34 | + private String pid;//病人id | |
35 | + private String hospitalId;//医院id | |
36 | + private String IDCard;//病人身份证号 | |
37 | + | |
38 | + public String getPid() { | |
39 | + return pid; | |
40 | + } | |
41 | + | |
42 | + public void setPid(String pid) { | |
43 | + this.pid = pid; | |
44 | + } | |
45 | + | |
46 | + public String getHospitalId() { | |
47 | + return hospitalId; | |
48 | + } | |
49 | + | |
50 | + public void setHospitalId(String hospitalId) { | |
51 | + this.hospitalId = hospitalId; | |
52 | + } | |
53 | + | |
54 | + public String getId() { | |
55 | + return id; | |
56 | + } | |
57 | + | |
58 | + public void setId(String id) { | |
59 | + this.id = id; | |
60 | + } | |
61 | + | |
62 | + public String getSsyBT() { | |
63 | + return ssyBT; | |
64 | + } | |
65 | + | |
66 | + public void setSsyBT(String ssyBT) { | |
67 | + this.ssyBT = ssyBT; | |
68 | + } | |
69 | + | |
70 | + public String getSzyBT() { | |
71 | + return szyBT; | |
72 | + } | |
73 | + | |
74 | + public void setSzyBT(String szyBT) { | |
75 | + this.szyBT = szyBT; | |
76 | + } | |
77 | + | |
78 | + public String getCvp() { | |
79 | + return cvp; | |
80 | + } | |
81 | + | |
82 | + public void setCvp(String cvp) { | |
83 | + this.cvp = cvp; | |
84 | + } | |
85 | + | |
86 | + public String getMeanAP() { | |
87 | + return meanAP; | |
88 | + } | |
89 | + | |
90 | + public void setMeanAP(String meanAP) { | |
91 | + this.meanAP = meanAP; | |
92 | + } | |
93 | + | |
94 | + public String getPbpi() { | |
95 | + return pbpi; | |
96 | + } | |
97 | + | |
98 | + public void setPbpi(String pbpi) { | |
99 | + this.pbpi = pbpi; | |
100 | + } | |
101 | + | |
102 | + public String getBsa() { | |
103 | + return bsa; | |
104 | + } | |
105 | + | |
106 | + public void setBsa(String bsa) { | |
107 | + this.bsa = bsa; | |
108 | + } | |
109 | + | |
110 | + public String getTotalBloodVolume() { | |
111 | + return totalBloodVolume; | |
112 | + } | |
113 | + | |
114 | + public void setTotalBloodVolume(String totalBloodVolume) { | |
115 | + this.totalBloodVolume = totalBloodVolume; | |
116 | + } | |
117 | + | |
118 | + public String getSff() { | |
119 | + return sff; | |
120 | + } | |
121 | + | |
122 | + public void setSff(String sff) { | |
123 | + this.sff = sff; | |
124 | + } | |
125 | + | |
126 | + public String getBmi() { | |
127 | + return bmi; | |
128 | + } | |
129 | + | |
130 | + public void setBmi(String bmi) { | |
131 | + this.bmi = bmi; | |
132 | + } | |
133 | + | |
134 | + public String getCardiacOutput() { | |
135 | + return cardiacOutput; | |
136 | + } | |
137 | + | |
138 | + public void setCardiacOutput(String cardiacOutput) { | |
139 | + this.cardiacOutput = cardiacOutput; | |
140 | + } | |
141 | + | |
142 | + public String getWzzl() { | |
143 | + return wzzl; | |
144 | + } | |
145 | + | |
146 | + public void setWzzl(String wzzl) { | |
147 | + this.wzzl = wzzl; | |
148 | + } | |
149 | + | |
150 | + public String getAestheticVolume() { | |
151 | + return aestheticVolume; | |
152 | + } | |
153 | + | |
154 | + public void setAestheticVolume(String aestheticVolume) { | |
155 | + this.aestheticVolume = aestheticVolume; | |
156 | + } | |
157 | + | |
158 | + public String getCl() { | |
159 | + return cl; | |
160 | + } | |
161 | + | |
162 | + public void setCl(String cl) { | |
163 | + this.cl = cl; | |
164 | + } | |
165 | + | |
166 | + public String getCardiacIndex() { | |
167 | + return cardiacIndex; | |
168 | + } | |
169 | + | |
170 | + public void setCardiacIndex(String cardiacIndex) { | |
171 | + this.cardiacIndex = cardiacIndex; | |
172 | + } | |
173 | + | |
174 | + public String getCompliance() { | |
175 | + return compliance; | |
176 | + } | |
177 | + | |
178 | + public void setCompliance(String compliance) { | |
179 | + this.compliance = compliance; | |
180 | + } | |
181 | + | |
182 | + public String getHeartRate() { | |
183 | + return heartRate; | |
184 | + } | |
185 | + | |
186 | + public void setHeartRate(String heartRate) { | |
187 | + this.heartRate = heartRate; | |
188 | + } | |
189 | + | |
190 | + public String getCbf() { | |
191 | + return cbf; | |
192 | + } | |
193 | + | |
194 | + public void setCbf(String cbf) { | |
195 | + this.cbf = cbf; | |
196 | + } | |
197 | + | |
198 | + public String getBloodViscosity() { | |
199 | + return bloodViscosity; | |
200 | + } | |
201 | + | |
202 | + public void setBloodViscosity(String bloodViscosity) { | |
203 | + this.bloodViscosity = bloodViscosity; | |
204 | + } | |
205 | + | |
206 | + public String getArTime() { | |
207 | + return arTime; | |
208 | + } | |
209 | + | |
210 | + public void setArTime(String arTime) { | |
211 | + this.arTime = arTime; | |
212 | + } | |
213 | + | |
214 | + public String getParameterResult() { | |
215 | + return parameterResult; | |
216 | + } | |
217 | + | |
218 | + public void setParameterResult(String parameterResult) { | |
219 | + this.parameterResult = parameterResult; | |
220 | + } | |
221 | + | |
222 | + public String getParameterGuide() { | |
223 | + return parameterGuide; | |
224 | + } | |
225 | + | |
226 | + public void setParameterGuide(String parameterGuide) { | |
227 | + this.parameterGuide = parameterGuide; | |
228 | + } | |
229 | + | |
230 | + public String getPulse() { | |
231 | + return pulse; | |
232 | + } | |
233 | + | |
234 | + public void setPulse(String pulse) { | |
235 | + this.pulse = pulse; | |
236 | + } | |
237 | + | |
238 | + public String getMeasureEnd() { | |
239 | + return measureEnd; | |
240 | + } | |
241 | + | |
242 | + public void setMeasureEnd(String measureEnd) { | |
243 | + this.measureEnd = measureEnd; | |
244 | + } | |
245 | + | |
246 | + public String getExit() { | |
247 | + return exit; | |
248 | + } | |
249 | + | |
250 | + public void setExit(String exit) { | |
251 | + this.exit = exit; | |
252 | + } | |
253 | +} |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/annualReportController.java
View file @
1e535fe
... | ... | @@ -32,7 +32,7 @@ |
32 | 32 | @RequestParam(required = false) String proviceId, |
33 | 33 | @RequestParam(required = false) String cityId, |
34 | 34 | HttpServletResponse httpServletResponse) { |
35 | - if (StringUtils.isEmpty(proviceId) && StringUtils.isEmpty(cityId)) { | |
35 | + if (StringUtils.isEmpty(proviceId) && StringUtils.isEmpty(cityId) && StringUtils.isEmpty(time)) { | |
36 | 36 | return; |
37 | 37 | } |
38 | 38 | annualReportFacade.queryAnnualReport(getUserId(request), time, proviceId, cityId, httpServletResponse); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/pihController.java
View file @
1e535fe
1 | +package com.lyms.platform.operate.web.controller; | |
2 | + | |
3 | +import com.lyms.platform.common.base.BaseController; | |
4 | +import com.lyms.platform.common.result.BaseResponse; | |
5 | +import com.lyms.platform.operate.web.service.PihService; | |
6 | +import com.lyms.platform.pojo.PihParameterModel; | |
7 | +import org.springframework.beans.factory.annotation.Autowired; | |
8 | +import org.springframework.stereotype.Controller; | |
9 | +import org.springframework.web.bind.annotation.RequestBody; | |
10 | +import org.springframework.web.bind.annotation.RequestMapping; | |
11 | +import org.springframework.web.bind.annotation.RequestMethod; | |
12 | +import org.springframework.web.bind.annotation.ResponseBody; | |
13 | + | |
14 | +import javax.validation.Valid; | |
15 | + | |
16 | + | |
17 | +@Controller | |
18 | +@RequestMapping(value = "/pih") | |
19 | +public class pihController extends BaseController { | |
20 | + | |
21 | + @Autowired | |
22 | + private PihService pihService; | |
23 | + | |
24 | + | |
25 | + @ResponseBody | |
26 | + @RequestMapping(value = "/add", method = RequestMethod.POST) | |
27 | + public void addPih(@Valid @RequestBody PihParameterModel parameterModel) { | |
28 | + pihService.addPih(parameterModel); | |
29 | + } | |
30 | + | |
31 | + | |
32 | + @RequestMapping(value = "/query", method = RequestMethod.GET) | |
33 | + @ResponseBody | |
34 | + public BaseResponse queryAllPih() { | |
35 | + | |
36 | + | |
37 | + return null; | |
38 | + } | |
39 | + | |
40 | + @ResponseBody | |
41 | + @RequestMapping(value = "/queyrInfo", method = RequestMethod.GET) | |
42 | + public BaseResponse query(String cardNo) { | |
43 | + return pihService.queryInfo(cardNo); | |
44 | + } | |
45 | + | |
46 | +} |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/PihService.java
View file @
1e535fe
1 | +package com.lyms.platform.operate.web.service; | |
2 | + | |
3 | +import com.lyms.platform.common.result.BaseResponse; | |
4 | +import com.lyms.platform.pojo.PihParameterModel; | |
5 | + | |
6 | +public interface PihService { | |
7 | + public void addPih(PihParameterModel parameterModel); | |
8 | + | |
9 | + public BaseResponse queryInfo(String cardNo); | |
10 | +} |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PihServiceImpl.java
View file @
1e535fe
1 | +package com.lyms.platform.operate.web.service.impl; | |
2 | + | |
3 | +import com.lyms.platform.common.result.BaseResponse; | |
4 | +import com.lyms.platform.common.result.RespBuilder; | |
5 | +import com.lyms.platform.operate.web.service.PihService; | |
6 | +import com.lyms.platform.pojo.Patients; | |
7 | +import com.lyms.platform.pojo.PihParameterModel; | |
8 | +import org.springframework.beans.factory.annotation.Autowired; | |
9 | +import org.springframework.data.mongodb.core.MongoTemplate; | |
10 | +import org.springframework.data.mongodb.core.query.Criteria; | |
11 | +import org.springframework.data.mongodb.core.query.Query; | |
12 | +import org.springframework.stereotype.Service; | |
13 | + | |
14 | +import java.util.HashMap; | |
15 | +import java.util.Map; | |
16 | + | |
17 | +@Service | |
18 | +public class PihServiceImpl extends BaseServiceImpl implements PihService { | |
19 | + | |
20 | + @Autowired | |
21 | + private MongoTemplate mongoTemplate; | |
22 | + | |
23 | + @Override | |
24 | + public void addPih(PihParameterModel parameterModel) { | |
25 | + mongoTemplate.save(parameterModel); | |
26 | + | |
27 | + } | |
28 | + | |
29 | + @Override | |
30 | + public BaseResponse queryInfo(String cardNo) { | |
31 | + Patients patients = mongoTemplate.findOne(Query.query(Criteria.where("cardNo").is(cardNo)), Patients.class); | |
32 | + Map<String, Object> map = new HashMap<>(); | |
33 | + if (patients != null) { | |
34 | + map.put("username", patients.getUsername()); | |
35 | + map.put("cardNo", patients.getCardNo()); | |
36 | + map.put("hospitalId", patients.getHospitalId()); | |
37 | + map.put("age", patients.getAge()); | |
38 | + map.put("phone", patients.getPhone()); | |
39 | + map.put("vcCardNo", patients.getVcCardNo()); | |
40 | + return RespBuilder.buildSuccess(map); | |
41 | + } | |
42 | + return RespBuilder.buildSuccess("没有此人信息"); | |
43 | + } | |
44 | + | |
45 | +} |