[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnumed-devel] Re: trying out the gmDemographics in testarea/test-cl
Re: [Gnumed-devel] Re: trying out the gmDemographics in testarea/test-client-c
Sun, 9 Nov 2003 02:42:10 +0100
> and also have a few manually inserted v_basic_persons with lastnames,
> firstnames, gender, birthdate, title.
There are a few in server/sql/test-data/ . The Star Trek crew
has a bit more data such as vaccinations, episodes etc. To be
> How do I create new identities using the business layer?
Currently, one would call gmPatient.create_dummy_identity()
which returns a new ID which can then be passed into
gmPatient.gmCurrentPatient() (if you want to immediately
change the currently selected patient) or gmPatient.gmPerson()
(if you want to muck around with that person's record but
leave the currently selected patient alone).
Ian an me were discussing of how to best take this to a higher
level of abstraction for when we will (have to) interface
with, say, LDAP. However, for a stock SQL backend the
described method should work (barring bugs).
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346