Skip to content

Commit

Permalink
Fix groupIds of TermCodes (#618)
Browse files Browse the repository at this point in the history
For TermCodes belonging to multiple groups, the groupIds attribute
contained a mixture of group ids and group names. This changes it to the
actual group ids.
  • Loading branch information
J3173 authored Aug 7, 2024
1 parent bef8f81 commit 0e79616
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void addCode(TermCodeImpl code) {
if(termCode != null) {
//sometimes terms occur twice. They mean the same, but are in two groups.
//todo: properly implement groups
termCode.getGroupIds().add(code.getGroupName());
termCode.getGroupIds().addAll(code.getGroupIds());
} else {
termCodesByLanguage.put(code.getLanguage(), code);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@
"codeString" : "523",
"description" : "remoção",
"groupName" : "tipo de auditoria de modificação",
"groupIds" : [ "audit change type", "estado de ciclo de vida de versão" ]
"groupIds" : [ "audit change type", "version lifecycle state" ]
}
}
},
Expand Down Expand Up @@ -722,15 +722,15 @@
"codeString" : "253",
"description" : "不明",
"groupName" : "監査変更種別",
"groupIds" : [ "audit change type", "participation function", "subject relationship", "null flavours" ]
"groupIds" : [ "audit change type", "participation function", "subject relationships", "null flavours" ]
},
"pt" : {
"terminologyId" : "openehr",
"language" : "pt",
"codeString" : "253",
"description" : "desconhecido",
"groupName" : "tipo de auditoria de modificação",
"groupIds" : [ "audit change type", "função de participação", "relacionamento de sujeito", "null flavours" ]
"groupIds" : [ "audit change type", "participation function", "subject relationship", "null flavours" ]
}
}
},
Expand Down Expand Up @@ -4600,7 +4600,7 @@
"codeString" : "532",
"description" : "completo",
"groupName" : "estado de ciclo de vida de versão",
"groupIds" : [ "estados de instrução", "version lifecycle state" ]
"groupIds" : [ "instruction states", "version lifecycle state" ]
}
}
},
Expand Down Expand Up @@ -15416,7 +15416,7 @@
"codeString" : "523",
"description" : "remoção",
"groupName" : "tipo de auditoria de modificação",
"groupIds" : [ "audit change type", "estado de ciclo de vida de versão" ]
"groupIds" : [ "audit change type", "version lifecycle state" ]
}
}
},
Expand Down Expand Up @@ -15468,15 +15468,15 @@
"codeString" : "253",
"description" : "不明",
"groupName" : "監査変更種別",
"groupIds" : [ "audit change type", "participation function", "subject relationship", "null flavours" ]
"groupIds" : [ "audit change type", "participation function", "subject relationships", "null flavours" ]
},
"pt" : {
"terminologyId" : "openehr",
"language" : "pt",
"codeString" : "253",
"description" : "desconhecido",
"groupName" : "tipo de auditoria de modificação",
"groupIds" : [ "audit change type", "função de participação", "relacionamento de sujeito", "null flavours" ]
"groupIds" : [ "audit change type", "participation function", "subject relationship", "null flavours" ]
}
}
},
Expand Down Expand Up @@ -19346,7 +19346,7 @@
"codeString" : "532",
"description" : "completo",
"groupName" : "estado de ciclo de vida de versão",
"groupIds" : [ "estados de instrução", "version lifecycle state" ]
"groupIds" : [ "instruction states", "version lifecycle state" ]
}
}
},
Expand Down

0 comments on commit 0e79616

Please sign in to comment.