Interqual Logic Tables¶
Master tables for Interqual Data;¶
- select * from KPAIMAster.dbo.MST_IQSubSet
- select * from KPAIMAster.dbo.MST_IQSubsetCriteria
- select * from KPAIMAster.dbo.MST_IQSubSetNote
Classification tables for Interqual Data;¶
- select * from MST_IQ_DrugClassification
- select * from MST_IQ_DrugMapping
- select * from MST_IQ_ICDClassification
- select * from MST_IQ_MedicalConceptClassification
- select * from MST_IQ_NurseNoteClassification
- select * from MST_IQ_PCSClassification
LogicGroup tables for Interqual Data;¶
- select * from KPAIMAster.dbo.MST_IQLogicGroup
- select * from KPAIMAster.dbo.MST_IQCriteriaElement
- select * from KPAIMAster.dbo.MST_IQCriteriaElementMapping
Criteria Met Results tables;¶
- select * from CM_IQ_KPAI_PendingAccount
- select * from CM_IQ_KPAI_IQElementResult
- select * from CM_IQ_KPAI_SelectedCriteria
- select * from CM_IQ_KPAI_SelectedSubsets
- select * from CM_IQ_KPAI_CriteriaMetSubSets
- select * from CM_IQ_KPAI_ActionLog
1. Criteria Data to MST_IQLogicGroup Table¶
Fill MST_IQLogicGroup table from MST_IQSubsetCriteria table by using below query:
1 | |
update GroupId to all Criteria Text in MST_IQSubsetCriteria table from MST_IQLogicGroup table :
1 2 | |
update ConditionCount=2 in MST_IQLogicGroup table for GroupName contains 'and' like '>= 2x baseline and chronic kidney disease'
split those GroupNames into two entries, and update GroupId as ParentId to new entries.
1 2 3 4 | |
2. Criteria Data to Classification Tables¶
Fill Classification tables for all the GroupNames in MST_IQLogicGroup Table.
if GroupName like:
1 2 3 4 5 | |
3. Criteria Data to MST_IQCriteriaElement Table¶
Fill MST_IQCriteriaElement Table based on the CriteriaElementType and update Source_UniqueID field from Corresponding Classification Table.
| CriteriaElementId | CriteriaElementType | CriteriaElementName | Source_UniqueId | Source_Table |
|---|---|---|---|---|
| 1 | LabTest | Sodium | 60 | MST_LabDictionary |
| 10 | Vitalsign | Temperature | 12 | MST_VitalSignDictionary |
| 12 | ICDCode | chronic kidney disease | 1 | MST_IQ_ICDClassification |
| 24 | MedicalConcept | chronic kidney disease | 1 | MST_IQ_MedicalConceptClassification |
| 36 | Medication | Diuretic | 1 | MST_IQ_DrugClassification |
4. Criteria Data to MST_IQCriteriaElementMapping Table¶
Fill MST_IQCriteriaElementMapping Table by using MST_IQCriteriaElement and MST_IQLogicGroup Tables
Interqual Core Analysis Process:¶
Note
To Run IQ Analysis get Accounts from CM_IQ_KPAI_PendingAccount table with status=0, which was filled after Document Analysis was Done on corresponding Accounts.
IQAS_RunIQLogic is the core stored procedure to map all the Analysis Data like Icd coding, Pcs coding, MedicalConcepts, Nurse Notes, LabTests, Medications and Vitals.
Process of all Analysis join with corresponding Logic tables¶
IQAS_RunIQLogic
IcdCode: IQAS_ICDCodeCheck
PcsCode: IQAS_PCSCodeCheck
MedicalConcept: IQAS_MedicalConceptCheck
NurseNote: IQAS_NurseNoteCheck
Lab: IQAS_LabTestCheck
Medication: IQAS_MedicationCheck
Vital: IQAS_VitalsignCheck