core/static/js/createCase.js
// Deal with change for dynamic description rendering
Deal with change for dynamic description rendering
Deal with change for dynamic description rendering
function handleChange() {
    document.getElementById('id_age_type').value === 'M' ? age_type_value = 'mo' : age_type_value = 'yo';
    age_value = document.getElementById('id_age').value || '46';
    document.getElementById('id_sex').value === 'F' ? sex_value = 'female' : sex_value = 'male';
    optionals = createOptionals(document.getElementById('id_height'), document.getElementById('id_weight'), document.getElementById('id_scr'))
    document.getElementById('description_preview').innerText = 'A ' + age_value + '-' + age_type_value + ' ' + sex_value + ' ' + optionals + ' presents to your pharmacy...';
  }
function handleChange ( ) { document . getElementById ( 'id_age_type' ) . value === 'M' ? age_type_value = 'mo' : age_type_value = 'yo' ; age_value = document . getElementById ( 'id_age' ) . value || '46' ; document . getElementById ( 'id_sex' ) . value === 'F' ? sex_value = 'female' : sex_value = 'male' ; optionals = createOptionals ( document . getElementById ( 'id_height' ) , document . getElementById ( 'id_weight' ) , document . getElementById ( 'id_scr' ) ) document . getElementById ( 'description_preview' ) . innerText = 'A ' + age_value + '-' + age_type_value + ' ' + sex_value + ' ' + optionals + ' presents to your pharmacy...' ; }
Deal with change for dynamic description rendering
Deal with change for dynamic description rendering