# Wolfram Function Repository

Instant-use add-on functions for the Wolfram Language

Function Repository Resource:

Calculate the rate of transfer of CO gas from air in the lungs to the blood

Contributed by:
Claudio Lobo Chaib Filho

ResourceFunction["PulmonaryDiffusingCapacity"][ gives the pulmonary diffusing capacity of carbon monoxide for a specific | |

ResourceFunction["PulmonaryDiffusingCapacity"][ returns the output specified by |

ResourceFunction["PulmonaryDiffusingCapacity"] measures the transfer of CO gas from air in the lungs to the red blood cells in lung blood vessels. The default output unit is milliliters of CO per minutes per millimeters of Mercury.

The function can accept ages in the range of 18 to 65 years. If given as Quantity, any time unit is accepted. When not specified, the unit of time is taken to be years.

The height can be from 92 to 244 centimeters. If given as Quantity, any height unit is accepted. When not specified, the height unit is assumed to be centimeters.

The output specification *out* accepts the following values:

"DiffusingCapacity" (DLCO) | diffusing capacity for carbon monoxide |

"Plot" | generate a plot for comparison |

"PropertyAssociation" | include all output in an Association |

A plot is generated as a curve in which the *x*-axis is age (in years) and the *y*-axis is "DiffusingCapacity" (in milliliters of CO per minute per millimeter of Hg) for a given *gender* and *height*.

Get the value of the pulmonary diffusing capacity of carbon monoxide for a specific male:

In[1]:= |

Out[1]= |

If values without Quantity are used, the age is interpreted as "Years" and the height as "Centimeters":

In[2]:= |

Out[2]= |

In[3]:= |

Out[3]= |

Other time and length units are accepted as well:

In[4]:= |

Out[4]= |

Create a plot using the "Plot" output. The *x*-axis is age (given in years) and the *y*-axis is "DiffusingCapacity" (DLCO) (in milliliters of CO per minute per millimeter of Hg) for a given *gender* and *height*:

In[5]:= |

Out[5]= |

Specify "PropertyAssociation" as the output:

In[6]:= |

Out[6]= |

The default output is "DiffusingCapacity":

In[7]:= |

Out[7]= |

In[8]:= |

Out[8]= |

The *x*-axis of the plot is given in years, regardless of the inputs:

In[9]:= |

Out[9]= |

- 1.0.0 – 12 November 2020

This work is licensed under a Creative Commons Attribution 4.0 International License