@@ -32,6 +32,8 @@ Intugle’s GenAI-powered open-source Python library builds an intelligent seman
3232
3333### Installation
3434
35+ For Windows and Linux, you can follow these steps. For macOS, please see the additional steps in the macOS section below.
36+
3537Before installing, it is recommended to create a virtual environment:
3638
3739``` bash
@@ -96,6 +98,7 @@ from intugle import KnowledgeBuilder, DataProductBuilder
9698datasets = {
9799 " allergies" : {" path" : " path/to/allergies.csv" , " type" : " csv" },
98100 " patients" : {" path" : " path/to/patients.csv" , " type" : " csv" },
101+ " claims" : {" path" : " path/to/claims.csv" , " type" : " csv" },
99102 # ... add other datasets
100103}
101104
@@ -108,12 +111,33 @@ dp_builder = DataProductBuilder()
108111
109112# Define an ETL model
110113etl = {
111- " name" : " patient_allergies" ,
112- " fields" : [
113- {" id" : " patients.first" , " name" : " first_name" },
114- {" id" : " patients.last" , " name" : " last_name" },
115- {" id" : " allergies.description" , " name" : " allergy" },
114+ " name" : " top_patients_by_claim_count" ,
115+ " fields" : [
116+ {
117+ " id" : " patients.first" ,
118+ " name" : " first_name" ,
119+ },
120+ {
121+ " id" : " patients.last" ,
122+ " name" : " last_name" ,
123+ },
124+ {
125+ " id" : " claims.id" ,
126+ " name" : " number_of_claims" ,
127+ " category" : " measure" ,
128+ " measure_func" : " count"
129+ }
130+ ],
131+ " filter" : {
132+ " sort_by" : [
133+ {
134+ " id" : " claims.id" ,
135+ " alias" : " number_of_claims" ,
136+ " direction" : " desc"
137+ }
116138 ],
139+ " limit" : 10
140+ }
117141}
118142
119143# Generate the data product
0 commit comments