{"id":19713471,"url":"https://github.com/ctsit/cb1_confirm_patient_data","last_synced_at":"2026-05-15T14:32:02.508Z","repository":{"id":79003684,"uuid":"485429516","full_name":"ctsit/cb1_confirm_patient_data","owner":"ctsit","description":null,"archived":false,"fork":false,"pushed_at":"2022-08-26T19:35:50.000Z","size":68,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-10T14:52:29.803Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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":"Authors.md","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-25T15:33:13.000Z","updated_at":"2022-08-26T18:04:15.000Z","dependencies_parsed_at":"2023-03-22T03:48:55.210Z","dependency_job_id":null,"html_url":"https://github.com/ctsit/cb1_confirm_patient_data","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctsit%2Fcb1_confirm_patient_data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctsit%2Fcb1_confirm_patient_data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctsit%2Fcb1_confirm_patient_data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctsit%2Fcb1_confirm_patient_data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ctsit","download_url":"https://codeload.github.com/ctsit/cb1_confirm_patient_data/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241031942,"owners_count":19897386,"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":[],"created_at":"2024-11-11T22:22:39.675Z","updated_at":"2026-05-15T14:31:57.490Z","avatar_url":"https://github.com/ctsit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Confirm Patient Data\n\nA REDCap Module to search another project for data to ~populate data into~ display in the current form. This module is a hack of[Search and Populate Data from Another Project](https://github.com/ctsit/search_and_populate_data_from_another_project) intended to verify data in a satellite study.\n\n## Limitations\nThis module does not support source projects which have multiple arms. All queries of the source project will be against arm 1 of the source project.\n\n## Prerequisites\n- REDCap \u003e= 9.7.8\n\n## Manual Installation\n- Clone this repo into `\u003credcap-root\u003e/modules/cbc_confirm_patient_data_v0.0.0`.\n- Go to **Control Center \u003e External Modules** and enable _CBC Confirm Patient Data_.\n- For each project you want to use this module, go to the project home page, click on **Manage External Modules** link, and then enable _CBC Confirm Patient Data_ for that project.\n\n## Configuration\nAccess **Manage External Modules** section of your project, click on _Search and Populate Data From Another Project_'s configure button, and save settings in order to specify the forms where the query box should be visible and provide the field mapping for each of those forms.\n\n- **Project you wish to search**: The source project you will be searching and pulling values from.\n    - **Note**: You may only select source projects to which you have access, but user permissions are _not_ checked while the module is used; by defining a source project you are granting access to the data contained in its mapped fields for everyone with access to the target project, _even for users without access to the source project_.\n- **Limit fields to search**: Require selection of a single field to search from the source project.\n    - Improves performance with large source projects\n- **Enabled forms**\n    - **Show in this form**: The instrument the following mapping will be applied to.\n    - **JSON array of fields from source project**: JSON array of `source_field_names` from the source project to display to users in your current project.\n\n## Diagrams\n\n### Sequence Diagrams\n```mermaid\n    sequenceDiagram\n    REDCap--\u003e\u003eExternalModule.php:User adds/edits record\n    ExternalModule.php--\u003e\u003eExternalModule.php:redcap_data_entry_form_top()\n    Note right of ExternalModule.php:Lifecycle hook triggered\n    Note right of ExternalModule.php:includeJs('js/config_menu.js')\n    Note right of ExternalModule.php:include('data_confirm_modal.html')\n    ExternalModule.php-\u003e\u003eREDCap:Insert app.js and data_confirm_modal.html into REDCap\n    REDCap--\u003e\u003eapp.js:Page load\n    app.js--\u003e\u003eapp.js:$(document).ready()\n    Note right of app.js:Page load event listener is triggered\n    app.js-\u003e\u003eREDCap:Add 'Verify Caregiver' to REDCap with on click event listener\n    REDCap--\u003e\u003eapp.js:'Verify Caregiver' button on click\n    app.js-\u003e\u003eajaxpage.php:getCaregiverInfo(recordId)\n    ajaxpage.php--\u003e\u003eExternalModule.php:getCaregiverInfo($record_id, $instrument)\n    ExternalModule.php-\u003e\u003eajaxpage.php:Array of unique caregivers\n    ajaxpage.php--\u003e\u003eapp.js:JSON of array of unique caregivers\n    app.js--\u003e\u003eREDCap:Update modal with caregivers and display\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctsit%2Fcb1_confirm_patient_data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fctsit%2Fcb1_confirm_patient_data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctsit%2Fcb1_confirm_patient_data/lists"}