health
[Top][All Lists]
Advanced

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

Re: [Health] Permanently delete Lab Tests shipped with source


From: Luis Falcon
Subject: Re: [Health] Permanently delete Lab Tests shipped with source
Date: Mon, 13 Mar 2017 10:30:16 +0000

On Sun, 12 Mar 2017 20:49:28 +0500
Khurram Shahzad <address@hidden> wrote:

> Dear Luis,
> 
> > > >  
> > > > > When the health_lab module is installed, it creates some lab
> > > > > tests (and their corresponding products). We have deleted
> > > > > those tests as we don't need them. But, when we update
> > > > > health_lab module after some customization, those tests
> > > > > appear again.
> > > > >
> > > > > Is there anyway that we can remove these tests permanently;
> > > > > i.e. when we upgrade 'health_lab' module, these tests are not
> > > > > inserted to database again.
> > > > >  
> > > > Thanks for reporting !
> > > >
> > > > Try changing the noupdate flag to 1 on the xml file and update
> > > > the DB, and update the module. You can also check it on
> > > > Administration -> Models -> Data  
> > > >
> > > > Let us know if it worked.
> > > >  
> > >
> > > I have set this flag to 1 but it did not work. I even deleted all
> > > records from the xml file but it did not work.  
> >
> > Hmm. It should after you remove them from the instance (via Admin ->
> > Models -> Data ) and update the module.
> >
> > Of course, try it first in a non-production server.
> >  
> 
> I set the noupdate flag to 1 and deleted one record (a disease with
> code 'K90.0'), Then I tried to update the module. But, update failed
> with the following error:
> TypeError: int() argument must be a string or number, not a 'NoneType'
> 

But this is not related to the lab module, right ?

Please provide the full traceback so we can have a better scenario.

In anycase, I always tend to stay away from modifying XML / system
data, unless strictly necessary, since it's quite risky. 
> Then I first deleted the corresponding record from the disease.xml
> file (with code 'K900') and then tried to update it again. It failed
> again with following error:
> Exception: Reference to to health_icd10.K900 not found.
> 
> Thus, I failed with flying colors in removing the
> shipped_with_installer disease codes.
> 

Chances are that another xml file (for instance the disease groups file)
is referring to the record you deleted with the ID K900.

As I said, system data is a bit involved and fiddling with it is
risky :)
 
> I have found the ICD-10 2016 comprehensive disease code (attached
> herewith). This list contains more than 95,000 codes that too in US
> English. Can you please suggest some other method?
> 

Thank you ! This is the ICD10-CM (Clinical Modification), which differs
from the standard international ICD10 version, but we can certainly
have it in mind, and integrate as a new module for icd10-cm

All best
Luis

> Best Regards,
> Khurram.




reply via email to

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