gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] Medication tweaks


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] Medication tweaks
Date: Wed, 22 Jun 2011 21:35:59 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Wed, Jun 22, 2011 at 07:16:36AM -0700, Jim Busser wrote:

> A shell script such as
> 
>       install-drug-data.sh
> 
> could prompt
> 
>       (1) whether or not to remove all unused substances & brands
> 
>       (2) which drug pack to install
> 
>               - this could prompt input of a drug pack shell script file 
> specification
> 
>               ? will bash-style autocompletion (input characters, press tab)
>                       work *inside* shell scripts?
> 
>       (3) the drug pack shell script would
> 
>               - download drug data from source (substances +- Brands)
>               - assemble a suitable sql file
> 
>       (4) only if the above exited with success would the original script
> 
>               (a) begin a transaction
> 
>               (b) remove all unused substances, brands (if requested)
>                       - this could be by re-using an in-common sql file
> 
>               (c) load the drug pack data by calling the assembled sql files
> 
>               (d) commit

Yes, those are pretty much the steps that are required.

Karsten
-- 
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346



reply via email to

[Prev in Thread] Current Thread [Next in Thread]