Wolfram Research

Patient Medical Data for Novel Coronavirus COVID-19

Medical records of patients infected with novel coronavirus COVID-19

Patient record including age, sex, location, date of onset, symptoms, travel history, chronic diseases, and date of discharge or death.

Examples

Basic Examples

Retrieve the resource:

In[1]:=
ResourceObject["Patient Medical Data for Novel Coronavirus COVID-19"]
Out[1]=

Retrieve the default content:

In[2]:=
ResourceData["Patient Medical Data for Novel Coronavirus COVID-19"]
Out[2]=

Latest update date:

In[3]:=
ResourceData[
  "Patient Medical Data for Novel Coronavirus COVID-19"][Max, \
#DateOfConfirmation &]
Out[3]=

Compare the age distributions between male and female patients:

In[4]:=
PairedHistogram[Sequence @@ (Most@Normal@#[Values]), ChartLabels -> Most@Normal@#[Keys], PlotLabel -> "age distribution", PlotTheme -> "Business"] &@
 ResourceData["Patient Medical Data for Novel Coronavirus COVID-19"][
  GroupBy["Sex"], Select[! MissingQ[#Age] &], "Age"]
Out[4]=

Plot the disease caused events including the onset of symptoms and the dates of confirmation or discharge for individual patients:

In[5]:=
timelines = ResourceData["Patient Medical Data for Novel Coronavirus COVID-19"][
   Select[(! MissingQ[#DateOfDeath] || ! MissingQ[#DateOfDischarge]) && ! MissingQ[#DateOfOnsetSymptoms] && ! MissingQ[#DateOfConfirmation] && ! MissingQ[#Age] &], {"DateOfOnsetSymptoms", "DateOfAdmissionHospital", "DateOfConfirmation", "DateOfDischarge", "DateOfDeath", "Age", "Sex"}];
In[6]:=
Grid[Partition[
  Labeled[TimelinePlot[Take[#, 5], PlotRange -> {"Dec 26 2019", "Feb 5 2020"}, ImageSize -> 250], StringTemplate["`Sex`, `Age` yrs old"][#], Bottom, LabelStyle -> Directive[FontFamily -> "Helvetica"]] & /@ Normal[Sort[timelines]][[;; 6]], 3], Alignment -> {{Left, Left}, {Bottom, Bottom}}]
Out[6]=

Explore links between the incidence of chronic diseases and deaths:

In[7]:=
diseases = ResourceData["Patient Medical Data for Novel Coronavirus COVID-19"][
  Select[! MissingQ[#ChronicDiseaseQ] && ! MissingQ[#DeathQ] &], {"ChronicDiseaseQ", "DeathQ", "ChronicDiseases"}]
Out[7]=

Find the top chronic conditions:

In[8]:=
Reverse@SortBy[
  Tally@DeleteMissing@Flatten@diseases[All, "ChronicDiseases"], Last]
Out[8]=

Wolfram Research, "Patient Medical Data for Novel Coronavirus COVID-19" from the Wolfram Data Repository (2020) https://doi.org/10.24097/wolfram.11224.data

Data Resource History

Source Metadata

See Also

Publisher Information