|
@@ -1,13 +1,30 @@
|
|
|
package com.lemon.lifecenter;
|
|
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
|
|
|
|
+import com.lemon.lifecenter.dto.PatientPHRHistoryDTO;
|
|
|
+import com.lemon.lifecenter.service.PHRService;
|
|
|
+
|
|
|
@SpringBootTest
|
|
|
class LifeCenterApplicationTests {
|
|
|
|
|
|
@Test
|
|
|
void contextLoads() {
|
|
|
}
|
|
|
+
|
|
|
+ @Autowired PHRService phrService;
|
|
|
+
|
|
|
+ @Test
|
|
|
+ void insertPhr() {
|
|
|
+ PatientPHRHistoryDTO dto = new PatientPHRHistoryDTO();
|
|
|
+ dto.setPatientIdx(1046);
|
|
|
+ dto.setPhrType("temperature");
|
|
|
+ dto.setPhrValue(36.5f);
|
|
|
+ dto.setRecordedBy("홍길동");
|
|
|
+
|
|
|
+ phrService.insertPHR(dto);
|
|
|
+ }
|
|
|
|
|
|
}
|