OCTRI / fhir2hpo

Library for converting FHIR messages to HPO
MIT License
7 stars 2 forks source link

Coded value #7

Closed kingmanzhang closed 6 years ago

kingmanzhang commented 6 years ago

I changed the annotation map from (internal code -> hpo) to (code -> hpo). Because the internal code is enum I could not figure out a better way to generalize it. The new implementation passed the tests and will be able to handle FHIR observations that have a coded value (such as snomed "S. aureus" is detected). But unfortunately it is a little more complicated than your original code, so I am not sure whether you will like it. Feel free to reject.