Uploading EMR Records
To make use of this software, we will first need to upload some medical records to the database. To do this, you can click on the dropdown menu on the top right of the page. From here you can select the "Upload Data" option. This will redirect you to a page where you can select a file with the data from your computer by clicking the "Choose File" button. The allowed file formats for this data are:
- CSV (.csv)
- Excel (.xlsx)
- Json (.json)
- Parquet (.parquet)
- Pickle (.pickle or .pkl)
- XML (.xml)
The file with the data should contain tabular data with at least the following columns: 1. patient_id (A unique ID for the patient) 2. text_id (A unique ID for the medical note) 3. text (The medical note written by a doctor) 4. text_date (The date at which this note was recorded)
Reference
The data/notes is uploaded to MongoDB using the following functions:
Upload Data
This is a flask function for the backend logic to upload a file to the database.
Source code in cedars/app/ops.py
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 |
|
Upload EMR data to MongoDB
This function is used to open a csv file and load it's contents into the mongodb database.
Parameters: |
|
---|
Returns: None
Source code in cedars/app/ops.py
154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 |
|