Inpatient beds

ijaraho wrote on Saturday, October 05, 2013:

hi,
I know that openemr is not inpatient application, but I want to help how to add patient’s beds for select from a list.
My question is: if I select a bed from the list, how I make it hidden, so I don’t select the same bed again for another patient. and when the patient dichage, how I make that bed available in the list.
thanks

mdsupport wrote on Saturday, October 05, 2013:

Assuming you have a list of beds defined in ‘lists’, options list will be something like select beds from list stuff where bed key NOT IN (select occupied bed from patient data) .

ijaraho wrote on Saturday, October 05, 2013:

right, I must hide occupied beds from the list, and when the patient is discharged, the bed will be available again in the list.