question

Lou Keller avatar image
0 Likes"
Lou Keller asked Matthew Gillespie edited

Is there a problem with processing times generated by, "Based on Patient's Location/Area?"

I am using the "enter processing times based on patient's location/area" option in FlexSim HC. It seems that if I select the processing time from the drop-down list (i.e. "choose a distribution") or enter a time in the, "Then the processing time is," fields, the default expression does not work, and the string array in the code does not read the expression as it supposed to. Simply put, I have to manually add quotation marks to the default expression or the entered processing time, to solve the problem.

FlexSim HC 5.0.12
flexsim hcprocessing timelocation based time
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Matthew Gillespie commented

Yes, this was recently brought up by another user and I've fixed it on our end.

For now, either put the times in quotations as you suggested, or change the code in the pickoption to use a doublearray instead of a stringarrary:

treenodearray locationlist = makearray(numitems);
fillarray(locationlist, /***tag:ifList*//**/00,00/**/);

doublearray processlist = makearray(numitems);
fillarray(processlist, /***tag:thenList*//**/00,00/**/);

double processtime = 0;
int curarea = getarea(patient);

for(int index = 1; index <= numitems; index++)
{
	if(curarea == locationlist[index] || patientlocation == locationlist[index])
	{
		processtime = processlist[index];
		break;
	}
}

return processtime;
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Lou Keller avatar image Lou Keller commented ·

Good answer! As usual, you're the "Go to" man! Thanks for your support.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.