Insightlab / database /db_tables.json
Maheshsr's picture
updating insight generating prompt.
f130825
[
{
"name": "Patient",
"description": "Patient : The table stores the healthcare encounter information about patients. Each row has an unique patient information. The table contains the key information by distilling and flattening the FHIR encounter schema.",
"fields": { "identifier_value": [ "patient identifier that uniquely identifies patient and links a patient from this to other tables", "varchar"],
"identifier_use": [ "if the identifier is used for any specific purpose", "varchar" ],
"identifier_type": ["type of identifier, ususally means the source, MR' stands for medical record", "varchar" ],
"identifier_start_date": ["date on since when the identifier was valid", "date"],
"identifier_assigner": ["Identification value assignment authority", "varchar"],
"active": ["if he patient is active or not", "boolean"],
"official_name_family": ["family name of the patient", "varchar"],
"official_name_given": ["given name of the patient", "varchar"],
"usual_name_given": ["Short form of the given name", "varchar"],
"gender": ["patient's gender, male or female", "varchar"],
"birth_date": ["date of birth of the patient", "date"],
"Age": ["patient age", "integer"],
"home_address_line": ["patient's home address street", "varchar"],
"home_address_city": ["patient's home address city", "varchar"],
"home_address_district": ["patient's home county", "varchar"],
"home_address_state": ["patient's home state", "varchar"],
"home_address_postalCode": ["patient's home address zip code", "varchar"],
"home_address_period_start": ["start date of the patient's home address", "date"]
}
},
{
"name": "Encounter",
"description": "Encounter: Table that stores all encounters of each patient with the healthcare providers. Every row indicate a single encounter.",
"fields": { "id": [ "encounter id that identifies an encounter uniquely", "varchar"],
"status": [ "encounter status, can be one of 'planned', ''completed', 'discharged', 'in-progress' ", "varchar" ],
"class": [ "indicates location setting of the encounter, valid values are: 'IMP' as inpatient, 'EMER' as emergency, 'AMB' as ambulatory, 'HH' as home health ", "varchar" ],
"priority": [ "indicates priority of the encounter, valid values are: 'UR' as urgent, 'A' as As soon as, 'S' as stat, 'R' as routine ", "varchar" ],
"subject_id": [ "indicates id of the patient associated with the encounter, should match with identifier_value of the Patient table", "varchar" ],
"service_provider_id": [ "contains the id of the care delivery organization where the patient had the encounter", "varchar" ],
"participant_actor_id": [ "contains the id of the provider associated with the care delivery organization who rendered the encounter", "varchar" ],
"diagnosis_condition_id": [ "contains list of diagnosis codes relevant to the patient of the encounter", "varchar" ],
"location_id": [ "location where the encounter happend or is happening or will be happening", "varchar" ],
"discharge_disposition": [ "how the patient was discharged at the end of the encounter", "varchar" ],
"diagnosis_condition_text": [ "clinical description of the diagnosis codes", "varchar" ],
"condition_class": [ "condition of the patient classified into specific broad classe., may contain multiple coditions. All lower case.", "varchar" ]
}
},
{
"name": "EpisodeOfCare",
"description": "EpisodeOfCare: contains continuous period of engagement by a care manager and/or a care management organization with the patient. Every row indicates a unique episide of care for a patient. One patient may have multiple episodes of care ",
"fields": { "identifier_value": [ "unique identifier of the episode", "varchar" ],
"type": [ "type of episode, can be disease management, post acute care or specialist referral", "varchar" ],
"diagnosis_condition_id": [ "ICD-10 diagnosis code assiciated with the episode of care", "varchar" ],
"subject_id": [ "id of the patient associated with episode, should have a corresponding 'identifier_value' in the Patient table", "varchar" ],
"managing_organization_id": [ "contains the id of the organization managing the episode", "varchar" ],
"care_manager_id": [ "contains the id of the care manager managing the episode", "varchar" ],
"care_team_id": [ "contains the id of the care team managing the episode. Care manager is part of the care team", "varchar" ]
}
},
{
"name": "RiskScore",
"description": "RiskScore: Contains the health risk scores of each of the patients. Only the latest risk score is stored. Every row has risk score of an unique patient",
"fields": { "patient_id": [ "identifier that uniquely identifies a patient. Matches with at least one identifier_value of Patient table.", "varchar"],
"risk_score": [ "decimal number between 0 and 1 indicating the risk score", "decimal number" ]
}
},
{
"name": "patient_sdoh_scores",
"description": "patient_sdoh_scores: table stores the various social determinants of quality scores about a patient obtained through assessment. Each row indicate score about one patient and about one type of assessment",
"fields": { "Patient_Id": [ "unique identifier of the patient. Matches with at least one identifier_value of Patient table.", "varchar"],
"Assessment_Id": [ "name of the assessment", "varchar" ],
"Answer": [ "The actual answer provided in the assessment", "integer" ],
"Assessment_Type": [ "type of the assessment, can be 'Financial', 'Home', 'Food' and 'Physical'", "varchar" ],
"score": [ "Derived standardized score based on the answer provided", "decimal number" ]
}
}
]