-
Notifications
You must be signed in to change notification settings - Fork 139
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
Atlas Cohort Definition Validation Feature #2593
base: master
Are you sure you want to change the base?
Conversation
Merge Annotation V2 changes
…inition-manager.html
I have some additional tweaks to make on my end after the WebAPI PR was updated. Thanks! |
Okay, I'm done on my end. @jduke99 is still reviewing on our end. |
Charity, I noticed that this PR is comming off of a branch from your master branch in your fork, which is making it a little awkward. It makes getting upstream fetches from OHDSI/Atlas master merged into your fork's master branch which contains both your new functionality and upstream commits. Can you isolate your new feature (annotation) into a dedicated branch in your fork? |
Looking further into the implementation, I think the problem stems from QuestionSetForm.js, around lines 128-151:
If you notice, each of the
Once that happens, you can't call Perhaps part of an issue at play here is a misunderstanding between a 'viewmodel' and the raw data, but we have a few places in code that could serve as an example about how you can define a JavaScript object to represent the object as a viewmodel. It looks like Question and Answer have an implementation:
However, I would have put this into a separate file for annotation 'types', and passed a constructor object into the function (ie: Examples of where we create viewmodels to represent data objects: Etc. I use these as examples because these elements are the ones used to capture user input for cohort definitions, and so it might be a good guide on creating objects meant to capture user input about question set definitions. |
Updates for cohort annotation PR
This pull request creates the Atlas features for cohort definition validation. There are primarily three functional areas impacted by this new feature. This pull request corresponds to this WebAPI pull request.
#2491 describes this feature in greater detail
@jduke99 can provide additional details.