server/index.js
// this is the controller specifically for NHIE
this is the controller specifically for NHIE
this is the controller specifically for NHIE
function switchStatusNHIE(statusSnap, sessionSnap) {
  const status = statusSnap.val();
  if (status === "responding") {
    respondingNHIE(sessionSnap);
  } else if (status === "confessing") {
    confessingNHIE(sessionSnap);
  } else if (status === "finished") {
    sessionSnap.ref.off();
    finished(sessionSnap);
  }
}
function switchStatusNHIE ( statusSnap , sessionSnap ) { const status = statusSnap . val ( ) ; if ( status === "responding" ) { respondingNHIE ( sessionSnap ) ; } else if ( status === "confessing" ) { confessingNHIE ( sessionSnap ) ; } else if ( status === "finished" ) { sessionSnap . ref . off ( ) ; finished ( sessionSnap ) ; } }
this is the controller specifically for NHIE
this is the controller specifically for NHIE