/* Bernard Health SeniorCare V4.3.21 — puente seguro para módulos desacoplados */
(function(){
'use strict';
function expose(name,getter,setter){
 try{
  if(!Object.getOwnPropertyDescriptor(window,name))Object.defineProperty(window,name,{configurable:true,enumerable:false,get:getter,set:setter});
 }catch(e){console.warn('[BHSC bridge]',name,e);}
}
try{if(typeof woundRecords!=='undefined')expose('woundRecords',()=>woundRecords,v=>{woundRecords=v||{}});}catch(_){}
try{if(typeof nursingNotes!=='undefined')expose('nursingNotes',()=>nursingNotes,v=>{nursingNotes=v||{}});}catch(_){}
try{if(typeof handoffRecords!=='undefined')expose('handoffRecords',()=>handoffRecords,v=>{handoffRecords=Array.isArray(v)?v:[]});}catch(_){}
try{if(typeof inactiveResidents!=='undefined')expose('inactiveResidents',()=>inactiveResidents,v=>{if(Array.isArray(v))inactiveResidents.splice(0,inactiveResidents.length,...v)});}catch(_){}
console.info('BHSC compatibility bridge 4.3.21 listo');
})();
