Start No_Encounter Inpatient Outpatient Preadmit ini /lastEvent = "ini"; comingFrom="start"; A01 /lastEvent = "A01"; comingFrom="No_Encounter"; A04 /lastEvent = "A04"; comingFrom = "No_Encounter"; A03 /lastEvent = "A03"; comingFrom = "Outpatient"; A03 /lastEvent = "A03"; comingFrom = "Inpatient"; A11 [lastEvent=="A04" && comingFrom=="No_Encounter"] A11 [lastEvent=="A01" && comingFrom=="No_Encounter"] A13 [lastEvent=="A03" && comingFrom=="Inpatient"] A13 [lastEvent=="A03" && comingFrom=="Outpatient"] A38 [lastEvent=="A05"] A04 /lastEvent = "A04"; comingFrom="Preadmit"; A01 /lastEvent = "A01"; comingFrom="Preadmit"; A05 /lastEvent = "A05"; A06 /lastEvent = "A06"; A07 /lastEvent = "A07"; A11 [lastEvent=="A01" && comingFrom=="Preadmit"] A11 [lastEvent=="A04" && comingFrom=="Preadmit"]