No_Encounter Start Inpatient Temporary_Leave Emergency Outpatient A01 /lastEvent = "A01"; commingFrom = "No_Encounter"; A11 [lastEvent=="A01" && commingFrom=="No_Encounter"] A13 [lastEvent=="A03" && commingFrom=="Inpatient"] A03 /lastEvent = "A03"; commingFrom = "Inpatient"; A06 /lastEvent = "A06"; A53 [lastEvent=="A22"] A22 /lastEvent = "A22"; A21 /lastEvent = "A21"; A52 [lastEvent=="A21"] A03 /lastEvent = "A03"; commingFrom = "Temporary_Leave"; A13 [lastEvent=="A03" && commingFrom=="Temporary_Leave"] A04 /lastEvent = "A04"; A07 /lastEvent = "A07"; A11 [lastEvent=="A04"] A03 /lastEvent = "A03"; commingFrom = "Emergency"; A13 [lastEvent=="A03" && commingFrom=="Emergency"] A06 /lastEvent = "A06"; A07 /lastEvent = "A07"; A07 /lastEvent = "A07"; A04 /lastEvent = "A04"; commingFrom = "No_Encounter"; A11 [lastEvent=="A04" && commingFrom=="No_Encounter"] A13 [lastEvent=="A03" && commingFrom=="Outpatient"] A03 /lastEvent = "A03"; commingFrom = "Outpatient"; A07 /lastEvent = "A07"; A06 /lastEvent = "A06"; ini /lastEvent = "ini"; commingFrom="start";