# diagnoses_icd.sequence in MIMIC-III: does the order matter aside from the primary diagnosis?

The column diagnoses_icd.sequence, according to the documentation:

provides the order in which the ICD diagnoses relate to the patient. ICD diagnoses are ordered by priority.

Does the order really matter aside from the primary diagnosis (i.e. does the diagnoses_icd.sequence matter when diagnoses_icd.sequence > 1)?

I see diagnoses_icd.sequence has values that range from 1 to 39:

SELECT distinct(sequence),  COUNT(*)
FROM  mimiciii.diagnoses_icd
GROUP BY sequence
ORDER BY   sequence ASC  ;


• This questions looks like it may be a duplicate of opendata.stackexchange.com/questions/6303/… – tomp Jan 3 '16 at 1:13
• @tomp They are pretty close indeed: to paraphrase, this question -> "does the order matter after 2"; the other question -> "how was the order decided?". I guess this question is a subset of the other one. – Franck Dernoncourt Jan 3 '16 at 2:42
• Thanks Franck, I'll update you on both points when we have a clear answer from the coders. – tomp Jan 3 '16 at 2:50
• i wonder the answer too, could you share with me? Thanks – Jeanine Song Jan 3 '17 at 2:44
• Hi Jeanine, you should add this to the comments area. – Daniel Miller Jan 3 '17 at 3:21