Skip to content

Commit 12e0a14

Browse files
authored
Merge pull request #211 from oxford-pharmacoepi/ukbb_hesin_docs
HESIN Minor Fix15
2 parents 0fc8734 + 92293af commit 12e0a14

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/UK_BIOBANK/UKB_HESIN/UKB_HESIN_Visit_Detail.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ description: "visit_detail mapping from hesin_critical & hesin_psych tables"
1919
| visit_detail_id| | | Autogenerate|
2020
| person_id| eid | | |
2121
| visit_detail_concept_id| | [9201- Standard algorithm](https://athena.ohdsi.org/search-terms/terms/9201)| | |
22-
| visit_detail_start_date | epistart,<br>admidate | Use the first not null of (epistart, admidate). | |
22+
| visit_detail_start_date | epistart,<br>admidate | use the minimum of the first not null of (epistart, admidate) | |
2323
| visit_detail_start_datetime| epistart,<br>admidate | | |
2424
| visit_detail_end_date | epiend,<br>disdate,<br>epistart,<br>admidate| use the first not null of (epiend, disdate, epistart, admidate)| |
2525
| visit_detail_end_datetime | epiend,<br>disdate,<br>epistart,<br>admidate| | |
@@ -32,7 +32,7 @@ description: "visit_detail mapping from hesin_critical & hesin_psych tables"
3232
| admitted_from_source_value | admisorc_uni | | |
3333
| discharged_to_concept_id | disdest_uni| use UKB_DISDEST_STCM| UK BioBank source value starts with "267-"|
3434
| discharged_to_source_value | disdest_uni | | |
35-
| preceding_visit_detail_id| | Latest visit_detail_id before this one, if available | |
35+
| preceding_visit_detail_id| | latest visit_detail_id before this one, for the patient if available | |
3636
| parent_visit_detail_id| NULL | | |
3737
| visit_occurrence_id| eid, spell_index | | |
3838

docs/UK_BIOBANK/UKB_HESIN/UKB_HESIN_Visit_Occurrence.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ description: "VISIT_OCCURRENCE mapping from HESIN table"
2020
| visit_occurrence_id | | | Autogenerate |
2121
| person_id | eid | | |
2222
| visit_concept_id | | [9201- Standard algorithm](https://athena.ohdsi.org/search-terms/terms/9201)| |
23-
| visit_start_date | epistart,<br>admidate | Use the first not null of (epistart, admidate)| |
23+
| visit_start_date | epistart,<br>admidate | use the minimum of the first not null of (epistart, admidate) within the hospital spell| |
2424
| visit_start_datetime | epistart,<br>admidate | | |
25-
| visit_end_date | epiend,<br>disdate,<br>epistart,<br>admidate | Use the first not null of (epiend,disdate,epistart,admidate)| |
25+
| visit_end_date | epiend,<br>disdate,<br>epistart,<br>admidate | use the maximum of the first not null of (epiend, disdate, epistart, admidate) within the hospital spell| |
2626
| visit_end_datetime | epiend,<br>disdate,<br>epistart,<br>admidate | | |
2727
| visit_type_concept_id | | [32818- Standard algorithm](https://athena.ohdsi.org/search-terms/terms/32818)| |
2828
| provider_id |NULL| | |
@@ -33,4 +33,4 @@ description: "VISIT_OCCURRENCE mapping from HESIN table"
3333
| admitted_from_source_value | NULL | | |
3434
| discharged_to_concept_id | NULL | | |
3535
| discharged_to_source_value | NULL | |
36-
| preceding_visit_occurrence_id | | Latest visit_occurrence_id before this one, if available | |
36+
| preceding_visit_occurrence_id | | latest visit_occurrence_id before this one, for the patient if available | |

0 commit comments

Comments
 (0)