public DialyzingFluid SetMainFlow(DialyzingFluid fromPredecessor)
        {
            DialyzingFluid toSuccessor = fromPredecessor;

            toSuccessor.KindOfDialysate = KindOfDialysate;
            return(toSuccessor);
        }
Ejemplo n.º 2
0
		public virtual DialyzingFluid SetMainFlow( DialyzingFluid  fromPredecessor)
		{
			DialyzingFluid toSuccessor = fromPredecessor;
			if (WaterHeaterEnabled())
				toSuccessor.Temperature = QualitativeTemperature.BodyHeat;
			return toSuccessor;
		}
 public void SetDialyzingFluidFlow(DialyzingFluid outgoing, DialyzingFluid incoming)
 {
     IncomingFluidTemperature         = incoming.Temperature;
     IncomingQuantityOfDialyzingFluid = incoming.Quantity;
     outgoing.CopyValuesFrom(incoming);
     outgoing.Quantity = IncomingSuctionRateOnDialyzingFluidSide;
     outgoing.WasUsed  = true;
 }
Ejemplo n.º 4
0
 public virtual void SetMainFlow(DialyzingFluid toSuccessor, DialyzingFluid fromPredecessor)
 {
     toSuccessor.CopyValuesFrom(fromPredecessor);
     if (WaterHeaterEnabled())
     {
         toSuccessor.Temperature = QualitativeTemperature.BodyHeat;
     }
 }
Ejemplo n.º 5
0
 public void CreateDialyzingFluid(DialyzingFluid outgoingDialyzingFluid)
 {
     //Hard code delivered quantity 2 and suction 3. We simulate if Ultra Filtration works with Dialyzer.
     outgoingDialyzingFluid.Quantity            = 2;
     outgoingDialyzingFluid.KindOfDialysate     = KindOfDialysate.Bicarbonate;
     outgoingDialyzingFluid.ContaminatedByBlood = false;
     outgoingDialyzingFluid.Temperature         = QualitativeTemperature.BodyHeat;
 }
		public DialyzingFluid SetDialyzingFluidFlow(DialyzingFluid incoming)
		{
			IncomingFluidTemperature = incoming.Temperature;
			IncomingQuantityOfDialyzingFluid = incoming.Quantity;
			var outgoing = incoming;
			outgoing.Quantity = IncomingSuctionRateOnDialyzingFluidSide;
			outgoing.WasUsed = true;
			return outgoing;
		}
Ejemplo n.º 7
0
		public DialyzingFluid SetDialyzingFluidFlow(DialyzingFluid  fromPredecessor)
		{
			IncomingFluidTemperature = fromPredecessor.Temperature;
			IncomingQuantityOfDialyzingFluid = fromPredecessor.Quantity;
			var toSuccessor=fromPredecessor;
			toSuccessor.Quantity = IncomingSuctionRateOnDialyzingFluidSide;
			toSuccessor.WasUsed = true;
			return toSuccessor;
		}
        public DialyzingFluid SetDialyzingFluidFlow(DialyzingFluid incoming)
        {
            IncomingFluidTemperature         = incoming.Temperature;
            IncomingQuantityOfDialyzingFluid = incoming.Quantity;
            var outgoing = incoming;

            outgoing.Quantity = IncomingSuctionRateOnDialyzingFluidSide;
            outgoing.WasUsed  = true;
            return(outgoing);
        }
Ejemplo n.º 9
0
        public virtual DialyzingFluid SetMainFlow(DialyzingFluid fromPredecessor)
        {
            DialyzingFluid toSuccessor = fromPredecessor;

            if (WaterHeaterEnabled())
            {
                toSuccessor.Temperature = QualitativeTemperature.BodyHeat;
            }
            return(toSuccessor);
        }
Ejemplo n.º 10
0
        public void SetConcentrateFlow(DialyzingFluid outgoing)
        {
            var incomingSuction = Concentrate.Outgoing.Backward;

            outgoing.Quantity            = incomingSuction.CustomSuctionValue;
            outgoing.ContaminatedByBlood = false;
            outgoing.Temperature         = QualitativeTemperature.TooCold;
            outgoing.WasUsed             = false;
            outgoing.KindOfDialysate     = KindOfDialysate;
        }
Ejemplo n.º 11
0
        public void SetMainFlow(DialyzingFluid outgoing)
        {
            var incomingSuction = MainFlow.Outgoing.Backward;

            //Assume incomingSuction.SuctionType == SuctionType.CustomSuction;
            outgoing.Quantity            = incomingSuction.CustomSuctionValue;
            outgoing.ContaminatedByBlood = false;
            outgoing.Temperature         = QualitativeTemperature.TooCold;
            outgoing.WasUsed             = false;
            outgoing.KindOfDialysate     = KindOfDialysate.Water;
        }
Ejemplo n.º 12
0
        public DialyzingFluid CreateDialyzingFluid()
        {
            //Hard code delivered quantity 2 and suction 3. We simulate if Ultra Filtration works with Dialyzer.
            DialyzingFluid outgoingDialyzingFluid = new DialyzingFluid
            {
                Quantity            = 2,
                KindOfDialysate     = KindOfDialysate.Bicarbonate,
                ContaminatedByBlood = false,
                Temperature         = QualitativeTemperature.BodyHeat
            };

            return(outgoingDialyzingFluid);
        }
Ejemplo n.º 13
0
 public virtual void SetMainFlow(DialyzingFluid toSuccessor, DialyzingFluid fromPredecessor)
 {
     if (BypassEnabled || fromPredecessor.Temperature != QualitativeTemperature.BodyHeat)
     {
         ToDrainValue.CopyValuesFrom(fromPredecessor);
         toSuccessor.Quantity            = 0;
         toSuccessor.ContaminatedByBlood = false;
         toSuccessor.Temperature         = QualitativeTemperature.TooCold;
         toSuccessor.WasUsed             = false;
         toSuccessor.KindOfDialysate     = KindOfDialysate.Water;
     }
     else
     {
         toSuccessor.CopyValuesFrom(fromPredecessor);
     }
 }
Ejemplo n.º 14
0
 public override void SetMainFlow(DialyzingFluid toSuccessor, DialyzingFluid fromPredecessor)
 {
     toSuccessor.CopyValuesFrom(fromPredecessor);
 }
Ejemplo n.º 15
0
		public void ForwardUsedFlow(DialyzingFluid  toSuccessor, DialyzingFluid  fromPredecessor)
		{
			toSuccessor.CopyValuesFrom(fromPredecessor);
		}
Ejemplo n.º 16
0
 public DialyzingFluid SetMainFlow(DialyzingFluid fromPredecessor)
 {
     return(fromPredecessor);
 }
Ejemplo n.º 17
0
 public void SetMainFlow(DialyzingFluid toSuccessor, DialyzingFluid fromPredecessor)
 {
     toSuccessor.CopyValuesFrom(fromPredecessor);
     toSuccessor.KindOfDialysate = KindOfDialysate;
 }
		public DialyzingFluid ForwardUsedFlow(DialyzingFluid  fromPredecessor)
		{
			return fromPredecessor;
		}
Ejemplo n.º 19
0
 public void ReceivedConcentrate(DialyzingFluid incomingElement)
 {
     KindOfDialysate = incomingElement.KindOfDialysate;
 }
Ejemplo n.º 20
0
		public DialyzingFluid SetMainFlow(DialyzingFluid fromPredecessor)
		{
			return fromPredecessor;
		}
Ejemplo n.º 21
0
		public DialyzingFluid CreateDialyzingFluid()
		{
			//Hard code delivered quantity 2 and suction 3. We simulate if Ultra Filtration works with Dialyzer.
			DialyzingFluid outgoingDialyzingFluid = new DialyzingFluid
			{
				Quantity = 2,
				KindOfDialysate = KindOfDialysate.Bicarbonate,
				ContaminatedByBlood = false,
				Temperature = QualitativeTemperature.BodyHeat
			};
			return outgoingDialyzingFluid;
		}
		public void ReceivedConcentrate(DialyzingFluid incomingElement)
		{
			KindOfDialysate = incomingElement.KindOfDialysate;
		}
		public DialyzingFluid SetMainFlow(DialyzingFluid  fromPredecessor)
		{
			DialyzingFluid toSuccessor = fromPredecessor;
			toSuccessor.KindOfDialysate = KindOfDialysate;
			return toSuccessor;
		}
Ejemplo n.º 24
0
 public DialyzingFluid ForwardUsedFlow(DialyzingFluid fromPredecessor)
 {
     return(fromPredecessor);
 }
Ejemplo n.º 25
0
 public void SetDrainFlow(DialyzingFluid outgoing)
 {
     outgoing.CopyValuesFrom(ToDrainValue);
 }