Open solmazeradat opened 7 months ago
This issue needs to be addressed by Themis. Current guidance (use type_concept_id field to flag an ongoing visit) conflicts with current guidance (end_date is required) and breaks general CDM guidance (*_type_concept_Id fields must contain standard concept_ids). I will move it to the "needs work" column.
This issue is for a missing visit_end_date. The "still a patient" issue, is issue OHDSI/CommonDataModel#698 in Themis.
There is already guidance on how to populate the mandatory visit_occurrence.visit_end_date when the source doesn't supply an end date. The following is the heuristic found on the CDM v5.4 website. This needs to be documented as a Themis issue, posted to the Themis convention library and then the wording should be removed from the CDM website.
"If end dates are not provided in the source there are three ways in which to derive them: - Outpatient Visit: visit_end_datetime = visit_start_datetime - Emergency Room Visit: visit_end_datetime = visit_start_datetime - Inpatient Visit: Usually there is information about discharge. If not, you should be able to derive the end date from the sudden decline of activity or from the absence of inpatient procedures/drugs. - Non-hospital institution Visits: Particularly for claims data, if end dates are not provided assume the visit is for the duration of month that it occurs."
Non-hospital institution Visits: Particularly for claims data, if end dates are not provided assume the visit is for the duration of month that it occurs.
Apart from the clumsy English: Is that true? Skilled Nursing Facilities are claimed per month? And if so, shouldn't they then be cobbled together into a lengthy overall stay?
Agree the wording needs improvement, @cgreich. Also, if the guidance is inaccurate, we need to correct it. Themis will add it to the agenda for discussion
Missing visit end date
CDM or THEMIS convention?
THEMIS
Table or Field level?
Field
Is this a general convention?
No
Summary of issues
Summary of answer
On the subject of address the missing visit_end_date with the non-standard concept_id = 32220 for “Still patient”"
Related links
Other comments/notes