| | |
| | | import cn.lihu.jh.module.ecg.dal.mysql.appointment.AppointmentMapper; |
| | | import cn.lihu.jh.framework.common.pojo.PageResult; |
| | | |
| | | import cn.lihu.jh.module.ecg.feign.ExmRequest; |
| | | import cn.lihu.jh.module.ecg.feign.HisFeeConfirmReqBody; |
| | | import cn.lihu.jh.module.ecg.feign.Item; |
| | | import cn.lihu.jh.module.ecg.feign.MsgHeader; |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.fasterxml.jackson.dataformat.xml.XmlMapper; |
| | | import org.junit.Test; |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| | | import org.springframework.boot.test.context.SpringBootTest; |
| | |
| | | System.out.println("Domain: " + Integer.valueOf(domain)); |
| | | } |
| | | } |
| | | |
| | | @Test |
| | | public void test2() throws JsonProcessingException { |
| | | HisFeeConfirmReqBody hisFeeConfirmReqBody = new HisFeeConfirmReqBody(); |
| | | MsgHeader msgHeader = new MsgHeader(); |
| | | msgHeader.setMsgType("ODS_2212"); |
| | | msgHeader.setMsgVersion("3.0"); |
| | | msgHeader.setSender("ECG"); |
| | | hisFeeConfirmReqBody.setMsgHeader(msgHeader); |
| | | Item item = new Item(); |
| | | item.setItemCode("559542128"); |
| | | item.setItemStatus("5"); |
| | | item.setExeOrganization("47162057-2"); |
| | | item.setExeDeptName("心电科"); |
| | | item.setExeDept("心电科"); |
| | | item.setExeDoctor("0457"); |
| | | item.setExeDoctorName("徐小英"); |
| | | item.setExeDateTime("2024-11-21 16:28:28"); |
| | | ExmRequest exmRequest = new ExmRequest(); |
| | | exmRequest.setAuthorOrganization("47162057-2"); |
| | | exmRequest.setRequestId("815769404"); |
| | | exmRequest.setPatientType("01"); |
| | | exmRequest.setItem(item); |
| | | hisFeeConfirmReqBody.setExmRequest(exmRequest); |
| | | XmlMapper xmlMapper = new XmlMapper(); |
| | | String xml = xmlMapper.writeValueAsString(hisFeeConfirmReqBody); |
| | | System.out.println(xml); |
| | | } |
| | | } |