As far as data separation goes, you should be working with the tables
as if they physically exist in the interface file. The only exception
to this is that lookups, auto-enters etc. need to be setup in the data
file.
Assume you have the table "Service" and the table "Patient".
You want the "Patient::Cost" to lookup its data from the
"Service::Cost" when you select the "Patient::Work Done".
Create a link from "Patient::Work done" to "Service:

escription"
Make "Patient::Cost" lookup the "Service::Cost" using the link you just
created.
All of this was done in the data file.
Now in your interface file from somewhere you have a portal to
"Patient".
You have a value list of all service descriptions attached to the
"Patient::Work done" field in that portal.
When you select a service description for the "Patient::Work done"
field the "Patient::Cost" will automatically update.