Skip to content

Commit

Permalink
39 make examples up to date (#46)
Browse files Browse the repository at this point in the history
* Add jupyter to poetry

* Update examples
  • Loading branch information
giuliabaldini authored Jun 13, 2022
1 parent b9800cc commit 019346f
Show file tree
Hide file tree
Showing 6 changed files with 1,311 additions and 80 deletions.
13 changes: 7 additions & 6 deletions examples/1-simple-json-to-df.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,15 @@
"name": "stdout",
"output_type": "stream",
"text": [
"http://hapi.fhir.org/baseDstu2/Observation?_count=1&_id=86092\n"
"http://hapi.fhir.org/baseDstu2/Observation?_id=86092\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"Query: 1it [00:00, 23831.27it/s]\n"
"Query: 100%|██████████| 1/1 [00:00<00:00, 25731.93it/s]\n",
"Build DF: 100%|██████████| 1/1 [00:00<00:00, 12520.31it/s]\n"
]
},
{
Expand All @@ -107,7 +108,6 @@
" bundles_function=search.steal_bundles, # Non-parallel function that iterates through the bundles and returns them\n",
" resource_type=\"Observation\",\n",
" request_params={\n",
" \"_count\": 1,\n",
" \"_id\": \"86092\",\n",
" },\n",
")\n",
Expand Down Expand Up @@ -152,7 +152,8 @@
"name": "stderr",
"output_type": "stream",
"text": [
"Query: 1it [00:00, 19239.93it/s]\n"
"Query: 100%|██████████| 1/1 [00:00<00:00, 15887.52it/s]\n",
"Build DF: 100%|██████████| 1/1 [00:00<00:00, 1508.74it/s]\n"
]
},
{
Expand All @@ -166,7 +167,7 @@
}
],
"source": [
"observation_tnm = search.query_to_dataframe(\n",
"observation_values = search.query_to_dataframe(\n",
" bundles_function=search.steal_bundles,\n",
" resource_type=\"Observation\",\n",
" request_params={\n",
Expand All @@ -181,7 +182,7 @@
" (\"patient\", \"subject.reference.replace('Patient/', ''\"),\n",
" ],\n",
")\n",
"observation_tnm"
"observation_values"
],
"metadata": {
"collapsed": false,
Expand Down
62 changes: 37 additions & 25 deletions examples/2-condition-to-imaging-study.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 019346f

Please sign in to comment.