You're working as a data analyst for a hospital's electronic health records system. The hospital maintains a Patients table that stores patient information including their medical conditions.
Your task is to identify all patients who have been diagnosed with Type I Diabetes. In the hospital's coding system, Type I Diabetes conditions always start with the prefix DIAB1.
The conditions column contains medical condition codes separated by spaces. For example, a patient might have conditions like "SADIAB100 MYOP" or "DIAB1 MYOP SLEEP".
Goal: Write a SQL query to find the patient_id, patient_name, and conditions of patients with Type I Diabetes.
Key Challenge: The DIAB1 prefix must be at the beginning of a condition code, not embedded within another code. For instance, "SADIAB100" should NOT match, but "DIAB1" or "DIAB100" should match.
Input & Output
Constraints
- 1 โค patient_id โค 105
- patient_name contains only alphabetic characters and spaces
- conditions contains only uppercase letters, digits, and spaces
- Each condition code is separated by exactly one space
- Type I Diabetes conditions always start with DIAB1 prefix