|
@@ -29,6 +29,7 @@ public class FirstCourseRecordAI extends ModelAI {
|
|
public static List<String> medicalTextType = Arrays.asList("FirstCoursera_cx", "Diagnoses_cx");
|
|
public static List<String> medicalTextType = Arrays.asList("FirstCoursera_cx", "Diagnoses_cx");
|
|
public static String entityRelationObject = "entity_relation_object";
|
|
public static String entityRelationObject = "entity_relation_object";
|
|
public static String outputs = "outputs";
|
|
public static String outputs = "outputs";
|
|
|
|
+ public static String content = "content";
|
|
|
|
|
|
public void medrec(InputInfo inputInfo, CRFServiceClient crfServiceClient) {
|
|
public void medrec(InputInfo inputInfo, CRFServiceClient crfServiceClient) {
|
|
JSONArray crfContent = new JSONArray();
|
|
JSONArray crfContent = new JSONArray();
|
|
@@ -56,11 +57,12 @@ public class FirstCourseRecordAI extends ModelAI {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 病历特点
|
|
* 病历特点
|
|
|
|
+ *
|
|
* @param jsonObject
|
|
* @param jsonObject
|
|
* @param inputInfo
|
|
* @param inputInfo
|
|
*/
|
|
*/
|
|
public void putCaseCharacteristicCrfData(JSONObject jsonObject, InputInfo inputInfo) {
|
|
public void putCaseCharacteristicCrfData(JSONObject jsonObject, InputInfo inputInfo) {
|
|
- JSONObject aiOut = loadEntity(jsonObject, entityRelationObject, outputs);
|
|
|
|
|
|
+ JSONObject aiOut = loadEntity(jsonObject, entityRelationObject, outputs, content);
|
|
//使用现病史结构来处理病历特点
|
|
//使用现病史结构来处理病历特点
|
|
EntityProcessClinic entityProcessClinic = new EntityProcessClinic();
|
|
EntityProcessClinic entityProcessClinic = new EntityProcessClinic();
|
|
PresentLabel presentLabel = entityProcessClinic.extractEntity(aiOut);
|
|
PresentLabel presentLabel = entityProcessClinic.extractEntity(aiOut);
|
|
@@ -70,11 +72,12 @@ public class FirstCourseRecordAI extends ModelAI {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 初步诊断
|
|
* 初步诊断
|
|
|
|
+ *
|
|
* @param jsonObject
|
|
* @param jsonObject
|
|
* @param inputInfo
|
|
* @param inputInfo
|
|
*/
|
|
*/
|
|
public void putInitialDiagCrfData(JSONObject jsonObject, InputInfo inputInfo) {
|
|
public void putInitialDiagCrfData(JSONObject jsonObject, InputInfo inputInfo) {
|
|
- JSONObject aiOut = loadEntity(jsonObject, entityRelationObject, outputs);
|
|
|
|
|
|
+ JSONObject aiOut = loadEntity(jsonObject, entityRelationObject, outputs, content);
|
|
//诊断信息
|
|
//诊断信息
|
|
EntityProcessDiag entityProcessDiag = new EntityProcessDiag();
|
|
EntityProcessDiag entityProcessDiag = new EntityProcessDiag();
|
|
List<Diag> diags = entityProcessDiag.extractEntity(aiOut);
|
|
List<Diag> diags = entityProcessDiag.extractEntity(aiOut);
|
|
@@ -83,11 +86,12 @@ public class FirstCourseRecordAI extends ModelAI {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 诊断依据
|
|
* 诊断依据
|
|
|
|
+ *
|
|
* @param jsonObject
|
|
* @param jsonObject
|
|
* @param inputInfo
|
|
* @param inputInfo
|
|
*/
|
|
*/
|
|
public void putDiagnosisCrfData(JSONObject jsonObject, InputInfo inputInfo) {
|
|
public void putDiagnosisCrfData(JSONObject jsonObject, InputInfo inputInfo) {
|
|
- JSONObject aiOut = loadEntity(jsonObject, entityRelationObject, outputs);
|
|
|
|
|
|
+ JSONObject aiOut = loadEntity(jsonObject, entityRelationObject, outputs, content);
|
|
//使用现病史结构来处理诊断依据
|
|
//使用现病史结构来处理诊断依据
|
|
EntityProcessClinic entityProcessClinic = new EntityProcessClinic();
|
|
EntityProcessClinic entityProcessClinic = new EntityProcessClinic();
|
|
PresentLabel presentLabel = entityProcessClinic.extractEntity(aiOut);
|
|
PresentLabel presentLabel = entityProcessClinic.extractEntity(aiOut);
|
|
@@ -97,11 +101,12 @@ public class FirstCourseRecordAI extends ModelAI {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 鉴别诊断
|
|
* 鉴别诊断
|
|
|
|
+ *
|
|
* @param jsonObject
|
|
* @param jsonObject
|
|
* @param inputInfo
|
|
* @param inputInfo
|
|
*/
|
|
*/
|
|
public void putDifferentialDiagCrfData(JSONObject jsonObject, InputInfo inputInfo) {
|
|
public void putDifferentialDiagCrfData(JSONObject jsonObject, InputInfo inputInfo) {
|
|
- JSONObject aiOut = loadEntity(jsonObject, entityRelationObject, outputs);
|
|
|
|
|
|
+ JSONObject aiOut = loadEntity(jsonObject, entityRelationObject, outputs, content);
|
|
//诊断信息
|
|
//诊断信息
|
|
EntityProcessDiag entityProcessDiag = new EntityProcessDiag();
|
|
EntityProcessDiag entityProcessDiag = new EntityProcessDiag();
|
|
List<Diag> diags = entityProcessDiag.extractEntity(aiOut);
|
|
List<Diag> diags = entityProcessDiag.extractEntity(aiOut);
|
|
@@ -110,11 +115,12 @@ public class FirstCourseRecordAI extends ModelAI {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 诊疗计划
|
|
* 诊疗计划
|
|
|
|
+ *
|
|
* @param jsonObject
|
|
* @param jsonObject
|
|
* @param inputInfo
|
|
* @param inputInfo
|
|
*/
|
|
*/
|
|
public void putTreatPlanCrfData(JSONObject jsonObject, InputInfo inputInfo) {
|
|
public void putTreatPlanCrfData(JSONObject jsonObject, InputInfo inputInfo) {
|
|
- JSONObject aiOut = loadEntity(jsonObject, entityRelationObject, outputs);
|
|
|
|
|
|
+ JSONObject aiOut = loadEntity(jsonObject, entityRelationObject, outputs, content);
|
|
//诊疗计划
|
|
//诊疗计划
|
|
EntityProcessTreatPlan entityProcessTreatPlan = new EntityProcessTreatPlan();
|
|
EntityProcessTreatPlan entityProcessTreatPlan = new EntityProcessTreatPlan();
|
|
TreatPlanLabel treatPlanLabel = entityProcessTreatPlan.extractEntity(aiOut);
|
|
TreatPlanLabel treatPlanLabel = entityProcessTreatPlan.extractEntity(aiOut);
|