Hallo,
ich habe eine etwas sonderbare Frage. Ist es möglich die Antworten (Daten) so abzuspeichern, dass die Antworten per html link abgespeichert werden bzw. aufgerufen werden können? Also zum Beispiel als CSV: In einer Zelle wäre dann anstatt eines Values ein html Pfad, der auf die Antwort verweisen würde.
Hintergrund: die Antworten von einer Umfrage sollen von unserer Kodierungsabteilung kodiert werden. Die Kodierer sollen sich einzelne Frage über die html-Pfade anschauen können.
EDIT: oder eine Möglichkeit wäre auch, jede PDF mit den Antworten abzuspeichern- wir haben ca. 3000 Fälle. Gibt es eine Möglichkeit alles auf einmal abzuspeichern und nicht individuell?
EDIT2: Um einzelne Fragen von einer Person anzeigen zu lassen, muss das folgende Script in das html layout, vor das schließende ody-tag kopiert werden:
<script>
// Get the 'show' parameter from URL
const urlParams = new URLSearchParams(window.location.search);
const targetDiv = urlParams.get('show');
if (targetDiv) {
// Function to hide everything except target
function showOnlyTarget() {
const target = document.getElementById(targetDiv);
if (target) {
console.log('Target found:', targetDiv);
// Method 1: Hide all siblings and parent siblings
let current = target;
while (current && current !== document.body) {
// Hide all siblings
Array.from(current.parentNode.children).forEach(sibling => {
if (sibling !== current) {
sibling.style.display = 'none';
}
});
current = current.parentNode;
}
// Method 2: Alternative - hide everything then show target path
/*
document.body.style.display = 'none';
target.style.display = 'block';
target.style.position = 'fixed';
target.style.top = '0';
target.style.left = '0';
target.style.width = '100%';
target.style.height = '100%';
target.style.backgroundColor = 'white';
target.style.zIndex = '9999';
*/
} else {
console.log('Target div not found:', targetDiv);
}
}
// Try multiple times to ensure page is loaded
setTimeout(showOnlyTarget, 100);
setTimeout(showOnlyTarget, 500);
setTimeout(showOnlyTarget, 1000);
// Also try when DOM is ready
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', showOnlyTarget);
} else {
showOnlyTarget();
}
// And when window loads
window.addEventListener('load', showOnlyTarget);
}
</script>
Anschließend kann an die API URL der Parameter "show" ergänzt werden, an den die Frage-ID nimmt.
Beispiel: https://xxxxxxx&case=502&show=A005_qst