I know that it is difficult to have to make these type of choices and that you feel torn, but I think it would be best for you to reschedule the pre natal appointment and go to the hearing.  Missing the hearing may result in an order of eviction and there may be no option to pay any costs.  The landlord can just get you out.  At least if you show up you can bring the option of paying up to the table. If you are not there to defend yourself you may have no home.  Good luck.