Closed aeyates closed 6 years ago
Looks good to me and passed all tests on my machine! I like the way you combined enum class to HpoEncodedValue. That is smart! The only hesitation I have is the name of the new class--HpoEncodedValue. We can use it for now, but eventually we may change it to a more general name like "CodedOutcome" because it will be used to represent internal codes AND external codes (e.g. a snomed concept, or any categorical value). You can go ahead and merge.
Thanks, @kingmanzhang. I wasn't settled on the name of that class either - it was just easier to keep it distinct while making the changes. But I was thinking we might generalize it to CodedValue in the long run.
@kingmanzhang Great work on adding the concept of systems to support SNOMED. I made some improvements to combine the "CodedValue" and the "Loinc2HpoCodedValue" into a single class tentatively named "HpoEncodedValue". This make things a bit cleaner so no adapter is needed. If this looks good, we can merge with your branch and then merge your branch into master.