|
@ -8,16 +8,14 @@ import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 智业服务接口
|
|
|
* */
|
|
|
@Controller
|
|
|
@RestController
|
|
|
@RequestMapping(value = "/third/archives/")
|
|
|
@Api(description = "智业档案服务接口")
|
|
|
public class ArchivesController {
|
|
@ -28,7 +26,6 @@ public class ArchivesController {
|
|
|
|
|
|
/********************************* 居民档案相关接口 ****************************************************************/
|
|
|
@RequestMapping(value = "getEhrSickMedicalList",method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
@ApiOperation("查询居民健康体检列表信息接口")
|
|
|
public Result getEhrSickMedicalList(
|
|
|
@ApiParam(name="idcard",value="患者身份证",defaultValue = "350821201112240026")
|
|
@ -49,7 +46,6 @@ public class ArchivesController {
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "getEhrSickMedicalRecord",method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
@ApiOperation("查询居民健康体检详情接口")
|
|
|
public Result getEhrSickMedicalRecord(
|
|
|
@ApiParam(name="medicalNo",value="体检ID",defaultValue = "")
|
|
@ -70,7 +66,6 @@ public class ArchivesController {
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "uploadFollowup",method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
@ApiOperation("上传随访记录接口")
|
|
|
public Result uploadFollowup(@ApiParam(name="id",value="随访记录id",defaultValue = "4")
|
|
|
@RequestParam(value="id",required = true) Long id){
|
|
@ -90,7 +85,6 @@ public class ArchivesController {
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "uploadHealthIndex",method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
@ApiOperation("上传体征指标接口")
|
|
|
public Result uploadHealthIndex(@ApiParam(name="id",value="体征记录id",defaultValue = "5226")
|
|
|
@RequestParam(value="id",required = true) Long id){
|
|
@ -108,4 +102,68 @@ public class ArchivesController {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*****************************************自助建档***************************************************/
|
|
|
@RequestMapping(value = "getSickArchiveFlag",method = RequestMethod.POST)
|
|
|
@ApiOperation("查询居民是否有建立健康档案接口")
|
|
|
public Result getSickArchiveFlag(
|
|
|
@ApiParam(name="idcard",value="身份证号",defaultValue = "")
|
|
|
@RequestParam(value="idcard",required = true) String idcard){
|
|
|
try {
|
|
|
String response = archivesService.getSickArchiveFlag(idcard);
|
|
|
return Result.success("查询居民是否有建立健康档案接口成功!",response);
|
|
|
} catch (Exception ex) {
|
|
|
if(ex instanceof ApiException)
|
|
|
{
|
|
|
ApiException apiEx = (ApiException) ex;
|
|
|
return Result.error(apiEx.errorCode(),ex.getMessage());
|
|
|
}
|
|
|
else{
|
|
|
return Result.error(ex.getMessage());
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "getSickArchiveRecord",method = RequestMethod.POST)
|
|
|
@ApiOperation("查询居民健康档案信息接口")
|
|
|
public Result getSickArchiveRecord(
|
|
|
@ApiParam(name="idcard",value="身份证号",defaultValue = "")
|
|
|
@RequestParam(value="idcard",required = true) String idcard){
|
|
|
try {
|
|
|
String response = archivesService.getSickArchiveRecord(idcard);
|
|
|
return Result.success("查询居民健康档案信息接口!",response);
|
|
|
} catch (Exception ex) {
|
|
|
if(ex instanceof ApiException)
|
|
|
{
|
|
|
ApiException apiEx = (ApiException) ex;
|
|
|
return Result.error(apiEx.errorCode(),ex.getMessage());
|
|
|
}
|
|
|
else{
|
|
|
return Result.error(ex.getMessage());
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "saveSickArchiveRecord",method = RequestMethod.POST)
|
|
|
@ApiOperation("上传居民档案建档信息接口")
|
|
|
public Result saveSickArchiveRecord(@ApiParam(name="json",value="居民建档信息",defaultValue = "")
|
|
|
@RequestParam(value="json",required = true) String json,
|
|
|
@ApiParam(name="doctor",value="医生code",defaultValue = "")
|
|
|
@RequestParam(value="doctor",required = true) String doctor){
|
|
|
try {
|
|
|
String response = archivesService.saveSickArchiveRecord(json,doctor);
|
|
|
return Result.success("上传居民档案建档信息接口!",response);
|
|
|
} catch (Exception ex) {
|
|
|
if(ex instanceof ApiException)
|
|
|
{
|
|
|
ApiException apiEx = (ApiException) ex;
|
|
|
return Result.error(apiEx.errorCode(),ex.getMessage());
|
|
|
}
|
|
|
else{
|
|
|
return Result.error(ex.getMessage());
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
}
|