-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemented Concept Set editor for Feature Analysis and CC #1461
Conversation
import javax.ws.rs.NotFoundException; | ||
import java.util.*; | ||
import java.util.function.Predicate; | ||
import java.util.stream.Collectors; | ||
|
||
@Service | ||
@Transactional(readOnly = true) | ||
public class FeAnalysisServiceImpl extends AbstractDaoService implements FeAnalysisService { | ||
public class FeAnalysisServiceImpl extends AbstractVocabularyService implements FeAnalysisService { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks very strange to have the FeAnalysisService extend an AbstractVocabularyService. We'll defintely have certain services needing to pull in functions from different more-atomoic support services, so woudldn't encapsulation vs. inheritance make more sense here to support the shared functionality?
src/main/java/org/ohdsi/webapi/service/CohortDefinitionService.java
Outdated
Show resolved
Hide resolved
…fa-concept-set Conflicts: src/main/java/org/ohdsi/webapi/cohortcharacterization/CcService.java src/main/java/org/ohdsi/webapi/service/CohortDefinitionService.java
I merged master into this PR and found some conflicts. Please review and let me know if something was missed. It's still an outstanding question: having CohrotDefinitionService extend AbstractVocabularyService is strange: Vocabulary service and CohortDefinition services are 2 different things, even tho one has a dependency on the other. Spring lets you easily plug in (via |
Pushed a commit to fix a SqlSerer migration script: can't use SELECT NEXT VALUE FOR() in a UNION ALL statement. |
Import CC is failing. I had a CC with several cohort defs and a few strata critera defined and when I import the design into this branch, the |
I'm debugging this and found some items that are confusing, but want to make sure I am not missing something. also, If you are actively working on this, please indicate this in this issue so that we don't collide with each other: When performing the import, the concept sets are not being assigned to the newly-imported cohort characterization design via
It does interpret the expression as an array, so the only confusion here is the name of the entity (the entity is not a single concept set). We can't change this name since it's a public class that may break an API, but this is just good to know. However, looking elsewhere in the code for places where cocnept sets are being referneced in the CC, I found
This is quite confusing: it looks like if the 'updated' concept set has a From my perspective, the followign needs to be added to
But that still leaves the code in Please share your thoughts. Thank you. |
Ok, I found my source of confusion: The conceptSetRepsitory reference in CC is not an actual 'ConceptSetRepository' that we see in the context of the vocabulary service, but rather it's a separate concpetSetRepository of type 'CcConceptSetRepository' which simply saves a list of concept sets as a JSON form to the In any case, this code can live on since it isn't as breaking as I thought it was...and I 'll proceed with making the fixes around the 'import' action losing the concept sets, |
I've resolved the import CC issue. |
…s to consuming services. Deleted AbstractVocabularyService.java
I marked this for the June 15 sprint: I think this PR is complete, since I do not see any conflict between atlas-master and this PR (I tested importing a CC design into the master branch on atlas). I think we're good to go. |
Sorry, I need to make a correction: this change does not work with a the 2.8 (master) atlas UI client, but it does work with the 2.7.6 release...so, I believe we are OK to merge this PR as it will work with 2.7.6 and the open PR for atlas OHDSI/Atlas#2132 will resolve the issue in master once that is completed. When I thought that this was an issue with 2.7 vs. 2.8, I dismissed my review, but now that I can confirm that 2.7 branch does work with this PR, I can re-approve this. |
…WebAPI into issue-1595-fa-concept-set Conflicts: src/main/java/org/ohdsi/webapi/cohortcharacterization/CcController.java src/main/java/org/ohdsi/webapi/feanalysis/FeAnalysisController.java
@wivern, I merged master into this branch to get it ready for the OHDSI/Atlas#2132 (which this branch reflrect the issue that is being fixed in that PR, so I'm getting both sides (webapi/atlas) ready. I'm experiencing a problem when launching the branch after merge:
I think @anthonysena mentioned that there was an issue related to disabled security on one of the other PRs, but I'm surprised to have this issue based off of a merge from master. Can you please pull this branch and check if you're getting the same error when security is disabled, and let me know if you know what might be happening here? Note: I just checked out master branch, and I am getting the same error. So, we're currently in a state where you can't launch master branch when security is disabled, and that's a very big problem. |
@chrisknoll There was a mistake in the master branch. Now it's fixed with #1599 |
@wivern, Could you update the description of this PR to include a brief bullet list that describes with the intended changes are here? It's a bit hard to tell based on the various merges (and this PR has been open for a long time now). |
Resolves OHDSI/Atlas#1595