{"id":19713361,"url":"https://github.com/ctsit/hide_choice_by_event","last_synced_at":"2025-04-29T18:31:10.841Z","repository":{"id":79003761,"uuid":"139999906","full_name":"ctsit/hide_choice_by_event","owner":"ctsit","description":"A REDCap module that implements an action tag to hide a categorical field choice on a configured list of events","archived":false,"fork":false,"pushed_at":"2024-10-28T21:16:24.000Z","size":50,"stargazers_count":2,"open_issues_count":0,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-05T18:52:09.455Z","etag":null,"topics":["redcap","redcap-external-module","redcap-repo"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ctsit.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-06T15:14:48.000Z","updated_at":"2024-10-28T21:16:27.000Z","dependencies_parsed_at":"2024-11-11T23:15:58.302Z","dependency_job_id":null,"html_url":"https://github.com/ctsit/hide_choice_by_event","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctsit%2Fhide_choice_by_event","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctsit%2Fhide_choice_by_event/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctsit%2Fhide_choice_by_event/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctsit%2Fhide_choice_by_event/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ctsit","download_url":"https://codeload.github.com/ctsit/hide_choice_by_event/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251559853,"owners_count":21609088,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["redcap","redcap-external-module","redcap-repo"],"created_at":"2024-11-11T22:21:14.316Z","updated_at":"2025-04-29T18:31:10.509Z","avatar_url":"https://github.com/ctsit.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hide Choice by Event\n\n[![DOI](https://zenodo.org/badge/139999906.svg)](https://doi.org/10.5281/zenodo.14004245)\n\nA REDCap module that implements an action tag to hide a categorical field choice on a specified list of events.\n\n## Prerequisites\n- REDCap \u003e= 14.0.2\n- PHP \u003e= 7.4\n\n## Easy Installation\n- Obtain this module from the Consortium [REDCap Repo](https://redcap.vanderbilt.edu/consortium/modules/index.php) from the Control Center.\n\n## Manual Installation\n- Clone this repo into `\u003credcap-root\u003e/modules/hide_choice_by_event_v\u003cversion_number\u003e`.\n- Go to **Control Center \u003e Manage External Modules** and enable Hide Choice by Event.\n\n## How to use\nGo to your project home page, click on Manage External Modules link, and then enable Hide Choice by Event.\n\nOnce the module is activated on a project, the `@HIDE-CHOICE-BY-EVENT` tag will be available in the action tag help text of the Online Designer. Add `@HIDE-CHOICE-BY-EVENT` to any categorical field where you would like to hide some of the choices based on the event.\n\nAs an argument you will need to provide a JSON object that tells the tag which choice to hide on which event. It should look something like this:\n```json\n@HIDE-CHOICE-BY-EVENT = [\n    {\n        \"code\":\"1\",\n        \"event\": [\"enrollment_1_arm_1\", \"dose_1_arm_1\"]\n    },\n    {\n        \"code\":\"3\",\n        \"event\": [\"dose_1_arm_1\"]\n    }\n]\n```\nNote that the whitespace in the above example is unnecessary. This example would hide option \"1\" on the \"enrollment_1_arm_1\" and \"dose_1_arm_1\" events. Similarly, it would also hide option \"3\" on the  \"dose_1_arm_1\" event. As can be seen \"code\" signifies which field option to hide. \"event\" indicates for which events this option should be hidden.\n\nTo find a list of unique event names to use for the \"event\" field go to **Project Setup \u003e Define My Events**. The right-most column will contain a list of unique event names.\n\nSee [HideChoiceByEventTest.REDCap.xml](examples/HideChoiceByEventTest.REDCap.xml) for an example of _Hide Choice by Event_ in a longitudinal, 2-arm project.\n\n## Limitations\n\nThis module currently supports only radio buttons, checkboxes, and their enhanced versions. It will not hide choices for any other field types.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctsit%2Fhide_choice_by_event","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fctsit%2Fhide_choice_by_event","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctsit%2Fhide_choice_by_event/lists"}