-
Notifications
You must be signed in to change notification settings - Fork 1
insert gpas-only logic into extID logic #2
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
base: dev
Are you sure you want to change the base?
Conversation
integration of basic auth, gpas only logic, init check digit validation
check digit validation and 9 digit input, update configuration view
update UI for more user-friendly information provision
insert gpas-only logic into extID logic
index.php
Outdated
| // redcap log | ||
| Logging::logEvent('', $module->getModuleName(), "OTHER", '', $sExtPS.": ".$sPSN, "extID: psn created"); | ||
|
|
||
| if ($module->getProjectSetting("save_sap_id") == true) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
würde ich so lassen wie es ist: "save_sap_id" ist nur als config Option in Kombination mit der Nutzung von SAP gedacht. Im "extpsn" Modus ist die ID ja nur zufällig eine SAP-ID und da greift die config-Option "extpsn_field", wenn man die ID in REDCap speichern möchte.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
angepasst
validate Pat.-ID is now fundamental for the logic that meets our requirements (the previous “basic auth” logic), i.e., entry of the 10-digit pat-id, processing with 9 digits in gpas, display as 10 digits in the record (if desired). Optionally, 9-digit input is still allowed – leading 0s are still not accepted.
This check takes place both in the
extpsn_labelsearch and in theextpsn_labelentry (in our case, the search acts as a preliminary check to see whether the pat-id is already stored in REDCap as a record - better said in gPAS. Only if this is not the case, a patient creation is suggested to be executed in the next step (the input from the search is transferred; the checks take place internally as usual).The functionalities from TestCases.md (Validate Pat.-ID (extID) Logic) are tested and work as expected.