js/clinicaldatamodule.js
// Must be in place before clinical data is added to the form's input elements
Must be in place before clinical data is added to the form's input elements
Must be in place before clinical data is added to the form ' s input elements
function addDynamicFormLogicPre() {
    const variables = clinicaldataWrapper.getCurrentData(currentSubjectKey);
    if (cachedFormData) cachedFormData.forEach(entry => {
        const cachedFormDataPath = new ODMPath(currentPath.studyEventOID, currentPath.formOID, entry.itemGroupOID, entry.itemOID);
        variables[cachedFormDataPath.toString()] = entry.value;
    });
    expressionHelper.setVariables(variables);
    expressionHelper.process(metadataWrapper.getElementsWithExpression(currentPath.studyEventOID, currentPath.formOID));
}
function addDynamicFormLogicPre ( ) { const variables = clinicaldataWrapper . getCurrentData ( currentSubjectKey ) ; if ( cachedFormData ) cachedFormData . forEach ( entry => { const cachedFormDataPath = new ODMPath ( currentPath . studyEventOID , currentPath . formOID , entry . itemGroupOID , entry . itemOID ) ; variables [ cachedFormDataPath . toString ( ) ] = entry . value ; } ) ; expressionHelper . setVariables ( variables ) ; expressionHelper . process ( metadataWrapper . getElementsWithExpression ( currentPath . studyEventOID , currentPath . formOID ) ) ; }
Must be in place before clinical data is added to the form's input elements
Must be in place before clinical data is added to the form ' s input elements
// Add real-time logic to process items with conditions and methods