Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Non distinct variables

Hi there,

I'm trying to create Quality Indicators from hospital routine data and got the following problem:

Here's a Patient who had a hysterectomy and died within her stay in Hospital. She also was diagnosed with a Tumor, so she shouldn't be included in the calculation of the Quality Indicator.

   

PatientNoDiagnosis CodeDiagnosis_IndicatorProcedure_Indicator
1234567C78.5TUMORHYSTERECTOMY
1234567C78.6TUMORHYSTERECTOMY
1234567C79.1TUMORHYSTERECTOMY
1234567C56 HYSTERECTOMY
1234567E78.0 HYSTERECTOMY
1234567E87.0 HYSTERECTOMY
1234567G93.6 HYSTERECTOMY
1234567I63.0 HYSTERECTOMY
1234567J15.5 HYSTERECTOMY
1234567J96.00 HYSTERECTOMY
1234567N19 HYSTERECTOMY

My Problem is that with the following formula QV finds the 8 Diagnosis Codes that are not marked as Tumor Indicator and counts the Patient though she actually doesn't fit the definition of the Quality Indicator which exludes Tumor Patients. 

count( DISTINCT if(Procedure_Indikator = 'Hysterectomy' and Diagnosis_Indikator <> 'TUMOR' and Discharge = 'Died' , PatientNo))

Any ideas?

Thanks!

4 Replies
Anonymous
Not applicable
Author

Try This

count({<Procedure_Indikator = {'Hysterectomy'} * Diagnosis_Indikator -={ 'TUMOR'} * Discharge ={ 'Died' }>}Distinct PatientNo)

tresesco
MVP
MVP

Try replacing the '*' with comma, like:

count({<Procedure_Indikator = {'Hysterectomy'} , Diagnosis_Indikator -={ 'TUMOR'} , Discharge ={ 'Died' }>}Distinct PatientNo)

tunoi
Creator
Creator

You will need something like that:

count({<Procedure_Indicator = {'Hysterectomy'} , PatientNo = E({1<Diagnosis_Indicator={"Tumor"}>})>}Distinct PatientNo)

Not applicable
Author

I guess Set Analysis is the way to go. I'm coming close with this one but still have a problem.

The formular doesn't seem to include patients that had a hysterectomy but no diagnosis to match the QI Definition --> Diagnosis_Indikator is blank.

Here is a Patient that counts correctly:

   

PatientNoDiagnosis CodeDiagnosis_IndicatorProcedure_Indicator
5555555N80.0ICD_GIQI_EndometrioseOPS_GIQI_Hysterektomie
5555555I10.00 OPS_GIQI_Hysterektomie
5555555K59.0 OPS_GIQI_Hysterektomie
5555555K66.0 OPS_GIQI_Hysterektomie

   

And here is one that doesn't count though it should be counted:

   

PatientNoDiagnosis CodeDiagnosis_IndicatorProcedure_Indicator
7777777D25.1 OPS_GIQI_Hysterektomie
7777777Z11 OPS_GIQI_Hysterektomie
7777777Z88.0 OPS_GIQI_Hysterektomie

Thank you all for the help!