{"id":19713380,"url":"https://github.com/ctsit/enroll_into_arm","last_synced_at":"2025-04-29T18:31:09.759Z","repository":{"id":79003718,"uuid":"105277415","full_name":"ctsit/enroll_into_arm","owner":"ctsit","description":"A REDCap feature to allow automatic enrollment immediately after randomization","archived":false,"fork":false,"pushed_at":"2018-04-11T17:48:12.000Z","size":25,"stargazers_count":0,"open_issues_count":2,"forks_count":5,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-05T18:52:09.834Z","etag":null,"topics":["redcap","redcap-external-module"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ctsit.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","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}},"created_at":"2017-09-29T13:48:32.000Z","updated_at":"2017-10-25T14:03:23.000Z","dependencies_parsed_at":"2023-03-15T06:15:52.739Z","dependency_job_id":null,"html_url":"https://github.com/ctsit/enroll_into_arm","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctsit%2Fenroll_into_arm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctsit%2Fenroll_into_arm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctsit%2Fenroll_into_arm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctsit%2Fenroll_into_arm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ctsit","download_url":"https://codeload.github.com/ctsit/enroll_into_arm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251559852,"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"],"created_at":"2024-11-11T22:21:36.618Z","updated_at":"2025-04-29T18:31:09.508Z","avatar_url":"https://github.com/ctsit.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Enroll into Arm\n\nA REDCap Module to control the enrollment of subject into a study arm based on the value of a categorical variable. This feature allows automatic enrollment immediately after randomization with the REDCap randomization module.\n\nThis feature also defaults subject_id in the affiliated with the given format.\n\u003cDAG_ID\u003e + \"-\" + \u003cFIRST_LETTER_IN_FIRST_NAME\u003e + \u003cFIRST_LETTER_IN_LAST_NAME\u003e + \u003cRECORD_ID_WITH_0_PADDED_DIGITS\u003e\n\n## Prerequisites\n- [REDCap Modules](https://github.com/vanderbilt/redcap-external-modules)\n\n## Installation\n- Clone this repo into to an `\u003credcap-root\u003e/modules/enroll_into_arm_v1.0.0`\n- Go to **Control Center \u003e Manage External Modules** and enable Enroll into arm module.\n\n## Configuration\n- In the project go to Manage External Module and enable this module for the project.\n- After enabling the module, hit the configure button and add the following json to `Enroll into arm module settings`. This will set the project_settings for that project.\n\n```\n{  \n   \"randomization_field\":\"rand_group\",\n   \"pad_digits\":3,\n   \"first_name\":\"first_name\",\n   \"last_name\":\"last_name\",\n   \"subject_id\":\"subject_id\",\n   \"randomization_field_values\":[  \n      {  \n         \"value\":\"1\",\n         \"arm_to_enroll\":\"baseline_arm_2\"\n      },\n      {  \n         \"value\":\"2\",\n         \"arm_to_enroll\":\"baseline_arm_3\"\n      }\n   ]\n}\n```\n\n## How to use?\n- Enable the randomization for a field.\n- The name of the field whose value is randomized should be placed under `project_settings-\u003erandomized_group`. \n- For construction of subject_id we need first_name, last_name and length of the padded digits to be given, so the field_names for these should be given under json, so that the module automatically picks these values.\n- Also the field that stores the subject_id should be placed under `project_settings-\u003esubject_id`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctsit%2Fenroll_into_arm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fctsit%2Fenroll_into_arm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctsit%2Fenroll_into_arm/lists"}