Hi All - I am looking for advice on how to structure a part of an application I am working on in support of a research project. I have a lot of data that includes diagnoses for patients. Diagnoses are captured using hierarchical data structured in the following way: General Diagnosis Category -> Detail Diagnosis Category -> Diagnosis Code. When I originally mocked this up in java I thought that I could use an "is a" relationship to model this data for searches thru large amounts of data. Data could be structured in the following manner:
>Cancer >Breast Cancer >Breast Cancer type 1 >Breast Cancer type 2 >Breast Cancer type 3 >Lung Cancer >Lung Cancer type 1 >Lung Cancer type 2 >Lung Cancer type 3 >Lung Cancer type 4 >Prostate Cancer >Prostate Cancer type 1 >Prostate Cancer type 2 So I originally thought I could have a class Cancer with other classes BreastCancer extends Cancer and BreastCancerType1 extends Breast Cancer , etc... I could then search (using some sort of matching methodology - considering the use of either Matchure or mini-kanren - not sure exactly what yet...) for a more or less general search using the 'is a ' criteria depending on search criteria. I have (happily) abandoned java for Clojure. I was originally going to use hierarchies to do this but...it just seems like an inappropriate use of this. I would really appreciate how to both store this data that would enable a search of the data that uses the hierarchical nature of this data to allow me to increase or decrease the specificity of a search based on some criteria. As you can tell i am still trying to formulate a strategy...I would really appreciate some input on how to structure this data/application and the use of hierarchies in this way, as well as alternative ways to accomplish this. Thanks much in advance. Base -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en