-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Fixes #2118 sum formula for volume plasma * Also add beta version for cat and cattle
- Loading branch information
Showing
4 changed files
with
59 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,45 @@ | ||
DELETE FROM tab_container_parameter_rates WHERE container_id=5954 AND container_type='DISEASE_STATE' AND container_name='CKD' AND parameter_name='Target eGFR' AND calculation_method='DiseaseStates'; | ||
INSERT INTO tab_container_parameter_rates(container_id,container_type,container_name,parameter_name,calculation_method,formula_rate,min_value,min_isallowed,max_value,max_isallowed,value_origin) VALUES(5954,'DISEASE_STATE','CKD','eGFR','DiseaseStates','PARAM_TargetGFR',0.0,1,0.00034683,1,92); | ||
DELETE FROM tab_container_parameters WHERE container_id=5954 AND container_type='DISEASE_STATE' AND container_name='CKD' AND parameter_name='Target eGFR'; | ||
INSERT INTO tab_container_parameters(container_id,container_type,container_name,parameter_name,can_be_varied,read_only,visible,can_be_varied_in_population,group_name,sequence,build_mode,building_block_type,is_input,is_changed_by_create_individual) VALUES(5954,'DISEASE_STATE','CKD','eGFR',0,0,1,0,'DISEASE_STATES',1,'LOCAL','INDIVIDUAL',1,0); | ||
UPDATE tab_disease_states SET description='Chronic kidney disease is renal impairment lasting at least 3 months. The disease is staged according to eGFR. Over time, multiple other body systems are also affected. To apply this disease state to an individual in PK-Sim, first select the targeted eGFR. Accordingly, the individual will display changes in GFR, kidney volume, kidney blood flow, plasma protein binding, hematocrit, gastric emptying time, and small intestinal transit time. | ||
|
||
This parameterization is for individuals with CKD who are not on dialysis. It does not modify the expression or activity of enzymes or transporters - only foundational anatomy and physiology. Users should consult scientific literature for information how the relevant enzymes and transporters for their purposes may be affected.' WHERE disease_state='CKD'; | ||
DELETE FROM tab_parameters WHERE parameter_name='Target eGFR'; | ||
INSERT INTO tab_calculation_method_rate_descriptor_conditions(calculation_method,formula_rate,tag,condition) VALUES('DynamicSumFormulas','PARAM_VolumePlasma','EndogenousIgG','NotInContainer'); | ||
INSERT INTO tab_calculation_method_rate_descriptor_conditions(calculation_method,formula_rate,tag,condition) VALUES('DynamicSumFormulas','PARAM_VolumePlasma','Pericentral','NotInContainer'); | ||
INSERT INTO tab_calculation_method_rate_descriptor_conditions(calculation_method,formula_rate,tag,condition) VALUES('DynamicSumFormulas','PARAM_VolumePlasma','Periportal','NotInContainer'); | ||
INSERT INTO tab_calculation_method_rate_descriptor_conditions(calculation_method,formula_rate,tag,condition) VALUES('DynamicSumFormulas','PARAM_VolumePlasma','Plasma','InContainer'); | ||
INSERT INTO tab_calculation_method_rate_descriptor_conditions(calculation_method,formula_rate,tag,condition) VALUES('DynamicSumFormulas','PARAM_VolumePlasma','Volume','Has'); | ||
INSERT INTO tab_calculation_method_rates(calculation_method,formula_rate,formula,dimension) VALUES('DynamicSumFormulas','PARAM_VolumePlasma','V_#i','Volume'); | ||
DELETE FROM tab_calculation_method_rates WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma'; | ||
INSERT INTO tab_container_parameter_rates(container_id,container_type,container_name,parameter_name,calculation_method,formula_rate,min_value,min_isallowed,max_value,max_isallowed,value_origin) VALUES(146,'ORGANISM','Organism','Volume (plasma)','DynamicSumFormulas','PARAM_VolumePlasma',0.0,1,NULL,1,NULL); | ||
DELETE FROM tab_container_parameter_rates WHERE container_id=146 AND container_type='ORGANISM' AND container_name='Organism' AND parameter_name='Volume (plasma)' AND calculation_method='Individual_PKSim'; | ||
UPDATE tab_container_parameters SET group_name='DISEASE_STATE_FACTORS' WHERE container_id=5015 AND container_type='GENERAL' AND container_name='PROTEIN' AND parameter_name='Disease factor'; | ||
UPDATE tab_container_parameters SET group_name='DISEASE_STATE_FACTORS' WHERE container_id=5941 AND container_type='GENERAL' AND container_name='TRANSPORTER' AND parameter_name='Disease factor'; | ||
INSERT INTO tab_groups(group_name,display_name,description,parent_group,icon_name,visible,sequence,is_advanced,unique_id,pop_display_name,full_name) VALUES('DISEASE_STATE_FACTORS','Disease factors','Disease factor parameters','DISEASE_STATES',NULL,1,1,1,155,NULL,'Disease factor parameters'); | ||
DELETE FROM tab_rate_container_parameters WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma' AND container_id=173 AND container_type='COMPARTMENT' AND container_name='Plasma' AND parameter_name='Volume'; | ||
DELETE FROM tab_rate_container_parameters WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma' AND container_id=179 AND container_type='COMPARTMENT' AND container_name='Plasma' AND parameter_name='Volume'; | ||
DELETE FROM tab_rate_container_parameters WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma' AND container_id=185 AND container_type='COMPARTMENT' AND container_name='Plasma' AND parameter_name='Volume'; | ||
DELETE FROM tab_rate_container_parameters WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma' AND container_id=197 AND container_type='COMPARTMENT' AND container_name='Plasma' AND parameter_name='Volume'; | ||
DELETE FROM tab_rate_container_parameters WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma' AND container_id=211 AND container_type='COMPARTMENT' AND container_name='Plasma' AND parameter_name='Volume'; | ||
DELETE FROM tab_rate_container_parameters WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma' AND container_id=217 AND container_type='COMPARTMENT' AND container_name='Plasma' AND parameter_name='Volume'; | ||
DELETE FROM tab_rate_container_parameters WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma' AND container_id=223 AND container_type='COMPARTMENT' AND container_name='Plasma' AND parameter_name='Volume'; | ||
DELETE FROM tab_rate_container_parameters WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma' AND container_id=231 AND container_type='COMPARTMENT' AND container_name='Plasma' AND parameter_name='Volume'; | ||
DELETE FROM tab_rate_container_parameters WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma' AND container_id=244 AND container_type='COMPARTMENT' AND container_name='Plasma' AND parameter_name='Volume'; | ||
DELETE FROM tab_rate_container_parameters WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma' AND container_id=250 AND container_type='COMPARTMENT' AND container_name='Plasma' AND parameter_name='Volume'; | ||
DELETE FROM tab_rate_container_parameters WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma' AND container_id=256 AND container_type='COMPARTMENT' AND container_name='Plasma' AND parameter_name='Volume'; | ||
DELETE FROM tab_rate_container_parameters WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma' AND container_id=260 AND container_type='COMPARTMENT' AND container_name='Plasma' AND parameter_name='Volume'; | ||
DELETE FROM tab_rate_container_parameters WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma' AND container_id=268 AND container_type='COMPARTMENT' AND container_name='Plasma' AND parameter_name='Volume'; | ||
DELETE FROM tab_rate_container_parameters WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma' AND container_id=275 AND container_type='COMPARTMENT' AND container_name='Plasma' AND parameter_name='Volume'; | ||
DELETE FROM tab_rate_container_parameters WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma' AND container_id=281 AND container_type='COMPARTMENT' AND container_name='Plasma' AND parameter_name='Volume'; | ||
DELETE FROM tab_rate_container_parameters WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma' AND container_id=287 AND container_type='COMPARTMENT' AND container_name='Plasma' AND parameter_name='Volume'; | ||
DELETE FROM tab_rate_container_parameters WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma' AND container_id=289 AND container_type='COMPARTMENT' AND container_name='Plasma' AND parameter_name='Volume'; | ||
DELETE FROM tab_rate_container_parameters WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma' AND container_id=3956 AND container_type='COMPARTMENT' AND container_name='Plasma' AND parameter_name='Volume'; | ||
DELETE FROM tab_rate_container_parameters WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma' AND container_id=3979 AND container_type='COMPARTMENT' AND container_name='Plasma' AND parameter_name='Volume'; | ||
DELETE FROM tab_rate_container_parameters WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma' AND container_id=4002 AND container_type='COMPARTMENT' AND container_name='Plasma' AND parameter_name='Volume'; | ||
DELETE FROM tab_rate_container_parameters WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma' AND container_id=4025 AND container_type='COMPARTMENT' AND container_name='Plasma' AND parameter_name='Volume'; | ||
DELETE FROM tab_rate_container_parameters WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma' AND container_id=4048 AND container_type='COMPARTMENT' AND container_name='Plasma' AND parameter_name='Volume'; | ||
DELETE FROM tab_rate_container_parameters WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma' AND container_id=4072 AND container_type='COMPARTMENT' AND container_name='Plasma' AND parameter_name='Volume'; | ||
DELETE FROM tab_rate_container_parameters WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma' AND container_id=4095 AND container_type='COMPARTMENT' AND container_name='Plasma' AND parameter_name='Volume'; | ||
DELETE FROM tab_rate_container_parameters WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma' AND container_id=4118 AND container_type='COMPARTMENT' AND container_name='Plasma' AND parameter_name='Volume'; | ||
DELETE FROM tab_rate_container_parameters WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma' AND container_id=4141 AND container_type='COMPARTMENT' AND container_name='Plasma' AND parameter_name='Volume'; | ||
DELETE FROM tab_rate_container_parameters WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma' AND container_id=4164 AND container_type='COMPARTMENT' AND container_name='Plasma' AND parameter_name='Volume'; | ||
DELETE FROM tab_rate_container_parameters WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma' AND container_id=4187 AND container_type='COMPARTMENT' AND container_name='Plasma' AND parameter_name='Volume'; | ||
DELETE FROM tab_rate_container_parameters WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma' AND container_id=5563 AND container_type='COMPARTMENT' AND container_name='Plasma' AND parameter_name='Volume'; | ||
DELETE FROM tab_rate_container_parameters WHERE calculation_method='Individual_PKSim' AND formula_rate='PARAM_VolumePlasma' AND container_id=5568 AND container_type='COMPARTMENT' AND container_name='Plasma' AND parameter_name='Volume'; | ||
UPDATE tab_species SET display_name='Cat (beta version)' WHERE species='Cat'; | ||
UPDATE tab_species SET display_name='Cattle (IV only) (beta version)' WHERE species='Cattle'; | ||
INSERT INTO tab_tags(tag) VALUES('Volume'); |
Oops, something went wrong.