0521
Enterohepatic Recirculation depend on both time and concentration,
#1
Posted 12 April 2023 - 07:47 AM
#2
Posted 12 April 2023 - 09:04 AM
Hi,
I would suggest using a condition statement rather than a sequence statement, since your recycling is based on a condiiton that the concentration is below a certain value. e.g.
#3
Posted 12 April 2023 - 09:18 AM
Hi,
I would suggest using a condition statement rather than a sequence statement, since your recycling is based on a condiiton that the concentration is below a certain value. e.g.
Rate = Switch / DurationSwitch= (C<C_cut ? 1:0)Let me know if this is not clear.Bernd
Hi Bernd,
1.
Your solution can only solve the problem of concentration dependence, not solve time dependence.
"2. Biliary excretion events do not occur again during a Duration after the event occurs."
There must be a time interval between biliary excretions.
2.
I'm assuming here that biliary excretion is similar to intravenous administration, not similar to extravascular administration ( first-order rate)
#4
Posted 12 April 2023 - 09:18 AM
you can use while with time and add Switch= (C<C_cut ? 1:0) as a condition below it
never tested in your case here is code from an old project that had a gall bladder switch
#5
Posted 12 April 2023 - 09:34 AM
you can use while with time and add Switch= (C<C_cut ? 1:0) as a condition below it
never tested in your case here is code from an old project that had a gall bladder switch
test(){double(Gbr) #Define a gall bladder switch, “Gbr”, as a doubledouble(i) #Define a gall bladder switch, “Gbr”, as a doublederiv(A1 = - (Cl * C) + (Aa * Ka)- (Cl2 * (C - C2))- (A1 * K1g) + (Ag * Kag))urinecpt(A0 = (Cl * C))deriv(Aa = - (Aa * Ka))deriv(A2 = (Cl2 * (C - C2)))deriv(Abile = (A1 * K1g)- (Abile * Rate))deriv(Ag = (Abile * Rate)- (Ag * Kag))C = A1 / Vdosepoint(Aa)C2 = A2 / V2Rate = Gbr/treflux #The rate from the bile to gut compartmenterror(CEps = 0.304204)observe(CObs = C * (1 + CEps))sequence{sleep(Initial);i=0;while(i<24) {i = i + 1;Gbr=0; #Gall bladder is off at time=0sleep(tcycle-treflux); #Gbr=1; #Gall bladder is on and drug is recycled into gutsleep(treflux); #Skip to the end of the second peak}} #Close the sequence statementstparm(V = tvV)stparm(Cl = tvCl)stparm(Ka = tvKa)stparm(V2 = tvV2)stparm(Cl2 = tvCl2)stparm(K1g = tvK1g)stparm(Kag = tvKag)stparm(Initial = tvInitial)stparm(tcycle = tvtcycle)stparm(treflux = tvtreflux)//stparm(Tau = tvTau)fixef(tvV = c(0, 8.8037, ))fixef(tvCl = c(0, 20.9016, ))fixef(tvKa = c(0, 2.0153, ))fixef(tvV2 = c(0, 128.096, ))fixef(tvCl2 = c(0, 2.03027, ))fixef(tvInitial = c(0, 3,))fixef(tvtcycle = c(0, 24, ))fixef(tvtreflux = c(0, 0.149672, ))fixef(tvK1g = c(0, 2.52128, ))fixef(tvKag = c(0, 8.45759, ))//fixef(tvTau = c(0, 7.20614, ))ranef(diag(nCl, nKa, nV, nV2, nCl2, nEC50, nEmax, nK1g, nKag) = c(1, 1, 1, 1, 1, 1, 1, 1, 1))}
Hi smouksassi1,
I have read and referred to this case carefully, but your solution does not solve the following two points:
1.
The Enterohepatic Recirculation will stops when the concentration below a certain level(C_cut). And restart When C>C_cut.
Edited by 0521, 12 April 2023 - 09:34 AM.
#6
Posted 18 April 2023 - 04:58 AM
test(){ deriv(Aa = - Ka * Aa + X)#0-order excreted deriv(A1 = Ka * Aa - Cl * C) dosepoint(Aa,doafter={T=C>C_cut?T:0}) deriv(T = 1) Y=fmod(T,10)#cycle II = 10h X=Y<0.5?(C>C_cut?200:0):0#if C>Cut and T not >0.5 then excret fixef(C_cut = c(, 2, ))# C cut off point C = A1 / V error(CEps = 1) observe(CObs = C + CEps) stparm(Ka = tvKa) stparm(V = tvV) stparm(Cl = tvCl) fixef(tvKa = c(, 1, )) fixef(tvV = c(, 1, )) fixef(tvCl = c(, 0.5, )) }
if C_cut=2 then the desired excretion event occurs at the following moments:0,10,24
if C_cut=1 then the desired excretion event occurs at the following moments:0,10,30
But:
Edited by 0521, 18 April 2023 - 04:59 AM.
#7
Posted 18 April 2023 - 08:46 AM
Hi,
a simple suggestion would be to add the amount X to the central compartment instead of the absorption compartment, since you want it IV. When you setup the condition for when the excretion should happen you ask for a time window between 0 and 0.5. It would make more sense to put it at exactly 0.5 hours instead, since it is an IV bolus.
Sorry, haven't tried myself whether that works.
Bernd
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users