Skip to content

Commit

Permalink
Minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
isc-lperezra committed Sep 4, 2024
1 parent 4d19040 commit c652467
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iris/shared/hl7/messagesa01_es.hl7
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/ENCODER/BP/AnalyzeTextProcess.cls
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit c652467

Please sign in to comment.