Skip to content
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

Feat/dat #561

Merged
merged 22 commits into from
Aug 7, 2019
Merged

Feat/dat #561

merged 22 commits into from
Aug 7, 2019

Conversation

paulineribeyre
Copy link
Contributor

@paulineribeyre paulineribeyre commented Aug 1, 2019

Updates for the Data availability tool

Needs a new "dataAvailabilityToolConfig" block in gitops.json. Example:

  "dataAvailabilityToolConfig": {
    "guppyConfig": {
      "dataType": "follow_up",
      "mainField": "harmonized_visit_number",
      "mainFieldTitle": "Visit number",
      "mainFieldIsNumeric": true,
      "aggFields": [
        "age_at_visit",
        "abc",
        "abcv",
        "drug_used",
        "thrpy",
        "thrpyv",
        "trz",
        "trzv",
        "cd4dt",
        "chol",
        "leu2n",
        "viral_load",
        "cocuse",
        "drinkcat",
        "eductn",
        "emotl",
        "employ",
        "income",
        "insurance",
        "paidsex"
      ],
      "fieldMapping": [
        { "field": "abc", "name": "Abcavir_since_last_visit" },
        { "field": "abcv", "name": "Abcavir_at_visit" },
        { "field": "drug_used", "name": "drug_taken_frequency_6mons" },
        { "field": "thrpy", "name": "therapy_type_since_last_visit" },
        { "field": "thrpyv", "name": "therapy_type_at_visit" },
        { "field": "trz", "name": "Terazol_since_last_visit" },
        { "field": "trzv", "name": "Terazol_at_visit" },
        { "field": "cd4dt", "name": "year_CD4_collected" },
        { "field": "chol", "name": "Cholesterol(mg/dL)" },
        { "field": "leu2n", "name": "CD8_positive_cells" },
        { "field": "drinkcat", "name": "drink_category" },
        { "field": "eductn", "name": "highest_education" },
        { "field": "emotl", "name": "emotion_wellness" }
      ],
      "colorRange": ["#09e8d9", "#e36702"]
    }
  }

mainFieldIsNumeric: optional, default is false
fieldMapping: optional
colorRange: optional, default is ['#EBF7FB', '#3188C6']

TODOS:

  • un-hardcode grid height

New Features

  • Data Availability Tool in data explorer

Dependency updates

  • DAT requires Guppy >= 0.3.0

Deployment changes

  • DAT requires Guppy >= 0.3.0

Copy link
Collaborator

@mfshao mfshao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@paulineribeyre
Copy link
Contributor Author

paulineribeyre commented Aug 6, 2019

when tiered access is enabled, the query that gets the list of IDs from the current filter is unauthorized (the user doesn't have access to query these IDs), so the heatmap would be displayed without a filter.
i am choosing to completely hide the heatmap instead of displaying "This chart is hidden because it contains fewer than xxx subjects" like the other charts do, because the reason for hiding it is not the number of subjects

edit: displaying "This chart is hidden because it contains data you do not have access to" instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants