diff --git a/iris/shared/hl7/messagesa01_es.hl7 b/iris/shared/hl7/messagesa01_es.hl7 index 0cc64a6..a0e90ff 100644 --- a/iris/shared/hl7/messagesa01_es.hl7 +++ b/iris/shared/hl7/messagesa01_es.hl7 @@ -23,7 +23,7 @@ MSH|^~\&|HIS|HULP|EMPI||||ADT^A01|884471|P|2.5.1 EVN|A01| PID|||1398528318^^^SERMAS^SN~900263^^^HULP^PI||LÓPEZ CABEZUELA^ÁLVARO^^^||19560121|F|||PASEO MARIO FERNÁNDEZ 258 1 DERECHA^^MADRID^MADRID^28627^SPAIN||555819817^PRN^^ALVARO.LOPEZ@VODAFONE.COM|||||||||||||||||N| PV1||N -DG1|1|||Granulomatosis eosinofílica||A|| +DG1|1|||VIH Estadio 3||A|| MSH|^~\&|HIS|HULP|EMPI||||ADT^A01|180968|P|2.5.1 diff --git a/src/ENCODER/BP/AnalyzeTextProcess.cls b/src/ENCODER/BP/AnalyzeTextProcess.cls index 2f7cdbe..9d0987b 100644 --- a/src/ENCODER/BP/AnalyzeTextProcess.cls +++ b/src/ENCODER/BP/AnalyzeTextProcess.cls @@ -51,7 +51,7 @@ Method AnalyzeText(text As %String, analysisId As %String, language As %String) i = 0 for text in texts: iris.cls("Ens.Util.Log").LogInfo("ENCODER.BP.AnalyzeTextProcess", "AnalyzeText", text) - sqlsentence = "INSERT INTO ENCODER_Object.TextMatches (CodeId, Description, Similarity, AnalysisId, RawText) SELECT * FROM (SELECT CodeId, Description, VECTOR_DOT_PRODUCT(VectorDescription, TO_VECTOR('"+str(embeddingList[i])+"', DECIMAL)) AS Similarity, '"+analysisId+"', '"+text+"' FROM ENCODER_Object.Codes) WHERE Similarity > 0.75" + sqlsentence = "INSERT INTO ENCODER_Object.TextMatches (CodeId, Description, Similarity, AnalysisId, RawText) SELECT * FROM (SELECT CodeId, Description, VECTOR_DOT_PRODUCT(VectorDescription, TO_VECTOR('"+str(embeddingList[i])+"', DECIMAL)) AS Similarity, '"+analysisId+"', '"+text+"' FROM ENCODER_Object.Codes) WHERE Similarity > 0.7" #iris.cls("Ens.Util.Log").LogInfo("ENCODER.BP.AnalyzeTextProcess", "AnalyzeText", sqlsentence) iris.cls("ENCODER.Utils.Manager").ExecuteInsertQuery(sqlsentence) iris.cls("Ens.Util.Log").LogInfo("ENCODER.BP.AnalyzeTextProcess", "AnalyzeText", "Sentence finished")